ÿþ/ * 
 - - - 
 M o o T o o l s :   t h e   j a v a s c r i p t   f r a m e w o r k 
 
 w e b   b u i l d : 
   -   h t t p : / / m o o t o o l s . n e t / c o r e / 7 c 5 6 c f e f 9 d d d c f 1 7 0 a 5 d 6 8 e 3 f b 6 1 c f d 7 
 
 p a c k a g e r   b u i l d : 
   -   p a c k a g e r   b u i l d   C o r e / C o r e   C o r e / A r r a y   C o r e / S t r i n g   C o r e / N u m b e r   C o r e / F u n c t i o n   C o r e / O b j e c t   C o r e / E v e n t   C o r e / B r o w s e r   C o r e / C l a s s   C o r e / C l a s s . E x t r a s   C o r e / S l i c k . P a r s e r   C o r e / S l i c k . F i n d e r   C o r e / E l e m e n t   C o r e / E l e m e n t . S t y l e   C o r e / E l e m e n t . E v e n t   C o r e / E l e m e n t . D i m e n s i o n s   C o r e / F x   C o r e / F x . C S S   C o r e / F x . T w e e n   C o r e / F x . M o r p h   C o r e / F x . T r a n s i t i o n s   C o r e / R e q u e s t   C o r e / R e q u e s t . H T M L   C o r e / R e q u e s t . J S O N   C o r e / C o o k i e   C o r e / J S O N   C o r e / D O M R e a d y   C o r e / S w i f f 
 
 c o p y r i g h t s : 
     -   [ M o o T o o l s ] ( h t t p : / / m o o t o o l s . n e t ) 
 
 l i c e n s e s : 
     -   [ M I T   L i c e n s e ] ( h t t p : / / m o o t o o l s . n e t / l i c e n s e . t x t ) 
 . . . 
 * / 
 ( f u n c t i o n ( ) { t h i s . M o o T o o l s = { v e r s i o n : " 1 . 3 . 1 " , b u i l d : " a f 4 8 c 8 d 5 8 9 f 4 3 f 3 2 2 1 2 f 9 b b 8 f f 6 8 a 1 2 7 e 6 a 3 b a 6 c " } ; v a r   e = t h i s . t y p e O f = f u n c t i o n ( i ) { i f ( i = = n u l l ) { r e t u r n " n u l l " ; } i f ( i . $ f a m i l y ) { r e t u r n   i . $ f a m i l y ( ) ; 
 } i f ( i . n o d e N a m e ) { i f ( i . n o d e T y p e = = 1 ) { r e t u r n " e l e m e n t " ; } i f ( i . n o d e T y p e = = 3 ) { r e t u r n ( / \ S / ) . t e s t ( i . n o d e V a l u e ) ? " t e x t n o d e " : " w h i t e s p a c e " ; } } e l s e { i f ( t y p e o f   i . l e n g t h = = " n u m b e r " ) { i f ( i . c a l l e e ) { r e t u r n " a r g u m e n t s " ; 
 } i f ( " i t e m "   i n   i ) { r e t u r n " c o l l e c t i o n " ; } } } r e t u r n   t y p e o f   i ; } ; v a r   u = t h i s . i n s t a n c e O f = f u n c t i o n ( w , i ) { i f ( w = = n u l l ) { r e t u r n   f a l s e ; } v a r   v = w . $ c o n s t r u c t o r | | w . c o n s t r u c t o r ; 
 w h i l e ( v ) { i f ( v = = = i ) { r e t u r n   t r u e ; } v = v . p a r e n t ; } r e t u r n   w   i n s t a n c e o f   i ; } ; v a r   f = t h i s . F u n c t i o n ; v a r   r = t r u e ; f o r ( v a r   q   i n   { t o S t r i n g : 1 } ) { r = n u l l ; } i f ( r ) { r = [ " h a s O w n P r o p e r t y " , " v a l u e O f " , " i s P r o t o t y p e O f " , " p r o p e r t y I s E n u m e r a b l e " , " t o L o c a l e S t r i n g " , " t o S t r i n g " , " c o n s t r u c t o r " ] ; 
 } f . p r o t o t y p e . o v e r l o a d S e t t e r = f u n c t i o n ( v ) { v a r   i = t h i s ; r e t u r n   f u n c t i o n ( x , w ) { i f ( x = = n u l l ) { r e t u r n   t h i s ; } i f ( v | | t y p e o f   x ! = " s t r i n g " ) { f o r ( v a r   y   i n   x ) { i . c a l l ( t h i s , y , x [ y ] ) ; 
 } i f ( r ) { f o r ( v a r   z = r . l e n g t h ; z - - ; ) { y = r [ z ] ; i f ( x . h a s O w n P r o p e r t y ( y ) ) { i . c a l l ( t h i s , y , x [ y ] ) ; } } } } e l s e { i . c a l l ( t h i s , x , w ) ; } r e t u r n   t h i s ; } ; } ; f . p r o t o t y p e . o v e r l o a d G e t t e r = f u n c t i o n ( v ) { v a r   i = t h i s ; 
 r e t u r n   f u n c t i o n ( x ) { v a r   y , w ; i f ( v | | t y p e o f   x ! = " s t r i n g " ) { y = x ; } e l s e { i f ( a r g u m e n t s . l e n g t h > 1 ) { y = a r g u m e n t s ; } } i f ( y ) { w = { } ; f o r ( v a r   z = 0 ; z < y . l e n g t h ; z + + ) { w [ y [ z ] ] = i . c a l l ( t h i s , y [ z ] ) ; 
 } } e l s e { w = i . c a l l ( t h i s , x ) ; } r e t u r n   w ; } ; } ; f . p r o t o t y p e . e x t e n d = f u n c t i o n ( i , v ) { t h i s [ i ] = v ; } . o v e r l o a d S e t t e r ( ) ; f . p r o t o t y p e . i m p l e m e n t = f u n c t i o n ( i , v ) { t h i s . p r o t o t y p e [ i ] = v ; 
 } . o v e r l o a d S e t t e r ( ) ; v a r   o = A r r a y . p r o t o t y p e . s l i c e ; f . f r o m = f u n c t i o n ( i ) { r e t u r n ( e ( i ) = = " f u n c t i o n " ) ? i : f u n c t i o n ( ) { r e t u r n   i ; } ; } ; A r r a y . f r o m = f u n c t i o n ( i ) { i f ( i = = n u l l ) { r e t u r n [ ] ; 
 } r e t u r n ( k . i s E n u m e r a b l e ( i ) & & t y p e o f   i ! = " s t r i n g " ) ? ( e ( i ) = = " a r r a y " ) ? i : o . c a l l ( i ) : [ i ] ; } ; N u m b e r . f r o m = f u n c t i o n ( v ) { v a r   i = p a r s e F l o a t ( v ) ; r e t u r n   i s F i n i t e ( i ) ? i : n u l l ; 
 } ; S t r i n g . f r o m = f u n c t i o n ( i ) { r e t u r n   i + " " ; } ; f . i m p l e m e n t ( { h i d e : f u n c t i o n ( ) { t h i s . $ h i d d e n = t r u e ; r e t u r n   t h i s ; } , p r o t e c t : f u n c t i o n ( ) { t h i s . $ p r o t e c t e d = t r u e ; r e t u r n   t h i s ; 
 } } ) ; v a r   k = t h i s . T y p e = f u n c t i o n ( x , w ) { i f ( x ) { v a r   v = x . t o L o w e r C a s e ( ) ; v a r   i = f u n c t i o n ( y ) { r e t u r n ( e ( y ) = = v ) ; } ; k [ " i s " + x ] = i ; i f ( w ! = n u l l ) { w . p r o t o t y p e . $ f a m i l y = ( f u n c t i o n ( ) { r e t u r n   v ; 
 } ) . h i d e ( ) ; w . t y p e = i ; } } i f ( w = = n u l l ) { r e t u r n   n u l l ; } w . e x t e n d ( t h i s ) ; w . $ c o n s t r u c t o r = k ; w . p r o t o t y p e . $ c o n s t r u c t o r = w ; r e t u r n   w ; } ; v a r   p = O b j e c t . p r o t o t y p e . t o S t r i n g ; k . i s E n u m e r a b l e = f u n c t i o n ( i ) { r e t u r n ( i ! = n u l l & & t y p e o f   i . l e n g t h = = " n u m b e r " & & p . c a l l ( i ) ! = " [ o b j e c t   F u n c t i o n ] " ) ; 
 } ; v a r   b = { } ; v a r   d = f u n c t i o n ( i ) { v a r   v = e ( i . p r o t o t y p e ) ; r e t u r n   b [ v ] | | ( b [ v ] = [ ] ) ; } ; v a r   h = f u n c t i o n ( w , A ) { i f ( A & & A . $ h i d d e n ) { r e t u r n ; } v a r   v = d ( t h i s ) ; f o r ( v a r   x = 0 ; x < v . l e n g t h ; 
 x + + ) { v a r   z = v [ x ] ; i f ( e ( z ) = = " t y p e " ) { h . c a l l ( z , w , A ) ; } e l s e { z . c a l l ( t h i s , w , A ) ; } } v a r   y = t h i s . p r o t o t y p e [ w ] ; i f ( y = = n u l l | | ! y . $ p r o t e c t e d ) { t h i s . p r o t o t y p e [ w ] = A ; } i f ( t h i s [ w ] = = n u l l & & e ( A ) = = " f u n c t i o n " ) { t . c a l l ( t h i s , w , f u n c t i o n ( i ) { r e t u r n   A . a p p l y ( i , o . c a l l ( a r g u m e n t s , 1 ) ) ; 
 } ) ; } } ; v a r   t = f u n c t i o n ( i , w ) { i f ( w & & w . $ h i d d e n ) { r e t u r n ; } v a r   v = t h i s [ i ] ; i f ( v = = n u l l | | ! v . $ p r o t e c t e d ) { t h i s [ i ] = w ; } } ; k . i m p l e m e n t ( { i m p l e m e n t : h . o v e r l o a d S e t t e r ( ) , e x t e n d : t . o v e r l o a d S e t t e r ( ) , a l i a s : f u n c t i o n ( i , v ) { h . c a l l ( t h i s , i , t h i s . p r o t o t y p e [ v ] ) ; 
 } . o v e r l o a d S e t t e r ( ) , m i r r o r : f u n c t i o n ( i ) { d ( t h i s ) . p u s h ( i ) ; r e t u r n   t h i s ; } } ) ; n e w   k ( " T y p e " , k ) ; v a r   c = f u n c t i o n ( v , z , x ) { v a r   w = ( z ! = O b j e c t ) , D = z . p r o t o t y p e ; i f ( w ) { z = n e w   k ( v , z ) ; 
 } f o r ( v a r   A = 0 , y = x . l e n g t h ; A < y ; A + + ) { v a r   E = x [ A ] , C = z [ E ] , B = D [ E ] ; i f ( C ) { C . p r o t e c t ( ) ; } i f ( w & & B ) { d e l e t e   D [ E ] ; D [ E ] = B . p r o t e c t ( ) ; } } i f ( w ) { z . i m p l e m e n t ( D ) ; } r e t u r n   c ; } ; c ( " S t r i n g " , S t r i n g , [ " c h a r A t " , " c h a r C o d e A t " , " c o n c a t " , " i n d e x O f " , " l a s t I n d e x O f " , " m a t c h " , " q u o t e " , " r e p l a c e " , " s e a r c h " , " s l i c e " , " s p l i t " , " s u b s t r " , " s u b s t r i n g " , " t o L o w e r C a s e " , " t o U p p e r C a s e " ] ) ( " A r r a y " , A r r a y , [ " p o p " , " p u s h " , " r e v e r s e " , " s h i f t " , " s o r t " , " s p l i c e " , " u n s h i f t " , " c o n c a t " , " j o i n " , " s l i c e " , " i n d e x O f " , " l a s t I n d e x O f " , " f i l t e r " , " f o r E a c h " , " e v e r y " , " m a p " , " s o m e " , " r e d u c e " , " r e d u c e R i g h t " ] ) ( " N u m b e r " , N u m b e r , [ " t o E x p o n e n t i a l " , " t o F i x e d " , " t o L o c a l e S t r i n g " , " t o P r e c i s i o n " ] ) ( " F u n c t i o n " , f , [ " a p p l y " , " c a l l " , " b i n d " ] ) ( " R e g E x p " , R e g E x p , [ " e x e c " , " t e s t " ] ) ( " O b j e c t " , O b j e c t , [ " c r e a t e " , " d e f i n e P r o p e r t y " , " d e f i n e P r o p e r t i e s " , " k e y s " , " g e t P r o t o t y p e O f " , " g e t O w n P r o p e r t y D e s c r i p t o r " , " g e t O w n P r o p e r t y N a m e s " , " p r e v e n t E x t e n s i o n s " , " i s E x t e n s i b l e " , " s e a l " , " i s S e a l e d " , " f r e e z e " , " i s F r o z e n " ] ) ( " D a t e " , D a t e , [ " n o w " ] ) ; 
 O b j e c t . e x t e n d = t . o v e r l o a d S e t t e r ( ) ; D a t e . e x t e n d ( " n o w " , f u n c t i o n ( ) { r e t u r n   + ( n e w   D a t e ) ; } ) ; n e w   k ( " B o o l e a n " , B o o l e a n ) ; N u m b e r . p r o t o t y p e . $ f a m i l y = f u n c t i o n ( ) { r e t u r n   i s F i n i t e ( t h i s ) ? " n u m b e r " : " n u l l " ; 
 } . h i d e ( ) ; N u m b e r . e x t e n d ( " r a n d o m " , f u n c t i o n ( v , i ) { r e t u r n   M a t h . f l o o r ( M a t h . r a n d o m ( ) * ( i - v + 1 ) + v ) ; } ) ; v a r   l = 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 ; O b j e c t . e x t e n d ( " f o r E a c h " , f u n c t i o n ( i , w , x ) { f o r ( v a r   v   i n   i ) { i f ( l . c a l l ( i , v ) ) { w . c a l l ( x , i [ v ] , v , i ) ; 
 } } } ) ; O b j e c t . e a c h = O b j e c t . f o r E a c h ; A r r a y . i m p l e m e n t ( { f o r E a c h : f u n c t i o n ( x , y ) { f o r ( v a r   w = 0 , v = t h i s . l e n g t h ; w < v ; w + + ) { i f ( w   i n   t h i s ) { x . c a l l ( y , t h i s [ w ] , w , t h i s ) ; } } } , e a c h : f u n c t i o n ( i , v ) { A r r a y . f o r E a c h ( t h i s , i , v ) ; 
 r e t u r n   t h i s ; } } ) ; v a r   s = f u n c t i o n ( i ) { s w i t c h ( e ( i ) ) { c a s e " a r r a y " : r e t u r n   i . c l o n e ( ) ; c a s e " o b j e c t " : r e t u r n   O b j e c t . c l o n e ( i ) ; d e f a u l t : r e t u r n   i ; } } ; A r r a y . i m p l e m e n t ( " c l o n e " , f u n c t i o n ( ) { v a r   v = t h i s . l e n g t h , w = n e w   A r r a y ( v ) ; 
 w h i l e ( v - - ) { w [ v ] = s ( t h i s [ v ] ) ; } r e t u r n   w ; } ) ; v a r   a = f u n c t i o n ( v , i , w ) { s w i t c h ( e ( w ) ) { c a s e " o b j e c t " : i f ( e ( v [ i ] ) = = " o b j e c t " ) { O b j e c t . m e r g e ( v [ i ] , w ) ; } e l s e { v [ i ] = O b j e c t . c l o n e ( w ) ; 
 } b r e a k ; c a s e " a r r a y " : v [ i ] = w . c l o n e ( ) ; b r e a k ; d e f a u l t : v [ i ] = w ; } r e t u r n   v ; } ; O b j e c t . e x t e n d ( { m e r g e : f u n c t i o n ( C , y , x ) { i f ( e ( y ) = = " s t r i n g " ) { r e t u r n   a ( C , y , x ) ; } f o r ( v a r   B = 1 , w = a r g u m e n t s . l e n g t h ; 
 B < w ; B + + ) { v a r   z = a r g u m e n t s [ B ] ; f o r ( v a r   A   i n   z ) { a ( C , A , z [ A ] ) ; } } r e t u r n   C ; } , c l o n e : f u n c t i o n ( i ) { v a r   w = { } ; f o r ( v a r   v   i n   i ) { w [ v ] = s ( i [ v ] ) ; } r e t u r n   w ; } , a p p e n d : f u n c t i o n ( z ) { f o r ( v a r   y = 1 , w = a r g u m e n t s . l e n g t h ; 
 y < w ; y + + ) { v a r   v = a r g u m e n t s [ y ] | | { } ; f o r ( v a r   x   i n   v ) { z [ x ] = v [ x ] ; } } r e t u r n   z ; } } ) ; [ " O b j e c t " , " W h i t e S p a c e " , " T e x t N o d e " , " C o l l e c t i o n " , " A r g u m e n t s " ] . e a c h ( f u n c t i o n ( i ) { n e w   k ( i ) ; 
 } ) ; v a r   j = D a t e . n o w ( ) ; S t r i n g . e x t e n d ( " u n i q u e I D " , f u n c t i o n ( ) { r e t u r n ( j + + ) . t o S t r i n g ( 3 6 ) ; } ) ; v a r   g = t h i s . H a s h = n e w   k ( " H a s h " , f u n c t i o n ( i ) { i f ( e ( i ) = = " h a s h " ) { i = O b j e c t . c l o n e ( i . g e t C l e a n ( ) ) ; 
 } f o r ( v a r   v   i n   i ) { t h i s [ v ] = i [ v ] ; } r e t u r n   t h i s ; } ) ; g . i m p l e m e n t ( { f o r E a c h : f u n c t i o n ( i , v ) { O b j e c t . f o r E a c h ( t h i s , i , v ) ; } , g e t C l e a n : f u n c t i o n ( ) { v a r   v = { } ; f o r ( v a r   i   i n   t h i s ) { i f ( t h i s . h a s O w n P r o p e r t y ( i ) ) { v [ i ] = t h i s [ i ] ; 
 } } r e t u r n   v ; } , g e t L e n g t h : f u n c t i o n ( ) { v a r   v = 0 ; f o r ( v a r   i   i n   t h i s ) { i f ( t h i s . h a s O w n P r o p e r t y ( i ) ) { v + + ; } } r e t u r n   v ; } } ) ; g . a l i a s ( " e a c h " , " f o r E a c h " ) ; O b j e c t . t y p e = k . i s O b j e c t ; 
 v a r   n = t h i s . N a t i v e = f u n c t i o n ( i ) { r e t u r n   n e w   k ( i . n a m e , i . i n i t i a l i z e ) ; } ; n . t y p e = k . t y p e ; n . i m p l e m e n t = f u n c t i o n ( x , v ) { f o r ( v a r   w = 0 ; w < x . l e n g t h ; w + + ) { x [ w ] . i m p l e m e n t ( v ) ; 
 } r e t u r n   n ; } ; v a r   m = A r r a y . t y p e ; A r r a y . t y p e = f u n c t i o n ( i ) { r e t u r n   u ( i , A r r a y ) | | m ( i ) ; } ; t h i s . $ A = f u n c t i o n ( i ) { r e t u r n   A r r a y . f r o m ( i ) . s l i c e ( ) ; } ; t h i s . $ a r g u m e n t s = f u n c t i o n ( v ) { r e t u r n   f u n c t i o n ( ) { r e t u r n   a r g u m e n t s [ v ] ; 
 } ; } ; t h i s . $ c h k = f u n c t i o n ( i ) { r e t u r n   ! ! ( i | | i = = = 0 ) ; } ; t h i s . $ c l e a r = f u n c t i o n ( i ) { c l e a r T i m e o u t ( i ) ; c l e a r I n t e r v a l ( i ) ; r e t u r n   n u l l ; } ; t h i s . $ d e f i n e d = f u n c t i o n ( i ) { r e t u r n ( i ! = n u l l ) ; 
 } ; t h i s . $ e a c h = f u n c t i o n ( w , v , x ) { v a r   i = e ( w ) ; ( ( i = = " a r g u m e n t s " | | i = = " c o l l e c t i o n " | | i = = " a r r a y " | | i = = " e l e m e n t s " ) ? A r r a y : O b j e c t ) . e a c h ( w , v , x ) ; } ; t h i s . $ e m p t y = f u n c t i o n ( ) { } ; 
 t h i s . $ e x t e n d = f u n c t i o n ( v , i ) { r e t u r n   O b j e c t . a p p e n d ( v , i ) ; } ; t h i s . $ H = f u n c t i o n ( i ) { r e t u r n   n e w   g ( i ) ; } ; t h i s . $ m e r g e = f u n c t i o n ( ) { v a r   i = A r r a y . s l i c e ( a r g u m e n t s ) ; i . u n s h i f t ( { } ) ; 
 r e t u r n   O b j e c t . m e r g e . a p p l y ( n u l l , i ) ; } ; t h i s . $ l a m b d a = f . f r o m ; t h i s . $ m i x i n = O b j e c t . m e r g e ; t h i s . $ r a n d o m = N u m b e r . r a n d o m ; t h i s . $ s p l a t = A r r a y . f r o m ; t h i s . $ t i m e = D a t e . n o w ; 
 t h i s . $ t y p e = f u n c t i o n ( i ) { v a r   v = e ( i ) ; i f ( v = = " e l e m e n t s " ) { r e t u r n " a r r a y " ; } r e t u r n ( v = = " n u l l " ) ? f a l s e : v ; } ; t h i s . $ u n l i n k = f u n c t i o n ( i ) { s w i t c h ( e ( i ) ) { c a s e " o b j e c t " : r e t u r n   O b j e c t . c l o n e ( i ) ; 
 c a s e " a r r a y " : r e t u r n   A r r a y . c l o n e ( i ) ; c a s e " h a s h " : r e t u r n   n e w   g ( i ) ; d e f a u l t : r e t u r n   i ; } } ; } ) . c a l l ( t h i s ) ; A r r a y . i m p l e m e n t ( { i n v o k e : f u n c t i o n ( a ) { v a r   b = A r r a y . s l i c e ( a r g u m e n t s , 1 ) ; 
 r e t u r n   t h i s . m a p ( f u n c t i o n ( c ) { r e t u r n   c [ a ] . a p p l y ( c , b ) ; } ) ; } , e v e r y : f u n c t i o n ( c , d ) { f o r ( v a r   b = 0 , a = t h i s . l e n g t h ; b < a ; b + + ) { i f ( ( b   i n   t h i s ) & & ! c . c a l l ( d , t h i s [ b ] , b , t h i s ) ) { r e t u r n   f a l s e ; 
 } } r e t u r n   t r u e ; } , f i l t e r : f u n c t i o n ( d , e ) { v a r   c = [ ] ; f o r ( v a r   b = 0 , a = t h i s . l e n g t h ; b < a ; b + + ) { i f ( ( b   i n   t h i s ) & & d . c a l l ( e , t h i s [ b ] , b , t h i s ) ) { c . p u s h ( t h i s [ b ] ) ; } } r e t u r n   c ; } , c l e a n : f u n c t i o n ( ) { r e t u r n   t h i s . f i l t e r ( f u n c t i o n ( a ) { r e t u r n   a ! = n u l l ; 
 } ) ; } , i n d e x O f : f u n c t i o n ( c , d ) { v a r   a = t h i s . l e n g t h ; f o r ( v a r   b = ( d < 0 ) ? M a t h . m a x ( 0 , a + d ) : d | | 0 ; b < a ; b + + ) { i f ( t h i s [ b ] = = = c ) { r e t u r n   b ; } } r e t u r n   - 1 ; } , m a p : f u n c t i o n ( d , e ) { v a r   c = [ ] ; 
 f o r ( v a r   b = 0 , a = t h i s . l e n g t h ; b < a ; b + + ) { i f ( b   i n   t h i s ) { c [ b ] = d . c a l l ( e , t h i s [ b ] , b , t h i s ) ; } } r e t u r n   c ; } , s o m e : f u n c t i o n ( c , d ) { f o r ( v a r   b = 0 , a = t h i s . l e n g t h ; b < a ; b + + ) { i f ( ( b   i n   t h i s ) & & c . c a l l ( d , t h i s [ b ] , b , t h i s ) ) { r e t u r n   t r u e ; 
 } } r e t u r n   f a l s e ; } , a s s o c i a t e : f u n c t i o n ( c ) { v a r   d = { } , b = M a t h . m i n ( t h i s . l e n g t h , c . l e n g t h ) ; f o r ( v a r   a = 0 ; a < b ; a + + ) { d [ c [ a ] ] = t h i s [ a ] ; } r e t u r n   d ; } , l i n k : f u n c t i o n ( c ) { v a r   a = { } ; 
 f o r ( v a r   e = 0 , b = t h i s . l e n g t h ; e < b ; e + + ) { f o r ( v a r   d   i n   c ) { i f ( c [ d ] ( t h i s [ e ] ) ) { a [ d ] = t h i s [ e ] ; d e l e t e   c [ d ] ; b r e a k ; } } } r e t u r n   a ; } , c o n t a i n s : f u n c t i o n ( a , b ) { r e t u r n   t h i s . i n d e x O f ( a , b ) ! = - 1 ; 
 } , a p p e n d : f u n c t i o n ( a ) { t h i s . p u s h . a p p l y ( t h i s , a ) ; r e t u r n   t h i s ; } , g e t L a s t : f u n c t i o n ( ) { r e t u r n ( t h i s . l e n g t h ) ? t h i s [ t h i s . l e n g t h - 1 ] : n u l l ; } , g e t R a n d o m : f u n c t i o n ( ) { r e t u r n ( t h i s . l e n g t h ) ? t h i s [ N u m b e r . r a n d o m ( 0 , t h i s . l e n g t h - 1 ) ] : n u l l ; 
 } , i n c l u d e : f u n c t i o n ( a ) { i f ( ! t h i s . c o n t a i n s ( a ) ) { t h i s . p u s h ( a ) ; } r e t u r n   t h i s ; } , c o m b i n e : f u n c t i o n ( c ) { f o r ( v a r   b = 0 , a = c . l e n g t h ; b < a ; b + + ) { t h i s . i n c l u d e ( c [ b ] ) ; } r e t u r n   t h i s ; 
 } , e r a s e : f u n c t i o n ( b ) { f o r ( v a r   a = t h i s . l e n g t h ; a - - ; ) { i f ( t h i s [ a ] = = = b ) { t h i s . s p l i c e ( a , 1 ) ; } } r e t u r n   t h i s ; } , e m p t y : f u n c t i o n ( ) { t h i s . l e n g t h = 0 ; r e t u r n   t h i s ; } , f l a t t e n : f u n c t i o n ( ) { v a r   d = [ ] ; 
 f o r ( v a r   b = 0 , a = t h i s . l e n g t h ; b < a ; b + + ) { v a r   c = t y p e O f ( t h i s [ b ] ) ; i f ( c = = " n u l l " ) { c o n t i n u e ; } d = d . c o n c a t ( ( c = = " a r r a y " | | c = = " c o l l e c t i o n " | | c = = " a r g u m e n t s " | | i n s t a n c e O f ( t h i s [ b ] , A r r a y ) ) ? A r r a y . f l a t t e n ( t h i s [ b ] ) : t h i s [ b ] ) ; 
 } r e t u r n   d ; } , p i c k : f u n c t i o n ( ) { f o r ( v a r   b = 0 , a = t h i s . l e n g t h ; b < a ; b + + ) { i f ( t h i s [ b ] ! = n u l l ) { r e t u r n   t h i s [ b ] ; } } r e t u r n   n u l l ; } , h e x T o R g b : f u n c t i o n ( b ) { i f ( t h i s . l e n g t h ! = 3 ) { r e t u r n   n u l l ; 
 } v a r   a = t h i s . m a p ( f u n c t i o n ( c ) { i f ( c . l e n g t h = = 1 ) { c + = c ; } r e t u r n   c . t o I n t ( 1 6 ) ; } ) ; r e t u r n ( b ) ? a : " r g b ( " + a + " ) " ; } , r g b T o H e x : f u n c t i o n ( d ) { i f ( t h i s . l e n g t h < 3 ) { r e t u r n   n u l l ; } i f ( t h i s . l e n g t h = = 4 & & t h i s [ 3 ] = = 0 & & ! d ) { r e t u r n " t r a n s p a r e n t " ; 
 } v a r   b = [ ] ; f o r ( v a r   a = 0 ; a < 3 ; a + + ) { v a r   c = ( t h i s [ a ] - 0 ) . t o S t r i n g ( 1 6 ) ; b . p u s h ( ( c . l e n g t h = = 1 ) ? " 0 " + c : c ) ; } r e t u r n ( d ) ? b : " # " + b . j o i n ( " " ) ; } } ) ; A r r a y . a l i a s ( " e x t e n d " , " a p p e n d " ) ; 
 v a r   $ p i c k = f u n c t i o n ( ) { r e t u r n   A r r a y . f r o m ( a r g u m e n t s ) . p i c k ( ) ; } ; S t r i n g . i m p l e m e n t ( { t e s t : f u n c t i o n ( a , b ) { r e t u r n ( ( t y p e O f ( a ) = = " r e g e x p " ) ? a : n e w   R e g E x p ( " " + a , b ) ) . t e s t ( t h i s ) ; 
 } , c o n t a i n s : f u n c t i o n ( a , b ) { r e t u r n ( b ) ? ( b + t h i s + b ) . i n d e x O f ( b + a + b ) > - 1 : t h i s . i n d e x O f ( a ) > - 1 ; } , t r i m : f u n c t i o n ( ) { r e t u r n   t h i s . r e p l a c e ( / ^ \ s + | \ s + $ / g , " " ) ; } , c l e a n : f u n c t i o n ( ) { r e t u r n   t h i s . r e p l a c e ( / \ s + / g , "   " ) . t r i m ( ) ; 
 } , c a m e l C a s e : f u n c t i o n ( ) { r e t u r n   t h i s . r e p l a c e ( / - \ D / g , f u n c t i o n ( a ) { r e t u r n   a . c h a r A t ( 1 ) . t o U p p e r C a s e ( ) ; } ) ; } , h y p h e n a t e : f u n c t i o n ( ) { r e t u r n   t h i s . r e p l a c e ( / [ A - Z ] / g , f u n c t i o n ( a ) { r e t u r n ( " - " + a . c h a r A t ( 0 ) . t o L o w e r C a s e ( ) ) ; 
 } ) ; } , c a p i t a l i z e : f u n c t i o n ( ) { r e t u r n   t h i s . r e p l a c e ( / \ b [ a - z ] / g , f u n c t i o n ( a ) { r e t u r n   a . t o U p p e r C a s e ( ) ; } ) ; } , e s c a p e R e g E x p : f u n c t i o n ( ) { r e t u r n   t h i s . r e p l a c e ( / ( [ - . * + ? ^ $ { } ( ) | [ \ ] \ / \ \ ] ) / g , " \ \ $ 1 " ) ; 
 } , t o I n t : f u n c t i o n ( a ) { r e t u r n   p a r s e I n t ( t h i s , a | | 1 0 ) ; } , t o F l o a t : f u n c t i o n ( ) { r e t u r n   p a r s e F l o a t ( t h i s ) ; } , h e x T o R g b : f u n c t i o n ( b ) { v a r   a = t h i s . m a t c h ( / ^ # ? ( \ w { 1 , 2 } ) ( \ w { 1 , 2 } ) ( \ w { 1 , 2 } ) $ / ) ; 
 r e t u r n ( a ) ? a . s l i c e ( 1 ) . h e x T o R g b ( b ) : n u l l ; } , r g b T o H e x : f u n c t i o n ( b ) { v a r   a = t h i s . m a t c h ( / \ d { 1 , 3 } / g ) ; r e t u r n ( a ) ? a . r g b T o H e x ( b ) : n u l l ; } , s u b s t i t u t e : f u n c t i o n ( a , b ) { r e t u r n   t h i s . r e p l a c e ( b | | ( / \ \ ? \ { ( [ ^ { } ] + ) \ } / g ) , f u n c t i o n ( d , c ) { i f ( d . c h a r A t ( 0 ) = = " \ \ " ) { r e t u r n   d . s l i c e ( 1 ) ; 
 } r e t u r n ( a [ c ] ! = n u l l ) ? a [ c ] : " " ; } ) ; } } ) ; N u m b e r . i m p l e m e n t ( { l i m i t : f u n c t i o n ( b , a ) { r e t u r n   M a t h . m i n ( a , M a t h . m a x ( b , t h i s ) ) ; } , r o u n d : f u n c t i o n ( a ) { a = M a t h . p o w ( 1 0 , a | | 0 ) . t o F i x e d ( a < 0 ? - a : 0 ) ; 
 r e t u r n   M a t h . r o u n d ( t h i s * a ) / a ; } , t i m e s : f u n c t i o n ( b , c ) { f o r ( v a r   a = 0 ; a < t h i s ; a + + ) { b . c a l l ( c , a , t h i s ) ; } } , t o F l o a t : f u n c t i o n ( ) { r e t u r n   p a r s e F l o a t ( t h i s ) ; } , t o I n t : f u n c t i o n ( a ) { r e t u r n   p a r s e I n t ( t h i s , a | | 1 0 ) ; 
 } } ) ; N u m b e r . a l i a s ( " e a c h " , " t i m e s " ) ; ( f u n c t i o n ( b ) { v a r   a = { } ; b . e a c h ( f u n c t i o n ( c ) { i f ( ! N u m b e r [ c ] ) { a [ c ] = f u n c t i o n ( ) { r e t u r n   M a t h [ c ] . a p p l y ( n u l l , [ t h i s ] . c o n c a t ( A r r a y . f r o m ( a r g u m e n t s ) ) ) ; 
 } ; } } ) ; N u m b e r . i m p l e m e n t ( a ) ; } ) ( [ " a b s " , " a c o s " , " a s i n " , " a t a n " , " a t a n 2 " , " c e i l " , " c o s " , " e x p " , " f l o o r " , " l o g " , " m a x " , " m i n " , " p o w " , " s i n " , " s q r t " , " t a n " ] ) ; F u n c t i o n . e x t e n d ( { a t t e m p t : f u n c t i o n ( ) { f o r ( v a r   b = 0 , a = a r g u m e n t s . l e n g t h ; 
 b < a ; b + + ) { t r y { r e t u r n   a r g u m e n t s [ b ] ( ) ; } c a t c h ( c ) { } } r e t u r n   n u l l ; } } ) ; F u n c t i o n . i m p l e m e n t ( { a t t e m p t : f u n c t i o n ( a , c ) { t r y { r e t u r n   t h i s . a p p l y ( c , A r r a y . f r o m ( a ) ) ; } c a t c h ( b ) { } r e t u r n   n u l l ; 
 } , b i n d : f u n c t i o n ( c ) { v a r   a = t h i s , b = ( a r g u m e n t s . l e n g t h > 1 ) ? A r r a y . s l i c e ( a r g u m e n t s , 1 ) : n u l l ; r e t u r n   f u n c t i o n ( ) { i f ( ! b & & ! a r g u m e n t s . l e n g t h ) { r e t u r n   a . c a l l ( c ) ; } i f ( b & & a r g u m e n t s . l e n g t h ) { r e t u r n   a . a p p l y ( c , b . c o n c a t ( A r r a y . f r o m ( a r g u m e n t s ) ) ) ; 
 } r e t u r n   a . a p p l y ( c , b | | a r g u m e n t s ) ; } ; } , p a s s : f u n c t i o n ( b , c ) { v a r   a = t h i s ; i f ( b ! = n u l l ) { b = A r r a y . f r o m ( b ) ; } r e t u r n   f u n c t i o n ( ) { r e t u r n   a . a p p l y ( c , b | | a r g u m e n t s ) ; } ; } , d e l a y : f u n c t i o n ( b , c , a ) { r e t u r n   s e t T i m e o u t ( t h i s . p a s s ( ( a = = n u l l ? [ ] : a ) , c ) , b ) ; 
 } , p e r i o d i c a l : f u n c t i o n ( c , b , a ) { r e t u r n   s e t I n t e r v a l ( t h i s . p a s s ( ( a = = n u l l ? [ ] : a ) , b ) , c ) ; } } ) ; d e l e t e   F u n c t i o n . p r o t o t y p e . b i n d ; F u n c t i o n . i m p l e m e n t ( { c r e a t e : f u n c t i o n ( b ) { v a r   a = t h i s ; 
 b = b | | { } ; r e t u r n   f u n c t i o n ( d ) { v a r   c = b . a r g u m e n t s ; c = ( c ! = n u l l ) ? A r r a y . f r o m ( c ) : A r r a y . s l i c e ( a r g u m e n t s , ( b . e v e n t ) ? 1 : 0 ) ; i f ( b . e v e n t ) { c = [ d | | w i n d o w . e v e n t ] . e x t e n d ( c ) ; } v a r   e = f u n c t i o n ( ) { r e t u r n   a . a p p l y ( b . b i n d | | n u l l , c ) ; 
 } ; i f ( b . d e l a y ) { r e t u r n   s e t T i m e o u t ( e , b . d e l a y ) ; } i f ( b . p e r i o d i c a l ) { r e t u r n   s e t I n t e r v a l ( e , b . p e r i o d i c a l ) ; } i f ( b . a t t e m p t ) { r e t u r n   F u n c t i o n . a t t e m p t ( e ) ; } r e t u r n   e ( ) ; } ; 
 } , b i n d : f u n c t i o n ( c , b ) { v a r   a = t h i s ; i f ( b ! = n u l l ) { b = A r r a y . f r o m ( b ) ; } r e t u r n   f u n c t i o n ( ) { r e t u r n   a . a p p l y ( c , b | | a r g u m e n t s ) ; } ; } , b i n d W i t h E v e n t : f u n c t i o n ( c , b ) { v a r   a = t h i s ; 
 i f ( b ! = n u l l ) { b = A r r a y . f r o m ( b ) ; } r e t u r n   f u n c t i o n ( d ) { r e t u r n   a . a p p l y ( c , ( b = = n u l l ) ? a r g u m e n t s : [ d ] . c o n c a t ( b ) ) ; } ; } , r u n : f u n c t i o n ( a , b ) { r e t u r n   t h i s . a p p l y ( b , A r r a y . f r o m ( a ) ) ; 
 } } ) ; v a r   $ t r y = F u n c t i o n . a t t e m p t ; ( f u n c t i o n ( ) { v a r   a = 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 ; O b j e c t . e x t e n d ( { s u b s e t : f u n c t i o n ( d , g ) { v a r   f = { } ; f o r ( v a r   e = 0 , b = g . l e n g t h ; e < b ; 
 e + + ) { v a r   c = g [ e ] ; f [ c ] = d [ c ] ; } r e t u r n   f ; } , m a p : f u n c t i o n ( b , e , f ) { v a r   d = { } ; f o r ( v a r   c   i n   b ) { i f ( a . c a l l ( b , c ) ) { d [ c ] = e . c a l l ( f , b [ c ] , c , b ) ; } } r e t u r n   d ; } , f i l t e r : f u n c t i o n ( b , d , e ) { v a r   c = { } ; 
 O b j e c t . e a c h ( b , f u n c t i o n ( g , f ) { i f ( d . c a l l ( e , g , f , b ) ) { c [ f ] = g ; } } ) ; r e t u r n   c ; } , e v e r y : f u n c t i o n ( b , d , e ) { f o r ( v a r   c   i n   b ) { i f ( a . c a l l ( b , c ) & & ! d . c a l l ( e , b [ c ] , c ) ) { r e t u r n   f a l s e ; 
 } } r e t u r n   t r u e ; } , s o m e : f u n c t i o n ( b , d , e ) { f o r ( v a r   c   i n   b ) { i f ( a . c a l l ( b , c ) & & d . c a l l ( e , b [ c ] , c ) ) { r e t u r n   t r u e ; } } r e t u r n   f a l s e ; } , k e y s : f u n c t i o n ( b ) { v a r   d = [ ] ; f o r ( v a r   c   i n   b ) { i f ( a . c a l l ( b , c ) ) { d . p u s h ( c ) ; 
 } } r e t u r n   d ; } , v a l u e s : f u n c t i o n ( c ) { v a r   b = [ ] ; f o r ( v a r   d   i n   c ) { i f ( a . c a l l ( c , d ) ) { b . p u s h ( c [ d ] ) ; } } r e t u r n   b ; } , g e t L e n g t h : f u n c t i o n ( b ) { r e t u r n   O b j e c t . k e y s ( b ) . l e n g t h ; } , k e y O f : f u n c t i o n ( b , d ) { f o r ( v a r   c   i n   b ) { i f ( a . c a l l ( b , c ) & & b [ c ] = = = d ) { r e t u r n   c ; 
 } } r e t u r n   n u l l ; } , c o n t a i n s : f u n c t i o n ( b , c ) { r e t u r n   O b j e c t . k e y O f ( b , c ) ! = n u l l ; } , t o Q u e r y S t r i n g : f u n c t i o n ( b , c ) { v a r   d = [ ] ; O b j e c t . e a c h ( b , f u n c t i o n ( h , g ) { i f ( c ) { g = c + " [ " + g + " ] " ; 
 } v a r   f ; s w i t c h ( t y p e O f ( h ) ) { c a s e " o b j e c t " : f = O b j e c t . t o Q u e r y S t r i n g ( h , g ) ; b r e a k ; c a s e " a r r a y " : v a r   e = { } ; h . e a c h ( f u n c t i o n ( k , j ) { e [ j ] = k ; } ) ; f = O b j e c t . t o Q u e r y S t r i n g ( e , g ) ; 
 b r e a k ; d e f a u l t : f = g + " = " + e n c o d e U R I C o m p o n e n t ( h ) ; } i f ( h ! = n u l l ) { d . p u s h ( f ) ; } } ) ; r e t u r n   d . j o i n ( " & " ) ; } } ) ; } ) ( ) ; H a s h . i m p l e m e n t ( { h a s : 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 , k e y O f : f u n c t i o n ( a ) { r e t u r n   O b j e c t . k e y O f ( t h i s , a ) ; 
 } , h a s V a l u e : f u n c t i o n ( a ) { r e t u r n   O b j e c t . c o n t a i n s ( t h i s , a ) ; } , e x t e n d : f u n c t i o n ( a ) { H a s h . e a c h ( a | | { } , f u n c t i o n ( c , b ) { H a s h . s e t ( t h i s , b , c ) ; } , t h i s ) ; r e t u r n   t h i s ; } , c o m b i n e : f u n c t i o n ( a ) { H a s h . e a c h ( a | | { } , f u n c t i o n ( c , b ) { H a s h . i n c l u d e ( t h i s , b , c ) ; 
 } , t h i s ) ; r e t u r n   t h i s ; } , e r a s e : f u n c t i o n ( a ) { i f ( t h i s . h a s O w n P r o p e r t y ( a ) ) { d e l e t e   t h i s [ a ] ; } r e t u r n   t h i s ; } , g e t : f u n c t i o n ( a ) { r e t u r n ( t h i s . h a s O w n P r o p e r t y ( a ) ) ? t h i s [ a ] : n u l l ; 
 } , s e t : f u n c t i o n ( a , b ) { i f ( ! t h i s [ a ] | | t h i s . h a s O w n P r o p e r t y ( a ) ) { t h i s [ a ] = b ; } r e t u r n   t h i s ; } , e m p t y : f u n c t i o n ( ) { H a s h . e a c h ( t h i s , f u n c t i o n ( b , a ) { d e l e t e   t h i s [ a ] ; } , t h i s ) ; 
 r e t u r n   t h i s ; } , i n c l u d e : f u n c t i o n ( a , b ) { i f ( t h i s [ a ] = = n u l l ) { t h i s [ a ] = b ; } r e t u r n   t h i s ; } , m a p : f u n c t i o n ( a , b ) { r e t u r n   n e w   H a s h ( O b j e c t . m a p ( t h i s , a , b ) ) ; } , f i l t e r : f u n c t i o n ( a , b ) { r e t u r n   n e w   H a s h ( O b j e c t . f i l t e r ( t h i s , a , b ) ) ; 
 } , e v e r y : f u n c t i o n ( a , b ) { r e t u r n   O b j e c t . e v e r y ( t h i s , a , b ) ; } , s o m e : f u n c t i o n ( a , b ) { r e t u r n   O b j e c t . s o m e ( t h i s , a , b ) ; } , g e t K e y s : f u n c t i o n ( ) { r e t u r n   O b j e c t . k e y s ( t h i s ) ; } , g e t V a l u e s : f u n c t i o n ( ) { r e t u r n   O b j e c t . v a l u e s ( t h i s ) ; 
 } , t o Q u e r y S t r i n g : f u n c t i o n ( a ) { r e t u r n   O b j e c t . t o Q u e r y S t r i n g ( t h i s , a ) ; } } ) ; H a s h . e x t e n d = O b j e c t . a p p e n d ; H a s h . a l i a s ( { i n d e x O f : " k e y O f " , c o n t a i n s : " h a s V a l u e " } ) ; ( f u n c t i o n ( ) { v a r   l = t h i s . d o c u m e n t ; 
 v a r   j = l . w i n d o w = t h i s ; v a r   b = 1 ; t h i s . $ u i d = ( j . A c t i v e X O b j e c t ) ? f u n c t i o n ( e ) { r e t u r n ( e . u i d | | ( e . u i d = [ b + + ] ) ) [ 0 ] ; } : f u n c t i o n ( e ) { r e t u r n   e . u i d | | ( e . u i d = b + + ) ; } ; $ u i d ( j ) ; $ u i d ( l ) ; 
 v a r   a = n a v i g a t o r . u s e r A g e n t . t o L o w e r C a s e ( ) , c = n a v i g a t o r . p l a t f o r m . t o L o w e r C a s e ( ) , k = a . m a t c h ( / ( o p e r a | i e | f i r e f o x | c h r o m e | v e r s i o n ) [ \ s \ / : ] ( [ \ w \ d \ . ] + ) ? . * ? ( s a f a r i | v e r s i o n [ \ s \ / : ] ( [ \ w \ d \ . ] + ) | $ ) / ) | | [ n u l l , " u n k n o w n " , 0 ] , g = k [ 1 ] = = " i e " & & l . d o c u m e n t M o d e ; 
 v a r   p = t h i s . B r o w s e r = { e x t e n d : F u n c t i o n . p r o t o t y p e . e x t e n d , n a m e : ( k [ 1 ] = = " v e r s i o n " ) ? k [ 3 ] : k [ 1 ] , v e r s i o n : g | | p a r s e F l o a t ( ( k [ 1 ] = = " o p e r a " & & k [ 4 ] ) ? k [ 4 ] : k [ 2 ] ) , P l a t f o r m : { n a m e : a . m a t c h ( / i p ( ? : a d | o d | h o n e ) / ) ? " i o s " : ( a . m a t c h ( / ( ? : w e b o s | a n d r o i d ) / ) | | c . m a t c h ( / m a c | w i n | l i n u x / ) | | [ " o t h e r " ] ) [ 0 ] } , F e a t u r e s : { x p a t h : ! ! ( l . e v a l u a t e ) , a i r : ! ! ( j . r u n t i m e ) , q u e r y : ! ! ( l . q u e r y S e l e c t o r ) , j s o n : ! ! ( j . J S O N ) } , P l u g i n s : { } } ; 
 p [ p . n a m e ] = t r u e ; p [ p . n a m e + p a r s e I n t ( p . v e r s i o n , 1 0 ) ] = t r u e ; p . P l a t f o r m [ p . P l a t f o r m . n a m e ] = t r u e ; p . R e q u e s t = ( f u n c t i o n ( ) { v a r   r = f u n c t i o n ( ) { r e t u r n   n e w   X M L H t t p R e q u e s t ( ) ; 
 } ; v a r   q = f u n c t i o n ( ) { r e t u r n   n e w   A c t i v e X O b j e c t ( " M S X M L 2 . X M L H T T P " ) ; } ; v a r   e = f u n c t i o n ( ) { r e t u r n   n e w   A c t i v e X O b j e c t ( " M i c r o s o f t . X M L H T T P " ) ; } ; r e t u r n   F u n c t i o n . a t t e m p t ( f u n c t i o n ( ) { r ( ) ; 
 r e t u r n   r ; } , f u n c t i o n ( ) { q ( ) ; r e t u r n   q ; } , f u n c t i o n ( ) { e ( ) ; r e t u r n   e ; } ) ; } ) ( ) ; p . F e a t u r e s . x h r = ! ! ( p . R e q u e s t ) ; v a r   i = ( F u n c t i o n . a t t e m p t ( f u n c t i o n ( ) { r e t u r n   n a v i g a t o r . p l u g i n s [ " S h o c k w a v e   F l a s h " ] . d e s c r i p t i o n ; 
 } , f u n c t i o n ( ) { r e t u r n   n e w   A c t i v e X O b j e c t ( " S h o c k w a v e F l a s h . S h o c k w a v e F l a s h " ) . G e t V a r i a b l e ( " $ v e r s i o n " ) ; } ) | | " 0   r 0 " ) . m a t c h ( / \ d + / g ) ; p . P l u g i n s . F l a s h = { v e r s i o n : N u m b e r ( i [ 0 ] | | " 0 . " + i [ 1 ] ) | | 0 , b u i l d : N u m b e r ( i [ 2 ] ) | | 0 } ; 
 p . e x e c = f u n c t i o n ( q ) { i f ( ! q ) { r e t u r n   q ; } i f ( j . e x e c S c r i p t ) { j . e x e c S c r i p t ( q ) ; } e l s e { v a r   e = l . c r e a t e E l e m e n t ( " s c r i p t " ) ; e . s e t A t t r i b u t e ( " t y p e " , " t e x t / j a v a s c r i p t " ) ; e . t e x t = q ; 
 l . h e a d . a p p e n d C h i l d ( e ) ; l . h e a d . r e m o v e C h i l d ( e ) ; } r e t u r n   q ; } ; S t r i n g . i m p l e m e n t ( " s t r i p S c r i p t s " , f u n c t i o n ( q ) { v a r   e = " " ; v a r   r = t h i s . r e p l a c e ( / < s c r i p t [ ^ > ] * > ( [ \ s \ S ] * ? ) < \ / s c r i p t > / g i , f u n c t i o n ( s , t ) { e + = t + " \ n " ; 
 r e t u r n " " ; } ) ; i f ( q = = = t r u e ) { p . e x e c ( e ) ; } e l s e { i f ( t y p e O f ( q ) = = " f u n c t i o n " ) { q ( e , r ) ; } } r e t u r n   r ; } ) ; p . e x t e n d ( { D o c u m e n t : t h i s . D o c u m e n t , W i n d o w : t h i s . W i n d o w , E l e m e n t : t h i s . E l e m e n t , E v e n t : t h i s . E v e n t } ) ; 
 t h i s . W i n d o w = t h i s . $ c o n s t r u c t o r = n e w   T y p e ( " W i n d o w " , f u n c t i o n ( ) { } ) ; t h i s . $ f a m i l y = F u n c t i o n . f r o m ( " w i n d o w " ) . h i d e ( ) ; W i n d o w . m i r r o r ( f u n c t i o n ( e , q ) { j [ e ] = q ; } ) ; t h i s . D o c u m e n t = l . $ c o n s t r u c t o r = n e w   T y p e ( " D o c u m e n t " , f u n c t i o n ( ) { } ) ; 
 l . $ f a m i l y = F u n c t i o n . f r o m ( " d o c u m e n t " ) . h i d e ( ) ; D o c u m e n t . m i r r o r ( f u n c t i o n ( e , q ) { l [ e ] = q ; } ) ; l . h t m l = l . d o c u m e n t E l e m e n t ; l . h e a d = l . g e t E l e m e n t s B y T a g N a m e ( " h e a d " ) [ 0 ] ; i f ( l . e x e c C o m m a n d ) { t r y { l . e x e c C o m m a n d ( " B a c k g r o u n d I m a g e C a c h e " , f a l s e , t r u e ) ; 
 } c a t c h ( h ) { } } i f ( t h i s . a t t a c h E v e n t & & ! t h i s . a d d E v e n t L i s t e n e r ) { v a r   d = f u n c t i o n ( ) { t h i s . d e t a c h E v e n t ( " o n u n l o a d " , d ) ; l . h e a d = l . h t m l = l . w i n d o w = n u l l ; } ; t h i s . a t t a c h E v e n t ( " o n u n l o a d " , d ) ; 
 } v a r   n = A r r a y . f r o m ; t r y { n ( l . h t m l . c h i l d N o d e s ) ; } c a t c h ( h ) { A r r a y . f r o m = f u n c t i o n ( q ) { i f ( t y p e o f   q ! = " s t r i n g " & & T y p e . i s E n u m e r a b l e ( q ) & & t y p e O f ( q ) ! = " a r r a y " ) { v a r   e = q . l e n g t h , r = n e w   A r r a y ( e ) ; 
 w h i l e ( e - - ) { r [ e ] = q [ e ] ; } r e t u r n   r ; } r e t u r n   n ( q ) ; } ; v a r   m = A r r a y . p r o t o t y p e , o = m . s l i c e ; [ " p o p " , " p u s h " , " r e v e r s e " , " s h i f t " , " s o r t " , " s p l i c e " , " u n s h i f t " , " c o n c a t " , " j o i n " , " s l i c e " ] . e a c h ( f u n c t i o n ( e ) { v a r   q = m [ e ] ; 
 A r r a y [ e ] = f u n c t i o n ( r ) { r e t u r n   q . a p p l y ( A r r a y . f r o m ( r ) , o . c a l l ( a r g u m e n t s , 1 ) ) ; } ; } ) ; } i f ( p . P l a t f o r m . i o s ) { p . P l a t f o r m . i p o d = t r u e ; } p . E n g i n e = { } ; v a r   f = f u n c t i o n ( q , e ) { p . E n g i n e . n a m e = q ; 
 p . E n g i n e [ q + e ] = t r u e ; p . E n g i n e . v e r s i o n = e ; } ; i f ( p . i e ) { p . E n g i n e . t r i d e n t = t r u e ; s w i t c h ( p . v e r s i o n ) { c a s e   6 : f ( " t r i d e n t " , 4 ) ; b r e a k ; c a s e   7 : f ( " t r i d e n t " , 5 ) ; b r e a k ; c a s e   8 : f ( " t r i d e n t " , 6 ) ; 
 } } i f ( p . f i r e f o x ) { p . E n g i n e . g e c k o = t r u e ; i f ( p . v e r s i o n > = 3 ) { f ( " g e c k o " , 1 9 ) ; } e l s e { f ( " g e c k o " , 1 8 ) ; } } i f ( p . s a f a r i | | p . c h r o m e ) { p . E n g i n e . w e b k i t = t r u e ; s w i t c h ( p . v e r s i o n ) { c a s e   2 : f ( " w e b k i t " , 4 1 9 ) ; 
 b r e a k ; c a s e   3 : f ( " w e b k i t " , 4 2 0 ) ; b r e a k ; c a s e   4 : f ( " w e b k i t " , 5 2 5 ) ; } } i f ( p . o p e r a ) { p . E n g i n e . p r e s t o = t r u e ; i f ( p . v e r s i o n > = 9 . 6 ) { f ( " p r e s t o " , 9 6 0 ) ; } e l s e { i f ( p . v e r s i o n > = 9 . 5 ) { f ( " p r e s t o " , 9 5 0 ) ; 
 } e l s e { f ( " p r e s t o " , 9 2 5 ) ; } } } i f ( p . n a m e = = " u n k n o w n " ) { s w i t c h ( ( a . m a t c h ( / ( ? : w e b k i t | k h t m l | g e c k o ) / ) | | [ ] ) [ 0 ] ) { c a s e " w e b k i t " : c a s e " k h t m l " : p . E n g i n e . w e b k i t = t r u e ; b r e a k ; c a s e " g e c k o " : p . E n g i n e . g e c k o = t r u e ; 
 } } t h i s . $ e x e c = p . e x e c ; } ) . c a l l ( t h i s ) ; v a r   E v e n t = n e w   T y p e ( " E v e n t " , f u n c t i o n ( a , i ) { i f ( ! i ) { i = w i n d o w ; } v a r   o = i . d o c u m e n t ; a = a | | i . e v e n t ; i f ( a . $ e x t e n d e d ) { r e t u r n   a ; } t h i s . $ e x t e n d e d = t r u e ; 
 v a r   n = a . t y p e , k = a . t a r g e t | | a . s r c E l e m e n t , m = { } , c = { } , q = n u l l , h , l , b , p ; w h i l e ( k & & k . n o d e T y p e = = 3 ) { k = k . p a r e n t N o d e ; } i f ( n . i n d e x O f ( " k e y " ) ! = - 1 ) { b = a . w h i c h | | a . k e y C o d e ; p = O b j e c t . k e y O f ( E v e n t . K e y s , b ) ; 
 i f ( n = = " k e y d o w n " ) { v a r   d = b - 1 1 1 ; i f ( d > 0 & & d < 1 3 ) { p = " f " + d ; } } i f ( ! p ) { p = S t r i n g . f r o m C h a r C o d e ( b ) . t o L o w e r C a s e ( ) ; } } e l s e { i f ( ( / c l i c k | m o u s e | m e n u / i ) . t e s t ( n ) ) { o = ( ! o . c o m p a t M o d e | | o . c o m p a t M o d e = = " C S S 1 C o m p a t " ) ? o . h t m l : o . b o d y ; 
 m = { x : ( a . p a g e X ! = n u l l ) ? a . p a g e X : a . c l i e n t X + o . s c r o l l L e f t , y : ( a . p a g e Y ! = n u l l ) ? a . p a g e Y : a . c l i e n t Y + o . s c r o l l T o p } ; c = { x : ( a . p a g e X ! = n u l l ) ? a . p a g e X - i . p a g e X O f f s e t : a . c l i e n t X , y : ( a . p a g e Y ! = n u l l ) ? a . p a g e Y - i . p a g e Y O f f s e t : a . c l i e n t Y } ; 
 i f ( ( / D O M M o u s e S c r o l l | m o u s e w h e e l / ) . t e s t ( n ) ) { l = ( a . w h e e l D e l t a ) ? a . w h e e l D e l t a / 1 2 0 : - ( a . d e t a i l | | 0 ) / 3 ; } h = ( a . w h i c h = = 3 ) | | ( a . b u t t o n = = 2 ) ; i f ( ( / o v e r | o u t / ) . t e s t ( n ) ) { q = a . r e l a t e d T a r g e t | | a [ ( n = = " m o u s e o v e r " ? " f r o m " : " t o " ) + " E l e m e n t " ] ; 
 v a r   j = f u n c t i o n ( ) { w h i l e ( q & & q . n o d e T y p e = = 3 ) { q = q . p a r e n t N o d e ; } r e t u r n   t r u e ; } ; v a r   g = ( B r o w s e r . f i r e f o x 2 ) ? j . a t t e m p t ( ) : j ( ) ; q = ( g ) ? q : n u l l ; } } e l s e { i f ( ( / g e s t u r e | t o u c h / i ) . t e s t ( n ) ) { t h i s . r o t a t i o n = a . r o t a t i o n ; 
 t h i s . s c a l e = a . s c a l e ; t h i s . t a r g e t T o u c h e s = a . t a r g e t T o u c h e s ; t h i s . c h a n g e d T o u c h e s = a . c h a n g e d T o u c h e s ; v a r   f = t h i s . t o u c h e s = a . t o u c h e s ; i f ( f & & f [ 0 ] ) { v a r   e = f [ 0 ] ; m = { x : e . p a g e X , y : e . p a g e Y } ; 
 c = { x : e . c l i e n t X , y : e . c l i e n t Y } ; } } } } r e t u r n   O b j e c t . a p p e n d ( t h i s , { e v e n t : a , t y p e : n , p a g e : m , c l i e n t : c , r i g h t C l i c k : h , w h e e l : l , r e l a t e d T a r g e t : d o c u m e n t . i d ( q ) , t a r g e t : d o c u m e n t . i d ( k ) , c o d e : b , k e y : p , s h i f t : a . s h i f t K e y , c o n t r o l : a . c t r l K e y , a l t : a . a l t K e y , m e t a : a . m e t a K e y } ) ; 
 } ) ; E v e n t . K e y s = { e n t e r : 1 3 , u p : 3 8 , d o w n : 4 0 , l e f t : 3 7 , r i g h t : 3 9 , e s c : 2 7 , s p a c e : 3 2 , b a c k s p a c e : 8 , t a b : 9 , " d e l e t e " : 4 6 } ; E v e n t . K e y s = n e w   H a s h ( E v e n t . K e y s ) ; E v e n t . i m p l e m e n t ( { s t o p : f u n c t i o n ( ) { r e t u r n   t h i s . s t o p P r o p a g a t i o n ( ) . p r e v e n t D e f a u l t ( ) ; 
 } , s t o p P r o p a g a t i o n : f u n c t i o n ( ) { i f ( t h i s . e v e n t . s t o p P r o p a g a t i o n ) { t h i s . e v e n t . s t o p P r o p a g a t i o n ( ) ; } e l s e { t h i s . e v e n t . c a n c e l B u b b l e = t r u e ; } r e t u r n   t h i s ; } , p r e v e n t D e f a u l t : f u n c t i o n ( ) { i f ( t h i s . e v e n t . p r e v e n t D e f a u l t ) { t h i s . e v e n t . p r e v e n t D e f a u l t ( ) ; 
 } e l s e { t h i s . e v e n t . r e t u r n V a l u e = f a l s e ; } r e t u r n   t h i s ; } } ) ; ( f u n c t i o n ( ) { v a r   a = t h i s . C l a s s = n e w   T y p e ( " C l a s s " , f u n c t i o n ( h ) { i f ( i n s t a n c e O f ( h , F u n c t i o n ) ) { h = { i n i t i a l i z e : h } ; 
 } v a r   g = f u n c t i o n ( ) { e ( t h i s ) ; i f ( g . $ p r o t o t y p i n g ) { r e t u r n   t h i s ; } t h i s . $ c a l l e r = n u l l ; v a r   i = ( t h i s . i n i t i a l i z e ) ? t h i s . i n i t i a l i z e . a p p l y ( t h i s , a r g u m e n t s ) : t h i s ; t h i s . $ c a l l e r = t h i s . c a l l e r = n u l l ; 
 r e t u r n   i ; } . e x t e n d ( t h i s ) . i m p l e m e n t ( h ) ; g . $ c o n s t r u c t o r = a ; g . p r o t o t y p e . $ c o n s t r u c t o r = g ; g . p r o t o t y p e . p a r e n t = c ; r e t u r n   g ; } ) ; v a r   c = f u n c t i o n ( ) { i f ( ! t h i s . $ c a l l e r ) { t h r o w   n e w   E r r o r ( ' T h e   m e t h o d   " p a r e n t "   c a n n o t   b e   c a l l e d . ' ) ; 
 } v a r   g = t h i s . $ c a l l e r . $ n a m e , h = t h i s . $ c a l l e r . $ o w n e r . p a r e n t , i = ( h ) ? h . p r o t o t y p e [ g ] : n u l l ; i f ( ! i ) { t h r o w   n e w   E r r o r ( ' T h e   m e t h o d   " ' + g + ' "   h a s   n o   p a r e n t . ' ) ; } r e t u r n   i . a p p l y ( t h i s , a r g u m e n t s ) ; 
 } ; v a r   e = f u n c t i o n ( g ) { f o r ( v a r   h   i n   g ) { v a r   j = g [ h ] ; s w i t c h ( t y p e O f ( j ) ) { c a s e " o b j e c t " : v a r   i = f u n c t i o n ( ) { } ; i . p r o t o t y p e = j ; g [ h ] = e ( n e w   i ) ; b r e a k ; c a s e " a r r a y " : g [ h ] = j . c l o n e ( ) ; 
 b r e a k ; } } r e t u r n   g ; } ; v a r   b = f u n c t i o n ( g , h , j ) { i f ( j . $ o r i g i n ) { j = j . $ o r i g i n ; } v a r   i = f u n c t i o n ( ) { i f ( j . $ p r o t e c t e d & & t h i s . $ c a l l e r = = n u l l ) { t h r o w   n e w   E r r o r ( ' T h e   m e t h o d   " ' + h + ' "   c a n n o t   b e   c a l l e d . ' ) ; 
 } v a r   l = t h i s . c a l l e r , m = t h i s . $ c a l l e r ; t h i s . c a l l e r = m ; t h i s . $ c a l l e r = i ; v a r   k = j . a p p l y ( t h i s , a r g u m e n t s ) ; t h i s . $ c a l l e r = m ; t h i s . c a l l e r = l ; r e t u r n   k ; } . e x t e n d ( { $ o w n e r : g , $ o r i g i n : j , $ n a m e : h } ) ; 
 r e t u r n   i ; } ; v a r   f = f u n c t i o n ( h , i , g ) { i f ( a . M u t a t o r s . h a s O w n P r o p e r t y ( h ) ) { i = a . M u t a t o r s [ h ] . c a l l ( t h i s , i ) ; i f ( i = = n u l l ) { r e t u r n   t h i s ; } } i f ( t y p e O f ( i ) = = " f u n c t i o n " ) { i f ( i . $ h i d d e n ) { r e t u r n   t h i s ; 
 } t h i s . p r o t o t y p e [ h ] = ( g ) ? i : b ( t h i s , h , i ) ; } e l s e { O b j e c t . m e r g e ( t h i s . p r o t o t y p e , h , i ) ; } r e t u r n   t h i s ; } ; v a r   d = f u n c t i o n ( g ) { g . $ p r o t o t y p i n g = t r u e ; v a r   h = n e w   g ; d e l e t e   g . $ p r o t o t y p i n g ; 
 r e t u r n   h ; } ; a . i m p l e m e n t ( " i m p l e m e n t " , f . o v e r l o a d S e t t e r ( ) ) ; a . M u t a t o r s = { E x t e n d s : f u n c t i o n ( g ) { t h i s . p a r e n t = g ; t h i s . p r o t o t y p e = d ( g ) ; } , I m p l e m e n t s : f u n c t i o n ( g ) { A r r a y . f r o m ( g ) . e a c h ( f u n c t i o n ( j ) { v a r   h = n e w   j ; 
 f o r ( v a r   i   i n   h ) { f . c a l l ( t h i s , i , h [ i ] , t r u e ) ; } } , t h i s ) ; } } ; } ) . c a l l ( t h i s ) ; ( f u n c t i o n ( ) { t h i s . C h a i n = n e w   C l a s s ( { $ c h a i n : [ ] , c h a i n : f u n c t i o n ( ) { t h i s . $ c h a i n . a p p e n d ( A r r a y . f l a t t e n ( a r g u m e n t s ) ) ; 
 r e t u r n   t h i s ; } , c a l l C h a i n : f u n c t i o n ( ) { r e t u r n ( t h i s . $ c h a i n . l e n g t h ) ? t h i s . $ c h a i n . s h i f t ( ) . a p p l y ( t h i s , a r g u m e n t s ) : f a l s e ; } , c l e a r C h a i n : f u n c t i o n ( ) { t h i s . $ c h a i n . e m p t y ( ) ; 
 r e t u r n   t h i s ; } } ) ; v a r   a = f u n c t i o n ( b ) { r e t u r n   b . r e p l a c e ( / ^ o n ( [ A - Z ] ) / , f u n c t i o n ( c , d ) { r e t u r n   d . t o L o w e r C a s e ( ) ; } ) ; } ; t h i s . E v e n t s = n e w   C l a s s ( { $ e v e n t s : { } , a d d E v e n t : f u n c t i o n ( d , c , b ) { d = a ( d ) ; 
 i f ( c = = $ e m p t y ) { r e t u r n   t h i s ; } t h i s . $ e v e n t s [ d ] = ( t h i s . $ e v e n t s [ d ] | | [ ] ) . i n c l u d e ( c ) ; i f ( b ) { c . i n t e r n a l = t r u e ; } r e t u r n   t h i s ; } , a d d E v e n t s : f u n c t i o n ( b ) { f o r ( v a r   c   i n   b ) { t h i s . a d d E v e n t ( c , b [ c ] ) ; 
 } r e t u r n   t h i s ; } , f i r e E v e n t : f u n c t i o n ( e , c , b ) { e = a ( e ) ; v a r   d = t h i s . $ e v e n t s [ e ] ; i f ( ! d ) { r e t u r n   t h i s ; } c = A r r a y . f r o m ( c ) ; d . e a c h ( f u n c t i o n ( f ) { i f ( b ) { f . d e l a y ( b , t h i s , c ) ; } e l s e { f . a p p l y ( t h i s , c ) ; 
 } } , t h i s ) ; r e t u r n   t h i s ; } , r e m o v e E v e n t : f u n c t i o n ( e , d ) { e = a ( e ) ; v a r   c = t h i s . $ e v e n t s [ e ] ; i f ( c & & ! d . i n t e r n a l ) { v a r   b = c . i n d e x O f ( d ) ; i f ( b ! = - 1 ) { d e l e t e   c [ b ] ; } } r e t u r n   t h i s ; 
 } , r e m o v e E v e n t s : f u n c t i o n ( d ) { v a r   e ; i f ( t y p e O f ( d ) = = " o b j e c t " ) { f o r ( e   i n   d ) { t h i s . r e m o v e E v e n t ( e , d [ e ] ) ; } r e t u r n   t h i s ; } i f ( d ) { d = a ( d ) ; } f o r ( e   i n   t h i s . $ e v e n t s ) { i f ( d & & d ! = e ) { c o n t i n u e ; 
 } v a r   c = t h i s . $ e v e n t s [ e ] ; f o r ( v a r   b = c . l e n g t h ; b - - ; ) { i f ( b   i n   c ) { t h i s . r e m o v e E v e n t ( e , c [ b ] ) ; } } } r e t u r n   t h i s ; } } ) ; t h i s . O p t i o n s = n e w   C l a s s ( { s e t O p t i o n s : f u n c t i o n ( ) { v a r   b = t h i s . o p t i o n s = O b j e c t . m e r g e . a p p l y ( n u l l , [ { } , t h i s . o p t i o n s ] . a p p e n d ( a r g u m e n t s ) ) ; 
 i f ( t h i s . a d d E v e n t ) { f o r ( v a r   c   i n   b ) { i f ( t y p e O f ( b [ c ] ) ! = " f u n c t i o n " | | ! ( / ^ o n [ A - Z ] / ) . t e s t ( c ) ) { c o n t i n u e ; } t h i s . a d d E v e n t ( c , b [ c ] ) ; d e l e t e   b [ c ] ; } } r e t u r n   t h i s ; } } ) ; } ) . c a l l ( t h i s ) ; 
 ( f u n c t i o n ( ) { v a r   k , n , l , g , a = { } , c = { } , m = / \ \ / g ; v a r   e = f u n c t i o n ( q , p ) { i f ( q = = n u l l ) { r e t u r n   n u l l ; } i f ( q . S l i c k = = = t r u e ) { r e t u r n   q ; } q = ( " " + q ) . r e p l a c e ( / ^ \ s + | \ s + $ / g , " " ) ; g = ! ! p ; 
 v a r   o = ( g ) ? c : a ; i f ( o [ q ] ) { r e t u r n   o [ q ] ; } k = { S l i c k : t r u e , e x p r e s s i o n s : [ ] , r a w : q , r e v e r s e : f u n c t i o n ( ) { r e t u r n   e ( t h i s . r a w , t r u e ) ; } } ; n = - 1 ; w h i l e ( q ! = ( q = q . r e p l a c e ( j , b ) ) ) { } k . l e n g t h = k . e x p r e s s i o n s . l e n g t h ; 
 r e t u r n   o [ k . r a w ] = ( g ) ? h ( k ) : k ; } ; v a r   i = f u n c t i o n ( o ) { i f ( o = = = " ! " ) { r e t u r n "   " ; } e l s e { i f ( o = = = "   " ) { r e t u r n " ! " ; } e l s e { i f ( ( / ^ ! / ) . t e s t ( o ) ) { r e t u r n   o . r e p l a c e ( / ^ ! / , " " ) ; } e l s e { r e t u r n " ! " + o ; 
 } } } } ; v a r   h = f u n c t i o n ( u ) { v a r   r = u . e x p r e s s i o n s ; f o r ( v a r   p = 0 ; p < r . l e n g t h ; p + + ) { v a r   t = r [ p ] ; v a r   q = { p a r t s : [ ] , t a g : " * " , c o m b i n a t o r : i ( t [ 0 ] . c o m b i n a t o r ) } ; f o r ( v a r   o = 0 ; o < t . l e n g t h ; 
 o + + ) { v a r   s = t [ o ] ; i f ( ! s . r e v e r s e C o m b i n a t o r ) { s . r e v e r s e C o m b i n a t o r = "   " ; } s . c o m b i n a t o r = s . r e v e r s e C o m b i n a t o r ; d e l e t e   s . r e v e r s e C o m b i n a t o r ; } t . r e v e r s e ( ) . p u s h ( q ) ; } r e t u r n   u ; 
 } ; v a r   f = f u n c t i o n ( o ) { r e t u r n   o . r e p l a c e ( / [ - [ \ ] { } ( ) * + ? . \ \ ^ $ | , # \ s ] / g , f u n c t i o n ( p ) { r e t u r n " \ \ " + p ; } ) ; } ; v a r   j = n e w   R e g E x p ( " ^ ( ? : \ \ s * ( , ) \ \ s * | \ \ s * ( < c o m b i n a t o r > + ) \ \ s * | ( \ \ s + ) | ( < u n i c o d e > + | \ \ * ) | \ \ # ( < u n i c o d e > + ) | \ \ . ( < u n i c o d e > + ) | \ \ [ \ \ s * ( < u n i c o d e 1 > + ) ( ? : \ \ s * ( [ * ^ $ ! ~ | ] ? = ) ( ? : \ \ s * ( ? : ( [ \ " ' ] ? ) ( . * ? ) \ \ 9 ) ) ) ? \ \ s * \ \ ] ( ? ! \ \ ] ) | ( : + ) ( < u n i c o d e > + ) ( ? : \ \ ( ( ? : ( ? : ( [ \ " ' ] ) ( [ ^ \ \ 1 3 ] * ) \ \ 1 3 ) | ( ( ? : \ \ ( [ ^ ) ] + \ \ ) | [ ^ ( ) ] * ) + ) ) \ \ ) ) ? ) " . r e p l a c e ( / < c o m b i n a t o r > / , " [ " + f ( " > + ~ ` ! @ $ % ^ & = { } \ \ ; < / " ) + " ] " ) . r e p l a c e ( / < u n i c o d e > / g , " ( ? : [ \ \ w \ \ u 0 0 a 1 - \ \ u F F F F - ] | \ \ \ \ [ ^ \ \ s 0 - 9 a - f ] ) " ) . r e p l a c e ( / < u n i c o d e 1 > / g , " ( ? : [ : \ \ w \ \ u 0 0 a 1 - \ \ u F F F F - ] | \ \ \ \ [ ^ \ \ s 0 - 9 a - f ] ) " ) ) ; 
 f u n c t i o n   b ( x , s , D , z , r , C , q , B , A , y , u , F , G , v , p , w ) { i f ( s | | n = = = - 1 ) { k . e x p r e s s i o n s [ + + n ] = [ ] ; l = - 1 ; i f ( s ) { r e t u r n " " ; } } i f ( D | | z | | l = = = - 1 ) { D = D | | "   " ; v a r   t = k . e x p r e s s i o n s [ n ] ; 
 i f ( g & & t [ l ] ) { t [ l ] . r e v e r s e C o m b i n a t o r = i ( D ) ; } t [ + + l ] = { c o m b i n a t o r : D , t a g : " * " } ; } v a r   o = k . e x p r e s s i o n s [ n ] [ l ] ; i f ( r ) { o . t a g = r . r e p l a c e ( m , " " ) ; } e l s e { i f ( C ) { o . i d = C . r e p l a c e ( m , " " ) ; 
 } e l s e { i f ( q ) { q = q . r e p l a c e ( m , " " ) ; i f ( ! o . c l a s s L i s t ) { o . c l a s s L i s t = [ ] ; } i f ( ! o . c l a s s e s ) { o . c l a s s e s = [ ] ; } o . c l a s s L i s t . p u s h ( q ) ; o . c l a s s e s . p u s h ( { v a l u e : q , r e g e x p : n e w   R e g E x p ( " ( ^ | \ \ s ) " + f ( q ) + " ( \ \ s | $ ) " ) } ) ; 
 } e l s e { i f ( G ) { w = w | | p ; w = w ? w . r e p l a c e ( m , " " ) : n u l l ; i f ( ! o . p s e u d o s ) { o . p s e u d o s = [ ] ; } o . p s e u d o s . p u s h ( { k e y : G . r e p l a c e ( m , " " ) , v a l u e : w , t y p e : F . l e n g t h = = 1 ? " c l a s s " : " e l e m e n t " } ) ; 
 } e l s e { i f ( B ) { B = B . r e p l a c e ( m , " " ) ; u = ( u | | " " ) . r e p l a c e ( m , " " ) ; v a r   E , H ; s w i t c h ( A ) { c a s e " ^ = " : H = n e w   R e g E x p ( " ^ " + f ( u ) ) ; b r e a k ; c a s e " $ = " : H = n e w   R e g E x p ( f ( u ) + " $ " ) ; b r e a k ; c a s e " ~ = " : H = n e w   R e g E x p ( " ( ^ | \ \ s ) " + f ( u ) + " ( \ \ s | $ ) " ) ; 
 b r e a k ; c a s e " | = " : H = n e w   R e g E x p ( " ^ " + f ( u ) + " ( - | $ ) " ) ; b r e a k ; c a s e " = " : E = f u n c t i o n ( I ) { r e t u r n   u = = I ; } ; b r e a k ; c a s e " * = " : E = f u n c t i o n ( I ) { r e t u r n   I & & I . i n d e x O f ( u ) > - 1 ; } ; b r e a k ; 
 c a s e " ! = " : E = f u n c t i o n ( I ) { r e t u r n   u ! = I ; } ; b r e a k ; d e f a u l t : E = f u n c t i o n ( I ) { r e t u r n   ! ! I ; } ; } i f ( u = = " " & & ( / ^ [ * $ ^ ] = $ / ) . t e s t ( A ) ) { E = f u n c t i o n ( ) { r e t u r n   f a l s e ; } ; } i f ( ! E ) { E = f u n c t i o n ( I ) { r e t u r n   I & & H . t e s t ( I ) ; 
 } ; } i f ( ! o . a t t r i b u t e s ) { o . a t t r i b u t e s = [ ] ; } o . a t t r i b u t e s . p u s h ( { k e y : B , o p e r a t o r : A , v a l u e : u , t e s t : E } ) ; } } } } } r e t u r n " " ; } v a r   d = ( t h i s . S l i c k | | { } ) ; d . p a r s e = f u n c t i o n ( o ) { r e t u r n   e ( o ) ; 
 } ; d . e s c a p e R e g E x p = f ; i f ( ! t h i s . S l i c k ) { t h i s . S l i c k = d ; } } ) . a p p l y ( ( t y p e o f   e x p o r t s ! = " u n d e f i n e d " ) ? e x p o r t s : t h i s ) ; ( f u n c t i o n ( ) { v a r   j = { } , l = { } , b = O b j e c t . p r o t o t y p e . t o S t r i n g ; 
 j . i s N a t i v e C o d e = f u n c t i o n ( c ) { r e t u r n ( / \ { \ s * \ [ n a t i v e   c o d e \ ] \ s * \ } / ) . t e s t ( " " + c ) ; } ; j . i s X M L = f u n c t i o n ( c ) { r e t u r n ( ! ! c . x m l V e r s i o n ) | | ( ! ! c . x m l ) | | ( b . c a l l ( c ) = = " [ o b j e c t   X M L D o c u m e n t ] " ) | | ( c . n o d e T y p e = = 9 & & c . d o c u m e n t E l e m e n t . n o d e N a m e ! = " H T M L " ) ; 
 } ; j . s e t D o c u m e n t = f u n c t i o n ( w ) { v a r   t = w . n o d e T y p e ; i f ( t = = 9 ) { } e l s e { i f ( t ) { w = w . o w n e r D o c u m e n t ; } e l s e { i f ( w . n a v i g a t o r ) { w = w . d o c u m e n t ; } e l s e { r e t u r n ; } } } i f ( t h i s . d o c u m e n t = = = w ) { r e t u r n ; 
 } t h i s . d o c u m e n t = w ; v a r   y = w . d o c u m e n t E l e m e n t , u = t h i s . g e t U I D X M L ( y ) , o = l [ u ] , A ; i f ( o ) { f o r ( A   i n   o ) { t h i s [ A ] = o [ A ] ; } r e t u r n ; } o = l [ u ] = { } ; o . r o o t = y ; o . i s X M L D o c u m e n t = t h i s . i s X M L ( w ) ; 
 o . b r o k e n S t a r G E B T N = o . s t a r S e l e c t s C l o s e d Q S A = o . i d G e t s N a m e = o . b r o k e n M i x e d C a s e Q S A = o . b r o k e n G E B C N = o . b r o k e n C h e c k e d Q S A = o . b r o k e n E m p t y A t t r i b u t e Q S A = o . i s H T M L D o c u m e n t = o . n a t i v e M a t c h e s S e l e c t o r = f a l s e ; 
 v a r   m , n , x , q , r ; v a r   s , c = " s l i c k _ u n i q u e i d " ; v a r   z = w . c r e a t e E l e m e n t ( " d i v " ) ; v a r   p = w . b o d y | | w . g e t E l e m e n t s B y T a g N a m e ( " b o d y " ) [ 0 ] | | y ; p . a p p e n d C h i l d ( z ) ; t r y { z . i n n e r H T M L = ' < a   i d = " ' + c + ' " > < / a > ' ; 
 o . i s H T M L D o c u m e n t = ! ! w . g e t E l e m e n t B y I d ( c ) ; } c a t c h ( v ) { } i f ( o . i s H T M L D o c u m e n t ) { z . s t y l e . d i s p l a y = " n o n e " ; z . a p p e n d C h i l d ( w . c r e a t e C o m m e n t ( " " ) ) ; n = ( z . g e t E l e m e n t s B y T a g N a m e ( " * " ) . l e n g t h > 1 ) ; 
 t r y { z . i n n e r H T M L = " f o o < / f o o > " ; s = z . g e t E l e m e n t s B y T a g N a m e ( " * " ) ; m = ( s & & ! ! s . l e n g t h & & s [ 0 ] . n o d e N a m e . c h a r A t ( 0 ) = = " / " ) ; } c a t c h ( v ) { } o . b r o k e n S t a r G E B T N = n | | m ; t r y { z . i n n e r H T M L = ' < a   n a m e = " ' + c + ' " > < / a > < b   i d = " ' + c + ' " > < / b > ' ; 
 o . i d G e t s N a m e = w . g e t E l e m e n t B y I d ( c ) = = = z . f i r s t C h i l d ; } c a t c h ( v ) { } i f ( z . g e t E l e m e n t s B y C l a s s N a m e ) { t r y { z . i n n e r H T M L = ' < a   c l a s s = " f " > < / a > < a   c l a s s = " b " > < / a > ' ; z . g e t E l e m e n t s B y C l a s s N a m e ( " b " ) . l e n g t h ; 
 z . f i r s t C h i l d . c l a s s N a m e = " b " ; q = ( z . g e t E l e m e n t s B y C l a s s N a m e ( " b " ) . l e n g t h ! = 2 ) ; } c a t c h ( v ) { } t r y { z . i n n e r H T M L = ' < a   c l a s s = " a " > < / a > < a   c l a s s = " f   b   a " > < / a > ' ; x = ( z . g e t E l e m e n t s B y C l a s s N a m e ( " a " ) . l e n g t h ! = 2 ) ; 
 } c a t c h ( v ) { } o . b r o k e n G E B C N = q | | x ; } i f ( z . q u e r y S e l e c t o r A l l ) { t r y { z . i n n e r H T M L = " f o o < / f o o > " ; s = z . q u e r y S e l e c t o r A l l ( " * " ) ; o . s t a r S e l e c t s C l o s e d Q S A = ( s & & ! ! s . l e n g t h & & s [ 0 ] . n o d e N a m e . c h a r A t ( 0 ) = = " / " ) ; 
 } c a t c h ( v ) { } t r y { z . i n n e r H T M L = ' < a   c l a s s = " M i X " > < / a > ' ; o . b r o k e n M i x e d C a s e Q S A = ! z . q u e r y S e l e c t o r A l l ( " . M i X " ) . l e n g t h ; } c a t c h ( v ) { } t r y { z . i n n e r H T M L = ' < s e l e c t > < o p t i o n   s e l e c t e d = " s e l e c t e d " > a < / o p t i o n > < / s e l e c t > ' ; 
 o . b r o k e n C h e c k e d Q S A = ( z . q u e r y S e l e c t o r A l l ( " : c h e c k e d " ) . l e n g t h = = 0 ) ; } c a t c h ( v ) { } t r y { z . i n n e r H T M L = ' < a   c l a s s = " " > < / a > ' ; o . b r o k e n E m p t y A t t r i b u t e Q S A = ( z . q u e r y S e l e c t o r A l l ( ' [ c l a s s * = " " ] ' ) . l e n g t h ! = 0 ) ; 
 } c a t c h ( v ) { } } t r y { z . i n n e r H T M L = ' < f o r m   a c t i o n = " s " > < i n p u t   i d = " a c t i o n " / > < / f o r m > ' ; r = ( z . f i r s t C h i l d . g e t A t t r i b u t e ( " a c t i o n " ) ! = " s " ) ; } c a t c h ( v ) { } o . n a t i v e M a t c h e s S e l e c t o r = y . m a t c h e s S e l e c t o r | | y . m o z M a t c h e s S e l e c t o r | | y . w e b k i t M a t c h e s S e l e c t o r ; 
 i f ( o . n a t i v e M a t c h e s S e l e c t o r ) { t r y { o . n a t i v e M a t c h e s S e l e c t o r . c a l l ( y , " : s l i c k " ) ; o . n a t i v e M a t c h e s S e l e c t o r = n u l l ; } c a t c h ( v ) { } } } t r y { y . s l i c k _ e x p a n d o = 1 ; d e l e t e   y . s l i c k _ e x p a n d o ; 
 o . g e t U I D = t h i s . g e t U I D H T M L ; } c a t c h ( v ) { o . g e t U I D = t h i s . g e t U I D X M L ; } p . r e m o v e C h i l d ( z ) ; z = s = p = n u l l ; o . g e t A t t r i b u t e = ( o . i s H T M L D o c u m e n t & & r ) ? f u n c t i o n ( D , B ) { v a r   E = t h i s . a t t r i b u t e G e t t e r s [ B ] ; 
 i f ( E ) { r e t u r n   E . c a l l ( D ) ; } v a r   C = D . g e t A t t r i b u t e N o d e ( B ) ; r e t u r n ( C ) ? C . n o d e V a l u e : n u l l ; } : f u n c t i o n ( C , B ) { v a r   D = t h i s . a t t r i b u t e G e t t e r s [ B ] ; r e t u r n ( D ) ? D . c a l l ( C ) : C . g e t A t t r i b u t e ( B ) ; 
 } ; o . h a s A t t r i b u t e = ( y & & t h i s . i s N a t i v e C o d e ( y . h a s A t t r i b u t e ) ) ? f u n c t i o n ( C , B ) { r e t u r n   C . h a s A t t r i b u t e ( B ) ; } : f u n c t i o n ( C , B ) { C = C . g e t A t t r i b u t e N o d e ( B ) ; r e t u r n   ! ! ( C & & ( C . s p e c i f i e d | | C . n o d e V a l u e ) ) ; 
 } ; o . c o n t a i n s = ( y & & t h i s . i s N a t i v e C o d e ( y . c o n t a i n s ) ) ? f u n c t i o n ( B , C ) { r e t u r n   B . c o n t a i n s ( C ) ; } : ( y & & y . c o m p a r e D o c u m e n t P o s i t i o n ) ? f u n c t i o n ( B , C ) { r e t u r n   B = = = C | | ! ! ( B . c o m p a r e D o c u m e n t P o s i t i o n ( C ) & 1 6 ) ; 
 } : f u n c t i o n ( B , C ) { i f ( C ) { d o { i f ( C = = = B ) { r e t u r n   t r u e ; } } w h i l e ( ( C = C . p a r e n t N o d e ) ) ; } r e t u r n   f a l s e ; } ; o . d o c u m e n t S o r t e r = ( y . c o m p a r e D o c u m e n t P o s i t i o n ) ? f u n c t i o n ( C , B ) { i f ( ! C . c o m p a r e D o c u m e n t P o s i t i o n | | ! B . c o m p a r e D o c u m e n t P o s i t i o n ) { r e t u r n   0 ; 
 } r e t u r n   C . c o m p a r e D o c u m e n t P o s i t i o n ( B ) & 4 ? - 1 : C = = = B ? 0 : 1 ; } : ( " s o u r c e I n d e x "   i n   y ) ? f u n c t i o n ( C , B ) { i f ( ! C . s o u r c e I n d e x | | ! B . s o u r c e I n d e x ) { r e t u r n   0 ; } r e t u r n   C . s o u r c e I n d e x - B . s o u r c e I n d e x ; 
 } : ( w . c r e a t e R a n g e ) ? f u n c t i o n ( E , C ) { i f ( ! E . o w n e r D o c u m e n t | | ! C . o w n e r D o c u m e n t ) { r e t u r n   0 ; } v a r   D = E . o w n e r D o c u m e n t . c r e a t e R a n g e ( ) , B = C . o w n e r D o c u m e n t . c r e a t e R a n g e ( ) ; D . s e t S t a r t ( E , 0 ) ; 
 D . s e t E n d ( E , 0 ) ; B . s e t S t a r t ( C , 0 ) ; B . s e t E n d ( C , 0 ) ; r e t u r n   D . c o m p a r e B o u n d a r y P o i n t s ( R a n g e . S T A R T _ T O _ E N D , B ) ; } : n u l l ; y = n u l l ; f o r ( A   i n   o ) { t h i s [ A ] = o [ A ] ; } } ; v a r   e = / ^ ( [ # . ] ? ) ( ( ? : [ \ w - ] + | \ * ) ) $ / , g = / \ [ . + [ * $ ^ ] = ( ? : " " | ' ' ) ? \ ] / , f = { } ; 
 j . s e a r c h = f u n c t i o n ( q , D , O , v ) { v a r   B = t h i s . f o u n d = ( v ) ? n u l l : ( O | | [ ] ) ; i f ( ! q ) { r e t u r n   B ; } e l s e { i f ( q . n a v i g a t o r ) { q = q . d o c u m e n t ; } e l s e { i f ( ! q . n o d e T y p e ) { r e t u r n   B ; } } } v a r   z , N , s = t h i s . u n i q u e s = { } , y = ! ! ( O & & O . l e n g t h ) , c = ( q . n o d e T y p e = = 9 ) ; 
 i f ( t h i s . d o c u m e n t ! = = ( c ? q : q . o w n e r D o c u m e n t ) ) { t h i s . s e t D o c u m e n t ( q ) ; } i f ( y ) { f o r ( N = B . l e n g t h ; N - - ; ) { s [ t h i s . g e t U I D ( B [ N ] ) ] = t r u e ; } } i f ( t y p e o f   D = = " s t r i n g " ) { v a r   C = D . m a t c h ( e ) ; 
 s i m p l e S e l e c t o r s : i f ( C ) { v a r   K = C [ 1 ] , V = C [ 2 ] , I , G ; i f ( ! K ) { i f ( V = = " * " & & t h i s . b r o k e n S t a r G E B T N ) { b r e a k   s i m p l e S e l e c t o r s ; } G = q . g e t E l e m e n t s B y T a g N a m e ( V ) ; i f ( v ) { r e t u r n   G [ 0 ] | | n u l l ; 
 } f o r ( N = 0 ; I = G [ N + + ] ; ) { i f ( ! ( y & & s [ t h i s . g e t U I D ( I ) ] ) ) { B . p u s h ( I ) ; } } } e l s e { i f ( K = = " # " ) { i f ( ! t h i s . i s H T M L D o c u m e n t | | ! c ) { b r e a k   s i m p l e S e l e c t o r s ; } I = q . g e t E l e m e n t B y I d ( V ) ; 
 i f ( ! I ) { r e t u r n   B ; } i f ( t h i s . i d G e t s N a m e & & I . g e t A t t r i b u t e N o d e ( " i d " ) . n o d e V a l u e ! = V ) { b r e a k   s i m p l e S e l e c t o r s ; } i f ( v ) { r e t u r n   I | | n u l l ; } i f ( ! ( y & & s [ t h i s . g e t U I D ( I ) ] ) ) { B . p u s h ( I ) ; 
 } } e l s e { i f ( K = = " . " ) { i f ( ! t h i s . i s H T M L D o c u m e n t | | ( ( ! q . g e t E l e m e n t s B y C l a s s N a m e | | t h i s . b r o k e n G E B C N ) & & q . q u e r y S e l e c t o r A l l ) ) { b r e a k   s i m p l e S e l e c t o r s ; } i f ( q . g e t E l e m e n t s B y C l a s s N a m e & & ! t h i s . b r o k e n G E B C N ) { G = q . g e t E l e m e n t s B y C l a s s N a m e ( V ) ; 
 i f ( v ) { r e t u r n   G [ 0 ] | | n u l l ; } f o r ( N = 0 ; I = G [ N + + ] ; ) { i f ( ! ( y & & s [ t h i s . g e t U I D ( I ) ] ) ) { B . p u s h ( I ) ; } } } e l s e { v a r   u = n e w   R e g E x p ( " ( ^ | \ \ s ) " + d . e s c a p e R e g E x p ( V ) + " ( \ \ s | $ ) " ) ; G = q . g e t E l e m e n t s B y T a g N a m e ( " * " ) ; 
 f o r ( N = 0 ; I = G [ N + + ] ; ) { c l a s s N a m e = I . c l a s s N a m e ; i f ( ! ( c l a s s N a m e & & u . t e s t ( c l a s s N a m e ) ) ) { c o n t i n u e ; } i f ( v ) { r e t u r n   I ; } i f ( ! ( y & & s [ t h i s . g e t U I D ( I ) ] ) ) { B . p u s h ( I ) ; } } } } } } i f ( y ) { t h i s . s o r t ( B ) ; 
 } r e t u r n ( v ) ? n u l l : B ; } q u e r y S e l e c t o r : i f ( q . q u e r y S e l e c t o r A l l ) { i f ( ! t h i s . i s H T M L D o c u m e n t | | t h i s . b r o k e n M i x e d C a s e Q S A | | f [ D ] | | ( t h i s . b r o k e n C h e c k e d Q S A & & D . i n d e x O f ( " : c h e c k e d " ) > - 1 ) | | ( t h i s . b r o k e n E m p t y A t t r i b u t e Q S A & & g . t e s t ( D ) ) | | d . d i s a b l e Q S A ) { b r e a k   q u e r y S e l e c t o r ; 
 } v a r   A = D ; i f ( ! c ) { v a r   M = q . g e t A t t r i b u t e ( " i d " ) , p = " s l i c k i d _ _ " ; q . s e t A t t r i b u t e ( " i d " , p ) ; A = " # " + p + "   " + A ; } t r y { i f ( v ) { r e t u r n   q . q u e r y S e l e c t o r ( A ) | | n u l l ; } e l s e { G = q . q u e r y S e l e c t o r A l l ( A ) ; 
 } } c a t c h ( P ) { f [ D ] = 1 ; b r e a k   q u e r y S e l e c t o r ; } f i n a l l y { i f ( ! c ) { i f ( M ) { q . s e t A t t r i b u t e ( " i d " , M ) ; } e l s e { q . r e m o v e A t t r i b u t e ( " i d " ) ; } } } i f ( t h i s . s t a r S e l e c t s C l o s e d Q S A ) { f o r ( N = 0 ; 
 I = G [ N + + ] ; ) { i f ( I . n o d e N a m e > " @ " & & ! ( y & & s [ t h i s . g e t U I D ( I ) ] ) ) { B . p u s h ( I ) ; } } } e l s e { f o r ( N = 0 ; I = G [ N + + ] ; ) { i f ( ! ( y & & s [ t h i s . g e t U I D ( I ) ] ) ) { B . p u s h ( I ) ; } } } i f ( y ) { t h i s . s o r t ( B ) ; 
 } r e t u r n   B ; } z = t h i s . S l i c k . p a r s e ( D ) ; i f ( ! z . l e n g t h ) { r e t u r n   B ; } } e l s e { i f ( D = = n u l l ) { r e t u r n   B ; } e l s e { i f ( D . S l i c k ) { z = D ; } e l s e { i f ( t h i s . c o n t a i n s ( q . d o c u m e n t E l e m e n t | | q , D ) ) { ( B ) ? B . p u s h ( D ) : B = D ; 
 r e t u r n   B ; } e l s e { r e t u r n   B ; } } } } t h i s . p o s N T H = { } ; t h i s . p o s N T H L a s t = { } ; t h i s . p o s N T H T y p e = { } ; t h i s . p o s N T H T y p e L a s t = { } ; t h i s . p u s h = ( ! y & & ( v | | ( z . l e n g t h = = 1 & & z . e x p r e s s i o n s [ 0 ] . l e n g t h = = 1 ) ) ) ? t h i s . p u s h A r r a y : t h i s . p u s h U I D ; 
 i f ( B = = n u l l ) { B = [ ] ; } v a r   L , H , F ; v a r   J , U , E , T , Q , x , t ; v a r   w , r , o , R , S = z . e x p r e s s i o n s ; s e a r c h : f o r ( N = 0 ; ( r = S [ N ] ) ; N + + ) { f o r ( L = 0 ; ( o = r [ L ] ) ; L + + ) { J = " c o m b i n a t o r : " + o . c o m b i n a t o r ; 
 i f ( ! t h i s [ J ] ) { c o n t i n u e   s e a r c h ; } U = ( t h i s . i s X M L D o c u m e n t ) ? o . t a g : o . t a g . t o U p p e r C a s e ( ) ; E = o . i d ; T = o . c l a s s L i s t ; Q = o . c l a s s e s ; x = o . a t t r i b u t e s ; t = o . p s e u d o s ; R = ( L = = = ( r . l e n g t h - 1 ) ) ; 
 t h i s . b i t U n i q u e s = { } ; i f ( R ) { t h i s . u n i q u e s = s ; t h i s . f o u n d = B ; } e l s e { t h i s . u n i q u e s = { } ; t h i s . f o u n d = [ ] ; } i f ( L = = = 0 ) { t h i s [ J ] ( q , U , E , Q , x , t , T ) ; i f ( v & & R & & B . l e n g t h ) { b r e a k   s e a r c h ; 
 } } e l s e { i f ( v & & R ) { f o r ( H = 0 , F = w . l e n g t h ; H < F ; H + + ) { t h i s [ J ] ( w [ H ] , U , E , Q , x , t , T ) ; i f ( B . l e n g t h ) { b r e a k   s e a r c h ; } } } e l s e { f o r ( H = 0 , F = w . l e n g t h ; H < F ; H + + ) { t h i s [ J ] ( w [ H ] , U , E , Q , x , t , T ) ; 
 } } } w = t h i s . f o u n d ; } } i f ( y | | ( z . e x p r e s s i o n s . l e n g t h > 1 ) ) { t h i s . s o r t ( B ) ; } r e t u r n ( v ) ? ( B [ 0 ] | | n u l l ) : B ; } ; j . u i d x = 1 ; j . u i d k = " s l i c k - u n i q u e i d " ; j . g e t U I D X M L = f u n c t i o n ( m ) { v a r   c = m . g e t A t t r i b u t e ( t h i s . u i d k ) ; 
 i f ( ! c ) { c = t h i s . u i d x + + ; m . s e t A t t r i b u t e ( t h i s . u i d k , c ) ; } r e t u r n   c ; } ; j . g e t U I D H T M L = f u n c t i o n ( c ) { r e t u r n   c . u n i q u e N u m b e r | | ( c . u n i q u e N u m b e r = t h i s . u i d x + + ) ; } ; j . s o r t = f u n c t i o n ( c ) { i f ( ! t h i s . d o c u m e n t S o r t e r ) { r e t u r n   c ; 
 } c . s o r t ( t h i s . d o c u m e n t S o r t e r ) ; r e t u r n   c ; } ; j . c a c h e N T H = { } ; j . m a t c h N T H = / ^ ( [ + - ] ? \ d * ) ? ( [ a - z ] + ) ? ( [ + - ] \ d + ) ? $ / ; j . p a r s e N T H A r g u m e n t = f u n c t i o n ( p ) { v a r   n = p . m a t c h ( t h i s . m a t c h N T H ) ; 
 i f ( ! n ) { r e t u r n   f a l s e ; } v a r   o = n [ 2 ] | | f a l s e ; v a r   m = n [ 1 ] | | 1 ; i f ( m = = " - " ) { m = - 1 ; } v a r   c = + n [ 3 ] | | 0 ; n = ( o = = " n " ) ? { a : m , b : c } : ( o = = " o d d " ) ? { a : 2 , b : 1 } : ( o = = " e v e n " ) ? { a : 2 , b : 0 } : { a : 0 , b : m } ; 
 r e t u r n ( t h i s . c a c h e N T H [ p ] = n ) ; } ; j . c r e a t e N T H P s e u d o = f u n c t i o n ( o , m , c , n ) { r e t u r n   f u n c t i o n ( r , p ) { v a r   t = t h i s . g e t U I D ( r ) ; i f ( ! t h i s [ c ] [ t ] ) { v a r   z = r . p a r e n t N o d e ; i f ( ! z ) { r e t u r n   f a l s e ; 
 } v a r   q = z [ o ] , s = 1 ; i f ( n ) { v a r   y = r . n o d e N a m e ; d o { i f ( q . n o d e N a m e ! = y ) { c o n t i n u e ; } t h i s [ c ] [ t h i s . g e t U I D ( q ) ] = s + + ; } w h i l e ( ( q = q [ m ] ) ) ; } e l s e { d o { i f ( q . n o d e T y p e ! = 1 ) { c o n t i n u e ; 
 } t h i s [ c ] [ t h i s . g e t U I D ( q ) ] = s + + ; } w h i l e ( ( q = q [ m ] ) ) ; } } p = p | | " n " ; v a r   u = t h i s . c a c h e N T H [ p ] | | t h i s . p a r s e N T H A r g u m e n t ( p ) ; i f ( ! u ) { r e t u r n   f a l s e ; } v a r   x = u . a , w = u . b , v = t h i s [ c ] [ t ] ; 
 i f ( x = = 0 ) { r e t u r n   w = = v ; } i f ( x > 0 ) { i f ( v < w ) { r e t u r n   f a l s e ; } } e l s e { i f ( w < v ) { r e t u r n   f a l s e ; } } r e t u r n ( ( v - w ) % x ) = = 0 ; } ; } ; j . p u s h A r r a y = f u n c t i o n ( o , c , q , n , m , p ) { i f ( t h i s . m a t c h S e l e c t o r ( o , c , q , n , m , p ) ) { t h i s . f o u n d . p u s h ( o ) ; 
 } } ; j . p u s h U I D = f u n c t i o n ( p , c , r , o , m , q ) { v a r   n = t h i s . g e t U I D ( p ) ; i f ( ! t h i s . u n i q u e s [ n ] & & t h i s . m a t c h S e l e c t o r ( p , c , r , o , m , q ) ) { t h i s . u n i q u e s [ n ] = t r u e ; t h i s . f o u n d . p u s h ( p ) ; } } ; 
 j . m a t c h N o d e = f u n c t i o n ( m , n ) { i f ( t h i s . i s H T M L D o c u m e n t & & t h i s . n a t i v e M a t c h e s S e l e c t o r ) { t r y { r e t u r n   t h i s . n a t i v e M a t c h e s S e l e c t o r . c a l l ( m , n . r e p l a c e ( / \ [ ( [ ^ = ] + ) = \ s * ( [ ^ ' " \ ] ] + ? ) \ s * \ ] / g , ' [ $ 1 = " $ 2 " ] ' ) ) ; 
 } c a t c h ( u ) { } } v a r   t = t h i s . S l i c k . p a r s e ( n ) ; i f ( ! t ) { r e t u r n   t r u e ; } v a r   r = t . e x p r e s s i o n s , p , s = 0 , q ; f o r ( q = 0 ; ( c u r r e n t E x p r e s s i o n = r [ q ] ) ; q + + ) { i f ( c u r r e n t E x p r e s s i o n . l e n g t h = = 1 ) { v a r   o = c u r r e n t E x p r e s s i o n [ 0 ] ; 
 i f ( t h i s . m a t c h S e l e c t o r ( m , ( t h i s . i s X M L D o c u m e n t ) ? o . t a g : o . t a g . t o U p p e r C a s e ( ) , o . i d , o . c l a s s e s , o . a t t r i b u t e s , o . p s e u d o s ) ) { r e t u r n   t r u e ; } s + + ; } } i f ( s = = t . l e n g t h ) { r e t u r n   f a l s e ; 
 } v a r   c = t h i s . s e a r c h ( t h i s . d o c u m e n t , t ) , v ; f o r ( q = 0 ; v = c [ q + + ] ; ) { i f ( v = = = m ) { r e t u r n   t r u e ; } } r e t u r n   f a l s e ; } ; j . m a t c h P s e u d o = f u n c t i o n ( p , c , o ) { v a r   m = " p s e u d o : " + c ; i f ( t h i s [ m ] ) { r e t u r n   t h i s [ m ] ( p , o ) ; 
 } v a r   n = t h i s . g e t A t t r i b u t e ( p , c ) ; r e t u r n ( o ) ? o = = n : ! ! n ; } ; j . m a t c h S e l e c t o r = f u n c t i o n ( n , u , c , o , p , r ) { i f ( u ) { v a r   s = ( t h i s . i s X M L D o c u m e n t ) ? n . n o d e N a m e : n . n o d e N a m e . t o U p p e r C a s e ( ) ; 
 i f ( u = = " * " ) { i f ( s < " @ " ) { r e t u r n   f a l s e ; } } e l s e { i f ( s ! = u ) { r e t u r n   f a l s e ; } } } i f ( c & & n . g e t A t t r i b u t e ( " i d " ) ! = c ) { r e t u r n   f a l s e ; } v a r   q , m , t ; i f ( o ) { f o r ( q = o . l e n g t h ; q - - ; ) { t = n . g e t A t t r i b u t e ( " c l a s s " ) | | n . c l a s s N a m e ; 
 i f ( ! ( t & & o [ q ] . r e g e x p . t e s t ( t ) ) ) { r e t u r n   f a l s e ; } } } i f ( p ) { f o r ( q = p . l e n g t h ; q - - ; ) { m = p [ q ] ; i f ( m . o p e r a t o r ? ! m . t e s t ( t h i s . g e t A t t r i b u t e ( n , m . k e y ) ) : ! t h i s . h a s A t t r i b u t e ( n , m . k e y ) ) { r e t u r n   f a l s e ; 
 } } } i f ( r ) { f o r ( q = r . l e n g t h ; q - - ; ) { m = r [ q ] ; i f ( ! t h i s . m a t c h P s e u d o ( n , m . k e y , m . v a l u e ) ) { r e t u r n   f a l s e ; } } } r e t u r n   t r u e ; } ; v a r   i = { "   " : f u n c t i o n ( p , v , m , q , r , t , o ) { v a r   s , u , n ; 
 i f ( t h i s . i s H T M L D o c u m e n t ) { g e t B y I d : i f ( m ) { u = t h i s . d o c u m e n t . g e t E l e m e n t B y I d ( m ) ; i f ( ( ! u & & p . a l l ) | | ( t h i s . i d G e t s N a m e & & u & & u . g e t A t t r i b u t e N o d e ( " i d " ) . n o d e V a l u e ! = m ) ) { n = p . a l l [ m ] ; 
 i f ( ! n ) { r e t u r n ; } i f ( ! n [ 0 ] ) { n = [ n ] ; } f o r ( s = 0 ; u = n [ s + + ] ; ) { v a r   c = u . g e t A t t r i b u t e N o d e ( " i d " ) ; i f ( c & & c . n o d e V a l u e = = m ) { t h i s . p u s h ( u , v , n u l l , q , r , t ) ; b r e a k ; } } r e t u r n ; } i f ( ! u ) { i f ( t h i s . c o n t a i n s ( t h i s . r o o t , p ) ) { r e t u r n ; 
 } e l s e { b r e a k   g e t B y I d ; } } e l s e { i f ( t h i s . d o c u m e n t ! = = p & & ! t h i s . c o n t a i n s ( p , u ) ) { r e t u r n ; } } t h i s . p u s h ( u , v , n u l l , q , r , t ) ; r e t u r n ; } g e t B y C l a s s : i f ( q & & p . g e t E l e m e n t s B y C l a s s N a m e & & ! t h i s . b r o k e n G E B C N ) { n = p . g e t E l e m e n t s B y C l a s s N a m e ( o . j o i n ( "   " ) ) ; 
 i f ( ! ( n & & n . l e n g t h ) ) { b r e a k   g e t B y C l a s s ; } f o r ( s = 0 ; u = n [ s + + ] ; ) { t h i s . p u s h ( u , v , m , n u l l , r , t ) ; } r e t u r n ; } } g e t B y T a g : { n = p . g e t E l e m e n t s B y T a g N a m e ( v ) ; i f ( ! ( n & & n . l e n g t h ) ) { b r e a k   g e t B y T a g ; 
 } i f ( ! t h i s . b r o k e n S t a r G E B T N ) { v = n u l l ; } f o r ( s = 0 ; u = n [ s + + ] ; ) { t h i s . p u s h ( u , v , m , q , r , t ) ; } } } , " > " : f u n c t i o n ( o , c , q , n , m , p ) { i f ( ( o = o . f i r s t C h i l d ) ) { d o { i f ( o . n o d e T y p e = = 1 ) { t h i s . p u s h ( o , c , q , n , m , p ) ; 
 } } w h i l e ( ( o = o . n e x t S i b l i n g ) ) ; } } , " + " : f u n c t i o n ( o , c , q , n , m , p ) { w h i l e ( ( o = o . n e x t S i b l i n g ) ) { i f ( o . n o d e T y p e = = 1 ) { t h i s . p u s h ( o , c , q , n , m , p ) ; b r e a k ; } } } , " ^ " : f u n c t i o n ( o , c , q , n , m , p ) { o = o . f i r s t C h i l d ; 
 i f ( o ) { i f ( o . n o d e T y p e = = 1 ) { t h i s . p u s h ( o , c , q , n , m , p ) ; } e l s e { t h i s [ " c o m b i n a t o r : + " ] ( o , c , q , n , m , p ) ; } } } , " ~ " : f u n c t i o n ( p , c , r , o , m , q ) { w h i l e ( ( p = p . n e x t S i b l i n g ) ) { i f ( p . n o d e T y p e ! = 1 ) { c o n t i n u e ; 
 } v a r   n = t h i s . g e t U I D ( p ) ; i f ( t h i s . b i t U n i q u e s [ n ] ) { b r e a k ; } t h i s . b i t U n i q u e s [ n ] = t r u e ; t h i s . p u s h ( p , c , r , o , m , q ) ; } } , " + + " : f u n c t i o n ( o , c , q , n , m , p ) { t h i s [ " c o m b i n a t o r : + " ] ( o , c , q , n , m , p ) ; 
 t h i s [ " c o m b i n a t o r : ! + " ] ( o , c , q , n , m , p ) ; } , " ~ ~ " : f u n c t i o n ( o , c , q , n , m , p ) { t h i s [ " c o m b i n a t o r : ~ " ] ( o , c , q , n , m , p ) ; t h i s [ " c o m b i n a t o r : ! ~ " ] ( o , c , q , n , m , p ) ; } , " ! " : f u n c t i o n ( o , c , q , n , m , p ) { w h i l e ( ( o = o . p a r e n t N o d e ) ) { i f ( o ! = = t h i s . d o c u m e n t ) { t h i s . p u s h ( o , c , q , n , m , p ) ; 
 } } } , " ! > " : f u n c t i o n ( o , c , q , n , m , p ) { o = o . p a r e n t N o d e ; i f ( o ! = = t h i s . d o c u m e n t ) { t h i s . p u s h ( o , c , q , n , m , p ) ; } } , " ! + " : f u n c t i o n ( o , c , q , n , m , p ) { w h i l e ( ( o = o . p r e v i o u s S i b l i n g ) ) { i f ( o . n o d e T y p e = = 1 ) { t h i s . p u s h ( o , c , q , n , m , p ) ; 
 b r e a k ; } } } , " ! ^ " : f u n c t i o n ( o , c , q , n , m , p ) { o = o . l a s t C h i l d ; i f ( o ) { i f ( o . n o d e T y p e = = 1 ) { t h i s . p u s h ( o , c , q , n , m , p ) ; } e l s e { t h i s [ " c o m b i n a t o r : ! + " ] ( o , c , q , n , m , p ) ; } } } , " ! ~ " : f u n c t i o n ( p , c , r , o , m , q ) { w h i l e ( ( p = p . p r e v i o u s S i b l i n g ) ) { i f ( p . n o d e T y p e ! = 1 ) { c o n t i n u e ; 
 } v a r   n = t h i s . g e t U I D ( p ) ; i f ( t h i s . b i t U n i q u e s [ n ] ) { b r e a k ; } t h i s . b i t U n i q u e s [ n ] = t r u e ; t h i s . p u s h ( p , c , r , o , m , q ) ; } } } ; f o r ( v a r   h   i n   i ) { j [ " c o m b i n a t o r : " + h ] = i [ h ] ; } v a r   k = { e m p t y : f u n c t i o n ( c ) { v a r   m = c . f i r s t C h i l d ; 
 r e t u r n   ! ( m & & m . n o d e T y p e = = 1 ) & & ! ( c . i n n e r T e x t | | c . t e x t C o n t e n t | | " " ) . l e n g t h ; } , n o t : f u n c t i o n ( c , m ) { r e t u r n   ! t h i s . m a t c h N o d e ( c , m ) ; } , c o n t a i n s : f u n c t i o n ( c , m ) { r e t u r n ( c . i n n e r T e x t | | c . t e x t C o n t e n t | | " " ) . i n d e x O f ( m ) > - 1 ; 
 } , " f i r s t - c h i l d " : f u n c t i o n ( c ) { w h i l e ( ( c = c . p r e v i o u s S i b l i n g ) ) { i f ( c . n o d e T y p e = = 1 ) { r e t u r n   f a l s e ; } } r e t u r n   t r u e ; } , " l a s t - c h i l d " : f u n c t i o n ( c ) { w h i l e ( ( c = c . n e x t S i b l i n g ) ) { i f ( c . n o d e T y p e = = 1 ) { r e t u r n   f a l s e ; 
 } } r e t u r n   t r u e ; } , " o n l y - c h i l d " : f u n c t i o n ( n ) { v a r   m = n ; w h i l e ( ( m = m . p r e v i o u s S i b l i n g ) ) { i f ( m . n o d e T y p e = = 1 ) { r e t u r n   f a l s e ; } } v a r   c = n ; w h i l e ( ( c = c . n e x t S i b l i n g ) ) { i f ( c . n o d e T y p e = = 1 ) { r e t u r n   f a l s e ; 
 } } r e t u r n   t r u e ; } , " n t h - c h i l d " : j . c r e a t e N T H P s e u d o ( " f i r s t C h i l d " , " n e x t S i b l i n g " , " p o s N T H " ) , " n t h - l a s t - c h i l d " : j . c r e a t e N T H P s e u d o ( " l a s t C h i l d " , " p r e v i o u s S i b l i n g " , " p o s N T H L a s t " ) , " n t h - o f - t y p e " : j . c r e a t e N T H P s e u d o ( " f i r s t C h i l d " , " n e x t S i b l i n g " , " p o s N T H T y p e " , t r u e ) , " n t h - l a s t - o f - t y p e " : j . c r e a t e N T H P s e u d o ( " l a s t C h i l d " , " p r e v i o u s S i b l i n g " , " p o s N T H T y p e L a s t " , t r u e ) , i n d e x : f u n c t i o n ( m , c ) { r e t u r n   t h i s [ " p s e u d o : n t h - c h i l d " ] ( m , " " + c + 1 ) ; 
 } , e v e n : f u n c t i o n ( c ) { r e t u r n   t h i s [ " p s e u d o : n t h - c h i l d " ] ( c , " 2 n " ) ; } , o d d : f u n c t i o n ( c ) { r e t u r n   t h i s [ " p s e u d o : n t h - c h i l d " ] ( c , " 2 n + 1 " ) ; } , " f i r s t - o f - t y p e " : f u n c t i o n ( c ) { v a r   m = c . n o d e N a m e ; 
 w h i l e ( ( c = c . p r e v i o u s S i b l i n g ) ) { i f ( c . n o d e N a m e = = m ) { r e t u r n   f a l s e ; } } r e t u r n   t r u e ; } , " l a s t - o f - t y p e " : f u n c t i o n ( c ) { v a r   m = c . n o d e N a m e ; w h i l e ( ( c = c . n e x t S i b l i n g ) ) { i f ( c . n o d e N a m e = = m ) { r e t u r n   f a l s e ; 
 } } r e t u r n   t r u e ; } , " o n l y - o f - t y p e " : f u n c t i o n ( n ) { v a r   m = n , o = n . n o d e N a m e ; w h i l e ( ( m = m . p r e v i o u s S i b l i n g ) ) { i f ( m . n o d e N a m e = = o ) { r e t u r n   f a l s e ; } } v a r   c = n ; w h i l e ( ( c = c . n e x t S i b l i n g ) ) { i f ( c . n o d e N a m e = = o ) { r e t u r n   f a l s e ; 
 } } r e t u r n   t r u e ; } , e n a b l e d : f u n c t i o n ( c ) { r e t u r n   ! c . d i s a b l e d ; } , d i s a b l e d : f u n c t i o n ( c ) { r e t u r n   c . d i s a b l e d ; } , c h e c k e d : f u n c t i o n ( c ) { r e t u r n   c . c h e c k e d | | c . s e l e c t e d ; } , f o c u s : f u n c t i o n ( c ) { r e t u r n   t h i s . i s H T M L D o c u m e n t & & t h i s . d o c u m e n t . a c t i v e E l e m e n t = = = c & & ( c . h r e f | | c . t y p e | | t h i s . h a s A t t r i b u t e ( c , " t a b i n d e x " ) ) ; 
 } , r o o t : f u n c t i o n ( c ) { r e t u r n ( c = = = t h i s . r o o t ) ; } , s e l e c t e d : f u n c t i o n ( c ) { r e t u r n   c . s e l e c t e d ; } } ; f o r ( v a r   a   i n   k ) { j [ " p s e u d o : " + a ] = k [ a ] ; } j . a t t r i b u t e G e t t e r s = { " c l a s s " : f u n c t i o n ( ) { r e t u r n   t h i s . g e t A t t r i b u t e ( " c l a s s " ) | | t h i s . c l a s s N a m e ; 
 } , " f o r " : f u n c t i o n ( ) { r e t u r n ( " h t m l F o r "   i n   t h i s ) ? t h i s . h t m l F o r : t h i s . g e t A t t r i b u t e ( " f o r " ) ; } , h r e f : f u n c t i o n ( ) { r e t u r n ( " h r e f "   i n   t h i s ) ? t h i s . g e t A t t r i b u t e ( " h r e f " , 2 ) : t h i s . g e t A t t r i b u t e ( " h r e f " ) ; 
 } , s t y l e : f u n c t i o n ( ) { r e t u r n ( t h i s . s t y l e ) ? t h i s . s t y l e . c s s T e x t : t h i s . g e t A t t r i b u t e ( " s t y l e " ) ; } , t a b i n d e x : f u n c t i o n ( ) { v a r   c = t h i s . g e t A t t r i b u t e N o d e ( " t a b i n d e x " ) ; r e t u r n ( c & & c . s p e c i f i e d ) ? c . n o d e V a l u e : n u l l ; 
 } , t y p e : f u n c t i o n ( ) { r e t u r n   t h i s . g e t A t t r i b u t e ( " t y p e " ) ; } } ; v a r   d = j . S l i c k = ( t h i s . S l i c k | | { } ) ; d . v e r s i o n = " 1 . 1 . 5 " ; d . s e a r c h = f u n c t i o n ( m , n , c ) { r e t u r n   j . s e a r c h ( m , n , c ) ; 
 } ; d . f i n d = f u n c t i o n ( c , m ) { r e t u r n   j . s e a r c h ( c , m , n u l l , t r u e ) ; } ; d . c o n t a i n s = f u n c t i o n ( c , m ) { j . s e t D o c u m e n t ( c ) ; r e t u r n   j . c o n t a i n s ( c , m ) ; } ; d . g e t A t t r i b u t e = f u n c t i o n ( m , c ) { r e t u r n   j . g e t A t t r i b u t e ( m , c ) ; 
 } ; d . m a t c h = f u n c t i o n ( m , c ) { i f ( ! ( m & & c ) ) { r e t u r n   f a l s e ; } i f ( ! c | | c = = = m ) { r e t u r n   t r u e ; } j . s e t D o c u m e n t ( m ) ; r e t u r n   j . m a t c h N o d e ( m , c ) ; } ; d . d e f i n e A t t r i b u t e G e t t e r = f u n c t i o n ( c , m ) { j . a t t r i b u t e G e t t e r s [ c ] = m ; 
 r e t u r n   t h i s ; } ; d . l o o k u p A t t r i b u t e G e t t e r = f u n c t i o n ( c ) { r e t u r n   j . a t t r i b u t e G e t t e r s [ c ] ; } ; d . d e f i n e P s e u d o = f u n c t i o n ( c , m ) { j [ " p s e u d o : " + c ] = f u n c t i o n ( o , n ) { r e t u r n   m . c a l l ( o , n ) ; 
 } ; r e t u r n   t h i s ; } ; d . l o o k u p P s e u d o = f u n c t i o n ( c ) { v a r   m = j [ " p s e u d o : " + c ] ; i f ( m ) { r e t u r n   f u n c t i o n ( n ) { r e t u r n   m . c a l l ( t h i s , n ) ; } ; } r e t u r n   n u l l ; } ; d . o v e r r i d e = f u n c t i o n ( m , c ) { j . o v e r r i d e ( m , c ) ; 
 r e t u r n   t h i s ; } ; d . i s X M L = j . i s X M L ; d . u i d O f = f u n c t i o n ( c ) { r e t u r n   j . g e t U I D H T M L ( c ) ; } ; i f ( ! t h i s . S l i c k ) { t h i s . S l i c k = d ; } } ) . a p p l y ( ( t y p e o f   e x p o r t s ! = " u n d e f i n e d " ) ? e x p o r t s : t h i s ) ; 
 v a r   E l e m e n t = f u n c t i o n ( b , g ) { v a r   h = E l e m e n t . C o n s t r u c t o r s [ b ] ; i f ( h ) { r e t u r n   h ( g ) ; } i f ( t y p e o f   b ! = " s t r i n g " ) { r e t u r n   d o c u m e n t . i d ( b ) . s e t ( g ) ; } i f ( ! g ) { g = { } ; } i f ( ! ( / ^ [ \ w - ] + $ / ) . t e s t ( b ) ) { v a r   e = S l i c k . p a r s e ( b ) . e x p r e s s i o n s [ 0 ] [ 0 ] ; 
 b = ( e . t a g = = " * " ) ? " d i v " : e . t a g ; i f ( e . i d & & g . i d = = n u l l ) { g . i d = e . i d ; } v a r   d = e . a t t r i b u t e s ; i f ( d ) { f o r ( v a r   f = 0 , c = d . l e n g t h ; f < c ; f + + ) { v a r   a = d [ f ] ; i f ( a . v a l u e ! = n u l l & & a . o p e r a t o r = = " = " & & g [ a . k e y ] = = n u l l ) { g [ a . k e y ] = a . v a l u e ; 
 } } } i f ( e . c l a s s L i s t & & g [ " c l a s s " ] = = n u l l ) { g [ " c l a s s " ] = e . c l a s s L i s t . j o i n ( "   " ) ; } } r e t u r n   d o c u m e n t . n e w E l e m e n t ( b , g ) ; } ; i f ( B r o w s e r . E l e m e n t ) { E l e m e n t . p r o t o t y p e = B r o w s e r . E l e m e n t . p r o t o t y p e ; 
 } n e w   T y p e ( " E l e m e n t " , E l e m e n t ) . m i r r o r ( f u n c t i o n ( a ) { i f ( A r r a y . p r o t o t y p e [ a ] ) { r e t u r n ; } v a r   b = { } ; b [ a ] = f u n c t i o n ( ) { v a r   h = [ ] , e = a r g u m e n t s , j = t r u e ; f o r ( v a r   g = 0 , d = t h i s . l e n g t h ; 
 g < d ; g + + ) { v a r   f = t h i s [ g ] , c = h [ g ] = f [ a ] . a p p l y ( f , e ) ; j = ( j & & t y p e O f ( c ) = = " e l e m e n t " ) ; } r e t u r n ( j ) ? n e w   E l e m e n t s ( h ) : h ; } ; E l e m e n t s . i m p l e m e n t ( b ) ; } ) ; i f ( ! B r o w s e r . E l e m e n t ) { E l e m e n t . p a r e n t = O b j e c t ; 
 E l e m e n t . P r o t o t y p e = { " $ f a m i l y " : F u n c t i o n . f r o m ( " e l e m e n t " ) . h i d e ( ) } ; E l e m e n t . m i r r o r ( f u n c t i o n ( a , b ) { E l e m e n t . P r o t o t y p e [ a ] = b ; } ) ; } E l e m e n t . C o n s t r u c t o r s = { } ; E l e m e n t . C o n s t r u c t o r s = n e w   H a s h ; 
 v a r   I F r a m e = n e w   T y p e ( " I F r a m e " , f u n c t i o n ( ) { v a r   e = A r r a y . l i n k ( a r g u m e n t s , { p r o p e r t i e s : T y p e . i s O b j e c t , i f r a m e : f u n c t i o n ( f ) { r e t u r n ( f ! = n u l l ) ; } } ) ; v a r   c = e . p r o p e r t i e s | | { } , b ; 
 i f ( e . i f r a m e ) { b = d o c u m e n t . i d ( e . i f r a m e ) ; } v a r   d = c . o n l o a d | | f u n c t i o n ( ) { } ; d e l e t e   c . o n l o a d ; c . i d = c . n a m e = [ c . i d , c . n a m e , b ? ( b . i d | | b . n a m e ) : " I F r a m e _ " + S t r i n g . u n i q u e I D ( ) ] . p i c k ( ) ; 
 b = n e w   E l e m e n t ( b | | " i f r a m e " , c ) ; v a r   a = f u n c t i o n ( ) { d . c a l l ( b . c o n t e n t W i n d o w ) ; } ; i f ( w i n d o w . f r a m e s [ c . i d ] ) { a ( ) ; } e l s e { b . a d d L i s t e n e r ( " l o a d " , a ) ; } r e t u r n   b ; } ) ; v a r   E l e m e n t s = t h i s . E l e m e n t s = f u n c t i o n ( a ) { i f ( a & & a . l e n g t h ) { v a r   e = { } , d ; 
 f o r ( v a r   c = 0 ; d = a [ c + + ] ; ) { v a r   b = S l i c k . u i d O f ( d ) ; i f ( ! e [ b ] ) { e [ b ] = t r u e ; t h i s . p u s h ( d ) ; } } } } ; E l e m e n t s . p r o t o t y p e = { l e n g t h : 0 } ; E l e m e n t s . p a r e n t = A r r a y ; n e w   T y p e ( " E l e m e n t s " , E l e m e n t s ) . i m p l e m e n t ( { f i l t e r : f u n c t i o n ( a , b ) { i f ( ! a ) { r e t u r n   t h i s ; 
 } r e t u r n   n e w   E l e m e n t s ( A r r a y . f i l t e r ( t h i s , ( t y p e O f ( a ) = = " s t r i n g " ) ? f u n c t i o n ( c ) { r e t u r n   c . m a t c h ( a ) ; } : a , b ) ) ; } . p r o t e c t ( ) , p u s h : f u n c t i o n ( ) { v a r   d = t h i s . l e n g t h ; f o r ( v a r   b = 0 , a = a r g u m e n t s . l e n g t h ; 
 b < a ; b + + ) { v a r   c = d o c u m e n t . i d ( a r g u m e n t s [ b ] ) ; i f ( c ) { t h i s [ d + + ] = c ; } } r e t u r n ( t h i s . l e n g t h = d ) ; } . p r o t e c t ( ) , u n s h i f t : f u n c t i o n ( ) { v a r   b = [ ] ; f o r ( v a r   c = 0 , a = a r g u m e n t s . l e n g t h ; 
 c < a ; c + + ) { v a r   d = d o c u m e n t . i d ( a r g u m e n t s [ c ] ) ; i f ( d ) { b . p u s h ( d ) ; } } r e t u r n   A r r a y . p r o t o t y p e . u n s h i f t . a p p l y ( t h i s , b ) ; } . p r o t e c t ( ) , c o n c a t : f u n c t i o n ( ) { v a r   b = n e w   E l e m e n t s ( t h i s ) ; 
 f o r ( v a r   c = 0 , a = a r g u m e n t s . l e n g t h ; c < a ; c + + ) { v a r   d = a r g u m e n t s [ c ] ; i f ( T y p e . i s E n u m e r a b l e ( d ) ) { b . a p p e n d ( d ) ; } e l s e { b . p u s h ( d ) ; } } r e t u r n   b ; } . p r o t e c t ( ) , a p p e n d : f u n c t i o n ( c ) { f o r ( v a r   b = 0 , a = c . l e n g t h ; 
 b < a ; b + + ) { t h i s . p u s h ( c [ b ] ) ; } r e t u r n   t h i s ; } . p r o t e c t ( ) , e m p t y : f u n c t i o n ( ) { w h i l e ( t h i s . l e n g t h ) { d e l e t e   t h i s [ - - t h i s . l e n g t h ] ; } r e t u r n   t h i s ; } . p r o t e c t ( ) } ) ; E l e m e n t s . a l i a s ( " e x t e n d " , " a p p e n d " ) ; 
 ( f u n c t i o n ( ) { v a r   g = A r r a y . p r o t o t y p e . s p l i c e , b = { " 0 " : 0 , " 1 " : 1 , l e n g t h : 2 } ; g . c a l l ( b , 1 , 1 ) ; i f ( b [ 1 ] = = 1 ) { E l e m e n t s . i m p l e m e n t ( " s p l i c e " , f u n c t i o n ( ) { v a r   e = t h i s . l e n g t h ; g . a p p l y ( t h i s , a r g u m e n t s ) ; 
 w h i l e ( e > = t h i s . l e n g t h ) { d e l e t e   t h i s [ e - - ] ; } r e t u r n   t h i s ; } . p r o t e c t ( ) ) ; } E l e m e n t s . i m p l e m e n t ( A r r a y . p r o t o t y p e ) ; A r r a y . m i r r o r ( E l e m e n t s ) ; v a r   f ; t r y { v a r   a = d o c u m e n t . c r e a t e E l e m e n t ( " < i n p u t   n a m e = x > " ) ; 
 f = ( a . n a m e = = " x " ) ; } c a t c h ( c ) { } v a r   d = f u n c t i o n ( e ) { r e t u r n ( " " + e ) . r e p l a c e ( / & / g , " & a m p ; " ) . r e p l a c e ( / " / g , " & q u o t ; " ) ; } ; D o c u m e n t . i m p l e m e n t ( { n e w E l e m e n t : f u n c t i o n ( e , h ) { i f ( h & & h . c h e c k e d ! = n u l l ) { h . d e f a u l t C h e c k e d = h . c h e c k e d ; 
 } i f ( f & & h ) { e = " < " + e ; i f ( h . n a m e ) { e + = '   n a m e = " ' + d ( h . n a m e ) + ' " ' ; } i f ( h . t y p e ) { e + = '   t y p e = " ' + d ( h . t y p e ) + ' " ' ; } e + = " > " ; d e l e t e   h . n a m e ; d e l e t e   h . t y p e ; } r e t u r n   t h i s . i d ( t h i s . c r e a t e E l e m e n t ( e ) ) . s e t ( h ) ; 
 } } ) ; } ) ( ) ; D o c u m e n t . i m p l e m e n t ( { n e w T e x t N o d e : f u n c t i o n ( a ) { r e t u r n   t h i s . c r e a t e T e x t N o d e ( a ) ; } , g e t D o c u m e n t : f u n c t i o n ( ) { r e t u r n   t h i s ; } , g e t W i n d o w : f u n c t i o n ( ) { r e t u r n   t h i s . w i n d o w ; 
 } , i d : ( f u n c t i o n ( ) { v a r   a = { s t r i n g : f u n c t i o n ( d , c , b ) { d = S l i c k . f i n d ( b , " # " + d . r e p l a c e ( / ( \ W ) / g , " \ \ $ 1 " ) ) ; r e t u r n ( d ) ? a . e l e m e n t ( d , c ) : n u l l ; } , e l e m e n t : f u n c t i o n ( b , c ) { $ u i d ( b ) ; 
 i f ( ! c & & ! b . $ f a m i l y & & ! ( / ^ ( ? : o b j e c t | e m b e d ) $ / i ) . t e s t ( b . t a g N a m e ) ) { O b j e c t . a p p e n d ( b , E l e m e n t . P r o t o t y p e ) ; } r e t u r n   b ; } , o b j e c t : f u n c t i o n ( c , d , b ) { i f ( c . t o E l e m e n t ) { r e t u r n   a . e l e m e n t ( c . t o E l e m e n t ( b ) , d ) ; 
 } r e t u r n   n u l l ; } } ; a . t e x t n o d e = a . w h i t e s p a c e = a . w i n d o w = a . d o c u m e n t = f u n c t i o n ( b ) { r e t u r n   b ; } ; r e t u r n   f u n c t i o n ( c , e , d ) { i f ( c & & c . $ f a m i l y & & c . u i d ) { r e t u r n   c ; } v a r   b = t y p e O f ( c ) ; 
 r e t u r n ( a [ b ] ) ? a [ b ] ( c , e , d | | d o c u m e n t ) : n u l l ; } ; } ) ( ) } ) ; i f ( w i n d o w . $ = = n u l l ) { W i n d o w . i m p l e m e n t ( " $ " , f u n c t i o n ( a , b ) { r e t u r n   d o c u m e n t . i d ( a , b , t h i s . d o c u m e n t ) ; } ) ; } W i n d o w . i m p l e m e n t ( { g e t D o c u m e n t : f u n c t i o n ( ) { r e t u r n   t h i s . d o c u m e n t ; 
 } , g e t W i n d o w : f u n c t i o n ( ) { r e t u r n   t h i s ; } } ) ; [ D o c u m e n t , E l e m e n t ] . i n v o k e ( " i m p l e m e n t " , { g e t E l e m e n t s : f u n c t i o n ( a ) { r e t u r n   S l i c k . s e a r c h ( t h i s , a , n e w   E l e m e n t s ) ; } , g e t E l e m e n t : f u n c t i o n ( a ) { r e t u r n   d o c u m e n t . i d ( S l i c k . f i n d ( t h i s , a ) ) ; 
 } } ) ; ( f u n c t i o n ( b , d , a ) { t h i s . S e l e c t o r s = { } ; v a r   e = t h i s . S e l e c t o r s . P s e u d o = n e w   H a s h ( ) ; v a r   c = f u n c t i o n ( ) { f o r ( v a r   f   i n   e ) { i f ( e . h a s O w n P r o p e r t y ( f ) ) { S l i c k . d e f i n e P s e u d o ( f , e [ f ] ) ; 
 d e l e t e   e [ f ] ; } } } ; S l i c k . s e a r c h = f u n c t i o n ( g , h , f ) { c ( ) ; r e t u r n   b . c a l l ( t h i s , g , h , f ) ; } ; S l i c k . f i n d = f u n c t i o n ( f , g ) { c ( ) ; r e t u r n   d . c a l l ( t h i s , f , g ) ; } ; S l i c k . m a t c h = f u n c t i o n ( g , f ) { c ( ) ; 
 r e t u r n   a . c a l l ( t h i s , g , f ) ; } ; } ) ( S l i c k . s e a r c h , S l i c k . f i n d , S l i c k . m a t c h ) ; i f ( w i n d o w . $ $ = = n u l l ) { W i n d o w . i m p l e m e n t ( " $ $ " , f u n c t i o n ( a ) { v a r   f = n e w   E l e m e n t s ; i f ( a r g u m e n t s . l e n g t h = = 1 & & t y p e o f   a = = " s t r i n g " ) { r e t u r n   S l i c k . s e a r c h ( t h i s . d o c u m e n t , a , f ) ; 
 } v a r   c = A r r a y . f l a t t e n ( a r g u m e n t s ) ; f o r ( v a r   d = 0 , b = c . l e n g t h ; d < b ; d + + ) { v a r   e = c [ d ] ; s w i t c h ( t y p e O f ( e ) ) { c a s e " e l e m e n t " : f . p u s h ( e ) ; b r e a k ; c a s e " s t r i n g " : S l i c k . s e a r c h ( t h i s . d o c u m e n t , e , f ) ; 
 } } r e t u r n   f ; } ) ; } i f ( w i n d o w . $ $ = = n u l l ) { W i n d o w . i m p l e m e n t ( " $ $ " , f u n c t i o n ( a ) { i f ( a r g u m e n t s . l e n g t h = = 1 ) { i f ( t y p e o f   a = = " s t r i n g " ) { r e t u r n   S l i c k . s e a r c h ( t h i s . d o c u m e n t , a , n e w   E l e m e n t s ) ; 
 } e l s e { i f ( T y p e . i s E n u m e r a b l e ( a ) ) { r e t u r n   n e w   E l e m e n t s ( a ) ; } } } r e t u r n   n e w   E l e m e n t s ( a r g u m e n t s ) ; } ) ; } ( f u n c t i o n ( ) { v a r   k = { } , i = { } ; v a r   n = { i n p u t : " c h e c k e d " , o p t i o n : " s e l e c t e d " , t e x t a r e a : " v a l u e " } ; 
 v a r   e = f u n c t i o n ( p ) { r e t u r n ( i [ p ] | | ( i [ p ] = { } ) ) ; } ; v a r   j = f u n c t i o n ( q ) { v a r   p = q . u i d ; i f ( q . r e m o v e E v e n t s ) { q . r e m o v e E v e n t s ( ) ; } i f ( q . c l e a r A t t r i b u t e s ) { q . c l e a r A t t r i b u t e s ( ) ; 
 } i f ( p ! = n u l l ) { d e l e t e   k [ p ] ; d e l e t e   i [ p ] ; } r e t u r n   q ; } ; v a r   o = [ " d e f a u l t V a l u e " , " a c c e s s K e y " , " c e l l P a d d i n g " , " c e l l S p a c i n g " , " c o l S p a n " , " f r a m e B o r d e r " , " m a x L e n g t h " , " r e a d O n l y " , " r o w S p a n " , " t a b I n d e x " , " u s e M a p " ] ; 
 v a r   d = [ " c o m p a c t " , " n o w r a p " , " i s m a p " , " d e c l a r e " , " n o s h a d e " , " c h e c k e d " , " d i s a b l e d " , " r e a d O n l y " , " m u l t i p l e " , " s e l e c t e d " , " n o r e s i z e " , " d e f e r " , " d e f a u l t C h e c k e d " ] ; v a r   g = { h t m l : " i n n e r H T M L " , " c l a s s " : " c l a s s N a m e " , " f o r " : " h t m l F o r " , t e x t : ( f u n c t i o n ( ) { v a r   p = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; 
 r e t u r n ( p . t e x t C o n t e n t = = n u l l ) ? " i n n e r T e x t " : " t e x t C o n t e n t " ; } ) ( ) } ; v a r   m = [ " t y p e " ] ; v a r   h = [ " v a l u e " , " d e f a u l t V a l u e " ] ; v a r   l = / ^ ( ? : h r e f | s r c | u s e m a p ) $ / i ; d = d . a s s o c i a t e ( d ) ; 
 o = o . a s s o c i a t e ( o . m a p ( S t r i n g . t o L o w e r C a s e ) ) ; m = m . a s s o c i a t e ( m ) ; O b j e c t . a p p e n d ( g , h . a s s o c i a t e ( h ) ) ; v a r   c = { b e f o r e : f u n c t i o n ( q , p ) { v a r   r = p . p a r e n t N o d e ; i f ( r ) { r . i n s e r t B e f o r e ( q , p ) ; 
 } } , a f t e r : f u n c t i o n ( q , p ) { v a r   r = p . p a r e n t N o d e ; i f ( r ) { r . i n s e r t B e f o r e ( q , p . n e x t S i b l i n g ) ; } } , b o t t o m : f u n c t i o n ( q , p ) { p . a p p e n d C h i l d ( q ) ; } , t o p : f u n c t i o n ( q , p ) { p . i n s e r t B e f o r e ( q , p . f i r s t C h i l d ) ; 
 } } ; c . i n s i d e = c . b o t t o m ; O b j e c t . e a c h ( c , f u n c t i o n ( q , r ) { r = r . c a p i t a l i z e ( ) ; v a r   p = { } ; p [ " i n j e c t " + r ] = f u n c t i o n ( s ) { q ( t h i s , d o c u m e n t . i d ( s , t r u e ) ) ; r e t u r n   t h i s ; } ; p [ " g r a b " + r ] = f u n c t i o n ( s ) { q ( d o c u m e n t . i d ( s , t r u e ) , t h i s ) ; 
 r e t u r n   t h i s ; } ; E l e m e n t . i m p l e m e n t ( p ) ; } ) ; v a r   b = f u n c t i o n ( s , r ) { i f ( ! s ) { r e t u r n   r ; } s = O b j e c t . c l o n e ( S l i c k . p a r s e ( s ) ) ; v a r   q = s . e x p r e s s i o n s ; f o r ( v a r   p = q . l e n g t h ; p - - ; ) { q [ p ] [ 0 ] . c o m b i n a t o r = r ; 
 } r e t u r n   s ; } ; E l e m e n t . i m p l e m e n t ( { s e t : f u n c t i o n ( r , q ) { v a r   p = E l e m e n t . P r o p e r t i e s [ r ] ; ( p & & p . s e t ) ? p . s e t . c a l l ( t h i s , q ) : t h i s . s e t P r o p e r t y ( r , q ) ; } . o v e r l o a d S e t t e r ( ) , g e t : f u n c t i o n ( q ) { v a r   p = E l e m e n t . P r o p e r t i e s [ q ] ; 
 r e t u r n ( p & & p . g e t ) ? p . g e t . a p p l y ( t h i s ) : t h i s . g e t P r o p e r t y ( q ) ; } . o v e r l o a d G e t t e r ( ) , e r a s e : f u n c t i o n ( q ) { v a r   p = E l e m e n t . P r o p e r t i e s [ q ] ; ( p & & p . e r a s e ) ? p . e r a s e . a p p l y ( t h i s ) : t h i s . r e m o v e P r o p e r t y ( q ) ; 
 r e t u r n   t h i s ; } , s e t P r o p e r t y : f u n c t i o n ( q , r ) { q = o [ q ] | | q ; i f ( r = = n u l l ) { r e t u r n   t h i s . r e m o v e P r o p e r t y ( q ) ; } v a r   p = g [ q ] ; ( p ) ? t h i s [ p ] = r : ( d [ q ] ) ? t h i s [ q ] = ! ! r : t h i s . s e t A t t r i b u t e ( q , " " + r ) ; 
 r e t u r n   t h i s ; } , s e t P r o p e r t i e s : f u n c t i o n ( p ) { f o r ( v a r   q   i n   p ) { t h i s . s e t P r o p e r t y ( q , p [ q ] ) ; } r e t u r n   t h i s ; } , g e t P r o p e r t y : f u n c t i o n ( q ) { q = o [ q ] | | q ; v a r   p = g [ q ] | | m [ q ] ; r e t u r n ( p ) ? t h i s [ p ] : ( d [ q ] ) ? ! ! t h i s [ q ] : ( l . t e s t ( q ) ? t h i s . g e t A t t r i b u t e ( q , 2 ) : ( p = t h i s . g e t A t t r i b u t e N o d e ( q ) ) ? p . n o d e V a l u e : n u l l ) | | n u l l ; 
 } , g e t P r o p e r t i e s : f u n c t i o n ( ) { v a r   p = A r r a y . f r o m ( a r g u m e n t s ) ; r e t u r n   p . m a p ( t h i s . g e t P r o p e r t y , t h i s ) . a s s o c i a t e ( p ) ; } , r e m o v e P r o p e r t y : f u n c t i o n ( q ) { q = o [ q ] | | q ; v a r   p = g [ q ] ; 
 ( p ) ? t h i s [ p ] = " " : ( d [ q ] ) ? t h i s [ q ] = f a l s e : t h i s . r e m o v e A t t r i b u t e ( q ) ; r e t u r n   t h i s ; } , r e m o v e P r o p e r t i e s : f u n c t i o n ( ) { A r r a y . e a c h ( a r g u m e n t s , t h i s . r e m o v e P r o p e r t y , t h i s ) ; r e t u r n   t h i s ; 
 } , h a s C l a s s : f u n c t i o n ( p ) { r e t u r n   t h i s . c l a s s N a m e . c l e a n ( ) . c o n t a i n s ( p , "   " ) ; } , a d d C l a s s : f u n c t i o n ( p ) { i f ( ! t h i s . h a s C l a s s ( p ) ) { t h i s . c l a s s N a m e = ( t h i s . c l a s s N a m e + "   " + p ) . c l e a n ( ) ; 
 } r e t u r n   t h i s ; } , r e m o v e C l a s s : f u n c t i o n ( p ) { t h i s . c l a s s N a m e = t h i s . c l a s s N a m e . r e p l a c e ( n e w   R e g E x p ( " ( ^ | \ \ s ) " + p + " ( ? : \ \ s | $ ) " ) , " $ 1 " ) ; r e t u r n   t h i s ; } , t o g g l e C l a s s : f u n c t i o n ( p , q ) { i f ( q = = n u l l ) { q = ! t h i s . h a s C l a s s ( p ) ; 
 } r e t u r n ( q ) ? t h i s . a d d C l a s s ( p ) : t h i s . r e m o v e C l a s s ( p ) ; } , a d o p t : f u n c t i o n ( ) { v a r   s = t h i s , p , u = A r r a y . f l a t t e n ( a r g u m e n t s ) , t = u . l e n g t h ; i f ( t > 1 ) { s = p = d o c u m e n t . c r e a t e D o c u m e n t F r a g m e n t ( ) ; 
 } f o r ( v a r   r = 0 ; r < t ; r + + ) { v a r   q = d o c u m e n t . i d ( u [ r ] , t r u e ) ; i f ( q ) { s . a p p e n d C h i l d ( q ) ; } } i f ( p ) { t h i s . a p p e n d C h i l d ( p ) ; } r e t u r n   t h i s ; } , a p p e n d T e x t : f u n c t i o n ( q , p ) { r e t u r n   t h i s . g r a b ( t h i s . g e t D o c u m e n t ( ) . n e w T e x t N o d e ( q ) , p ) ; 
 } , g r a b : f u n c t i o n ( q , p ) { c [ p | | " b o t t o m " ] ( d o c u m e n t . i d ( q , t r u e ) , t h i s ) ; r e t u r n   t h i s ; } , i n j e c t : f u n c t i o n ( q , p ) { c [ p | | " b o t t o m " ] ( t h i s , d o c u m e n t . i d ( q , t r u e ) ) ; r e t u r n   t h i s ; } , r e p l a c e s : f u n c t i o n ( p ) { p = d o c u m e n t . i d ( p , t r u e ) ; 
 p . p a r e n t N o d e . r e p l a c e C h i l d ( t h i s , p ) ; r e t u r n   t h i s ; } , w r a p s : f u n c t i o n ( q , p ) { q = d o c u m e n t . i d ( q , t r u e ) ; r e t u r n   t h i s . r e p l a c e s ( q ) . g r a b ( q , p ) ; } , g e t P r e v i o u s : f u n c t i o n ( p ) { r e t u r n   d o c u m e n t . i d ( S l i c k . f i n d ( t h i s , b ( p , " ! ~ " ) ) ) ; 
 } , g e t A l l P r e v i o u s : f u n c t i o n ( p ) { r e t u r n   S l i c k . s e a r c h ( t h i s , b ( p , " ! ~ " ) , n e w   E l e m e n t s ) ; } , g e t N e x t : f u n c t i o n ( p ) { r e t u r n   d o c u m e n t . i d ( S l i c k . f i n d ( t h i s , b ( p , " ~ " ) ) ) ; } , g e t A l l N e x t : f u n c t i o n ( p ) { r e t u r n   S l i c k . s e a r c h ( t h i s , b ( p , " ~ " ) , n e w   E l e m e n t s ) ; 
 } , g e t F i r s t : f u n c t i o n ( p ) { r e t u r n   d o c u m e n t . i d ( S l i c k . s e a r c h ( t h i s , b ( p , " > " ) ) [ 0 ] ) ; } , g e t L a s t : f u n c t i o n ( p ) { r e t u r n   d o c u m e n t . i d ( S l i c k . s e a r c h ( t h i s , b ( p , " > " ) ) . g e t L a s t ( ) ) ; 
 } , g e t P a r e n t : f u n c t i o n ( p ) { r e t u r n   d o c u m e n t . i d ( S l i c k . f i n d ( t h i s , b ( p , " ! " ) ) ) ; } , g e t P a r e n t s : f u n c t i o n ( p ) { r e t u r n   S l i c k . s e a r c h ( t h i s , b ( p , " ! " ) , n e w   E l e m e n t s ) ; } , g e t S i b l i n g s : f u n c t i o n ( p ) { r e t u r n   S l i c k . s e a r c h ( t h i s , b ( p , " ~ ~ " ) , n e w   E l e m e n t s ) ; 
 } , g e t C h i l d r e n : f u n c t i o n ( p ) { r e t u r n   S l i c k . s e a r c h ( t h i s , b ( p , " > " ) , n e w   E l e m e n t s ) ; } , g e t W i n d o w : f u n c t i o n ( ) { r e t u r n   t h i s . o w n e r D o c u m e n t . w i n d o w ; } , g e t D o c u m e n t : f u n c t i o n ( ) { r e t u r n   t h i s . o w n e r D o c u m e n t ; 
 } , g e t E l e m e n t B y I d : f u n c t i o n ( p ) { r e t u r n   d o c u m e n t . i d ( S l i c k . f i n d ( t h i s , " # " + ( " " + p ) . r e p l a c e ( / ( \ W ) / g , " \ \ $ 1 " ) ) ) ; } , g e t S e l e c t e d : f u n c t i o n ( ) { t h i s . s e l e c t e d I n d e x ; r e t u r n   n e w   E l e m e n t s ( A r r a y . f r o m ( t h i s . o p t i o n s ) . f i l t e r ( f u n c t i o n ( p ) { r e t u r n   p . s e l e c t e d ; 
 } ) ) ; } , t o Q u e r y S t r i n g : f u n c t i o n ( ) { v a r   p = [ ] ; t h i s . g e t E l e m e n t s ( " i n p u t ,   s e l e c t ,   t e x t a r e a " ) . e a c h ( f u n c t i o n ( r ) { v a r   q = r . t y p e ; i f ( ! r . n a m e | | r . d i s a b l e d | | q = = " s u b m i t " | | q = = " r e s e t " | | q = = " f i l e " | | q = = " i m a g e " ) { r e t u r n ; 
 } v a r   s = ( r . g e t ( " t a g " ) = = " s e l e c t " ) ? r . g e t S e l e c t e d ( ) . m a p ( f u n c t i o n ( t ) { r e t u r n   d o c u m e n t . i d ( t ) . g e t ( " v a l u e " ) ; } ) : ( ( q = = " r a d i o " | | q = = " c h e c k b o x " ) & & ! r . c h e c k e d ) ? n u l l : r . g e t ( " v a l u e " ) ; 
 A r r a y . f r o m ( s ) . e a c h ( f u n c t i o n ( t ) { i f ( t y p e o f   t ! = " u n d e f i n e d " ) { p . p u s h ( e n c o d e U R I C o m p o n e n t ( r . n a m e ) + " = " + e n c o d e U R I C o m p o n e n t ( t ) ) ; } } ) ; } ) ; r e t u r n   p . j o i n ( " & " ) ; } , d e s t r o y : f u n c t i o n ( ) { v a r   p = j ( t h i s ) . g e t E l e m e n t s B y T a g N a m e ( " * " ) ; 
 A r r a y . e a c h ( p , j ) ; E l e m e n t . d i s p o s e ( t h i s ) ; r e t u r n   n u l l ; } , e m p t y : f u n c t i o n ( ) { A r r a y . f r o m ( t h i s . c h i l d N o d e s ) . e a c h ( E l e m e n t . d i s p o s e ) ; r e t u r n   t h i s ; } , d i s p o s e : f u n c t i o n ( ) { r e t u r n ( t h i s . p a r e n t N o d e ) ? t h i s . p a r e n t N o d e . r e m o v e C h i l d ( t h i s ) : t h i s ; 
 } , m a t c h : f u n c t i o n ( p ) { r e t u r n   ! p | | S l i c k . m a t c h ( t h i s , p ) ; } } ) ; v a r   a = f u n c t i o n ( t , s , q ) { i f ( ! q ) { t . s e t A t t r i b u t e N o d e ( d o c u m e n t . c r e a t e A t t r i b u t e ( " i d " ) ) ; } i f ( t . c l e a r A t t r i b u t e s ) { t . c l e a r A t t r i b u t e s ( ) ; 
 t . m e r g e A t t r i b u t e s ( s ) ; t . r e m o v e A t t r i b u t e ( " u i d " ) ; i f ( t . o p t i o n s ) { v a r   u = t . o p t i o n s , p = s . o p t i o n s ; f o r ( v a r   r = u . l e n g t h ; r - - ; ) { u [ r ] . s e l e c t e d = p [ r ] . s e l e c t e d ; } } } v a r   v = n [ s . t a g N a m e . t o L o w e r C a s e ( ) ] ; 
 i f ( v & & s [ v ] ) { t [ v ] = s [ v ] ; } } ; E l e m e n t . i m p l e m e n t ( " c l o n e " , f u n c t i o n ( r , p ) { r = r ! = = f a l s e ; v a r   w = t h i s . c l o n e N o d e ( r ) , q ; i f ( r ) { v a r   s = w . g e t E l e m e n t s B y T a g N a m e ( " * " ) , u = t h i s . g e t E l e m e n t s B y T a g N a m e ( " * " ) ; 
 f o r ( q = s . l e n g t h ; q - - ; ) { a ( s [ q ] , u [ q ] , p ) ; } } a ( w , t h i s , p ) ; i f ( B r o w s e r . i e ) { v a r   t = w . g e t E l e m e n t s B y T a g N a m e ( " o b j e c t " ) , v = t h i s . g e t E l e m e n t s B y T a g N a m e ( " o b j e c t " ) ; f o r ( q = t . l e n g t h ; 
 q - - ; ) { t [ q ] . o u t e r H T M L = v [ q ] . o u t e r H T M L ; } } r e t u r n   d o c u m e n t . i d ( w ) ; } ) ; v a r   f = { c o n t a i n s : f u n c t i o n ( p ) { r e t u r n   S l i c k . c o n t a i n s ( t h i s , p ) ; } } ; i f ( ! d o c u m e n t . c o n t a i n s ) { D o c u m e n t . i m p l e m e n t ( f ) ; 
 } i f ( ! d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) . c o n t a i n s ) { E l e m e n t . i m p l e m e n t ( f ) ; } E l e m e n t . i m p l e m e n t ( " h a s C h i l d " , f u n c t i o n ( p ) { r e t u r n   t h i s ! = = p & & t h i s . c o n t a i n s ( p ) ; } ) ; [ E l e m e n t , W i n d o w , D o c u m e n t ] . i n v o k e ( " i m p l e m e n t " , { a d d L i s t e n e r : f u n c t i o n ( s , r ) { i f ( s = = " u n l o a d " ) { v a r   p = r , q = t h i s ; 
 r = f u n c t i o n ( ) { q . r e m o v e L i s t e n e r ( " u n l o a d " , r ) ; p ( ) ; } ; } e l s e { k [ $ u i d ( t h i s ) ] = t h i s ; } i f ( t h i s . a d d E v e n t L i s t e n e r ) { t h i s . a d d E v e n t L i s t e n e r ( s , r , ! ! a r g u m e n t s [ 2 ] ) ; } e l s e { t h i s . a t t a c h E v e n t ( " o n " + s , r ) ; 
 } r e t u r n   t h i s ; } , r e m o v e L i s t e n e r : f u n c t i o n ( q , p ) { i f ( t h i s . r e m o v e E v e n t L i s t e n e r ) { t h i s . r e m o v e E v e n t L i s t e n e r ( q , p , ! ! a r g u m e n t s [ 2 ] ) ; } e l s e { t h i s . d e t a c h E v e n t ( " o n " + q , p ) ; 
 } r e t u r n   t h i s ; } , r e t r i e v e : f u n c t i o n ( q , p ) { v a r   s = e ( $ u i d ( t h i s ) ) , r = s [ q ] ; i f ( p ! = n u l l & & r = = n u l l ) { r = s [ q ] = p ; } r e t u r n   r ! = n u l l ? r : n u l l ; } , s t o r e : f u n c t i o n ( q , p ) { v a r   r = e ( $ u i d ( t h i s ) ) ; 
 r [ q ] = p ; r e t u r n   t h i s ; } , e l i m i n a t e : f u n c t i o n ( p ) { v a r   q = e ( $ u i d ( t h i s ) ) ; d e l e t e   q [ p ] ; r e t u r n   t h i s ; } } ) ; i f ( w i n d o w . a t t a c h E v e n t & & ! w i n d o w . a d d E v e n t L i s t e n e r ) { w i n d o w . a d d L i s t e n e r ( " u n l o a d " , f u n c t i o n ( ) { O b j e c t . e a c h ( k , j ) ; 
 i f ( w i n d o w . C o l l e c t G a r b a g e ) { C o l l e c t G a r b a g e ( ) ; } } ) ; } } ) ( ) ; E l e m e n t . P r o p e r t i e s = { } ; E l e m e n t . P r o p e r t i e s = n e w   H a s h ; E l e m e n t . P r o p e r t i e s . s t y l e = { s e t : f u n c t i o n ( a ) { t h i s . s t y l e . c s s T e x t = a ; 
 } , g e t : f u n c t i o n ( ) { r e t u r n   t h i s . s t y l e . c s s T e x t ; } , e r a s e : f u n c t i o n ( ) { t h i s . s t y l e . c s s T e x t = " " ; } } ; E l e m e n t . P r o p e r t i e s . t a g = { g e t : f u n c t i o n ( ) { r e t u r n   t h i s . t a g N a m e . t o L o w e r C a s e ( ) ; 
 } } ; ( f u n c t i o n ( a ) { i f ( a ! = n u l l ) { E l e m e n t . P r o p e r t i e s . m a x l e n g t h = E l e m e n t . P r o p e r t i e s . m a x L e n g t h = { g e t : f u n c t i o n ( ) { v a r   b = t h i s . g e t A t t r i b u t e ( " m a x L e n g t h " ) ; r e t u r n   b = = a ? n u l l : b ; 
 } } ; } } ) ( d o c u m e n t . c r e a t e E l e m e n t ( " i n p u t " ) . g e t A t t r i b u t e ( " m a x L e n g t h " ) ) ; E l e m e n t . P r o p e r t i e s . h t m l = ( f u n c t i o n ( ) { v a r   c = F u n c t i o n . a t t e m p t ( f u n c t i o n ( ) { v a r   e = d o c u m e n t . c r e a t e E l e m e n t ( " t a b l e " ) ; 
 e . i n n e r H T M L = " < t r > < t d > < / t d > < / t r > " ; } ) ; v a r   d = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; v a r   a = { t a b l e : [ 1 , " < t a b l e > " , " < / t a b l e > " ] , s e l e c t : [ 1 , " < s e l e c t > " , " < / s e l e c t > " ] , t b o d y : [ 2 , " < t a b l e > < t b o d y > " , " < / t b o d y > < / t a b l e > " ] , t r : [ 3 , " < t a b l e > < t b o d y > < t r > " , " < / t r > < / t b o d y > < / t a b l e > " ] } ; 
 a . t h e a d = a . t f o o t = a . t b o d y ; v a r   b = { s e t : f u n c t i o n ( ) { v a r   f = A r r a y . f l a t t e n ( a r g u m e n t s ) . j o i n ( " " ) ; v a r   g = ( ! c & & a [ t h i s . g e t ( " t a g " ) ] ) ; i f ( g ) { v a r   h = d ; h . i n n e r H T M L = g [ 1 ] + f + g [ 2 ] ; 
 f o r ( v a r   e = g [ 0 ] ; e - - ; ) { h = h . f i r s t C h i l d ; } t h i s . e m p t y ( ) . a d o p t ( h . c h i l d N o d e s ) ; } e l s e { t h i s . i n n e r H T M L = f ; } } } ; b . e r a s e = b . s e t ; r e t u r n   b ; } ) ( ) ; ( f u n c t i o n ( ) { v a r   c = d o c u m e n t . h t m l ; 
 E l e m e n t . P r o p e r t i e s . s t y l e s = { s e t : f u n c t i o n ( f ) { t h i s . s e t S t y l e s ( f ) ; } } ; v a r   e = ( c . s t y l e . o p a c i t y ! = n u l l ) ; v a r   d = / a l p h a \ ( o p a c i t y = ( [ \ d . ] + ) \ ) / i ; v a r   b = f u n c t i o n ( g , f ) { i f ( ! g . c u r r e n t S t y l e | | ! g . c u r r e n t S t y l e . h a s L a y o u t ) { g . s t y l e . z o o m = 1 ; 
 } i f ( e ) { g . s t y l e . o p a c i t y = f ; } e l s e { f = ( f = = 1 ) ? " " : " a l p h a ( o p a c i t y = " + f * 1 0 0 + " ) " ; v a r   h = g . s t y l e . f i l t e r | | g . g e t C o m p u t e d S t y l e ( " f i l t e r " ) | | " " ; g . s t y l e . f i l t e r = d . t e s t ( h ) ? h . r e p l a c e ( d , f ) : h + f ; 
 } } ; E l e m e n t . P r o p e r t i e s . o p a c i t y = { s e t : f u n c t i o n ( g ) { v a r   f = t h i s . s t y l e . v i s i b i l i t y ; i f ( g = = 0 & & f ! = " h i d d e n " ) { t h i s . s t y l e . v i s i b i l i t y = " h i d d e n " ; } e l s e { i f ( g ! = 0 & & f ! = " v i s i b l e " ) { t h i s . s t y l e . v i s i b i l i t y = " v i s i b l e " ; 
 } } b ( t h i s , g ) ; } , g e t : ( e ) ? f u n c t i o n ( ) { v a r   f = t h i s . s t y l e . o p a c i t y | | t h i s . g e t C o m p u t e d S t y l e ( " o p a c i t y " ) ; r e t u r n ( f = = " " ) ? 1 : f ; } : f u n c t i o n ( ) { v a r   f , g = ( t h i s . s t y l e . f i l t e r | | t h i s . g e t C o m p u t e d S t y l e ( " f i l t e r " ) ) ; 
 i f ( g ) { f = g . m a t c h ( d ) ; } r e t u r n ( f = = n u l l | | g = = n u l l ) ? 1 : ( f [ 1 ] / 1 0 0 ) ; } } ; v a r   a = ( c . s t y l e . c s s F l o a t = = n u l l ) ? " s t y l e F l o a t " : " c s s F l o a t " ; E l e m e n t . i m p l e m e n t ( { g e t C o m p u t e d S t y l e : f u n c t i o n ( h ) { i f ( t h i s . c u r r e n t S t y l e ) { r e t u r n   t h i s . c u r r e n t S t y l e [ h . c a m e l C a s e ( ) ] ; 
 } v a r   g = E l e m e n t . g e t D o c u m e n t ( t h i s ) . d e f a u l t V i e w , f = g ? g . g e t C o m p u t e d S t y l e ( t h i s , n u l l ) : n u l l ; r e t u r n ( f ) ? f . g e t P r o p e r t y V a l u e ( ( h = = a ) ? " f l o a t " : h . h y p h e n a t e ( ) ) : n u l l ; } , s e t O p a c i t y : f u n c t i o n ( f ) { b ( t h i s , f ) ; 
 r e t u r n   t h i s ; } , g e t O p a c i t y : f u n c t i o n ( ) { r e t u r n   t h i s . g e t ( " o p a c i t y " ) ; } , s e t S t y l e : f u n c t i o n ( g , f ) { s w i t c h ( g ) { c a s e " o p a c i t y " : r e t u r n   t h i s . s e t ( " o p a c i t y " , p a r s e F l o a t ( f ) ) ; 
 c a s e " f l o a t " : g = a ; } g = g . c a m e l C a s e ( ) ; i f ( t y p e O f ( f ) ! = " s t r i n g " ) { v a r   h = ( E l e m e n t . S t y l e s [ g ] | | " @ " ) . s p l i t ( "   " ) ; f = A r r a y . f r o m ( f ) . m a p ( f u n c t i o n ( k , j ) { i f ( ! h [ j ] ) { r e t u r n " " ; 
 } r e t u r n ( t y p e O f ( k ) = = " n u m b e r " ) ? h [ j ] . r e p l a c e ( " @ " , M a t h . r o u n d ( k ) ) : k ; } ) . j o i n ( "   " ) ; } e l s e { i f ( f = = S t r i n g ( N u m b e r ( f ) ) ) { f = M a t h . r o u n d ( f ) ; } } t h i s . s t y l e [ g ] = f ; r e t u r n   t h i s ; 
 } , g e t S t y l e : f u n c t i o n ( l ) { s w i t c h ( l ) { c a s e " o p a c i t y " : r e t u r n   t h i s . g e t ( " o p a c i t y " ) ; c a s e " f l o a t " : l = a ; } l = l . c a m e l C a s e ( ) ; v a r   f = t h i s . s t y l e [ l ] ; i f ( ! f | | l = = " z I n d e x " ) { f = [ ] ; 
 f o r ( v a r   k   i n   E l e m e n t . S h o r t S t y l e s ) { i f ( l ! = k ) { c o n t i n u e ; } f o r ( v a r   j   i n   E l e m e n t . S h o r t S t y l e s [ k ] ) { f . p u s h ( t h i s . g e t S t y l e ( j ) ) ; } r e t u r n   f . j o i n ( "   " ) ; } f = t h i s . g e t C o m p u t e d S t y l e ( l ) ; 
 } i f ( f ) { f = S t r i n g ( f ) ; v a r   h = f . m a t c h ( / r g b a ? \ ( [ \ d \ s , ] + \ ) / ) ; i f ( h ) { f = f . r e p l a c e ( h [ 0 ] , h [ 0 ] . r g b T o H e x ( ) ) ; } } i f ( B r o w s e r . o p e r a | | ( B r o w s e r . i e & & i s N a N ( p a r s e F l o a t ( f ) ) ) ) { i f ( ( / ^ ( h e i g h t | w i d t h ) $ / ) . t e s t ( l ) ) { v a r   g = ( l = = " w i d t h " ) ? [ " l e f t " , " r i g h t " ] : [ " t o p " , " b o t t o m " ] , i = 0 ; 
 g . e a c h ( f u n c t i o n ( m ) { i + = t h i s . g e t S t y l e ( " b o r d e r - " + m + " - w i d t h " ) . t o I n t ( ) + t h i s . g e t S t y l e ( " p a d d i n g - " + m ) . t o I n t ( ) ; } , t h i s ) ; r e t u r n   t h i s [ " o f f s e t " + l . c a p i t a l i z e ( ) ] - i + " p x " ; 
 } i f ( B r o w s e r . o p e r a & & S t r i n g ( f ) . i n d e x O f ( " p x " ) ! = - 1 ) { r e t u r n   f ; } i f ( ( / ^ b o r d e r ( . + ) W i d t h | m a r g i n | p a d d i n g / ) . t e s t ( l ) ) { r e t u r n " 0 p x " ; } } r e t u r n   f ; } , s e t S t y l e s : f u n c t i o n ( g ) { f o r ( v a r   f   i n   g ) { t h i s . s e t S t y l e ( f , g [ f ] ) ; 
 } r e t u r n   t h i s ; } , g e t S t y l e s : f u n c t i o n ( ) { v a r   f = { } ; A r r a y . f l a t t e n ( a r g u m e n t s ) . e a c h ( f u n c t i o n ( g ) { f [ g ] = t h i s . g e t S t y l e ( g ) ; } , t h i s ) ; r e t u r n   f ; } } ) ; E l e m e n t . S t y l e s = { l e f t : " @ p x " , t o p : " @ p x " , b o t t o m : " @ p x " , r i g h t : " @ p x " , w i d t h : " @ p x " , h e i g h t : " @ p x " , m a x W i d t h : " @ p x " , m a x H e i g h t : " @ p x " , m i n W i d t h : " @ p x " , m i n H e i g h t : " @ p x " , b a c k g r o u n d C o l o r : " r g b ( @ ,   @ ,   @ ) " , b a c k g r o u n d P o s i t i o n : " @ p x   @ p x " , c o l o r : " r g b ( @ ,   @ ,   @ ) " , f o n t S i z e : " @ p x " , l e t t e r S p a c i n g : " @ p x " , l i n e H e i g h t : " @ p x " , c l i p : " r e c t ( @ p x   @ p x   @ p x   @ p x ) " , m a r g i n : " @ p x   @ p x   @ p x   @ p x " , p a d d i n g : " @ p x   @ p x   @ p x   @ p x " , b o r d e r : " @ p x   @   r g b ( @ ,   @ ,   @ )   @ p x   @   r g b ( @ ,   @ ,   @ )   @ p x   @   r g b ( @ ,   @ ,   @ ) " , b o r d e r W i d t h : " @ p x   @ p x   @ p x   @ p x " , b o r d e r S t y l e : " @   @   @   @ " , b o r d e r C o l o r : " r g b ( @ ,   @ ,   @ )   r g b ( @ ,   @ ,   @ )   r g b ( @ ,   @ ,   @ )   r g b ( @ ,   @ ,   @ ) " , z I n d e x : " @ " , z o o m : " @ " , f o n t W e i g h t : " @ " , t e x t I n d e n t : " @ p x " , o p a c i t y : " @ " } ; 
 E l e m e n t . S t y l e s = n e w   H a s h ( E l e m e n t . S t y l e s ) ; E l e m e n t . S h o r t S t y l e s = { m a r g i n : { } , p a d d i n g : { } , b o r d e r : { } , b o r d e r W i d t h : { } , b o r d e r S t y l e : { } , b o r d e r C o l o r : { } } ; [ " T o p " , " R i g h t " , " B o t t o m " , " L e f t " ] . e a c h ( f u n c t i o n ( l ) { v a r   k = E l e m e n t . S h o r t S t y l e s ; 
 v a r   g = E l e m e n t . S t y l e s ; [ " m a r g i n " , " p a d d i n g " ] . e a c h ( f u n c t i o n ( m ) { v a r   n = m + l ; k [ m ] [ n ] = g [ n ] = " @ p x " ; } ) ; v a r   j = " b o r d e r " + l ; k . b o r d e r [ j ] = g [ j ] = " @ p x   @   r g b ( @ ,   @ ,   @ ) " ; v a r   i = j + " W i d t h " , f = j + " S t y l e " , h = j + " C o l o r " ; 
 k [ j ] = { } ; k . b o r d e r W i d t h [ i ] = k [ j ] [ i ] = g [ i ] = " @ p x " ; k . b o r d e r S t y l e [ f ] = k [ j ] [ f ] = g [ f ] = " @ " ; k . b o r d e r C o l o r [ h ] = k [ j ] [ h ] = g [ h ] = " r g b ( @ ,   @ ,   @ ) " ; } ) ; } ) . c a l l ( t h i s ) ; ( f u n c t i o n ( ) { E l e m e n t . P r o p e r t i e s . e v e n t s = { s e t : f u n c t i o n ( b ) { t h i s . a d d E v e n t s ( b ) ; 
 } } ; [ E l e m e n t , W i n d o w , D o c u m e n t ] . i n v o k e ( " i m p l e m e n t " , { a d d E v e n t : f u n c t i o n ( f , h ) { v a r   i = t h i s . r e t r i e v e ( " e v e n t s " , { } ) ; i f ( ! i [ f ] ) { i [ f ] = { k e y s : [ ] , v a l u e s : [ ] } ; } i f ( i [ f ] . k e y s . c o n t a i n s ( h ) ) { r e t u r n   t h i s ; 
 } i [ f ] . k e y s . p u s h ( h ) ; v a r   g = f , b = E l e m e n t . E v e n t s [ f ] , d = h , j = t h i s ; i f ( b ) { i f ( b . o n A d d ) { b . o n A d d . c a l l ( t h i s , h ) ; } i f ( b . c o n d i t i o n ) { d = f u n c t i o n ( k ) { i f ( b . c o n d i t i o n . c a l l ( t h i s , k ) ) { r e t u r n   h . c a l l ( t h i s , k ) ; 
 } r e t u r n   t r u e ; } ; } g = b . b a s e | | g ; } v a r   e = f u n c t i o n ( ) { r e t u r n   h . c a l l ( j ) ; } ; v a r   c = E l e m e n t . N a t i v e E v e n t s [ g ] ; i f ( c ) { i f ( c = = 2 ) { e = f u n c t i o n ( k ) { k = n e w   E v e n t ( k , j . g e t W i n d o w ( ) ) ; 
 i f ( d . c a l l ( j , k ) = = = f a l s e ) { k . s t o p ( ) ; } } ; } t h i s . a d d L i s t e n e r ( g , e , a r g u m e n t s [ 2 ] ) ; } i [ f ] . v a l u e s . p u s h ( e ) ; r e t u r n   t h i s ; } , r e m o v e E v e n t : f u n c t i o n ( e , d ) { v a r   c = t h i s . r e t r i e v e ( " e v e n t s " ) ; 
 i f ( ! c | | ! c [ e ] ) { r e t u r n   t h i s ; } v a r   h = c [ e ] ; v a r   b = h . k e y s . i n d e x O f ( d ) ; i f ( b = = - 1 ) { r e t u r n   t h i s ; } v a r   g = h . v a l u e s [ b ] ; d e l e t e   h . k e y s [ b ] ; d e l e t e   h . v a l u e s [ b ] ; v a r   f = E l e m e n t . E v e n t s [ e ] ; 
 i f ( f ) { i f ( f . o n R e m o v e ) { f . o n R e m o v e . c a l l ( t h i s , d ) ; } e = f . b a s e | | e ; } r e t u r n ( E l e m e n t . N a t i v e E v e n t s [ e ] ) ? t h i s . r e m o v e L i s t e n e r ( e , g , a r g u m e n t s [ 2 ] ) : t h i s ; } , a d d E v e n t s : f u n c t i o n ( b ) { f o r ( v a r   c   i n   b ) { t h i s . a d d E v e n t ( c , b [ c ] ) ; 
 } r e t u r n   t h i s ; } , r e m o v e E v e n t s : f u n c t i o n ( b ) { v a r   d ; i f ( t y p e O f ( b ) = = " o b j e c t " ) { f o r ( d   i n   b ) { t h i s . r e m o v e E v e n t ( d , b [ d ] ) ; } r e t u r n   t h i s ; } v a r   c = t h i s . r e t r i e v e ( " e v e n t s " ) ; 
 i f ( ! c ) { r e t u r n   t h i s ; } i f ( ! b ) { f o r ( d   i n   c ) { t h i s . r e m o v e E v e n t s ( d ) ; } t h i s . e l i m i n a t e ( " e v e n t s " ) ; } e l s e { i f ( c [ b ] ) { c [ b ] . k e y s . e a c h ( f u n c t i o n ( e ) { t h i s . r e m o v e E v e n t ( b , e ) ; } , t h i s ) ; 
 d e l e t e   c [ b ] ; } } r e t u r n   t h i s ; } , f i r e E v e n t : f u n c t i o n ( e , c , b ) { v a r   d = t h i s . r e t r i e v e ( " e v e n t s " ) ; i f ( ! d | | ! d [ e ] ) { r e t u r n   t h i s ; } c = A r r a y . f r o m ( c ) ; d [ e ] . k e y s . e a c h ( f u n c t i o n ( f ) { i f ( b ) { f . d e l a y ( b , t h i s , c ) ; 
 } e l s e { f . a p p l y ( t h i s , c ) ; } } , t h i s ) ; r e t u r n   t h i s ; } , c l o n e E v e n t s : f u n c t i o n ( e , d ) { e = d o c u m e n t . i d ( e ) ; v a r   c = e . r e t r i e v e ( " e v e n t s " ) ; i f ( ! c ) { r e t u r n   t h i s ; } i f ( ! d ) { f o r ( v a r   b   i n   c ) { t h i s . c l o n e E v e n t s ( e , b ) ; 
 } } e l s e { i f ( c [ d ] ) { c [ d ] . k e y s . e a c h ( f u n c t i o n ( f ) { t h i s . a d d E v e n t ( d , f ) ; } , t h i s ) ; } } r e t u r n   t h i s ; } } ) ; E l e m e n t . N a t i v e E v e n t s = { c l i c k : 2 , d b l c l i c k : 2 , m o u s e u p : 2 , m o u s e d o w n : 2 , c o n t e x t m e n u : 2 , m o u s e w h e e l : 2 , D O M M o u s e S c r o l l : 2 , m o u s e o v e r : 2 , m o u s e o u t : 2 , m o u s e m o v e : 2 , s e l e c t s t a r t : 2 , s e l e c t e n d : 2 , k e y d o w n : 2 , k e y p r e s s : 2 , k e y u p : 2 , o r i e n t a t i o n c h a n g e : 2 , t o u c h s t a r t : 2 , t o u c h m o v e : 2 , t o u c h e n d : 2 , t o u c h c a n c e l : 2 , g e s t u r e s t a r t : 2 , g e s t u r e c h a n g e : 2 , g e s t u r e e n d : 2 , f o c u s : 2 , b l u r : 2 , c h a n g e : 2 , r e s e t : 2 , s e l e c t : 2 , s u b m i t : 2 , l o a d : 2 , u n l o a d : 1 , b e f o r e u n l o a d : 2 , r e s i z e : 1 , m o v e : 1 , D O M C o n t e n t L o a d e d : 1 , r e a d y s t a t e c h a n g e : 1 , e r r o r : 1 , a b o r t : 1 , s c r o l l : 1 } ; 
 v a r   a = f u n c t i o n ( b ) { v a r   c = b . r e l a t e d T a r g e t ; i f ( c = = n u l l ) { r e t u r n   t r u e ; } i f ( ! c ) { r e t u r n   f a l s e ; } r e t u r n ( c ! = t h i s & & c . p r e f i x ! = " x u l " & & t y p e O f ( t h i s ) ! = " d o c u m e n t " & & ! t h i s . c o n t a i n s ( c ) ) ; 
 } ; E l e m e n t . E v e n t s = { m o u s e e n t e r : { b a s e : " m o u s e o v e r " , c o n d i t i o n : a } , m o u s e l e a v e : { b a s e : " m o u s e o u t " , c o n d i t i o n : a } , m o u s e w h e e l : { b a s e : ( B r o w s e r . f i r e f o x ) ? " D O M M o u s e S c r o l l " : " m o u s e w h e e l " } } ; 
 E l e m e n t . E v e n t s = n e w   H a s h ( E l e m e n t . E v e n t s ) ; } ) . c a l l ( t h i s ) ; ( f u n c t i o n ( ) { v a r   h = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) , e = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; h . s t y l e . h e i g h t = " 0 " ; 
 h . a p p e n d C h i l d ( e ) ; v a r   d = ( e . o f f s e t P a r e n t = = = h ) ; h = e = n u l l ; v a r   l = f u n c t i o n ( m ) { r e t u r n   k ( m , " p o s i t i o n " ) ! = " s t a t i c " | | a ( m ) ; } ; v a r   i = f u n c t i o n ( m ) { r e t u r n   l ( m ) | | ( / ^ ( ? : t a b l e | t d | t h ) $ / i ) . t e s t ( m . t a g N a m e ) ; 
 } ; E l e m e n t . i m p l e m e n t ( { s c r o l l T o : f u n c t i o n ( m , n ) { i f ( a ( t h i s ) ) { t h i s . g e t W i n d o w ( ) . s c r o l l T o ( m , n ) ; } e l s e { t h i s . s c r o l l L e f t = m ; t h i s . s c r o l l T o p = n ; } r e t u r n   t h i s ; } , g e t S i z e : f u n c t i o n ( ) { i f ( a ( t h i s ) ) { r e t u r n   t h i s . g e t W i n d o w ( ) . g e t S i z e ( ) ; 
 } r e t u r n { x : t h i s . o f f s e t W i d t h , y : t h i s . o f f s e t H e i g h t } ; } , g e t S c r o l l S i z e : f u n c t i o n ( ) { i f ( a ( t h i s ) ) { r e t u r n   t h i s . g e t W i n d o w ( ) . g e t S c r o l l S i z e ( ) ; } r e t u r n { x : t h i s . s c r o l l W i d t h , y : t h i s . s c r o l l H e i g h t } ; 
 } , g e t S c r o l l : f u n c t i o n ( ) { i f ( a ( t h i s ) ) { r e t u r n   t h i s . g e t W i n d o w ( ) . g e t S c r o l l ( ) ; } r e t u r n { x : t h i s . s c r o l l L e f t , y : t h i s . s c r o l l T o p } ; } , g e t S c r o l l s : f u n c t i o n ( ) { v a r   n = t h i s . p a r e n t N o d e , m = { x : 0 , y : 0 } ; 
 w h i l e ( n & & ! a ( n ) ) { m . x + = n . s c r o l l L e f t ; m . y + = n . s c r o l l T o p ; n = n . p a r e n t N o d e ; } r e t u r n   m ; } , g e t O f f s e t P a r e n t : d ? f u n c t i o n ( ) { v a r   m = t h i s ; i f ( a ( m ) | | k ( m , " p o s i t i o n " ) = = " f i x e d " ) { r e t u r n   n u l l ; 
 } v a r   n = ( k ( m , " p o s i t i o n " ) = = " s t a t i c " ) ? i : l ; w h i l e ( ( m = m . p a r e n t N o d e ) ) { i f ( n ( m ) ) { r e t u r n   m ; } } r e t u r n   n u l l ; } : f u n c t i o n ( ) { v a r   m = t h i s ; i f ( a ( m ) | | k ( m , " p o s i t i o n " ) = = " f i x e d " ) { r e t u r n   n u l l ; 
 } t r y { r e t u r n   m . o f f s e t P a r e n t ; } c a t c h ( n ) { } r e t u r n   n u l l ; } , g e t O f f s e t s : f u n c t i o n ( ) { i f ( t h i s . g e t B o u n d i n g C l i e n t R e c t & & ! B r o w s e r . P l a t f o r m . i o s ) { v a r   r = t h i s . g e t B o u n d i n g C l i e n t R e c t ( ) , o = d o c u m e n t . i d ( t h i s . g e t D o c u m e n t ( ) . d o c u m e n t E l e m e n t ) , q = o . g e t S c r o l l ( ) , t = t h i s . g e t S c r o l l s ( ) , s = ( k ( t h i s , " p o s i t i o n " ) = = " f i x e d " ) ; 
 r e t u r n { x : r . l e f t . t o I n t ( ) + t . x + ( ( s ) ? 0 : q . x ) - o . c l i e n t L e f t , y : r . t o p . t o I n t ( ) + t . y + ( ( s ) ? 0 : q . y ) - o . c l i e n t T o p } ; } v a r   n = t h i s , m = { x : 0 , y : 0 } ; i f ( a ( t h i s ) ) { r e t u r n   m ; } w h i l e ( n & & ! a ( n ) ) { m . x + = n . o f f s e t L e f t ; 
 m . y + = n . o f f s e t T o p ; i f ( B r o w s e r . f i r e f o x ) { i f ( ! c ( n ) ) { m . x + = b ( n ) ; m . y + = g ( n ) ; } v a r   p = n . p a r e n t N o d e ; i f ( p & & k ( p , " o v e r f l o w " ) ! = " v i s i b l e " ) { m . x + = b ( p ) ; m . y + = g ( p ) ; } } e l s e { i f ( n ! = t h i s & & B r o w s e r . s a f a r i ) { m . x + = b ( n ) ; 
 m . y + = g ( n ) ; } } n = n . o f f s e t P a r e n t ; } i f ( B r o w s e r . f i r e f o x & & ! c ( t h i s ) ) { m . x - = b ( t h i s ) ; m . y - = g ( t h i s ) ; } r e t u r n   m ; } , g e t P o s i t i o n : f u n c t i o n ( p ) { i f ( a ( t h i s ) ) { r e t u r n { x : 0 , y : 0 } ; } v a r   q = t h i s . g e t O f f s e t s ( ) , n = t h i s . g e t S c r o l l s ( ) ; 
 v a r   m = { x : q . x - n . x , y : q . y - n . y } ; i f ( p & & ( p = d o c u m e n t . i d ( p ) ) ) { v a r   o = p . g e t P o s i t i o n ( ) ; r e t u r n { x : m . x - o . x - b ( p ) , y : m . y - o . y - g ( p ) } ; } r e t u r n   m ; } , g e t C o o r d i n a t e s : f u n c t i o n ( o ) { i f ( a ( t h i s ) ) { r e t u r n   t h i s . g e t W i n d o w ( ) . g e t C o o r d i n a t e s ( ) ; 
 } v a r   m = t h i s . g e t P o s i t i o n ( o ) , n = t h i s . g e t S i z e ( ) ; v a r   p = { l e f t : m . x , t o p : m . y , w i d t h : n . x , h e i g h t : n . y } ; p . r i g h t = p . l e f t + p . w i d t h ; p . b o t t o m = p . t o p + p . h e i g h t ; r e t u r n   p ; } , c o m p u t e P o s i t i o n : f u n c t i o n ( m ) { r e t u r n { l e f t : m . x - j ( t h i s , " m a r g i n - l e f t " ) , t o p : m . y - j ( t h i s , " m a r g i n - t o p " ) } ; 
 } , s e t P o s i t i o n : f u n c t i o n ( m ) { r e t u r n   t h i s . s e t S t y l e s ( t h i s . c o m p u t e P o s i t i o n ( m ) ) ; } } ) ; [ D o c u m e n t , W i n d o w ] . i n v o k e ( " i m p l e m e n t " , { g e t S i z e : f u n c t i o n ( ) { v a r   m = f ( t h i s ) ; r e t u r n { x : m . c l i e n t W i d t h , y : m . c l i e n t H e i g h t } ; 
 } , g e t S c r o l l : f u n c t i o n ( ) { v a r   n = t h i s . g e t W i n d o w ( ) , m = f ( t h i s ) ; r e t u r n { x : n . p a g e X O f f s e t | | m . s c r o l l L e f t , y : n . p a g e Y O f f s e t | | m . s c r o l l T o p } ; } , g e t S c r o l l S i z e : f u n c t i o n ( ) { v a r   o = f ( t h i s ) , n = t h i s . g e t S i z e ( ) , m = t h i s . g e t D o c u m e n t ( ) . b o d y ; 
 r e t u r n { x : M a t h . m a x ( o . s c r o l l W i d t h , m . s c r o l l W i d t h , n . x ) , y : M a t h . m a x ( o . s c r o l l H e i g h t , m . s c r o l l H e i g h t , n . y ) } ; } , g e t P o s i t i o n : f u n c t i o n ( ) { r e t u r n { x : 0 , y : 0 } ; } , g e t C o o r d i n a t e s : f u n c t i o n ( ) { v a r   m = t h i s . g e t S i z e ( ) ; 
 r e t u r n { t o p : 0 , l e f t : 0 , b o t t o m : m . y , r i g h t : m . x , h e i g h t : m . y , w i d t h : m . x } ; } } ) ; v a r   k = E l e m e n t . g e t C o m p u t e d S t y l e ; f u n c t i o n   j ( m , n ) { r e t u r n   k ( m , n ) . t o I n t ( ) | | 0 ; } f u n c t i o n   c ( m ) { r e t u r n   k ( m , " - m o z - b o x - s i z i n g " ) = = " b o r d e r - b o x " ; 
 } f u n c t i o n   g ( m ) { r e t u r n   j ( m , " b o r d e r - t o p - w i d t h " ) ; } f u n c t i o n   b ( m ) { r e t u r n   j ( m , " b o r d e r - l e f t - w i d t h " ) ; } f u n c t i o n   a ( m ) { r e t u r n ( / ^ ( ? : b o d y | h t m l ) $ / i ) . t e s t ( m . t a g N a m e ) ; 
 } f u n c t i o n   f ( m ) { v a r   n = m . g e t D o c u m e n t ( ) ; r e t u r n ( ! n . c o m p a t M o d e | | n . c o m p a t M o d e = = " C S S 1 C o m p a t " ) ? n . h t m l : n . b o d y ; } } ) . c a l l ( t h i s ) ; E l e m e n t . a l i a s ( { p o s i t i o n : " s e t P o s i t i o n " } ) ; 
 [ W i n d o w , D o c u m e n t , E l e m e n t ] . i n v o k e ( " i m p l e m e n t " , { g e t H e i g h t : f u n c t i o n ( ) { r e t u r n   t h i s . g e t S i z e ( ) . y ; } , g e t W i d t h : f u n c t i o n ( ) { r e t u r n   t h i s . g e t S i z e ( ) . x ; } , g e t S c r o l l T o p : f u n c t i o n ( ) { r e t u r n   t h i s . g e t S c r o l l ( ) . y ; 
 } , g e t S c r o l l L e f t : f u n c t i o n ( ) { r e t u r n   t h i s . g e t S c r o l l ( ) . x ; } , g e t S c r o l l H e i g h t : f u n c t i o n ( ) { r e t u r n   t h i s . g e t S c r o l l S i z e ( ) . y ; } , g e t S c r o l l W i d t h : f u n c t i o n ( ) { r e t u r n   t h i s . g e t S c r o l l S i z e ( ) . x ; 
 } , g e t T o p : f u n c t i o n ( ) { r e t u r n   t h i s . g e t P o s i t i o n ( ) . y ; } , g e t L e f t : f u n c t i o n ( ) { r e t u r n   t h i s . g e t P o s i t i o n ( ) . x ; } } ) ; ( f u n c t i o n ( ) { v a r   f = t h i s . F x = n e w   C l a s s ( { I m p l e m e n t s : [ C h a i n , E v e n t s , O p t i o n s ] , o p t i o n s : { f p s : 6 0 , u n i t : f a l s e , d u r a t i o n : 5 0 0 , f r a m e s : n u l l , f r a m e S k i p : t r u e , l i n k : " i g n o r e " } , i n i t i a l i z e : f u n c t i o n ( g ) { t h i s . s u b j e c t = t h i s . s u b j e c t | | t h i s ; 
 t h i s . s e t O p t i o n s ( g ) ; } , g e t T r a n s i t i o n : f u n c t i o n ( ) { r e t u r n   f u n c t i o n ( g ) { r e t u r n   - ( M a t h . c o s ( M a t h . P I * g ) - 1 ) / 2 ; } ; } , s t e p : f u n c t i o n ( g ) { i f ( t h i s . o p t i o n s . f r a m e S k i p ) { v a r   h = ( t h i s . t i m e ! = n u l l ) ? ( g - t h i s . t i m e ) : 0 , i = h / t h i s . f r a m e I n t e r v a l ; 
 t h i s . t i m e = g ; t h i s . f r a m e + = i ; } e l s e { t h i s . f r a m e + + ; } i f ( t h i s . f r a m e < t h i s . f r a m e s ) { v a r   j = t h i s . t r a n s i t i o n ( t h i s . f r a m e / t h i s . f r a m e s ) ; t h i s . s e t ( t h i s . c o m p u t e ( t h i s . f r o m , t h i s . t o , j ) ) ; 
 } e l s e { t h i s . f r a m e = t h i s . f r a m e s ; t h i s . s e t ( t h i s . c o m p u t e ( t h i s . f r o m , t h i s . t o , 1 ) ) ; t h i s . s t o p ( ) ; } } , s e t : f u n c t i o n ( g ) { r e t u r n   g ; } , c o m p u t e : f u n c t i o n ( i , h , g ) { r e t u r n   f . c o m p u t e ( i , h , g ) ; 
 } , c h e c k : f u n c t i o n ( ) { i f ( ! t h i s . i s R u n n i n g ( ) ) { r e t u r n   t r u e ; } s w i t c h ( t h i s . o p t i o n s . l i n k ) { c a s e " c a n c e l " : t h i s . c a n c e l ( ) ; r e t u r n   t r u e ; c a s e " c h a i n " : t h i s . c h a i n ( t h i s . c a l l e r . p a s s ( a r g u m e n t s , t h i s ) ) ; 
 r e t u r n   f a l s e ; } r e t u r n   f a l s e ; } , s t a r t : f u n c t i o n ( k , j ) { i f ( ! t h i s . c h e c k ( k , j ) ) { r e t u r n   t h i s ; } t h i s . f r o m = k ; t h i s . t o = j ; t h i s . f r a m e = ( t h i s . o p t i o n s . f r a m e S k i p ) ? 0 : - 1 ; t h i s . t i m e = n u l l ; 
 t h i s . t r a n s i t i o n = t h i s . g e t T r a n s i t i o n ( ) ; v a r   i = t h i s . o p t i o n s . f r a m e s , h = t h i s . o p t i o n s . f p s , g = t h i s . o p t i o n s . d u r a t i o n ; t h i s . d u r a t i o n = f . D u r a t i o n s [ g ] | | g . t o I n t ( ) ; t h i s . f r a m e I n t e r v a l = 1 0 0 0 / h ; 
 t h i s . f r a m e s = i | | M a t h . r o u n d ( t h i s . d u r a t i o n / t h i s . f r a m e I n t e r v a l ) ; t h i s . f i r e E v e n t ( " s t a r t " , t h i s . s u b j e c t ) ; b . c a l l ( t h i s , h ) ; r e t u r n   t h i s ; } , s t o p : f u n c t i o n ( ) { i f ( t h i s . i s R u n n i n g ( ) ) { t h i s . t i m e = n u l l ; 
 d . c a l l ( t h i s , t h i s . o p t i o n s . f p s ) ; i f ( t h i s . f r a m e s = = t h i s . f r a m e ) { t h i s . f i r e E v e n t ( " c o m p l e t e " , t h i s . s u b j e c t ) ; i f ( ! t h i s . c a l l C h a i n ( ) ) { t h i s . f i r e E v e n t ( " c h a i n C o m p l e t e " , t h i s . s u b j e c t ) ; 
 } } e l s e { t h i s . f i r e E v e n t ( " s t o p " , t h i s . s u b j e c t ) ; } } r e t u r n   t h i s ; } , c a n c e l : f u n c t i o n ( ) { i f ( t h i s . i s R u n n i n g ( ) ) { t h i s . t i m e = n u l l ; d . c a l l ( t h i s , t h i s . o p t i o n s . f p s ) ; t h i s . f r a m e = t h i s . f r a m e s ; 
 t h i s . f i r e E v e n t ( " c a n c e l " , t h i s . s u b j e c t ) . c l e a r C h a i n ( ) ; } r e t u r n   t h i s ; } , p a u s e : f u n c t i o n ( ) { i f ( t h i s . i s R u n n i n g ( ) ) { t h i s . t i m e = n u l l ; d . c a l l ( t h i s , t h i s . o p t i o n s . f p s ) ; } r e t u r n   t h i s ; 
 } , r e s u m e : f u n c t i o n ( ) { i f ( ( t h i s . f r a m e < t h i s . f r a m e s ) & & ! t h i s . i s R u n n i n g ( ) ) { b . c a l l ( t h i s , t h i s . o p t i o n s . f p s ) ; } r e t u r n   t h i s ; } , i s R u n n i n g : f u n c t i o n ( ) { v a r   g = e [ t h i s . o p t i o n s . f p s ] ; 
 r e t u r n   g & & g . c o n t a i n s ( t h i s ) ; } } ) ; f . c o m p u t e = f u n c t i o n ( i , h , g ) { r e t u r n ( h - i ) * g + i ; } ; f . D u r a t i o n s = { " s h o r t " : 2 5 0 , n o r m a l : 5 0 0 , " l o n g " : 1 0 0 0 } ; v a r   e = { } , c = { } ; v a r   a = f u n c t i o n ( ) { v a r   h = D a t e . n o w ( ) ; 
 f o r ( v a r   j = t h i s . l e n g t h ; j - - ; ) { v a r   g = t h i s [ j ] ; i f ( g ) { g . s t e p ( h ) ; } } } ; v a r   b = f u n c t i o n ( h ) { v a r   g = e [ h ] | | ( e [ h ] = [ ] ) ; g . p u s h ( t h i s ) ; i f ( ! c [ h ] ) { c [ h ] = a . p e r i o d i c a l ( M a t h . r o u n d ( 1 0 0 0 / h ) , g ) ; 
 } } ; v a r   d = f u n c t i o n ( h ) { v a r   g = e [ h ] ; i f ( g ) { g . e r a s e ( t h i s ) ; i f ( ! g . l e n g t h & & c [ h ] ) { d e l e t e   e [ h ] ; c [ h ] = c l e a r I n t e r v a l ( c [ h ] ) ; } } } ; } ) . c a l l ( t h i s ) ; F x . C S S = n e w   C l a s s ( { E x t e n d s : F x , p r e p a r e : f u n c t i o n ( c , d , b ) { b = A r r a y . f r o m ( b ) ; 
 i f ( b [ 1 ] = = n u l l ) { b [ 1 ] = b [ 0 ] ; b [ 0 ] = c . g e t S t y l e ( d ) ; } v a r   a = b . m a p ( t h i s . p a r s e ) ; r e t u r n { f r o m : a [ 0 ] , t o : a [ 1 ] } ; } , p a r s e : f u n c t i o n ( a ) { a = F u n c t i o n . f r o m ( a ) ( ) ; a = ( t y p e o f   a = = " s t r i n g " ) ? a . s p l i t ( "   " ) : A r r a y . f r o m ( a ) ; 
 r e t u r n   a . m a p ( f u n c t i o n ( c ) { c = S t r i n g ( c ) ; v a r   b = f a l s e ; O b j e c t . e a c h ( F x . C S S . P a r s e r s , f u n c t i o n ( f , e ) { i f ( b ) { r e t u r n ; } v a r   d = f . p a r s e ( c ) ; i f ( d | | d = = = 0 ) { b = { v a l u e : d , p a r s e r : f } ; 
 } } ) ; b = b | | { v a l u e : c , p a r s e r : F x . C S S . P a r s e r s . S t r i n g } ; r e t u r n   b ; } ) ; } , c o m p u t e : f u n c t i o n ( d , c , b ) { v a r   a = [ ] ; ( M a t h . m i n ( d . l e n g t h , c . l e n g t h ) ) . t i m e s ( f u n c t i o n ( e ) { a . p u s h ( { v a l u e : d [ e ] . p a r s e r . c o m p u t e ( d [ e ] . v a l u e , c [ e ] . v a l u e , b ) , p a r s e r : d [ e ] . p a r s e r } ) ; 
 } ) ; a . $ f a m i l y = F u n c t i o n . f r o m ( " f x : c s s : v a l u e " ) ; r e t u r n   a ; } , s e r v e : f u n c t i o n ( c , b ) { i f ( t y p e O f ( c ) ! = " f x : c s s : v a l u e " ) { c = t h i s . p a r s e ( c ) ; } v a r   a = [ ] ; c . e a c h ( f u n c t i o n ( d ) { a = a . c o n c a t ( d . p a r s e r . s e r v e ( d . v a l u e , b ) ) ; 
 } ) ; r e t u r n   a ; } , r e n d e r : f u n c t i o n ( a , d , c , b ) { a . s e t S t y l e ( d , t h i s . s e r v e ( c , b ) ) ; } , s e a r c h : f u n c t i o n ( a ) { i f ( F x . C S S . C a c h e [ a ] ) { r e t u r n   F x . C S S . C a c h e [ a ] ; } v a r   c = { } , b = n e w   R e g E x p ( " ^ " + a . e s c a p e R e g E x p ( ) + " $ " ) ; 
 A r r a y . e a c h ( d o c u m e n t . s t y l e S h e e t s , f u n c t i o n ( f , e ) { v a r   d = f . h r e f ; i f ( d & & d . c o n t a i n s ( " : / / " ) & & ! d . c o n t a i n s ( d o c u m e n t . d o m a i n ) ) { r e t u r n ; } v a r   g = f . r u l e s | | f . c s s R u l e s ; A r r a y . e a c h ( g , f u n c t i o n ( k , h ) { i f ( ! k . s t y l e ) { r e t u r n ; 
 } v a r   j = ( k . s e l e c t o r T e x t ) ? k . s e l e c t o r T e x t . r e p l a c e ( / ^ \ w + / , f u n c t i o n ( i ) { r e t u r n   i . t o L o w e r C a s e ( ) ; } ) : n u l l ; i f ( ! j | | ! b . t e s t ( j ) ) { r e t u r n ; } O b j e c t . e a c h ( E l e m e n t . S t y l e s , f u n c t i o n ( l , i ) { i f ( ! k . s t y l e [ i ] | | E l e m e n t . S h o r t S t y l e s [ i ] ) { r e t u r n ; 
 } l = S t r i n g ( k . s t y l e [ i ] ) ; c [ i ] = ( ( / ^ r g b / ) . t e s t ( l ) ) ? l . r g b T o H e x ( ) : l ; } ) ; } ) ; } ) ; r e t u r n   F x . C S S . C a c h e [ a ] = c ; } } ) ; F x . C S S . C a c h e = { } ; F x . C S S . P a r s e r s = { C o l o r : { p a r s e : f u n c t i o n ( a ) { i f ( a . m a t c h ( / ^ # [ 0 - 9 a - f ] { 3 , 6 } $ / i ) ) { r e t u r n   a . h e x T o R g b ( t r u e ) ; 
 } r e t u r n ( ( a = a . m a t c h ( / ( \ d + ) , \ s * ( \ d + ) , \ s * ( \ d + ) / ) ) ) ? [ a [ 1 ] , a [ 2 ] , a [ 3 ] ] : f a l s e ; } , c o m p u t e : f u n c t i o n ( c , b , a ) { r e t u r n   c . m a p ( f u n c t i o n ( e , d ) { r e t u r n   M a t h . r o u n d ( F x . c o m p u t e ( c [ d ] , b [ d ] , a ) ) ; 
 } ) ; } , s e r v e : f u n c t i o n ( a ) { r e t u r n   a . m a p ( N u m b e r ) ; } } , N u m b e r : { p a r s e : p a r s e F l o a t , c o m p u t e : F x . c o m p u t e , s e r v e : f u n c t i o n ( b , a ) { r e t u r n ( a ) ? b + a : b ; } } , S t r i n g : { p a r s e : F u n c t i o n . f r o m ( f a l s e ) , c o m p u t e : f u n c t i o n ( b , a ) { r e t u r n   a ; 
 } , s e r v e : f u n c t i o n ( a ) { r e t u r n   a ; } } } ; F x . C S S . P a r s e r s = n e w   H a s h ( F x . C S S . P a r s e r s ) ; F x . T w e e n = n e w   C l a s s ( { E x t e n d s : F x . C S S , i n i t i a l i z e : f u n c t i o n ( b , a ) { t h i s . e l e m e n t = t h i s . s u b j e c t = d o c u m e n t . i d ( b ) ; 
 t h i s . p a r e n t ( a ) ; } , s e t : f u n c t i o n ( b , a ) { i f ( a r g u m e n t s . l e n g t h = = 1 ) { a = b ; b = t h i s . p r o p e r t y | | t h i s . o p t i o n s . p r o p e r t y ; } t h i s . r e n d e r ( t h i s . e l e m e n t , b , a , t h i s . o p t i o n s . u n i t ) ; 
 r e t u r n   t h i s ; } , s t a r t : f u n c t i o n ( c , e , d ) { i f ( ! t h i s . c h e c k ( c , e , d ) ) { r e t u r n   t h i s ; } v a r   b = A r r a y . f l a t t e n ( a r g u m e n t s ) ; t h i s . p r o p e r t y = t h i s . o p t i o n s . p r o p e r t y | | b . s h i f t ( ) ; v a r   a = t h i s . p r e p a r e ( t h i s . e l e m e n t , t h i s . p r o p e r t y , b ) ; 
 r e t u r n   t h i s . p a r e n t ( a . f r o m , a . t o ) ; } } ) ; E l e m e n t . P r o p e r t i e s . t w e e n = { s e t : f u n c t i o n ( a ) { t h i s . g e t ( " t w e e n " ) . c a n c e l ( ) . s e t O p t i o n s ( a ) ; r e t u r n   t h i s ; } , g e t : f u n c t i o n ( ) { v a r   a = t h i s . r e t r i e v e ( " t w e e n " ) ; 
 i f ( ! a ) { a = n e w   F x . T w e e n ( t h i s , { l i n k : " c a n c e l " } ) ; t h i s . s t o r e ( " t w e e n " , a ) ; } r e t u r n   a ; } } ; E l e m e n t . i m p l e m e n t ( { t w e e n : f u n c t i o n ( a , c , b ) { t h i s . g e t ( " t w e e n " ) . s t a r t ( a r g u m e n t s ) ; 
 r e t u r n   t h i s ; } , f a d e : f u n c t i o n ( c ) { v a r   e = t h i s . g e t ( " t w e e n " ) , d = " o p a c i t y " , a ; c = [ c , " t o g g l e " ] . p i c k ( ) ; s w i t c h ( c ) { c a s e " i n " : e . s t a r t ( d , 1 ) ; b r e a k ; c a s e " o u t " : e . s t a r t ( d , 0 ) ; 
 b r e a k ; c a s e " s h o w " : e . s e t ( d , 1 ) ; b r e a k ; c a s e " h i d e " : e . s e t ( d , 0 ) ; b r e a k ; c a s e " t o g g l e " : v a r   b = t h i s . r e t r i e v e ( " f a d e : f l a g " , t h i s . g e t ( " o p a c i t y " ) = = 1 ) ; e . s t a r t ( d , ( b ) ? 0 : 1 ) ; t h i s . s t o r e ( " f a d e : f l a g " , ! b ) ; 
 a = t r u e ; b r e a k ; d e f a u l t : e . s t a r t ( d , a r g u m e n t s ) ; } i f ( ! a ) { t h i s . e l i m i n a t e ( " f a d e : f l a g " ) ; } r e t u r n   t h i s ; } , h i g h l i g h t : f u n c t i o n ( c , a ) { i f ( ! a ) { a = t h i s . r e t r i e v e ( " h i g h l i g h t : o r i g i n a l " , t h i s . g e t S t y l e ( " b a c k g r o u n d - c o l o r " ) ) ; 
 a = ( a = = " t r a n s p a r e n t " ) ? " # f f f " : a ; } v a r   b = t h i s . g e t ( " t w e e n " ) ; b . s t a r t ( " b a c k g r o u n d - c o l o r " , c | | " # f f f f 8 8 " , a ) . c h a i n ( f u n c t i o n ( ) { t h i s . s e t S t y l e ( " b a c k g r o u n d - c o l o r " , t h i s . r e t r i e v e ( " h i g h l i g h t : o r i g i n a l " ) ) ; 
 b . c a l l C h a i n ( ) ; } . b i n d ( t h i s ) ) ; r e t u r n   t h i s ; } } ) ; F x . M o r p h = n e w   C l a s s ( { E x t e n d s : F x . C S S , i n i t i a l i z e : f u n c t i o n ( b , a ) { t h i s . e l e m e n t = t h i s . s u b j e c t = d o c u m e n t . i d ( b ) ; t h i s . p a r e n t ( a ) ; 
 } , s e t : f u n c t i o n ( a ) { i f ( t y p e o f   a = = " s t r i n g " ) { a = t h i s . s e a r c h ( a ) ; } f o r ( v a r   b   i n   a ) { t h i s . r e n d e r ( t h i s . e l e m e n t , b , a [ b ] , t h i s . o p t i o n s . u n i t ) ; } r e t u r n   t h i s ; } , c o m p u t e : f u n c t i o n ( e , d , c ) { v a r   a = { } ; 
 f o r ( v a r   b   i n   e ) { a [ b ] = t h i s . p a r e n t ( e [ b ] , d [ b ] , c ) ; } r e t u r n   a ; } , s t a r t : f u n c t i o n ( b ) { i f ( ! t h i s . c h e c k ( b ) ) { r e t u r n   t h i s ; } i f ( t y p e o f   b = = " s t r i n g " ) { b = t h i s . s e a r c h ( b ) ; } v a r   e = { } , d = { } ; 
 f o r ( v a r   c   i n   b ) { v a r   a = t h i s . p r e p a r e ( t h i s . e l e m e n t , c , b [ c ] ) ; e [ c ] = a . f r o m ; d [ c ] = a . t o ; } r e t u r n   t h i s . p a r e n t ( e , d ) ; } } ) ; E l e m e n t . P r o p e r t i e s . m o r p h = { s e t : f u n c t i o n ( a ) { t h i s . g e t ( " m o r p h " ) . c a n c e l ( ) . s e t O p t i o n s ( a ) ; 
 r e t u r n   t h i s ; } , g e t : f u n c t i o n ( ) { v a r   a = t h i s . r e t r i e v e ( " m o r p h " ) ; i f ( ! a ) { a = n e w   F x . M o r p h ( t h i s , { l i n k : " c a n c e l " } ) ; t h i s . s t o r e ( " m o r p h " , a ) ; } r e t u r n   a ; } } ; E l e m e n t . i m p l e m e n t ( { m o r p h : f u n c t i o n ( a ) { t h i s . g e t ( " m o r p h " ) . s t a r t ( a ) ; 
 r e t u r n   t h i s ; } } ) ; F x . i m p l e m e n t ( { g e t T r a n s i t i o n : f u n c t i o n ( ) { v a r   a = t h i s . o p t i o n s . t r a n s i t i o n | | F x . T r a n s i t i o n s . S i n e . e a s e I n O u t ; i f ( t y p e o f   a = = " s t r i n g " ) { v a r   b = a . s p l i t ( " : " ) ; 
 a = F x . T r a n s i t i o n s ; a = a [ b [ 0 ] ] | | a [ b [ 0 ] . c a p i t a l i z e ( ) ] ; i f ( b [ 1 ] ) { a = a [ " e a s e " + b [ 1 ] . c a p i t a l i z e ( ) + ( b [ 2 ] ? b [ 2 ] . c a p i t a l i z e ( ) : " " ) ] ; } } r e t u r n   a ; } } ) ; F x . T r a n s i t i o n = f u n c t i o n ( c , b ) { b = A r r a y . f r o m ( b ) ; 
 v a r   a = f u n c t i o n ( d ) { r e t u r n   c ( d , b ) ; } ; r e t u r n   O b j e c t . a p p e n d ( a , { e a s e I n : a , e a s e O u t : f u n c t i o n ( d ) { r e t u r n   1 - c ( 1 - d , b ) ; } , e a s e I n O u t : f u n c t i o n ( d ) { r e t u r n ( d < = 0 . 5 ? c ( 2 * d , b ) : ( 2 - c ( 2 * ( 1 - d ) , b ) ) ) / 2 ; 
 } } ) ; } ; F x . T r a n s i t i o n s = { l i n e a r : f u n c t i o n ( a ) { r e t u r n   a ; } } ; F x . T r a n s i t i o n s = n e w   H a s h ( F x . T r a n s i t i o n s ) ; F x . T r a n s i t i o n s . e x t e n d = f u n c t i o n ( a ) { f o r ( v a r   b   i n   a ) { F x . T r a n s i t i o n s [ b ] = n e w   F x . T r a n s i t i o n ( a [ b ] ) ; 
 } } ; F x . T r a n s i t i o n s . e x t e n d ( { P o w : f u n c t i o n ( b , a ) { r e t u r n   M a t h . p o w ( b , a & & a [ 0 ] | | 6 ) ; } , E x p o : f u n c t i o n ( a ) { r e t u r n   M a t h . p o w ( 2 , 8 * ( a - 1 ) ) ; } , C i r c : f u n c t i o n ( a ) { r e t u r n   1 - M a t h . s i n ( M a t h . a c o s ( a ) ) ; 
 } , S i n e : f u n c t i o n ( a ) { r e t u r n   1 - M a t h . c o s ( a * M a t h . P I / 2 ) ; } , B a c k : f u n c t i o n ( b , a ) { a = a & & a [ 0 ] | | 1 . 6 1 8 ; r e t u r n   M a t h . p o w ( b , 2 ) * ( ( a + 1 ) * b - a ) ; } , B o u n c e : f u n c t i o n ( f ) { v a r   e ; f o r ( v a r   d = 0 , c = 1 ; 
 1 ; d + = c , c / = 2 ) { i f ( f > = ( 7 - 4 * d ) / 1 1 ) { e = c * c - M a t h . p o w ( ( 1 1 - 6 * d - 1 1 * f ) / 4 , 2 ) ; b r e a k ; } } r e t u r n   e ; } , E l a s t i c : f u n c t i o n ( b , a ) { r e t u r n   M a t h . p o w ( 2 , 1 0 * - - b ) * M a t h . c o s ( 2 0 * b * M a t h . P I * ( a & & a [ 0 ] | | 1 ) / 3 ) ; 
 } } ) ; [ " Q u a d " , " C u b i c " , " Q u a r t " , " Q u i n t " ] . e a c h ( f u n c t i o n ( b , a ) { F x . T r a n s i t i o n s [ b ] = n e w   F x . T r a n s i t i o n ( f u n c t i o n ( c ) { r e t u r n   M a t h . p o w ( c , a + 2 ) ; } ) ; } ) ; ( f u n c t i o n ( ) { v a r   d = f u n c t i o n ( ) { } , a = ( " o n p r o g r e s s "   i n   n e w   B r o w s e r . R e q u e s t ) ; 
 v a r   c = t h i s . R e q u e s t = n e w   C l a s s ( { I m p l e m e n t s : [ C h a i n , E v e n t s , O p t i o n s ] , o p t i o n s : { u r l : " " , d a t a : " " , h e a d e r s : { " X - R e q u e s t e d - W i t h " : " X M L H t t p R e q u e s t " , A c c e p t : " t e x t / j a v a s c r i p t ,   t e x t / h t m l ,   a p p l i c a t i o n / x m l ,   t e x t / x m l ,   * / * " } , a s y n c : t r u e , f o r m a t : f a l s e , m e t h o d : " p o s t " , l i n k : " i g n o r e " , i s S u c c e s s : n u l l , e m u l a t i o n : t r u e , u r l E n c o d e d : t r u e , e n c o d i n g : " u t f - 8 " , e v a l S c r i p t s : f a l s e , e v a l R e s p o n s e : f a l s e , t i m e o u t : 0 , n o C a c h e : f a l s e } , i n i t i a l i z e : f u n c t i o n ( e ) { t h i s . x h r = n e w   B r o w s e r . R e q u e s t ( ) ; 
 t h i s . s e t O p t i o n s ( e ) ; t h i s . h e a d e r s = t h i s . o p t i o n s . h e a d e r s ; } , o n S t a t e C h a n g e : f u n c t i o n ( ) { v a r   e = t h i s . x h r ; i f ( e . r e a d y S t a t e ! = 4 | | ! t h i s . r u n n i n g ) { r e t u r n ; } t h i s . r u n n i n g = f a l s e ; 
 t h i s . s t a t u s = 0 ; F u n c t i o n . a t t e m p t ( f u n c t i o n ( ) { v a r   f = e . s t a t u s ; t h i s . s t a t u s = ( f = = 1 2 2 3 ) ? 2 0 4 : f ; } . b i n d ( t h i s ) ) ; e . o n r e a d y s t a t e c h a n g e = d ; i f ( a ) { e . o n p r o g r e s s = e . o n l o a d s t a r t = d ; 
 } c l e a r T i m e o u t ( t h i s . t i m e r ) ; t h i s . r e s p o n s e = { t e x t : t h i s . x h r . r e s p o n s e T e x t | | " " , x m l : t h i s . x h r . r e s p o n s e X M L } ; i f ( t h i s . o p t i o n s . i s S u c c e s s . c a l l ( t h i s , t h i s . s t a t u s ) ) { t h i s . s u c c e s s ( t h i s . r e s p o n s e . t e x t , t h i s . r e s p o n s e . x m l ) ; 
 } e l s e { t h i s . f a i l u r e ( ) ; } } , i s S u c c e s s : f u n c t i o n ( ) { v a r   e = t h i s . s t a t u s ; r e t u r n ( e > = 2 0 0 & & e < 3 0 0 ) ; } , i s R u n n i n g : f u n c t i o n ( ) { r e t u r n   ! ! t h i s . r u n n i n g ; } , p r o c e s s S c r i p t s : f u n c t i o n ( e ) { i f ( t h i s . o p t i o n s . e v a l R e s p o n s e | | ( / ( e c m a | j a v a ) s c r i p t / ) . t e s t ( t h i s . g e t H e a d e r ( " C o n t e n t - t y p e " ) ) ) { r e t u r n   B r o w s e r . e x e c ( e ) ; 
 } r e t u r n   e . s t r i p S c r i p t s ( t h i s . o p t i o n s . e v a l S c r i p t s ) ; } , s u c c e s s : f u n c t i o n ( f , e ) { t h i s . o n S u c c e s s ( t h i s . p r o c e s s S c r i p t s ( f ) , e ) ; } , o n S u c c e s s : f u n c t i o n ( ) { t h i s . f i r e E v e n t ( " c o m p l e t e " , a r g u m e n t s ) . f i r e E v e n t ( " s u c c e s s " , a r g u m e n t s ) . c a l l C h a i n ( ) ; 
 } , f a i l u r e : f u n c t i o n ( ) { t h i s . o n F a i l u r e ( ) ; } , o n F a i l u r e : f u n c t i o n ( ) { t h i s . f i r e E v e n t ( " c o m p l e t e " ) . f i r e E v e n t ( " f a i l u r e " , t h i s . x h r ) ; } , l o a d s t a r t : f u n c t i o n ( e ) { t h i s . f i r e E v e n t ( " l o a d s t a r t " , [ e , t h i s . x h r ] ) ; 
 } , p r o g r e s s : f u n c t i o n ( e ) { t h i s . f i r e E v e n t ( " p r o g r e s s " , [ e , t h i s . x h r ] ) ; } , t i m e o u t : f u n c t i o n ( ) { t h i s . f i r e E v e n t ( " t i m e o u t " , t h i s . x h r ) ; } , s e t H e a d e r : f u n c t i o n ( e , f ) { t h i s . h e a d e r s [ e ] = f ; 
 r e t u r n   t h i s ; } , g e t H e a d e r : f u n c t i o n ( e ) { r e t u r n   F u n c t i o n . a t t e m p t ( f u n c t i o n ( ) { r e t u r n   t h i s . x h r . g e t R e s p o n s e H e a d e r ( e ) ; } . b i n d ( t h i s ) ) ; } , c h e c k : f u n c t i o n ( ) { i f ( ! t h i s . r u n n i n g ) { r e t u r n   t r u e ; 
 } s w i t c h ( t h i s . o p t i o n s . l i n k ) { c a s e " c a n c e l " : t h i s . c a n c e l ( ) ; r e t u r n   t r u e ; c a s e " c h a i n " : t h i s . c h a i n ( t h i s . c a l l e r . p a s s ( a r g u m e n t s , t h i s ) ) ; r e t u r n   f a l s e ; } r e t u r n   f a l s e ; } , s e n d : f u n c t i o n ( o ) { i f ( ! t h i s . c h e c k ( o ) ) { r e t u r n   t h i s ; 
 } t h i s . o p t i o n s . i s S u c c e s s = t h i s . o p t i o n s . i s S u c c e s s | | t h i s . i s S u c c e s s ; t h i s . r u n n i n g = t r u e ; v a r   l = t y p e O f ( o ) ; i f ( l = = " s t r i n g " | | l = = " e l e m e n t " ) { o = { d a t a : o } ; } v a r   h = t h i s . o p t i o n s ; 
 o = O b j e c t . a p p e n d ( { d a t a : h . d a t a , u r l : h . u r l , m e t h o d : h . m e t h o d } , o ) ; v a r   j = o . d a t a , f = S t r i n g ( o . u r l ) , e = o . m e t h o d . t o L o w e r C a s e ( ) ; s w i t c h ( t y p e O f ( j ) ) { c a s e " e l e m e n t " : j = d o c u m e n t . i d ( j ) . t o Q u e r y S t r i n g ( ) ; 
 b r e a k ; c a s e " o b j e c t " : c a s e " h a s h " : j = O b j e c t . t o Q u e r y S t r i n g ( j ) ; } i f ( t h i s . o p t i o n s . f o r m a t ) { v a r   m = " f o r m a t = " + t h i s . o p t i o n s . f o r m a t ; j = ( j ) ? m + " & " + j : m ; } i f ( t h i s . o p t i o n s . e m u l a t i o n & & ! [ " g e t " , " p o s t " ] . c o n t a i n s ( e ) ) { v a r   k = " _ m e t h o d = " + e ; 
 j = ( j ) ? k + " & " + j : k ; e = " p o s t " ; } i f ( t h i s . o p t i o n s . u r l E n c o d e d & & [ " p o s t " , " p u t " ] . c o n t a i n s ( e ) ) { v a r   g = ( t h i s . o p t i o n s . e n c o d i n g ) ? " ;   c h a r s e t = " + t h i s . o p t i o n s . e n c o d i n g : " " ; t h i s . h e a d e r s [ " C o n t e n t - t y p e " ] = " a p p l i c a t i o n / x - w w w - f o r m - u r l e n c o d e d " + g ; 
 } i f ( ! f ) { f = d o c u m e n t . l o c a t i o n . p a t h n a m e ; } v a r   i = f . l a s t I n d e x O f ( " / " ) ; i f ( i > - 1 & & ( i = f . i n d e x O f ( " # " ) ) > - 1 ) { f = f . s u b s t r ( 0 , i ) ; } i f ( t h i s . o p t i o n s . n o C a c h e ) { f + = ( f . c o n t a i n s ( " ? " ) ? " & " : " ? " ) + S t r i n g . u n i q u e I D ( ) ; 
 } i f ( j & & e = = " g e t " ) { f + = ( f . c o n t a i n s ( " ? " ) ? " & " : " ? " ) + j ; j = n u l l ; } v a r   n = t h i s . x h r ; i f ( a ) { n . o n l o a d s t a r t = t h i s . l o a d s t a r t . b i n d ( t h i s ) ; n . o n p r o g r e s s = t h i s . p r o g r e s s . b i n d ( t h i s ) ; 
 } n . o p e n ( e . t o U p p e r C a s e ( ) , f , t h i s . o p t i o n s . a s y n c , t h i s . o p t i o n s . u s e r , t h i s . o p t i o n s . p a s s w o r d ) ; i f ( t h i s . o p t i o n s . u s e r & & " w i t h C r e d e n t i a l s "   i n   n ) { n . w i t h C r e d e n t i a l s = t r u e ; 
 } n . o n r e a d y s t a t e c h a n g e = t h i s . o n S t a t e C h a n g e . b i n d ( t h i s ) ; O b j e c t . e a c h ( t h i s . h e a d e r s , f u n c t i o n ( q , p ) { t r y { n . s e t R e q u e s t H e a d e r ( p , q ) ; } c a t c h ( r ) { t h i s . f i r e E v e n t ( " e x c e p t i o n " , [ p , q ] ) ; 
 } } , t h i s ) ; t h i s . f i r e E v e n t ( " r e q u e s t " ) ; n . s e n d ( j ) ; i f ( ! t h i s . o p t i o n s . a s y n c ) { t h i s . o n S t a t e C h a n g e ( ) ; } i f ( t h i s . o p t i o n s . t i m e o u t ) { t h i s . t i m e r = t h i s . t i m e o u t . d e l a y ( t h i s . o p t i o n s . t i m e o u t , t h i s ) ; 
 } r e t u r n   t h i s ; } , c a n c e l : f u n c t i o n ( ) { i f ( ! t h i s . r u n n i n g ) { r e t u r n   t h i s ; } t h i s . r u n n i n g = f a l s e ; v a r   e = t h i s . x h r ; e . a b o r t ( ) ; c l e a r T i m e o u t ( t h i s . t i m e r ) ; e . o n r e a d y s t a t e c h a n g e = d ; 
 i f ( a ) { e . o n p r o g r e s s = e . o n l o a d s t a r t = d ; } t h i s . x h r = n e w   B r o w s e r . R e q u e s t ( ) ; t h i s . f i r e E v e n t ( " c a n c e l " ) ; r e t u r n   t h i s ; } } ) ; v a r   b = { } ; [ " g e t " , " p o s t " , " p u t " , " d e l e t e " , " G E T " , " P O S T " , " P U T " , " D E L E T E " ] . e a c h ( f u n c t i o n ( e ) { b [ e ] = f u n c t i o n ( g ) { v a r   f = { m e t h o d : e } ; 
 i f ( g ! = n u l l ) { f . d a t a = g ; } r e t u r n   t h i s . s e n d ( f ) ; } ; } ) ; c . i m p l e m e n t ( b ) ; E l e m e n t . P r o p e r t i e s . s e n d = { s e t : f u n c t i o n ( e ) { v a r   f = t h i s . g e t ( " s e n d " ) . c a n c e l ( ) ; f . s e t O p t i o n s ( e ) ; 
 r e t u r n   t h i s ; } , g e t : f u n c t i o n ( ) { v a r   e = t h i s . r e t r i e v e ( " s e n d " ) ; i f ( ! e ) { e = n e w   c ( { d a t a : t h i s , l i n k : " c a n c e l " , m e t h o d : t h i s . g e t ( " m e t h o d " ) | | " p o s t " , u r l : t h i s . g e t ( " a c t i o n " ) } ) ; 
 t h i s . s t o r e ( " s e n d " , e ) ; } r e t u r n   e ; } } ; E l e m e n t . i m p l e m e n t ( { s e n d : f u n c t i o n ( e ) { v a r   f = t h i s . g e t ( " s e n d " ) ; f . s e n d ( { d a t a : t h i s , u r l : e | | f . o p t i o n s . u r l } ) ; r e t u r n   t h i s ; } } ) ; } ) ( ) ; 
 R e q u e s t . H T M L = n e w   C l a s s ( { E x t e n d s : R e q u e s t , o p t i o n s : { u p d a t e : f a l s e , a p p e n d : f a l s e , e v a l S c r i p t s : t r u e , f i l t e r : f a l s e , h e a d e r s : { A c c e p t : " t e x t / h t m l ,   a p p l i c a t i o n / x m l ,   t e x t / x m l ,   * / * " } } , s u c c e s s : f u n c t i o n ( e ) { v a r   d = t h i s . o p t i o n s , b = t h i s . r e s p o n s e ; 
 b . h t m l = e . s t r i p S c r i p t s ( f u n c t i o n ( f ) { b . j a v a s c r i p t = f ; } ) ; v a r   c = b . h t m l . m a t c h ( / < b o d y [ ^ > ] * > ( [ \ s \ S ] * ? ) < \ / b o d y > / i ) ; i f ( c ) { b . h t m l = c [ 1 ] ; } v a r   a = n e w   E l e m e n t ( " d i v " ) . s e t ( " h t m l " , b . h t m l ) ; 
 b . t r e e = a . c h i l d N o d e s ; b . e l e m e n t s = a . g e t E l e m e n t s ( " * " ) ; i f ( d . f i l t e r ) { b . t r e e = b . e l e m e n t s . f i l t e r ( d . f i l t e r ) ; } i f ( d . u p d a t e ) { d o c u m e n t . i d ( d . u p d a t e ) . e m p t y ( ) . s e t ( " h t m l " , b . h t m l ) ; 
 } e l s e { i f ( d . a p p e n d ) { d o c u m e n t . i d ( d . a p p e n d ) . a d o p t ( a . g e t C h i l d r e n ( ) ) ; } } i f ( d . e v a l S c r i p t s ) { B r o w s e r . e x e c ( b . j a v a s c r i p t ) ; } t h i s . o n S u c c e s s ( b . t r e e , b . e l e m e n t s , b . h t m l , b . j a v a s c r i p t ) ; 
 } } ) ; E l e m e n t . P r o p e r t i e s . l o a d = { s e t : f u n c t i o n ( a ) { v a r   b = t h i s . g e t ( " l o a d " ) . c a n c e l ( ) ; b . s e t O p t i o n s ( a ) ; r e t u r n   t h i s ; } , g e t : f u n c t i o n ( ) { v a r   a = t h i s . r e t r i e v e ( " l o a d " ) ; i f ( ! a ) { a = n e w   R e q u e s t . H T M L ( { d a t a : t h i s , l i n k : " c a n c e l " , u p d a t e : t h i s , m e t h o d : " g e t " } ) ; 
 t h i s . s t o r e ( " l o a d " , a ) ; } r e t u r n   a ; } } ; E l e m e n t . i m p l e m e n t ( { l o a d : f u n c t i o n ( ) { t h i s . g e t ( " l o a d " ) . s e n d ( A r r a y . l i n k ( a r g u m e n t s , { d a t a : T y p e . i s O b j e c t , u r l : T y p e . i s S t r i n g } ) ) ; 
 r e t u r n   t h i s ; } } ) ; i f ( t y p e o f   J S O N = = " u n d e f i n e d " ) { t h i s . J S O N = { } ; } J S O N = n e w   H a s h ( { s t r i n g i f y : J S O N . s t r i n g i f y , p a r s e : J S O N . p a r s e } ) ; ( f u n c t i o n ( ) { v a r   s p e c i a l = { " \ b " : " \ \ b " , " \ t " : " \ \ t " , " \ n " : " \ \ n " , " \ f " : " \ \ f " , " \ r " : " \ \ r " , ' " ' : ' \ \ " ' , " \ \ " : " \ \ \ \ " } ; 
 v a r   e s c a p e = f u n c t i o n ( c h r ) { r e t u r n   s p e c i a l [ c h r ] | | " \ \ u " + ( " 0 0 0 0 " + c h r . c h a r C o d e A t ( 0 ) . t o S t r i n g ( 1 6 ) ) . s l i c e ( - 4 ) ; } ; J S O N . v a l i d a t e = f u n c t i o n ( s t r i n g ) { s t r i n g = s t r i n g . r e p l a c e ( / \ \ ( ? : [ " \ \ \ / b f n r t ] | u [ 0 - 9 a - f A - F ] { 4 } ) / g , " @ " ) . r e p l a c e ( / " [ ^ " \ \ \ n \ r ] * " | t r u e | f a l s e | n u l l | - ? \ d + ( ? : \ . \ d * ) ? ( ? : [ e E ] [ + \ - ] ? \ d + ) ? / g , " ] " ) . r e p l a c e ( / ( ? : ^ | : | , ) ( ? : \ s * \ [ ) + / g , " " ) ; 
 r e t u r n ( / ^ [ \ ] , : { } \ s ] * $ / ) . t e s t ( s t r i n g ) ; } ; J S O N . e n c o d e = J S O N . s t r i n g i f y ? f u n c t i o n ( o b j ) { r e t u r n   J S O N . s t r i n g i f y ( o b j ) ; } : f u n c t i o n ( o b j ) { i f ( o b j & & o b j . t o J S O N ) { o b j = o b j . t o J S O N ( ) ; 
 } s w i t c h ( t y p e O f ( o b j ) ) { c a s e " s t r i n g " : r e t u r n ' " ' + o b j . r e p l a c e ( / [ \ x 0 0 - \ x 1 f \ \ " ] / g , e s c a p e ) + ' " ' ; c a s e " a r r a y " : r e t u r n " [ " + o b j . m a p ( J S O N . e n c o d e ) . c l e a n ( ) + " ] " ; c a s e " o b j e c t " : c a s e " h a s h " : v a r   s t r i n g = [ ] ; 
 O b j e c t . e a c h ( o b j , f u n c t i o n ( v a l u e , k e y ) { v a r   j s o n = J S O N . e n c o d e ( v a l u e ) ; i f ( j s o n ) { s t r i n g . p u s h ( J S O N . e n c o d e ( k e y ) + " : " + j s o n ) ; } } ) ; r e t u r n " { " + s t r i n g + " } " ; c a s e " n u m b e r " : c a s e " b o o l e a n " : r e t u r n " " + o b j ; 
 c a s e " n u l l " : r e t u r n " n u l l " ; } r e t u r n   n u l l ; } ; J S O N . d e c o d e = f u n c t i o n ( s t r i n g , s e c u r e ) { i f ( ! s t r i n g | | t y p e O f ( s t r i n g ) ! = " s t r i n g " ) { r e t u r n   n u l l ; } i f ( s e c u r e | | J S O N . s e c u r e ) { i f ( J S O N . p a r s e ) { r e t u r n   J S O N . p a r s e ( s t r i n g ) ; 
 } i f ( ! J S O N . v a l i d a t e ( s t r i n g ) ) { t h r o w   n e w   E r r o r ( " J S O N   c o u l d   n o t   d e c o d e   t h e   i n p u t ;   s e c u r i t y   i s   e n a b l e d   a n d   t h e   v a l u e   i s   n o t   s e c u r e . " ) ; } } r e t u r n   e v a l ( " ( " + s t r i n g + " ) " ) ; 
 } ; } ) . c a l l ( t h i s ) ; R e q u e s t . J S O N = n e w   C l a s s ( { E x t e n d s : R e q u e s t , o p t i o n s : { s e c u r e : t r u e } , i n i t i a l i z e : f u n c t i o n ( a ) { t h i s . p a r e n t ( a ) ; O b j e c t . a p p e n d ( t h i s . h e a d e r s , { A c c e p t : " a p p l i c a t i o n / j s o n " , " X - R e q u e s t " : " J S O N " } ) ; 
 } , s u c c e s s : f u n c t i o n ( c ) { v a r   b ; t r y { b = t h i s . r e s p o n s e . j s o n = J S O N . d e c o d e ( c , t h i s . o p t i o n s . s e c u r e ) ; } c a t c h ( a ) { t h i s . f i r e E v e n t ( " e r r o r " , [ c , a ] ) ; r e t u r n ; } i f ( b = = n u l l ) { t h i s . o n F a i l u r e ( ) ; 
 } e l s e { t h i s . o n S u c c e s s ( b , c ) ; } } } ) ; v a r   C o o k i e = n e w   C l a s s ( { I m p l e m e n t s : O p t i o n s , o p t i o n s : { p a t h : " / " , d o m a i n : f a l s e , d u r a t i o n : f a l s e , s e c u r e : f a l s e , d o c u m e n t : d o c u m e n t , e n c o d e : t r u e } , i n i t i a l i z e : f u n c t i o n ( b , a ) { t h i s . k e y = b ; 
 t h i s . s e t O p t i o n s ( a ) ; } , w r i t e : f u n c t i o n ( b ) { i f ( t h i s . o p t i o n s . e n c o d e ) { b = e n c o d e U R I C o m p o n e n t ( b ) ; } i f ( t h i s . o p t i o n s . d o m a i n ) { b + = " ;   d o m a i n = " + t h i s . o p t i o n s . d o m a i n ; } i f ( t h i s . o p t i o n s . p a t h ) { b + = " ;   p a t h = " + t h i s . o p t i o n s . p a t h ; 
 } i f ( t h i s . o p t i o n s . d u r a t i o n ) { v a r   a = n e w   D a t e ( ) ; a . s e t T i m e ( a . g e t T i m e ( ) + t h i s . o p t i o n s . d u r a t i o n * 2 4 * 6 0 * 6 0 * 1 0 0 0 ) ; b + = " ;   e x p i r e s = " + a . t o G M T S t r i n g ( ) ; } i f ( t h i s . o p t i o n s . s e c u r e ) { b + = " ;   s e c u r e " ; 
 } t h i s . o p t i o n s . d o c u m e n t . c o o k i e = t h i s . k e y + " = " + b ; r e t u r n   t h i s ; } , r e a d : f u n c t i o n ( ) { v a r   a = t h i s . o p t i o n s . d o c u m e n t . c o o k i e . m a t c h ( " ( ? : ^ | ; ) \ \ s * " + t h i s . k e y . e s c a p e R e g E x p ( ) + " = ( [ ^ ; ] * ) " ) ; 
 r e t u r n ( a ) ? d e c o d e U R I C o m p o n e n t ( a [ 1 ] ) : n u l l ; } , d i s p o s e : f u n c t i o n ( ) { n e w   C o o k i e ( t h i s . k e y , O b j e c t . m e r g e ( { } , t h i s . o p t i o n s , { d u r a t i o n : - 1 } ) ) . w r i t e ( " " ) ; r e t u r n   t h i s ; } } ) ; 
 C o o k i e . w r i t e = f u n c t i o n ( b , c , a ) { r e t u r n   n e w   C o o k i e ( b , a ) . w r i t e ( c ) ; } ; C o o k i e . r e a d = f u n c t i o n ( a ) { r e t u r n   n e w   C o o k i e ( a ) . r e a d ( ) ; } ; C o o k i e . d i s p o s e = f u n c t i o n ( b , a ) { r e t u r n   n e w   C o o k i e ( b , a ) . d i s p o s e ( ) ; 
 } ; ( f u n c t i o n ( j , l ) { v a r   m , g , f = [ ] , c , b , n = t r u e ; t r y { n = j . f r a m e E l e m e n t ! = n u l l ; } c a t c h ( i ) { } v a r   h = f u n c t i o n ( ) { c l e a r T i m e o u t ( b ) ; i f ( m ) { r e t u r n ; } B r o w s e r . l o a d e d = m = t r u e ; l . r e m o v e L i s t e n e r ( " D O M C o n t e n t L o a d e d " , h ) . r e m o v e L i s t e n e r ( " r e a d y s t a t e c h a n g e " , a ) ; 
 l . f i r e E v e n t ( " d o m r e a d y " ) ; j . f i r e E v e n t ( " d o m r e a d y " ) ; } ; v a r   a = f u n c t i o n ( ) { f o r ( v a r   e = f . l e n g t h ; e - - ; ) { i f ( f [ e ] ( ) ) { h ( ) ; r e t u r n   t r u e ; } } r e t u r n   f a l s e ; } ; v a r   k = f u n c t i o n ( ) { c l e a r T i m e o u t ( b ) ; 
 i f ( ! a ( ) ) { b = s e t T i m e o u t ( k , 1 0 ) ; } } ; l . a d d L i s t e n e r ( " D O M C o n t e n t L o a d e d " , h ) ; v a r   d = l . c r e a t e E l e m e n t ( " d i v " ) ; i f ( d . d o S c r o l l & & ! n ) { f . p u s h ( f u n c t i o n ( ) { t r y { d . d o S c r o l l ( ) ; r e t u r n   t r u e ; 
 } c a t c h ( o ) { } r e t u r n   f a l s e ; } ) ; c = t r u e ; } i f ( l . r e a d y S t a t e ) { f . p u s h ( f u n c t i o n ( ) { v a r   e = l . r e a d y S t a t e ; r e t u r n ( e = = " l o a d e d " | | e = = " c o m p l e t e " ) ; } ) ; } i f ( " o n r e a d y s t a t e c h a n g e "   i n   l ) { l . a d d L i s t e n e r ( " r e a d y s t a t e c h a n g e " , a ) ; 
 } e l s e { c = t r u e ; } i f ( c ) { k ( ) ; } E l e m e n t . E v e n t s . d o m r e a d y = { o n A d d : f u n c t i o n ( e ) { i f ( m ) { e . c a l l ( t h i s ) ; } } } ; E l e m e n t . E v e n t s . l o a d = { b a s e : " l o a d " , o n A d d : f u n c t i o n ( e ) { i f ( g & & t h i s = = j ) { e . c a l l ( t h i s ) ; 
 } } , c o n d i t i o n : f u n c t i o n ( ) { i f ( t h i s = = j ) { h ( ) ; d e l e t e   E l e m e n t . E v e n t s . l o a d ; } r e t u r n   t r u e ; } } ; j . a d d E v e n t ( " l o a d " , f u n c t i o n ( ) { g = t r u e ; } ) ; } ) ( w i n d o w , d o c u m e n t ) ; ( f u n c t i o n ( ) { v a r   S w i f f = t h i s . S w i f f = n e w   C l a s s ( { I m p l e m e n t s : O p t i o n s , o p t i o n s : { i d : n u l l , h e i g h t : 1 , w i d t h : 1 , c o n t a i n e r : n u l l , p r o p e r t i e s : { } , p a r a m s : { q u a l i t y : " h i g h " , a l l o w S c r i p t A c c e s s : " a l w a y s " , w M o d e : " w i n d o w " , s w L i v e C o n n e c t : t r u e } , c a l l B a c k s : { } , v a r s : { } } , t o E l e m e n t : f u n c t i o n ( ) { r e t u r n   t h i s . o b j e c t ; 
 } , i n i t i a l i z e : f u n c t i o n ( p a t h , o p t i o n s ) { t h i s . i n s t a n c e = " S w i f f _ " + S t r i n g . u n i q u e I D ( ) ; t h i s . s e t O p t i o n s ( o p t i o n s ) ; o p t i o n s = t h i s . o p t i o n s ; v a r   i d = t h i s . i d = o p t i o n s . i d | | t h i s . i n s t a n c e ; 
 v a r   c o n t a i n e r = d o c u m e n t . i d ( o p t i o n s . c o n t a i n e r ) ; S w i f f . C a l l B a c k s [ t h i s . i n s t a n c e ] = { } ; v a r   p a r a m s = o p t i o n s . p a r a m s , v a r s = o p t i o n s . v a r s , c a l l B a c k s = o p t i o n s . c a l l B a c k s ; 
 v a r   p r o p e r t i e s = O b j e c t . a p p e n d ( { h e i g h t : o p t i o n s . h e i g h t , w i d t h : o p t i o n s . w i d t h } , o p t i o n s . p r o p e r t i e s ) ; v a r   s e l f = t h i s ; f o r ( v a r   c a l l B a c k   i n   c a l l B a c k s ) { S w i f f . C a l l B a c k s [ t h i s . i n s t a n c e ] [ c a l l B a c k ] = ( f u n c t i o n ( o p t i o n ) { r e t u r n   f u n c t i o n ( ) { r e t u r n   o p t i o n . a p p l y ( s e l f . o b j e c t , a r g u m e n t s ) ; 
 } ; } ) ( c a l l B a c k s [ c a l l B a c k ] ) ; v a r s [ c a l l B a c k ] = " S w i f f . C a l l B a c k s . " + t h i s . i n s t a n c e + " . " + c a l l B a c k ; } p a r a m s . f l a s h V a r s = O b j e c t . t o Q u e r y S t r i n g ( v a r s ) ; i f ( B r o w s e r . i e ) { p r o p e r t i e s . c l a s s i d = " c l s i d : D 2 7 C D B 6 E - A E 6 D - 1 1 c f - 9 6 B 8 - 4 4 4 5 5 3 5 4 0 0 0 0 " ; 
 p a r a m s . m o v i e = p a t h ; } e l s e { p r o p e r t i e s . t y p e = " a p p l i c a t i o n / x - s h o c k w a v e - f l a s h " ; } p r o p e r t i e s . d a t a = p a t h ; v a r   b u i l d = ' < o b j e c t   i d = " ' + i d + ' " ' ; f o r ( v a r   p r o p e r t y   i n   p r o p e r t i e s ) { b u i l d + = "   " + p r o p e r t y + ' = " ' + p r o p e r t i e s [ p r o p e r t y ] + ' " ' ; 
 } b u i l d + = " > " ; f o r ( v a r   p a r a m   i n   p a r a m s ) { i f ( p a r a m s [ p a r a m ] ) { b u i l d + = ' < p a r a m   n a m e = " ' + p a r a m + ' "   v a l u e = " ' + p a r a m s [ p a r a m ] + ' "   / > ' ; } } b u i l d + = " < / o b j e c t > " ; t h i s . o b j e c t = ( ( c o n t a i n e r ) ? c o n t a i n e r . e m p t y ( ) : n e w   E l e m e n t ( " d i v " ) ) . s e t ( " h t m l " , b u i l d ) . f i r s t C h i l d ; 
 } , r e p l a c e s : f u n c t i o n ( e l e m e n t ) { e l e m e n t = d o c u m e n t . i d ( e l e m e n t , t r u e ) ; e l e m e n t . p a r e n t N o d e . r e p l a c e C h i l d ( t h i s . t o E l e m e n t ( ) , e l e m e n t ) ; r e t u r n   t h i s ; } , i n j e c t : f u n c t i o n ( e l e m e n t ) { d o c u m e n t . i d ( e l e m e n t , t r u e ) . a p p e n d C h i l d ( t h i s . t o E l e m e n t ( ) ) ; 
 r e t u r n   t h i s ; } , r e m o t e : f u n c t i o n ( ) { r e t u r n   S w i f f . r e m o t e . a p p l y ( S w i f f , [ t h i s . t o E l e m e n t ( ) ] . a p p e n d ( a r g u m e n t s ) ) ; } } ) ; S w i f f . C a l l B a c k s = { } ; S w i f f . r e m o t e = f u n c t i o n ( o b j , f n ) { v a r   r s = o b j . C a l l F u n c t i o n ( ' < i n v o k e   n a m e = " ' + f n + ' "   r e t u r n t y p e = " j a v a s c r i p t " > ' + _ _ f l a s h _ _ a r g u m e n t s T o X M L ( a r g u m e n t s , 2 ) + " < / i n v o k e > " ) ; 
 r e t u r n   e v a l ( r s ) ; } ; } ) . c a l l ( t h i s ) ; 
 
 
 
 
 
 / /   M o o T o o l s :   t h e   j a v a s c r i p t   f r a m e w o r k . 
 / /   L o a d   t h i s   f i l e ' s   s e l e c t i o n   a g a i n   b y   v i s i t i n g :   h t t p : / / m o o t o o l s . n e t / m o r e / 3 2 5 1 7 2 a 8 b c e 5 4 a 6 d 5 4 5 f d 6 7 5 d f 3 8 6 d 2 2   
 / /   O r   b u i l d   t h i s   f i l e   a g a i n   w i t h   p a c k a g e r   u s i n g :   p a c k a g e r   b u i l d   M o r e / M o r e   M o r e / E v e n t s . P s e u d o s   M o r e / C l a s s . R e f a c t o r   M o r e / C l a s s . B i n d s   M o r e / C l a s s . O c c l u d e   M o r e / C h a i n . W a i t   M o r e / A r r a y . E x t r a s   M o r e / D a t e   M o r e / D a t e . E x t r a s   M o r e / N u m b e r . F o r m a t   M o r e / O b j e c t . E x t r a s   M o r e / S t r i n g . E x t r a s   M o r e / S t r i n g . Q u e r y S t r i n g   M o r e / U R I   M o r e / U R I . R e l a t i v e   M o r e / H a s h   M o r e / H a s h . E x t r a s   M o r e / E l e m e n t . F o r m s   M o r e / E l e m e n t s . F r o m   M o r e / E l e m e n t . E v e n t . P s e u d o s   M o r e / E l e m e n t . E v e n t . P s e u d o s . K e y s   M o r e / E l e m e n t . D e l e g a t i o n   M o r e / E l e m e n t . M e a s u r e   M o r e / E l e m e n t . P i n   M o r e / E l e m e n t . P o s i t i o n   M o r e / E l e m e n t . S h o r t c u t s   M o r e / F x . E l e m e n t s   M o r e / F x . A c c o r d i o n   M o r e / F x . M o v e   M o r e / F x . R e v e a l   M o r e / F x . S c r o l l   M o r e / F x . S l i d e   M o r e / F x . S m o o t h S c r o l l   M o r e / F x . S o r t   M o r e / S l i d e r   M o r e / A s s e t s   M o r e / S c r o l l e r   M o r e / T i p s 
 / * 
 - - - 
 c o p y r i g h t s : 
     -   [ M o o T o o l s ] ( h t t p : / / m o o t o o l s . n e t ) 
 
 l i c e n s e s : 
     -   [ M I T   L i c e n s e ] ( h t t p : / / m o o t o o l s . n e t / l i c e n s e . t x t ) 
 . . . 
 * / 
 M o o T o o l s . M o r e = { v e r s i o n : " 1 . 3 . 1 . 1 " , b u i l d : " 0 2 9 2 a 3 a f 1 e e a 2 4 2 b 8 1 7 f e c f 9 d a a 1 2 7 4 1 7 d 1 0 d 4 c e " } ; E v e n t s . P s e u d o s = f u n c t i o n ( g , c , e ) { v a r   b = " m o n i t o r E v e n t s : " ; v a r   a = f u n c t i o n ( h ) { r e t u r n { s t o r e : h . s t o r e ? f u n c t i o n ( i , j ) { h . s t o r e ( b + i , j ) ; 
 } : f u n c t i o n ( i , j ) { ( h . $ m o n i t o r E v e n t s | | ( h . $ m o n i t o r E v e n t s = { } ) ) [ i ] = j ; } , r e t r i e v e : h . r e t r i e v e ? f u n c t i o n ( i , j ) { r e t u r n   h . r e t r i e v e ( b + i , j ) ; } : f u n c t i o n ( i , j ) { i f ( ! h . $ m o n i t o r E v e n t s ) { r e t u r n   j ; 
 } r e t u r n   h . $ m o n i t o r E v e n t s [ i ] | | j ; } } ; } ; v a r   f = f u n c t i o n ( j ) { i f ( j . i n d e x O f ( " : " ) = = - 1 | | ! g ) { r e t u r n   n u l l ; } v a r   i = S l i c k . p a r s e ( j ) . e x p r e s s i o n s [ 0 ] [ 0 ] , m = i . p s e u d o s , h = m . l e n g t h , k = [ ] ; 
 w h i l e ( h - - ) { i f ( g [ m [ h ] . k e y ] ) { k . p u s h ( { e v e n t : i . t a g , v a l u e : m [ h ] . v a l u e , p s e u d o : m [ h ] . k e y , o r i g i n a l : j } ) ; } } r e t u r n   k . l e n g t h ? k : n u l l ; } ; v a r   d = f u n c t i o n ( h ) { r e t u r n   O b j e c t . m e r g e . a p p l y ( t h i s , h . m a p ( f u n c t i o n ( i ) { r e t u r n   g [ i . p s e u d o ] . o p t i o n s | | { } ; 
 } ) ) ; } ; r e t u r n { a d d E v e n t : f u n c t i o n ( m , p , j ) { v a r   n = f ( m ) ; i f ( ! n ) { r e t u r n   c . c a l l ( t h i s , m , p , j ) ; } v a r   k = a ( t h i s ) , s = k . r e t r i e v e ( m , [ ] ) , h = n [ 0 ] . e v e n t , t = d ( n ) , o = p , i = t [ h ] | | { } , l = A r r a y . s l i c e ( a r g u m e n t s , 2 ) , r = t h i s , q ; 
 i f ( i . a r g s ) { l . a p p e n d ( A r r a y . f r o m ( i . a r g s ) ) ; } i f ( i . b a s e ) { h = i . b a s e ; } i f ( i . o n A d d ) { i . o n A d d ( t h i s ) ; } n . e a c h ( f u n c t i o n ( u ) { v a r   v = o ; o = f u n c t i o n ( ) { ( i . l i s t e n e r | | g [ u . p s e u d o ] . l i s t e n e r ) . c a l l ( r , u , v , a r g u m e n t s , q , t ) ; 
 } ; } ) ; q = o . b i n d ( t h i s ) ; s . i n c l u d e ( { e v e n t : p , m o n i t o r : q } ) ; k . s t o r e ( m , s ) ; c . a p p l y ( t h i s , [ m , p ] . c o n c a t ( l ) ) ; r e t u r n   c . a p p l y ( t h i s , [ h , q ] . c o n c a t ( l ) ) ; } , r e m o v e E v e n t : f u n c t i o n ( l , n ) { v a r   m = f ( l ) ; 
 i f ( ! m ) { r e t u r n   e . c a l l ( t h i s , l , n ) ; } v a r   j = a ( t h i s ) , o = j . r e t r i e v e ( l ) ; i f ( ! o ) { r e t u r n   t h i s ; } v a r   h = m [ 0 ] . e v e n t , p = d ( m ) , i = p [ h ] | | { } , k = A r r a y . s l i c e ( a r g u m e n t s , 2 ) ; i f ( i . a r g s ) { k . a p p e n d ( A r r a y . f r o m ( i . a r g s ) ) ; 
 } i f ( i . b a s e ) { h = i . b a s e ; } i f ( i . o n R e m o v e ) { i . o n R e m o v e ( t h i s ) ; } e . a p p l y ( t h i s , [ l , n ] . c o n c a t ( k ) ) ; o . e a c h ( f u n c t i o n ( q , r ) { i f ( ! n | | q . e v e n t = = n ) { e . a p p l y ( t h i s , [ h , q . m o n i t o r ] . c o n c a t ( k ) ) ; 
 } d e l e t e   o [ r ] ; } , t h i s ) ; j . s t o r e ( l , o ) ; r e t u r n   t h i s ; } } ; } ; ( f u n c t i o n ( ) { v a r   b = { o n c e : { l i s t e n e r : f u n c t i o n ( e , f , d , c ) { f . a p p l y ( t h i s , d ) ; t h i s . r e m o v e E v e n t ( e . e v e n t , c ) . r e m o v e E v e n t ( e . o r i g i n a l , f ) ; 
 } } , t h r o t t l e : { l i s t e n e r : f u n c t i o n ( d , e , c ) { i f ( ! e . _ t h r o t t l e d ) { e . a p p l y ( t h i s , c ) ; e . _ t h r o t t l e d = s e t T i m e o u t ( f u n c t i o n ( ) { e . _ t h r o t t l e d = f a l s e ; } , d . v a l u e | | 2 5 0 ) ; } } } , p a u s e : { l i s t e n e r : f u n c t i o n ( d , e , c ) { c l e a r T i m e o u t ( e . _ p a u s e ) ; 
 e . _ p a u s e = e . d e l a y ( d . v a l u e | | 2 5 0 , t h i s , c ) ; } } } ; E v e n t s . d e f i n e P s e u d o = f u n c t i o n ( c , d ) { b [ c ] = T y p e . i s F u n c t i o n ( d ) ? { l i s t e n e r : d } : d ; r e t u r n   t h i s ; } ; E v e n t s . l o o k u p P s e u d o = f u n c t i o n ( c ) { r e t u r n   b [ c ] ; 
 } ; v a r   a = E v e n t s . p r o t o t y p e ; E v e n t s . i m p l e m e n t ( E v e n t s . P s e u d o s ( b , a . a d d E v e n t , a . r e m o v e E v e n t ) ) ; [ " R e q u e s t " , " F x " ] . e a c h ( f u n c t i o n ( c ) { i f ( t h i s [ c ] ) { t h i s [ c ] . i m p l e m e n t ( E v e n t s . p r o t o t y p e ) ; 
 } } ) ; } ) . c a l l ( t h i s ) ; C l a s s . r e f a c t o r = f u n c t i o n ( b , a ) { O b j e c t . e a c h ( a , f u n c t i o n ( e , d ) { v a r   c = b . p r o t o t y p e [ d ] ; i f ( c & & c . $ o r i g i n ) { c = c . $ o r i g i n ; } b . i m p l e m e n t ( d , ( t y p e o f   e = = " f u n c t i o n " ) ? f u n c t i o n ( ) { v a r   f = t h i s . p r e v i o u s ; 
 t h i s . p r e v i o u s = c | | f u n c t i o n ( ) { } ; v a r   g = e . a p p l y ( t h i s , a r g u m e n t s ) ; t h i s . p r e v i o u s = f ; r e t u r n   g ; } : e ) ; } ) ; r e t u r n   b ; } ; C l a s s . M u t a t o r s . B i n d s = f u n c t i o n ( a ) { i f ( ! t h i s . p r o t o t y p e . i n i t i a l i z e ) { t h i s . i m p l e m e n t ( " i n i t i a l i z e " , f u n c t i o n ( ) { } ) ; 
 } r e t u r n   a ; } ; C l a s s . M u t a t o r s . i n i t i a l i z e = f u n c t i o n ( a ) { r e t u r n   f u n c t i o n ( ) { A r r a y . f r o m ( t h i s . B i n d s ) . e a c h ( f u n c t i o n ( b ) { v a r   c = t h i s [ b ] ; i f ( c ) { t h i s [ b ] = c . b i n d ( t h i s ) ; } } , t h i s ) ; 
 r e t u r n   a . a p p l y ( t h i s , a r g u m e n t s ) ; } ; } ; C l a s s . O c c l u d e = n e w   C l a s s ( { o c c l u d e : f u n c t i o n ( c , b ) { b = d o c u m e n t . i d ( b | | t h i s . e l e m e n t ) ; v a r   a = b . r e t r i e v e ( c | | t h i s . p r o p e r t y ) ; i f ( a & & ! t h i s . o c c l u d e d ) { r e t u r n ( t h i s . o c c l u d e d = a ) ; 
 } t h i s . o c c l u d e d = f a l s e ; b . s t o r e ( c | | t h i s . p r o p e r t y , t h i s ) ; r e t u r n   t h i s . o c c l u d e d ; } } ) ; ( f u n c t i o n ( ) { v a r   a = { w a i t : f u n c t i o n ( b ) { r e t u r n   t h i s . c h a i n ( f u n c t i o n ( ) { t h i s . c a l l C h a i n . d e l a y ( b = = n u l l ? 5 0 0 : b , t h i s ) ; 
 } . b i n d ( t h i s ) ) ; } } ; C h a i n . i m p l e m e n t ( a ) ; i f ( t h i s . F x ) { F x . i m p l e m e n t ( a ) ; } i f ( t h i s . E l e m e n t & & E l e m e n t . i m p l e m e n t & & t h i s . F x ) { E l e m e n t . i m p l e m e n t ( { c h a i n s : f u n c t i o n ( b ) { A r r a y . f r o m ( b | | [ " t w e e n " , " m o r p h " , " r e v e a l " ] ) . e a c h ( f u n c t i o n ( c ) { c = t h i s . g e t ( c ) ; 
 i f ( ! c ) { r e t u r n ; } c . s e t O p t i o n s ( { l i n k : " c h a i n " } ) ; } , t h i s ) ; r e t u r n   t h i s ; } , p a u s e F x : f u n c t i o n ( c , b ) { t h i s . c h a i n s ( b ) . g e t ( b | | " t w e e n " ) . w a i t ( c ) ; r e t u r n   t h i s ; } } ) ; } } ) . c a l l ( t h i s ) ; 
 ( f u n c t i o n ( a ) { A r r a y . i m p l e m e n t ( { m i n : f u n c t i o n ( ) { r e t u r n   M a t h . m i n . a p p l y ( n u l l , t h i s ) ; } , m a x : f u n c t i o n ( ) { r e t u r n   M a t h . m a x . a p p l y ( n u l l , t h i s ) ; } , a v e r a g e : f u n c t i o n ( ) { r e t u r n   t h i s . l e n g t h ? t h i s . s u m ( ) / t h i s . l e n g t h : 0 ; 
 } , s u m : f u n c t i o n ( ) { v a r   b = 0 , c = t h i s . l e n g t h ; i f ( c ) { w h i l e ( c - - ) { b + = t h i s [ c ] ; } } r e t u r n   b ; } , u n i q u e : f u n c t i o n ( ) { r e t u r n [ ] . c o m b i n e ( t h i s ) ; } , s h u f f l e : f u n c t i o n ( ) { f o r ( v a r   c = t h i s . l e n g t h ; 
 c & & - - c ; ) { v a r   b = t h i s [ c ] , d = M a t h . f l o o r ( M a t h . r a n d o m ( ) * ( c + 1 ) ) ; t h i s [ c ] = t h i s [ d ] ; t h i s [ d ] = b ; } r e t u r n   t h i s ; } , r e d u c e : f u n c t i o n ( d , e ) { f o r ( v a r   c = 0 , b = t h i s . l e n g t h ; c < b ; c + + ) { i f ( c   i n   t h i s ) { e = e = = = a ? t h i s [ c ] : d . c a l l ( n u l l , e , t h i s [ c ] , c , t h i s ) ; 
 } } r e t u r n   e ; } , r e d u c e R i g h t : f u n c t i o n ( c , d ) { v a r   b = t h i s . l e n g t h ; w h i l e ( b - - ) { i f ( b   i n   t h i s ) { d = d = = = a ? t h i s [ b ] : c . c a l l ( n u l l , d , t h i s [ b ] , b , t h i s ) ; } } r e t u r n   d ; } } ) ; } ) . c a l l ( t h i s ) ; 
 ( f u n c t i o n ( ) { v a r   b = f u n c t i o n ( c ) { r e t u r n   c ! = n u l l ; } ; v a r   a = 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 ; O b j e c t . e x t e n d ( { g e t F r o m P a t h : f u n c t i o n ( e , f ) { i f ( t y p e o f   f = = " s t r i n g " ) { f = f . s p l i t ( " . " ) ; 
 } f o r ( v a r   d = 0 , c = f . l e n g t h ; d < c ; d + + ) { i f ( a . c a l l ( e , f [ d ] ) ) { e = e [ f [ d ] ] ; } e l s e { r e t u r n   n u l l ; } } r e t u r n   e ; } , c l e a n V a l u e s : f u n c t i o n ( c , e ) { e = e | | b ; f o r ( v a r   d   i n   c ) { i f ( ! e ( c [ d ] ) ) { d e l e t e   c [ d ] ; 
 } } r e t u r n   c ; } , e r a s e : f u n c t i o n ( c , d ) { i f ( a . c a l l ( c , d ) ) { d e l e t e   c [ d ] ; } r e t u r n   c ; } , r u n : f u n c t i o n ( d ) { v a r   c = A r r a y . s l i c e ( a r g u m e n t s , 1 ) ; f o r ( v a r   e   i n   d ) { i f ( d [ e ] . a p p l y ) { d [ e ] . a p p l y ( d , c ) ; 
 } } r e t u r n   d ; } } ) ; } ) . c a l l ( t h i s ) ; ( f u n c t i o n ( ) { v a r   b = n u l l , a = { } , e = { } ; v a r   d = f u n c t i o n ( g ) { i f ( i n s t a n c e O f ( g , f . S e t ) ) { r e t u r n   g ; } e l s e { r e t u r n   a [ g ] ; } } ; v a r   f = t h i s . L o c a l e = { d e f i n e : f u n c t i o n ( g , k , i , j ) { v a r   h ; 
 i f ( i n s t a n c e O f ( g , f . S e t ) ) { h = g . n a m e ; i f ( h ) { a [ h ] = g ; } } e l s e { h = g ; i f ( ! a [ h ] ) { a [ h ] = n e w   f . S e t ( h ) ; } g = a [ h ] ; } i f ( k ) { g . d e f i n e ( k , i , j ) ; } i f ( k = = " c a s c a d e " ) { r e t u r n   f . i n h e r i t ( h , i ) ; 
 } i f ( ! b ) { b = g ; } r e t u r n   g ; } , u s e : f u n c t i o n ( g ) { g = d ( g ) ; i f ( g ) { b = g ; t h i s . f i r e E v e n t ( " c h a n g e " , g ) ; t h i s . f i r e E v e n t ( " l a n g C h a n g e " , g . n a m e ) ; } r e t u r n   t h i s ; } , g e t C u r r e n t : f u n c t i o n ( ) { r e t u r n   b ; 
 } , g e t : f u n c t i o n ( h , g ) { r e t u r n ( b ) ? b . g e t ( h , g ) : " " ; } , i n h e r i t : f u n c t i o n ( g , h , i ) { g = d ( g ) ; i f ( g ) { g . i n h e r i t ( h , i ) ; } r e t u r n   t h i s ; } , l i s t : f u n c t i o n ( ) { r e t u r n   O b j e c t . k e y s ( a ) ; 
 } } ; O b j e c t . a p p e n d ( f , n e w   E v e n t s ) ; f . S e t = n e w   C l a s s ( { s e t s : { } , i n h e r i t s : { l o c a l e s : [ ] , s e t s : { } } , i n i t i a l i z e : f u n c t i o n ( g ) { t h i s . n a m e = g | | " " ; } , d e f i n e : f u n c t i o n ( j , h , i ) { v a r   g = t h i s . s e t s [ j ] ; 
 i f ( ! g ) { g = { } ; } i f ( h ) { i f ( t y p e O f ( h ) = = " o b j e c t " ) { g = O b j e c t . m e r g e ( g , h ) ; } e l s e { g [ h ] = i ; } } t h i s . s e t s [ j ] = g ; r e t u r n   t h i s ; } , g e t : f u n c t i o n ( s , k , r ) { v a r   q = O b j e c t . g e t F r o m P a t h ( t h i s . s e t s , s ) ; 
 i f ( q ! = n u l l ) { v a r   n = t y p e O f ( q ) ; i f ( n = = " f u n c t i o n " ) { q = q . a p p l y ( n u l l , A r r a y . f r o m ( k ) ) ; } e l s e { i f ( n = = " o b j e c t " ) { q = O b j e c t . c l o n e ( q ) ; } } r e t u r n   q ; } v a r   j = s . i n d e x O f ( " . " ) , p = j < 0 ? s : s . s u b s t r ( 0 , j ) , m = ( t h i s . i n h e r i t s . s e t s [ p ] | | [ ] ) . c o m b i n e ( t h i s . i n h e r i t s . l o c a l e s ) . i n c l u d e ( " e n - U S " ) ; 
 i f ( ! r ) { r = [ ] ; } f o r ( v a r   h = 0 , g = m . l e n g t h ; h < g ; h + + ) { i f ( r . c o n t a i n s ( m [ h ] ) ) { c o n t i n u e ; } r . i n c l u d e ( m [ h ] ) ; v a r   o = a [ m [ h ] ] ; i f ( ! o ) { c o n t i n u e ; } q = o . g e t ( s , k , r ) ; i f ( q ! = n u l l ) { r e t u r n   q ; 
 } } r e t u r n " " ; } , i n h e r i t : f u n c t i o n ( h , i ) { h = A r r a y . f r o m ( h ) ; i f ( i & & ! t h i s . i n h e r i t s . s e t s [ i ] ) { t h i s . i n h e r i t s . s e t s [ i ] = [ ] ; } v a r   g = h . l e n g t h ; w h i l e ( g - - ) { ( i ? t h i s . i n h e r i t s . s e t s [ i ] : t h i s . i n h e r i t s . l o c a l e s ) . u n s h i f t ( h [ g ] ) ; 
 } r e t u r n   t h i s ; } } ) ; v a r   c = M o o T o o l s . l a n g = { } ; O b j e c t . a p p e n d ( c , f , { s e t L a n g u a g e : f . u s e , g e t C u r r e n t L a n g u a g e : f u n c t i o n ( ) { v a r   g = f . g e t C u r r e n t ( ) ; r e t u r n ( g ) ? g . n a m e : n u l l ; } , s e t : f u n c t i o n ( ) { f . d e f i n e . a p p l y ( t h i s , a r g u m e n t s ) ; 
 r e t u r n   t h i s ; } , g e t : f u n c t i o n ( i , h , g ) { i f ( h ) { i + = " . " + h ; } r e t u r n   f . g e t ( i , g ) ; } } ) ; } ) . c a l l ( t h i s ) ; L o c a l e . d e f i n e ( " e n - U S " , " D a t e " , { m o n t h s : [ " J a n u a r y " , " F e b r u a r y " , " M a r c h " , " A p r i l " , " M a y " , " J u n e " , " J u l y " , " A u g u s t " , " S e p t e m b e r " , " O c t o b e r " , " N o v e m b e r " , " D e c e m b e r " ] , m o n t h s _ a b b r : [ " J a n " , " F e b " , " M a r " , " A p r " , " M a y " , " J u n " , " J u l " , " A u g " , " S e p " , " O c t " , " N o v " , " D e c " ] , d a y s : [ " S u n d a y " , " M o n d a y " , " T u e s d a y " , " W e d n e s d a y " , " T h u r s d a y " , " F r i d a y " , " S a t u r d a y " ] , d a y s _ a b b r : [ " S u n " , " M o n " , " T u e " , " W e d " , " T h u " , " F r i " , " S a t " ] , d a t e O r d e r : [ " m o n t h " , " d a t e " , " y e a r " ] , s h o r t D a t e : " % m / % d / % Y " , s h o r t T i m e : " % I : % M % p " , A M : " A M " , P M : " P M " , f i r s t D a y O f W e e k : 0 , o r d i n a l : f u n c t i o n ( a ) { r e t u r n ( a > 3 & & a < 2 1 ) ? " t h " : [ " t h " , " s t " , " n d " , " r d " , " t h " ] [ M a t h . m i n ( a % 1 0 , 4 ) ] ; 
 } , l e s s T h a n M i n u t e A g o : " l e s s   t h a n   a   m i n u t e   a g o " , m i n u t e A g o : " a b o u t   a   m i n u t e   a g o " , m i n u t e s A g o : " { d e l t a }   m i n u t e s   a g o " , h o u r A g o : " a b o u t   a n   h o u r   a g o " , h o u r s A g o : " a b o u t   { d e l t a }   h o u r s   a g o " , d a y A g o : " 1   d a y   a g o " , d a y s A g o : " { d e l t a }   d a y s   a g o " , w e e k A g o : " 1   w e e k   a g o " , w e e k s A g o : " { d e l t a }   w e e k s   a g o " , m o n t h A g o : " 1   m o n t h   a g o " , m o n t h s A g o : " { d e l t a }   m o n t h s   a g o " , y e a r A g o : " 1   y e a r   a g o " , y e a r s A g o : " { d e l t a }   y e a r s   a g o " , l e s s T h a n M i n u t e U n t i l : " l e s s   t h a n   a   m i n u t e   f r o m   n o w " , m i n u t e U n t i l : " a b o u t   a   m i n u t e   f r o m   n o w " , m i n u t e s U n t i l : " { d e l t a }   m i n u t e s   f r o m   n o w " , h o u r U n t i l : " a b o u t   a n   h o u r   f r o m   n o w " , h o u r s U n t i l : " a b o u t   { d e l t a }   h o u r s   f r o m   n o w " , d a y U n t i l : " 1   d a y   f r o m   n o w " , d a y s U n t i l : " { d e l t a }   d a y s   f r o m   n o w " , w e e k U n t i l : " 1   w e e k   f r o m   n o w " , w e e k s U n t i l : " { d e l t a }   w e e k s   f r o m   n o w " , m o n t h U n t i l : " 1   m o n t h   f r o m   n o w " , m o n t h s U n t i l : " { d e l t a }   m o n t h s   f r o m   n o w " , y e a r U n t i l : " 1   y e a r   f r o m   n o w " , y e a r s U n t i l : " { d e l t a }   y e a r s   f r o m   n o w " } ) ; 
 ( f u n c t i o n ( ) { v a r   a = t h i s . D a t e ; v a r   f = a . M e t h o d s = { m s : " M i l l i s e c o n d s " , y e a r : " F u l l Y e a r " , m i n : " M i n u t e s " , m o : " M o n t h " , s e c : " S e c o n d s " , h r : " H o u r s " } ; [ " D a t e " , " D a y " , " F u l l Y e a r " , " H o u r s " , " M i l l i s e c o n d s " , " M i n u t e s " , " M o n t h " , " S e c o n d s " , " T i m e " , " T i m e z o n e O f f s e t " , " W e e k " , " T i m e z o n e " , " G M T O f f s e t " , " D a y O f Y e a r " , " L a s t M o n t h " , " L a s t D a y O f M o n t h " , " U T C D a t e " , " U T C D a y " , " U T C F u l l Y e a r " , " A M P M " , " O r d i n a l " , " U T C H o u r s " , " U T C M i l l i s e c o n d s " , " U T C M i n u t e s " , " U T C M o n t h " , " U T C S e c o n d s " , " U T C M i l l i s e c o n d s " ] . e a c h ( f u n c t i o n ( t ) { a . M e t h o d s [ t . t o L o w e r C a s e ( ) ] = t ; 
 } ) ; v a r   p = f u n c t i o n ( v , u , t ) { i f ( u = = 1 ) { r e t u r n   v ; } r e t u r n   v < M a t h . p o w ( 1 0 , u - 1 ) ? ( t | | " 0 " ) + p ( v , u - 1 , t ) : v ; } ; a . i m p l e m e n t ( { s e t : f u n c t i o n ( v , t ) { v = v . t o L o w e r C a s e ( ) ; v a r   u = f [ v ] & & " s e t " + f [ v ] ; 
 i f ( u & & t h i s [ u ] ) { t h i s [ u ] ( t ) ; } r e t u r n   t h i s ; } . o v e r l o a d S e t t e r ( ) , g e t : f u n c t i o n ( u ) { u = u . t o L o w e r C a s e ( ) ; v a r   t = f [ u ] & & " g e t " + f [ u ] ; i f ( t & & t h i s [ t ] ) { r e t u r n   t h i s [ t ] ( ) ; } r e t u r n   n u l l ; 
 } . o v e r l o a d G e t t e r ( ) , c l o n e : f u n c t i o n ( ) { r e t u r n   n e w   a ( t h i s . g e t ( " t i m e " ) ) ; } , i n c r e m e n t : f u n c t i o n ( t , v ) { t = t | | " d a y " ; v = v ! = n u l l ? v : 1 ; s w i t c h ( t ) { c a s e " y e a r " : r e t u r n   t h i s . i n c r e m e n t ( " m o n t h " , v * 1 2 ) ; 
 c a s e " m o n t h " : v a r   u = t h i s . g e t ( " d a t e " ) ; t h i s . s e t ( " d a t e " , 1 ) . s e t ( " m o " , t h i s . g e t ( " m o " ) + v ) ; r e t u r n   t h i s . s e t ( " d a t e " , u . m i n ( t h i s . g e t ( " l a s t d a y o f m o n t h " ) ) ) ; c a s e " w e e k " : r e t u r n   t h i s . i n c r e m e n t ( " d a y " , v * 7 ) ; 
 c a s e " d a y " : r e t u r n   t h i s . s e t ( " d a t e " , t h i s . g e t ( " d a t e " ) + v ) ; } i f ( ! a . u n i t s [ t ] ) { t h r o w   n e w   E r r o r ( t + "   i s   n o t   a   s u p p o r t e d   i n t e r v a l " ) ; } r e t u r n   t h i s . s e t ( " t i m e " , t h i s . g e t ( " t i m e " ) + v * a . u n i t s [ t ] ( ) ) ; 
 } , d e c r e m e n t : f u n c t i o n ( t , u ) { r e t u r n   t h i s . i n c r e m e n t ( t , - 1 * ( u ! = n u l l ? u : 1 ) ) ; } , i s L e a p Y e a r : f u n c t i o n ( ) { r e t u r n   a . i s L e a p Y e a r ( t h i s . g e t ( " y e a r " ) ) ; } , c l e a r T i m e : f u n c t i o n ( ) { r e t u r n   t h i s . s e t ( { h r : 0 , m i n : 0 , s e c : 0 , m s : 0 } ) ; 
 } , d i f f : f u n c t i o n ( u , t ) { i f ( t y p e O f ( u ) = = " s t r i n g " ) { u = a . p a r s e ( u ) ; } r e t u r n ( ( u - t h i s ) / a . u n i t s [ t | | " d a y " ] ( 3 , 3 ) ) . r o u n d ( ) ; } , g e t L a s t D a y O f M o n t h : f u n c t i o n ( ) { r e t u r n   a . d a y s I n M o n t h ( t h i s . g e t ( " m o " ) , t h i s . g e t ( " y e a r " ) ) ; 
 } , g e t D a y O f Y e a r : f u n c t i o n ( ) { r e t u r n ( a . U T C ( t h i s . g e t ( " y e a r " ) , t h i s . g e t ( " m o " ) , t h i s . g e t ( " d a t e " ) + 1 ) - a . U T C ( t h i s . g e t ( " y e a r " ) , 0 , 1 ) ) / a . u n i t s . d a y ( ) ; } , s e t D a y : f u n c t i o n ( u , t ) { i f ( t = = n u l l ) { t = a . g e t M s g ( " f i r s t D a y O f W e e k " ) ; 
 i f ( t = = = " " ) { t = 1 ; } } u = ( 7 + a . p a r s e D a y ( u , t r u e ) - t ) % 7 ; v a r   v = ( 7 + t h i s . g e t ( " d a y " ) - t ) % 7 ; r e t u r n   t h i s . i n c r e m e n t ( " d a y " , u - v ) ; } , g e t W e e k : f u n c t i o n ( w ) { i f ( w = = n u l l ) { w = a . g e t M s g ( " f i r s t D a y O f W e e k " ) ; 
 i f ( w = = = " " ) { w = 1 ; } } v a r   y = t h i s , v = ( 7 + y . g e t ( " d a y " ) - w ) % 7 , u = 0 , x ; i f ( w = = 1 ) { v a r   z = y . g e t ( " m o n t h " ) , t = y . g e t ( " d a t e " ) - v ; i f ( z = = 1 1 & & t > 2 8 ) { r e t u r n   1 ; } i f ( z = = 0 & & t < - 2 ) { y = n e w   a ( y ) . d e c r e m e n t ( " d a y " , v ) ; 
 v = 0 ; } x = n e w   a ( y . g e t ( " y e a r " ) , 0 , 1 ) . g e t ( " d a y " ) | | 7 ; i f ( x > 4 ) { u = - 7 ; } } e l s e { x = n e w   a ( y . g e t ( " y e a r " ) , 0 , 1 ) . g e t ( " d a y " ) ; } u + = y . g e t ( " d a y o f y e a r " ) ; u + = 6 - v ; u + = ( 7 + x - w ) % 7 ; r e t u r n ( u / 7 ) ; 
 } , g e t O r d i n a l : f u n c t i o n ( t ) { r e t u r n   a . g e t M s g ( " o r d i n a l " , t | | t h i s . g e t ( " d a t e " ) ) ; } , g e t T i m e z o n e : f u n c t i o n ( ) { r e t u r n   t h i s . t o S t r i n g ( ) . r e p l a c e ( / ^ . * ?   ( [ A - Z ] { 3 } ) . [ 0 - 9 ] { 4 } . * $ / , " $ 1 " ) . r e p l a c e ( / ^ . * ? \ ( ( [ A - Z ] ) [ a - z ] +   ( [ A - Z ] ) [ a - z ] +   ( [ A - Z ] ) [ a - z ] + \ ) $ / , " $ 1 $ 2 $ 3 " ) ; 
 } , g e t G M T O f f s e t : f u n c t i o n ( ) { v a r   t = t h i s . g e t ( " t i m e z o n e O f f s e t " ) ; r e t u r n ( ( t > 0 ) ? " - " : " + " ) + p ( ( t . a b s ( ) / 6 0 ) . f l o o r ( ) , 2 ) + p ( t % 6 0 , 2 ) ; } , s e t A M P M : f u n c t i o n ( t ) { t = t . t o U p p e r C a s e ( ) ; 
 v a r   u = t h i s . g e t ( " h r " ) ; i f ( u > 1 1 & & t = = " A M " ) { r e t u r n   t h i s . d e c r e m e n t ( " h o u r " , 1 2 ) ; } e l s e { i f ( u < 1 2 & & t = = " P M " ) { r e t u r n   t h i s . i n c r e m e n t ( " h o u r " , 1 2 ) ; } } r e t u r n   t h i s ; } , g e t A M P M : f u n c t i o n ( ) { r e t u r n ( t h i s . g e t ( " h r " ) < 1 2 ) ? " A M " : " P M " ; 
 } , p a r s e : f u n c t i o n ( t ) { t h i s . s e t ( " t i m e " , a . p a r s e ( t ) ) ; r e t u r n   t h i s ; } , i s V a l i d : f u n c t i o n ( t ) { r e t u r n   ! i s N a N ( ( t | | t h i s ) . v a l u e O f ( ) ) ; } , f o r m a t : f u n c t i o n ( u ) { i f ( ! t h i s . i s V a l i d ( ) ) { r e t u r n " i n v a l i d   d a t e " ; 
 } i f ( ! u ) { u = " % x   % X " ; } v a r   t = u . t o L o w e r C a s e ( ) ; i f ( s [ t ] ) { r e t u r n   s [ t ] ( t h i s ) ; } u = g [ t ] | | u ; v a r   v = t h i s ; r e t u r n   u . r e p l a c e ( / % ( [ a - z % ] ) / g i , f u n c t i o n ( x , w ) { s w i t c h ( w ) { c a s e " a " : r e t u r n   a . g e t M s g ( " d a y s _ a b b r " ) [ v . g e t ( " d a y " ) ] ; 
 c a s e " A " : r e t u r n   a . g e t M s g ( " d a y s " ) [ v . g e t ( " d a y " ) ] ; c a s e " b " : r e t u r n   a . g e t M s g ( " m o n t h s _ a b b r " ) [ v . g e t ( " m o n t h " ) ] ; c a s e " B " : r e t u r n   a . g e t M s g ( " m o n t h s " ) [ v . g e t ( " m o n t h " ) ] ; 
 c a s e " c " : r e t u r n   v . f o r m a t ( " % a   % b   % d   % H : % M : % S   % Y " ) ; c a s e " d " : r e t u r n   p ( v . g e t ( " d a t e " ) , 2 ) ; c a s e " e " : r e t u r n   p ( v . g e t ( " d a t e " ) , 2 , "   " ) ; c a s e " H " : r e t u r n   p ( v . g e t ( " h r " ) , 2 ) ; 
 c a s e " I " : r e t u r n   p ( ( v . g e t ( " h r " ) % 1 2 ) | | 1 2 , 2 ) ; c a s e " j " : r e t u r n   p ( v . g e t ( " d a y o f y e a r " ) , 3 ) ; c a s e " k " : r e t u r n   p ( v . g e t ( " h r " ) , 2 , "   " ) ; c a s e " l " : r e t u r n   p ( ( v . g e t ( " h r " ) % 1 2 ) | | 1 2 , 2 , "   " ) ; 
 c a s e " L " : r e t u r n   p ( v . g e t ( " m s " ) , 3 ) ; c a s e " m " : r e t u r n   p ( ( v . g e t ( " m o " ) + 1 ) , 2 ) ; c a s e " M " : r e t u r n   p ( v . g e t ( " m i n " ) , 2 ) ; c a s e " o " : r e t u r n   v . g e t ( " o r d i n a l " ) ; c a s e " p " : r e t u r n   a . g e t M s g ( v . g e t ( " a m p m " ) ) ; 
 c a s e " s " : r e t u r n   M a t h . r o u n d ( v / 1 0 0 0 ) ; c a s e " S " : r e t u r n   p ( v . g e t ( " s e c o n d s " ) , 2 ) ; c a s e " T " : r e t u r n   v . f o r m a t ( " % H : % M : % S " ) ; c a s e " U " : r e t u r n   p ( v . g e t ( " w e e k " ) , 2 ) ; c a s e " w " : r e t u r n   v . g e t ( " d a y " ) ; 
 c a s e " x " : r e t u r n   v . f o r m a t ( a . g e t M s g ( " s h o r t D a t e " ) ) ; c a s e " X " : r e t u r n   v . f o r m a t ( a . g e t M s g ( " s h o r t T i m e " ) ) ; c a s e " y " : r e t u r n   v . g e t ( " y e a r " ) . t o S t r i n g ( ) . s u b s t r ( 2 ) ; c a s e " Y " : r e t u r n   v . g e t ( " y e a r " ) ; 
 c a s e " z " : r e t u r n   v . g e t ( " G M T O f f s e t " ) ; c a s e " Z " : r e t u r n   v . g e t ( " T i m e z o n e " ) ; } r e t u r n   w ; } ) ; } , t o I S O S t r i n g : f u n c t i o n ( ) { r e t u r n   t h i s . f o r m a t ( " i s o 8 6 0 1 " ) ; } } ) . a l i a s ( { t o J S O N : " t o I S O S t r i n g " , c o m p a r e : " d i f f " , s t r f t i m e : " f o r m a t " } ) ; 
 v a r   g = { d b : " % Y - % m - % d   % H : % M : % S " , c o m p a c t : " % Y % m % d T % H % M % S " , " s h o r t " : " % d   % b   % H : % M " , " l o n g " : " % B   % d ,   % Y   % H : % M " } ; v a r   k = [ " S u n " , " M o n " , " T u e " , " W e d " , " T h u " , " F r i " , " S a t " ] , h = [ " J a n " , " F e b " , " M a r " , " A p r " , " M a y " , " J u n " , " J u l " , " A u g " , " S e p " , " O c t " , " N o v " , " D e c " ] ; 
 v a r   s = { r f c 8 2 2 : f u n c t i o n ( t ) { r e t u r n   k [ t . g e t ( " d a y " ) ] + t . f o r m a t ( " ,   % d   " ) + h [ t . g e t ( " m o n t h " ) ] + t . f o r m a t ( "   % Y   % H : % M : % S   % Z " ) ; } , r f c 2 8 2 2 : f u n c t i o n ( t ) { r e t u r n   k [ t . g e t ( " d a y " ) ] + t . f o r m a t ( " ,   % d   " ) + h [ t . g e t ( " m o n t h " ) ] + t . f o r m a t ( "   % Y   % H : % M : % S   % z " ) ; 
 } , i s o 8 6 0 1 : f u n c t i o n ( t ) { r e t u r n ( t . g e t U T C F u l l Y e a r ( ) + " - " + p ( t . g e t U T C M o n t h ( ) + 1 , 2 ) + " - " + p ( t . g e t U T C D a t e ( ) , 2 ) + " T " + p ( t . g e t U T C H o u r s ( ) , 2 ) + " : " + p ( t . g e t U T C M i n u t e s ( ) , 2 ) + " : " + p ( t . g e t U T C S e c o n d s ( ) , 2 ) + " . " + p ( t . g e t U T C M i l l i s e c o n d s ( ) , 3 ) + " Z " ) ; 
 } } ; v a r   c = [ ] , n = a . p a r s e ; v a r   r = f u n c t i o n ( w , y , v ) { v a r   u = - 1 , x = a . g e t M s g ( w + " s " ) ; s w i t c h ( t y p e O f ( y ) ) { c a s e " o b j e c t " : u = x [ y . g e t ( w ) ] ; b r e a k ; c a s e " n u m b e r " : u = x [ y ] ; i f ( ! u ) { t h r o w   n e w   E r r o r ( " I n v a l i d   " + w + "   i n d e x :   " + y ) ; 
 } b r e a k ; c a s e " s t r i n g " : v a r   t = x . f i l t e r ( f u n c t i o n ( z ) { r e t u r n   t h i s . t e s t ( z ) ; } , n e w   R e g E x p ( " ^ " + y , " i " ) ) ; i f ( ! t . l e n g t h ) { t h r o w   n e w   E r r o r ( " I n v a l i d   " + w + "   s t r i n g " ) ; } i f ( t . l e n g t h > 1 ) { t h r o w   n e w   E r r o r ( " A m b i g u o u s   " + w ) ; 
 } u = t [ 0 ] ; } r e t u r n ( v ) ? x . i n d e x O f ( u ) : u ; } ; v a r   i = 1 9 0 0 , o = 7 0 ; a . e x t e n d ( { g e t M s g : f u n c t i o n ( u , t ) { r e t u r n   L o c a l e . g e t ( " D a t e . " + u , t ) ; } , u n i t s : { m s : F u n c t i o n . f r o m ( 1 ) , s e c o n d : F u n c t i o n . f r o m ( 1 0 0 0 ) , m i n u t e : F u n c t i o n . f r o m ( 6 0 0 0 0 ) , h o u r : F u n c t i o n . f r o m ( 3 6 0 0 0 0 0 ) , d a y : F u n c t i o n . f r o m ( 8 6 4 0 0 0 0 0 ) , w e e k : F u n c t i o n . f r o m ( 6 0 8 4 0 0 0 0 0 ) , m o n t h : f u n c t i o n ( u , t ) { v a r   v = n e w   a ; 
 r e t u r n   a . d a y s I n M o n t h ( u ! = n u l l ? u : v . g e t ( " m o " ) , t ! = n u l l ? t : v . g e t ( " y e a r " ) ) * 8 6 4 0 0 0 0 0 ; } , y e a r : f u n c t i o n ( t ) { t = t | | n e w   a ( ) . g e t ( " y e a r " ) ; r e t u r n   a . i s L e a p Y e a r ( t ) ? 3 1 6 2 2 4 0 0 0 0 0 : 3 1 5 3 6 0 0 0 0 0 0 ; 
 } } , d a y s I n M o n t h : f u n c t i o n ( u , t ) { r e t u r n [ 3 1 , a . i s L e a p Y e a r ( t ) ? 2 9 : 2 8 , 3 1 , 3 0 , 3 1 , 3 0 , 3 1 , 3 1 , 3 0 , 3 1 , 3 0 , 3 1 ] [ u ] ; } , i s L e a p Y e a r : f u n c t i o n ( t ) { r e t u r n ( ( t % 4 = = = 0 ) & & ( t % 1 0 0 ! = = 0 ) ) | | ( t % 4 0 0 = = = 0 ) ; 
 } , p a r s e : f u n c t i o n ( w ) { v a r   v = t y p e O f ( w ) ; i f ( v = = " n u m b e r " ) { r e t u r n   n e w   a ( w ) ; } i f ( v ! = " s t r i n g " ) { r e t u r n   w ; } w = w . c l e a n ( ) ; i f ( ! w . l e n g t h ) { r e t u r n   n u l l ; } v a r   u ; c . s o m e ( f u n c t i o n ( x ) { v a r   t = x . r e . e x e c ( w ) ; 
 r e t u r n ( t ) ? ( u = x . h a n d l e r ( t ) ) : f a l s e ; } ) ; i f ( ! ( u & & u . i s V a l i d ( ) ) ) { u = n e w   a ( n ( w ) ) ; i f ( ! ( u & & u . i s V a l i d ( ) ) ) { u = n e w   a ( w . t o I n t ( ) ) ; } } r e t u r n   u ; } , p a r s e D a y : f u n c t i o n ( t , u ) { r e t u r n   r ( " d a y " , t , u ) ; 
 } , p a r s e M o n t h : f u n c t i o n ( u , t ) { r e t u r n   r ( " m o n t h " , u , t ) ; } , p a r s e U T C : f u n c t i o n ( u ) { v a r   t = n e w   a ( u ) ; v a r   v = a . U T C ( t . g e t ( " y e a r " ) , t . g e t ( " m o " ) , t . g e t ( " d a t e " ) , t . g e t ( " h r " ) , t . g e t ( " m i n " ) , t . g e t ( " s e c " ) , t . g e t ( " m s " ) ) ; 
 r e t u r n   n e w   a ( v ) ; } , o r d e r I n d e x : f u n c t i o n ( t ) { r e t u r n   a . g e t M s g ( " d a t e O r d e r " ) . i n d e x O f ( t ) + 1 ; } , d e f i n e F o r m a t : f u n c t i o n ( t , u ) { g [ t ] = u ; r e t u r n   t h i s ; } , d e f i n e F o r m a t s : f u n c t i o n ( t ) { f o r ( v a r   u   i n   t ) { a . d e f i n e F o r m a t ( u , t [ u ] ) ; 
 } r e t u r n   t h i s ; } , p a r s e P a t t e r n s : c , d e f i n e P a r s e r : f u n c t i o n ( t ) { c . p u s h ( ( t . r e & & t . h a n d l e r ) ? t : l ( t ) ) ; r e t u r n   t h i s ; } , d e f i n e P a r s e r s : f u n c t i o n ( ) { A r r a y . f l a t t e n ( a r g u m e n t s ) . e a c h ( a . d e f i n e P a r s e r ) ; 
 r e t u r n   t h i s ; } , d e f i n e 2 D i g i t Y e a r S t a r t : f u n c t i o n ( t ) { o = t % 1 0 0 ; i = t - o ; r e t u r n   t h i s ; } } ) ; v a r   d = f u n c t i o n ( t ) { r e t u r n   n e w   R e g E x p ( " ( ? : " + a . g e t M s g ( t ) . m a p ( f u n c t i o n ( u ) { r e t u r n   u . s u b s t r ( 0 , 3 ) ; 
 } ) . j o i n ( " | " ) + " ) [ a - z ] * " ) ; } ; v a r   m = f u n c t i o n ( t ) { s w i t c h ( t ) { c a s e " T " : r e t u r n " % H : % M : % S " ; c a s e " x " : r e t u r n ( ( a . o r d e r I n d e x ( " m o n t h " ) = = 1 ) ? " % m [ - . / ] % d " : " % d [ - . / ] % m " ) + " ( [ - . / ] % y ) ? " ; 
 c a s e " X " : r e t u r n " % H ( [ . : ] % M ) ? ( [ . : ] % S ( [ . : ] % s ) ? ) ?   ? % p ?   ? % z ? " ; } r e t u r n   n u l l ; } ; v a r   j = { d : / [ 0 - 2 ] ? [ 0 - 9 ] | 3 [ 0 1 ] / , H : / [ 0 1 ] ? [ 0 - 9 ] | 2 [ 0 - 3 ] / , I : / 0 ? [ 1 - 9 ] | 1 [ 0 - 2 ] / , M : / [ 0 - 5 ] ? \ d / , s : / \ d + / , o : / [ a - z ] * / , p : / [ a p ] \ . ? m \ . ? / , y : / \ d { 2 } | \ d { 4 } / , Y : / \ d { 4 } / , z : / Z | [ + - ] \ d { 2 } ( ? : : ? \ d { 2 } ) ? / } ; 
 j . m = j . I ; j . S = j . M ; v a r   e ; v a r   b = f u n c t i o n ( t ) { e = t ; j . a = j . A = d ( " d a y s " ) ; j . b = j . B = d ( " m o n t h s " ) ; c . e a c h ( f u n c t i o n ( v , u ) { i f ( v . f o r m a t ) { c [ u ] = l ( v . f o r m a t ) ; } } ) ; } ; v a r   l = f u n c t i o n ( v ) { i f ( ! e ) { r e t u r n { f o r m a t : v } ; 
 } v a r   t = [ ] ; v a r   u = ( v . s o u r c e | | v ) . r e p l a c e ( / % ( [ a - z ] ) / g i , f u n c t i o n ( x , w ) { r e t u r n   m ( w ) | | x ; } ) . r e p l a c e ( / \ ( ( ? ! \ ? ) / g , " ( ? : " ) . r e p l a c e ( /   ( ? ! \ ? | \ * ) / g , " , ?   " ) . r e p l a c e ( / % ( [ a - z % ] ) / g i , f u n c t i o n ( x , w ) { v a r   y = j [ w ] ; 
 i f ( ! y ) { r e t u r n   w ; } t . p u s h ( w ) ; r e t u r n " ( " + y . s o u r c e + " ) " ; } ) . r e p l a c e ( / \ [ a - z \ ] / g i , " [ a - z \ \ u 0 0 c 0 - \ \ u f f f f ; & ] " ) ; r e t u r n { f o r m a t : v , r e : n e w   R e g E x p ( " ^ " + u + " $ " , " i " ) , h a n d l e r : f u n c t i o n ( z ) { z = z . s l i c e ( 1 ) . a s s o c i a t e ( t ) ; 
 v a r   w = n e w   a ( ) . c l e a r T i m e ( ) , y = z . y | | z . Y ; i f ( y ! = n u l l ) { q . c a l l ( w , " y " , y ) ; } i f ( " d "   i n   z ) { q . c a l l ( w , " d " , 1 ) ; } i f ( " m "   i n   z | | z . b | | z . B ) { q . c a l l ( w , " m " , 1 ) ; } f o r ( v a r   x   i n   z ) { q . c a l l ( w , x , z [ x ] ) ; 
 } r e t u r n   w ; } } ; } ; v a r   q = f u n c t i o n ( t , u ) { i f ( ! u ) { r e t u r n   t h i s ; } s w i t c h ( t ) { c a s e " a " : c a s e " A " : r e t u r n   t h i s . s e t ( " d a y " , a . p a r s e D a y ( u , t r u e ) ) ; c a s e " b " : c a s e " B " : r e t u r n   t h i s . s e t ( " m o " , a . p a r s e M o n t h ( u , t r u e ) ) ; 
 c a s e " d " : r e t u r n   t h i s . s e t ( " d a t e " , u ) ; c a s e " H " : c a s e " I " : r e t u r n   t h i s . s e t ( " h r " , u ) ; c a s e " m " : r e t u r n   t h i s . s e t ( " m o " , u - 1 ) ; c a s e " M " : r e t u r n   t h i s . s e t ( " m i n " , u ) ; c a s e " p " : r e t u r n   t h i s . s e t ( " a m p m " , u . r e p l a c e ( / \ . / g , " " ) ) ; 
 c a s e " S " : r e t u r n   t h i s . s e t ( " s e c " , u ) ; c a s e " s " : r e t u r n   t h i s . s e t ( " m s " , ( " 0 . " + u ) * 1 0 0 0 ) ; c a s e " w " : r e t u r n   t h i s . s e t ( " d a y " , u ) ; c a s e " Y " : r e t u r n   t h i s . s e t ( " y e a r " , u ) ; c a s e " y " : u = + u ; 
 i f ( u < 1 0 0 ) { u + = i + ( u < o ? 1 0 0 : 0 ) ; } r e t u r n   t h i s . s e t ( " y e a r " , u ) ; c a s e " z " : i f ( u = = " Z " ) { u = " + 0 0 " ; } v a r   v = u . m a t c h ( / ( [ + - ] ) ( \ d { 2 } ) : ? ( \ d { 2 } ) ? / ) ; v = ( v [ 1 ] + " 1 " ) * ( v [ 2 ] * 6 0 + ( + v [ 3 ] | | 0 ) ) + t h i s . g e t T i m e z o n e O f f s e t ( ) ; 
 r e t u r n   t h i s . s e t ( " t i m e " , t h i s - v * 6 0 0 0 0 ) ; } r e t u r n   t h i s ; } ; a . d e f i n e P a r s e r s ( " % Y ( [ - . / ] % m ( [ - . / ] % d ( ( T |   ) % X ) ? ) ? ) ? " , " % Y % m % d ( T % H ( % M % S ? ) ? ) ? " , " % x (   % X ) ? " , " % d % o (   % b (   % Y ) ? ) ? (   % X ) ? " , " % b (   % d % o ) ? (   % Y ) ? (   % X ) ? " , " % Y   % b (   % d % o (   % X ) ? ) ? " , " % o   % b   % d   % X   % z   % Y " , " % T " , " % H : % M (   ? % p ) ? " ) ; 
 L o c a l e . a d d E v e n t ( " c h a n g e " , f u n c t i o n ( t ) { i f ( L o c a l e . g e t ( " D a t e " ) ) { b ( t ) ; } } ) . f i r e E v e n t ( " c h a n g e " , L o c a l e . g e t C u r r e n t ( ) ) ; } ) . c a l l ( t h i s ) ; D a t e . i m p l e m e n t ( { t i m e D i f f I n W o r d s : f u n c t i o n ( a ) { r e t u r n   D a t e . d i s t a n c e O f T i m e I n W o r d s ( t h i s , a | | n e w   D a t e ) ; 
 } , t i m e D i f f : f u n c t i o n ( f , c ) { i f ( f = = n u l l ) { f = n e w   D a t e ; } v a r   h = ( ( f - t h i s ) / 1 0 0 0 ) . f l o o r ( ) ; v a r   e = [ ] , a = [ 6 0 , 6 0 , 2 4 , 3 6 5 , 0 ] , d = [ " s " , " m " , " h " , " d " , " y " ] , g , b ; f o r ( v a r   i = 0 ; i < a . l e n g t h ; 
 i + + ) { i f ( i & & ! h ) { b r e a k ; } g = h ; i f ( ( b = a [ i ] ) ) { g = ( h % b ) ; h = ( h / b ) . f l o o r ( ) ; } e . u n s h i f t ( g + ( d [ i ] | | " " ) ) ; } r e t u r n   e . j o i n ( c | | " : " ) ; } } ) . e x t e n d ( { d i s t a n c e O f T i m e I n W o r d s : f u n c t i o n ( b , a ) { r e t u r n   D a t e . g e t T i m e P h r a s e ( ( ( a - b ) / 1 0 0 0 ) . t o I n t ( ) ) ; 
 } , g e t T i m e P h r a s e : f u n c t i o n ( f ) { v a r   d = ( f < 0 ) ? " U n t i l " : " A g o " ; i f ( f < 0 ) { f * = - 1 ; } v a r   b = { m i n u t e : 6 0 , h o u r : 6 0 , d a y : 2 4 , w e e k : 7 , m o n t h : 5 2 / 1 2 , y e a r : 1 2 , e o n : I n f i n i t y } ; v a r   e = " l e s s T h a n M i n u t e " ; 
 f o r ( v a r   c   i n   b ) { v a r   a = b [ c ] ; i f ( f < 1 . 5 * a ) { i f ( f > 0 . 7 5 * a ) { e = c ; } b r e a k ; } f / = a ; e = c + " s " ; } f = f . r o u n d ( ) ; r e t u r n   D a t e . g e t M s g ( e + d , f ) . s u b s t i t u t e ( { d e l t a : f } ) ; } } ) . d e f i n e P a r s e r s ( { r e : / ^ ( ? : t o d | t o m | y e s ) / i , h a n d l e r : f u n c t i o n ( a ) { v a r   b = n e w   D a t e ( ) . c l e a r T i m e ( ) ; 
 s w i t c h ( a [ 0 ] ) { c a s e " t o m " : r e t u r n   b . i n c r e m e n t ( ) ; c a s e " y e s " : r e t u r n   b . d e c r e m e n t ( ) ; d e f a u l t : r e t u r n   b ; } } } , { r e : / ^ ( n e x t | l a s t )   ( [ a - z ] + ) $ / i , h a n d l e r : f u n c t i o n ( e ) { v a r   f = n e w   D a t e ( ) . c l e a r T i m e ( ) ; 
 v a r   b = f . g e t D a y ( ) ; v a r   c = D a t e . p a r s e D a y ( e [ 2 ] , t r u e ) ; v a r   a = c - b ; i f ( c < = b ) { a + = 7 ; } i f ( e [ 1 ] = = " l a s t " ) { a - = 7 ; } r e t u r n   f . s e t ( " d a t e " , f . g e t D a t e ( ) + a ) ; } } ) . a l i a s ( " t i m e A g o I n W o r d s " , " t i m e D i f f I n W o r d s " ) ; 
 L o c a l e . d e f i n e ( " e n - U S " , " N u m b e r " , { d e c i m a l : " . " , g r o u p : " , " , c u r r e n c y : { p r e f i x : " $   " } } ) ; N u m b e r . i m p l e m e n t ( { f o r m a t : f u n c t i o n ( q ) { v a r   n = t h i s ; i f ( ! q ) { q = { } ; } v a r   a = f u n c t i o n ( i ) { i f ( q [ i ] ! = n u l l ) { r e t u r n   q [ i ] ; 
 } r e t u r n   L o c a l e . g e t ( " N u m b e r . " + i ) ; } ; v a r   f = n < 0 , h = a ( " d e c i m a l " ) , k = a ( " p r e c i s i o n " ) , o = a ( " g r o u p " ) , c = a ( " d e c i m a l s " ) ; i f ( f ) { v a r   e = L o c a l e . g e t ( " N u m b e r . n e g a t i v e " ) | | { } ; 
 i f ( e . p r e f i x = = n u l l & & e . s u f f i x = = n u l l ) { e . p r e f i x = " - " ; } O b j e c t . e a c h ( e , f u n c t i o n ( r , i ) { q [ i ] = ( i = = " p r e f i x " | | i = = " s u f f i x " ) ? ( a ( i ) + r ) : r ; } ) ; n = - n ; } v a r   l = a ( " p r e f i x " ) , p = a ( " s u f f i x " ) ; 
 i f ( c ! = = " " & & c > = 0 & & c < = 2 0 ) { n = n . t o F i x e d ( c ) ; } i f ( k > = 1 & & k < = 2 1 ) { n = ( + n ) . t o P r e c i s i o n ( k ) ; } n + = " " ; v a r   m ; i f ( a ( " s c i e n t i f i c " ) = = = f a l s e & & n . i n d e x O f ( " e " ) > - 1 ) { v a r   j = n . s p l i t ( " e " ) , b = + j [ 1 ] ; 
 n = j [ 0 ] . r e p l a c e ( " . " , " " ) ; i f ( b < 0 ) { b = - b - 1 ; m = j [ 0 ] . i n d e x O f ( " . " ) ; i f ( m > - 1 ) { b - = m - 1 ; } w h i l e ( b - - ) { n = " 0 " + n ; } n = " 0 . " + n ; } e l s e { m = j [ 0 ] . l a s t I n d e x O f ( " . " ) ; i f ( m > - 1 ) { b - = j [ 0 ] . l e n g t h - m - 1 ; 
 } w h i l e ( b - - ) { n + = " 0 " ; } } } i f ( h ! = " . " ) { n = n . r e p l a c e ( " . " , h ) ; } i f ( o ) { m = n . l a s t I n d e x O f ( h ) ; m = ( m > - 1 ) ? m : n . l e n g t h ; v a r   d = n . s u b s t r i n g ( m ) , g = m ; w h i l e ( g - - ) { i f ( ( m - g - 1 ) % 3 = = 0 & & g ! = ( m - 1 ) ) { d = o + d ; 
 } d = n . c h a r A t ( g ) + d ; } n = d ; } i f ( l ) { n = l + n ; } i f ( p ) { n + = p ; } r e t u r n   n ; } , f o r m a t C u r r e n c y : f u n c t i o n ( ) { v a r   a = L o c a l e . g e t ( " N u m b e r . c u r r e n c y " ) | | { } ; i f ( a . s c i e n t i f i c = = n u l l ) { a . s c i e n t i f i c = f a l s e ; 
 } i f ( a . d e c i m a l s = = n u l l ) { a . d e c i m a l s = 2 ; } r e t u r n   t h i s . f o r m a t ( a ) ; } , f o r m a t P e r c e n t a g e : f u n c t i o n ( ) { v a r   a = L o c a l e . g e t ( " N u m b e r . p e r c e n t a g e " ) | | { } ; i f ( a . s u f f i x = = n u l l ) { a . s u f f i x = " % " ; 
 } i f ( a . d e c i m a l s = = n u l l ) { a . d e c i m a l s = 2 ; } r e t u r n   t h i s . f o r m a t ( a ) ; } } ) ; ( f u n c t i o n ( ) { v a r   c = { a : / [ à á â ã ä å ] / g , A : / [ À Á Â Ã Ä Å ] / g , c : / [ ç ] / g , C : / [ Ç ] / g , d : / [ ] / g , D : / [ Ð ] / g , e : / [ è é ê ë ] / g , E : / [ È É Ê Ë ] / g , g : / [ ] / g , G : / [ ] / g , i : / [ ì í î ï ] / g , I : / [ Ì Í Î Ï ] / g , l : / [ :>B] / g , L : / [ 9=A] / g , n : / [ ñ HD] / g , N : / [ Ñ GC] / g , o : / [ ò ó ô õ ö ø Q] / g , O : / [ Ò Ó Ô Õ Ö Ø ] / g , r : / [ YU] / g , R : / [ XT] / g , s : / [ aa_] / g , S : / [ `^Z] / g , t : / [ ec] / g , T : / [ db] / g , u e : / [ ü ] / g , U E : / [ Ü ] / g , u : / [ ù ú û oµ ] / g , U : / [ Ù Ú Û n] / g , y : / [ ÿ ý ] / g , Y : / [ xÝ ] / g , z : / [ ~z|] / g , Z : / [ }y{] / g , t h : / [ þ ] / g , T H : / [ Þ ] / g , d h : / [ ð ] / g , D H : / [ Ð ] / g , s s : / [ ß ] / g , o e : / [ S] / g , O E : / [ R] / g , a e : / [ æ ] / g , A E : / [ Æ ] / g } , b = { "   " : / [ \ x a 0 \ u 2 0 0 2 \ u 2 0 0 3 \ u 2 0 0 9 ] / g , " * " : / [ \ x b 7 ] / g , " ' " : / [ \ u 2 0 1 8 \ u 2 0 1 9 ] / g , ' " ' : / [ \ u 2 0 1 c \ u 2 0 1 d ] / g , " . . . " : / [ \ u 2 0 2 6 ] / g , " - " : / [ \ u 2 0 1 3 ] / g , " & r a q u o ; " : / [ \ u F F F D ] / g } ; 
 v a r   a = f u n c t i o n ( f , h ) { v a r   e = f , g ; f o r ( g   i n   h ) { e = e . r e p l a c e ( h [ g ] , g ) ; } r e t u r n   e ; } ; v a r   d = f u n c t i o n ( e , g ) { e = e | | " " ; v a r   h = g ? " < " + e + " ( ? ! \ \ w ) [ ^ > ] * > ( [ \ \ s \ \ S ] * ? ) < / " + e + " ( ? ! \ \ w ) > " : " < / ? " + e + " ( [ ^ > ] + ) ? > " , f = n e w   R e g E x p ( h , " g i " ) ; 
 r e t u r n   f ; } ; S t r i n g . i m p l e m e n t ( { s t a n d a r d i z e : f u n c t i o n ( ) { r e t u r n   a ( t h i s , c ) ; } , r e p e a t : f u n c t i o n ( e ) { r e t u r n   n e w   A r r a y ( e + 1 ) . j o i n ( t h i s ) ; } , p a d : f u n c t i o n ( e , h , g ) { i f ( t h i s . l e n g t h > = e ) { r e t u r n   t h i s ; 
 } v a r   f = ( h = = n u l l ? "   " : " " + h ) . r e p e a t ( e - t h i s . l e n g t h ) . s u b s t r ( 0 , e - t h i s . l e n g t h ) ; i f ( ! g | | g = = " r i g h t " ) { r e t u r n   t h i s + f ; } i f ( g = = " l e f t " ) { r e t u r n   f + t h i s ; } r e t u r n   f . s u b s t r ( 0 , ( f . l e n g t h / 2 ) . f l o o r ( ) ) + t h i s + f . s u b s t r ( 0 , ( f . l e n g t h / 2 ) . c e i l ( ) ) ; 
 } , g e t T a g s : f u n c t i o n ( e , f ) { r e t u r n   t h i s . m a t c h ( d ( e , f ) ) | | [ ] ; } , s t r i p T a g s : f u n c t i o n ( e , f ) { r e t u r n   t h i s . r e p l a c e ( d ( e , f ) , " " ) ; } , t i d y : f u n c t i o n ( ) { r e t u r n   a ( t h i s , b ) ; } , t r u n c a t e : f u n c t i o n ( e , f , i ) { v a r   h = t h i s ; 
 i f ( f = = n u l l & & a r g u m e n t s . l e n g t h = = 1 ) { f = " & " ; } i f ( h . l e n g t h > e ) { h = h . s u b s t r i n g ( 0 , e ) ; i f ( i ) { v a r   g = h . l a s t I n d e x O f ( i ) ; i f ( g ! = - 1 ) { h = h . s u b s t r ( 0 , g ) ; } } i f ( f ) { h + = f ; } } r e t u r n   h ; 
 } } ) ; } ) . c a l l ( t h i s ) ; S t r i n g . i m p l e m e n t ( { p a r s e Q u e r y S t r i n g : f u n c t i o n ( d , a ) { i f ( d = = n u l l ) { d = t r u e ; } i f ( a = = n u l l ) { a = t r u e ; } v a r   c = t h i s . s p l i t ( / [ & ; ] / ) , b = { } ; i f ( ! c . l e n g t h ) { r e t u r n   b ; 
 } c . e a c h ( f u n c t i o n ( i ) { v a r   e = i . i n d e x O f ( " = " ) + 1 , g = e ? i . s u b s t r ( e ) : " " , f = e ? i . s u b s t r ( 0 , e - 1 ) . m a t c h ( / ( [ ^ \ ] \ [ ] + | ( \ B ) ( ? = \ ] ) ) / g ) : [ i ] , h = b ; i f ( ! f ) { r e t u r n ; } i f ( a ) { g = d e c o d e U R I C o m p o n e n t ( g ) ; 
 } f . e a c h ( f u n c t i o n ( k , j ) { i f ( d ) { k = d e c o d e U R I C o m p o n e n t ( k ) ; } v a r   l = h [ k ] ; i f ( j < f . l e n g t h - 1 ) { h = h [ k ] = l | | { } ; } e l s e { i f ( t y p e O f ( l ) = = " a r r a y " ) { l . p u s h ( g ) ; } e l s e { h [ k ] = l ! = n u l l ? [ l , g ] : g ; 
 } } } ) ; } ) ; r e t u r n   b ; } , c l e a n Q u e r y S t r i n g : f u n c t i o n ( a ) { r e t u r n   t h i s . s p l i t ( " & " ) . f i l t e r ( f u n c t i o n ( e ) { v a r   b = e . i n d e x O f ( " = " ) , c = b < 0 ? " " : e . s u b s t r ( 0 , b ) , d = e . s u b s t r ( b + 1 ) ; r e t u r n   a ? a . c a l l ( n u l l , c , d ) : ( d | | d = = = 0 ) ; 
 } ) . j o i n ( " & " ) ; } } ) ; ( f u n c t i o n ( ) { v a r   b = f u n c t i o n ( ) { r e t u r n   t h i s . g e t ( " v a l u e " ) ; } ; v a r   a = t h i s . U R I = n e w   C l a s s ( { I m p l e m e n t s : O p t i o n s , o p t i o n s : { } , r e g e x : / ^ ( ? : ( \ w + ) : ) ? ( ? : \ / \ / ( ? : ( ? : ( [ ^ : @ \ / ] * ) : ? ( [ ^ : @ \ / ] * ) ) ? @ ) ? ( [ ^ : \ / ? # ] * ) ( ? : : ( \ d * ) ) ? ) ? ( \ . \ . ? $ | ( ? : [ ^ ? # \ / ] * \ / ) * ) ( [ ^ ? # ] * ) ( ? : \ ? ( [ ^ # ] * ) ) ? ( ? : # ( . * ) ) ? / , p a r t s : [ " s c h e m e " , " u s e r " , " p a s s w o r d " , " h o s t " , " p o r t " , " d i r e c t o r y " , " f i l e " , " q u e r y " , " f r a g m e n t " ] , s c h e m e s : { h t t p : 8 0 , h t t p s : 4 4 3 , f t p : 2 1 , r t s p : 5 5 4 , m m s : 1 7 5 5 , f i l e : 0 } , i n i t i a l i z e : f u n c t i o n ( d , c ) { t h i s . s e t O p t i o n s ( c ) ; 
 v a r   e = t h i s . o p t i o n s . b a s e | | a . b a s e ; i f ( ! d ) { d = e ; } i f ( d & & d . p a r s e d ) { t h i s . p a r s e d = O b j e c t . c l o n e ( d . p a r s e d ) ; } e l s e { t h i s . s e t ( " v a l u e " , d . h r e f | | d . t o S t r i n g ( ) , e ? n e w   a ( e ) : f a l s e ) ; 
 } } , p a r s e : f u n c t i o n ( e , d ) { v a r   c = e . m a t c h ( t h i s . r e g e x ) ; i f ( ! c ) { r e t u r n   f a l s e ; } c . s h i f t ( ) ; r e t u r n   t h i s . m e r g e ( c . a s s o c i a t e ( t h i s . p a r t s ) , d ) ; } , m e r g e : f u n c t i o n ( d , c ) { i f ( ( ! d | | ! d . s c h e m e ) & & ( ! c | | ! c . s c h e m e ) ) { r e t u r n   f a l s e ; 
 } i f ( c ) { t h i s . p a r t s . e v e r y ( f u n c t i o n ( e ) { i f ( d [ e ] ) { r e t u r n   f a l s e ; } d [ e ] = c [ e ] | | " " ; r e t u r n   t r u e ; } ) ; } d . p o r t = d . p o r t | | t h i s . s c h e m e s [ d . s c h e m e . t o L o w e r C a s e ( ) ] ; d . d i r e c t o r y = d . d i r e c t o r y ? t h i s . p a r s e D i r e c t o r y ( d . d i r e c t o r y , c ? c . d i r e c t o r y : " " ) : " / " ; 
 r e t u r n   d ; } , p a r s e D i r e c t o r y : f u n c t i o n ( d , e ) { d = ( d . s u b s t r ( 0 , 1 ) = = " / " ? " " : ( e | | " / " ) ) + d ; i f ( ! d . t e s t ( a . r e g s . d i r e c t o r y D o t ) ) { r e t u r n   d ; } v a r   c = [ ] ; d . r e p l a c e ( a . r e g s . e n d S l a s h , " " ) . s p l i t ( " / " ) . e a c h ( f u n c t i o n ( f ) { i f ( f = = " . . " & & c . l e n g t h > 0 ) { c . p o p ( ) ; 
 } e l s e { i f ( f ! = " . " ) { c . p u s h ( f ) ; } } } ) ; r e t u r n   c . j o i n ( " / " ) + " / " ; } , c o m b i n e : f u n c t i o n ( c ) { r e t u r n   c . v a l u e | | c . s c h e m e + " : / / " + ( c . u s e r ? c . u s e r + ( c . p a s s w o r d ? " : " + c . p a s s w o r d : " " ) + " @ " : " " ) + ( c . h o s t | | " " ) + ( c . p o r t & & c . p o r t ! = t h i s . s c h e m e s [ c . s c h e m e ] ? " : " + c . p o r t : " " ) + ( c . d i r e c t o r y | | " / " ) + ( c . f i l e | | " " ) + ( c . q u e r y ? " ? " + c . q u e r y : " " ) + ( c . f r a g m e n t ? " # " + c . f r a g m e n t : " " ) ; 
 } , s e t : f u n c t i o n ( d , f , e ) { i f ( d = = " v a l u e " ) { v a r   c = f . m a t c h ( a . r e g s . s c h e m e ) ; i f ( c ) { c = c [ 1 ] ; } i f ( c & & t h i s . s c h e m e s [ c . t o L o w e r C a s e ( ) ] = = n u l l ) { t h i s . p a r s e d = { s c h e m e : c , v a l u e : f } ; 
 } e l s e { t h i s . p a r s e d = t h i s . p a r s e ( f , ( e | | t h i s ) . p a r s e d ) | | ( c ? { s c h e m e : c , v a l u e : f } : { v a l u e : f } ) ; } } e l s e { i f ( d = = " d a t a " ) { t h i s . s e t D a t a ( f ) ; } e l s e { t h i s . p a r s e d [ d ] = f ; } } r e t u r n   t h i s ; 
 } , g e t : f u n c t i o n ( c , d ) { s w i t c h ( c ) { c a s e " v a l u e " : r e t u r n   t h i s . c o m b i n e ( t h i s . p a r s e d , d ? d . p a r s e d : f a l s e ) ; c a s e " d a t a " : r e t u r n   t h i s . g e t D a t a ( ) ; } r e t u r n   t h i s . p a r s e d [ c ] | | " " ; 
 } , g o : f u n c t i o n ( ) { d o c u m e n t . l o c a t i o n . h r e f = t h i s . t o S t r i n g ( ) ; } , t o U R I : f u n c t i o n ( ) { r e t u r n   t h i s ; } , g e t D a t a : f u n c t i o n ( e , d ) { v a r   c = t h i s . g e t ( d | | " q u e r y " ) ; i f ( ! ( c | | c = = = 0 ) ) { r e t u r n   e ? n u l l : { } ; 
 } v a r   f = c . p a r s e Q u e r y S t r i n g ( ) ; r e t u r n   e ? f [ e ] : f ; } , s e t D a t a : f u n c t i o n ( c , f , d ) { i f ( t y p e o f   c = = " s t r i n g " ) { v a r   e = t h i s . g e t D a t a ( ) ; e [ a r g u m e n t s [ 0 ] ] = a r g u m e n t s [ 1 ] ; c = e ; } e l s e { i f ( f ) { c = O b j e c t . m e r g e ( t h i s . g e t D a t a ( ) , c ) ; 
 } } r e t u r n   t h i s . s e t ( d | | " q u e r y " , O b j e c t . t o Q u e r y S t r i n g ( c ) ) ; } , c l e a r D a t a : f u n c t i o n ( c ) { r e t u r n   t h i s . s e t ( c | | " q u e r y " , " " ) ; } , t o S t r i n g : b , v a l u e O f : b } ) ; a . r e g s = { e n d S l a s h : / \ / $ / , s c h e m e : / ^ ( \ w + ) : / , d i r e c t o r y D o t : / \ . \ / | \ . $ / } ; 
 a . b a s e = n e w   a ( A r r a y . f r o m ( d o c u m e n t . g e t E l e m e n t s ( " b a s e [ h r e f ] " , t r u e ) ) . g e t L a s t ( ) , { b a s e : d o c u m e n t . l o c a t i o n } ) ; S t r i n g . i m p l e m e n t ( { t o U R I : f u n c t i o n ( c ) { r e t u r n   n e w   a ( t h i s , c ) ; 
 } } ) ; } ) . c a l l ( t h i s ) ; U R I = C l a s s . r e f a c t o r ( U R I , { c o m b i n e : f u n c t i o n ( f , e ) { i f ( ! e | | f . s c h e m e ! = e . s c h e m e | | f . h o s t ! = e . h o s t | | f . p o r t ! = e . p o r t ) { r e t u r n   t h i s . p r e v i o u s . a p p l y ( t h i s , a r g u m e n t s ) ; 
 } v a r   a = f . f i l e + ( f . q u e r y ? " ? " + f . q u e r y : " " ) + ( f . f r a g m e n t ? " # " + f . f r a g m e n t : " " ) ; i f ( ! e . d i r e c t o r y ) { r e t u r n ( f . d i r e c t o r y | | ( f . f i l e ? " " : " . / " ) ) + a ; } v a r   d = e . d i r e c t o r y . s p l i t ( " / " ) , c = f . d i r e c t o r y . s p l i t ( " / " ) , g = " " , h ; 
 v a r   b = 0 ; f o r ( h = 0 ; h < d . l e n g t h & & h < c . l e n g t h & & d [ h ] = = c [ h ] ; h + + ) { } f o r ( b = 0 ; b < d . l e n g t h - h - 1 ; b + + ) { g + = " . . / " ; } f o r ( b = h ; b < c . l e n g t h - 1 ; b + + ) { g + = c [ b ] + " / " ; } r e t u r n ( g | | ( f . f i l e ? " " : " . / " ) ) + a ; 
 } , t o A b s o l u t e : f u n c t i o n ( a ) { a = n e w   U R I ( a ) ; i f ( a ) { a . s e t ( " d i r e c t o r y " , " " ) . s e t ( " f i l e " , " " ) ; } r e t u r n   t h i s . t o R e l a t i v e ( a ) ; } , t o R e l a t i v e : f u n c t i o n ( a ) { r e t u r n   t h i s . g e t ( " v a l u e " , n e w   U R I ( a ) ) ; 
 } } ) ; ( f u n c t i o n ( ) { i f ( t h i s . H a s h ) { r e t u r n ; } v a r   a = t h i s . H a s h = n e w   T y p e ( " H a s h " , f u n c t i o n ( b ) { i f ( t y p e O f ( b ) = = " h a s h " ) { b = O b j e c t . c l o n e ( b . g e t C l e a n ( ) ) ; } f o r ( v a r   c   i n   b ) { t h i s [ c ] = b [ c ] ; 
 } r e t u r n   t h i s ; } ) ; t h i s . $ H = f u n c t i o n ( b ) { r e t u r n   n e w   a ( b ) ; } ; a . i m p l e m e n t ( { f o r E a c h : f u n c t i o n ( b , c ) { O b j e c t . f o r E a c h ( t h i s , b , c ) ; } , g e t C l e a n : f u n c t i o n ( ) { v a r   c = { } ; f o r ( v a r   b   i n   t h i s ) { i f ( t h i s . h a s O w n P r o p e r t y ( b ) ) { c [ b ] = t h i s [ b ] ; 
 } } r e t u r n   c ; } , g e t L e n g t h : f u n c t i o n ( ) { v a r   c = 0 ; f o r ( v a r   b   i n   t h i s ) { i f ( t h i s . h a s O w n P r o p e r t y ( b ) ) { c + + ; } } r e t u r n   c ; } } ) ; a . a l i a s ( " e a c h " , " f o r E a c h " ) ; a . i m p l e m e n t ( { h a s : 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 , k e y O f : f u n c t i o n ( b ) { r e t u r n   O b j e c t . k e y O f ( t h i s , b ) ; 
 } , h a s V a l u e : f u n c t i o n ( b ) { r e t u r n   O b j e c t . c o n t a i n s ( t h i s , b ) ; } , e x t e n d : f u n c t i o n ( b ) { a . e a c h ( b | | { } , f u n c t i o n ( d , c ) { a . s e t ( t h i s , c , d ) ; } , t h i s ) ; r e t u r n   t h i s ; } , c o m b i n e : f u n c t i o n ( b ) { a . e a c h ( b | | { } , f u n c t i o n ( d , c ) { a . i n c l u d e ( t h i s , c , d ) ; 
 } , t h i s ) ; r e t u r n   t h i s ; } , e r a s e : f u n c t i o n ( b ) { i f ( t h i s . h a s O w n P r o p e r t y ( b ) ) { d e l e t e   t h i s [ b ] ; } r e t u r n   t h i s ; } , g e t : f u n c t i o n ( b ) { r e t u r n ( t h i s . h a s O w n P r o p e r t y ( b ) ) ? t h i s [ b ] : n u l l ; 
 } , s e t : f u n c t i o n ( b , c ) { i f ( ! t h i s [ b ] | | t h i s . h a s O w n P r o p e r t y ( b ) ) { t h i s [ b ] = c ; } r e t u r n   t h i s ; } , e m p t y : f u n c t i o n ( ) { a . e a c h ( t h i s , f u n c t i o n ( c , b ) { d e l e t e   t h i s [ b ] ; } , t h i s ) ; r e t u r n   t h i s ; 
 } , i n c l u d e : f u n c t i o n ( b , c ) { i f ( t h i s [ b ] = = u n d e f i n e d ) { t h i s [ b ] = c ; } r e t u r n   t h i s ; } , m a p : f u n c t i o n ( b , c ) { r e t u r n   n e w   a ( O b j e c t . m a p ( t h i s , b , c ) ) ; } , f i l t e r : f u n c t i o n ( b , c ) { r e t u r n   n e w   a ( O b j e c t . f i l t e r ( t h i s , b , c ) ) ; 
 } , e v e r y : f u n c t i o n ( b , c ) { r e t u r n   O b j e c t . e v e r y ( t h i s , b , c ) ; } , s o m e : f u n c t i o n ( b , c ) { r e t u r n   O b j e c t . s o m e ( t h i s , b , c ) ; } , g e t K e y s : f u n c t i o n ( ) { r e t u r n   O b j e c t . k e y s ( t h i s ) ; } , g e t V a l u e s : f u n c t i o n ( ) { r e t u r n   O b j e c t . v a l u e s ( t h i s ) ; 
 } , t o Q u e r y S t r i n g : f u n c t i o n ( b ) { r e t u r n   O b j e c t . t o Q u e r y S t r i n g ( t h i s , b ) ; } } ) ; a . a l i a s ( { i n d e x O f : " k e y O f " , c o n t a i n s : " h a s V a l u e " } ) ; } ) . c a l l ( t h i s ) ; H a s h . i m p l e m e n t ( { g e t F r o m P a t h : f u n c t i o n ( a ) { r e t u r n   O b j e c t . g e t F r o m P a t h ( t h i s , a ) ; 
 } , c l e a n V a l u e s : f u n c t i o n ( a ) { r e t u r n   n e w   H a s h ( O b j e c t . c l e a n V a l u e s ( t h i s , a ) ) ; } , r u n : f u n c t i o n ( ) { O b j e c t . r u n ( a r g u m e n t s ) ; } } ) ; E l e m e n t . i m p l e m e n t ( { t i d y : f u n c t i o n ( ) { t h i s . s e t ( " v a l u e " , t h i s . g e t ( " v a l u e " ) . t i d y ( ) ) ; 
 } , g e t T e x t I n R a n g e : f u n c t i o n ( b , a ) { r e t u r n   t h i s . g e t ( " v a l u e " ) . s u b s t r i n g ( b , a ) ; } , g e t S e l e c t e d T e x t : f u n c t i o n ( ) { i f ( t h i s . s e t S e l e c t i o n R a n g e ) { r e t u r n   t h i s . g e t T e x t I n R a n g e ( t h i s . g e t S e l e c t i o n S t a r t ( ) , t h i s . g e t S e l e c t i o n E n d ( ) ) ; 
 } r e t u r n   d o c u m e n t . s e l e c t i o n . c r e a t e R a n g e ( ) . t e x t ; } , g e t S e l e c t e d R a n g e : f u n c t i o n ( ) { i f ( t h i s . s e l e c t i o n S t a r t ! = n u l l ) { r e t u r n { s t a r t : t h i s . s e l e c t i o n S t a r t , e n d : t h i s . s e l e c t i o n E n d } ; 
 } v a r   e = { s t a r t : 0 , e n d : 0 } ; v a r   a = t h i s . g e t D o c u m e n t ( ) . s e l e c t i o n . c r e a t e R a n g e ( ) ; i f ( ! a | | a . p a r e n t E l e m e n t ( ) ! = t h i s ) { r e t u r n   e ; } v a r   c = a . d u p l i c a t e ( ) ; i f ( t h i s . t y p e = = " t e x t " ) { e . s t a r t = 0 - c . m o v e S t a r t ( " c h a r a c t e r " , - 1 0 0 0 0 0 ) ; 
 e . e n d = e . s t a r t + a . t e x t . l e n g t h ; } e l s e { v a r   b = t h i s . g e t ( " v a l u e " ) ; v a r   d = b . l e n g t h ; c . m o v e T o E l e m e n t T e x t ( t h i s ) ; c . s e t E n d P o i n t ( " S t a r t T o E n d " , a ) ; i f ( c . t e x t . l e n g t h ) { d - = b . m a t c h ( / [ \ n \ r ] * $ / ) [ 0 ] . l e n g t h ; 
 } e . e n d = d - c . t e x t . l e n g t h ; c . s e t E n d P o i n t ( " S t a r t T o S t a r t " , a ) ; e . s t a r t = d - c . t e x t . l e n g t h ; } r e t u r n   e ; } , g e t S e l e c t i o n S t a r t : f u n c t i o n ( ) { r e t u r n   t h i s . g e t S e l e c t e d R a n g e ( ) . s t a r t ; 
 } , g e t S e l e c t i o n E n d : f u n c t i o n ( ) { r e t u r n   t h i s . g e t S e l e c t e d R a n g e ( ) . e n d ; } , s e t C a r e t P o s i t i o n : f u n c t i o n ( a ) { i f ( a = = " e n d " ) { a = t h i s . g e t ( " v a l u e " ) . l e n g t h ; } t h i s . s e l e c t R a n g e ( a , a ) ; 
 r e t u r n   t h i s ; } , g e t C a r e t P o s i t i o n : f u n c t i o n ( ) { r e t u r n   t h i s . g e t S e l e c t e d R a n g e ( ) . s t a r t ; } , s e l e c t R a n g e : f u n c t i o n ( e , a ) { i f ( t h i s . s e t S e l e c t i o n R a n g e ) { t h i s . f o c u s ( ) ; t h i s . s e t S e l e c t i o n R a n g e ( e , a ) ; 
 } e l s e { v a r   c = t h i s . g e t ( " v a l u e " ) ; v a r   d = c . s u b s t r ( e , a - e ) . r e p l a c e ( / \ r / g , " " ) . l e n g t h ; e = c . s u b s t r ( 0 , e ) . r e p l a c e ( / \ r / g , " " ) . l e n g t h ; v a r   b = t h i s . c r e a t e T e x t R a n g e ( ) ; b . c o l l a p s e ( t r u e ) ; 
 b . m o v e E n d ( " c h a r a c t e r " , e + d ) ; b . m o v e S t a r t ( " c h a r a c t e r " , e ) ; b . s e l e c t ( ) ; } r e t u r n   t h i s ; } , i n s e r t A t C u r s o r : f u n c t i o n ( b , a ) { v a r   d = t h i s . g e t S e l e c t e d R a n g e ( ) ; v a r   c = t h i s . g e t ( " v a l u e " ) ; 
 t h i s . s e t ( " v a l u e " , c . s u b s t r i n g ( 0 , d . s t a r t ) + b + c . s u b s t r i n g ( d . e n d , c . l e n g t h ) ) ; i f ( a ! = = f a l s e ) { t h i s . s e l e c t R a n g e ( d . s t a r t , d . s t a r t + b . l e n g t h ) ; } e l s e { t h i s . s e t C a r e t P o s i t i o n ( d . s t a r t + b . l e n g t h ) ; 
 } r e t u r n   t h i s ; } , i n s e r t A r o u n d C u r s o r : f u n c t i o n ( b , a ) { b = O b j e c t . a p p e n d ( { b e f o r e : " " , d e f a u l t M i d d l e : " " , a f t e r : " " } , b ) ; v a r   c = t h i s . g e t S e l e c t e d T e x t ( ) | | b . d e f a u l t M i d d l e ; 
 v a r   g = t h i s . g e t S e l e c t e d R a n g e ( ) ; v a r   f = t h i s . g e t ( " v a l u e " ) ; i f ( g . s t a r t = = g . e n d ) { t h i s . s e t ( " v a l u e " , f . s u b s t r i n g ( 0 , g . s t a r t ) + b . b e f o r e + c + b . a f t e r + f . s u b s t r i n g ( g . e n d , f . l e n g t h ) ) ; 
 t h i s . s e l e c t R a n g e ( g . s t a r t + b . b e f o r e . l e n g t h , g . e n d + b . b e f o r e . l e n g t h + c . l e n g t h ) ; } e l s e { v a r   d = f . s u b s t r i n g ( g . s t a r t , g . e n d ) ; t h i s . s e t ( " v a l u e " , f . s u b s t r i n g ( 0 , g . s t a r t ) + b . b e f o r e + d + b . a f t e r + f . s u b s t r i n g ( g . e n d , f . l e n g t h ) ) ; 
 v a r   e = g . s t a r t + b . b e f o r e . l e n g t h ; i f ( a ! = = f a l s e ) { t h i s . s e l e c t R a n g e ( e , e + d . l e n g t h ) ; } e l s e { t h i s . s e t C a r e t P o s i t i o n ( e + f . l e n g t h ) ; } } r e t u r n   t h i s ; } } ) ; E l e m e n t s . f r o m = f u n c t i o n ( e , d ) { i f ( d | | d = = n u l l ) { e = e . s t r i p S c r i p t s ( ) ; 
 } v a r   b , c = e . m a t c h ( / ^ \ s * < ( t [ d h r ] | t b o d y | t f o o t | t h e a d ) / i ) ; i f ( c ) { b = n e w   E l e m e n t ( " t a b l e " ) ; v a r   a = c [ 1 ] . t o L o w e r C a s e ( ) ; i f ( [ " t d " , " t h " , " t r " ] . c o n t a i n s ( a ) ) { b = n e w   E l e m e n t ( " t b o d y " ) . i n j e c t ( b ) ; 
 i f ( a ! = " t r " ) { b = n e w   E l e m e n t ( " t r " ) . i n j e c t ( b ) ; } } } r e t u r n ( b | | n e w   E l e m e n t ( " d i v " ) ) . s e t ( " h t m l " , e ) . g e t C h i l d r e n ( ) ; } ; ( f u n c t i o n ( ) { v a r   d = { } , c = [ " o n c e " , " t h r o t t l e " , " p a u s e " ] , b = c . l e n g t h ; 
 w h i l e ( b - - ) { d [ c [ b ] ] = E v e n t s . l o o k u p P s e u d o ( c [ b ] ) ; } E v e n t . d e f i n e P s e u d o = f u n c t i o n ( e , f ) { d [ e ] = T y p e . i s F u n c t i o n ( f ) ? { l i s t e n e r : f } : f ; r e t u r n   t h i s ; } ; v a r   a = E l e m e n t . p r o t o t y p e ; 
 [ E l e m e n t , W i n d o w , D o c u m e n t ] . i n v o k e ( " i m p l e m e n t " , E v e n t s . P s e u d o s ( d , a . a d d E v e n t , a . r e m o v e E v e n t ) ) ; } ) . c a l l ( t h i s ) ; ( f u n c t i o n ( ) { v a r   a = " $ m o o : k e y s - p r e s s e d " , b = " $ m o o : k e y s - k e y u p " ; 
 E v e n t . d e f i n e P s e u d o ( " k e y s " , f u n c t i o n ( d , e , c ) { v a r   g = c [ 0 ] , f = [ ] , h = t h i s . r e t r i e v e ( a , [ ] ) ; f . a p p e n d ( d . v a l u e . r e p l a c e ( " + + " , f u n c t i o n ( ) { f . p u s h ( " + " ) ; r e t u r n " " ; } ) . s p l i t ( " + " ) ) ; 
 h . i n c l u d e ( g . k e y ) ; i f ( f . e v e r y ( f u n c t i o n ( j ) { r e t u r n   h . c o n t a i n s ( j ) ; } ) ) { e . a p p l y ( t h i s , c ) ; } t h i s . s t o r e ( a , h ) ; i f ( ! t h i s . r e t r i e v e ( b ) ) { v a r   i = f u n c t i o n ( j ) { ( f u n c t i o n ( ) { h = t h i s . r e t r i e v e ( a , [ ] ) . e r a s e ( j . k e y ) ; 
 t h i s . s t o r e ( a , h ) ; } ) . d e l a y ( 0 , t h i s ) ; } ; t h i s . s t o r e ( b , i ) . a d d E v e n t ( " k e y u p " , i ) ; } } ) ; O b j e c t . a p p e n d ( E v e n t . K e y s , { s h i f t : 1 6 , c o n t r o l : 1 7 , a l t : 1 8 , c a p s l o c k : 2 0 , p a g e u p : 3 3 , p a g e d o w n : 3 4 , e n d : 3 5 , h o m e : 3 6 , n u m l o c k : 1 4 4 , s c r o l l l o c k : 1 4 5 , " ; " : 1 8 6 , " = " : 1 8 7 , " , " : 1 8 8 , " - " : B r o w s e r . f i r e f o x ? 1 0 9 : 1 8 9 , " . " : 1 9 0 , " / " : 1 9 1 , " ` " : 1 9 2 , " [ " : 2 1 9 , " \ \ " : 2 2 0 , " ] " : 2 2 1 , " ' " : 2 2 2 , " + " : 1 0 7 } ) ; 
 } ) . c a l l ( t h i s ) ; ( f u n c t i o n ( ) { v a r   b = ! ( w i n d o w . a t t a c h E v e n t & & ! w i n d o w . a d d E v e n t L i s t e n e r ) , e = E l e m e n t . N a t i v e E v e n t s ; e . f o c u s i n = 2 ; e . f o c u s o u t = 2 ; v a r   c = f u n c t i o n ( g , j , h ) { v a r   i = E l e m e n t . E v e n t s [ g . e v e n t ] , k ; 
 i f ( i ) { k = i . c o n d i t i o n ; } r e t u r n   S l i c k . m a t c h ( j , g . v a l u e ) & & ( ! k | | k . c a l l ( j , h ) ) ; } ; v a r   f = f u n c t i o n ( g ) { v a r   h = " $ d e l e g a t i o n : " ; r e t u r n { b a s e : " f o c u s i n " , o n R e m o v e : f u n c t i o n ( i ) { i . r e t r i e v e ( h + " f o r m s " , [ ] ) . e a c h ( f u n c t i o n ( j ) { j . r e t r i e v e ( h + " l i s t e n e r s " , [ ] ) . e a c h ( f u n c t i o n ( k ) { j . r e m o v e E v e n t ( g , k ) ; 
 } ) ; j . e l i m i n a t e ( h + g + " l i s t e n e r s " ) . e l i m i n a t e ( h + g + " o r i g i n a l F n " ) ; } ) ; } , l i s t e n e r : f u n c t i o n ( q , r , p , s , t ) { v a r   j = p [ 0 ] , i = t h i s . r e t r i e v e ( h + " f o r m s " , [ ] ) , o = j . t a r g e t , l = ( o . g e t ( " t a g " ) = = " f o r m " ) ? o : j . t a r g e t . g e t P a r e n t ( " f o r m " ) , n = l . r e t r i e v e ( h + " o r i g i n a l F n " , [ ] ) , k = l . r e t r i e v e ( h + " l i s t e n e r s " , [ ] ) ; 
 i . i n c l u d e ( l ) ; t h i s . s t o r e ( h + " f o r m s " , i ) ; i f ( ! n . c o n t a i n s ( r ) ) { v a r   m = f u n c t i o n ( u ) { i f ( c ( q , t h i s , u ) ) { r . c a l l ( t h i s , u ) ; } } ; l . a d d E v e n t ( g , m ) ; n . p u s h ( r ) ; k . p u s h ( m ) ; l . s t o r e ( h + g + " o r i g i n a l F n " , n ) . s t o r e ( h + g + " l i s t e n e r s " , k ) ; 
 } } } ; } ; v a r   a = f u n c t i o n ( g ) { r e t u r n { b a s e : " f o c u s i n " , l i s t e n e r : f u n c t i o n ( j , k , h ) { v a r   i = { b l u r : f u n c t i o n ( ) { t h i s . r e m o v e E v e n t s ( i ) ; } } ; i [ g ] = f u n c t i o n ( l ) { i f ( c ( j , t h i s , l ) ) { k . c a l l ( t h i s , l ) ; 
 } } ; h [ 0 ] . t a r g e t . a d d E v e n t s ( i ) ; } } ; } ; v a r   d = { m o u s e e n t e r : { b a s e : " m o u s e o v e r " } , m o u s e l e a v e : { b a s e : " m o u s e o u t " } , f o c u s : { b a s e : " f o c u s " + ( b ? " " : " i n " ) , a r g s : [ t r u e ] } , b l u r : { b a s e : b ? " b l u r " : " f o c u s o u t " , a r g s : [ t r u e ] } } ; 
 i f ( ! b ) { O b j e c t . a p p e n d ( d , { s u b m i t : f ( " s u b m i t " ) , r e s e t : f ( " r e s e t " ) , c h a n g e : a ( " c h a n g e " ) , s e l e c t : a ( " s e l e c t " ) } ) ; } E v e n t . d e f i n e P s e u d o ( " r e l a y " , { l i s t e n e r : f u n c t i o n ( j , k , i , g , h ) { v a r   l = i [ 0 ] ; 
 f o r ( v a r   n = l . t a r g e t ; n & & n ! = t h i s ; n = n . p a r e n t N o d e ) { v a r   m = d o c u m e n t . i d ( n ) ; i f ( c ( j , m , l ) ) { i f ( m ) { k . c a l l ( m , l , m ) ; } r e t u r n ; } } } , o p t i o n s : d } ) ; } ) . c a l l ( t h i s ) ; ( f u n c t i o n ( ) { v a r   b = f u n c t i o n ( e , d ) { v a r   f = [ ] ; 
 O b j e c t . e a c h ( d , f u n c t i o n ( g ) { O b j e c t . e a c h ( g , f u n c t i o n ( h ) { e . e a c h ( f u n c t i o n ( i ) { f . p u s h ( i + " - " + h + ( i = = " b o r d e r " ? " - w i d t h " : " " ) ) ; } ) ; } ) ; } ) ; r e t u r n   f ; } ; v a r   c = f u n c t i o n ( f , e ) { v a r   d = 0 ; 
 O b j e c t . e a c h ( e , f u n c t i o n ( h , g ) { i f ( g . t e s t ( f ) ) { d = d + h . t o I n t ( ) ; } } ) ; r e t u r n   d ; } ; v a r   a = f u n c t i o n ( d ) { r e t u r n   ! ! ( ! d | | d . o f f s e t H e i g h t | | d . o f f s e t W i d t h ) ; } ; E l e m e n t . i m p l e m e n t ( { m e a s u r e : f u n c t i o n ( h ) { i f ( a ( t h i s ) ) { r e t u r n   h . c a l l ( t h i s ) ; 
 } v a r   g = t h i s . g e t P a r e n t ( ) , e = [ ] ; w h i l e ( ! a ( g ) & & g ! = d o c u m e n t . b o d y ) { e . p u s h ( g . e x p o s e ( ) ) ; g = g . g e t P a r e n t ( ) ; } v a r   f = t h i s . e x p o s e ( ) , d = h . c a l l ( t h i s ) ; f ( ) ; e . e a c h ( f u n c t i o n ( i ) { i ( ) ; 
 } ) ; r e t u r n   d ; } , e x p o s e : f u n c t i o n ( ) { i f ( t h i s . g e t S t y l e ( " d i s p l a y " ) ! = " n o n e " ) { r e t u r n   f u n c t i o n ( ) { } ; } v a r   d = t h i s . s t y l e . c s s T e x t ; t h i s . s e t S t y l e s ( { d i s p l a y : " b l o c k " , p o s i t i o n : " a b s o l u t e " , v i s i b i l i t y : " h i d d e n " } ) ; 
 r e t u r n   f u n c t i o n ( ) { t h i s . s t y l e . c s s T e x t = d ; } . b i n d ( t h i s ) ; } , g e t D i m e n s i o n s : f u n c t i o n ( d ) { d = O b j e c t . m e r g e ( { c o m p u t e S i z e : f a l s e } , d ) ; v a r   i = { x : 0 , y : 0 } ; v a r   h = f u n c t i o n ( j , e ) { r e t u r n ( e . c o m p u t e S i z e ) ? j . g e t C o m p u t e d S i z e ( e ) : j . g e t S i z e ( ) ; 
 } ; v a r   f = t h i s . g e t P a r e n t ( " b o d y " ) ; i f ( f & & t h i s . g e t S t y l e ( " d i s p l a y " ) = = " n o n e " ) { i = t h i s . m e a s u r e ( f u n c t i o n ( ) { r e t u r n   h ( t h i s , d ) ; } ) ; } e l s e { i f ( f ) { t r y { i = h ( t h i s , d ) ; } c a t c h ( g ) { } } } r e t u r n   O b j e c t . a p p e n d ( i , ( i . x | | i . x = = = 0 ) ? { w i d t h : i . x , h e i g h t : i . y } : { x : i . w i d t h , y : i . h e i g h t } ) ; 
 } , g e t C o m p u t e d S i z e : f u n c t i o n ( d ) { i f ( d & & d . p l a i n s ) { d . p l a n e s = d . p l a i n s ; } d = O b j e c t . m e r g e ( { s t y l e s : [ " p a d d i n g " , " b o r d e r " ] , p l a n e s : { h e i g h t : [ " t o p " , " b o t t o m " ] , w i d t h : [ " l e f t " , " r i g h t " ] } , m o d e : " b o t h " } , d ) ; 
 v a r   g = { } , e = { w i d t h : 0 , h e i g h t : 0 } , f ; i f ( d . m o d e = = " v e r t i c a l " ) { d e l e t e   e . w i d t h ; d e l e t e   d . p l a n e s . w i d t h ; } e l s e { i f ( d . m o d e = = " h o r i z o n t a l " ) { d e l e t e   e . h e i g h t ; d e l e t e   d . p l a n e s . h e i g h t ; 
 } } b ( d . s t y l e s , d . p l a n e s ) . e a c h ( f u n c t i o n ( h ) { g [ h ] = t h i s . g e t S t y l e ( h ) . t o I n t ( ) ; } , t h i s ) ; O b j e c t . e a c h ( d . p l a n e s , f u n c t i o n ( i , h ) { v a r   k = h . c a p i t a l i z e ( ) , j = t h i s . g e t S t y l e ( h ) ; 
 i f ( j = = " a u t o " & & ! f ) { f = t h i s . g e t D i m e n s i o n s ( ) ; } j = g [ h ] = ( j = = " a u t o " ) ? f [ h ] : j . t o I n t ( ) ; e [ " t o t a l " + k ] = j ; i . e a c h ( f u n c t i o n ( m ) { v a r   l = c ( m , g ) ; e [ " c o m p u t e d " + m . c a p i t a l i z e ( ) ] = l ; 
 e [ " t o t a l " + k ] + = l ; } ) ; } , t h i s ) ; r e t u r n   O b j e c t . a p p e n d ( e , g ) ; } } ) ; } ) . c a l l ( t h i s ) ; ( f u n c t i o n ( ) { v a r   a = f a l s e , b = f a l s e ; v a r   c = f u n c t i o n ( ) { v a r   d = n e w   E l e m e n t ( " d i v " ) . s e t S t y l e s ( { p o s i t i o n : " f i x e d " , t o p : 0 , r i g h t : 0 } ) . i n j e c t ( d o c u m e n t . b o d y ) ; 
 a = ( d . o f f s e t T o p = = = 0 ) ; d . d i s p o s e ( ) ; b = t r u e ; } ; E l e m e n t . i m p l e m e n t ( { p i n : f u n c t i o n ( h , f ) { i f ( ! b ) { c ( ) ; } i f ( t h i s . g e t S t y l e ( " d i s p l a y " ) = = " n o n e " ) { r e t u r n   t h i s ; } v a r   j , k = w i n d o w . g e t S c r o l l ( ) , l , e ; 
 i f ( h ! = = f a l s e ) { j = t h i s . g e t P o s i t i o n ( a ? d o c u m e n t . b o d y : t h i s . g e t O f f s e t P a r e n t ( ) ) ; i f ( ! t h i s . r e t r i e v e ( " p i n : _ p i n n e d " ) ) { v a r   g = { t o p : j . y - k . y , l e f t : j . x - k . x } ; i f ( a & & ! f ) { t h i s . s e t S t y l e ( " p o s i t i o n " , " f i x e d " ) . s e t S t y l e s ( g ) ; 
 } e l s e { l = t h i s . g e t O f f s e t P a r e n t ( ) ; v a r   i = t h i s . g e t P o s i t i o n ( l ) , m = t h i s . g e t S t y l e s ( " l e f t " , " t o p " ) ; i f ( l & & m . l e f t = = " a u t o " | | m . t o p = = " a u t o " ) { t h i s . s e t P o s i t i o n ( i ) ; } i f ( t h i s . g e t S t y l e ( " p o s i t i o n " ) = = " s t a t i c " ) { t h i s . s e t S t y l e ( " p o s i t i o n " , " a b s o l u t e " ) ; 
 } i = { x : m . l e f t . t o I n t ( ) - k . x , y : m . t o p . t o I n t ( ) - k . y } ; e = f u n c t i o n ( ) { i f ( ! t h i s . r e t r i e v e ( " p i n : _ p i n n e d " ) ) { r e t u r n ; } v a r   n = w i n d o w . g e t S c r o l l ( ) ; t h i s . s e t S t y l e s ( { l e f t : i . x + n . x , t o p : i . y + n . y } ) ; 
 } . b i n d ( t h i s ) ; t h i s . s t o r e ( " p i n : _ s c r o l l F i x e r " , e ) ; w i n d o w . a d d E v e n t ( " s c r o l l " , e ) ; } t h i s . s t o r e ( " p i n : _ p i n n e d " , t r u e ) ; } } e l s e { i f ( ! t h i s . r e t r i e v e ( " p i n : _ p i n n e d " ) ) { r e t u r n   t h i s ; 
 } l = t h i s . g e t P a r e n t ( ) ; v a r   d = ( l . g e t C o m p u t e d S t y l e ( " p o s i t i o n " ) ! = " s t a t i c " ? l : l . g e t O f f s e t P a r e n t ( ) ) ; j = t h i s . g e t P o s i t i o n ( d ) ; t h i s . s t o r e ( " p i n : _ p i n n e d " , f a l s e ) ; e = t h i s . r e t r i e v e ( " p i n : _ s c r o l l F i x e r " ) ; 
 i f ( ! e ) { t h i s . s e t S t y l e s ( { p o s i t i o n : " a b s o l u t e " , t o p : j . y + k . y , l e f t : j . x + k . x } ) ; } e l s e { t h i s . s t o r e ( " p i n : _ s c r o l l F i x e r " , n u l l ) ; w i n d o w . r e m o v e E v e n t ( " s c r o l l " , e ) ; } t h i s . r e m o v e C l a s s ( " i s P i n n e d " ) ; 
 } r e t u r n   t h i s ; } , u n p i n : f u n c t i o n ( ) { r e t u r n   t h i s . p i n ( f a l s e ) ; } , t o g g l e P i n : f u n c t i o n ( ) { r e t u r n   t h i s . p i n ( ! t h i s . r e t r i e v e ( " p i n : _ p i n n e d " ) ) ; } } ) ; E l e m e n t . a l i a s ( " t o g g l e p i n " , " t o g g l e P i n " ) ; 
 } ) . c a l l ( t h i s ) ; ( f u n c t i o n ( ) { v a r   a = E l e m e n t . p r o t o t y p e . p o s i t i o n ; E l e m e n t . i m p l e m e n t ( { p o s i t i o n : f u n c t i o n ( g ) { i f ( g & & ( g . x ! = n u l l | | g . y ! = n u l l ) ) { r e t u r n   a ? a . a p p l y ( t h i s , a r g u m e n t s ) : t h i s ; 
 } O b j e c t . e a c h ( g | | { } , f u n c t i o n ( u , t ) { i f ( u = = n u l l ) { d e l e t e   g [ t ] ; } } ) ; g = O b j e c t . m e r g e ( { r e l a t i v e T o : d o c u m e n t . b o d y , p o s i t i o n : { x : " c e n t e r " , y : " c e n t e r " } , o f f s e t : { x : 0 , y : 0 } } , g ) ; 
 v a r   r = { x : 0 , y : 0 } , e = f a l s e ; v a r   c = t h i s . m e a s u r e ( f u n c t i o n ( ) { r e t u r n   d o c u m e n t . i d ( t h i s . g e t O f f s e t P a r e n t ( ) ) ; } ) ; i f ( c & & c ! = t h i s . g e t D o c u m e n t ( ) . b o d y ) { r = c . m e a s u r e ( f u n c t i o n ( ) { r e t u r n   t h i s . g e t P o s i t i o n ( ) ; 
 } ) ; e = c ! = d o c u m e n t . i d ( g . r e l a t i v e T o ) ; g . o f f s e t . x = g . o f f s e t . x - r . x ; g . o f f s e t . y = g . o f f s e t . y - r . y ; } v a r   s = f u n c t i o n ( t ) { i f ( t y p e O f ( t ) ! = " s t r i n g " ) { r e t u r n   t ; } t = t . t o L o w e r C a s e ( ) ; 
 v a r   u = { } ; i f ( t . t e s t ( " l e f t " ) ) { u . x = " l e f t " ; } e l s e { i f ( t . t e s t ( " r i g h t " ) ) { u . x = " r i g h t " ; } e l s e { u . x = " c e n t e r " ; } } i f ( t . t e s t ( " u p p e r " ) | | t . t e s t ( " t o p " ) ) { u . y = " t o p " ; } e l s e { i f ( t . t e s t ( " b o t t o m " ) ) { u . y = " b o t t o m " ; 
 } e l s e { u . y = " c e n t e r " ; } } r e t u r n   u ; } ; g . e d g e = s ( g . e d g e ) ; g . p o s i t i o n = s ( g . p o s i t i o n ) ; i f ( ! g . e d g e ) { i f ( g . p o s i t i o n . x = = " c e n t e r " & & g . p o s i t i o n . y = = " c e n t e r " ) { g . e d g e = { x : " c e n t e r " , y : " c e n t e r " } ; 
 } e l s e { g . e d g e = { x : " l e f t " , y : " t o p " } ; } } t h i s . s e t S t y l e ( " p o s i t i o n " , " a b s o l u t e " ) ; v a r   f = d o c u m e n t . i d ( g . r e l a t i v e T o ) | | d o c u m e n t . b o d y , d = f = = d o c u m e n t . b o d y ? w i n d o w . g e t S c r o l l ( ) : f . g e t P o s i t i o n ( ) , l = d . y , h = d . x ; 
 v a r   n = t h i s . g e t D i m e n s i o n s ( { c o m p u t e S i z e : t r u e , s t y l e s : [ " p a d d i n g " , " b o r d e r " , " m a r g i n " ] } ) ; v a r   j = { } , o = g . o f f s e t . y , q = g . o f f s e t . x , k = w i n d o w . g e t S i z e ( ) ; s w i t c h ( g . p o s i t i o n . x ) { c a s e " l e f t " : j . x = h + q ; 
 b r e a k ; c a s e " r i g h t " : j . x = h + q + f . o f f s e t W i d t h ; b r e a k ; d e f a u l t : j . x = h + ( ( f = = d o c u m e n t . b o d y ? k . x : f . o f f s e t W i d t h ) / 2 ) + q ; b r e a k ; } s w i t c h ( g . p o s i t i o n . y ) { c a s e " t o p " : j . y = l + o ; b r e a k ; 
 c a s e " b o t t o m " : j . y = l + o + f . o f f s e t H e i g h t ; b r e a k ; d e f a u l t : j . y = l + ( ( f = = d o c u m e n t . b o d y ? k . y : f . o f f s e t H e i g h t ) / 2 ) + o ; b r e a k ; } i f ( g . e d g e ) { v a r   b = { } ; s w i t c h ( g . e d g e . x ) { c a s e " l e f t " : b . x = 0 ; 
 b r e a k ; c a s e " r i g h t " : b . x = - n . x - n . c o m p u t e d R i g h t - n . c o m p u t e d L e f t ; b r e a k ; d e f a u l t : b . x = - ( n . t o t a l W i d t h / 2 ) ; b r e a k ; } s w i t c h ( g . e d g e . y ) { c a s e " t o p " : b . y = 0 ; b r e a k ; c a s e " b o t t o m " : b . y = - n . y - n . c o m p u t e d T o p - n . c o m p u t e d B o t t o m ; 
 b r e a k ; d e f a u l t : b . y = - ( n . t o t a l H e i g h t / 2 ) ; b r e a k ; } j . x + = b . x ; j . y + = b . y ; } j = { l e f t : ( ( j . x > = 0 | | e | | g . a l l o w N e g a t i v e ) ? j . x : 0 ) . t o I n t ( ) , t o p : ( ( j . y > = 0 | | e | | g . a l l o w N e g a t i v e ) ? j . y : 0 ) . t o I n t ( ) } ; 
 v a r   i = { l e f t : " x " , t o p : " y " } ; [ " m i n i m u m " , " m a x i m u m " ] . e a c h ( f u n c t i o n ( t ) { [ " l e f t " , " t o p " ] . e a c h ( f u n c t i o n ( u ) { v a r   v = g [ t ] ? g [ t ] [ i [ u ] ] : n u l l ; i f ( v ! = n u l l & & ( ( t = = " m i n i m u m " ) ? j [ u ] < v : j [ u ] > v ) ) { j [ u ] = v ; 
 } } ) ; } ) ; i f ( f . g e t S t y l e ( " p o s i t i o n " ) = = " f i x e d " | | g . r e l F i x e d P o s i t i o n ) { v a r   m = w i n d o w . g e t S c r o l l ( ) ; j . t o p + = m . y ; j . l e f t + = m . x ; } i f ( g . i g n o r e S c r o l l ) { v a r   p = f . g e t S c r o l l ( ) ; 
 j . t o p - = p . y ; j . l e f t - = p . x ; } i f ( g . i g n o r e M a r g i n s ) { j . l e f t + = ( g . e d g e . x = = " r i g h t " ? n [ " m a r g i n - r i g h t " ] : g . e d g e . x = = " c e n t e r " ? - n [ " m a r g i n - l e f t " ] + ( ( n [ " m a r g i n - r i g h t " ] + n [ " m a r g i n - l e f t " ] ) / 2 ) : - n [ " m a r g i n - l e f t " ] ) ; 
 j . t o p + = ( g . e d g e . y = = " b o t t o m " ? n [ " m a r g i n - b o t t o m " ] : g . e d g e . y = = " c e n t e r " ? - n [ " m a r g i n - t o p " ] + ( ( n [ " m a r g i n - b o t t o m " ] + n [ " m a r g i n - t o p " ] ) / 2 ) : - n [ " m a r g i n - t o p " ] ) ; } j . l e f t = M a t h . c e i l ( j . l e f t ) ; 
 j . t o p = M a t h . c e i l ( j . t o p ) ; i f ( g . r e t u r n P o s ) { r e t u r n   j ; } e l s e { t h i s . s e t S t y l e s ( j ) ; } r e t u r n   t h i s ; } } ) ; } ) . c a l l ( t h i s ) ; E l e m e n t . i m p l e m e n t ( { i s D i s p l a y e d : f u n c t i o n ( ) { r e t u r n   t h i s . g e t S t y l e ( " d i s p l a y " ) ! = " n o n e " ; 
 } , i s V i s i b l e : f u n c t i o n ( ) { v a r   a = t h i s . o f f s e t W i d t h , b = t h i s . o f f s e t H e i g h t ; r e t u r n ( a = = 0 & & b = = 0 ) ? f a l s e : ( a > 0 & & b > 0 ) ? t r u e : t h i s . s t y l e . d i s p l a y ! = " n o n e " ; } , t o g g l e : f u n c t i o n ( ) { r e t u r n   t h i s [ t h i s . i s D i s p l a y e d ( ) ? " h i d e " : " s h o w " ] ( ) ; 
 } , h i d e : f u n c t i o n ( ) { v a r   b ; t r y { b = t h i s . g e t S t y l e ( " d i s p l a y " ) ; } c a t c h ( a ) { } i f ( b = = " n o n e " ) { r e t u r n   t h i s ; } r e t u r n   t h i s . s t o r e ( " e l e m e n t : _ o r i g i n a l D i s p l a y " , b | | " " ) . s e t S t y l e ( " d i s p l a y " , " n o n e " ) ; 
 } , s h o w : f u n c t i o n ( a ) { i f ( ! a & & t h i s . i s D i s p l a y e d ( ) ) { r e t u r n   t h i s ; } a = a | | t h i s . r e t r i e v e ( " e l e m e n t : _ o r i g i n a l D i s p l a y " ) | | " b l o c k " ; r e t u r n   t h i s . s e t S t y l e ( " d i s p l a y " , ( a = = " n o n e " ) ? " b l o c k " : a ) ; 
 } , s w a p C l a s s : f u n c t i o n ( a , b ) { r e t u r n   t h i s . r e m o v e C l a s s ( a ) . a d d C l a s s ( b ) ; } } ) ; D o c u m e n t . i m p l e m e n t ( { c l e a r S e l e c t i o n : f u n c t i o n ( ) { i f ( w i n d o w . g e t S e l e c t i o n ) { v a r   a = w i n d o w . g e t S e l e c t i o n ( ) ; 
 i f ( a & & a . r e m o v e A l l R a n g e s ) { a . r e m o v e A l l R a n g e s ( ) ; } } e l s e { i f ( d o c u m e n t . s e l e c t i o n & & d o c u m e n t . s e l e c t i o n . e m p t y ) { t r y { d o c u m e n t . s e l e c t i o n . e m p t y ( ) ; } c a t c h ( b ) { } } } } } ) ; F x . E l e m e n t s = n e w   C l a s s ( { E x t e n d s : F x . C S S , i n i t i a l i z e : f u n c t i o n ( b , a ) { t h i s . e l e m e n t s = t h i s . s u b j e c t = $ $ ( b ) ; 
 t h i s . p a r e n t ( a ) ; } , c o m p u t e : f u n c t i o n ( g , h , j ) { v a r   c = { } ; f o r ( v a r   d   i n   g ) { v a r   a = g [ d ] , e = h [ d ] , f = c [ d ] = { } ; f o r ( v a r   b   i n   a ) { f [ b ] = t h i s . p a r e n t ( a [ b ] , e [ b ] , j ) ; } } r e t u r n   c ; 
 } , s e t : f u n c t i o n ( b ) { f o r ( v a r   c   i n   b ) { i f ( ! t h i s . e l e m e n t s [ c ] ) { c o n t i n u e ; } v a r   a = b [ c ] ; f o r ( v a r   d   i n   a ) { t h i s . r e n d e r ( t h i s . e l e m e n t s [ c ] , d , a [ d ] , t h i s . o p t i o n s . u n i t ) ; } } r e t u r n   t h i s ; 
 } , s t a r t : f u n c t i o n ( c ) { i f ( ! t h i s . c h e c k ( c ) ) { r e t u r n   t h i s ; } v a r   h = { } , j = { } ; f o r ( v a r   d   i n   c ) { i f ( ! t h i s . e l e m e n t s [ d ] ) { c o n t i n u e ; } v a r   f = c [ d ] , a = h [ d ] = { } , g = j [ d ] = { } ; f o r ( v a r   b   i n   f ) { v a r   e = t h i s . p r e p a r e ( t h i s . e l e m e n t s [ d ] , b , f [ b ] ) ; 
 a [ b ] = e . f r o m ; g [ b ] = e . t o ; } } r e t u r n   t h i s . p a r e n t ( h , j ) ; } } ) ; F x . A c c o r d i o n = n e w   C l a s s ( { E x t e n d s : F x . E l e m e n t s , o p t i o n s : { f i x e d H e i g h t : f a l s e , f i x e d W i d t h : f a l s e , d i s p l a y : 0 , s h o w : f a l s e , h e i g h t : t r u e , w i d t h : f a l s e , o p a c i t y : t r u e , a l w a y s H i d e : f a l s e , t r i g g e r : " c l i c k " , i n i t i a l D i s p l a y F x : t r u e , r e s e t H e i g h t : t r u e } , i n i t i a l i z e : f u n c t i o n ( ) { v a r   g = f u n c t i o n ( h ) { r e t u r n   h ! = n u l l ; 
 } ; v a r   f = A r r a y . l i n k ( a r g u m e n t s , { c o n t a i n e r : T y p e . i s E l e m e n t , o p t i o n s : T y p e . i s O b j e c t , t o g g l e r s : g , e l e m e n t s : g } ) ; t h i s . p a r e n t ( f . e l e m e n t s , f . o p t i o n s ) ; v a r   b = t h i s . o p t i o n s , e = t h i s . t o g g l e r s = $ $ ( f . t o g g l e r s ) ; 
 t h i s . p r e v i o u s = - 1 ; t h i s . i n t e r n a l C h a i n = n e w   C h a i n ( ) ; i f ( b . a l w a y s H i d e ) { t h i s . o p t i o n s . l i n k = " c h a i n " ; } i f ( b . s h o w | | t h i s . o p t i o n s . s h o w = = = 0 ) { b . d i s p l a y = f a l s e ; t h i s . p r e v i o u s = b . s h o w ; 
 } i f ( b . s t a r t ) { b . d i s p l a y = f a l s e ; b . s h o w = f a l s e ; } v a r   d = t h i s . e f f e c t s = { } ; i f ( b . o p a c i t y ) { d . o p a c i t y = " f u l l O p a c i t y " ; } i f ( b . w i d t h ) { d . w i d t h = b . f i x e d W i d t h ? " f u l l W i d t h " : " o f f s e t W i d t h " ; 
 } i f ( b . h e i g h t ) { d . h e i g h t = b . f i x e d H e i g h t ? " f u l l H e i g h t " : " s c r o l l H e i g h t " ; } f o r ( v a r   c = 0 , a = e . l e n g t h ; c < a ; c + + ) { t h i s . a d d S e c t i o n ( e [ c ] , t h i s . e l e m e n t s [ c ] ) ; } t h i s . e l e m e n t s . e a c h ( f u n c t i o n ( j , h ) { i f ( b . s h o w = = = h ) { t h i s . f i r e E v e n t ( " a c t i v e " , [ e [ h ] , j ] ) ; 
 } e l s e { f o r ( v a r   k   i n   d ) { j . s e t S t y l e ( k , 0 ) ; } } } , t h i s ) ; i f ( b . d i s p l a y | | b . d i s p l a y = = = 0 | | b . i n i t i a l D i s p l a y F x = = = f a l s e ) { t h i s . d i s p l a y ( b . d i s p l a y , b . i n i t i a l D i s p l a y F x ) ; } i f ( b . f i x e d H e i g h t ! = = f a l s e ) { b . r e s e t H e i g h t = f a l s e ; 
 } t h i s . a d d E v e n t ( " c o m p l e t e " , t h i s . i n t e r n a l C h a i n . c a l l C h a i n . b i n d ( t h i s . i n t e r n a l C h a i n ) ) ; } , a d d S e c t i o n : f u n c t i o n ( g , d ) { g = d o c u m e n t . i d ( g ) ; d = d o c u m e n t . i d ( d ) ; t h i s . t o g g l e r s . i n c l u d e ( g ) ; 
 t h i s . e l e m e n t s . i n c l u d e ( d ) ; v a r   f = t h i s . t o g g l e r s , c = t h i s . o p t i o n s , h = f . c o n t a i n s ( g ) , a = f . i n d e x O f ( g ) , b = t h i s . d i s p l a y . p a s s ( a , t h i s ) ; g . s t o r e ( " a c c o r d i o n : d i s p l a y " , b ) . a d d E v e n t ( c . t r i g g e r , b ) ; 
 i f ( c . h e i g h t ) { d . s e t S t y l e s ( { " p a d d i n g - t o p " : 0 , " b o r d e r - t o p " : " n o n e " , " p a d d i n g - b o t t o m " : 0 , " b o r d e r - b o t t o m " : " n o n e " } ) ; } i f ( c . w i d t h ) { d . s e t S t y l e s ( { " p a d d i n g - l e f t " : 0 , " b o r d e r - l e f t " : " n o n e " , " p a d d i n g - r i g h t " : 0 , " b o r d e r - r i g h t " : " n o n e " } ) ; 
 } d . f u l l O p a c i t y = 1 ; i f ( c . f i x e d W i d t h ) { d . f u l l W i d t h = c . f i x e d W i d t h ; } i f ( c . f i x e d H e i g h t ) { d . f u l l H e i g h t = c . f i x e d H e i g h t ; } d . s e t S t y l e ( " o v e r f l o w " , " h i d d e n " ) ; i f ( ! h ) { f o r ( v a r   e   i n   t h i s . e f f e c t s ) { d . s e t S t y l e ( e , 0 ) ; 
 } } r e t u r n   t h i s ; } , r e m o v e S e c t i o n : f u n c t i o n ( f , b ) { v a r   e = t h i s . t o g g l e r s , a = e . i n d e x O f ( f ) , c = t h i s . e l e m e n t s [ a ] ; v a r   d = f u n c t i o n ( ) { e . e r a s e ( f ) ; t h i s . e l e m e n t s . e r a s e ( c ) ; t h i s . d e t a c h ( f ) ; 
 } . b i n d ( t h i s ) ; i f ( t h i s . n o w = = a | | b ! = n u l l ) { t h i s . d i s p l a y ( b ! = n u l l ? b : ( a - 1 > = 0 ? a - 1 : 0 ) ) . c h a i n ( d ) ; } e l s e { d ( ) ; } r e t u r n   t h i s ; } , d e t a c h : f u n c t i o n ( b ) { v a r   a = f u n c t i o n ( c ) { c . r e m o v e E v e n t ( t h i s . o p t i o n s . t r i g g e r , c . r e t r i e v e ( " a c c o r d i o n : d i s p l a y " ) ) ; 
 } . b i n d ( t h i s ) ; i f ( ! b ) { t h i s . t o g g l e r s . e a c h ( a ) ; } e l s e { a ( b ) ; } r e t u r n   t h i s ; } , d i s p l a y : f u n c t i o n ( b , c ) { i f ( ! t h i s . c h e c k ( b , c ) ) { r e t u r n   t h i s ; } v a r   h = { } , g = t h i s . e l e m e n t s , a = t h i s . o p t i o n s , f = t h i s . e f f e c t s ; 
 i f ( c = = n u l l ) { c = t r u e ; } i f ( t y p e O f ( b ) = = " e l e m e n t " ) { b = g . i n d e x O f ( b ) ; } i f ( b = = t h i s . p r e v i o u s & & ! a . a l w a y s H i d e ) { r e t u r n   t h i s ; } i f ( a . r e s e t H e i g h t ) { v a r   e = g [ t h i s . p r e v i o u s ] ; 
 i f ( e & & ! t h i s . s e l f H i d d e n ) { f o r ( v a r   d   i n   f ) { e . s e t S t y l e ( d , e [ f [ d ] ] ) ; } } } i f ( ( t h i s . t i m e r & & a . l i n k = = " c h a i n " ) | | ( b = = = t h i s . p r e v i o u s & & ! a . a l w a y s H i d e ) ) { r e t u r n   t h i s ; } t h i s . p r e v i o u s = b ; 
 t h i s . s e l f H i d d e n = f a l s e ; g . e a c h ( f u n c t i o n ( l , k ) { h [ k ] = { } ; v a r   j ; i f ( k ! = b ) { j = t r u e ; } e l s e { i f ( a . a l w a y s H i d e & & ( ( l . o f f s e t H e i g h t > 0 & & a . h e i g h t ) | | l . o f f s e t W i d t h > 0 & & a . w i d t h ) ) { j = t r u e ; 
 t h i s . s e l f H i d d e n = t r u e ; } } t h i s . f i r e E v e n t ( j ? " b a c k g r o u n d " : " a c t i v e " , [ t h i s . t o g g l e r s [ k ] , l ] ) ; f o r ( v a r   m   i n   f ) { h [ k ] [ m ] = j ? 0 : l [ f [ m ] ] ; } i f ( ! c & & ! j & & a . r e s e t H e i g h t ) { h [ k ] . h e i g h t = " a u t o " ; 
 } } , t h i s ) ; t h i s . i n t e r n a l C h a i n . c l e a r C h a i n ( ) ; t h i s . i n t e r n a l C h a i n . c h a i n ( f u n c t i o n ( ) { i f ( a . r e s e t H e i g h t & & ! t h i s . s e l f H i d d e n ) { v a r   i = g [ b ] ; i f ( i ) { i . s e t S t y l e ( " h e i g h t " , " a u t o " ) ; 
 } } } . b i n d ( t h i s ) ) ; r e t u r n   c ? t h i s . s t a r t ( h ) : t h i s . s e t ( h ) ; } } ) ; v a r   A c c o r d i o n = n e w   C l a s s ( { E x t e n d s : F x . A c c o r d i o n , i n i t i a l i z e : f u n c t i o n ( ) { t h i s . p a r e n t . a p p l y ( t h i s , a r g u m e n t s ) ; 
 v a r   a = A r r a y . l i n k ( a r g u m e n t s , { c o n t a i n e r : T y p e . i s E l e m e n t } ) ; t h i s . c o n t a i n e r = a . c o n t a i n e r ; } , a d d S e c t i o n : f u n c t i o n ( c , b , e ) { c = d o c u m e n t . i d ( c ) ; b = d o c u m e n t . i d ( b ) ; v a r   d = t h i s . t o g g l e r s . c o n t a i n s ( c ) ; 
 v a r   a = t h i s . t o g g l e r s . l e n g t h ; i f ( a & & ( ! d | | e ) ) { e = e ! = n u l l ? e : a - 1 ; c . i n j e c t ( t h i s . t o g g l e r s [ e ] , " b e f o r e " ) ; b . i n j e c t ( c , " a f t e r " ) ; } e l s e { i f ( t h i s . c o n t a i n e r & & ! d ) { c . i n j e c t ( t h i s . c o n t a i n e r ) ; 
 b . i n j e c t ( t h i s . c o n t a i n e r ) ; } } r e t u r n   t h i s . p a r e n t . a p p l y ( t h i s , a r g u m e n t s ) ; } } ) ; F x . M o v e = n e w   C l a s s ( { E x t e n d s : F x . M o r p h , o p t i o n s : { r e l a t i v e T o : d o c u m e n t . b o d y , p o s i t i o n : " c e n t e r " , e d g e : f a l s e , o f f s e t : { x : 0 , y : 0 } } , s t a r t : f u n c t i o n ( a ) { v a r   b = t h i s . e l e m e n t , c = b . g e t S t y l e s ( " t o p " , " l e f t " ) ; 
 i f ( c . t o p = = " a u t o " | | c . l e f t = = " a u t o " ) { b . s e t P o s i t i o n ( b . g e t P o s i t i o n ( b . g e t O f f s e t P a r e n t ( ) ) ) ; } r e t u r n   t h i s . p a r e n t ( b . p o s i t i o n ( O b j e c t . m e r g e ( { } , t h i s . o p t i o n s , a , { r e t u r n P o s : t r u e } ) ) ) ; 
 } } ) ; E l e m e n t . P r o p e r t i e s . m o v e = { s e t : f u n c t i o n ( a ) { t h i s . g e t ( " m o v e " ) . c a n c e l ( ) . s e t O p t i o n s ( a ) ; r e t u r n   t h i s ; } , g e t : f u n c t i o n ( ) { v a r   a = t h i s . r e t r i e v e ( " m o v e " ) ; i f ( ! a ) { a = n e w   F x . M o v e ( t h i s , { l i n k : " c a n c e l " } ) ; 
 t h i s . s t o r e ( " m o v e " , a ) ; } r e t u r n   a ; } } ; E l e m e n t . i m p l e m e n t ( { m o v e : f u n c t i o n ( a ) { t h i s . g e t ( " m o v e " ) . s t a r t ( a ) ; r e t u r n   t h i s ; } } ) ; ( f u n c t i o n ( ) { v a r   a = f u n c t i o n ( d ) { v a r   b = d . o p t i o n s . h i d e I n p u t s ; 
 i f ( w i n d o w . O v e r T e x t ) { v a r   c = [ n u l l ] ; O v e r T e x t . e a c h ( f u n c t i o n ( e ) { c . i n c l u d e ( " . " + e . o p t i o n s . l a b e l C l a s s ) ; } ) ; i f ( c ) { b + = c . j o i n ( " ,   " ) ; } } r e t u r n ( b ) ? d . e l e m e n t . g e t E l e m e n t s ( b ) : n u l l ; 
 } ; F x . R e v e a l = n e w   C l a s s ( { E x t e n d s : F x . M o r p h , o p t i o n s : { l i n k : " c a n c e l " , s t y l e s : [ " p a d d i n g " , " b o r d e r " , " m a r g i n " ] , t r a n s i t i o n O p a c i t y : ! B r o w s e r . i e 6 , m o d e : " v e r t i c a l " , d i s p l a y : f u n c t i o n ( ) { r e t u r n   t h i s . e l e m e n t . g e t ( " t a g " ) ! = " t r " ? " b l o c k " : " t a b l e - r o w " ; 
 } , o p a c i t y : 1 , h i d e I n p u t s : B r o w s e r . i e ? " s e l e c t ,   i n p u t ,   t e x t a r e a ,   o b j e c t ,   e m b e d " : n u l l } , d i s s o l v e : f u n c t i o n ( ) { i f ( ! t h i s . h i d i n g & & ! t h i s . s h o w i n g ) { i f ( t h i s . e l e m e n t . g e t S t y l e ( " d i s p l a y " ) ! = " n o n e " ) { t h i s . h i d i n g = t r u e ; 
 t h i s . s h o w i n g = f a l s e ; t h i s . h i d d e n = t r u e ; t h i s . c s s T e x t = t h i s . e l e m e n t . s t y l e . c s s T e x t ; v a r   d = t h i s . e l e m e n t . g e t C o m p u t e d S i z e ( { s t y l e s : t h i s . o p t i o n s . s t y l e s , m o d e : t h i s . o p t i o n s . m o d e } ) ; 
 i f ( t h i s . o p t i o n s . t r a n s i t i o n O p a c i t y ) { d . o p a c i t y = t h i s . o p t i o n s . o p a c i t y ; } v a r   c = { } ; O b j e c t . e a c h ( d , f u n c t i o n ( f , e ) { c [ e ] = [ f , 0 ] ; } ) ; t h i s . e l e m e n t . s e t S t y l e s ( { d i s p l a y : F u n c t i o n . f r o m ( t h i s . o p t i o n s . d i s p l a y ) . c a l l ( t h i s ) , o v e r f l o w : " h i d d e n " } ) ; 
 v a r   b = a ( t h i s ) ; i f ( b ) { b . s e t S t y l e ( " v i s i b i l i t y " , " h i d d e n " ) ; } t h i s . $ c h a i n . u n s h i f t ( f u n c t i o n ( ) { i f ( t h i s . h i d d e n ) { t h i s . h i d i n g = f a l s e ; t h i s . e l e m e n t . s t y l e . c s s T e x t = t h i s . c s s T e x t ; 
 t h i s . e l e m e n t . s e t S t y l e ( " d i s p l a y " , " n o n e " ) ; i f ( b ) { b . s e t S t y l e ( " v i s i b i l i t y " , " v i s i b l e " ) ; } } t h i s . f i r e E v e n t ( " h i d e " , t h i s . e l e m e n t ) ; t h i s . c a l l C h a i n ( ) ; } . b i n d ( t h i s ) ) ; t h i s . s t a r t ( c ) ; 
 } e l s e { t h i s . c a l l C h a i n . d e l a y ( 1 0 , t h i s ) ; t h i s . f i r e E v e n t ( " c o m p l e t e " , t h i s . e l e m e n t ) ; t h i s . f i r e E v e n t ( " h i d e " , t h i s . e l e m e n t ) ; } } e l s e { i f ( t h i s . o p t i o n s . l i n k = = " c h a i n " ) { t h i s . c h a i n ( t h i s . d i s s o l v e . b i n d ( t h i s ) ) ; 
 } e l s e { i f ( t h i s . o p t i o n s . l i n k = = " c a n c e l " & & ! t h i s . h i d i n g ) { t h i s . c a n c e l ( ) ; t h i s . d i s s o l v e ( ) ; } } } r e t u r n   t h i s ; } , r e v e a l : f u n c t i o n ( ) { i f ( ! t h i s . s h o w i n g & & ! t h i s . h i d i n g ) { i f ( t h i s . e l e m e n t . g e t S t y l e ( " d i s p l a y " ) = = " n o n e " ) { t h i s . h i d i n g = f a l s e ; 
 t h i s . s h o w i n g = t r u e ; t h i s . h i d d e n = f a l s e ; t h i s . c s s T e x t = t h i s . e l e m e n t . s t y l e . c s s T e x t ; v a r   d ; t h i s . e l e m e n t . m e a s u r e ( f u n c t i o n ( ) { d = t h i s . e l e m e n t . g e t C o m p u t e d S i z e ( { s t y l e s : t h i s . o p t i o n s . s t y l e s , m o d e : t h i s . o p t i o n s . m o d e } ) ; 
 } . b i n d ( t h i s ) ) ; i f ( t h i s . o p t i o n s . h e i g h t O v e r r i d e ! = n u l l ) { d . h e i g h t = t h i s . o p t i o n s . h e i g h t O v e r r i d e . t o I n t ( ) ; } i f ( t h i s . o p t i o n s . w i d t h O v e r r i d e ! = n u l l ) { d . w i d t h = t h i s . o p t i o n s . w i d t h O v e r r i d e . t o I n t ( ) ; 
 } i f ( t h i s . o p t i o n s . t r a n s i t i o n O p a c i t y ) { t h i s . e l e m e n t . s e t S t y l e ( " o p a c i t y " , 0 ) ; d . o p a c i t y = t h i s . o p t i o n s . o p a c i t y ; } v a r   c = { h e i g h t : 0 , d i s p l a y : F u n c t i o n . f r o m ( t h i s . o p t i o n s . d i s p l a y ) . c a l l ( t h i s ) } ; 
 O b j e c t . e a c h ( d , f u n c t i o n ( f , e ) { c [ e ] = 0 ; } ) ; c . o v e r f l o w = " h i d d e n " ; t h i s . e l e m e n t . s e t S t y l e s ( c ) ; v a r   b = a ( t h i s ) ; i f ( b ) { b . s e t S t y l e ( " v i s i b i l i t y " , " h i d d e n " ) ; } t h i s . $ c h a i n . u n s h i f t ( f u n c t i o n ( ) { t h i s . e l e m e n t . s t y l e . c s s T e x t = t h i s . c s s T e x t ; 
 t h i s . e l e m e n t . s e t S t y l e ( " d i s p l a y " , F u n c t i o n . f r o m ( t h i s . o p t i o n s . d i s p l a y ) . c a l l ( t h i s ) ) ; i f ( ! t h i s . h i d d e n ) { t h i s . s h o w i n g = f a l s e ; } i f ( b ) { b . s e t S t y l e ( " v i s i b i l i t y " , " v i s i b l e " ) ; 
 } t h i s . c a l l C h a i n ( ) ; t h i s . f i r e E v e n t ( " s h o w " , t h i s . e l e m e n t ) ; } . b i n d ( t h i s ) ) ; t h i s . s t a r t ( d ) ; } e l s e { t h i s . c a l l C h a i n ( ) ; t h i s . f i r e E v e n t ( " c o m p l e t e " , t h i s . e l e m e n t ) ; t h i s . f i r e E v e n t ( " s h o w " , t h i s . e l e m e n t ) ; 
 } } e l s e { i f ( t h i s . o p t i o n s . l i n k = = " c h a i n " ) { t h i s . c h a i n ( t h i s . r e v e a l . b i n d ( t h i s ) ) ; } e l s e { i f ( t h i s . o p t i o n s . l i n k = = " c a n c e l " & & ! t h i s . s h o w i n g ) { t h i s . c a n c e l ( ) ; t h i s . r e v e a l ( ) ; 
 } } } r e t u r n   t h i s ; } , t o g g l e : f u n c t i o n ( ) { i f ( t h i s . e l e m e n t . g e t S t y l e ( " d i s p l a y " ) = = " n o n e " ) { t h i s . r e v e a l ( ) ; } e l s e { t h i s . d i s s o l v e ( ) ; } r e t u r n   t h i s ; } , c a n c e l : f u n c t i o n ( ) { t h i s . p a r e n t . a p p l y ( t h i s , a r g u m e n t s ) ; 
 i f ( t h i s . c s s T e x t ! = n u l l ) { t h i s . e l e m e n t . s t y l e . c s s T e x t = t h i s . c s s T e x t ; } t h i s . h i d i n g = f a l s e ; t h i s . s h o w i n g = f a l s e ; r e t u r n   t h i s ; } } ) ; E l e m e n t . P r o p e r t i e s . r e v e a l = { s e t : f u n c t i o n ( b ) { t h i s . g e t ( " r e v e a l " ) . c a n c e l ( ) . s e t O p t i o n s ( b ) ; 
 r e t u r n   t h i s ; } , g e t : f u n c t i o n ( ) { v a r   b = t h i s . r e t r i e v e ( " r e v e a l " ) ; i f ( ! b ) { b = n e w   F x . R e v e a l ( t h i s ) ; t h i s . s t o r e ( " r e v e a l " , b ) ; } r e t u r n   b ; } } ; E l e m e n t . P r o p e r t i e s . d i s s o l v e = E l e m e n t . P r o p e r t i e s . r e v e a l ; 
 E l e m e n t . i m p l e m e n t ( { r e v e a l : f u n c t i o n ( b ) { t h i s . g e t ( " r e v e a l " ) . s e t O p t i o n s ( b ) . r e v e a l ( ) ; r e t u r n   t h i s ; } , d i s s o l v e : f u n c t i o n ( b ) { t h i s . g e t ( " r e v e a l " ) . s e t O p t i o n s ( b ) . d i s s o l v e ( ) ; 
 r e t u r n   t h i s ; } , n i x : f u n c t i o n ( b ) { v a r   c = A r r a y . l i n k ( a r g u m e n t s , { d e s t r o y : T y p e . i s B o o l e a n , o p t i o n s : T y p e . i s O b j e c t } ) ; t h i s . g e t ( " r e v e a l " ) . s e t O p t i o n s ( b ) . d i s s o l v e ( ) . c h a i n ( f u n c t i o n ( ) { t h i s [ c . d e s t r o y ? " d e s t r o y " : " d i s p o s e " ] ( ) ; 
 } . b i n d ( t h i s ) ) ; r e t u r n   t h i s ; } , w i n k : f u n c t i o n ( ) { v a r   c = A r r a y . l i n k ( a r g u m e n t s , { d u r a t i o n : T y p e . i s N u m b e r , o p t i o n s : T y p e . i s O b j e c t } ) ; v a r   b = t h i s . g e t ( " r e v e a l " ) . s e t O p t i o n s ( c . o p t i o n s ) ; 
 b . r e v e a l ( ) . c h a i n ( f u n c t i o n ( ) { ( f u n c t i o n ( ) { b . d i s s o l v e ( ) ; } ) . d e l a y ( c . d u r a t i o n | | 2 0 0 0 ) ; } ) ; } } ) ; } ) . c a l l ( t h i s ) ; ( f u n c t i o n ( ) { F x . S c r o l l = n e w   C l a s s ( { E x t e n d s : F x , o p t i o n s : { o f f s e t : { x : 0 , y : 0 } , w h e e l S t o p s : t r u e } , i n i t i a l i z e : f u n c t i o n ( c , b ) { t h i s . e l e m e n t = t h i s . s u b j e c t = d o c u m e n t . i d ( c ) ; 
 t h i s . p a r e n t ( b ) ; i f ( t y p e O f ( t h i s . e l e m e n t ) ! = " e l e m e n t " ) { t h i s . e l e m e n t = d o c u m e n t . i d ( t h i s . e l e m e n t . g e t D o c u m e n t ( ) . b o d y ) ; } i f ( t h i s . o p t i o n s . w h e e l S t o p s ) { v a r   d = t h i s . e l e m e n t , e = t h i s . c a n c e l . p a s s ( f a l s e , t h i s ) ; 
 t h i s . a d d E v e n t ( " s t a r t " , f u n c t i o n ( ) { d . a d d E v e n t ( " m o u s e w h e e l " , e ) ; } , t r u e ) ; t h i s . a d d E v e n t ( " c o m p l e t e " , f u n c t i o n ( ) { d . r e m o v e E v e n t ( " m o u s e w h e e l " , e ) ; } , t r u e ) ; } } , s e t : f u n c t i o n ( ) { v a r   b = A r r a y . f l a t t e n ( a r g u m e n t s ) ; 
 i f ( B r o w s e r . f i r e f o x ) { b = [ M a t h . r o u n d ( b [ 0 ] ) , M a t h . r o u n d ( b [ 1 ] ) ] ; } t h i s . e l e m e n t . s c r o l l T o ( b [ 0 ] , b [ 1 ] ) ; } , c o m p u t e : f u n c t i o n ( d , c , b ) { r e t u r n [ 0 , 1 ] . m a p ( f u n c t i o n ( e ) { r e t u r n   F x . c o m p u t e ( d [ e ] , c [ e ] , b ) ; 
 } ) ; } , s t a r t : f u n c t i o n ( c , d ) { i f ( ! t h i s . c h e c k ( c , d ) ) { r e t u r n   t h i s ; } v a r   b = t h i s . e l e m e n t . g e t S c r o l l ( ) ; r e t u r n   t h i s . p a r e n t ( [ b . x , b . y ] , [ c , d ] ) ; } , c a l c u l a t e S c r o l l : f u n c t i o n ( g , f ) { v a r   d = t h i s . e l e m e n t , b = d . g e t S c r o l l S i z e ( ) , h = d . g e t S c r o l l ( ) , j = d . g e t S i z e ( ) , c = t h i s . o p t i o n s . o f f s e t , i = { x : g , y : f } ; 
 f o r ( v a r   e   i n   i ) { i f ( ! i [ e ] & & i [ e ] ! = = 0 ) { i [ e ] = h [ e ] ; } i f ( t y p e O f ( i [ e ] ) ! = " n u m b e r " ) { i [ e ] = b [ e ] - j [ e ] ; } i [ e ] + = c [ e ] ; } r e t u r n [ i . x , i . y ] ; } , t o T o p : f u n c t i o n ( ) { r e t u r n   t h i s . s t a r t . a p p l y ( t h i s , t h i s . c a l c u l a t e S c r o l l ( f a l s e , 0 ) ) ; 
 } , t o L e f t : f u n c t i o n ( ) { r e t u r n   t h i s . s t a r t . a p p l y ( t h i s , t h i s . c a l c u l a t e S c r o l l ( 0 , f a l s e ) ) ; } , t o R i g h t : f u n c t i o n ( ) { r e t u r n   t h i s . s t a r t . a p p l y ( t h i s , t h i s . c a l c u l a t e S c r o l l ( " r i g h t " , f a l s e ) ) ; 
 } , t o B o t t o m : f u n c t i o n ( ) { r e t u r n   t h i s . s t a r t . a p p l y ( t h i s , t h i s . c a l c u l a t e S c r o l l ( f a l s e , " b o t t o m " ) ) ; } , t o E l e m e n t : f u n c t i o n ( d , e ) { e = e ? A r r a y . f r o m ( e ) : [ " x " , " y " ] ; v a r   c = a ( t h i s . e l e m e n t ) ? { x : 0 , y : 0 } : t h i s . e l e m e n t . g e t S c r o l l ( ) ; 
 v a r   b = O b j e c t . m a p ( d o c u m e n t . i d ( d ) . g e t P o s i t i o n ( t h i s . e l e m e n t ) , f u n c t i o n ( g , f ) { r e t u r n   e . c o n t a i n s ( f ) ? g + c [ f ] : f a l s e ; } ) ; r e t u r n   t h i s . s t a r t . a p p l y ( t h i s , t h i s . c a l c u l a t e S c r o l l ( b . x , b . y ) ) ; 
 } , t o E l e m e n t E d g e : f u n c t i o n ( d , g , e ) { g = g ? A r r a y . f r o m ( g ) : [ " x " , " y " ] ; d = d o c u m e n t . i d ( d ) ; v a r   i = { } , f = d . g e t P o s i t i o n ( t h i s . e l e m e n t ) , j = d . g e t S i z e ( ) , h = t h i s . e l e m e n t . g e t S c r o l l ( ) , b = t h i s . e l e m e n t . g e t S i z e ( ) , c = { x : f . x + j . x , y : f . y + j . y } ; 
 [ " x " , " y " ] . e a c h ( f u n c t i o n ( k ) { i f ( g . c o n t a i n s ( k ) ) { i f ( c [ k ] > h [ k ] + b [ k ] ) { i [ k ] = c [ k ] - b [ k ] ; } i f ( f [ k ] < h [ k ] ) { i [ k ] = f [ k ] ; } } i f ( i [ k ] = = n u l l ) { i [ k ] = h [ k ] ; } i f ( e & & e [ k ] ) { i [ k ] = i [ k ] + e [ k ] ; 
 } } , t h i s ) ; i f ( i . x ! = h . x | | i . y ! = h . y ) { t h i s . s t a r t ( i . x , i . y ) ; } r e t u r n   t h i s ; } , t o E l e m e n t C e n t e r : f u n c t i o n ( e , f , h ) { f = f ? A r r a y . f r o m ( f ) : [ " x " , " y " ] ; e = d o c u m e n t . i d ( e ) ; v a r   i = { } , c = e . g e t P o s i t i o n ( t h i s . e l e m e n t ) , d = e . g e t S i z e ( ) , b = t h i s . e l e m e n t . g e t S c r o l l ( ) , g = t h i s . e l e m e n t . g e t S i z e ( ) ; 
 [ " x " , " y " ] . e a c h ( f u n c t i o n ( j ) { i f ( f . c o n t a i n s ( j ) ) { i [ j ] = c [ j ] - ( g [ j ] - d [ j ] ) / 2 ; } i f ( i [ j ] = = n u l l ) { i [ j ] = b [ j ] ; } i f ( h & & h [ j ] ) { i [ j ] = i [ j ] + h [ j ] ; } } , t h i s ) ; i f ( i . x ! = b . x | | i . y ! = b . y ) { t h i s . s t a r t ( i . x , i . y ) ; 
 } r e t u r n   t h i s ; } } ) ; F x . S c r o l l . i m p l e m e n t ( { s c r o l l T o C e n t e r : f u n c t i o n ( ) { r e t u r n   t h i s . t o E l e m e n t C e n t e r . a p p l y ( t h i s , a r g u m e n t s ) ; } , s c r o l l I n t o V i e w : f u n c t i o n ( ) { r e t u r n   t h i s . t o E l e m e n t E d g 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   a ( b ) { r e t u r n ( / ^ ( ? : b o d y | h t m l ) $ / i ) . t e s t ( b . t a g N a m e ) ; } } ) . c a l l ( t h i s ) ; F x . S l i d e = n e w   C l a s s ( { E x t e n d s : F x , o p t i o n s : { m o d e : " v e r t i c a l " , w r a p p e r : f a l s e , h i d e O v e r f l o w : t r u e , r e s e t H e i g h t : f a l s e } , i n i t i a l i z e : f u n c t i o n ( b , a ) { b = t h i s . e l e m e n t = t h i s . s u b j e c t = d o c u m e n t . i d ( b ) ; 
 t h i s . p a r e n t ( a ) ; a = t h i s . o p t i o n s ; v a r   d = b . r e t r i e v e ( " w r a p p e r " ) , c = b . g e t S t y l e s ( " m a r g i n " , " p o s i t i o n " , " o v e r f l o w " ) ; i f ( a . h i d e O v e r f l o w ) { c = O b j e c t . a p p e n d ( c , { o v e r f l o w : " h i d d e n " } ) ; 
 } i f ( a . w r a p p e r ) { d = d o c u m e n t . i d ( a . w r a p p e r ) . s e t S t y l e s ( c ) ; } i f ( ! d ) { d = n e w   E l e m e n t ( " d i v " , { s t y l e s : c } ) . w r a p s ( b ) ; } b . s t o r e ( " w r a p p e r " , d ) . s e t S t y l e ( " m a r g i n " , 0 ) ; i f ( b . g e t S t y l e ( " o v e r f l o w " ) = = " v i s i b l e " ) { b . s e t S t y l e ( " o v e r f l o w " , " h i d d e n " ) ; 
 } t h i s . n o w = [ ] ; t h i s . o p e n = t r u e ; t h i s . w r a p p e r = d ; t h i s . a d d E v e n t ( " c o m p l e t e " , f u n c t i o n ( ) { t h i s . o p e n = ( d [ " o f f s e t " + t h i s . l a y o u t . c a p i t a l i z e ( ) ] ! = 0 ) ; i f ( t h i s . o p e n & & a . r e s e t H e i g h t ) { d . s e t S t y l e ( " h e i g h t " , " " ) ; 
 } } , t r u e ) ; } , v e r t i c a l : f u n c t i o n ( ) { t h i s . m a r g i n = " m a r g i n - t o p " ; t h i s . l a y o u t = " h e i g h t " ; t h i s . o f f s e t = t h i s . e l e m e n t . o f f s e t H e i g h t ; } , h o r i z o n t a l : f u n c t i o n ( ) { t h i s . m a r g i n = " m a r g i n - l e f t " ; 
 t h i s . l a y o u t = " w i d t h " ; t h i s . o f f s e t = t h i s . e l e m e n t . o f f s e t W i d t h ; } , s e t : f u n c t i o n ( a ) { t h i s . e l e m e n t . s e t S t y l e ( t h i s . m a r g i n , a [ 0 ] ) ; t h i s . w r a p p e r . s e t S t y l e ( t h i s . l a y o u t , a [ 1 ] ) ; 
 r e t u r n   t h i s ; } , c o m p u t e : f u n c t i o n ( c , b , a ) { r e t u r n [ 0 , 1 ] . m a p ( f u n c t i o n ( d ) { r e t u r n   F x . c o m p u t e ( c [ d ] , b [ d ] , a ) ; } ) ; } , s t a r t : f u n c t i o n ( b , e ) { i f ( ! t h i s . c h e c k ( b , e ) ) { r e t u r n   t h i s ; 
 } t h i s [ e | | t h i s . o p t i o n s . m o d e ] ( ) ; v a r   d = t h i s . e l e m e n t . g e t S t y l e ( t h i s . m a r g i n ) . t o I n t ( ) , c = t h i s . w r a p p e r . g e t S t y l e ( t h i s . l a y o u t ) . t o I n t ( ) , a = [ [ d , c ] , [ 0 , t h i s . o f f s e t ] ] , g = [ [ d , c ] , [ - t h i s . o f f s e t , 0 ] ] , f ; 
 s w i t c h ( b ) { c a s e " i n " : f = a ; b r e a k ; c a s e " o u t " : f = g ; b r e a k ; c a s e " t o g g l e " : f = ( c = = 0 ) ? a : g ; } r e t u r n   t h i s . p a r e n t ( f [ 0 ] , f [ 1 ] ) ; } , s l i d e I n : f u n c t i o n ( a ) { r e t u r n   t h i s . s t a r t ( " i n " , a ) ; 
 } , s l i d e O u t : f u n c t i o n ( a ) { r e t u r n   t h i s . s t a r t ( " o u t " , a ) ; } , h i d e : f u n c t i o n ( a ) { t h i s [ a | | t h i s . o p t i o n s . m o d e ] ( ) ; t h i s . o p e n = f a l s e ; r e t u r n   t h i s . s e t ( [ - t h i s . o f f s e t , 0 ] ) ; } , s h o w : f u n c t i o n ( a ) { t h i s [ a | | t h i s . o p t i o n s . m o d e ] ( ) ; 
 t h i s . o p e n = t r u e ; r e t u r n   t h i s . s e t ( [ 0 , t h i s . o f f s e t ] ) ; } , t o g g l e : f u n c t i o n ( a ) { r e t u r n   t h i s . s t a r t ( " t o g g l e " , a ) ; } } ) ; E l e m e n t . P r o p e r t i e s . s l i d e = { s e t : f u n c t i o n ( a ) { t h i s . g e t ( " s l i d e " ) . c a n c e l ( ) . s e t O p t i o n s ( a ) ; 
 r e t u r n   t h i s ; } , g e t : f u n c t i o n ( ) { v a r   a = t h i s . r e t r i e v e ( " s l i d e " ) ; i f ( ! a ) { a = n e w   F x . S l i d e ( t h i s , { l i n k : " c a n c e l " } ) ; t h i s . s t o r e ( " s l i d e " , a ) ; } r e t u r n   a ; } } ; E l e m e n t . i m p l e m e n t ( { s l i d e : f u n c t i o n ( d , e ) { d = d | | " t o g g l e " ; 
 v a r   b = t h i s . g e t ( " s l i d e " ) , a ; s w i t c h ( d ) { c a s e " h i d e " : b . h i d e ( e ) ; b r e a k ; c a s e " s h o w " : b . s h o w ( e ) ; b r e a k ; c a s e " t o g g l e " : v a r   c = t h i s . r e t r i e v e ( " s l i d e : f l a g " , b . o p e n ) ; b [ c ? " s l i d e O u t " : " s l i d e I n " ] ( e ) ; 
 t h i s . s t o r e ( " s l i d e : f l a g " , ! c ) ; a = t r u e ; b r e a k ; d e f a u l t : b . s t a r t ( d , e ) ; } i f ( ! a ) { t h i s . e l i m i n a t e ( " s l i d e : f l a g " ) ; } r e t u r n   t h i s ; } } ) ; v a r   S m o o t h S c r o l l = F x . S m o o t h S c r o l l = n e w   C l a s s ( { E x t e n d s : F x . S c r o l l , o p t i o n s : { a x e s : [ " x " , " y " ] } , i n i t i a l i z e : f u n c t i o n ( c , d ) { d = d | | d o c u m e n t ; 
 t h i s . d o c = d . g e t D o c u m e n t ( ) ; t h i s . p a r e n t ( t h i s . d o c , c ) ; v a r   e = d . g e t W i n d o w ( ) , a = e . l o c a t i o n . h r e f . m a t c h ( / ^ [ ^ # ] * / ) [ 0 ] + " # " , b = $ $ ( t h i s . o p t i o n s . l i n k s | | t h i s . d o c . l i n k s ) ; 
 b . e a c h ( f u n c t i o n ( g ) { i f ( g . h r e f . i n d e x O f ( a ) ! = 0 ) { r e t u r n ; } v a r   f = g . h r e f . s u b s t r ( a . l e n g t h ) ; i f ( f ) { t h i s . u s e L i n k ( g , f ) ; } } , t h i s ) ; t h i s . a d d E v e n t ( " c o m p l e t e " , f u n c t i o n ( ) { e . l o c a t i o n . h a s h = t h i s . a n c h o r ; 
 t h i s . e l e m e n t . s c r o l l T o ( t h i s . t o [ 0 ] , t h i s . t o [ 1 ] ) ; } , t r u e ) ; } , u s e L i n k : f u n c t i o n ( b , a ) { b . a d d E v e n t ( " c l i c k " , f u n c t i o n ( d ) { v a r   c = d o c u m e n t . i d ( a ) | | t h i s . d o c . g e t E l e m e n t ( " a [ n a m e = " + a + " ] " ) ; 
 i f ( ! c ) { r e t u r n ; } d . p r e v e n t D e f a u l t ( ) ; t h i s . t o E l e m e n t ( c , t h i s . o p t i o n s . a x e s ) . c h a i n ( f u n c t i o n ( ) { t h i s . f i r e E v e n t ( " s c r o l l e d T o " , [ b , c ] ) ; } . b i n d ( t h i s ) ) ; t h i s . a n c h o r = a ; } . b i n d ( t h i s ) ) ; 
 r e t u r n   t h i s ; } } ) ; F x . S o r t = n e w   C l a s s ( { E x t e n d s : F x . E l e m e n t s , o p t i o n s : { m o d e : " v e r t i c a l " } , i n i t i a l i z e : f u n c t i o n ( b , a ) { t h i s . p a r e n t ( b , a ) ; t h i s . e l e m e n t s . e a c h ( f u n c t i o n ( c ) { i f ( c . g e t S t y l e ( " p o s i t i o n " ) = = " s t a t i c " ) { c . s e t S t y l e ( " p o s i t i o n " , " r e l a t i v e " ) ; 
 } } ) ; t h i s . s e t D e f a u l t O r d e r ( ) ; } , s e t D e f a u l t O r d e r : f u n c t i o n ( ) { t h i s . c u r r e n t O r d e r = t h i s . e l e m e n t s . m a p ( f u n c t i o n ( b , a ) { r e t u r n   a ; } ) ; } , s o r t : f u n c t i o n ( ) { i f ( ! t h i s . c h e c k ( a r g u m e n t s ) ) { r e t u r n   t h i s ; 
 } v a r   e = A r r a y . f l a t t e n ( a r g u m e n t s ) ; v a r   i = 0 , a = 0 , c = { } , h = { } , d = t h i s . o p t i o n s . m o d e = = " v e r t i c a l " ; v a r   f = t h i s . e l e m e n t s . m a p ( f u n c t i o n ( m , k ) { v a r   l = m . g e t C o m p u t e d S i z e ( { s t y l e s : [ " b o r d e r " , " p a d d i n g " , " m a r g i n " ] } ) ; 
 v a r   n ; i f ( d ) { n = { t o p : i , m a r g i n : l [ " m a r g i n - t o p " ] , h e i g h t : l . t o t a l H e i g h t } ; i + = n . h e i g h t - l [ " m a r g i n - t o p " ] ; } e l s e { n = { l e f t : a , m a r g i n : l [ " m a r g i n - l e f t " ] , w i d t h : l . t o t a l W i d t h } ; 
 a + = n . w i d t h ; } v a r   j = d ? " t o p " : " l e f t " ; h [ k ] = { } ; v a r   o = m . g e t S t y l e ( j ) . t o I n t ( ) ; h [ k ] [ j ] = o | | 0 ; r e t u r n   n ; } , t h i s ) ; t h i s . s e t ( h ) ; e = e . m a p ( f u n c t i o n ( j ) { r e t u r n   j . t o I n t ( ) ; } ) ; 
 i f ( e . l e n g t h ! = t h i s . e l e m e n t s . l e n g t h ) { t h i s . c u r r e n t O r d e r . e a c h ( f u n c t i o n ( j ) { i f ( ! e . c o n t a i n s ( j ) ) { e . p u s h ( j ) ; } } ) ; i f ( e . l e n g t h > t h i s . e l e m e n t s . l e n g t h ) { e . s p l i c e ( t h i s . e l e m e n t s . l e n g t h - 1 , e . l e n g t h - t h i s . e l e m e n t s . l e n g t h ) ; 
 } } v a r   b = 0 ; i = a = 0 ; e . e a c h ( f u n c t i o n ( k ) { v a r   j = { } ; i f ( d ) { j . t o p = i - f [ k ] . t o p - b ; i + = f [ k ] . h e i g h t ; } e l s e { j . l e f t = a - f [ k ] . l e f t ; a + = f [ k ] . w i d t h ; } b = b + f [ k ] . m a r g i n ; c [ k ] = j ; } , t h i s ) ; 
 v a r   g = { } ; A r r a y . c l o n e ( e ) . s o r t ( ) . e a c h ( f u n c t i o n ( j ) { g [ j ] = c [ j ] ; } ) ; t h i s . s t a r t ( g ) ; t h i s . c u r r e n t O r d e r = e ; r e t u r n   t h i s ; } , r e a r r a n g e D O M : f u n c t i o n ( a ) { a = a | | t h i s . c u r r e n t O r d e r ; 
 v a r   b = t h i s . e l e m e n t s [ 0 ] . g e t P a r e n t ( ) ; v a r   c = [ ] ; t h i s . e l e m e n t s . s e t S t y l e ( " o p a c i t y " , 0 ) ; a . e a c h ( f u n c t i o n ( d ) { c . p u s h ( t h i s . e l e m e n t s [ d ] . i n j e c t ( b ) . s e t S t y l e s ( { t o p : 0 , l e f t : 0 } ) ) ; 
 } , t h i s ) ; t h i s . e l e m e n t s . s e t S t y l e ( " o p a c i t y " , 1 ) ; t h i s . e l e m e n t s = $ $ ( c ) ; t h i s . s e t D e f a u l t O r d e r ( ) ; r e t u r n   t h i s ; } , g e t D e f a u l t O r d e r : f u n c t i o n ( ) { r e t u r n   t h i s . e l e m e n t s . m a p ( f u n c t i o n ( b , a ) { r e t u r n   a ; 
 } ) ; } , g e t C u r r e n t O r d e r : f u n c t i o n ( ) { r e t u r n   t h i s . c u r r e n t O r d e r ; } , f o r w a r d : f u n c t i o n ( ) { r e t u r n   t h i s . s o r t ( t h i s . g e t D e f a u l t O r d e r ( ) ) ; } , b a c k w a r d : f u n c t i o n ( ) { r e t u r n   t h i s . s o r t ( t h i s . g e t D e f a u l t O r d e r ( ) . r e v e r s e ( ) ) ; 
 } , r e v e r s e : f u n c t i o n ( ) { r e t u r n   t h i s . s o r t ( t h i s . c u r r e n t O r d e r . r e v e r s e ( ) ) ; } , s o r t B y E l e m e n t s : f u n c t i o n ( a ) { r e t u r n   t h i s . s o r t ( a . m a p ( f u n c t i o n ( b ) { r e t u r n   t h i s . e l e m e n t s . i n d e x O f ( b ) ; 
 } , t h i s ) ) ; } , s w a p : f u n c t i o n ( c , b ) { i f ( t y p e O f ( c ) = = " e l e m e n t " ) { c = t h i s . e l e m e n t s . i n d e x O f ( c ) ; } i f ( t y p e O f ( b ) = = " e l e m e n t " ) { b = t h i s . e l e m e n t s . i n d e x O f ( b ) ; } v a r   a = A r r a y . c l o n e ( t h i s . c u r r e n t O r d e r ) ; 
 a [ t h i s . c u r r e n t O r d e r . i n d e x O f ( c ) ] = b ; a [ t h i s . c u r r e n t O r d e r . i n d e x O f ( b ) ] = c ; r e t u r n   t h i s . s o r t ( a ) ; } } ) ; v a r   D r a g = n e w   C l a s s ( { I m p l e m e n t s : [ E v e n t s , O p t i o n s ] , o p t i o n s : { s n a p : 6 , u n i t : " p x " , g r i d : f a l s e , s t y l e : t r u e , l i m i t : f a l s e , h a n d l e : f a l s e , i n v e r t : f a l s e , p r e v e n t D e f a u l t : f a l s e , s t o p P r o p a g a t i o n : f a l s e , m o d i f i e r s : { x : " l e f t " , y : " t o p " } } , i n i t i a l i z e : f u n c t i o n ( ) { v a r   b = A r r a y . l i n k ( a r g u m e n t s , { o p t i o n s : T y p e . i s O b j e c t , e l e m e n t : f u n c t i o n ( c ) { r e t u r n   c ! = n u l l ; 
 } } ) ; t h i s . e l e m e n t = d o c u m e n t . i d ( b . e l e m e n t ) ; t h i s . d o c u m e n t = t h i s . e l e m e n t . g e t D o c u m e n t ( ) ; t h i s . s e t O p t i o n s ( b . o p t i o n s | | { } ) ; v a r   a = t y p e O f ( t h i s . o p t i o n s . h a n d l e ) ; t h i s . h a n d l e s = ( ( a = = " a r r a y " | | a = = " c o l l e c t i o n " ) ? $ $ ( t h i s . o p t i o n s . h a n d l e ) : d o c u m e n t . i d ( t h i s . o p t i o n s . h a n d l e ) ) | | t h i s . e l e m e n t ; 
 t h i s . m o u s e = { n o w : { } , p o s : { } } ; t h i s . v a l u e = { s t a r t : { } , n o w : { } } ; t h i s . s e l e c t i o n = ( B r o w s e r . i e ) ? " s e l e c t s t a r t " : " m o u s e d o w n " ; i f ( B r o w s e r . i e & & ! D r a g . o n d r a g s t a r t F i x e d ) { d o c u m e n t . o n d r a g s t a r t = F u n c t i o n . f r o m ( f a l s e ) ; 
 D r a g . o n d r a g s t a r t F i x e d = t r u e ; } t h i s . b o u n d = { s t a r t : t h i s . s t a r t . b i n d ( t h i s ) , c h e c k : t h i s . c h e c k . b i n d ( t h i s ) , d r a g : t h i s . d r a g . b i n d ( t h i s ) , s t o p : t h i s . s t o p . b i n d ( t h i s ) , c a n c e l : t h i s . c a n c e l . b i n d ( t h i s ) , e v e n t S t o p : F u n c t i o n . f r o m ( f a l s e ) } ; 
 t h i s . a t t a c h ( ) ; } , a t t a c h : f u n c t i o n ( ) { t h i s . h a n d l e s . a d d E v e n t ( " m o u s e d o w n " , t h i s . b o u n d . s t a r t ) ; r e t u r n   t h i s ; } , d e t a c h : f u n c t i o n ( ) { t h i s . h a n d l e s . r e m o v e E v e n t ( " m o u s e d o w n " , t h i s . b o u n d . s t a r t ) ; 
 r e t u r n   t h i s ; } , s t a r t : f u n c t i o n ( a ) { v a r   k = t h i s . o p t i o n s ; i f ( a . r i g h t C l i c k ) { r e t u r n ; } i f ( k . p r e v e n t D e f a u l t ) { a . p r e v e n t D e f a u l t ( ) ; } i f ( k . s t o p P r o p a g a t i o n ) { a . s t o p P r o p a g a t i o n ( ) ; 
 } t h i s . m o u s e . s t a r t = a . p a g e ; t h i s . f i r e E v e n t ( " b e f o r e S t a r t " , t h i s . e l e m e n t ) ; v a r   c = k . l i m i t ; t h i s . l i m i t = { x : [ ] , y : [ ] } ; v a r   j = t h i s . e l e m e n t . g e t S t y l e s ( " l e f t " , " r i g h t " , " t o p " , " b o t t o m " ) ; 
 t h i s . _ i n v e r t = { x : k . m o d i f i e r s . x = = " l e f t " & & j . l e f t = = " a u t o " & & ! i s N a N ( j . r i g h t . t o I n t ( ) ) & & ( k . m o d i f i e r s . x = " r i g h t " ) , y : k . m o d i f i e r s . y = = " t o p " & & j . t o p = = " a u t o " & & ! i s N a N ( j . b o t t o m . t o I n t ( ) ) & & ( k . m o d i f i e r s . y = " b o t t o m " ) } ; 
 v a r   e , g ; f o r ( e   i n   k . m o d i f i e r s ) { i f ( ! k . m o d i f i e r s [ e ] ) { c o n t i n u e ; } v a r   b = t h i s . e l e m e n t . g e t S t y l e ( k . m o d i f i e r s [ e ] ) ; i f ( b & & ! b . m a t c h ( / p x $ / ) ) { i f ( ! g ) { g = t h i s . e l e m e n t . g e t C o o r d i n a t e s ( t h i s . e l e m e n t . g e t O f f s e t P a r e n t ( ) ) ; 
 } b = g [ k . m o d i f i e r s [ e ] ] ; } i f ( k . s t y l e ) { t h i s . v a l u e . n o w [ e ] = ( b | | 0 ) . t o I n t ( ) ; } e l s e { t h i s . v a l u e . n o w [ e ] = t h i s . e l e m e n t [ k . m o d i f i e r s [ e ] ] ; } i f ( k . i n v e r t ) { t h i s . v a l u e . n o w [ e ] * = - 1 ; 
 } i f ( t h i s . _ i n v e r t [ e ] ) { t h i s . v a l u e . n o w [ e ] * = - 1 ; } t h i s . m o u s e . p o s [ e ] = a . p a g e [ e ] - t h i s . v a l u e . n o w [ e ] ; i f ( c & & c [ e ] ) { v a r   d = 2 ; w h i l e ( d - - ) { v a r   f = c [ e ] [ d ] ; i f ( f | | f = = = 0 ) { t h i s . l i m i t [ e ] [ d ] = ( t y p e o f   f = = " f u n c t i o n " ) ? f ( ) : f ; 
 } } } } i f ( t y p e O f ( t h i s . o p t i o n s . g r i d ) = = " n u m b e r " ) { t h i s . o p t i o n s . g r i d = { x : t h i s . o p t i o n s . g r i d , y : t h i s . o p t i o n s . g r i d } ; } v a r   h = { m o u s e m o v e : t h i s . b o u n d . c h e c k , m o u s e u p : t h i s . b o u n d . c a n c e l } ; 
 h [ t h i s . s e l e c t i o n ] = t h i s . b o u n d . e v e n t S t o p ; t h i s . d o c u m e n t . a d d E v e n t s ( h ) ; } , c h e c k : f u n c t i o n ( a ) { i f ( t h i s . o p t i o n s . p r e v e n t D e f a u l t ) { a . p r e v e n t D e f a u l t ( ) ; } v a r   b = M a t h . r o u n d ( M a t h . s q r t ( M a t h . p o w ( a . p a g e . x - t h i s . m o u s e . s t a r t . x , 2 ) + M a t h . p o w ( a . p a g e . y - t h i s . m o u s e . s t a r t . y , 2 ) ) ) ; 
 i f ( b > t h i s . o p t i o n s . s n a p ) { t h i s . c a n c e l ( ) ; t h i s . d o c u m e n t . a d d E v e n t s ( { m o u s e m o v e : t h i s . b o u n d . d r a g , m o u s e u p : t h i s . b o u n d . s t o p } ) ; t h i s . f i r e E v e n t ( " s t a r t " , [ t h i s . e l e m e n t , a ] ) . f i r e E v e n t ( " s n a p " , t h i s . e l e m e n t ) ; 
 } } , d r a g : f u n c t i o n ( b ) { v a r   a = t h i s . o p t i o n s ; i f ( a . p r e v e n t D e f a u l t ) { b . p r e v e n t D e f a u l t ( ) ; } t h i s . m o u s e . n o w = b . p a g e ; f o r ( v a r   c   i n   a . m o d i f i e r s ) { i f ( ! a . m o d i f i e r s [ c ] ) { c o n t i n u e ; 
 } t h i s . v a l u e . n o w [ c ] = t h i s . m o u s e . n o w [ c ] - t h i s . m o u s e . p o s [ c ] ; i f ( a . i n v e r t ) { t h i s . v a l u e . n o w [ c ] * = - 1 ; } i f ( t h i s . _ i n v e r t [ c ] ) { t h i s . v a l u e . n o w [ c ] * = - 1 ; } i f ( a . l i m i t & & t h i s . l i m i t [ c ] ) { i f ( ( t h i s . l i m i t [ c ] [ 1 ] | | t h i s . l i m i t [ c ] [ 1 ] = = = 0 ) & & ( t h i s . v a l u e . n o w [ c ] > t h i s . l i m i t [ c ] [ 1 ] ) ) { t h i s . v a l u e . n o w [ c ] = t h i s . l i m i t [ c ] [ 1 ] ; 
 } e l s e { i f ( ( t h i s . l i m i t [ c ] [ 0 ] | | t h i s . l i m i t [ c ] [ 0 ] = = = 0 ) & & ( t h i s . v a l u e . n o w [ c ] < t h i s . l i m i t [ c ] [ 0 ] ) ) { t h i s . v a l u e . n o w [ c ] = t h i s . l i m i t [ c ] [ 0 ] ; } } } i f ( a . g r i d [ c ] ) { t h i s . v a l u e . n o w [ c ] - = ( ( t h i s . v a l u e . n o w [ c ] - ( t h i s . l i m i t [ c ] [ 0 ] | | 0 ) ) % a . g r i d [ c ] ) ; 
 } i f ( a . s t y l e ) { t h i s . e l e m e n t . s e t S t y l e ( a . m o d i f i e r s [ c ] , t h i s . v a l u e . n o w [ c ] + a . u n i t ) ; } e l s e { t h i s . e l e m e n t [ a . m o d i f i e r s [ c ] ] = t h i s . v a l u e . n o w [ c ] ; } } t h i s . f i r e E v e n t ( " d r a g " , [ t h i s . e l e m e n t , b ] ) ; 
 } , c a n c e l : f u n c t i o n ( a ) { t h i s . d o c u m e n t . r e m o v e E v e n t s ( { m o u s e m o v e : t h i s . b o u n d . c h e c k , m o u s e u p : t h i s . b o u n d . c a n c e l } ) ; i f ( a ) { t h i s . d o c u m e n t . r e m o v e E v e n t ( t h i s . s e l e c t i o n , t h i s . b o u n d . e v e n t S t o p ) ; 
 t h i s . f i r e E v e n t ( " c a n c e l " , t h i s . e l e m e n t ) ; } } , s t o p : f u n c t i o n ( b ) { v a r   a = { m o u s e m o v e : t h i s . b o u n d . d r a g , m o u s e u p : t h i s . b o u n d . s t o p } ; a [ t h i s . s e l e c t i o n ] = t h i s . b o u n d . e v e n t S t o p ; 
 t h i s . d o c u m e n t . r e m o v e E v e n t s ( a ) ; i f ( b ) { t h i s . f i r e E v e n t ( " c o m p l e t e " , [ t h i s . e l e m e n t , b ] ) ; } } } ) ; E l e m e n t . i m p l e m e n t ( { m a k e R e s i z a b l e : f u n c t i o n ( a ) { v a r   b = n e w   D r a g ( t h i s , O b j e c t . m e r g e ( { m o d i f i e r s : { x : " w i d t h " , y : " h e i g h t " } } , a ) ) ; 
 t h i s . s t o r e ( " r e s i z e r " , b ) ; r e t u r n   b . a d d E v e n t ( " d r a g " , f u n c t i o n ( ) { t h i s . f i r e E v e n t ( " r e s i z e " , b ) ; } . b i n d ( t h i s ) ) ; } } ) ; v a r   S l i d e r = n e w   C l a s s ( { I m p l e m e n t s : [ E v e n t s , O p t i o n s ] , B i n d s : [ " c l i c k e d E l e m e n t " , " d r a g g e d K n o b " , " s c r o l l e d E l e m e n t " ] , o p t i o n s : { o n T i c k : f u n c t i o n ( a ) { t h i s . s e t K n o b P o s i t i o n ( a ) ; 
 } , i n i t i a l S t e p : 0 , s n a p : f a l s e , o f f s e t : 0 , r a n g e : f a l s e , w h e e l : f a l s e , s t e p s : 1 0 0 , m o d e : " h o r i z o n t a l " } , i n i t i a l i z e : f u n c t i o n ( f , a , e ) { t h i s . s e t O p t i o n s ( e ) ; e = t h i s . o p t i o n s ; t h i s . e l e m e n t = d o c u m e n t . i d ( f ) ; 
 a = t h i s . k n o b = d o c u m e n t . i d ( a ) ; t h i s . p r e v i o u s C h a n g e = t h i s . p r e v i o u s E n d = t h i s . s t e p = - 1 ; v a r   b = { } , d = { x : f a l s e , y : f a l s e } , g ; s w i t c h ( e . m o d e ) { c a s e " v e r t i c a l " : t h i s . a x i s = " y " ; 
 t h i s . p r o p e r t y = " t o p " ; t h i s . o f f s e t = " o f f s e t H e i g h t " ; b r e a k ; c a s e " h o r i z o n t a l " : t h i s . a x i s = " x " ; t h i s . p r o p e r t y = " l e f t " ; t h i s . o f f s e t = " o f f s e t W i d t h " ; } t h i s . s e t S l i d e r D i m e n s i o n s ( ) ; 
 t h i s . s e t R a n g e ( e . r a n g e ) ; i f ( a . g e t S t y l e ( " p o s i t i o n " ) = = " s t a t i c " ) { a . s e t S t y l e ( " p o s i t i o n " , " r e l a t i v e " ) ; } a . s e t S t y l e ( t h i s . p r o p e r t y , - e . o f f s e t ) ; d [ t h i s . a x i s ] = t h i s . p r o p e r t y ; 
 b [ t h i s . a x i s ] = [ - e . o f f s e t , t h i s . f u l l - e . o f f s e t ] ; v a r   c = { s n a p : 0 , l i m i t : b , m o d i f i e r s : d , o n D r a g : t h i s . d r a g g e d K n o b , o n S t a r t : t h i s . d r a g g e d K n o b , o n B e f o r e S t a r t : ( f u n c t i o n ( ) { t h i s . i s D r a g g i n g = t r u e ; 
 } ) . b i n d ( t h i s ) , o n C a n c e l : f u n c t i o n ( ) { t h i s . i s D r a g g i n g = f a l s e ; } . b i n d ( t h i s ) , o n C o m p l e t e : f u n c t i o n ( ) { t h i s . i s D r a g g i n g = f a l s e ; t h i s . d r a g g e d K n o b ( ) ; t h i s . e n d ( ) ; } . b i n d ( t h i s ) } ; 
 i f ( e . s n a p ) { t h i s . s e t S n a p ( c ) ; } t h i s . d r a g = n e w   D r a g ( a , c ) ; t h i s . a t t a c h ( ) ; i f ( e . i n i t i a l S t e p ! = n u l l ) { t h i s . s e t ( e . i n i t i a l S t e p ) ; } } , a t t a c h : f u n c t i o n ( ) { t h i s . e l e m e n t . a d d E v e n t ( " m o u s e d o w n " , t h i s . c l i c k e d E l e m e n t ) ; 
 i f ( t h i s . o p t i o n s . w h e e l ) { t h i s . e l e m e n t . a d d E v e n t ( " m o u s e w h e e l " , t h i s . s c r o l l e d E l e m e n t ) ; } t h i s . d r a g . a t t a c h ( ) ; r e t u r n   t h i s ; } , d e t a c h : f u n c t i o n ( ) { t h i s . e l e m e n t . r e m o v e E v e n t ( " m o u s e d o w n " , t h i s . c l i c k e d E l e m e n t ) . e l e m e n t . r e m o v e E v e n t ( " m o u s e w h e e l " , t h i s . s c r o l l e d E l e m e n t ) ; 
 t h i s . d r a g . d e t a c h ( ) ; r e t u r n   t h i s ; } , a u t o s i z e : f u n c t i o n ( ) { t h i s . s e t S l i d e r D i m e n s i o n s ( ) . s e t K n o b P o s i t i o n ( t h i s . t o P o s i t i o n ( t h i s . s t e p ) ) ; t h i s . d r a g . o p t i o n s . l i m i t [ t h i s . a x i s ] = [ - t h i s . o p t i o n s . o f f s e t , t h i s . f u l l - t h i s . o p t i o n s . o f f s e t ] ; 
 i f ( t h i s . o p t i o n s . s n a p ) { t h i s . s e t S n a p ( ) ; } r e t u r n   t h i s ; } , s e t S n a p : f u n c t i o n ( a ) { i f ( ! a ) { a = t h i s . d r a g . o p t i o n s ; } a . g r i d = M a t h . c e i l ( t h i s . s t e p W i d t h ) ; a . l i m i t [ t h i s . a x i s ] [ 1 ] = t h i s . f u l l ; 
 r e t u r n   t h i s ; } , s e t K n o b P o s i t i o n : f u n c t i o n ( a ) { i f ( t h i s . o p t i o n s . s n a p ) { a = t h i s . t o P o s i t i o n ( t h i s . s t e p ) ; } t h i s . k n o b . s e t S t y l e ( t h i s . p r o p e r t y , a ) ; r e t u r n   t h i s ; } , s e t S l i d e r D i m e n s i o n s : f u n c t i o n ( ) { t h i s . f u l l = t h i s . e l e m e n t . m e a s u r e ( f u n c t i o n ( ) { t h i s . h a l f = t h i s . k n o b [ t h i s . o f f s e t ] / 2 ; 
 r e t u r n   t h i s . e l e m e n t [ t h i s . o f f s e t ] - t h i s . k n o b [ t h i s . o f f s e t ] + ( t h i s . o p t i o n s . o f f s e t * 2 ) ; } . b i n d ( t h i s ) ) ; r e t u r n   t h i s ; } , s e t : f u n c t i o n ( a ) { i f ( ! ( ( t h i s . r a n g e > 0 ) ^ ( a < t h i s . m i n ) ) ) { a = t h i s . m i n ; 
 } i f ( ! ( ( t h i s . r a n g e > 0 ) ^ ( a > t h i s . m a x ) ) ) { a = t h i s . m a x ; } t h i s . s t e p = M a t h . r o u n d ( a ) ; r e t u r n   t h i s . c h e c k S t e p ( ) . f i r e E v e n t ( " t i c k " , t h i s . t o P o s i t i o n ( t h i s . s t e p ) ) . e n d ( ) ; } , s e t R a n g e : f u n c t i o n ( a , b ) { t h i s . m i n = A r r a y . p i c k ( [ a [ 0 ] , 0 ] ) ; 
 t h i s . m a x = A r r a y . p i c k ( [ a [ 1 ] , t h i s . o p t i o n s . s t e p s ] ) ; t h i s . r a n g e = t h i s . m a x - t h i s . m i n ; t h i s . s t e p s = t h i s . o p t i o n s . s t e p s | | t h i s . f u l l ; t h i s . s t e p S i z e = M a t h . a b s ( t h i s . r a n g e ) / t h i s . s t e p s ; 
 t h i s . s t e p W i d t h = t h i s . s t e p S i z e * t h i s . f u l l / M a t h . a b s ( t h i s . r a n g e ) ; i f ( a ) { t h i s . s e t ( A r r a y . p i c k ( [ b , t h i s . s t e p ] ) . f l o o r ( t h i s . m i n ) . m a x ( t h i s . m a x ) ) ; } r e t u r n   t h i s ; } , c l i c k e d E l e m e n t : f u n c t i o n ( c ) { i f ( t h i s . i s D r a g g i n g | | c . t a r g e t = = t h i s . k n o b ) { r e t u r n ; 
 } v a r   b = t h i s . r a n g e < 0 ? - 1 : 1 , a = c . p a g e [ t h i s . a x i s ] - t h i s . e l e m e n t . g e t P o s i t i o n ( ) [ t h i s . a x i s ] - t h i s . h a l f ; a = a . l i m i t ( - t h i s . o p t i o n s . o f f s e t , t h i s . f u l l - t h i s . o p t i o n s . o f f s e t ) ; 
 t h i s . s t e p = M a t h . r o u n d ( t h i s . m i n + b * t h i s . t o S t e p ( a ) ) ; t h i s . c h e c k S t e p ( ) . f i r e E v e n t ( " t i c k " , a ) . e n d ( ) ; } , s c r o l l e d E l e m e n t : f u n c t i o n ( a ) { v a r   b = ( t h i s . o p t i o n s . m o d e = = " h o r i z o n t a l " ) ? ( a . w h e e l < 0 ) : ( a . w h e e l > 0 ) ; 
 t h i s . s e t ( t h i s . s t e p + ( b ? - 1 : 1 ) * t h i s . s t e p S i z e ) ; a . s t o p ( ) ; } , d r a g g e d K n o b : f u n c t i o n ( ) { v a r   b = t h i s . r a n g e < 0 ? - 1 : 1 , a = t h i s . d r a g . v a l u e . n o w [ t h i s . a x i s ] ; a = a . l i m i t ( - t h i s . o p t i o n s . o f f s e t , t h i s . f u l l - t h i s . o p t i o n s . o f f s e t ) ; 
 t h i s . s t e p = M a t h . r o u n d ( t h i s . m i n + b * t h i s . t o S t e p ( a ) ) ; t h i s . c h e c k S t e p ( ) ; } , c h e c k S t e p : f u n c t i o n ( ) { v a r   a = t h i s . s t e p ; i f ( t h i s . p r e v i o u s C h a n g e ! = a ) { t h i s . p r e v i o u s C h a n g e = a ; 
 t h i s . f i r e E v e n t ( " c h a n g e " , a ) ; } r e t u r n   t h i s ; } , e n d : f u n c t i o n ( ) { v a r   a = t h i s . s t e p ; i f ( t h i s . p r e v i o u s E n d ! = = a ) { t h i s . p r e v i o u s E n d = a ; t h i s . f i r e E v e n t ( " c o m p l e t e " , a + " " ) ; } r e t u r n   t h i s ; 
 } , t o S t e p : f u n c t i o n ( a ) { v a r   b = ( a + t h i s . o p t i o n s . o f f s e t ) * t h i s . s t e p S i z e / t h i s . f u l l * t h i s . s t e p s ; r e t u r n   t h i s . o p t i o n s . s t e p s ? M a t h . r o u n d ( b - = b % t h i s . s t e p S i z e ) : b ; } , t o P o s i t i o n : f u n c t i o n ( a ) { r e t u r n ( t h i s . f u l l * M a t h . a b s ( t h i s . m i n - a ) ) / ( t h i s . s t e p s * t h i s . s t e p S i z e ) - t h i s . o p t i o n s . o f f s e t ; 
 } } ) ; v a r   A s s e t = { j a v a s c r i p t : f u n c t i o n ( f , c ) { i f ( ! c ) { c = { } ; } v a r   a = n e w   E l e m e n t ( " s c r i p t " , { s r c : f , t y p e : " t e x t / j a v a s c r i p t " } ) , g = c . d o c u m e n t | | d o c u m e n t , b = 0 , d = c . o n l o a d | | c . o n L o a d ; 
 v a r   e = d ? f u n c t i o n ( ) { i f ( + + b = = 1 ) { d . c a l l ( t h i s ) ; } } : f u n c t i o n ( ) { } ; d e l e t e   c . o n l o a d ; d e l e t e   c . o n L o a d ; d e l e t e   c . d o c u m e n t ; r e t u r n   a . a d d E v e n t s ( { l o a d : e , r e a d y s t a t e c h a n g e : f u n c t i o n ( ) { i f ( [ " l o a d e d " , " c o m p l e t e " ] . c o n t a i n s ( t h i s . r e a d y S t a t e ) ) { e . c a l l ( t h i s ) ; 
 } } } ) . s e t ( c ) . i n j e c t ( g . h e a d ) ; } , c s s : f u n c t i o n ( d , a ) { i f ( ! a ) { a = { } ; } v a r   b = n e w   E l e m e n t ( " l i n k " , { r e l : " s t y l e s h e e t " , m e d i a : " s c r e e n " , t y p e : " t e x t / c s s " , h r e f : d } ) ; v a r   c = a . o n l o a d | | a . o n L o a d , e = a . d o c u m e n t | | d o c u m e n t ; 
 d e l e t e   a . o n l o a d ; d e l e t e   a . o n L o a d ; d e l e t e   a . d o c u m e n t ; i f ( c ) { b . a d d E v e n t ( " l o a d " , c ) ; } r e t u r n   b . s e t ( a ) . i n j e c t ( e . h e a d ) ; } , i m a g e : f u n c t i o n ( c , b ) { i f ( ! b ) { b = { } ; } v a r   d = n e w   I m a g e ( ) , a = d o c u m e n t . i d ( d ) | | n e w   E l e m e n t ( " i m g " ) ; 
 [ " l o a d " , " a b o r t " , " e r r o r " ] . e a c h ( f u n c t i o n ( e ) { v a r   g = " o n " + e , f = " o n " + e . c a p i t a l i z e ( ) , h = b [ g ] | | b [ f ] | | f u n c t i o n ( ) { } ; d e l e t e   b [ f ] ; d e l e t e   b [ g ] ; d [ g ] = f u n c t i o n ( ) { i f ( ! d ) { r e t u r n ; 
 } i f ( ! a . p a r e n t N o d e ) { a . w i d t h = d . w i d t h ; a . h e i g h t = d . h e i g h t ; } d = d . o n l o a d = d . o n a b o r t = d . o n e r r o r = n u l l ; h . d e l a y ( 1 , a , a ) ; a . f i r e E v e n t ( e , a , 1 ) ; } ; } ) ; d . s r c = a . s r c = c ; i f ( d & & d . c o m p l e t e ) { d . o n l o a d . d e l a y ( 1 ) ; 
 } r e t u r n   a . s e t ( b ) ; } , i m a g e s : f u n c t i o n ( c , b ) { c = A r r a y . f r o m ( c ) ; v a r   d = f u n c t i o n ( ) { } , a = 0 ; b = O b j e c t . m e r g e ( { o n C o m p l e t e : d , o n P r o g r e s s : d , o n E r r o r : d , p r o p e r t i e s : { } } , b ) ; r e t u r n   n e w   E l e m e n t s ( c . m a p ( f u n c t i o n ( f , e ) { r e t u r n   A s s e t . i m a g e ( f , O b j e c t . a p p e n d ( b . p r o p e r t i e s , { o n l o a d : f u n c t i o n ( ) { a + + ; 
 b . o n P r o g r e s s . c a l l ( t h i s , a , e , f ) ; i f ( a = = c . l e n g t h ) { b . o n C o m p l e t e ( ) ; } } , o n e r r o r : f u n c t i o n ( ) { a + + ; b . o n E r r o r . c a l l ( t h i s , a , e , f ) ; i f ( a = = c . l e n g t h ) { b . o n C o m p l e t e ( ) ; } } } ) ) ; 
 } ) ) ; } } ; v a r   S c r o l l e r = n e w   C l a s s ( { I m p l e m e n t s : [ E v e n t s , O p t i o n s ] , o p t i o n s : { a r e a : 2 0 , v e l o c i t y : 1 , o n C h a n g e : f u n c t i o n ( a , b ) { t h i s . e l e m e n t . s c r o l l T o ( a , b ) ; } , f p s : 5 0 } , i n i t i a l i z e : f u n c t i o n ( b , a ) { t h i s . s e t O p t i o n s ( a ) ; 
 t h i s . e l e m e n t = d o c u m e n t . i d ( b ) ; t h i s . d o c B o d y = d o c u m e n t . i d ( t h i s . e l e m e n t . g e t D o c u m e n t ( ) . b o d y ) ; t h i s . l i s t e n e r = ( t y p e O f ( t h i s . e l e m e n t ) ! = " e l e m e n t " ) ? t h i s . d o c B o d y : t h i s . e l e m e n t ; 
 t h i s . t i m e r = n u l l ; t h i s . b o u n d = { a t t a c h : t h i s . a t t a c h . b i n d ( t h i s ) , d e t a c h : t h i s . d e t a c h . b i n d ( t h i s ) , g e t C o o r d s : t h i s . g e t C o o r d s . b i n d ( t h i s ) } ; } , s t a r t : f u n c t i o n ( ) { t h i s . l i s t e n e r . a d d E v e n t s ( { m o u s e o v e r : t h i s . b o u n d . a t t a c h , m o u s e l e a v e : t h i s . b o u n d . d e t a c h } ) ; 
 r e t u r n   t h i s ; } , s t o p : f u n c t i o n ( ) { t h i s . l i s t e n e r . r e m o v e E v e n t s ( { m o u s e o v e r : t h i s . b o u n d . a t t a c h , m o u s e l e a v e : t h i s . b o u n d . d e t a c h } ) ; t h i s . d e t a c h ( ) ; t h i s . t i m e r = c l e a r I n t e r v a l ( t h i s . t i m e r ) ; 
 r e t u r n   t h i s ; } , a t t a c h : f u n c t i o n ( ) { t h i s . l i s t e n e r . a d d E v e n t ( " m o u s e m o v e " , t h i s . b o u n d . g e t C o o r d s ) ; } , d e t a c h : f u n c t i o n ( ) { t h i s . l i s t e n e r . r e m o v e E v e n t ( " m o u s e m o v e " , t h i s . b o u n d . g e t C o o r d s ) ; 
 t h i s . t i m e r = c l e a r I n t e r v a l ( t h i s . t i m e r ) ; } , g e t C o o r d s : f u n c t i o n ( a ) { t h i s . p a g e = ( t h i s . l i s t e n e r . g e t ( " t a g " ) = = " b o d y " ) ? a . c l i e n t : a . p a g e ; i f ( ! t h i s . t i m e r ) { t h i s . t i m e r = t h i s . s c r o l l . p e r i o d i c a l ( M a t h . r o u n d ( 1 0 0 0 / t h i s . o p t i o n s . f p s ) , t h i s ) ; 
 } } , s c r o l l : f u n c t i o n ( ) { v a r   c = t h i s . e l e m e n t . g e t S i z e ( ) , a = t h i s . e l e m e n t . g e t S c r o l l ( ) , h = t h i s . e l e m e n t ! = t h i s . d o c B o d y ? t h i s . e l e m e n t . g e t O f f s e t s ( ) : { x : 0 , y : 0 } , d = t h i s . e l e m e n t . g e t S c r o l l S i z e ( ) , g = { x : 0 , y : 0 } , e = t h i s . o p t i o n s . a r e a . t o p | | t h i s . o p t i o n s . a r e a , b = t h i s . o p t i o n s . a r e a . b o t t o m | | t h i s . o p t i o n s . a r e a ; 
 f o r ( v a r   f   i n   t h i s . p a g e ) { i f ( t h i s . p a g e [ f ] < ( e + h [ f ] ) & & a [ f ] ! = 0 ) { g [ f ] = ( t h i s . p a g e [ f ] - e - h [ f ] ) * t h i s . o p t i o n s . v e l o c i t y ; } e l s e { i f ( t h i s . p a g e [ f ] + b > ( c [ f ] + h [ f ] ) & & a [ f ] + c [ f ] ! = d [ f ] ) { g [ f ] = ( t h i s . p a g e [ f ] - c [ f ] + b - h [ f ] ) * t h i s . o p t i o n s . v e l o c i t y ; 
 } } g [ f ] = g [ f ] . r o u n d ( ) ; } i f ( g . y | | g . x ) { t h i s . f i r e E v e n t ( " c h a n g e " , [ a . x + g . x , a . y + g . y ] ) ; } } } ) ; ( f u n c t i o n ( ) { v a r   a = f u n c t i o n ( c , b ) { r e t u r n ( c ) ? ( t y p e O f ( c ) = = " f u n c t i o n " ? c ( b ) : b . g e t ( c ) ) : " " ; 
 } ; t h i s . T i p s = n e w   C l a s s ( { I m p l e m e n t s : [ E v e n t s , O p t i o n s ] , o p t i o n s : { o n S h o w : f u n c t i o n ( ) { t h i s . t i p . s e t S t y l e ( " d i s p l a y " , " b l o c k " ) ; } , o n H i d e : f u n c t i o n ( ) { t h i s . t i p . s e t S t y l e ( " d i s p l a y " , " n o n e " ) ; 
 } , t i t l e : " t i t l e " , t e x t : f u n c t i o n ( b ) { r e t u r n   b . g e t ( " r e l " ) | | b . g e t ( " h r e f " ) ; } , s h o w D e l a y : 1 0 0 , h i d e D e l a y : 1 0 0 , c l a s s N a m e : " t i p - w r a p " , o f f s e t : { x : 1 6 , y : 1 6 } , w i n d o w P a d d i n g : { x : 0 , y : 0 } , f i x e d : f a l s e } , i n i t i a l i z e : f u n c t i o n ( ) { v a r   b = A r r a y . l i n k ( a r g u m e n t s , { o p t i o n s : T y p e . i s O b j e c t , e l e m e n t s : f u n c t i o n ( c ) { r e t u r n   c ! = n u l l ; 
 } } ) ; t h i s . s e t O p t i o n s ( b . o p t i o n s ) ; i f ( b . e l e m e n t s ) { t h i s . a t t a c h ( b . e l e m e n t s ) ; } t h i s . c o n t a i n e r = n e w   E l e m e n t ( " d i v " , { " c l a s s " : " t i p " } ) ; } , t o E l e m e n t : f u n c t i o n ( ) { i f ( t h i s . t i p ) { r e t u r n   t h i s . t i p ; 
 } t h i s . t i p = n e w   E l e m e n t ( " d i v " , { " c l a s s " : t h i s . o p t i o n s . c l a s s N a m e , s t y l e s : { p o s i t i o n : " a b s o l u t e " , t o p : 0 , l e f t : 0 } } ) . a d o p t ( n e w   E l e m e n t ( " d i v " , { " c l a s s " : " t i p - t o p " } ) , t h i s . c o n t a i n e r , n e w   E l e m e n t ( " d i v " , { " c l a s s " : " t i p - b o t t o m " } ) ) ; 
 r e t u r n   t h i s . t i p ; } , a t t a c h : f u n c t i o n ( b ) { $ $ ( b ) . e a c h ( f u n c t i o n ( d ) { v a r   f = a ( t h i s . o p t i o n s . t i t l e , d ) , e = a ( t h i s . o p t i o n s . t e x t , d ) ; d . s e t ( " t i t l e " , " " ) . s t o r e ( " t i p : n a t i v e " , f ) . r e t r i e v e ( " t i p : t i t l e " , f ) ; 
 d . r e t r i e v e ( " t i p : t e x t " , e ) ; t h i s . f i r e E v e n t ( " a t t a c h " , [ d ] ) ; v a r   c = [ " e n t e r " , " l e a v e " ] ; i f ( ! t h i s . o p t i o n s . f i x e d ) { c . p u s h ( " m o v e " ) ; } c . e a c h ( f u n c t i o n ( h ) { v a r   g = d . r e t r i e v e ( " t i p : " + h ) ; 
 i f ( ! g ) { g = f u n c t i o n ( i ) { t h i s [ " e l e m e n t " + h . c a p i t a l i z e ( ) ] . a p p l y ( t h i s , [ i , d ] ) ; } . b i n d ( t h i s ) ; } d . s t o r e ( " t i p : " + h , g ) . a d d E v e n t ( " m o u s e " + h , g ) ; } , t h i s ) ; } , t h i s ) ; r e t u r n   t h i s ; 
 } , d e t a c h : f u n c t i o n ( b ) { $ $ ( b ) . e a c h ( f u n c t i o n ( d ) { [ " e n t e r " , " l e a v e " , " m o v e " ] . e a c h ( f u n c t i o n ( e ) { d . r e m o v e E v e n t ( " m o u s e " + e , d . r e t r i e v e ( " t i p : " + e ) ) . e l i m i n a t e ( " t i p : " + e ) ; 
 } ) ; t h i s . f i r e E v e n t ( " d e t a c h " , [ d ] ) ; i f ( t h i s . o p t i o n s . t i t l e = = " t i t l e " ) { v a r   c = d . r e t r i e v e ( " t i p : n a t i v e " ) ; i f ( c ) { d . s e t ( " t i t l e " , c ) ; } } } , t h i s ) ; r e t u r n   t h i s ; } , e l e m e n t E n t e r : f u n c t i o n ( c , b ) { c l e a r T i m e o u t ( t h i s . t i m e r ) ; 
 t h i s . t i m e r = ( f u n c t i o n ( ) { t h i s . c o n t a i n e r . e m p t y ( ) ; [ " t i t l e " , " t e x t " ] . e a c h ( f u n c t i o n ( e ) { v a r   d = b . r e t r i e v e ( " t i p : " + e ) ; v a r   f = t h i s [ " _ " + e + " E l e m e n t " ] = n e w   E l e m e n t ( " d i v " , { " c l a s s " : " t i p - " + e } ) . i n j e c t ( t h i s . c o n t a i n e r ) ; 
 i f ( d ) { t h i s . f i l l ( f , d ) ; } } , t h i s ) ; t h i s . s h o w ( b ) ; t h i s . p o s i t i o n ( ( t h i s . o p t i o n s . f i x e d ) ? { p a g e : b . g e t P o s i t i o n ( ) } : c ) ; } ) . d e l a y ( t h i s . o p t i o n s . s h o w D e l a y , t h i s ) ; } , e l e m e n t L e a v e : f u n c t i o n ( c , b ) { c l e a r T i m e o u t ( t h i s . t i m e r ) ; 
 t h i s . t i m e r = t h i s . h i d e . d e l a y ( t h i s . o p t i o n s . h i d e D e l a y , t h i s , b ) ; t h i s . f i r e F o r P a r e n t ( c , b ) ; } , s e t T i t l e : f u n c t i o n ( b ) { i f ( t h i s . _ t i t l e E l e m e n t ) { t h i s . _ t i t l e E l e m e n t . e m p t y ( ) ; 
 t h i s . f i l l ( t h i s . _ t i t l e E l e m e n t , b ) ; } r e t u r n   t h i s ; } , s e t T e x t : f u n c t i o n ( b ) { i f ( t h i s . _ t e x t E l e m e n t ) { t h i s . _ t e x t E l e m e n t . e m p t y ( ) ; t h i s . f i l l ( t h i s . _ t e x t E l e m e n t , b ) ; } r e t u r n   t h i s ; 
 } , f i r e F o r P a r e n t : f u n c t i o n ( c , b ) { b = b . g e t P a r e n t ( ) ; i f ( ! b | | b = = d o c u m e n t . b o d y ) { r e t u r n ; } i f ( b . r e t r i e v e ( " t i p : e n t e r " ) ) { b . f i r e E v e n t ( " m o u s e e n t e r " , c ) ; } e l s e { t h i s . f i r e F o r P a r e n t ( c , b ) ; 
 } } , e l e m e n t M o v e : f u n c t i o n ( c , b ) { t h i s . p o s i t i o n ( c ) ; } , p o s i t i o n : f u n c t i o n ( f ) { i f ( ! t h i s . t i p ) { d o c u m e n t . i d ( t h i s ) ; } v a r   c = w i n d o w . g e t S i z e ( ) , b = w i n d o w . g e t S c r o l l ( ) , g = { x : t h i s . t i p . o f f s e t W i d t h , y : t h i s . t i p . o f f s e t H e i g h t } , d = { x : " l e f t " , y : " t o p " } , e = { y : f a l s e , x 2 : f a l s e , y 2 : f a l s e , x : f a l s e } , h = { } ; 
 f o r ( v a r   i   i n   d ) { h [ d [ i ] ] = f . p a g e [ i ] + t h i s . o p t i o n s . o f f s e t [ i ] ; i f ( h [ d [ i ] ] < 0 ) { e [ i ] = t r u e ; } i f ( ( h [ d [ i ] ] + g [ i ] - b [ i ] ) > c [ i ] - t h i s . o p t i o n s . w i n d o w P a d d i n g [ i ] ) { h [ d [ i ] ] = f . p a g e [ i ] - t h i s . o p t i o n s . o f f s e t [ i ] - g [ i ] ; 
 e [ i + " 2 " ] = t r u e ; } } t h i s . f i r e E v e n t ( " b o u n d " , e ) ; t h i s . t i p . s e t S t y l e s ( h ) ; } , f i l l : f u n c t i o n ( b , c ) { i f ( t y p e o f   c = = " s t r i n g " ) { b . s e t ( " h t m l " , c ) ; } e l s e { b . a d o p t ( c ) ; } } , s h o w : f u n c t i o n ( b ) { i f ( ! t h i s . t i p ) { d o c u m e n t . i d ( t h i s ) ; 
 } i f ( ! t h i s . t i p . g e t P a r e n t ( ) ) { t h i s . t i p . i n j e c t ( d o c u m e n t . b o d y ) ; } t h i s . f i r e E v e n t ( " s h o w " , [ t h i s . t i p , b ] ) ; } , h i d e : f u n c t i o n ( b ) { i f ( ! t h i s . t i p ) { d o c u m e n t . i d ( t h i s ) ; } t h i s . f i r e E v e n t ( " h i d e " , [ t h i s . t i p , b ] ) ; 
 } } ) ; } ) . c a l l ( t h i s ) ; 
 
 
 
 
 / *   C l i e n t c i d e   C o p y r i g h t   ( c )   2 0 0 6 - 2 0 0 9 ,   h t t p : / / w w w . c l i e n t c i d e . c o m / w i k i / c n e t - l i b r a r i e s # l i c e n s e * / 
 
 / / C o n t e n t s :   C l i e n t c i d e ,   C l a s s . T o E l e m e n t ,   S i m p l e C a r o u s e l 
 
 / / T h i s   l i b :   h t t p : / / w w w . c l i e n t c i d e . c o m / j s / b u i l d . p h p ? e x c l u d e L i b s [ ] = m o o t o o l s - c o r e & e x c l u d e L i b s [ ] = m o o t o o l s - m o r e & r e q u i r e [ ] = C l i e n t c i d e & r e q u i r e [ ] = C l a s s . T o E l e m e n t & r e q u i r e [ ] = S i m p l e C a r o u s e l & c o m p r e s s i o n = j s m i n 
 
 v a r   C l i e n t c i d e = { v e r s i o n : ' % b u i l d % ' , a s s e t L o c a t i o n : " h t t p : / / g i t h u b . c o m / a n u t r o n / c l i e n t c i d e / r a w / m a s t e r / A s s e t s " , s e t A s s e t L o c a t i o n : f u n c t i o n ( b a s e H r e f ) { C l i e n t c i d e . a s s e t L o c a t i o n = b a s e H r e f ; i f ( C l i e n t c i d e . p r e l o a d e d ) C l i e n t c i d e . p r e L o a d C s s ( ) ; } , p r e L o a d C s s : f u n c t i o n ( ) { i f ( w i n d o w . S t i c k y W i n & & S t i c k y W i n . u i ) S t i c k y W i n . u i ( ) ; i f ( w i n d o w . S t i c k y W i n & & S t i c k y W i n . p o i n t y ) S t i c k y W i n . p o i n t y ( ) ; C l i e n t c i d e . p r e l o a d e d = t r u e ; r e t u r n   t r u e ; } , p r e l o a d e d : f a l s e } ; ( f u n c t i o n ( ) { i f ( ! w i n d o w . a d d E v e n t ) r e t u r n ; v a r   p r e l o a d = f u n c t i o n ( ) { i f ( w i n d o w . d b u g ) d b u g . l o g ( ' p r e l o a d i n g   c l i e n t c i d e   c s s ' ) ; i f ( ! C l i e n t c i d e . p r e l o a d e d ) C l i e n t c i d e . p r e L o a d C s s ( ) ; } ; w i n d o w . a d d E v e n t ( ' d o m r e a d y ' , p r e l o a d ) ; w i n d o w . a d d E v e n t ( ' l o a d ' , p r e l o a d ) ; } ) ( ) ; s e t C N E T A s s e t B a s e H r e f = C l i e n t c i d e . s e t A s s e t L o c a t i o n ; 
 C l a s s . T o E l e m e n t = n e w   C l a s s ( { t o E l e m e n t : f u n c t i o n ( ) { r e t u r n   t h i s . e l e m e n t ; } } ) ; v a r   T o E l e m e n t = C l a s s . T o E l e m e n t ; 
 v a r   S i m p l e C a r o u s e l = n e w   C l a s s ( { I m p l e m e n t s : [ O p t i o n s , E v e n t s ] , o p t i o n s : { s l i d e I n t e r v a l : 4 0 0 0 , t r a n s i t i o n D u r a t i o n : 7 0 0 , s t a r t I n d e x : 0 , b u t t o n O n C l a s s : " s e l e c t e d " , b u t t o n O f f C l a s s : " o f f " , r o t a t e A c t i o n : " n o n e " , r o t a t e A c t i o n D u r a t i o n : 1 0 0 , a u t o p l a y : t r u e } , i n i t i a l i z e : f u n c t i o n ( c o n t a i n e r , s l i d e s , b u t t o n s , o p t i o n s ) { t h i s . c o n t a i n e r = d o c u m e n t . i d ( c o n t a i n e r ) ; v a r   i n s t a n c e = t h i s . c o n t a i n e r . r e t r i e v e ( ' S i m p l e C a r o u s e l I n s t a n c e ' ) ; i f ( i n s t a n c e ) r e t u r n   i n s t a n c e ; t h i s . c o n t a i n e r . s t o r e ( ' S i m p l e C a r o u s e l I n s t a n c e ' , t h i s ) ; t h i s . s e t O p t i o n s ( o p t i o n s ) ; t h i s . c o n t a i n e r . a d d C l a s s ( ' h a s C a r o u s e l ' ) ; t h i s . s l i d e s = $ $ ( s l i d e s ) ; t h i s . b u t t o n s = $ $ ( b u t t o n s ) ; t h i s . c r e a t e F x ( ) ; t h i s . s h o w S l i d e ( t h i s . o p t i o n s . s t a r t I n d e x ) ; i f ( t h i s . o p t i o n s . a u t o p l a y ) t h i s . a u t o p l a y ( ) ; i f ( t h i s . o p t i o n s . r o t a t e A c t i o n ! = ' n o n e ' ) t h i s . s e t u p A c t i o n ( t h i s . o p t i o n s . r o t a t e A c t i o n ) ; r e t u r n   t h i s ; } , t o E l e m e n t : f u n c t i o n ( ) { r e t u r n   t h i s . c o n t a i n e r ; } , s e t u p A c t i o n : f u n c t i o n ( a c t i o n ) { t h i s . b u t t o n s . e a c h ( f u n c t i o n ( e l , i d x ) { d o c u m e n t . i d ( e l ) . a d d E v e n t ( a c t i o n , f u n c t i o n ( ) { t h i s . s l i d e F x . s e t O p t i o n s ( t h i s . s l i d e F x . o p t i o n s , { d u r a t i o n : t h i s . o p t i o n s . r o t a t e A c t i o n D u r a t i o n } ) ; i f ( t h i s . c u r r e n t S l i d e ! = i d x ) t h i s . s h o w S l i d e ( i d x ) ; t h i s . s t o p ( ) ; } . b i n d ( t h i s ) ) ; } , t h i s ) ; } , c r e a t e F x : f u n c t i o n ( ) { i f ( ! t h i s . s l i d e F x ) t h i s . s l i d e F x = n e w   F x . E l e m e n t s ( t h i s . s l i d e s , { d u r a t i o n : t h i s . o p t i o n s . t r a n s i t i o n D u r a t i o n } ) ; t h i s . s l i d e s . e a c h ( f u n c t i o n ( s l i d e ) { s l i d e . s e t S t y l e ( ' o p a c i t y ' , 0 ) ; } ) ; } , s h o w S l i d e : f u n c t i o n ( s l i d e I n d e x ) { v a r   a c t i o n = { } ; t h i s . s l i d e s . e a c h ( f u n c t i o n ( s l i d e , i n d e x ) { i f ( i n d e x = = s l i d e I n d e x & & i n d e x ! = t h i s . c u r r e n t S l i d e ) { i f ( d o c u m e n t . i d ( t h i s . b u t t o n s [ i n d e x ] ) ) d o c u m e n t . i d ( t h i s . b u t t o n s [ i n d e x ] ) . s w a p C l a s s ( t h i s . o p t i o n s . b u t t o n O f f C l a s s , t h i s . o p t i o n s . b u t t o n O n C l a s s ) ; a c t i o n [ i n d e x . t o S t r i n g ( ) ] = { o p a c i t y : 1 } ; } e l s e { i f ( d o c u m e n t . i d ( t h i s . b u t t o n s [ i n d e x ] ) ) d o c u m e n t . i d ( t h i s . b u t t o n s [ i n d e x ] ) . s w a p C l a s s ( t h i s . o p t i o n s . b u t t o n O n C l a s s , t h i s . o p t i o n s . b u t t o n O f f C l a s s ) ; a c t i o n [ i n d e x . t o S t r i n g ( ) ] = { o p a c i t y : 0 } ; } } , t h i s ) ; t h i s . f i r e E v e n t ( ' o n S h o w S l i d e ' , s l i d e I n d e x ) ; t h i s . c u r r e n t S l i d e = s l i d e I n d e x ; t h i s . s l i d e F x . s t a r t ( a c t i o n ) ; r e t u r n   t h i s ; } , a u t o p l a y : f u n c t i o n ( ) { t h i s . s l i d e s h o w I n t = t h i s . r o t a t e . p e r i o d i c a l ( t h i s . o p t i o n s . s l i d e I n t e r v a l , t h i s ) ; t h i s . f i r e E v e n t ( ' o n A u t o P l a y ' ) ; r e t u r n   t h i s ; } , s t o p : f u n c t i o n ( ) { $ c l e a r ( t h i s . s l i d e s h o w I n t ) ; t h i s . f i r e E v e n t ( ' o n S t o p ' ) ; r e t u r n   t h i s ; } , r o t a t e : f u n c t i o n ( ) { v a r   c u r r e n t = t h i s . c u r r e n t S l i d e ; v a r   n e x t = ( c u r r e n t + 1 > = t h i s . s l i d e s . l e n g t h ) ? 0 : c u r r e n t + 1 ; t h i s . s h o w S l i d e ( n e x t ) ; t h i s . f i r e E v e n t ( ' o n R o t a t e ' , n e x t ) ; r e t u r n   t h i s ; } } ) ; 
