ÿþ/ * ! 
   *   j Q u e r y   J a v a S c r i p t   L i b r a r y   v 1 . 6 . 1 
   *   h t t p : / / j q u e r y . c o m / 
   * 
   *   C o p y r i g h t   2 0 1 1 ,   J o h n   R e s i g 
   *   D u a l   l i c e n s e d   u n d e r   t h e   M I T   o r   G P L   V e r s i o n   2   l i c e n s e s . 
   *   h t t p : / / j q u e r y . o r g / l i c e n s e 
   * 
   *   I n c l u d e s   S i z z l e . j s 
   *   h t t p : / / s i z z l e j s . c o m / 
   *   C o p y r i g h t   2 0 1 1 ,   T h e   D o j o   F o u n d a t i o n 
   *   R e l e a s e d   u n d e r   t h e   M I T ,   B S D ,   a n d   G P L   L i c e n s e s . 
   * 
   *   D a t e :   T h u   M a y   1 2   1 5 : 0 4 : 3 6   2 0 1 1   - 0 4 0 0 
   * / 
 ( f u n c t i o n ( a , b ) { f u n c t i o n   c y ( a ) { r e t u r n   f . i s W i n d o w ( a ) ? a : a . n o d e T y p e = = = 9 ? a . d e f a u l t V i e w | | a . p a r e n t W i n d o w : ! 1 } f u n c t i o n   c v ( a ) { i f ( ! c j [ a ] ) { v a r   b = f ( " < " + a + " > " ) . a p p e n d T o ( " b o d y " ) , d = b . c s s ( " d i s p l a y " ) ; b . r e m o v e ( ) ; i f ( d = = = " n o n e " | | d = = = " " ) { c k | | ( c k = c . c r e a t e E l e m e n t ( " i f r a m e " ) , c k . f r a m e B o r d e r = c k . w i d t h = c k . h e i g h t = 0 ) , c . b o d y . a p p e n d C h i l d ( c k ) ; i f ( ! c l | | ! c k . c r e a t e E l e m e n t ) c l = ( c k . c o n t e n t W i n d o w | | c k . c o n t e n t D o c u m e n t ) . d o c u m e n t , c l . w r i t e ( " < ! d o c t y p e > < h t m l > < b o d y > < / b o d y > < / h t m l > " ) ; b = c l . c r e a t e E l e m e n t ( a ) , c l . b o d y . a p p e n d C h i l d ( b ) , d = f . c s s ( b , " d i s p l a y " ) , c . b o d y . r e m o v e C h i l d ( c k ) } c j [ a ] = d } r e t u r n   c j [ a ] } f u n c t i o n   c u ( a , b ) { v a r   c = { } ; f . e a c h ( c p . c o n c a t . a p p l y ( [ ] , c p . s l i c e ( 0 , b ) ) , f u n c t i o n ( ) { c [ t h i s ] = a } ) ; r e t u r n   c } f u n c t i o n   c t ( ) { c q = b } f u n c t i o n   c s ( ) { s e t T i m e o u t ( c t , 0 ) ; r e t u r n   c q = f . n o w ( ) } f u n c t i o n   c i ( ) { t r y { r e t u r n   n e w   a . 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 " ) } c a t c h ( b ) { } } f u n c t i o n   c h ( ) { t r y { r e t u r n   n e w   a . X M L H t t p R e q u e s t } c a t c h ( b ) { } } f u n c t i o n   c b ( a , c ) { a . d a t a F i l t e r & & ( c = a . d a t a F i l t e r ( c , a . d a t a T y p e ) ) ; v a r   d = a . d a t a T y p e s , e = { } , g , h , i = d . l e n g t h , j , k = d [ 0 ] , l , m , n , o , p ; f o r ( g = 1 ; g < i ; g + + ) { i f ( g = = = 1 ) f o r ( h   i n   a . c o n v e r t e r s ) t y p e o f   h = = " s t r i n g " & & ( e [ h . t o L o w e r C a s e ( ) ] = a . c o n v e r t e r s [ h ] ) ; l = k , k = d [ g ] ; i f ( k = = = " * " ) k = l ; e l s e   i f ( l ! = = " * " & & l ! = = k ) { m = l + "   " + k , n = e [ m ] | | e [ " *   " + k ] ; i f ( ! n ) { p = b ; f o r ( o   i n   e ) { j = o . s p l i t ( "   " ) ; i f ( j [ 0 ] = = = l | | j [ 0 ] = = = " * " ) { p = e [ j [ 1 ] + "   " + k ] ; i f ( p ) { o = e [ o ] , o = = = ! 0 ? n = p : p = = = ! 0 & & ( n = o ) ; b r e a k } } } } ! n & & ! p & & f . e r r o r ( " N o   c o n v e r s i o n   f r o m   " + m . r e p l a c e ( "   " , "   t o   " ) ) , n ! = = ! 0 & & ( c = n ? n ( c ) : p ( o ( c ) ) ) } } r e t u r n   c } f u n c t i o n   c a ( a , c , d ) { v a r   e = a . c o n t e n t s , f = a . d a t a T y p e s , g = a . r e s p o n s e F i e l d s , h , i , j , k ; f o r ( i   i n   g ) i   i n   d & & ( c [ g [ i ] ] = d [ i ] ) ; w h i l e ( f [ 0 ] = = = " * " ) f . s h i f t ( ) , h = = = b & & ( h = a . m i m e T y p e | | c . g e t R e s p o n s e H e a d e r ( " c o n t e n t - t y p e " ) ) ; i f ( h ) f o r ( i   i n   e ) i f ( e [ i ] & & e [ i ] . t e s t ( h ) ) { f . u n s h i f t ( i ) ; b r e a k } i f ( f [ 0 ] i n   d ) j = f [ 0 ] ; e l s e { f o r ( i   i n   d ) { i f ( ! f [ 0 ] | | a . c o n v e r t e r s [ i + "   " + f [ 0 ] ] ) { j = i ; b r e a k } k | | ( k = i ) } j = j | | k } i f ( j ) { j ! = = f [ 0 ] & & f . u n s h i f t ( j ) ; r e t u r n   d [ j ] } } f u n c t i o n   b _ ( a , b , c , d ) { i f ( f . i s A r r a y ( b ) ) f . e a c h ( b , f u n c t i o n ( b , e ) { c | | b F . t e s t ( a ) ? d ( a , e ) : b _ ( a + " [ " + ( t y p e o f   e = = " o b j e c t " | | f . i s A r r a y ( e ) ? b : " " ) + " ] " , e , c , d ) } ) ; e l s e   i f ( ! c & & b ! = n u l l & & t y p e o f   b = = " o b j e c t " ) f o r ( v a r   e   i n   b ) b _ ( a + " [ " + e + " ] " , b [ e ] , c , d ) ; e l s e   d ( a , b ) } f u n c t i o n   b $ ( a , c , d , e , f , g ) { f = f | | c . d a t a T y p e s [ 0 ] , g = g | | { } , g [ f ] = ! 0 ; v a r   h = a [ f ] , i = 0 , j = h ? h . l e n g t h : 0 , k = a = = = b U , l ; f o r ( ; i < j & & ( k | | ! l ) ; i + + ) l = h [ i ] ( c , d , e ) , t y p e o f   l = = " s t r i n g " & & ( ! k | | g [ l ] ? l = b : ( c . d a t a T y p e s . u n s h i f t ( l ) , l = b $ ( a , c , d , e , l , g ) ) ) ; ( k | | ! l ) & & ! g [ " * " ] & & ( l = b $ ( a , c , d , e , " * " , g ) ) ; r e t u r n   l } f u n c t i o n   b Z ( a ) { r e t u r n   f u n c t i o n ( b , c ) { t y p e o f   b ! = " s t r i n g " & & ( c = b , b = " * " ) ; i f ( f . i s F u n c t i o n ( c ) ) { v a r   d = b . t o L o w e r C a s e ( ) . s p l i t ( b Q ) , e = 0 , g = d . l e n g t h , h , i , j ; f o r ( ; e < g ; e + + ) h = d [ e ] , j = / ^ \ + / . t e s t ( h ) , j & & ( h = h . s u b s t r ( 1 ) | | " * " ) , i = a [ h ] = a [ h ] | | [ ] , i [ j ? " u n s h i f t " : " p u s h " ] ( c ) } } } f u n c t i o n   b D ( a , b , c ) { v a r   d = b = = = " w i d t h " ? b x : b y , e = b = = = " w i d t h " ? a . o f f s e t W i d t h : a . o f f s e t H e i g h t ; i f ( c = = = " b o r d e r " ) r e t u r n   e ; f . e a c h ( d , f u n c t i o n ( ) { c | | ( e - = p a r s e F l o a t ( f . c s s ( a , " p a d d i n g " + t h i s ) ) | | 0 ) , c = = = " m a r g i n " ? e + = p a r s e F l o a t ( f . c s s ( a , " m a r g i n " + t h i s ) ) | | 0 : e - = p a r s e F l o a t ( f . c s s ( a , " b o r d e r " + t h i s + " W i d t h " ) ) | | 0 } ) ; r e t u r n   e } f u n c t i o n   b n ( a , b ) { b . s r c ? f . a j a x ( { u r l : b . s r c , a s y n c : ! 1 , d a t a T y p e : " s c r i p t " } ) : f . g l o b a l E v a l ( ( b . t e x t | | b . t e x t C o n t e n t | | b . i n n e r H T M L | | " " ) . r e p l a c e ( b f , " / * $ 0 * / " ) ) , b . p a r e n t N o d e & & b . p a r e n t N o d e . r e m o v e C h i l d ( b ) } f u n c t i o n   b m ( a ) { f . n o d e N a m e ( a , " i n p u t " ) ? b l ( a ) : a . g e t E l e m e n t s B y T a g N a m e & & f . g r e p ( a . g e t E l e m e n t s B y T a g N a m e ( " i n p u t " ) , b l ) } f u n c t i o n   b l ( a ) { i f ( a . t y p e = = = " c h e c k b o x " | | a . t y p e = = = " r a d i o " ) a . d e f a u l t C h e c k e d = a . c h e c k e d } f u n c t i o n   b k ( a ) { r e t u r n " g e t E l e m e n t s B y T a g N a m e " i n   a ? a . g e t E l e m e n t s B y T a g N a m e ( " * " ) : " q u e r y S e l e c t o r A l l " i n   a ? a . q u e r y S e l e c t o r A l l ( " * " ) : [ ] } f u n c t i o n   b j ( a , b ) { v a r   c ; i f ( b . n o d e T y p e = = = 1 ) { b . c l e a r A t t r i b u t e s & & b . c l e a r A t t r i b u t e s ( ) , b . m e r g e A t t r i b u t e s & & b . m e r g e A t t r i b u t e s ( a ) , c = b . n o d e N a m e . t o L o w e r C a s e ( ) ; i f ( c = = = " o b j e c t " ) b . o u t e r H T M L = a . o u t e r H T M L ; e l s e   i f ( c ! = = " i n p u t " | | a . t y p e ! = = " c h e c k b o x " & & a . t y p e ! = = " r a d i o " ) { i f ( c = = = " o p t i o n " ) b . s e l e c t e d = a . d e f a u l t S e l e c t e d ; e l s e   i f ( c = = = " i n p u t " | | c = = = " t e x t a r e a " ) b . d e f a u l t V a l u e = a . d e f a u l t V a l u e } e l s e   a . c h e c k e d & & ( b . d e f a u l t C h e c k e d = b . c h e c k e d = a . c h e c k e d ) , b . v a l u e ! = = a . v a l u e & & ( b . v a l u e = a . v a l u e ) ; b . r e m o v e A t t r i b u t e ( f . e x p a n d o ) } } f u n c t i o n   b i ( a , b ) { i f ( b . n o d e T y p e = = = 1 & & ! ! f . h a s D a t a ( a ) ) { v a r   c = f . e x p a n d o , d = f . d a t a ( a ) , e = f . d a t a ( b , d ) ; i f ( d = d [ c ] ) { v a r   g = d . e v e n t s ; e = e [ c ] = f . e x t e n d ( { } , d ) ; i f ( g ) { d e l e t e   e . h a n d l e , e . e v e n t s = { } ; f o r ( v a r   h   i n   g ) f o r ( v a r   i = 0 , j = g [ h ] . l e n g t h ; i < j ; i + + ) f . e v e n t . a d d ( b , h + ( g [ h ] [ i ] . n a m e s p a c e ? " . " : " " ) + g [ h ] [ i ] . n a m e s p a c e , g [ h ] [ i ] , g [ h ] [ i ] . d a t a ) } } } } f u n c t i o n   b h ( a , b ) { r e t u r n   f . n o d e N a m e ( a , " t a b l e " ) ? a . g e t E l e m e n t s B y T a g N a m e ( " t b o d y " ) [ 0 ] | | a . a p p e n d C h i l d ( a . o w n e r D o c u m e n t . c r e a t e E l e m e n t ( " t b o d y " ) ) : a } f u n c t i o n   X ( a , b , c ) { b = b | | 0 ; i f ( f . i s F u n c t i o n ( b ) ) r e t u r n   f . g r e p ( a , f u n c t i o n ( a , d ) { v a r   e = ! ! b . c a l l ( a , d , a ) ; r e t u r n   e = = = c } ) ; i f ( b . n o d e T y p e ) r e t u r n   f . g r e p ( a , f u n c t i o n ( a , d ) { r e t u r n   a = = = b = = = c } ) ; i f ( t y p e o f   b = = " s t r i n g " ) { v a r   d = f . g r e p ( a , f u n c t i o n ( a ) { r e t u r n   a . n o d e T y p e = = = 1 } ) ; i f ( S . t e s t ( b ) ) r e t u r n   f . f i l t e r ( b , d , ! c ) ; b = f . f i l t e r ( b , d ) } r e t u r n   f . g r e p ( a , f u n c t i o n ( a , d ) { r e t u r n   f . i n A r r a y ( a , b ) > = 0 = = = c } ) } f u n c t i o n   W ( a ) { r e t u r n ! a | | ! a . p a r e n t N o d e | | a . p a r e n t N o d e . n o d e T y p e = = = 1 1 } f u n c t i o n   O ( a , b ) { r e t u r n ( a & & a ! = = " * " ? a + " . " : " " ) + b . r e p l a c e ( A , " ` " ) . r e p l a c e ( B , " & " ) } f u n c t i o n   N ( a ) { v a r   b , c , d , e , g , h , i , j , k , l , m , n , o , p = [ ] , q = [ ] , r = f . _ d a t a ( t h i s , " e v e n t s " ) ; i f ( ! ( a . l i v e F i r e d = = = t h i s | | ! r | | ! r . l i v e | | a . t a r g e t . d i s a b l e d | | a . b u t t o n & & a . t y p e = = = " c l i c k " ) ) { a . n a m e s p a c e & & ( n = n e w   R e g E x p ( " ( ^ | \ \ . ) " + a . n a m e s p a c e . s p l i t ( " . " ) . j o i n ( " \ \ . ( ? : . * \ \ . ) ? " ) + " ( \ \ . | $ ) " ) ) , a . l i v e F i r e d = t h i s ; v a r   s = r . l i v e . s l i c e ( 0 ) ; f o r ( i = 0 ; i < s . l e n g t h ; i + + ) g = s [ i ] , g . o r i g T y p e . r e p l a c e ( y , " " ) = = = a . t y p e ? q . p u s h ( g . s e l e c t o r ) : s . s p l i c e ( i - - , 1 ) ; e = f ( a . t a r g e t ) . c l o s e s t ( q , a . c u r r e n t T a r g e t ) ; f o r ( j = 0 , k = e . l e n g t h ; j < k ; j + + ) { m = e [ j ] ; f o r ( i = 0 ; i < s . l e n g t h ; i + + ) { g = s [ i ] ; i f ( m . s e l e c t o r = = = g . s e l e c t o r & & ( ! n | | n . t e s t ( g . n a m e s p a c e ) ) & & ! m . e l e m . d i s a b l e d ) { h = m . e l e m , d = n u l l ; i f ( g . p r e T y p e = = = " m o u s e e n t e r " | | g . p r e T y p e = = = " m o u s e l e a v e " ) a . t y p e = g . p r e T y p e , d = f ( a . r e l a t e d T a r g e t ) . c l o s e s t ( g . s e l e c t o r ) [ 0 ] , d & & f . c o n t a i n s ( h , d ) & & ( d = h ) ; ( ! d | | d ! = = h ) & & p . p u s h ( { e l e m : h , h a n d l e O b j : g , l e v e l : m . l e v e l } ) } } } f o r ( j = 0 , k = p . l e n g t h ; j < k ; j + + ) { e = p [ j ] ; i f ( c & & e . l e v e l > c ) b r e a k ; a . c u r r e n t T a r g e t = e . e l e m , a . d a t a = e . h a n d l e O b j . d a t a , a . h a n d l e O b j = e . h a n d l e O b j , o = e . h a n d l e O b j . o r i g H a n d l e r . a p p l y ( e . e l e m , a r g u m e n t s ) ; i f ( o = = = ! 1 | | a . i s P r o p a g a t i o n S t o p p e d ( ) ) { c = e . l e v e l , o = = = ! 1 & & ( b = ! 1 ) ; i f ( a . i s I m m e d i a t e P r o p a g a t i o n S t o p p e d ( ) ) b r e a k } } r e t u r n   b } } f u n c t i o n   L ( a , c , d ) { v a r   e = f . e x t e n d ( { } , d [ 0 ] ) ; e . t y p e = a , e . o r i g i n a l E v e n t = { } , e . l i v e F i r e d = b , f . e v e n t . h a n d l e . c a l l ( c , e ) , e . i s D e f a u l t P r e v e n t e d ( ) & & d [ 0 ] . p r e v e n t D e f a u l t ( ) } f u n c t i o n   F ( ) { r e t u r n ! 0 } f u n c t i o n   E ( ) { r e t u r n ! 1 } f u n c t i o n   m ( a , c , d ) { v a r   e = c + " d e f e r " , g = c + " q u e u e " , h = c + " m a r k " , i = f . d a t a ( a , e , b , ! 0 ) ; i & & ( d = = = " q u e u e " | | ! f . d a t a ( a , g , b , ! 0 ) ) & & ( d = = = " m a r k " | | ! f . d a t a ( a , h , b , ! 0 ) ) & & s e t T i m e o u t ( f u n c t i o n ( ) { ! f . d a t a ( a , g , b , ! 0 ) & & ! f . d a t a ( a , h , b , ! 0 ) & & ( f . r e m o v e D a t a ( a , e , ! 0 ) , i . r e s o l v e ( ) ) } , 0 ) } f u n c t i o n   l ( a ) { f o r ( v a r   b   i n   a ) i f ( b ! = = " t o J S O N " ) r e t u r n ! 1 ; r e t u r n ! 0 } f u n c t i o n   k ( a , c , d ) { i f ( d = = = b & & a . n o d e T y p e = = = 1 ) { v a r   e = " d a t a - " + c . r e p l a c e ( j , " $ 1 - $ 2 " ) . t o L o w e r C a s e ( ) ; d = a . g e t A t t r i b u t e ( e ) ; i f ( t y p e o f   d = = " s t r i n g " ) { t r y { d = d = = = " t r u e " ? ! 0 : d = = = " f a l s e " ? ! 1 : d = = = " n u l l " ? n u l l : f . i s N a N ( d ) ? i . t e s t ( d ) ? f . p a r s e J S O N ( d ) : d : p a r s e F l o a t ( d ) } c a t c h ( g ) { } f . d a t a ( a , c , d ) } e l s e   d = b } r e t u r n   d } v a r   c = a . d o c u m e n t , d = a . n a v i g a t o r , e = a . l o c a t i o n , f = f u n c t i o n ( ) { f u n c t i o n   H ( ) { i f ( ! e . i s R e a d y ) { t r y { c . d o c u m e n t E l e m e n t . d o S c r o l l ( " l e f t " ) } c a t c h ( a ) { s e t T i m e o u t ( H , 1 ) ; r e t u r n } e . r e a d y ( ) } } v a r   e = f u n c t i o n ( a , b ) { r e t u r n   n e w   e . f n . i n i t ( a , b , h ) } , f = a . j Q u e r y , g = a . $ , h , i = / ^ ( ? : [ ^ < ] * ( < [ \ w \ W ] + > ) [ ^ > ] * $ | # ( [ \ w \ - ] * ) $ ) / , j = / \ S / , k = / ^ \ s + / , l = / \ s + $ / , m = / \ d / , n = / ^ < ( \ w + ) \ s * \ / ? > ( ? : < \ / \ 1 > ) ? $ / , o = / ^ [ \ ] , : { } \ s ] * $ / , p = / \ \ ( ? : [ " \ \ \ / b f n r t ] | u [ 0 - 9 a - f A - F ] { 4 } ) / g , q = / " [ ^ " \ \ \ n \ r ] * " | t r u e | f a l s e | n u l l | - ? \ d + ( ? : \ . \ d * ) ? ( ? : [ e E ] [ + \ - ] ? \ d + ) ? / g , r = / ( ? : ^ | : | , ) ( ? : \ s * \ [ ) + / g , s = / ( w e b k i t ) [   \ / ] ( [ \ w . ] + ) / , t = / ( o p e r a ) ( ? : . * v e r s i o n ) ? [   \ / ] ( [ \ w . ] + ) / , u = / ( m s i e )   ( [ \ w . ] + ) / , v = / ( m o z i l l a ) ( ? : . * ?   r v : ( [ \ w . ] + ) ) ? / , w = d . u s e r A g e n t , x , y , z , A = O b j e c t . p r o t o t y p e . t o S t r i n g , B = O b j e c t . p r o t o t y p e . h a s O w n P r o p e r t y , C = A r r a y . p r o t o t y p e . p u s h , D = A r r a y . p r o t o t y p e . s l i c e , E = S t r i n g . p r o t o t y p e . t r i m , F = A r r a y . p r o t o t y p e . i n d e x O f , G = { } ; e . f n = e . p r o t o t y p e = { c o n s t r u c t o r : e , i n i t : f u n c t i o n ( a , d , f ) { v a r   g , h , j , k ; i f ( ! a ) r e t u r n   t h i s ; i f ( a . n o d e T y p e ) { t h i s . c o n t e x t = t h i s [ 0 ] = a , t h i s . l e n g t h = 1 ; r e t u r n   t h i s } i f ( a = = = " b o d y " & & ! d & & c . b o d y ) { t h i s . c o n t e x t = c , t h i s [ 0 ] = c . b o d y , t h i s . s e l e c t o r = a , t h i s . l e n g t h = 1 ; r e t u r n   t h i s } i f ( t y p e o f   a = = " s t r i n g " ) { a . c h a r A t ( 0 ) ! = = " < " | | a . c h a r A t ( a . l e n g t h - 1 ) ! = = " > " | | a . l e n g t h < 3 ? g = i . e x e c ( a ) : g = [ n u l l , a , n u l l ] ; i f ( g & & ( g [ 1 ] | | ! d ) ) { i f ( g [ 1 ] ) { d = d   i n s t a n c e o f   e ? d [ 0 ] : d , k = d ? d . o w n e r D o c u m e n t | | d : c , j = n . e x e c ( a ) , j ? e . i s P l a i n O b j e c t ( d ) ? ( a = [ c . c r e a t e E l e m e n t ( j [ 1 ] ) ] , e . f n . a t t r . c a l l ( a , d , ! 0 ) ) : a = [ k . c r e a t e E l e m e n t ( j [ 1 ] ) ] : ( j = e . b u i l d F r a g m e n t ( [ g [ 1 ] ] , [ k ] ) , a = ( j . c a c h e a b l e ? e . c l o n e ( j . f r a g m e n t ) : j . f r a g m e n t ) . c h i l d N o d e s ) ; r e t u r n   e . m e r g e ( t h i s , a ) } h = c . g e t E l e m e n t B y I d ( g [ 2 ] ) ; i f ( h & & h . p a r e n t N o d e ) { i f ( h . i d ! = = g [ 2 ] ) r e t u r n   f . f i n d ( a ) ; t h i s . l e n g t h = 1 , t h i s [ 0 ] = h } t h i s . c o n t e x t = c , t h i s . s e l e c t o r = a ; r e t u r n   t h i s } r e t u r n ! d | | d . j q u e r y ? ( d | | f ) . f i n d ( a ) : t h i s . c o n s t r u c t o r ( d ) . f i n d ( a ) } i f ( e . i s F u n c t i o n ( a ) ) r e t u r n   f . r e a d y ( a ) ; a . s e l e c t o r ! = = b & & ( t h i s . s e l e c t o r = a . s e l e c t o r , t h i s . c o n t e x t = a . c o n t e x t ) ; r e t u r n   e . m a k e A r r a y ( a , t h i s ) } , s e l e c t o r : " " , j q u e r y : " 1 . 6 . 1 " , l e n g t h : 0 , s i z 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 o A r r a y : f u n c t i o n ( ) { r e t u r n   D . c a l l ( t h i s , 0 ) } , g e t : f u n c t i o n ( a ) { r e t u r n   a = = n u l l ? t h i s . t o A r r a y ( ) : a < 0 ? t h i s [ t h i s . l e n g t h + a ] : t h i s [ a ] } , p u s h S t a c k : f u n c t i o n ( a , b , c ) { v a r   d = t h i s . c o n s t r u c t o r ( ) ; e . i s A r r a y ( a ) ? C . a p p l y ( d , a ) : e . m e r g e ( d , a ) , d . p r e v O b j e c t = t h i s , d . c o n t e x t = t h i s . c o n t e x t , b = = = " f i n d " ? d . s e l e c t o r = t h i s . s e l e c t o r + ( t h i s . s e l e c t o r ? "   " : " " ) + c : b & & ( d . s e l e c t o r = t h i s . s e l e c t o r + " . " + b + " ( " + c + " ) " ) ; r e t u r n   d } , e a c h : f u n c t i o n ( a , b ) { r e t u r n   e . e a c h ( t h i s , a , b ) } , r e a d y : f u n c t i o n ( a ) { e . b i n d R e a d y ( ) , y . d o n e ( a ) ; r e t u r n   t h i s } , e q : f u n c t i o n ( a ) { r e t u r n   a = = = - 1 ? t h i s . s l i c e ( a ) : t h i s . s l i c e ( a , + a + 1 ) } , f i r s t : f u n c t i o n ( ) { r e t u r n   t h i s . e q ( 0 ) } , l a s t : f u n c t i o n ( ) { r e t u r n   t h i s . e q ( - 1 ) } , s l i c e : f u n c t i o n ( ) { r e t u r n   t h i s . p u s h S t a c k ( D . a p p l y ( t h i s , a r g u m e n t s ) , " s l i c e " , D . c a l l ( a r g u m e n t s ) . j o i n ( " , " ) ) } , m a p : f u n c t i o n ( a ) { r e t u r n   t h i s . p u s h S t a c k ( e . m a p ( t h i s , f u n c t i o n ( b , c ) { r e t u r n   a . c a l l ( b , c , b ) } ) ) } , e n d : f u n c t i o n ( ) { r e t u r n   t h i s . p r e v O b j e c t | | t h i s . c o n s t r u c t o r ( n u l l ) } , p u s h : C , s o r t : [ ] . s o r t , s p l i c e : [ ] . s p l i c e } , e . f n . i n i t . p r o t o t y p e = e . f n , e . e x t e n d = e . f n . e x t e n d = f u n c t i o n ( ) { v a r   a , c , d , f , g , h , i = a r g u m e n t s [ 0 ] | | { } , j = 1 , k = a r g u m e n t s . l e n g t h , l = ! 1 ; t y p e o f   i = = " b o o l e a n " & & ( l = i , i = a r g u m e n t s [ 1 ] | | { } , j = 2 ) , t y p e o f   i ! = " o b j e c t " & & ! e . i s F u n c t i o n ( i ) & & ( i = { } ) , k = = = j & & ( i = t h i s , - - j ) ; f o r ( ; j < k ; j + + ) i f ( ( a = a r g u m e n t s [ j ] ) ! = n u l l ) f o r ( c   i n   a ) { d = i [ c ] , f = a [ c ] ; i f ( i = = = f ) c o n t i n u e ; l & & f & & ( e . i s P l a i n O b j e c t ( f ) | | ( g = e . i s A r r a y ( f ) ) ) ? ( g ? ( g = ! 1 , h = d & & e . i s A r r a y ( d ) ? d : [ ] ) : h = d & & e . i s P l a i n O b j e c t ( d ) ? d : { } , i [ c ] = e . e x t e n d ( l , h , f ) ) : f ! = = b & & ( i [ c ] = f ) } r e t u r n   i } , e . e x t e n d ( { n o C o n f l i c t : f u n c t i o n ( b ) { a . $ = = = e & & ( a . $ = g ) , b & & a . j Q u e r y = = = e & & ( a . j Q u e r y = f ) ; r e t u r n   e } , i s R e a d y : ! 1 , r e a d y W a i t : 1 , h o l d R e a d y : f u n c t i o n ( a ) { a ? e . r e a d y W a i t + + : e . r e a d y ( ! 0 ) } , r e a d y : f u n c t i o n ( a ) { i f ( a = = = ! 0 & & ! - - e . r e a d y W a i t | | a ! = = ! 0 & & ! e . i s R e a d y ) { i f ( ! c . b o d y ) r e t u r n   s e t T i m e o u t ( e . r e a d y , 1 ) ; e . i s R e a d y = ! 0 ; i f ( a ! = = ! 0 & & - - e . r e a d y W a i t > 0 ) r e t u r n ; y . r e s o l v e W i t h ( c , [ e ] ) , e . f n . t r i g g e r & & e ( c ) . t r i g g e r ( " r e a d y " ) . u n b i n d ( " r e a d y " ) } } , b i n d R e a d y : f u n c t i o n ( ) { i f ( ! y ) { y = e . _ D e f e r r e d ( ) ; i f ( c . r e a d y S t a t e = = = " c o m p l e t e " ) r e t u r n   s e t T i m e o u t ( e . r e a d y , 1 ) ; i f ( c . a d d E v e n t L i s t e n e r ) c . a d d E v e n t L i s t e n e r ( " D O M C o n t e n t L o a d e d " , z , ! 1 ) , a . a d d E v e n t L i s t e n e r ( " l o a d " , e . r e a d y , ! 1 ) ; e l s e   i f ( c . a t t a c h E v e n t ) { c . a t t a c h E v e n t ( " o n r e a d y s t a t e c h a n g e " , z ) , a . a t t a c h E v e n t ( " o n l o a d " , e . r e a d y ) ; v a r   b = ! 1 ; t r y { b = a . f r a m e E l e m e n t = = n u l l } c a t c h ( d ) { } c . d o c u m e n t E l e m e n t . d o S c r o l l & & b & & H ( ) } } } , i s F u n c t i o n : f u n c t i o n ( a ) { r e t u r n   e . t y p e ( a ) = = = " f u n c t i o n " } , i s A r r a y : A r r a y . i s A r r a y | | f u n c t i o n ( a ) { r e t u r n   e . t y p e ( a ) = = = " a r r a y " } , i s W i n d o w : f u n c t i o n ( a ) { r e t u r n   a & & t y p e o f   a = = " o b j e c t " & & " s e t I n t e r v a l " i n   a } , i s N a N : f u n c t i o n ( a ) { r e t u r n   a = = n u l l | | ! m . t e s t ( a ) | | i s N a N ( a ) } , t y p e : f u n c t i o n ( a ) { r e t u r n   a = = n u l l ? S t r i n g ( a ) : G [ A . c a l l ( a ) ] | | " o b j e c t " } , i s P l a i n O b j e c t : f u n c t i o n ( a ) { i f ( ! a | | e . t y p e ( a ) ! = = " o b j e c t " | | a . n o d e T y p e | | e . i s W i n d o w ( a ) ) r e t u r n ! 1 ; i f ( a . c o n s t r u c t o r & & ! B . c a l l ( a , " c o n s t r u c t o r " ) & & ! B . c a l l ( a . c o n s t r u c t o r . p r o t o t y p e , " i s P r o t o t y p e O f " ) ) r e t u r n ! 1 ; v a r   c ; f o r ( c   i n   a ) ; r e t u r n   c = = = b | | B . c a l l ( a , c ) } , i s E m p t y O b j e c t : f u n c t i o n ( a ) { f o r ( v a r   b   i n   a ) r e t u r n ! 1 ; r e t u r n ! 0 } , e r r o r : f u n c t i o n ( a ) { t h r o w   a } , p a r s e J S O N : f u n c t i o n ( b ) { i f ( t y p e o f   b ! = " s t r i n g " | | ! b ) r e t u r n   n u l l ; b = e . t r i m ( b ) ; i f ( a . J S O N & & a . J S O N . p a r s e ) r e t u r n   a . J S O N . p a r s e ( b ) ; i f ( o . t e s t ( b . r e p l a c e ( p , " @ " ) . r e p l a c e ( q , " ] " ) . r e p l a c e ( r , " " ) ) ) r e t u r n ( n e w   F u n c t i o n ( " r e t u r n   " + b ) ) ( ) ; e . e r r o r ( " I n v a l i d   J S O N :   " + b ) } , p a r s e X M L : f u n c t i o n ( b , c , d ) { a . D O M P a r s e r ? ( d = n e w   D O M P a r s e r , c = d . p a r s e F r o m S t r i n g ( b , " t e x t / x m l " ) ) : ( c = 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 D O M " ) , c . a s y n c = " f a l s e " , c . l o a d X M L ( b ) ) , d = c . d o c u m e n t E l e m e n t , ( ! d | | ! d . n o d e N a m e | | d . n o d e N a m e = = = " p a r s e r e r r o r " ) & & e . e r r o r ( " I n v a l i d   X M L :   " + b ) ; r e t u r n   c } , n o o p : f u n c t i o n ( ) { } , g l o b a l E v a l : f u n c t i o n ( b ) { b & & j . t e s t ( b ) & & ( a . e x e c S c r i p t | | f u n c t i o n ( b ) { a . e v a l . c a l l ( a , b ) } ) ( b ) } , n o d e N a m e : f u n c t i o n ( a , b ) { r e t u r n   a . n o d e N a m e & & a . n o d e N a m e . t o U p p e r C a s e ( ) = = = b . t o U p p e r C a s e ( ) } , e a c h : f u n c t i o n ( a , c , d ) { v a r   f , g = 0 , h = a . l e n g t h , i = h = = = b | | e . i s F u n c t i o n ( a ) ; i f ( d ) { i f ( i ) { f o r ( f   i n   a ) i f ( c . a p p l y ( a [ f ] , d ) = = = ! 1 ) b r e a k } e l s e   f o r ( ; g < h ; ) i f ( c . a p p l y ( a [ g + + ] , d ) = = = ! 1 ) b r e a k } e l s e   i f ( i ) { f o r ( f   i n   a ) i f ( c . c a l l ( a [ f ] , f , a [ f ] ) = = = ! 1 ) b r e a k } e l s e   f o r ( ; g < h ; ) i f ( c . c a l l ( a [ g ] , g , a [ g + + ] ) = = = ! 1 ) b r e a k ; r e t u r n   a } , t r i m : E ? f u n c t i o n ( a ) { r e t u r n   a = = n u l l ? " " : E . c a l l ( a ) } : f u n c t i o n ( a ) { r e t u r n   a = = n u l l ? " " : ( a + " " ) . r e p l a c e ( k , " " ) . r e p l a c e ( l , " " ) } , m a k e A r r a y : f u n c t i o n ( a , b ) { v a r   c = b | | [ ] ; i f ( a ! = n u l l ) { v a r   d = e . t y p e ( a ) ; a . l e n g t h = = n u l l | | d = = = " s t r i n g " | | d = = = " f u n c t i o n " | | d = = = " r e g e x p " | | e . i s W i n d o w ( a ) ? C . c a l l ( c , a ) : e . m e r g e ( c , a ) } r e t u r n   c } , i n A r r a y : f u n c t i o n ( a , b ) { i f ( F ) r e t u r n   F . c a l l ( b , a ) ; f o r ( v a r   c = 0 , d = b . l e n g t h ; c < d ; c + + ) i f ( b [ c ] = = = a ) r e t u r n   c ; r e t u r n - 1 } , m e r g e : f u n c t i o n ( a , c ) { v a r   d = a . l e n g t h , e = 0 ; i f ( t y p e o f   c . l e n g t h = = " n u m b e r " ) f o r ( v a r   f = c . l e n g t h ; e < f ; e + + ) a [ d + + ] = c [ e ] ; e l s e   w h i l e ( c [ e ] ! = = b ) a [ d + + ] = c [ e + + ] ; a . l e n g t h = d ; r e t u r n   a } , g r e p : f u n c t i o n ( a , b , c ) { v a r   d = [ ] , e ; c = ! ! c ; f o r ( v a r   f = 0 , g = a . l e n g t h ; f < g ; f + + ) e = ! ! b ( a [ f ] , f ) , c ! = = e & & d . p u s h ( a [ f ] ) ; r e t u r n   d } , m a p : f u n c t i o n ( a , c , d ) { v a r   f , g , h = [ ] , i = 0 , j = a . l e n g t h , k = a   i n s t a n c e o f   e | | j ! = = b & & t y p e o f   j = = " n u m b e r " & & ( j > 0 & & a [ 0 ] & & a [ j - 1 ] | | j = = = 0 | | e . i s A r r a y ( a ) ) ; i f ( k ) f o r ( ; i < j ; i + + ) f = c ( a [ i ] , i , d ) , f ! = n u l l & & ( h [ h . l e n g t h ] = f ) ; e l s e   f o r ( g   i n   a ) f = c ( a [ g ] , g , d ) , f ! = n u l l & & ( h [ h . l e n g t h ] = f ) ; r e t u r n   h . c o n c a t . a p p l y ( [ ] , h ) } , g u i d : 1 , p r o x y : f u n c t i o n ( a , c ) { i f ( t y p e o f   c = = " s t r i n g " ) { v a r   d = a [ c ] ; c = a , a = d } i f ( ! e . i s F u n c t i o n ( a ) ) r e t u r n   b ; v a r   f = D . c a l l ( a r g u m e n t s , 2 ) , g = f u n c t i o n ( ) { r e t u r n   a . a p p l y ( c , f . c o n c a t ( D . c a l l ( a r g u m e n t s ) ) ) } ; g . g u i d = a . g u i d = a . g u i d | | g . g u i d | | e . g u i d + + ; r e t u r n   g } , a c c e s s : f u n c t i o n ( a , c , d , f , g , h ) { v a r   i = a . l e n g t h ; i f ( t y p e o f   c = = " o b j e c t " ) { f o r ( v a r   j   i n   c ) e . a c c e s s ( a , j , c [ j ] , f , g , d ) ; r e t u r n   a } i f ( d ! = = b ) { f = ! h & & f & & e . i s F u n c t i o n ( d ) ; f o r ( v a r   k = 0 ; k < i ; k + + ) g ( a [ k ] , c , f ? d . c a l l ( a [ k ] , k , g ( a [ k ] , c ) ) : d , h ) ; r e t u r n   a } r e t u r n   i ? g ( a [ 0 ] , c ) : b } , n o w : f u n c t i o n ( ) { r e t u r n ( n e w   D a t e ) . g e t T i m e ( ) } , u a M a t c h : f u n c t i o n ( a ) { a = a . t o L o w e r C a s e ( ) ; v a r   b = s . e x e c ( a ) | | t . e x e c ( a ) | | u . e x e c ( a ) | | a . i n d e x O f ( " c o m p a t i b l e " ) < 0 & & v . e x e c ( a ) | | [ ] ; r e t u r n { b r o w s e r : b [ 1 ] | | " " , v e r s i o n : b [ 2 ] | | " 0 " } } , s u b : f u n c t i o n ( ) { f u n c t i o n   a ( b , c ) { r e t u r n   n e w   a . f n . i n i t ( b , c ) } e . e x t e n d ( ! 0 , a , t h i s ) , a . s u p e r c l a s s = t h i s , a . f n = a . p r o t o t y p e = t h i s ( ) , a . f n . c o n s t r u c t o r = a , a . s u b = t h i s . s u b , a . f n . i n i t = f u n c t i o n ( d , f ) { f & & f   i n s t a n c e o f   e & & ! ( f   i n s t a n c e o f   a ) & & ( f = a ( f ) ) ; r e t u r n   e . f n . i n i t . c a l l ( t h i s , d , f , b ) } , a . f n . i n i t . p r o t o t y p e = a . f n ; v a r   b = a ( c ) ; r e t u r n   a } , b r o w s e r : { } } ) , e . e a c h ( " B o o l e a n   N u m b e r   S t r i n g   F u n c t i o n   A r r a y   D a t e   R e g E x p   O b j e c t " . s p l i t ( "   " ) , f u n c t i o n ( a , b ) { G [ " [ o b j e c t   " + b + " ] " ] = b . t o L o w e r C a s e ( ) } ) , x = e . u a M a t c h ( w ) , x . b r o w s e r & & ( e . b r o w s e r [ x . b r o w s e r ] = ! 0 , e . b r o w s e r . v e r s i o n = x . v e r s i o n ) , e . b r o w s e r . w e b k i t & & ( e . b r o w s e r . s a f a r i = ! 0 ) , j . t e s t ( "   " ) & & ( k = / ^ [ \ s \ x A 0 ] + / , l = / [ \ s \ x A 0 ] + $ / ) , h = e ( c ) , c . a d d E v e n t L i s t e n e r ? z = f u n c t i o n ( ) { c . r e m o v e E v e n t L i s t e n e r ( " D O M C o n t e n t L o a d e d " , z , ! 1 ) , e . r e a d y ( ) } : c . a t t a c h E v e n t & & ( z = f u n c t i o n ( ) { c . r e a d y S t a t e = = = " c o m p l e t e " & & ( c . d e t a c h E v e n t ( " o n r e a d y s t a t e c h a n g e " , z ) , e . r e a d y ( ) ) } ) ; r e t u r n   e } ( ) , g = " d o n e   f a i l   i s R e s o l v e d   i s R e j e c t e d   p r o m i s e   t h e n   a l w a y s   p i p e " . s p l i t ( "   " ) , h = [ ] . s l i c e ; f . e x t e n d ( { _ D e f e r r e d : f u n c t i o n ( ) { v a r   a = [ ] , b , c , d , e = { d o n e : f u n c t i o n ( ) { i f ( ! d ) { v a r   c = a r g u m e n t s , g , h , i , j , k ; b & & ( k = b , b = 0 ) ; f o r ( g = 0 , h = c . l e n g t h ; g < h ; g + + ) i = c [ g ] , j = f . t y p e ( i ) , j = = = " a r r a y " ? e . d o n e . a p p l y ( e , i ) : j = = = " f u n c t i o n " & & a . p u s h ( i ) ; k & & e . r e s o l v e W i t h ( k [ 0 ] , k [ 1 ] ) } r e t u r n   t h i s } , r e s o l v e W i t h : f u n c t i o n ( e , f ) { i f ( ! d & & ! b & & ! c ) { f = f | | [ ] , c = 1 ; t r y { w h i l e ( a [ 0 ] ) a . s h i f t ( ) . a p p l y ( e , f ) } f i n a l l y { b = [ e , f ] , c = 0 } } r e t u r n   t h i s } , r e s o l v e : f u n c t i o n ( ) { e . r e s o l v e W i t h ( t h i s , a r g u m e n t s ) ; r e t u r n   t h i s } , i s R e s o l v e d : f u n c t i o n ( ) { r e t u r n ! ! c | | ! ! b } , c a n c e l : f u n c t i o n ( ) { d = 1 , a = [ ] ; r e t u r n   t h i s } } ; r e t u r n   e } , D e f e r r e d : f u n c t i o n ( a ) { v a r   b = f . _ D e f e r r e d ( ) , c = f . _ D e f e r r e d ( ) , d ; f . e x t e n d ( b , { t h e n : f u n c t i o n ( a , c ) { b . d o n e ( a ) . f a i l ( c ) ; r e t u r n   t h i s } , a l w a y s : f u n c t i o n ( ) { r e t u r n   b . d o n e . a p p l y ( b , a r g u m e n t s ) . f a i l . a p p l y ( t h i s , a r g u m e n t s ) } , f a i l : c . d o n e , r e j e c t W i t h : c . r e s o l v e W i t h , r e j e c t : c . r e s o l v e , i s R e j e c t e d : c . i s R e s o l v e d , p i p e : f u n c t i o n ( a , c ) { r e t u r n   f . D e f e r r e d ( f u n c t i o n ( d ) { f . e a c h ( { d o n e : [ a , " r e s o l v e " ] , f a i l : [ c , " r e j e c t " ] } , f u n c t i o n ( a , c ) { v a r   e = c [ 0 ] , g = c [ 1 ] , h ; f . i s F u n c t i o n ( e ) ? b [ a ] ( f u n c t i o n ( ) { h = e . a p p l y ( t h i s , a r g u m e n t s ) , h & & f . i s F u n c t i o n ( h . p r o m i s e ) ? h . p r o m i s e ( ) . t h e n ( d . r e s o l v e , d . r e j e c t ) : d [ g ] ( h ) } ) : b [ a ] ( d [ g ] ) } ) } ) . p r o m i s e ( ) } , p r o m i s e : f u n c t i o n ( a ) { i f ( a = = n u l l ) { i f ( d ) r e t u r n   d ; d = a = { } } v a r   c = g . l e n g t h ; w h i l e ( c - - ) a [ g [ c ] ] = b [ g [ c ] ] ; r e t u r n   a } } ) , b . d o n e ( c . c a n c e l ) . f a i l ( b . c a n c e l ) , d e l e t e   b . c a n c e l , a & & a . c a l l ( b , b ) ; r e t u r n   b } , w h e n : f u n c t i o n ( a ) { f u n c t i o n   i ( a ) { r e t u r n   f u n c t i o n ( c ) { b [ a ] = a r g u m e n t s . l e n g t h > 1 ? h . c a l l ( a r g u m e n t s , 0 ) : c , - - e | | g . r e s o l v e W i t h ( g , h . c a l l ( b , 0 ) ) } } v a r   b = a r g u m e n t s , c = 0 , d = b . l e n g t h , e = d , g = d < = 1 & & a & & f . i s F u n c t i o n ( a . p r o m i s e ) ? a : f . D e f e r r e d ( ) ; i f ( d > 1 ) { f o r ( ; c < d ; c + + ) b [ c ] & & f . i s F u n c t i o n ( b [ c ] . p r o m i s e ) ? b [ c ] . p r o m i s e ( ) . t h e n ( i ( c ) , g . r e j e c t ) : - - e ; e | | g . r e s o l v e W i t h ( g , b ) } e l s e   g ! = = a & & g . r e s o l v e W i t h ( g , d ? [ a ] : [ ] ) ; r e t u r n   g . p r o m i s e ( ) } } ) , f . s u p p o r t = f u n c t i o n ( ) { v a r   a = c . c r e a t e E l e m e n t ( " d i v " ) , b = c . d o c u m e n t E l e m e n t , d , e , f , g , h , i , j , k , l , m , n , o , p , q , r ; a . s e t A t t r i b u t e ( " c l a s s N a m e " , " t " ) , a . i n n e r H T M L = "       < l i n k / > < t a b l e > < / t a b l e > < a   h r e f = ' / a '   s t y l e = ' t o p : 1 p x ; f l o a t : l e f t ; o p a c i t y : . 5 5 ; ' > a < / a > < i n p u t   t y p e = ' c h e c k b o x ' / > " , d = a . g e t E l e m e n t s B y T a g N a m e ( " * " ) , e = a . g e t E l e m e n t s B y T a g N a m e ( " a " ) [ 0 ] ; i f ( ! d | | ! d . l e n g t h | | ! e ) r e t u r n { } ; f = c . c r e a t e E l e m e n t ( " s e l e c t " ) , g = f . a p p e n d C h i l d ( c . c r e a t e E l e m e n t ( " o p t i o n " ) ) , h = a . g e t E l e m e n t s B y T a g N a m e ( " i n p u t " ) [ 0 ] , j = { l e a d i n g W h i t e s p a c e : a . f i r s t C h i l d . n o d e T y p e = = = 3 , t b o d y : ! a . g e t E l e m e n t s B y T a g N a m e ( " t b o d y " ) . l e n g t h , h t m l S e r i a l i z e : ! ! a . g e t E l e m e n t s B y T a g N a m e ( " l i n k " ) . l e n g t h , s t y l e : / t o p / . t e s t ( e . g e t A t t r i b u t e ( " s t y l e " ) ) , h r e f N o r m a l i z e d : e . g e t A t t r i b u t e ( " h r e f " ) = = = " / a " , o p a c i t y : / ^ 0 . 5 5 $ / . t e s t ( e . s t y l e . o p a c i t y ) , c s s F l o a t : ! ! e . s t y l e . c s s F l o a t , c h e c k O n : h . v a l u e = = = " o n " , o p t S e l e c t e d : g . s e l e c t e d , g e t S e t A t t r i b u t e : a . c l a s s N a m e ! = = " t " , s u b m i t B u b b l e s : ! 0 , c h a n g e B u b b l e s : ! 0 , f o c u s i n B u b b l e s : ! 1 , d e l e t e E x p a n d o : ! 0 , n o C l o n e E v e n t : ! 0 , i n l i n e B l o c k N e e d s L a y o u t : ! 1 , s h r i n k W r a p B l o c k s : ! 1 , r e l i a b l e M a r g i n R i g h t : ! 0 } , h . c h e c k e d = ! 0 , j . n o C l o n e C h e c k e d = h . c l o n e N o d e ( ! 0 ) . c h e c k e d , f . d i s a b l e d = ! 0 , j . o p t D i s a b l e d = ! g . d i s a b l e d ; t r y { d e l e t e   a . t e s t } c a t c h ( s ) { j . d e l e t e E x p a n d o = ! 1 } ! a . a d d E v e n t L i s t e n e r & & a . a t t a c h E v e n t & & a . f i r e E v e n t & & ( a . a t t a c h E v e n t ( " o n c l i c k " , f u n c t i o n   b ( ) { j . n o C l o n e E v e n t = ! 1 , a . d e t a c h E v e n t ( " o n c l i c k " , b ) } ) , a . c l o n e N o d e ( ! 0 ) . f i r e E v e n t ( " o n c l i c k " ) ) , h = c . c r e a t e E l e m e n t ( " i n p u t " ) , h . v a l u e = " t " , h . s e t A t t r i b u t e ( " t y p e " , " r a d i o " ) , j . r a d i o V a l u e = h . v a l u e = = = " t " , h . s e t A t t r i b u t e ( " c h e c k e d " , " c h e c k e d " ) , a . a p p e n d C h i l d ( h ) , k = c . c r e a t e D o c u m e n t F r a g m e n t ( ) , k . a p p e n d C h i l d ( a . f i r s t C h i l d ) , j . c h e c k C l o n e = k . c l o n e N o d e ( ! 0 ) . c l o n e N o d e ( ! 0 ) . l a s t C h i l d . c h e c k e d , a . i n n e r H T M L = " " , a . s t y l e . w i d t h = a . s t y l e . p a d d i n g L e f t = " 1 p x " , l = c . c r e a t e E l e m e n t ( " b o d y " ) , m = { v i s i b i l i t y : " h i d d e n " , w i d t h : 0 , h e i g h t : 0 , b o r d e r : 0 , m a r g i n : 0 , b a c k g r o u n d : " n o n e " } ; f o r ( q   i n   m ) l . s t y l e [ q ] = m [ q ] ; l . a p p e n d C h i l d ( a ) , b . i n s e r t B e f o r e ( l , b . f i r s t C h i l d ) , j . a p p e n d C h e c k e d = h . c h e c k e d , j . b o x M o d e l = a . o f f s e t W i d t h = = = 2 , " z o o m " i n   a . s t y l e & & ( a . s t y l e . d i s p l a y = " i n l i n e " , a . s t y l e . z o o m = 1 , j . i n l i n e B l o c k N e e d s L a y o u t = a . o f f s e t W i d t h = = = 2 , a . s t y l e . d i s p l a y = " " , a . i n n e r H T M L = " < d i v   s t y l e = ' w i d t h : 4 p x ; ' > < / d i v > " , j . s h r i n k W r a p B l o c k s = a . o f f s e t W i d t h ! = = 2 ) , a . i n n e r H T M L = " < t a b l e > < t r > < t d   s t y l e = ' p a d d i n g : 0 ; b o r d e r : 0 ; d i s p l a y : n o n e ' > < / t d > < t d > t < / t d > < / t r > < / t a b l e > " , n = a . g e t E l e m e n t s B y T a g N a m e ( " t d " ) , r = n [ 0 ] . o f f s e t H e i g h t = = = 0 , n [ 0 ] . s t y l e . d i s p l a y = " " , n [ 1 ] . s t y l e . d i s p l a y = " n o n e " , j . r e l i a b l e H i d d e n O f f s e t s = r & & n [ 0 ] . o f f s e t H e i g h t = = = 0 , a . i n n e r H T M L = " " , c . d e f a u l t V i e w & & c . d e f a u l t V i e w . g e t C o m p u t e d S t y l e & & ( i = c . c r e a t e E l e m e n t ( " d i v " ) , i . s t y l e . w i d t h = " 0 " , i . s t y l e . m a r g i n R i g h t = " 0 " , a . a p p e n d C h i l d ( i ) , j . r e l i a b l e M a r g i n R i g h t = ( p a r s e I n t ( ( c . d e f a u l t V i e w . g e t C o m p u t e d S t y l e ( i , n u l l ) | | { m a r g i n R i g h t : 0 } ) . m a r g i n R i g h t , 1 0 ) | | 0 ) = = = 0 ) , l . i n n e r H T M L = " " , b . r e m o v e C h i l d ( l ) ; i f ( a . a t t a c h E v e n t ) f o r ( q   i n { s u b m i t : 1 , c h a n g e : 1 , f o c u s i n : 1 } ) p = " o n " + q , r = p   i n   a , r | | ( a . s e t A t t r i b u t e ( p , " r e t u r n ; " ) , r = t y p e o f   a [ p ] = = " f u n c t i o n " ) , j [ q + " B u b b l e s " ] = r ; r e t u r n   j } ( ) , f . b o x M o d e l = f . s u p p o r t . b o x M o d e l ; v a r   i = / ^ ( ? : \ { . * \ } | \ [ . * \ ] ) $ / , j = / ( [ a - z ] ) ( [ A - Z ] ) / g ; f . e x t e n d ( { c a c h e : { } , u u i d : 0 , e x p a n d o : " j Q u e r y " + ( f . f n . j q u e r y + M a t h . r a n d o m ( ) ) . r e p l a c e ( / \ D / g , " " ) , n o D a t a : { e m b e d : ! 0 , o b j e c t : " 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 " , a p p l e t : ! 0 } , h a s D a t a : f u n c t i o n ( a ) { a = a . n o d e T y p e ? f . c a c h e [ a [ f . e x p a n d o ] ] : a [ f . e x p a n d o ] ; r e t u r n ! ! a & & ! l ( a ) } , d a t a : f u n c t i o n ( a , c , d , e ) { i f ( ! ! f . a c c e p t D a t a ( a ) ) { v a r   g = f . e x p a n d o , h = t y p e o f   c = = " s t r i n g " , i , j = a . n o d e T y p e , k = j ? f . c a c h e : a , l = j ? a [ f . e x p a n d o ] : a [ f . e x p a n d o ] & & f . e x p a n d o ; i f ( ( ! l | | e & & l & & ! k [ l ] [ g ] ) & & h & & d = = = b ) r e t u r n ; l | | ( j ? a [ f . e x p a n d o ] = l = + + f . u u i d : l = f . e x p a n d o ) , k [ l ] | | ( k [ l ] = { } , j | | ( k [ l ] . t o J S O N = f . n o o p ) ) ; i f ( t y p e o f   c = = " o b j e c t " | | t y p e o f   c = = " f u n c t i o n " ) e ? k [ l ] [ g ] = f . e x t e n d ( k [ l ] [ g ] , c ) : k [ l ] = f . e x t e n d ( k [ l ] , c ) ; i = k [ l ] , e & & ( i [ g ] | | ( i [ g ] = { } ) , i = i [ g ] ) , d ! = = b & & ( i [ f . c a m e l C a s e ( c ) ] = d ) ; i f ( c = = = " e v e n t s " & & ! i [ c ] ) r e t u r n   i [ g ] & & i [ g ] . e v e n t s ; r e t u r n   h ? i [ f . c a m e l C a s e ( c ) ] : i } } , r e m o v e D a t a : f u n c t i o n ( b , c , d ) { i f ( ! ! f . a c c e p t D a t a ( b ) ) { v a r   e = f . e x p a n d o , g = b . n o d e T y p e , h = g ? f . c a c h e : b , i = g ? b [ f . e x p a n d o ] : f . e x p a n d o ; i f ( ! h [ i ] ) r e t u r n ; i f ( c ) { v a r   j = d ? h [ i ] [ e ] : h [ i ] ; i f ( j ) { d e l e t e   j [ c ] ; i f ( ! l ( j ) ) r e t u r n } } i f ( d ) { d e l e t e   h [ i ] [ e ] ; i f ( ! l ( h [ i ] ) ) r e t u r n } v a r   k = h [ i ] [ e ] ; f . s u p p o r t . d e l e t e E x p a n d o | | h ! = a ? d e l e t e   h [ i ] : h [ i ] = n u l l , k ? ( h [ i ] = { } , g | | ( h [ i ] . t o J S O N = f . n o o p ) , h [ i ] [ e ] = k ) : g & & ( f . s u p p o r t . d e l e t e E x p a n d o ? d e l e t e   b [ f . e x p a n d o ] : b . r e m o v e A t t r i b u t e ? b . r e m o v e A t t r i b u t e ( f . e x p a n d o ) : b [ f . e x p a n d o ] = n u l l ) } } , _ d a t a : f u n c t i o n ( a , b , c ) { r e t u r n   f . d a t a ( a , b , c , ! 0 ) } , a c c e p t D a t a : f u n c t i o n ( a ) { i f ( a . n o d e N a m e ) { v a r   b = f . n o D a t a [ a . n o d e N a m e . t o L o w e r C a s e ( ) ] ; i f ( b ) r e t u r n   b ! = = ! 0 & & a . g e t A t t r i b u t e ( " c l a s s i d " ) = = = b } r e t u r n ! 0 } } ) , f . f n . e x t e n d ( { d a t a : f u n c t i o n ( a , c ) { v a r   d = n u l l ; i f ( t y p e o f   a = = " u n d e f i n e d " ) { i f ( t h i s . l e n g t h ) { d = f . d a t a ( t h i s [ 0 ] ) ; i f ( t h i s [ 0 ] . n o d e T y p e = = = 1 ) { v a r   e = t h i s [ 0 ] . a t t r i b u t e s , g ; f o r ( v a r   h = 0 , i = e . l e n g t h ; h < i ; h + + ) g = e [ h ] . n a m e , g . i n d e x O f ( " d a t a - " ) = = = 0 & & ( g = f . c a m e l C a s e ( g . s u b s t r i n g ( 5 ) ) , k ( t h i s [ 0 ] , g , d [ g ] ) ) } } r e t u r n   d } i f ( t y p e o f   a = = " o b j e c t " ) r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { f . d a t a ( t h i s , a ) } ) ; v a r   j = a . s p l i t ( " . " ) ; j [ 1 ] = j [ 1 ] ? " . " + j [ 1 ] : " " ; i f ( c = = = b ) { d = t h i s . t r i g g e r H a n d l e r ( " g e t D a t a " + j [ 1 ] + " ! " , [ j [ 0 ] ] ) , d = = = b & & t h i s . l e n g t h & & ( d = f . d a t a ( t h i s [ 0 ] , a ) , d = k ( t h i s [ 0 ] , a , d ) ) ; r e t u r n   d = = = b & & j [ 1 ] ? t h i s . d a t a ( j [ 0 ] ) : d } r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { v a r   b = f ( t h i s ) , d = [ j [ 0 ] , c ] ; b . t r i g g e r H a n d l e r ( " s e t D a t a " + j [ 1 ] + " ! " , d ) , f . d a t a ( t h i s , a , c ) , b . t r i g g e r H a n d l e r ( " c h a n g e D a t a " + j [ 1 ] + " ! " , d ) } ) } , r e m o v e D a t a : f u n c t i o n ( a ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { f . r e m o v e D a t a ( t h i s , a ) } ) } } ) , f . e x t e n d ( { _ m a r k : f u n c t i o n ( a , c ) { a & & ( c = ( c | | " f x " ) + " m a r k " , f . d a t a ( a , c , ( f . d a t a ( a , c , b , ! 0 ) | | 0 ) + 1 , ! 0 ) ) } , _ u n m a r k : f u n c t i o n ( a , c , d ) { a ! = = ! 0 & & ( d = c , c = a , a = ! 1 ) ; i f ( c ) { d = d | | " f x " ; v a r   e = d + " m a r k " , g = a ? 0 : ( f . d a t a ( c , e , b , ! 0 ) | | 1 ) - 1 ; g ? f . d a t a ( c , e , g , ! 0 ) : ( f . r e m o v e D a t a ( c , e , ! 0 ) , m ( c , d , " m a r k " ) ) } } , q u e u e : f u n c t i o n ( a , c , d ) { i f ( a ) { c = ( c | | " f x " ) + " q u e u e " ; v a r   e = f . d a t a ( a , c , b , ! 0 ) ; d & & ( ! e | | f . i s A r r a y ( d ) ? e = f . d a t a ( a , c , f . m a k e A r r a y ( d ) , ! 0 ) : e . p u s h ( d ) ) ; r e t u r n   e | | [ ] } } , d e q u e u e : f u n c t i o n ( a , b ) { b = b | | " f x " ; v a r   c = f . q u e u e ( a , b ) , d = c . s h i f t ( ) , e ; d = = = " i n p r o g r e s s " & & ( d = c . s h i f t ( ) ) , d & & ( b = = = " f x " & & c . u n s h i f t ( " i n p r o g r e s s " ) , d . c a l l ( a , f u n c t i o n ( ) { f . d e q u e u e ( a , b ) } ) ) , c . l e n g t h | | ( f . r e m o v e D a t a ( a , b + " q u e u e " , ! 0 ) , m ( a , b , " q u e u e " ) ) } } ) , f . f n . e x t e n d ( { q u e u e : f u n c t i o n ( a , c ) { t y p e o f   a ! = " s t r i n g " & & ( c = a , a = " f x " ) ; i f ( c = = = b ) r e t u r n   f . q u e u e ( t h i s [ 0 ] , a ) ; r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { v a r   b = f . q u e u e ( t h i s , a , c ) ; a = = = " f x " & & b [ 0 ] ! = = " i n p r o g r e s s " & & f . d e q u e u e ( t h i s , a ) } ) } , d e q u e u e : f u n c t i o n ( a ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { f . d e q u e u e ( t h i s , a ) } ) } , d e l a y : f u n c t i o n ( a , b ) { a = f . f x ? f . f x . s p e e d s [ a ] | | a : a , b = b | | " f x " ; r e t u r n   t h i s . q u e u e ( b , f u n c t i o n ( ) { v a r   c = t h i s ; s e t T i m e o u t ( f u n c t i o n ( ) { f . d e q u e u e ( c , b ) } , a ) } ) } , c l e a r Q u e u e : f u n c t i o n ( a ) { r e t u r n   t h i s . q u e u e ( a | | " f x " , [ ] ) } , p r o m i s e : f u n c t i o n ( a , c ) { f u n c t i o n   m ( ) { - - h | | d . r e s o l v e W i t h ( e , [ e ] ) } t y p e o f   a ! = " s t r i n g " & & ( c = a , a = b ) , a = a | | " f x " ; v a r   d = f . D e f e r r e d ( ) , e = t h i s , g = e . l e n g t h , h = 1 , i = a + " d e f e r " , j = a + " q u e u e " , k = a + " m a r k " , l ; w h i l e ( g - - ) i f ( l = f . d a t a ( e [ g ] , i , b , ! 0 ) | | ( f . d a t a ( e [ g ] , j , b , ! 0 ) | | f . d a t a ( e [ g ] , k , b , ! 0 ) ) & & f . d a t a ( e [ g ] , i , f . _ D e f e r r e d ( ) , ! 0 ) ) h + + , l . d o n e ( m ) ; m ( ) ; r e t u r n   d . p r o m i s e ( ) } } ) ; v a r   n = / [ \ n \ t \ r ] / g , o = / \ s + / , p = / \ r / g , q = / ^ ( ? : b u t t o n | i n p u t ) $ / i , r = / ^ ( ? : b u t t o n | i n p u t | o b j e c t | s e l e c t | t e x t a r e a ) $ / i , s = / ^ a ( ? : r e a ) ? $ / i , t = / ^ ( ? : a u t o f o c u s | a u t o p l a y | a s y n c | c h e c k e d | c o n t r o l s | d e f e r | d i s a b l e d | h i d d e n | l o o p | m u l t i p l e | o p e n | r e a d o n l y | r e q u i r e d | s c o p e d | s e l e c t e d ) $ / i , u = / \ : / , v , w ; f . f n . e x t e n d ( { a t t r : f u n c t i o n ( a , b ) { r e t u r n   f . a c c e s s ( t h i s , a , b , ! 0 , f . a t t r ) } , r e m o v e A t t r : f u n c t i o n ( a ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { f . r e m o v e A t t r ( t h i s , a ) } ) } , p r o p : f u n c t i o n ( a , b ) { r e t u r n   f . a c c e s s ( t h i s , a , b , ! 0 , f . p r o p ) } , r e m o v e P r o p : f u n c t i o n ( a ) { a = f . p r o p F i x [ a ] | | a ; r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { t r y { t h i s [ a ] = b , d e l e t e   t h i s [ a ] } c a t c h ( c ) { } } ) } , a d d C l a s s : f u n c t i o n ( a ) { i f ( f . i s F u n c t i o n ( a ) ) r e t u r n   t h i s . e a c h ( f u n c t i o n ( b ) { v a r   c = f ( t h i s ) ; c . a d d C l a s s ( a . c a l l ( t h i s , b , c . a t t r ( " c l a s s " ) | | " " ) ) } ) ; i f ( a & & t y p e o f   a = = " s t r i n g " ) { v a r   b = ( a | | " " ) . s p l i t ( o ) ; f o r ( v a r   c = 0 , d = t h i s . l e n g t h ; c < d ; c + + ) { v a r   e = t h i s [ c ] ; i f ( e . n o d e T y p e = = = 1 ) i f ( ! e . c l a s s N a m e ) e . c l a s s N a m e = a ; e l s e { v a r   g = "   " + e . c l a s s N a m e + "   " , h = e . c l a s s N a m e ; f o r ( v a r   i = 0 , j = b . l e n g t h ; i < j ; i + + ) g . i n d e x O f ( "   " + b [ i ] + "   " ) < 0 & & ( h + = "   " + b [ i ] ) ; e . c l a s s N a m e = f . t r i m ( h ) } } } 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 ( a ) { i f ( f . i s F u n c t i o n ( a ) ) r e t u r n   t h i s . e a c h ( f u n c t i o n ( b ) { v a r   c = f ( t h i s ) ; c . r e m o v e C l a s s ( a . c a l l ( t h i s , b , c . a t t r ( " c l a s s " ) ) ) } ) ; i f ( a & & t y p e o f   a = = " s t r i n g " | | a = = = b ) { v a r   c = ( a | | " " ) . s p l i t ( o ) ; f o r ( v a r   d = 0 , e = t h i s . l e n g t h ; d < e ; d + + ) { v a r   g = t h i s [ d ] ; i f ( g . n o d e T y p e = = = 1 & & g . c l a s s N a m e ) i f ( a ) { v a r   h = ( "   " + g . c l a s s N a m e + "   " ) . r e p l a c e ( n , "   " ) ; f o r ( v a r   i = 0 , j = c . l e n g t h ; i < j ; i + + ) h = h . r e p l a c e ( "   " + c [ i ] + "   " , "   " ) ; g . c l a s s N a m e = f . t r i m ( h ) } e l s e   g . c l a s s N a m e = " " } } 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 ( a , b ) { v a r   c = t y p e o f   a , d = t y p e o f   b = = " b o o l e a n " ; i f ( f . i s F u n c t i o n ( a ) ) r e t u r n   t h i s . e a c h ( f u n c t i o n ( c ) { v a r   d = f ( t h i s ) ; d . t o g g l e C l a s s ( a . c a l l ( t h i s , c , d . a t t r ( " c l a s s " ) , b ) , b ) } ) ; r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { i f ( c = = = " s t r i n g " ) { v a r   e , g = 0 , h = f ( t h i s ) , i = b , j = a . s p l i t ( o ) ; w h i l e ( e = j [ g + + ] ) i = d ? i : ! h . h a s C l a s s ( e ) , h [ i ? " a d d C l a s s " : " r e m o v e C l a s s " ] ( e ) } e l s e   i f ( c = = = " u n d e f i n e d " | | c = = = " b o o l e a n " ) t h i s . c l a s s N a m e & & f . _ d a t a ( 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 ) , 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 | | a = = = ! 1 ? " " : f . _ d a t a ( t h i s , " _ _ c l a s s N a m e _ _ " ) | | " " } ) } , h a s C l a s s : f u n c t i o n ( a ) { v a r   b = "   " + a + "   " ; f o r ( v a r   c = 0 , d = t h i s . l e n g t h ; c < d ; c + + ) i f ( ( "   " + t h i s [ c ] . c l a s s N a m e + "   " ) . r e p l a c e ( n , "   " ) . i n d e x O f ( b ) > - 1 ) r e t u r n ! 0 ; r e t u r n ! 1 } , v a l : f u n c t i o n ( a ) { v a r   c , d , e = t h i s [ 0 ] ; i f ( ! a r g u m e n t s . l e n g t h ) { i f ( e ) { c = f . v a l H o o k s [ e . n o d e N a m e . t o L o w e r C a s e ( ) ] | | f . v a l H o o k s [ e . t y p e ] ; i f ( c & & " g e t " i n   c & & ( d = c . g e t ( e , " v a l u e " ) ) ! = = b ) r e t u r n   d ; r e t u r n ( e . v a l u e | | " " ) . r e p l a c e ( p , " " ) } r e t u r n   b } v a r   g = f . i s F u n c t i o n ( a ) ; r e t u r n   t h i s . e a c h ( f u n c t i o n ( d ) { v a r   e = f ( t h i s ) , h ; i f ( t h i s . n o d e T y p e = = = 1 ) { g ? h = a . c a l l ( t h i s , d , e . v a l ( ) ) : h = a , h = = n u l l ? h = " " : t y p e o f   h = = " n u m b e r " ? h + = " " : f . i s A r r a y ( h ) & & ( h = f . m a p ( h , f u n c t i o n ( a ) { r e t u r n   a = = n u l l ? " " : a + " " } ) ) , c = f . v a l H o o k s [ t h i s . n o d e N a m e . t o L o w e r C a s e ( ) ] | | f . v a l H o o k s [ t h i s . t y p e ] ; i f ( ! c | | ! ( " s e t " i n   c ) | | c . s e t ( t h i s , h , " v a l u e " ) = = = b ) t h i s . v a l u e = h } } ) } } ) , f . e x t e n d ( { v a l H o o k s : { o p t i o n : { g e t : f u n c t i o n ( a ) { v a r   b = a . a t t r i b u t e s . v a l u e ; r e t u r n ! b | | b . s p e c i f i e d ? a . v a l u e : a . t e x t } } , s e l e c t : { g e t : f u n c t i o n ( a ) { v a r   b , c = a . s e l e c t e d I n d e x , d = [ ] , e = a . o p t i o n s , g = a . t y p e = = = " s e l e c t - o n e " ; i f ( c < 0 ) r e t u r n   n u l l ; f o r ( v a r   h = g ? c : 0 , i = g ? c + 1 : e . l e n g t h ; h < i ; h + + ) { v a r   j = e [ h ] ; i f ( j . s e l e c t e d & & ( f . s u p p o r t . o p t D i s a b l e d ? ! j . d i s a b l e d : j . g e t A t t r i b u t e ( " d i s a b l e d " ) = = = n u l l ) & & ( ! j . p a r e n t N o d e . d i s a b l e d | | ! f . n o d e N a m e ( j . p a r e n t N o d e , " o p t g r o u p " ) ) ) { b = f ( j ) . v a l ( ) ; i f ( g ) r e t u r n   b ; d . p u s h ( b ) } } i f ( g & & ! d . l e n g t h & & e . l e n g t h ) r e t u r n   f ( e [ c ] ) . v a l ( ) ; r e t u r n   d } , s e t : f u n c t i o n ( a , b ) { v a r   c = f . m a k e A r r a y ( b ) ; f ( a ) . f i n d ( " o p t i o n " ) . e a c h ( f u n c t i o n ( ) { t h i s . s e l e c t e d = f . i n A r r a y ( f ( t h i s ) . v a l ( ) , c ) > = 0 } ) , c . l e n g t h | | ( a . s e l e c t e d I n d e x = - 1 ) ; r e t u r n   c } } } , a t t r F n : { v a l : ! 0 , c s s : ! 0 , h t m l : ! 0 , t e x t : ! 0 , d a t a : ! 0 , w i d t h : ! 0 , h e i g h t : ! 0 , o f f s e t : ! 0 } , a t t r F i x : { t a b i n d e x : " t a b I n d e x " } , a t t r : f u n c t i o n ( a , c , d , e ) { v a r   g = a . n o d e T y p e ; i f ( ! a | | g = = = 3 | | g = = = 8 | | g = = = 2 ) r e t u r n   b ; i f ( e & & c   i n   f . a t t r F n ) r e t u r n   f ( a ) [ c ] ( d ) ; i f ( ! ( " g e t A t t r i b u t e " i n   a ) ) r e t u r n   f . p r o p ( a , c , d ) ; v a r   h , i , j = g ! = = 1 | | ! f . i s X M L D o c ( a ) ; c = j & & f . a t t r F i x [ c ] | | c , i = f . a t t r H o o k s [ c ] , i | | ( ! t . t e s t ( c ) | | t y p e o f   d ! = " b o o l e a n " & & d ! = = b & & d . t o L o w e r C a s e ( ) ! = = c . t o L o w e r C a s e ( ) ? v & & ( f . n o d e N a m e ( a , " f o r m " ) | | u . t e s t ( c ) ) & & ( i = v ) : i = w ) ; i f ( d ! = = b ) { i f ( d = = = n u l l ) { f . r e m o v e A t t r ( a , c ) ; r e t u r n   b } i f ( i & & " s e t " i n   i & & j & & ( h = i . s e t ( a , d , c ) ) ! = = b ) r e t u r n   h ; a . s e t A t t r i b u t e ( c , " " + d ) ; r e t u r n   d } i f ( i & & " g e t " i n   i & & j ) r e t u r n   i . g e t ( a , c ) ; h = a . g e t A t t r i b u t e ( c ) ; r e t u r n   h = = = n u l l ? b : h } , r e m o v e A t t r : f u n c t i o n ( a , b ) { v a r   c ; a . n o d e T y p e = = = 1 & & ( b = f . a t t r F i x [ b ] | | b , f . s u p p o r t . g e t S e t A t t r i b u t e ? a . r e m o v e A t t r i b u t e ( b ) : ( f . a t t r ( a , b , " " ) , a . r e m o v e A t t r i b u t e N o d e ( a . g e t A t t r i b u t e N o d e ( b ) ) ) , t . t e s t ( b ) & & ( c = f . p r o p F i x [ b ] | | b ) i n   a & & ( a [ c ] = ! 1 ) ) } , a t t r H o o k s : { t y p e : { s e t : f u n c t i o n ( a , b ) { i f ( q . t e s t ( a . n o d e N a m e ) & & a . p a r e n t N o d e ) f . e r r o r ( " t y p e   p r o p e r t y   c a n ' t   b e   c h a n g e d " ) ; e l s e   i f ( ! f . s u p p o r t . r a d i o V a l u e & & b = = = " r a d i o " & & f . n o d e N a m e ( a , " i n p u t " ) ) { v a r   c = a . v a l u e ; a . s e t A t t r i b u t e ( " t y p e " , b ) , c & & ( a . v a l u e = c ) ; r e t u r n   b } } } , t a b I n d e x : { g e t : f u n c t i o n ( a ) { v a r   c = a . 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 ? p a r s e I n t ( c . v a l u e , 1 0 ) : r . t e s t ( a . n o d e N a m e ) | | s . t e s t ( a . n o d e N a m e ) & & a . h r e f ? 0 : b } } } , p r o p F i x : { t a b i n d e x : " t a b I n d e x " , r e a d o n l y : " r e a d O n l y " , " f o r " : " h t m l F o r " , " c l a s s " : " c l a s s N a m e " , m a x l e n g t h : " m a x L e n g t h " , c e l l s p a c i n g : " c e l l S p a c i n g " , c e l l p a d d i n g : " c e l l P a d d i n g " , r o w s p a n : " r o w S p a n " , c o l s p a n : " c o l S p a n " , u s e m a p : " u s e M a p " , f r a m e b o r d e r : " f r a m e B o r d e r " , c o n t e n t e d i t a b l e : " c o n t e n t E d i t a b l e " } , p r o p : f u n c t i o n ( a , c , d ) { v a r   e = a . n o d e T y p e ; i f ( ! a | | e = = = 3 | | e = = = 8 | | e = = = 2 ) r e t u r n   b ; v a r   g , h , i = e ! = = 1 | | ! f . i s X M L D o c ( a ) ; c = i & & f . p r o p F i x [ c ] | | c , h = f . p r o p H o o k s [ c ] ; r e t u r n   d ! = = b ? h & & " s e t " i n   h & & ( g = h . s e t ( a , d , c ) ) ! = = b ? g : a [ c ] = d : h & & " g e t " i n   h & & ( g = h . g e t ( a , c ) ) ! = = b ? g : a [ c ] } , p r o p H o o k s : { } } ) , w = { g e t : f u n c t i o n ( a , c ) { r e t u r n   a [ f . p r o p F i x [ c ] | | c ] ? c . t o L o w e r C a s e ( ) : b } , s e t : f u n c t i o n ( a , b , c ) { v a r   d ; b = = = ! 1 ? f . r e m o v e A t t r ( a , c ) : ( d = f . p r o p F i x [ c ] | | c , d   i n   a & & ( a [ d ] = b ) , a . s e t A t t r i b u t e ( c , c . t o L o w e r C a s e ( ) ) ) ; r e t u r n   c } } , f . a t t r H o o k s . v a l u e = { g e t : f u n c t i o n ( a , b ) { i f ( v & & f . n o d e N a m e ( a , " b u t t o n " ) ) r e t u r n   v . g e t ( a , b ) ; r e t u r n   a . v a l u e } , s e t : f u n c t i o n ( a , b , c ) { i f ( v & & f . n o d e N a m e ( a , " b u t t o n " ) ) r e t u r n   v . s e t ( a , b , c ) ; a . v a l u e = b } } , f . s u p p o r t . g e t S e t A t t r i b u t e | | ( f . a t t r F i x = f . p r o p F i x , v = f . a t t r H o o k s . n a m e = f . v a l H o o k s . b u t t o n = { g e t : f u n c t i o n ( a , c ) { v a r   d ; d = a . g e t A t t r i b u t e N o d e ( c ) ; r e t u r n   d & & d . n o d e V a l u e ! = = " " ? d . n o d e V a l u e : b } , s e t : f u n c t i o n ( a , b , c ) { v a r   d = a . g e t A t t r i b u t e N o d e ( c ) ; i f ( d ) { d . n o d e V a l u e = b ; r e t u r n   b } } } , f . e a c h ( [ " w i d t h " , " h e i g h t " ] , f u n c t i o n ( a , b ) { f . a t t r H o o k s [ b ] = f . e x t e n d ( f . a t t r H o o k s [ b ] , { s e t : f u n c t i o n ( a , c ) { i f ( c = = = " " ) { a . s e t A t t r i b u t e ( b , " a u t o " ) ; r e t u r n   c } } } ) } ) ) , f . s u p p o r t . h r e f N o r m a l i z e d | | f . e a c h ( [ " h r e f " , " s r c " , " w i d t h " , " h e i g h t " ] , f u n c t i o n ( a , c ) { f . a t t r H o o k s [ c ] = f . e x t e n d ( f . a t t r H o o k s [ c ] , { g e t : f u n c t i o n ( a ) { v a r   d = a . g e t A t t r i b u t e ( c , 2 ) ; r e t u r n   d = = = n u l l ? b : d } } ) } ) , f . s u p p o r t . s t y l e | | ( f . a t t r H o o k s . s t y l e = { g e t : f u n c t i o n ( a ) { r e t u r n   a . s t y l e . c s s T e x t . t o L o w e r C a s e ( ) | | b } , s e t : f u n c t i o n ( a , b ) { r e t u r n   a . s t y l e . c s s T e x t = " " + b } } ) , f . s u p p o r t . o p t S e l e c t e d | | ( f . p r o p H o o k s . s e l e c t e d = f . e x t e n d ( f . p r o p H o o k s . s e l e c t e d , { g e t : f u n c t i o n ( a ) { v a r   b = a . p a r e n t N o d e ; b & & ( b . s e l e c t e d I n d e x , b . p a r e n t N o d e & & b . p a r e n t N o d e . s e l e c t e d I n d e x ) } } ) ) , f . s u p p o r t . c h e c k O n | | f . e a c h ( [ " r a d i o " , " c h e c k b o x " ] , f u n c t i o n ( ) { f . v a l H o o k s [ t h i s ] = { g e t : f u n c t i o n ( a ) { r e t u r n   a . g e t A t t r i b u t e ( " v a l u e " ) = = = n u l l ? " o n " : a . v a l u e } } } ) , f . e a c h ( [ " r a d i o " , " c h e c k b o x " ] , f u n c t i o n ( ) { f . v a l H o o k s [ t h i s ] = f . e x t e n d ( f . v a l H o o k s [ t h i s ] , { s e t : f u n c t i o n ( a , b ) { i f ( f . i s A r r a y ( b ) ) r e t u r n   a . c h e c k e d = f . i n A r r a y ( f ( a ) . v a l ( ) , b ) > = 0 } } ) } ) ; v a r   x = 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 , y = / \ . ( . * ) $ / , z = / ^ ( ? : t e x t a r e a | i n p u t | s e l e c t ) $ / i , A = / \ . / g , B = /   / g , C = / [ ^ \ w \ s . | ` ] / g , D = f u n c t i o n ( a ) { r e t u r n   a . r e p l a c e ( C , " \ \ $ & " ) } ; f . e v e n t = { a d d : f u n c t i o n ( a , c , d , e ) { i f ( a . n o d e T y p e ! = = 3 & & a . n o d e T y p e ! = = 8 ) { i f ( d = = = ! 1 ) d = E ; e l s e   i f ( ! d ) r e t u r n ; v a r   g , h ; d . h a n d l e r & & ( g = d , d = g . h a n d l e r ) , d . g u i d | | ( d . g u i d = f . g u i d + + ) ; v a r   i = f . _ d a t a ( a ) ; i f ( ! i ) r e t u r n ; v a r   j = i . e v e n t s , k = i . h a n d l e ; j | | ( i . e v e n t s = j = { } ) , k | | ( i . h a n d l e = k = f u n c t i o n ( a ) { r e t u r n   t y p e o f   f ! = " u n d e f i n e d " & & ( ! a | | f . e v e n t . t r i g g e r e d ! = = a . t y p e ) ? f . e v e n t . h a n d l e . a p p l y ( k . e l e m , a r g u m e n t s ) : b } ) , k . e l e m = a , c = c . s p l i t ( "   " ) ; v a r   l , m = 0 , n ; w h i l e ( l = c [ m + + ] ) { h = g ? f . e x t e n d ( { } , g ) : { h a n d l e r : d , d a t a : e } , l . i n d e x O f ( " . " ) > - 1 ? ( n = l . s p l i t ( " . " ) , l = n . s h i f t ( ) , h . n a m e s p a c e = n . s l i c e ( 0 ) . s o r t ( ) . j o i n ( " . " ) ) : ( n = [ ] , h . n a m e s p a c e = " " ) , h . t y p e = l , h . g u i d | | ( h . g u i d = d . g u i d ) ; v a r   o = j [ l ] , p = f . e v e n t . s p e c i a l [ l ] | | { } ; i f ( ! o ) { o = j [ l ] = [ ] ; i f ( ! p . s e t u p | | p . s e t u p . c a l l ( a , e , n , k ) = = = ! 1 ) a . a d d E v e n t L i s t e n e r ? a . a d d E v e n t L i s t e n e r ( l , k , ! 1 ) : a . a t t a c h E v e n t & & a . a t t a c h E v e n t ( " o n " + l , k ) } p . a d d & & ( p . a d d . c a l l ( a , h ) , h . h a n d l e r . g u i d | | ( h . h a n d l e r . g u i d = d . g u i d ) ) , o . p u s h ( h ) , f . e v e n t . g l o b a l [ l ] = ! 0 } a = n u l l } } , g l o b a l : { } , r e m o v e : f u n c t i o n ( a , c , d , e ) { i f ( a . n o d e T y p e ! = = 3 & & a . n o d e T y p e ! = = 8 ) { d = = = ! 1 & & ( d = E ) ; v a r   g , h , i , j , k = 0 , l , m , n , o , p , q , r , s = f . h a s D a t a ( a ) & & f . _ d a t a ( a ) , t = s & & s . e v e n t s ; i f ( ! s | | ! t ) r e t u r n ; c & & c . t y p e & & ( d = c . h a n d l e r , c = c . t y p e ) ; i f ( ! c | | t y p e o f   c = = " s t r i n g " & & c . c h a r A t ( 0 ) = = = " . " ) { c = c | | " " ; f o r ( h   i n   t ) f . e v e n t . r e m o v e ( a , h + c ) ; r e t u r n } c = c . s p l i t ( "   " ) ; w h i l e ( h = c [ k + + ] ) { r = h , q = n u l l , l = h . i n d e x O f ( " . " ) < 0 , m = [ ] , l | | ( m = h . s p l i t ( " . " ) , h = m . s h i f t ( ) , n = n e w   R e g E x p ( " ( ^ | \ \ . ) " + f . m a p ( m . s l i c e ( 0 ) . s o r t ( ) , D ) . j o i n ( " \ \ . ( ? : . * \ \ . ) ? " ) + " ( \ \ . | $ ) " ) ) , p = t [ h ] ; i f ( ! p ) c o n t i n u e ; i f ( ! d ) { f o r ( j = 0 ; j < p . l e n g t h ; j + + ) { q = p [ j ] ; i f ( l | | n . t e s t ( q . n a m e s p a c e ) ) f . e v e n t . r e m o v e ( a , r , q . h a n d l e r , j ) , p . s p l i c e ( j - - , 1 ) } c o n t i n u e } o = f . e v e n t . s p e c i a l [ h ] | | { } ; f o r ( j = e | | 0 ; j < p . l e n g t h ; j + + ) { q = p [ j ] ; i f ( d . g u i d = = = q . g u i d ) { i f ( l | | n . t e s t ( q . n a m e s p a c e ) ) e = = n u l l & & p . s p l i c e ( j - - , 1 ) , o . r e m o v e & & o . r e m o v e . c a l l ( a , q ) ; i f ( e ! = n u l l ) b r e a k } } i f ( p . l e n g t h = = = 0 | | e ! = n u l l & & p . l e n g t h = = = 1 ) ( ! o . t e a r d o w n | | o . t e a r d o w n . c a l l ( a , m ) = = = ! 1 ) & & f . r e m o v e E v e n t ( a , h , s . h a n d l e ) , g = n u l l , d e l e t e   t [ h ] } i f ( f . i s E m p t y O b j e c t ( t ) ) { v a r   u = s . h a n d l e ; u & & ( u . e l e m = n u l l ) , d e l e t e   s . e v e n t s , d e l e t e   s . h a n d l e , f . i s E m p t y O b j e c t ( s ) & & f . r e m o v e D a t a ( a , b , ! 0 ) } } } , c u s t o m E v e n t : { g e t D a t a : ! 0 , s e t D a t a : ! 0 , c h a n g e D a t a : ! 0 } , t r i g g e r : f u n c t i o n ( c , d , e , g ) { v a r   h = c . t y p e | | c , i = [ ] , j ; h . i n d e x O f ( " ! " ) > = 0 & & ( h = h . s l i c e ( 0 , - 1 ) , j = ! 0 ) , h . i n d e x O f ( " . " ) > = 0 & & ( i = h . s p l i t ( " . " ) , h = i . s h i f t ( ) , i . s o r t ( ) ) ; i f ( ! ! e & & ! f . e v e n t . c u s t o m E v e n t [ h ] | | ! ! f . e v e n t . g l o b a l [ h ] ) { c = t y p e o f   c = = " o b j e c t " ? c [ f . e x p a n d o ] ? c : n e w   f . E v e n t ( h , c ) : n e w   f . E v e n t ( h ) , c . t y p e = h , c . e x c l u s i v e = j , c . n a m e s p a c e = i . j o i n ( " . " ) , c . n a m e s p a c e _ r e = n e w   R e g E x p ( " ( ^ | \ \ . ) " + i . j o i n ( " \ \ . ( ? : . * \ \ . ) ? " ) + " ( \ \ . | $ ) " ) ; i f ( g | | ! e ) c . p r e v e n t D e f a u l t ( ) , c . s t o p P r o p a g a t i o n ( ) ; i f ( ! e ) { f . e a c h ( f . c a c h e , f u n c t i o n ( ) { v a r   a = f . e x p a n d o , b = t h i s [ a ] ; b & & b . e v e n t s & & b . e v e n t s [ h ] & & f . e v e n t . t r i g g e r ( c , d , b . h a n d l e . e l e m 
 ) } ) ; r e t u r n } i f ( e . n o d e T y p e = = = 3 | | e . n o d e T y p e = = = 8 ) r e t u r n ; c . r e s u l t = b , c . t a r g e t = e , d = d ? f . m a k e A r r a y ( d ) : [ ] , d . u n s h i f t ( c ) ; v a r   k = e , l = h . i n d e x O f ( " : " ) < 0 ? " o n " + h : " " ; d o { v a r   m = f . _ d a t a ( k , " h a n d l e " ) ; c . c u r r e n t T a r g e t = k , m & & m . a p p l y ( k , d ) , l & & f . a c c e p t D a t a ( k ) & & k [ l ] & & k [ l ] . a p p l y ( k , d ) = = = ! 1 & & ( c . r e s u l t = ! 1 , c . p r e v e n t D e f a u l t ( ) ) , k = k . p a r e n t N o d e | | k . o w n e r D o c u m e n t | | k = = = c . t a r g e t . o w n e r D o c u m e n t & & a } w h i l e ( k & & ! c . i s P r o p a g a t i o n S t o p p e d ( ) ) ; i f ( ! c . i s D e f a u l t P r e v e n t e d ( ) ) { v a r   n , o = f . e v e n t . s p e c i a l [ h ] | | { } ; i f ( ( ! o . _ d e f a u l t | | o . _ d e f a u l t . c a l l ( e . o w n e r D o c u m e n t , c ) = = = ! 1 ) & & ( h ! = = " c l i c k " | | ! f . n o d e N a m e ( e , " a " ) ) & & f . a c c e p t D a t a ( e ) ) { t r y { l & & e [ h ] & & ( n = e [ l ] , n & & ( e [ l ] = n u l l ) , f . e v e n t . t r i g g e r e d = h , e [ h ] ( ) ) } c a t c h ( p ) { } n & & ( e [ l ] = n ) , f . e v e n t . t r i g g e r e d = b } } r e t u r n   c . r e s u l t } } , h a n d l e : f u n c t i o n ( c ) { c = f . e v e n t . f i x ( c | | a . e v e n t ) ; v a r   d = ( ( f . _ d a t a ( t h i s , " e v e n t s " ) | | { } ) [ c . t y p e ] | | [ ] ) . s l i c e ( 0 ) , e = ! c . e x c l u s i v e & & ! c . n a m e s p a c e , g = A r r a y . p r o t o t y p e . s l i c e . c a l l ( a r g u m e n t s , 0 ) ; g [ 0 ] = c , c . c u r r e n t T a r g e t = t h i s ; f o r ( v a r   h = 0 , i = d . l e n g t h ; h < i ; h + + ) { v a r   j = d [ h ] ; i f ( e | | c . n a m e s p a c e _ r e . t e s t ( j . n a m e s p a c e ) ) { c . h a n d l e r = j . h a n d l e r , c . d a t a = j . d a t a , c . h a n d l e O b j = j ; v a r   k = j . h a n d l e r . a p p l y ( t h i s , g ) ; k ! = = b & & ( c . r e s u l t = k , k = = = ! 1 & & ( c . p r e v e n t D e f a u l t ( ) , c . s t o p P r o p a g a t i o n ( ) ) ) ; i f ( c . i s I m m e d i a t e P r o p a g a t i o n S t o p p e d ( ) ) b r e a k } } r e t u r n   c . r e s u l t } , p r o p s : " a l t K e y   a t t r C h a n g e   a t t r N a m e   b u b b l e s   b u t t o n   c a n c e l a b l e   c h a r C o d e   c l i e n t X   c l i e n t Y   c t r l K e y   c u r r e n t T a r g e t   d a t a   d e t a i l   e v e n t P h a s e   f r o m E l e m e n t   h a n d l e r   k e y C o d e   l a y e r X   l a y e r Y   m e t a K e y   n e w V a l u e   o f f s e t X   o f f s e t Y   p a g e X   p a g e Y   p r e v V a l u e   r e l a t e d N o d e   r e l a t e d T a r g e t   s c r e e n X   s c r e e n Y   s h i f t K e y   s r c E l e m e n t   t a r g e t   t o E l e m e n t   v i e w   w h e e l D e l t a   w h i c h " . s p l i t ( "   " ) , f i x : f u n c t i o n ( a ) { i f ( a [ f . e x p a n d o ] ) r e t u r n   a ; v a r   d = a ; a = f . E v e n t ( d ) ; f o r ( v a r   e = t h i s . p r o p s . l e n g t h , g ; e ; ) g = t h i s . p r o p s [ - - e ] , a [ g ] = d [ g ] ; a . t a r g e t | | ( a . t a r g e t = a . s r c E l e m e n t | | c ) , a . t a r g e t . n o d e T y p e = = = 3 & & ( a . t a r g e t = a . t a r g e t . p a r e n t N o d e ) , ! a . r e l a t e d T a r g e t & & a . f r o m E l e m e n t & & ( a . r e l a t e d T a r g e t = a . f r o m E l e m e n t = = = a . t a r g e t ? a . t o E l e m e n t : a . f r o m E l e m e n t ) ; i f ( a . p a g e X = = n u l l & & a . c l i e n t X ! = n u l l ) { v a r   h = a . t a r g e t . o w n e r D o c u m e n t | | c , i = h . d o c u m e n t E l e m e n t , j = h . b o d y ; a . p a g e X = a . c l i e n t X + ( i & & i . s c r o l l L e f t | | j & & j . s c r o l l L e f t | | 0 ) - ( i & & i . c l i e n t L e f t | | j & & j . c l i e n t L e f t | | 0 ) , a . p a g e Y = a . c l i e n t Y + ( i & & i . s c r o l l T o p | | j & & j . s c r o l l T o p | | 0 ) - ( i & & i . c l i e n t T o p | | j & & j . c l i e n t T o p | | 0 ) } a . w h i c h = = n u l l & & ( a . c h a r C o d e ! = n u l l | | a . k e y C o d e ! = n u l l ) & & ( a . w h i c h = a . c h a r C o d e ! = n u l l ? a . c h a r C o d e : a . k e y C o d e ) , ! a . m e t a K e y & & a . c t r l K e y & & ( a . m e t a K e y = a . c t r l K e y ) , ! a . w h i c h & & a . b u t t o n ! = = b & & ( a . w h i c h = a . b u t t o n & 1 ? 1 : a . b u t t o n & 2 ? 3 : a . b u t t o n & 4 ? 2 : 0 ) ; r e t u r n   a } , g u i d : 1 e 8 , p r o x y : f . p r o x y , s p e c i a l : { r e a d y : { s e t u p : f . b i n d R e a d y , t e a r d o w n : f . n o o p } , l i v e : { a d d : f u n c t i o n ( a ) { f . e v e n t . a d d ( t h i s , O ( a . o r i g T y p e , a . s e l e c t o r ) , f . e x t e n d ( { } , a , { h a n d l e r : N , g u i d : a . h a n d l e r . g u i d } ) ) } , r e m o v e : f u n c t i o n ( a ) { f . e v e n t . r e m o v e ( t h i s , O ( a . o r i g T y p e , a . s e l e c t o r ) , a ) } } , b e f o r e u n l o a d : { s e t u p : f u n c t i o n ( a , b , c ) { f . i s W i n d o w ( t h i s ) & & ( t h i s . o n b e f o r e u n l o a d = c ) } , t e a r d o w n : f u n c t i o n ( a , b ) { t h i s . o n b e f o r e u n l o a d = = = b & & ( t h i s . o n b e f o r e u n l o a d = n u l l ) } } } } , f . r e m o v e E v e n t = c . r e m o v e E v e n t L i s t e n e r ? f u n c t i o n ( a , b , c ) { a . r e m o v e E v e n t L i s t e n e r & & a . r e m o v e E v e n t L i s t e n e r ( b , c , ! 1 ) } : f u n c t i o n ( a , b , c ) { a . d e t a c h E v e n t & & a . d e t a c h E v e n t ( " o n " + b , c ) } , f . E v e n t = f u n c t i o n ( a , b ) { i f ( ! t h i s . p r e v e n t D e f a u l t ) r e t u r n   n e w   f . E v e n t ( a , b ) ; a & & a . t y p e ? ( t h i s . o r i g i n a l E v e n t = a , t h i s . t y p e = a . t y p e , t h i s . i s D e f a u l t P r e v e n t e d = a . d e f a u l t P r e v e n t e d | | a . r e t u r n V a l u e = = = ! 1 | | a . g e t P r e v e n t D e f a u l t & & a . g e t P r e v e n t D e f a u l t ( ) ? F : E ) : t h i s . t y p e = a , b & & f . e x t e n d ( t h i s , b ) , t h i s . t i m e S t a m p = f . n o w ( ) , t h i s [ f . e x p a n d o ] = ! 0 } , f . E v e n t . p r o t o t y p e = { p r e v e n t D e f a u l t : f u n c t i o n ( ) { t h i s . i s D e f a u l t P r e v e n t e d = F ; v a r   a = t h i s . o r i g i n a l E v e n t ; ! a | | ( a . 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 ( ) : a . r e t u r n V a l u e = ! 1 ) } , s t o p P r o p a g a t i o n : f u n c t i o n ( ) { t h i s . i s P r o p a g a t i o n S t o p p e d = F ; v a r   a = t h i s . o r i g i n a l E v e n t ; ! a | | ( a . 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 ( ) , a . c a n c e l B u b b l e = ! 0 ) } , s t o p I m m e d i a t e P r o p a g a t i o n : f u n c t i o n ( ) { t h i s . i s I m m e d i a t e P r o p a g a t i o n S t o p p e d = F , t h i s . s t o p P r o p a g a t i o n ( ) } , i s D e f a u l t P r e v e n t e d : E , i s P r o p a g a t i o n S t o p p e d : E , i s I m m e d i a t e P r o p a g a t i o n S t o p p e d : E } ; v a r   G = f u n c t i o n ( a ) { v a r   b = a . r e l a t e d T a r g e t ; a . t y p e = a . d a t a ; t r y { i f ( b & & b ! = = c & & ! b . p a r e n t N o d e ) r e t u r n ; w h i l e ( b & & b ! = = t h i s ) b = b . p a r e n t N o d e ; b ! = = t h i s & & f . e v e n t . h a n d l e . a p p l y ( t h i s , a r g u m e n t s ) } c a t c h ( d ) { } } , H = f u n c t i o n ( a ) { a . t y p e = a . d a t a , f . e v e n t . h a n d l e . a p p l y ( t h i s , a r g u m e n t s ) } ; f . e a c h ( { m o u s e e n t e r : " m o u s e o v e r " , m o u s e l e a v e : " m o u s e o u t " } , f u n c t i o n ( a , b ) { f . e v e n t . s p e c i a l [ a ] = { s e t u p : f u n c t i o n ( c ) { f . e v e n t . a d d ( t h i s , b , c & & c . s e l e c t o r ? H : G , a ) } , t e a r d o w n : f u n c t i o n ( a ) { f . e v e n t . r e m o v e ( t h i s , b , a & & a . s e l e c t o r ? H : G ) } } } ) , f . s u p p o r t . s u b m i t B u b b l e s | | ( f . e v e n t . s p e c i a l . s u b m i t = { s e t u p : f u n c t i o n ( a , b ) { i f ( ! f . n o d e N a m e ( t h i s , " f o r m " ) ) f . e v e n t . a d d ( t h i s , " c l i c k . s p e c i a l S u b m i t " , f u n c t i o n ( a ) { v a r   b = a . t a r g e t , c = b . t y p e ; ( c = = = " s u b m i t " | | c = = = " i m a g e " ) & & f ( b ) . c l o s e s t ( " f o r m " ) . l e n g t h & & L ( " s u b m i t " , t h i s , a r g u m e n t s ) } ) , f . e v e n t . a d d ( t h i s , " k e y p r e s s . s p e c i a l S u b m i t " , f u n c t i o n ( a ) { v a r   b = a . t a r g e t , c = b . t y p e ; ( c = = = " t e x t " | | c = = = " p a s s w o r d " ) & & f ( b ) . c l o s e s t ( " f o r m " ) . l e n g t h & & a . k e y C o d e = = = 1 3 & & L ( " s u b m i t " , t h i s , a r g u m e n t s ) } ) ; e l s e   r e t u r n ! 1 } , t e a r d o w n : f u n c t i o n ( a ) { f . e v e n t . r e m o v e ( t h i s , " . s p e c i a l S u b m i t " ) } } ) ; i f ( ! f . s u p p o r t . c h a n g e B u b b l e s ) { v a r   I , J = f u n c t i o n ( a ) { v a r   b = a . t y p e , c = a . v a l u e ; b = = = " r a d i o " | | b = = = " c h e c k b o x " ? c = a . c h e c k e d : b = = = " s e l e c t - m u l t i p l e " ? c = a . s e l e c t e d I n d e x > - 1 ? f . m a p ( a . o p t i o n s , f u n c t i o n ( a ) { r e t u r n   a . s e l e c t e d } ) . j o i n ( " - " ) : " " : f . n o d e N a m e ( a , " s e l e c t " ) & & ( c = a . s e l e c t e d I n d e x ) ; r e t u r n   c } , K = f u n c t i o n ( c ) { v a r   d = c . t a r g e t , e , g ; i f ( ! ! z . t e s t ( d . n o d e N a m e ) & & ! d . r e a d O n l y ) { e = f . _ d a t a ( d , " _ c h a n g e _ d a t a " ) , g = J ( d ) , ( c . t y p e ! = = " f o c u s o u t " | | d . t y p e ! = = " r a d i o " ) & & f . _ d a t a ( d , " _ c h a n g e _ d a t a " , g ) ; i f ( e = = = b | | g = = = e ) r e t u r n ; i f ( e ! = n u l l | | g ) c . t y p e = " c h a n g e " , c . l i v e F i r e d = b , f . e v e n t . t r i g g e r ( c , a r g u m e n t s [ 1 ] , d ) } } ; f . e v e n t . s p e c i a l . c h a n g e = { f i l t e r s : { f o c u s o u t : K , b e f o r e d e a c t i v a t e : K , c l i c k : f u n c t i o n ( a ) { v a r   b = a . t a r g e t , c = f . n o d e N a m e ( b , " i n p u t " ) ? b . t y p e : " " ; ( c = = = " r a d i o " | | c = = = " c h e c k b o x " | | f . n o d e N a m e ( b , " s e l e c t " ) ) & & K . c a l l ( t h i s , a ) } , k e y d o w n : f u n c t i o n ( a ) { v a r   b = a . t a r g e t , c = f . n o d e N a m e ( b , " i n p u t " ) ? b . t y p e : " " ; ( a . k e y C o d e = = = 1 3 & & ! f . n o d e N a m e ( b , " t e x t a r e a " ) | | a . k e y C o d e = = = 3 2 & & ( c = = = " c h e c k b o x " | | c = = = " r a d i o " ) | | c = = = " s e l e c t - m u l t i p l e " ) & & K . c a l l ( t h i s , a ) } , b e f o r e a c t i v a t e : f u n c t i o n ( a ) { v a r   b = a . t a r g e t ; f . _ d a t a ( b , " _ c h a n g e _ d a t a " , J ( b ) ) } } , s e t u p : f u n c t i o n ( a , b ) { i f ( t h i s . t y p e = = = " f i l e " ) r e t u r n ! 1 ; f o r ( v a r   c   i n   I ) f . e v e n t . a d d ( t h i s , c + " . s p e c i a l C h a n g e " , I [ c ] ) ; r e t u r n   z . t e s t ( t h i s . n o d e N a m e ) } , t e a r d o w n : f u n c t i o n ( a ) { f . e v e n t . r e m o v e ( t h i s , " . s p e c i a l C h a n g e " ) ; r e t u r n   z . t e s t ( t h i s . n o d e N a m e ) } } , I = f . e v e n t . s p e c i a l . c h a n g e . f i l t e r s , I . f o c u s = I . b e f o r e a c t i v a t e } f . s u p p o r t . f o c u s i n B u b b l e s | | f . e a c h ( { f o c u s : " f o c u s i n " , b l u r : " f o c u s o u t " } , f u n c t i o n ( a , b ) { f u n c t i o n   e ( a ) { v a r   c = f . e v e n t . f i x ( a ) ; c . t y p e = b , c . o r i g i n a l E v e n t = { } , f . e v e n t . t r i g g e r ( c , n u l l , c . t a r g e t ) , c . i s D e f a u l t P r e v e n t e d ( ) & & a . p r e v e n t D e f a u l t ( ) } v a r   d = 0 ; f . e v e n t . s p e c i a l [ b ] = { s e t u p : f u n c t i o n ( ) { d + + = = = 0 & & c . a d d E v e n t L i s t e n e r ( a , e , ! 0 ) } , t e a r d o w n : f u n c t i o n ( ) { - - d = = = 0 & & c . r e m o v e E v e n t L i s t e n e r ( a , e , ! 0 ) } } } ) , f . e a c h ( [ " b i n d " , " o n e " ] , f u n c t i o n ( a , c ) { f . f n [ c ] = f u n c t i o n ( a , d , e ) { v a r   g ; i f ( t y p e o f   a = = " o b j e c t " ) { f o r ( v a r   h   i n   a ) t h i s [ c ] ( h , d , a [ h ] , e ) ; r e t u r n   t h i s } i f ( a r g u m e n t s . l e n g t h = = = 2 | | d = = = ! 1 ) e = d , d = b ; c = = = " o n e " ? ( g = f u n c t i o n ( a ) { f ( t h i s ) . u n b i n d ( a , g ) ; r e t u r n   e . a p p l y ( t h i s , a r g u m e n t s ) } , g . g u i d = e . g u i d | | f . g u i d + + ) : g = e ; i f ( a = = = " u n l o a d " & & c ! = = " o n e " ) t h i s . o n e ( a , d , e ) ; e l s e   f o r ( v a r   i = 0 , j = t h i s . l e n g t h ; i < j ; i + + ) f . e v e n t . a d d ( t h i s [ i ] , a , g , d ) ; r e t u r n   t h i s } } ) , f . f n . e x t e n d ( { u n b i n d : f u n c t i o n ( a , b ) { i f ( t y p e o f   a = = " o b j e c t " & & ! a . p r e v e n t D e f a u l t ) f o r ( v a r   c   i n   a ) t h i s . u n b i n d ( c , a [ c ] ) ; e l s e   f o r ( v a r   d = 0 , e = t h i s . l e n g t h ; d < e ; d + + ) f . e v e n t . r e m o v e ( t h i s [ d ] , a , b ) ; r e t u r n   t h i s } , d e l e g a t e : f u n c t i o n ( a , b , c , d ) { r e t u r n   t h i s . l i v e ( b , c , d , a ) } , u n d e l e g a t e : f u n c t i o n ( a , b , c ) { r e t u r n   a r g u m e n t s . l e n g t h = = = 0 ? t h i s . u n b i n d ( " l i v e " ) : t h i s . d i e ( b , n u l l , c , a ) } , t r i g g e r : f u n c t i o n ( a , b ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { f . e v e n t . t r i g g e r ( a , b , t h i s ) } ) } , t r i g g e r H a n d l e r : f u n c t i o n ( a , b ) { i f ( t h i s [ 0 ] ) r e t u r n   f . e v e n t . t r i g g e r ( a , b , t h i s [ 0 ] , ! 0 ) } , t o g g l e : f u n c t i o n ( a ) { v a r   b = a r g u m e n t s , c = a . g u i d | | f . g u i d + + , d = 0 , e = f u n c t i o n ( c ) { v a r   e = ( f . d a t a ( t h i s , " l a s t T o g g l e " + a . g u i d ) | | 0 ) % d ; f . d a t a ( t h i s , " l a s t T o g g l e " + a . g u i d , e + 1 ) , c . p r e v e n t D e f a u l t ( ) ; r e t u r n   b [ e ] . a p p l y ( t h i s , a r g u m e n t s ) | | ! 1 } ; e . g u i d = c ; w h i l e ( d < b . l e n g t h ) b [ d + + ] . g u i d = c ; r e t u r n   t h i s . c l i c k ( e ) } , h o v e r : f u n c t i o n ( a , b ) { r e t u r n   t h i s . m o u s e e n t e r ( a ) . m o u s e l e a v e ( b | | a ) } } ) ; v a r   M = { f o c u s : " f o c u s i n " , b l u r : " f o c u s o u t " , m o u s e e n t e r : " m o u s e o v e r " , m o u s e l e a v e : " m o u s e o u t " } ; f . e a c h ( [ " l i v e " , " d i e " ] , f u n c t i o n ( a , c ) { f . f n [ c ] = f u n c t i o n ( a , d , e , g ) { v a r   h , i = 0 , j , k , l , m = g | | t h i s . s e l e c t o r , n = g ? t h i s : f ( t h i s . c o n t e x t ) ; i f ( t y p e o f   a = = " o b j e c t " & & ! a . p r e v e n t D e f a u l t ) { f o r ( v a r   o   i n   a ) n [ c ] ( o , d , a [ o ] , m ) ; r e t u r n   t h i s } i f ( c = = = " d i e " & & ! a & & g & & g . c h a r A t ( 0 ) = = = " . " ) { n . u n b i n d ( g ) ; r e t u r n   t h i s } i f ( d = = = ! 1 | | f . i s F u n c t i o n ( d ) ) e = d | | E , d = b ; a = ( a | | " " ) . s p l i t ( "   " ) ; w h i l e ( ( h = a [ i + + ] ) ! = n u l l ) { j = y . e x e c ( h ) , k = " " , j & & ( k = j [ 0 ] , h = h . r e p l a c e ( y , " " ) ) ; i f ( h = = = " h o v e r " ) { a . p u s h ( " m o u s e e n t e r " + k , " m o u s e l e a v e " + k ) ; c o n t i n u e } l = h , M [ h ] ? ( a . p u s h ( M [ h ] + k ) , h = h + k ) : h = ( M [ h ] | | h ) + k ; i f ( c = = = " l i v e " ) f o r ( v a r   p = 0 , q = n . l e n g t h ; p < q ; p + + ) f . e v e n t . a d d ( n [ p ] , " l i v e . " + O ( h , m ) , { d a t a : d , s e l e c t o r : m , h a n d l e r : e , o r i g T y p e : h , o r i g H a n d l e r : e , p r e T y p e : l } ) ; e l s e   n . u n b i n d ( " l i v e . " + O ( h , m ) , e ) } r e t u r n   t h i s } } ) , f . e a c h ( " b l u r   f o c u s   f o c u s i n   f o c u s o u t   l o a d   r e s i z e   s c r o l l   u n l o a d   c l i c k   d b l c l i c k   m o u s e d o w n   m o u s e u p   m o u s e m o v e   m o u s e o v e r   m o u s e o u t   m o u s e e n t e r   m o u s e l e a v e   c h a n g e   s e l e c t   s u b m i t   k e y d o w n   k e y p r e s s   k e y u p   e r r o r " . s p l i t ( "   " ) , f u n c t i o n ( a , b ) { f . f n [ b ] = f u n c t i o n ( a , c ) { c = = n u l l & & ( c = a , a = n u l l ) ; r e t u r n   a r g u m e n t s . l e n g t h > 0 ? t h i s . b i n d ( b , a , c ) : t h i s . t r i g g e r ( b ) } , f . a t t r F n & & ( f . a t t r F n [ b ] = ! 0 ) } ) , f u n c t i o n ( ) { f u n c t i o n   u ( a , b , c , d , e , f ) { f o r ( v a r   g = 0 , h = d . l e n g t h ; g < h ; g + + ) { v a r   i = d [ g ] ; i f ( i ) { v a r   j = ! 1 ; i = i [ a ] ; w h i l e ( i ) { i f ( i . s i z c a c h e = = = c ) { j = d [ i . s i z s e t ] ; b r e a k } i f ( i . n o d e T y p e = = = 1 ) { f | | ( i . s i z c a c h e = c , i . s i z s e t = g ) ; i f ( t y p e o f   b ! = " s t r i n g " ) { i f ( i = = = b ) { j = ! 0 ; b r e a k } } e l s e   i f ( k . f i l t e r ( b , [ i ] ) . l e n g t h > 0 ) { j = i ; b r e a k } } i = i [ a ] } d [ g ] = j } } } f u n c t i o n   t ( a , b , c , d , e , f ) { f o r ( v a r   g = 0 , h = d . l e n g t h ; g < h ; g + + ) { v a r   i = d [ g ] ; i f ( i ) { v a r   j = ! 1 ; i = i [ a ] ; w h i l e ( i ) { i f ( i . s i z c a c h e = = = c ) { j = d [ i . s i z s e t ] ; b r e a k } i . n o d e T y p e = = = 1 & & ! f & & ( i . s i z c a c h e = c , i . s i z s e t = g ) ; i f ( i . n o d e N a m e . t o L o w e r C a s e ( ) = = = b ) { j = i ; b r e a k } i = i [ a ] } d [ g ] = j } } } v a r   a = / ( ( ? : \ ( ( ? : \ ( [ ^ ( ) ] + \ ) | [ ^ ( ) ] + ) + \ ) | \ [ ( ? : \ [ [ ^ \ [ \ ] ] * \ ] | [ ' " ] [ ^ ' " ] * [ ' " ] | [ ^ \ [ \ ] ' " ] + ) + \ ] | \ \ . | [ ^   > + ~ , ( \ [ \ \ ] + ) + | [ > + ~ ] ) ( \ s * , \ s * ) ? ( ( ? : . | \ r | \ n ) * ) / g , d = 0 , e = O b j e c t . p r o t o t y p e . t o S t r i n g , g = ! 1 , h = ! 0 , i = / \ \ / g , j = / \ W / ; [ 0 , 0 ] . s o r t ( f u n c t i o n ( ) { h = ! 1 ; r e t u r n   0 } ) ; v a r   k = f u n c t i o n ( b , d , f , g ) { f = f | | [ ] , d = d | | c ; v a r   h = d ; i f ( d . n o d e T y p e ! = = 1 & & d . n o d e T y p e ! = = 9 ) r e t u r n [ ] ; i f ( ! b | | t y p e o f   b ! = " s t r i n g " ) r e t u r n   f ; v a r   i , j , n , o , q , r , s , t , u = ! 0 , w = k . i s X M L ( d ) , x = [ ] , y = b ; d o { a . e x e c ( " " ) , i = a . e x e c ( y ) ; i f ( i ) { y = i [ 3 ] , x . p u s h ( i [ 1 ] ) ; i f ( i [ 2 ] ) { o = i [ 3 ] ; b r e a k } } } w h i l e ( i ) ; i f ( x . l e n g t h > 1 & & m . e x e c ( b ) ) i f ( x . l e n g t h = = = 2 & & l . r e l a t i v e [ x [ 0 ] ] ) j = v ( x [ 0 ] + x [ 1 ] , d ) ; e l s e { j = l . r e l a t i v e [ x [ 0 ] ] ? [ d ] : k ( x . s h i f t ( ) , d ) ; w h i l e ( x . l e n g t h ) b = x . s h i f t ( ) , l . r e l a t i v e [ b ] & & ( b + = x . s h i f t ( ) ) , j = v ( b , j ) } e l s e { ! g & & x . l e n g t h > 1 & & d . n o d e T y p e = = = 9 & & ! w & & l . m a t c h . I D . t e s t ( x [ 0 ] ) & & ! l . m a t c h . I D . t e s t ( x [ x . l e n g t h - 1 ] ) & & ( q = k . f i n d ( x . s h i f t ( ) , d , w ) , d = q . e x p r ? k . f i l t e r ( q . e x p r , q . s e t ) [ 0 ] : q . s e t [ 0 ] ) ; i f ( d ) { q = g ? { e x p r : x . p o p ( ) , s e t : p ( g ) } : k . f i n d ( x . p o p ( ) , x . l e n g t h = = = 1 & & ( x [ 0 ] = = = " ~ " | | x [ 0 ] = = = " + " ) & & d . p a r e n t N o d e ? d . p a r e n t N o d e : d , w ) , j = q . e x p r ? k . f i l t e r ( q . e x p r , q . s e t ) : q . s e t , x . l e n g t h > 0 ? n = p ( j ) : u = ! 1 ; w h i l e ( x . l e n g t h ) r = x . p o p ( ) , s = r , l . r e l a t i v e [ r ] ? s = x . p o p ( ) : r = " " , s = = n u l l & & ( s = d ) , l . r e l a t i v e [ r ] ( n , s , w ) } e l s e   n = x = [ ] } n | | ( n = j ) , n | | k . e r r o r ( r | | b ) ; i f ( e . c a l l ( n ) = = = " [ o b j e c t   A r r a y ] " ) i f ( ! u ) f . p u s h . a p p l y ( f , n ) ; e l s e   i f ( d & & d . n o d e T y p e = = = 1 ) f o r ( t = 0 ; n [ t ] ! = n u l l ; t + + ) n [ t ] & & ( n [ t ] = = = ! 0 | | n [ t ] . n o d e T y p e = = = 1 & & k . c o n t a i n s ( d , n [ t ] ) ) & & f . p u s h ( j [ t ] ) ; e l s e   f o r ( t = 0 ; n [ t ] ! = n u l l ; t + + ) n [ t ] & & n [ t ] . n o d e T y p e = = = 1 & & f . p u s h ( j [ t ] ) ; e l s e   p ( n , f ) ; o & & ( k ( o , h , f , g ) , k . u n i q u e S o r t ( f ) ) ; r e t u r n   f } ; k . u n i q u e S o r t = f u n c t i o n ( a ) { i f ( r ) { g = h , a . s o r t ( r ) ; i f ( g ) f o r ( v a r   b = 1 ; b < a . l e n g t h ; b + + ) a [ b ] = = = a [ b - 1 ] & & a . s p l i c e ( b - - , 1 ) } r e t u r n   a } , k . m a t c h e s = f u n c t i o n ( a , b ) { r e t u r n   k ( a , n u l l , n u l l , b ) } , k . m a t c h e s S e l e c t o r = f u n c t i o n ( a , b ) { r e t u r n   k ( b , n u l l , n u l l , [ a ] ) . l e n g t h > 0 } , k . f i n d = f u n c t i o n ( a , b , c ) { v a r   d ; i f ( ! a ) r e t u r n [ ] ; f o r ( v a r   e = 0 , f = l . o r d e r . l e n g t h ; e < f ; e + + ) { v a r   g , h = l . o r d e r [ e ] ; i f ( g = l . l e f t M a t c h [ h ] . e x e c ( a ) ) { v a r   j = g [ 1 ] ; g . s p l i c e ( 1 , 1 ) ; i f ( j . s u b s t r ( j . l e n g t h - 1 ) ! = = " \ \ " ) { g [ 1 ] = ( g [ 1 ] | | " " ) . r e p l a c e ( i , " " ) , d = l . f i n d [ h ] ( g , b , c ) ; i f ( d ! = n u l l ) { a = a . r e p l a c e ( l . m a t c h [ h ] , " " ) ; b r e a k } } } } d | | ( d = t y p e o f   b . g e t E l e m e n t s B y T a g N a m e ! = " u n d e f i n e d " ? b . g e t E l e m e n t s B y T a g N a m e ( " * " ) : [ ] ) ; r e t u r n { s e t : d , e x p r : a } } , k . f i l t e r = f u n c t i o n ( a , c , d , e ) { v a r   f , g , h = a , i = [ ] , j = c , m = c & & c [ 0 ] & & k . i s X M L ( c [ 0 ] ) ; w h i l e ( a & & c . l e n g t h ) { f o r ( v a r   n   i n   l . f i l t e r ) i f ( ( f = l . l e f t M a t c h [ n ] . e x e c ( a ) ) ! = n u l l & & f [ 2 ] ) { v a r   o , p , q = l . f i l t e r [ n ] , r = f [ 1 ] ; g = ! 1 , f . s p l i c e ( 1 , 1 ) ; i f ( r . s u b s t r ( r . l e n g t h - 1 ) = = = " \ \ " ) c o n t i n u e ; j = = = i & & ( i = [ ] ) ; i f ( l . p r e F i l t e r [ n ] ) { f = l . p r e F i l t e r [ n ] ( f , j , d , i , e , m ) ; i f ( ! f ) g = o = ! 0 ; e l s e   i f ( f = = = ! 0 ) c o n t i n u e } i f ( f ) f o r ( v a r   s = 0 ; ( p = j [ s ] ) ! = n u l l ; s + + ) i f ( p ) { o = q ( p , f , s , j ) ; v a r   t = e ^ ! ! o ; d & & o ! = n u l l ? t ? g = ! 0 : j [ s ] = ! 1 : t & & ( i . p u s h ( p ) , g = ! 0 ) } i f ( o ! = = b ) { d | | ( j = i ) , a = a . r e p l a c e ( l . m a t c h [ n ] , " " ) ; i f ( ! g ) r e t u r n [ ] ; b r e a k } } i f ( a = = = h ) i f ( g = = n u l l ) k . e r r o r ( a ) ; e l s e   b r e a k ; h = a } r e t u r n   j } , k . e r r o r = f u n c t i o n ( a ) { t h r o w " S y n t a x   e r r o r ,   u n r e c o g n i z e d   e x p r e s s i o n :   " + a } ; v a r   l = k . s e l e c t o r s = { o r d e r : [ " I D " , " N A M E " , " T A G " ] , m a t c h : { I D : / # ( ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F \ - ] | \ \ . ) + ) / , C L A S S : / \ . ( ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F \ - ] | \ \ . ) + ) / , N A M E : / \ [ n a m e = [ ' " ] * ( ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F \ - ] | \ \ . ) + ) [ ' " ] * \ ] / , A T T R : / \ [ \ s * ( ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F \ - ] | \ \ . ) + ) \ s * ( ? : ( \ S ? = ) \ s * ( ? : ( [ ' " ] ) ( . * ? ) \ 3 | ( # ? ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F \ - ] | \ \ . ) * ) | ) | ) \ s * \ ] / , T A G : / ^ ( ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F \ * \ - ] | \ \ . ) + ) / , C H I L D : / : ( o n l y | n t h | l a s t | f i r s t ) - c h i l d ( ? : \ ( \ s * ( e v e n | o d d | ( ? : [ + \ - ] ? \ d + | ( ? : [ + \ - ] ? \ d * ) ? n \ s * ( ? : [ + \ - ] \ s * \ d + ) ? ) ) \ s * \ ) ) ? / , P O S : / : ( n t h | e q | g t | l t | f i r s t | l a s t | e v e n | o d d ) ( ? : \ ( ( \ d * ) \ ) ) ? ( ? = [ ^ \ - ] | $ ) / , P S E U D O : / : ( ( ? : [ \ w \ u 0 0 c 0 - \ u F F F F \ - ] | \ \ . ) + ) ( ? : \ ( ( [ ' " ] ? ) ( ( ? : \ ( [ ^ \ ) ] + \ ) | [ ^ \ ( \ ) ] * ) + ) \ 2 \ ) ) ? / } , l e f t M a t c h : { } , a t t r M a p : { " c l a s s " : " c l a s s N a m e " , " f o r " : " h t m l F o r " } , a t t r H a n d l e : { h r e f : f u n c t i o n ( a ) { r e t u r n   a . g e t A t t r i b u t e ( " h r e f " ) } , t y p e : f u n c t i o n ( a ) { r e t u r n   a . g e t A t t r i b u t e ( " t y p e " ) } } , r e l a t i v e : { " + " : f u n c t i o n ( a , b ) { v a r   c = t y p e o f   b = = " s t r i n g " , d = c & & ! j . t e s t ( b ) , e = c & & ! d ; d & & ( b = b . t o L o w e r C a s e ( ) ) ; f o r ( v a r   f = 0 , g = a . l e n g t h , h ; f < g ; f + + ) i f ( h = a [ f ] ) { w h i l e ( ( h = h . p r e v i o u s S i b l i n g ) & & h . n o d e T y p e ! = = 1 ) ; a [ f ] = e | | h & & h . n o d e N a m e . t o L o w e r C a s e ( ) = = = b ? h | | ! 1 : h = = = b } e & & k . f i l t e r ( b , a , ! 0 ) } , " > " : f u n c t i o n ( a , b ) { v a r   c , d = t y p e o f   b = = " s t r i n g " , e = 0 , f = a . l e n g t h ; i f ( d & & ! j . t e s t ( b ) ) { b = b . t o L o w e r C a s e ( ) ; f o r ( ; e < f ; e + + ) { c = a [ e ] ; i f ( c ) { v a r   g = c . p a r e n t N o d e ; a [ e ] = g . n o d e N a m e . t o L o w e r C a s e ( ) = = = b ? g : ! 1 } } } e l s e { f o r ( ; e < f ; e + + ) c = a [ e ] , c & & ( a [ e ] = d ? c . p a r e n t N o d e : c . p a r e n t N o d e = = = b ) ; d & & k . f i l t e r ( b , a , ! 0 ) } } , " " : f u n c t i o n ( a , b , c ) { v a r   e , f = d + + , g = u ; t y p e o f   b = = " s t r i n g " & & ! j . t e s t ( b ) & & ( b = b . t o L o w e r C a s e ( ) , e = b , g = t ) , g ( " p a r e n t N o d e " , b , f , a , e , c ) } , " ~ " : f u n c t i o n ( a , b , c ) { v a r   e , f = d + + , g = u ; t y p e o f   b = = " s t r i n g " & & ! j . t e s t ( b ) & & ( b = b . t o L o w e r C a s e ( ) , e = b , g = t ) , g ( " p r e v i o u s S i b l i n g " , b , f , a , e , c ) } } , f i n d : { I D : f u n c t i o n ( a , b , c ) { i f ( t y p e o f   b . g e t E l e m e n t B y I d ! = " u n d e f i n e d " & & ! c ) { v a r   d = b . g e t E l e m e n t B y I d ( a [ 1 ] ) ; r e t u r n   d & & d . p a r e n t N o d e ? [ d ] : [ ] } } , N A M E : f u n c t i o n ( a , b ) { i f ( t y p e o f   b . g e t E l e m e n t s B y N a m e ! = " u n d e f i n e d " ) { v a r   c = [ ] , d = b . g e t E l e m e n t s B y N a m e ( a [ 1 ] ) ; f o r ( v a r   e = 0 , f = d . l e n g t h ; e < f ; e + + ) d [ e ] . g e t A t t r i b u t e ( " n a m e " ) = = = a [ 1 ] & & c . p u s h ( d [ e ] ) ; r e t u r n   c . l e n g t h = = = 0 ? n u l l : c } } , T A G : f u n c t i o n ( a , b ) { i f ( t y p e o f   b . g e t E l e m e n t s B y T a g N a m e ! = " u n d e f i n e d " ) r e t u r n   b . g e t E l e m e n t s B y T a g N a m e ( a [ 1 ] ) } } , p r e F i l t e r : { C L A S S : f u n c t i o n ( a , b , c , d , e , f ) { a = "   " + a [ 1 ] . r e p l a c e ( i , " " ) + "   " ; i f ( f ) r e t u r n   a ; f o r ( v a r   g = 0 , h ; ( h = b [ g ] ) ! = n u l l ; g + + ) h & & ( e ^ ( h . c l a s s N a m e & & ( "   " + h . c l a s s N a m e + "   " ) . r e p l a c e ( / [ \ t \ n \ r ] / g , "   " ) . i n d e x O f ( a ) > = 0 ) ? c | | d . p u s h ( h ) : c & & ( b [ g ] = ! 1 ) ) ; r e t u r n ! 1 } , I D : f u n c t i o n ( a ) { r e t u r n   a [ 1 ] . r e p l a c e ( i , " " ) } , T A G : f u n c t i o n ( a , b ) { r e t u r n   a [ 1 ] . r e p l a c e ( i , " " ) . t o L o w e r C a s e ( ) } , C H I L D : f u n c t i o n ( a ) { i f ( a [ 1 ] = = = " n t h " ) { a [ 2 ] | | k . e r r o r ( a [ 0 ] ) , a [ 2 ] = a [ 2 ] . r e p l a c e ( / ^ \ + | \ s * / g , " " ) ; v a r   b = / ( - ? ) ( \ d * ) ( ? : n ( [ + \ - ] ? \ d * ) ) ? / . e x e c ( a [ 2 ] = = = " e v e n " & & " 2 n " | | a [ 2 ] = = = " o d d " & & " 2 n + 1 " | | ! / \ D / . t e s t ( a [ 2 ] ) & & " 0 n + " + a [ 2 ] | | a [ 2 ] ) ; a [ 2 ] = b [ 1 ] + ( b [ 2 ] | | 1 ) - 0 , a [ 3 ] = b [ 3 ] - 0 } e l s e   a [ 2 ] & & k . e r r o r ( a [ 0 ] ) ; a [ 0 ] = d + + ; r e t u r n   a } , A T T R : f u n c t i o n ( a , b , c , d , e , f ) { v a r   g = a [ 1 ] = a [ 1 ] . r e p l a c e ( i , " " ) ; ! f & & l . a t t r M a p [ g ] & & ( a [ 1 ] = l . a t t r M a p [ g ] ) , a [ 4 ] = ( a [ 4 ] | | a [ 5 ] | | " " ) . r e p l a c e ( i , " " ) , a [ 2 ] = = = " ~ = " & & ( a [ 4 ] = "   " + a [ 4 ] + "   " ) ; r e t u r n   a } , P S E U D O : f u n c t i o n ( b , c , d , e , f ) { i f ( b [ 1 ] = = = " n o t " ) i f ( ( a . e x e c ( b [ 3 ] ) | | " " ) . l e n g t h > 1 | | / ^ \ w / . t e s t ( b [ 3 ] ) ) b [ 3 ] = k ( b [ 3 ] , n u l l , n u l l , c ) ; e l s e { v a r   g = k . f i l t e r ( b [ 3 ] , c , d , ! 0 ^ f ) ; d | | e . p u s h . a p p l y ( e , g ) ; r e t u r n ! 1 } e l s e   i f ( l . m a t c h . P O S . t e s t ( b [ 0 ] ) | | l . m a t c h . C H I L D . t e s t ( b [ 0 ] ) ) r e t u r n ! 0 ; r e t u r n   b } , P O S : f u n c t i o n ( a ) { a . u n s h i f t ( ! 0 ) ; r e t u r n   a } } , f i l t e r s : { e n a b l e d : f u n c t i o n ( a ) { r e t u r n   a . d i s a b l e d = = = ! 1 & & a . t y p e ! = = " h i d d e n " } , d i s a b l e d : f u n c t i o n ( a ) { r e t u r n   a . d i s a b l e d = = = ! 0 } , c h e c k e d : f u n c t i o n ( a ) { r e t u r n   a . c h e c k e d = = = ! 0 } , s e l e c t e d : f u n c t i o n ( a ) { a . p a r e n t N o d e & & a . p a r e n t N o d e . s e l e c t e d I n d e x ; r e t u r n   a . s e l e c t e d = = = ! 0 } , p a r e n t : f u n c t i o n ( a ) { r e t u r n ! ! a . f i r s t C h i l d } , e m p t y : f u n c t i o n ( a ) { r e t u r n ! a . f i r s t C h i l d } , h a s : f u n c t i o n ( a , b , c ) { r e t u r n ! ! k ( c [ 3 ] , a ) . l e n g t h } , h e a d e r : f u n c t i o n ( a ) { r e t u r n / h \ d / i . t e s t ( a . n o d e N a m e ) } , t e x t : f u n c t i o n ( a ) { v a r   b = a . g e t A t t r i b u t e ( " t y p e " ) , c = a . t y p e ; r e t u r n   a . n o d e N a m e . t o L o w e r C a s e ( ) = = = " i n p u t " & & " t e x t " = = = c & & ( b = = = c | | b = = = n u l l ) } , r a d i o : f u n c t i o n ( a ) { r e t u r n   a . n o d e N a m e . t o L o w e r C a s e ( ) = = = " i n p u t " & & " r a d i o " = = = a . t y p e } , c h e c k b o x : f u n c t i o n ( a ) { r e t u r n   a . n o d e N a m e . t o L o w e r C a s e ( ) = = = " i n p u t " & & " c h e c k b o x " = = = a . t y p e } , f i l e : f u n c t i o n ( a ) { r e t u r n   a . n o d e N a m e . t o L o w e r C a s e ( ) = = = " i n p u t " & & " f i l e " = = = a . t y p e } , p a s s w o r d : f u n c t i o n ( a ) { r e t u r n   a . n o d e N a m e . t o L o w e r C a s e ( ) = = = " i n p u t " & & " p a s s w o r d " = = = a . t y p e } , s u b m i t : f u n c t i o n ( a ) { v a r   b = a . n o d e N a m e . t o L o w e r C a s e ( ) ; r e t u r n ( b = = = " i n p u t " | | b = = = " b u t t o n " ) & & " s u b m i t " = = = a . t y p e } , i m a g e : f u n c t i o n ( a ) { r e t u r n   a . n o d e N a m e . t o L o w e r C a s e ( ) = = = " i n p u t " & & " i m a g e " = = = a . t y p e } , r e s e t : f u n c t i o n ( a ) { v a r   b = a . n o d e N a m e . t o L o w e r C a s e ( ) ; r e t u r n ( b = = = " i n p u t " | | b = = = " b u t t o n " ) & & " r e s e t " = = = a . t y p e } , b u t t o n : f u n c t i o n ( a ) { v a r   b = a . n o d e N a m e . t o L o w e r C a s e ( ) ; r e t u r n   b = = = " i n p u t " & & " b u t t o n " = = = a . t y p e | | b = = = " b u t t o n " } , i n p u t : f u n c t i o n ( a ) { r e t u r n / i n p u t | s e l e c t | t e x t a r e a | b u t t o n / i . t e s t ( a . n o d e N a m e ) } , f o c u s : f u n c t i o n ( a ) { r e t u r n   a = = = a . o w n e r D o c u m e n t . a c t i v e E l e m e n t } } , s e t F i l t e r s : { f i r s t : f u n c t i o n ( a , b ) { r e t u r n   b = = = 0 } , l a s t : f u n c t i o n ( a , b , c , d ) { r e t u r n   b = = = d . l e n g t h - 1 } , e v e n : f u n c t i o n ( a , b ) { r e t u r n   b % 2 = = = 0 } , o d d : f u n c t i o n ( a , b ) { r e t u r n   b % 2 = = = 1 } , l t : f u n c t i o n ( a , b , c ) { r e t u r n   b < c [ 3 ] - 0 } , g t : f u n c t i o n ( a , b , c ) { r e t u r n   b > c [ 3 ] - 0 } , n t h : f u n c t i o n ( a , b , c ) { r e t u r n   c [ 3 ] - 0 = = = b } , e q : f u n c t i o n ( a , b , c ) { r e t u r n   c [ 3 ] - 0 = = = b } } , f i l t e r : { P S E U D O : f u n c t i o n ( a , b , c , d ) { v a r   e = b [ 1 ] , f = l . f i l t e r s [ e ] ; i f ( f ) r e t u r n   f ( a , c , b , d ) ; i f ( e = = = " c o n t a i n s " ) r e t u r n ( a . t e x t C o n t e n t | | a . i n n e r T e x t | | k . g e t T e x t ( [ a ] ) | | " " ) . i n d e x O f ( b [ 3 ] ) > = 0 ; i f ( e = = = " n o t " ) { v a r   g = b [ 3 ] ; f o r ( v a r   h = 0 , i = g . l e n g t h ; h < i ; h + + ) i f ( g [ h ] = = = a ) r e t u r n ! 1 ; r e t u r n ! 0 } k . e r r o r ( e ) } , C H I L D : f u n c t i o n ( a , b ) { v a r   c = b [ 1 ] , d = a ; s w i t c h ( c ) { c a s e " o n l y " : c a s e " f i r s t " : w h i l e ( d = d . p r e v i o u s S i b l i n g ) i f ( d . n o d e T y p e = = = 1 ) r e t u r n ! 1 ; i f ( c = = = " f i r s t " ) r e t u r n ! 0 ; d = a ; c a s e " l a s t " : w h i l e ( d = d . n e x t S i b l i n g ) i f ( d . n o d e T y p e = = = 1 ) r e t u r n ! 1 ; r e t u r n ! 0 ; c a s e " n t h " : v a r   e = b [ 2 ] , f = b [ 3 ] ; i f ( e = = = 1 & & f = = = 0 ) r e t u r n ! 0 ; v a r   g = b [ 0 ] , h = a . p a r e n t N o d e ; i f ( h & & ( h . s i z c a c h e ! = = g | | ! a . n o d e I n d e x ) ) { v a r   i = 0 ; f o r ( d = h . f i r s t C h i l d ; d ; d = d . n e x t S i b l i n g ) d . n o d e T y p e = = = 1 & & ( d . n o d e I n d e x = + + i ) ; h . s i z c a c h e = g } v a r   j = a . n o d e I n d e x - f ; r e t u r n   e = = = 0 ? j = = = 0 : j % e = = = 0 & & j / e > = 0 } } , I D : f u n c t i o n ( a , b ) { r e t u r n   a . n o d e T y p e = = = 1 & & a . g e t A t t r i b u t e ( " i d " ) = = = b } , T A G : f u n c t i o n ( a , b ) { r e t u r n   b = = = " * " & & a . n o d e T y p e = = = 1 | | a . n o d e N a m e . t o L o w e r C a s e ( ) = = = b } , C L A S S : f u n c t i o n ( a , b ) { r e t u r n ( "   " + ( a . c l a s s N a m e | | a . g e t A t t r i b u t e ( " c l a s s " ) ) + "   " ) . i n d e x O f ( b ) > - 1 } , A T T R : f u n c t i o n ( a , b ) { v a r   c = b [ 1 ] , d = l . a t t r H a n d l e [ c ] ? l . a t t r H a n d l e [ c ] ( a ) : a [ c ] ! = n u l l ? a [ c ] : a . g e t A t t r i b u t e ( c ) , e = d + " " , f = b [ 2 ] , g = b [ 4 ] ; r e t u r n   d = = n u l l ? f = = = " ! = " : f = = = " = " ? e = = = g : f = = = " * = " ? e . i n d e x O f ( g ) > = 0 : f = = = " ~ = " ? ( "   " + e + "   " ) . i n d e x O f ( g ) > = 0 : g ? f = = = " ! = " ? e ! = = g : f = = = " ^ = " ? e . i n d e x O f ( g ) = = = 0 : f = = = " $ = " ? e . s u b s t r ( e . l e n g t h - g . l e n g t h ) = = = g : f = = = " | = " ? e = = = g | | e . s u b s t r ( 0 , g . l e n g t h + 1 ) = = = g + " - " : ! 1 : e & & d ! = = ! 1 } , P O S : f u n c t i o n ( a , b , c , d ) { v a r   e = b [ 2 ] , f = l . s e t F i l t e r s [ e ] ; i f ( f ) r e t u r n   f ( a , c , b , d ) } } } , m = l . m a t c h . P O S , n = f u n c t i o n ( a , b ) { r e t u r n " \ \ " + ( b - 0 + 1 ) } ; f o r ( v a r   o   i n   l . m a t c h ) l . m a t c h [ o ] = n e w   R e g E x p ( l . m a t c h [ o ] . s o u r c e + / ( ? ! [ ^ \ [ ] * \ ] ) ( ? ! [ ^ \ ( ] * \ ) ) / . s o u r c e ) , l . l e f t M a t c h [ o ] = n e w   R e g E x p ( / ( ^ ( ? : . | \ r | \ n ) * ? ) / . s o u r c e + l . m a t c h [ o ] . s o u r c e . r e p l a c e ( / \ \ ( \ d + ) / g , n ) ) ; v a r   p = f u n c t i o n ( a , b ) { a = A r r a y . p r o t o t y p e . s l i c e . c a l l ( a , 0 ) ; i f ( b ) { b . p u s h . a p p l y ( b , a ) ; r e t u r n   b } r e t u r n   a } ; t r y { A r r a y . p r o t o t y p e . s l i c e . c a l l ( c . d o c u m e n t E l e m e n t . c h i l d N o d e s , 0 ) [ 0 ] . n o d e T y p e } c a t c h ( q ) { p = f u n c t i o n ( a , b ) { v a r   c = 0 , d = b | | [ ] ; i f ( e . c a l l ( a ) = = = " [ o b j e c t   A r r a y ] " ) A r r a y . p r o t o t y p e . p u s h . a p p l y ( d , a ) ; e l s e   i f ( t y p e o f   a . l e n g t h = = " n u m b e r " ) f o r ( v a r   f = a . l e n g t h ; c < f ; c + + ) d . p u s h ( a [ c ] ) ; e l s e   f o r ( ; a [ c ] ; c + + ) d . p u s h ( a [ c ] ) ; r e t u r n   d } } v a r   r , s ; c . d o c u m e n t E l e m e n t . c o m p a r e D o c u m e n t P o s i t i o n ? r = f u n c t i o n ( a , b ) { i f ( a = = = b ) { g = ! 0 ; r e t u r n   0 } i f ( ! a . 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   a . c o m p a r e D o c u m e n t P o s i t i o n ? - 1 : 1 ; r e t u r n   a . 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 : 1 } : ( r = f u n c t i o n ( a , b ) { i f ( a = = = b ) { g = ! 0 ; r e t u r n   0 } i f ( a . 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   a . s o u r c e I n d e x - b . s o u r c e I n d e x ; v a r   c , d , e = [ ] , f = [ ] , h = a . p a r e n t N o d e , i = b . p a r e n t N o d e , j = h ; i f ( h = = = i ) r e t u r n   s ( a , b ) ; i f ( ! h ) r e t u r n - 1 ; i f ( ! i ) r e t u r n   1 ; w h i l e ( j ) e . u n s h i f t ( j ) , j = j . p a r e n t N o d e ; j = i ; w h i l e ( j ) f . u n s h i f t ( j ) , j = j . p a r e n t N o d e ; c = e . l e n g t h , d = f . l e n g t h ; f o r ( v a r   k = 0 ; k < c & & k < d ; k + + ) i f ( e [ k ] ! = = f [ k ] ) r e t u r n   s ( e [ k ] , f [ k ] ) ; r e t u r n   k = = = c ? s ( a , f [ k ] , - 1 ) : s ( e [ k ] , b , 1 ) } , s = f u n c t i o n ( a , b , c ) { i f ( a = = = b ) r e t u r n   c ; v a r   d = a . n e x t S i b l i n g ; w h i l e ( d ) { i f ( d = = = b ) r e t u r n - 1 ; d = d . n e x t S i b l i n g } r e t u r n   1 } ) , k . g e t T e x t = f u n c t i o n ( a ) { v a r   b = " " , c ; f o r ( v a r   d = 0 ; a [ d ] ; d + + ) c = a [ d ] , c . n o d e T y p e = = = 3 | | c . n o d e T y p e = = = 4 ? b + = c . n o d e V a l u e : c . n o d e T y p e ! = = 8 & & ( b + = k . g e t T e x t ( c . c h i l d N o d e s ) ) ; r e t u r n   b } , f u n c t i o n ( ) { v a r   a = c . c r e a t e E l e m e n t ( " d i v " ) , d = " s c r i p t " + ( n e w   D a t e ) . g e t T i m e ( ) , e = c . d o c u m e n t E l e m e n t ; a . i n n e r H T M L = " < a   n a m e = ' " + d + " ' / > " , e . i n s e r t B e f o r e ( a , e . f i r s t C h i l d ) , c . g e t E l e m e n t B y I d ( d ) & & ( l . f i n d . I D = f u n c t i o n ( a , c , d ) { i f ( t y p e o f   c . g e t E l e m e n t B y I d ! = " u n d e f i n e d " & & ! d ) { v a r   e = c . g e t E l e m e n t B y I d ( a [ 1 ] ) ; r e t u r n   e ? e . i d = = = a [ 1 ] | | t y p e o f   e . g e t A t t r i b u t e N o d e ! = " u n d e f i n e d " & & e . 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 = = = a [ 1 ] ? [ e ] : b : [ ] } } , l . f i l t e r . I D = f u n c t i o n ( a , b ) { v a r   c = t y p e o f   a . g e t A t t r i b u t e N o d e ! = " u n d e f i n e d " & & a . g e t A t t r i b u t e N o d e ( " i d " ) ; r e t u r n   a . n o d e T y p e = = = 1 & & c & & c . n o d e V a l u e = = = b } ) , e . r e m o v e C h i l d ( a ) , e = a = n u l l } ( ) , f u n c t i o n ( ) { v a r   a = c . c r e a t e E l e m e n t ( " d i v " ) ; a . a p p e n d C h i l d ( c . c r e a t e C o m m e n t ( " " ) ) , a . 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 > 0 & & ( l . f i n d . T A G = f u n c t i o n ( a , b ) { v a r   c = b . g e t E l e m e n t s B y T a g N a m e ( a [ 1 ] ) ; i f ( a [ 1 ] = = = " * " ) { v a r   d = [ ] ; f o r ( v a r   e = 0 ; c [ e ] ; e + + ) c [ e ] . n o d e T y p e = = = 1 & & d . p u s h ( c [ e ] ) ; c = d } r e t u r n   c } ) , a . i n n e r H T M L = " < a   h r e f = ' # ' > < / a > " , a . f i r s t C h i l d & & t y p e o f   a . f i r s t C h i l d . g e t A t t r i b u t e ! = " u n d e f i n e d " & & a . f i r s t C h i l d . g e t A t t r i b u t e ( " h r e f " ) ! = = " # " & & ( l . a t t r H a n d l e . h r e f = f u n c t i o n ( a ) { r e t u r n   a . g e t A t t r i b u t e ( " h r e f " , 2 ) } ) , a = n u l l } ( ) , c . q u e r y S e l e c t o r A l l & & f u n c t i o n ( ) { v a r   a = k , b = c . c r e a t e E l e m e n t ( " d i v " ) , d = " _ _ s i z z l e _ _ " ; b . i n n e r H T M L = " < p   c l a s s = ' T E S T ' > < / p > " ; i f ( ! b . q u e r y S e l e c t o r A l l | | b . q u e r y S e l e c t o r A l l ( " . T E S T " ) . l e n g t h ! = = 0 ) { k = f u n c t i o n ( b , e , f , g ) { e = e | | c ; i f ( ! g & & ! k . i s X M L ( e ) ) { v a r   h = / ^ ( \ w + $ ) | ^ \ . ( [ \ w \ - ] + $ ) | ^ # ( [ \ w \ - ] + $ ) / . e x e c ( b ) ; i f ( h & & ( e . n o d e T y p e = = = 1 | | e . n o d e T y p e = = = 9 ) ) { i f ( h [ 1 ] ) r e t u r n   p ( e . g e t E l e m e n t s B y T a g N a m e ( b ) , f ) ; i f ( h [ 2 ] & & l . f i n d . C L A S S & & e . g e t E l e m e n t s B y C l a s s N a m e ) r e t u r n   p ( e . g e t E l e m e n t s B y C l a s s N a m e ( h [ 2 ] ) , f ) } i f ( e . n o d e T y p e = = = 9 ) { i f ( b = = = " b o d y " & & e . b o d y ) r e t u r n   p ( [ e . b o d y ] , f ) ; i f ( h & & h [ 3 ] ) { v a r   i = e . g e t E l e m e n t B y I d ( h [ 3 ] ) ; i f ( ! i | | ! i . p a r e n t N o d e ) r e t u r n   p ( [ ] , f ) ; i f ( i . i d = = = h [ 3 ] ) r e t u r n   p ( [ i ] , f ) } t r y { r e t u r n   p ( e . q u e r y S e l e c t o r A l l ( b ) , f ) } c a t c h ( j ) { } } e l s e   i f ( e . n o d e T y p e = = = 1 & & e . n o d e N a m e . t o L o w e r C a s e ( ) ! = = " o b j e c t " ) { v a r   m = e , n = e . g e t A t t r i b u t e ( " i d " ) , o = n | | d , q = e . p a r e n t N o d e , r = / ^ \ s * [ + ~ ] / . t e s t ( b ) ; n ? o = o . r e p l a c e ( / ' / g , " \ \ $ & " ) : e . s e t A t t r i b u t e ( " i d " , o ) , r & & q & & ( e = e . p a r e n t N o d e ) ; t r y { i f ( ! r | | q ) r e t u r n   p ( e . q u e r y S e l e c t o r A l l ( " [ i d = ' " + o + " ' ]   " + b ) , f ) } c a t c h ( s ) { } f i n a l l y { n | | m . r e m o v e A t t r i b u t e ( " i d " ) } } } r e t u r n   a ( b , e , f , g ) } ; f o r ( v a r   e   i n   a ) k [ e ] = a [ e ] ; b = n u l l } } ( ) , f u n c t i o n ( ) { v a r   a = c . d o c u m e n t E l e m e n t , b = a . m a t c h e s S e l e c t o r | | a . m o z M a t c h e s S e l e c t o r | | a . w e b k i t M a t c h e s S e l e c t o r | | a . m s M a t c h e s S e l e c t o r ; i f ( b ) { v a r   d = ! b . c a l l ( c . c r e a t e E l e m e n t ( " d i v " ) , " d i v " ) , e = ! 1 ; t r y { b . c a l l ( c . d o c u m e n t E l e m e n t , " [ t e s t ! = ' ' ] : s i z z l e " ) } c a t c h ( f ) { e = ! 0 } k . m a t c h e s S e l e c t o r = f u n c t i o n ( a , c ) { c = c . r e p l a c e ( / \ = \ s * ( [ ^ ' " \ ] ] * ) \ s * \ ] / g , " = ' $ 1 ' ] " ) ; i f ( ! k . i s X M L ( a ) ) t r y { i f ( e | | ! l . m a t c h . P S E U D O . t e s t ( c ) & & ! / ! = / . t e s t ( c ) ) { v a r   f = b . c a l l ( a , c ) ; i f ( f | | ! d | | a . d o c u m e n t & & a . d o c u m e n t . n o d e T y p e ! = = 1 1 ) r e t u r n   f } } c a t c h ( g ) { } r e t u r n   k ( c , n u l l , n u l l , [ a ] ) . l e n g t h > 0 } } } ( ) , f u n c t i o n ( ) { v a r   a = c . c r e a t e E l e m e n t ( " d i v " ) ; a . i n n e r H T M L = " < d i v   c l a s s = ' t e s t   e ' > < / d i v > < d i v   c l a s s = ' t e s t ' > < / d i v > " ; i f ( ! ! a . g e t E l e m e n t s B y C l a s s N a m e & & a . g e t E l e m e n t s B y C l a s s N a m e ( " e " ) . l e n g t h ! = = 0 ) { a . l a s t C h i l d . c l a s s N a m e = " e " ; i f ( a . g e t E l e m e n t s B y C l a s s N a m e ( " e " ) . l e n g t h = = = 1 ) r e t u r n ; l . o r d e r . s p l i c e ( 1 , 0 , " C L A S S " ) , l . f i n d . C L A S S = f u n c t i o n ( a , b , c ) { i f ( t y p e o f   b . g e t E l e m e n t s B y C l a s s N a m e ! = " u n d e f i n e d " & & ! c ) r e t u r n   b . g e t E l e m e n t s B y C l a s s N a m e ( a [ 1 ] ) } , a = n u l l } } ( ) , c . d o c u m e n t E l e m e n t . c o n t a i n s ? k . c o n t a i n s = f u n c t i o n ( a , b ) { r e t u r n   a ! = = b & & ( a . c o n t a i n s ? a . c o n t a i n s ( b ) : ! 0 ) } : c . d o c u m e n t E l e m e n t . c o m p a r e D o c u m e n t P o s i t i o n ? k . c o n t a i n s = f u n c t i o n ( a , b ) { r e t u r n ! ! ( a . c o m p a r e D o c u m e n t P o s i t i o n ( b ) & 1 6 ) } : k . c o n t a i n s = f u n c t i o n ( ) { r e t u r n ! 1 } , k . i s X M L = f u n c t i o n ( a ) { v a r   b = ( a ? a . o w n e r D o c u m e n t | | a : 0 ) . d o c u m e n t E l e m e n t ; r e t u r n   b ? b . n o d e N a m e ! = = " H T M L " : ! 1 } ; v a r   v = f u n c t i o n ( a , b ) { v a r   c , d = [ ] , e = " " , f = b . n o d e T y p e ? [ b ] : b ; w h i l e ( c = l . m a t c h . P S E U D O . e x e c ( a ) ) e + = c [ 0 ] , a = a . r e p l a c e ( l . m a t c h . P S E U D O , " " ) ; a = l . r e l a t i v e [ a ] ? a + " * " : a ; f o r ( v a r   g = 0 , h = f . l e n g t h ; g < h ; g + + ) k ( a , f [ g ] , d ) ; r e t u r n   k . f i l t e r ( e , d ) } ; f . f i n d = k , f . e x p r = k . s e l e c t o r s , f . e x p r [ " : " ] = f . e x p r . f i l t e r s , f . u n i q u e = k . u n i q u e S o r t , f . t e x t = k . g e t T e x t , f . i s X M L D o c = k . i s X M L , f . c o n t a i n s = k . c o n t a i n s } ( ) ; v a r   P = / U n t i l $ / , Q = / ^ ( ? : p a r e n t s | p r e v U n t i l | p r e v A l l ) / , R = / , / , S = / ^ . [ ^ : # \ [ \ . , ] * $ / , T = A r r a y . p r o t o t y p e . s l i c e , U = f . e x p r . m a t c h . P O S , V = { c h i l d r e n : ! 0 , c o n t e n t s : ! 0 , n e x t : ! 0 , p r e v : ! 0 } ; f . f n . e x t e n d ( { f i n d : f u n c t i o n ( a ) { v a r   b = t h i s , c , d ; i f ( t y p e o f   a ! = " s t r i n g " ) r e t u r n   f ( a ) . f i l t e r ( f u n c t i o n ( ) { f o r ( c = 0 , d = b . l e n g t h ; c < d ; c + + ) i f ( f . c o n t a i n s ( b [ c ] , t h i s ) ) r e t u r n ! 0 } ) ; v a r   e = t h i s . p u s h S t a c k ( " " , " f i n d " , a ) , g , h , i ; f o r ( c = 0 , d = t h i s . l e n g t h ; c < d ; c + + ) { g = e . l e n g t h , f . f i n d ( a , t h i s [ c ] , e ) ; i f ( c > 0 ) f o r ( h = g ; h < e . l e n g t h ; h + + ) f o r ( i = 0 ; i < g ; i + + ) i f ( e [ i ] = = = e [ h ] ) { e . s p l i c e ( h - - , 1 ) ; b r e a k } } r e t u r n   e } , h a s : f u n c t i o n ( a ) { v a r   b = f ( a ) ; r e t u r n   t h i s . f i l t e r ( f u n c t i o n ( ) { f o r ( v a r   a = 0 , c = b . l e n g t h ; a < c ; a + + ) i f ( f . c o n t a i n s ( t h i s , b [ a ] ) ) r e t u r n ! 0 } ) } , n o t : f u n c t i o n ( a ) { r e t u r n   t h i s . p u s h S t a c k ( X ( t h i s , a , ! 1 ) , " n o t " , a ) } , f i l t e r : f u n c t i o n ( a ) { r e t u r n   t h i s . p u s h S t a c k ( X ( t h i s , a , ! 0 ) , " f i l t e r " , a ) } , i s : f u n c t i o n ( a ) { r e t u r n ! ! a & & ( t y p e o f   a = = " s t r i n g " ? f . f i l t e r ( a , t h i s ) . l e n g t h > 0 : t h i s . f i l t e r ( a ) . l e n g t h > 0 ) } , c l o s e s t : f u n c t i o n ( a , b ) { v a r   c = [ ] , d , e , g = t h i s [ 0 ] ; i f ( f . i s A r r a y ( a ) ) { v a r   h , i , j = { } , k = 1 ; i f ( g & & a . l e n g t h ) { f o r ( d = 0 , e = a . l e n g t h ; d < e ; d + + ) i = a [ d ] , j [ i ] | | ( j [ i ] = U . t e s t ( i ) ? f ( i , b | | t h i s . c o n t e x t ) : i ) ; w h i l e ( g & & g . o w n e r D o c u m e n t & & g ! = = b ) { f o r ( i   i n   j ) h = j [ i ] , ( h . j q u e r y ? h . i n d e x ( g ) > - 1 : f ( g ) . i s ( h ) ) & & c . p u s h ( { s e l e c t o r : i , e l e m : g , l e v e l : k } ) ; g = g . p a r e n t N o d e , k + + } } r e t u r n   c } v a r   l = U . t e s t ( a ) | | t y p e o f   a ! = " s t r i n g " ? f ( a , b | | t h i s . c o n t e x t ) : 0 ; f o r ( d = 0 , e = t h i s . l e n g t h ; d < e ; d + + ) { g = t h i s [ d ] ; w h i l e ( g ) { i f ( l ? l . i n d e x ( g ) > - 1 : f . f i n d . m a t c h e s S e l e c t o r ( g , a ) ) { c . p u s h ( g ) ; b r e a k } g = g . p a r e n t N o d e ; i f ( ! g | | ! g . o w n e r D o c u m e n t | | g = = = b | | g . n o d e T y p e = = = 1 1 ) b r e a k } } c = c . l e n g t h > 1 ? f . u n i q u e ( c ) : c ; r e t u r n   t h i s . p u s h S t a c k ( c , " c l o s e s t " , a ) } , i n d e x : f u n c t i o n ( a ) { i f ( ! a | | t y p e o f   a = = " s t r i n g " ) r e t u r n   f . i n A r r a y ( t h i s [ 0 ] , a ? f ( a ) : t h i s . p a r e n t ( ) . c h i l d r e n ( ) ) ; r e t u r n   f . i n A r r a y ( a . j q u e r y ? a [ 0 ] : a , t h i s ) } , a d d : f u n c t i o n ( a , b ) { v a r   c = t y p e o f   a = = " s t r i n g " ? f ( a , b ) : f . m a k e A r r a y ( a & & a . n o d e T y p e ? [ a ] : a ) , d = f . m e r g e ( t h i s . g e t ( ) , c ) ; r e t u r n   t h i s . p u s h S t a c k ( W ( c [ 0 ] ) | | W ( d [ 0 ] ) ? d : f . u n i q u e ( d ) ) } , a n d S e l f : f u n c t i o n ( ) { r e t u r n   t h i s . a d d ( t h i s . p r e v O b j e c t ) } } ) , f . e a c h ( { p a r e n t : f u n c t i o n ( a ) { v a r   b = a . p a r e n t N o d e ; r e t u r n   b & & b . n o d e T y p e ! = = 1 1 ? b : n u l l } , p a r e n t s : f u n c t i o n ( a ) { r e t u r n   f . d i r ( a , " p a r e n t N o d e " ) } , p a r e n t s U n t i l : f u n c t i o n ( a , b , c ) { r e t u r n   f . d i r ( a , " p a r e n t N o d e " , c ) } , n e x t : f u n c t i o n ( a ) { r e t u r n   f . n t h ( a , 2 , " n e x t S i b l i n g " ) } , p r e v : f u n c t i o n ( a ) { r e t u r n   f . n t h ( a , 2 , " p r e v i o u s S i b l i n g " ) } , n e x t A l l : f u n c t i o n ( a ) { r e t u r n   f . d i r ( a , " n e x t S i b l i n g " ) } , p r e v A l l : f u n c t i o n ( a ) { r e t u r n   f . d i r ( a , " p r e v i o u s S i b l i n g " ) } , n e x t U n t i l : f u n c t i o n ( a , b , c ) { r e t u r n   f . d i r ( a , " n e x t S i b l i n g " , c ) } , p r e v U n t i l : f u n c t i o n ( a , b , c ) { r e t u r n   f . d i r ( a , " p r e v i o u s S i b l i n g " , c ) } , s i b l i n g s : f u n c t i o n ( a ) { r e t u r n   f . s i b l i n g ( a . p a r e n t N o d e . f i r s t C h i l d , a ) } , c h i l d r e n : f u n c t i o n ( a ) { r e t u r n   f . s i b l i n g ( a . f i r s t C h i l d ) } , c o n t e n t s : f u n c t i o n ( a ) { r e t u r n   f . n o d e N a m e ( a , " i f r a m e " ) ? a . c o n t e n t D o c u m e n t | | a . c o n t e n t W i n d o w . d o c u m e n t : f . m a k e A r r a y ( a . c h i l d N o d e s ) } } , f u n c t i o n ( a , b ) { f . f n [ a ] = f u n c t i o n ( c , d ) { v a r   e = f . m a p ( t h i s , b , c ) , g = T . c a l l ( a r g u m e n t s ) ; P . t e s t ( a ) | | ( d = c ) , d & & t y p e o f   d = = " s t r i n g " & & ( e = f . f i l t e r ( d , e ) ) , e = t h i s . l e n g t h > 1 & & ! V [ a ] ? f . u n i q u e ( e ) : e , ( t h i s . l e n g t h > 1 | | R . t e s t ( d ) ) & & Q . t e s t ( a ) & & ( e = e . r e v e r s e ( ) ) ; r e t u r n   t h i s . p u s h S t a c k ( e , a , g . j o i n ( " , " ) ) } } ) , f . e x t e n d ( { f i l t e r : f u n c t i o n ( a , b , c ) { c & & ( a = " : n o t ( " + a + " ) " ) ; r e t u r n   b . l e n g t h = = = 1 ? f . f i n d . m a t c h e s S e l e c t o r ( b [ 0 ] , a ) ? [ b [ 0 ] ] : [ ] : f . f i n d . m a t c h e s ( a , b ) } , d i r : f u n c t i o n ( a , c , d ) { v a r   e = [ ] , g = a [ c ] ; w h i l e ( g & & g . n o d e T y p e ! = = 9 & & ( d = = = b | | g . n o d e T y p e ! = = 1 | | ! f ( g ) . i s ( d ) ) ) g . n o d e T y p e = = = 1 & & e . p u s h ( g ) , g = g [ c ] ; r e t u r n   e } , n t h : f u n c t i o n ( a , b , c , d ) { b = b | | 1 ; v a r   e = 0 ; f o r ( ; a ; a = a [ c ] ) i f ( a . n o d e T y p e = = = 1 & & + + e = = = b ) b r e a k ; r e t u r n   a } , s i b l i n g : f u n c t i o n ( a , b ) { v a r   c = [ ] ; f o r ( ; a ; a = a . n e x t S i b l i n g ) a . n o d e T y p e = = = 1 & & a ! = = b & & c . p u s h ( a ) ; r e t u r n   c } } ) ; v a r   Y = /   j Q u e r y \ d + = " ( ? : \ d + | n u l l ) " / g , Z = / ^ \ s + / , $ = / < ( ? ! a r e a | b r | c o l | e m b e d | h r | i m g | i n p u t | l i n k | m e t a | p a r a m ) ( ( [ \ w : ] + ) [ ^ > ] * ) \ / > / i g , _ = / < ( [ \ w : ] + ) / , b a = / < t b o d y / i , b b = / < | & # ? \ w + ; / , b c = / < ( ? : s c r i p t | o b j e c t | e m b e d | o p t i o n | s t y l e ) / i , b d = / c h e c k e d \ s * ( ? : [ ^ = ] | = \ s * . c h e c k e d . ) / i , b e = / \ / ( j a v a | e c m a ) s c r i p t / i , b f = / ^ \ s * < ! ( ? : \ [ C D A T A \ [ | \ - \ - ) / , b g = { o p t i o n : [ 1 , " < s e l e c t   m u l t i p l e = ' m u l t i p l e ' > " , " < / s e l e c t > " ] , l e g e n d : [ 1 , " < f i e l d s e t > " , " < / f i e l d s e t > " ] , t h e a d : [ 1 , " < t a b l e > " , " < / t a b l e > " ] , t r : [ 2 , " < t a b l e > < t b o d y > " , " < / t b o d y > < / t a b l e > " ] , t d : [ 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 > " ] , c o l : [ 2 , " < t a b l e > < t b o d y > < / t b o d y > < c o l g r o u p > " , " < / c o l g r o u p > < / t a b l e > " ] , a r e a : [ 1 , " < m a p > " , " < / m a p > " ] , _ d e f a u l t : [ 0 , " " , " " ] } ; b g . o p t g r o u p = b g . o p t i o n , b g . t b o d y = b g . t f o o t = b g . c o l g r o u p = b g . c a p t i o n = b g . t h e a d , b g . t h = b g . t d , f . s u p p o r t . h t m l S e r i a l i z e | | ( b g . _ d e f a u l t = [ 1 , " d i v < d i v > " , " < / d i v > " ] ) , f . f n . e x t e n d ( { t e x t : f u n c t i o n ( a ) { i f ( f . i s F u n c t i o n ( a ) ) r e t u r n   t h i s . e a c h ( f u n c t i o n ( b ) { v a r   c = f ( t h i s ) ; c . t e x t ( a . c a l l ( t h i s , b , c . t e x t ( ) ) ) } ) ; i f ( t y p e o f   a ! = " o b j e c t " & & a ! = = b ) r e t u r n   t h i s . e m p t y ( ) . a p p e n d ( ( t h i s [ 0 ] & & t h i s [ 0 ] . o w n e r D o c u m e n t | | c ) . c r e a t e T e x t N o d e ( a ) ) ; r e t u r n   f . t e x t ( t h i s ) } , w r a p A l l : f u n c t i o n ( a ) { i f ( f . i s F u n c t i o n ( a ) ) r e t u r n   t h i s . e a c h ( f u n c t i o n ( b ) { f ( t h i s ) . w r a p A l l ( a . c a l l ( t h i s , b ) ) } ) ; i f ( t h i s [ 0 ] ) { v a r   b = f ( a , t h i s [ 0 ] . o w n e r D o c u m e n t ) . e q ( 0 ) . c l o n e ( ! 0 ) ; t h i s [ 0 ] . p a r e n t N o d e & & b . i n s e r t B e f o r e ( t h i s [ 0 ] ) , b . m a p ( f u n c t i o n ( ) { v a r   a = t h i s ; w h i l e ( a . f i r s t C h i l d & & a . f i r s t C h i l d . n o d e T y p e = = = 1 ) a = a . f i r s t C h i l d ; r e t u r n   a } ) . a p p e n d ( t h i s ) } r e t u r n   t h i s } , w r a p I n n e r : f u n c t i o n ( a ) { i f ( f . i s F u n c t i o n ( a ) ) r e t u r n   t h i s . e a c h ( f u n c t i o n ( b ) { f ( t h i s ) . w r a p I n n e r ( a . c a l l ( t h i s , b ) ) } ) ; r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { v a r   b = f ( t h i s ) , c = b . c o n t e n t s ( ) ; c . l e n g t h ? c . w r a p A l l ( a ) : b . a p p e n d ( a ) } ) } , w r a p : f u n c t i o n ( a ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { f ( t h i s ) . w r a p A l l ( a ) } ) } , u n w r a p : f u n c t i o n ( ) { r e t u r n   t h i s . p a r e n t ( ) . e a c h ( f u n c t i o n ( ) { f . n o d e N a m e ( t h i s , " b o d y " ) | | f ( t h i s ) . r e p l a c e W i t h ( t h i s . c h i l d N o d e s ) } ) . e n d ( ) } , a p p e n d : f u n c t i o n ( ) { r e t u r n   t h i s . d o m M a n i p ( a r g u m e n t s , ! 0 , f u n c t i o n ( a ) { t h i s . n o d e T y p e = = = 1 & & t h i s . a p p e n d C h i l d ( a ) } ) } , p r e p e n d : f u n c t i o n ( ) { r e t u r n   t h i s . d o m M a n i p ( a r g u m e n t s , ! 0 , f u n c t i o n ( a ) { t h i s . n o d e T y p e = = = 1 & & t h i s . i n s e r t B e f o r e ( a , t h i s . f i r s t C h i l d ) } ) } , b e f o r e : f u n c t i o n ( ) { i f ( t h i s [ 0 ] & & t h i s [ 0 ] . p a r e n t N o d e ) r e t u r n   t h i s . d o m M a n i p ( a r g u m e n t s , ! 1 , f u n c t i o n ( a ) { t h i s . p a r e n t N o d e . i n s e r t B e f o r e ( a , t h i s ) } ) ; i f ( a r g u m e n t s . l e n g t h ) { v a r   a = f ( a r g u m e n t s [ 0 ] ) ; a . p u s h . a p p l y ( a , t h i s . t o A r r a y ( ) ) ; r e t u r n   t h i s . p u s h S t a c k ( a , " b e f o r e " , a r g u m e n t s ) } } , a f t e r : f u n c t i o n ( ) { i f ( t h i s [ 0 ] & & t h i s [ 0 ] . p a r e n t N o d e ) r e t u r n   t h i s . d o m M a n i p ( a r g u m e n t s , ! 1 , f u n c t i o n ( a ) { t h i s . p a r e n t N o d e . i n s e r t B e f o r e ( a , t h i s . n e x t S i b l i n g ) } ) ; i f ( a r g u m e n t s . l e n g t h ) { v a r   a = t h i s . p u s h S t a c k ( t h i s , " a f t e r " , a r g u m e n t s ) ; a . p u s h . a p p l y ( a , f ( a r g u m e n t s [ 0 ] ) . t o A r r a y ( ) ) ; r e t u r n   a } } , r e m o v e : f u n c t i o n ( a , b ) { f o r ( v a r   c = 0 , d ; ( d = t h i s [ c ] ) ! = n u l l ; c + + ) i f ( ! a | | f . f i l t e r ( a , [ d ] ) . l e n g t h ) ! b & & d . n o d e T y p e = = = 1 & & ( f . c l e a n D a t a ( d . g e t E l e m e n t s B y T a g N a m e ( " * " ) ) , f . c l e a n D a t a ( [ d ] ) ) , d . p a r e n t N o d e & & d . p a r e n t N o d e . r e m o v e C h i l d ( d ) ; r e t u r n   t h i s } , e m p t y : f u n c t i o n ( ) { f o r ( v a r   a = 0 , b ; ( b = t h i s [ a ] ) ! = n u l l ; a + + ) { b . n o d e T y p e = = = 1 & & f . c l e a n D a t a ( b . g e t E l e m e n t s B y T a g N a m e ( " * " ) ) ; w h i l e ( b . f i r s t C h i l d ) b . r e m o v e C h i l d ( b . f i r s t C h i l d ) } r e t u r n   t h i s } , c l o n e : f u n c t i o n ( a , b ) { a = a = = n u l l ? ! 1 : a , b = b = = n u l l ? a : b ; r e t u r n   t h i s . m a p ( f u n c t i o n ( ) { r e t u r n   f . c l o n e ( t h i s , a , b ) } ) } , h t m l : f u n c t i o n ( a ) { i f ( a = = = b ) r e t u r n   t h i s [ 0 ] & & t h i s [ 0 ] . n o d e T y p e = = = 1 ? t h i s [ 0 ] . i n n e r H T M L . r e p l a c e ( Y , " " ) : n u l l ; i f ( t y p e o f   a = = " s t r i n g " & & ! b c . t e s t ( a ) & & ( f . s u p p o r t . l e a d i n g W h i t e s p a c e | | ! Z . t e s t ( a ) ) & & ! b g [ ( _ . e x e c ( a ) | | [ " " , " " ] ) [ 1 ] . t o L o w e r C a s e ( ) ] ) { a = a . r e p l a c e ( $ , " < $ 1 > < / $ 2 > " ) ; t r y { f o r ( v a r   c = 0 , d = t h i s . l e n g t h ; c < d ; c + + ) t h i s [ c ] . n o d e T y p e = = = 1 & & ( f . c l e a n D a t a ( t h i s [ c ] . g e t E l e m e n t s B y T a g N a m e ( " * " ) ) , t h i s [ c ] . i n n e r H T M L = a ) } c a t c h ( e ) { t h i s . e m p t y ( ) . a p p e n d ( a ) } } e l s e   f . i s F u n c t i o n ( a ) ? t h i s . e a c h ( f u n c t i o n ( b ) { v a r   c = f ( t h i s ) ; c . h t m l ( a . c a l l ( t h i s , b , c . h t m l ( ) ) ) } ) : t h i s . e m p t y ( ) . a p p e n d ( a ) ; r e t u r n   t h i s } , r e p l a c e W i t h : f u n c t i o n ( a ) { i f ( t h i s [ 0 ] & & t h i s [ 0 ] . p a r e n t N o d e ) { i f ( f . i s F u n c t i o n ( a ) ) r e t u r n   t h i s . e a c h ( f u n c t i o n ( b ) { v a r   c = f ( t h i s ) , d = c . h t m l ( ) ; c . r e p l a c e W i t h ( a . c a l l ( t h i s , b , d ) ) } ) ; t y p e o f   a ! = " s t r i n g " & & ( a = f ( a ) . d e t a c h ( ) ) ; r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { v a r   b = t h i s . n e x t S i b l i n g , c = t h i s . p a r e n t N o d e ; f ( t h i s ) . r e m o v e ( ) , b ? f ( b ) . b e f o r e ( a ) : f ( c ) . a p p e n d ( a ) } ) } r e t u r n   t h i s . l e n g t h ? t h i s . p u s h S t a c k ( f ( f . i s F u n c t i o n ( a ) ? a ( ) : a ) , " r e p l a c e W i t h " , a ) : t h i s } , d e t a c h : f u n c t i o n ( a ) { r e t u r n   t h i s . r e m o v e ( a , ! 0 ) } , d o m M a n i p : f u n c t i o n ( a , c , d ) { v a r   e , g , h , i , j = a [ 0 ] , k = [ ] ; i f ( ! f . s u p p o r t . c h e c k C l o n e & & a r g u m e n t s . l e n g t h = = = 3 & & t y p e o f   j = = " s t r i n g " & & b d . t e s t ( j ) ) r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { f ( t h i s ) . d o m M a n i p ( a , c , d , ! 0 ) } ) ; i f ( f . i s F u n c t i o n ( j ) ) r e t u r n   t h i s . e a c h ( f u n c t i o n ( e ) { v a r   g = f ( t h i s ) ; a [ 0 ] = j . c a l l ( t h i s , e , c ? g . h t m l ( ) : b ) , g . d o m M a n i p ( a , c , d ) } ) ; i f ( t h i s [ 0 ] ) { i = j & & j . p a r e n t N o d e , f . s u p p o r t . p a r e n t N o d e & & i & & i . n o d e T y p e = = = 1 1 & & i . c h i l d N o d e s . l e n g t h = = = t h i s . l e n g t h ? e = { f r a g m e n t : i } : e = f . b u i l d F r a g m e n t ( a , t h i s , k ) , h = e . f r a g m e n t , h . c h i l d N o d e s . l e n g t h = = = 1 ? g = h = h . f i r s t C h i l d : g = h . f i r s t C h i l d ; i f ( g ) { c = c & & f . n o d e N a m e ( g , " t r " ) ; f o r ( v a r   l = 0 , m = t h i s . l e n g t h , n = m - 1 ; l < m ; l + + ) d . c a l l ( c ? b h ( t h i s [ l ] , g ) : t h i s [ l ] , e . c a c h e a b l e | | m > 1 & & l < n ? f . c l o n e ( h , ! 0 , ! 0 ) : h ) } k . l e n g t h & & f . e a c h ( k , b n ) } r e t u r n   t h i s } } ) , f . b u i l d F r a g m e n t = f u n c t i o n ( a , b , d ) { v a r   e , g , h , i = b & & b [ 0 ] ? b [ 0 ] . o w n e r D o c u m e n t | | b [ 0 ] : c ; a . l e n g t h = = = 1 & & t y p e o f   a [ 0 ] = = " s t r i n g " & & a [ 0 ] . l e n g t h < 5 1 2 & & i = = = c & & a [ 0 ] . c h a r A t ( 0 ) = = = " < " & & ! b c . t e s t ( a [ 0 ] ) & & ( f . s u p p o r t . c h e c k C l o n e | | ! b d . t e s t ( a [ 0 ] ) ) & & ( g = ! 0 , h = f . f r a g m e n t s [ a [ 0 ] ] , h & & h ! = = 1 & & ( e = h ) ) , e | | ( e = i . c r e a t e D o c u m e n t F r a g m e n t ( ) , f . c l e a n ( a , i , e , d ) ) , g & & ( f . f r a g m e n t s [ a [ 0 ] ] = h ? e : 1 ) ; r e t u r n { f r a g m e n t : e , c a c h e a b l e : g } } , f . f r a g m e n t s = { } , f . e a c h ( { a p p e n d T o : " a p p e n d " , p r e p e n d T o : " p r e p e n d " , i n s e r t B e f o r e : " b e f o r e " , i n s e r t A f t e r : " a f t e r " , r e p l a c e A l l : " r e p l a c e W i t h " } , f u n c t i o n ( a , b ) { f . f n [ a ] = f u n c t i o n ( c ) { v a r   d = [ ] , e = f ( c ) , g = t h i s . l e n g t h = = = 1 & & t h i s [ 0 ] . p a r e n t N o d e ; i f ( g & & g . n o d e T y p e = = = 1 1 & & g . c h i l d N o d e s . l e n g t h = = = 1 & & e . l e n g t h = = = 1 ) { e [ b ] ( t h i s [ 0 ] ) ; r e t u r n   t h i s } f o r ( v a r   h = 0 , i = e . l e n g t h ; h < i ; h + + ) { v a r   j = ( h > 0 ? t h i s . c l o n e ( ! 0 ) : t h i s ) . g e t ( ) ; f ( e [ h ] ) [ b ] ( j ) , d = d . c o n c a t ( j ) } r e t u r n   t h i s . p u s h S t a c k ( d , a , e . s e l e c t o r ) } } ) , f . e x t e n d ( { c l o n e : f u n c t i o n ( a , b , c ) { v a r   d = a . c l o n e N o d e ( ! 0 ) , e , g , h ; i f ( ( ! f . s u p p o r t . n o C l o n e E v e n t | | ! f . s u p p o r t . n o C l o n e C h e c k e d ) & & ( a . n o d e T y p e = = = 1 | | a . n o d e T y p e = = = 1 1 ) & & ! f . i s X M L D o c ( a ) ) { b j ( a , d ) , e = b k ( a ) , g = b k ( d ) ; f o r ( h = 0 ; e [ h ] ; + + h ) b j ( e [ h ] , g [ h ] ) } i f ( b ) { b i ( a , d ) ; i f ( c ) { e = b k ( a ) , g = b k ( d ) ; f o r ( h = 0 ; e [ h ] ; + + h ) b i ( e [ h ] , g [ h ] ) } } r e t u r n   d } , c l e a n : f u n c t i o n ( a , b , d , e ) { v a r   g ; b = b | | c , t y p e o f   b . c r e a t e E l e m e n t = = " u n d e f i n e d " & & ( b = b . o w n e r D o c u m e n t | | 
 b [ 0 ] & & b [ 0 ] . o w n e r D o c u m e n t | | c ) ; v a r   h = [ ] , i ; f o r ( v a r   j = 0 , k ; ( k = a [ j ] ) ! = n u l l ; j + + ) { t y p e o f   k = = " n u m b e r " & & ( k + = " " ) ; i f ( ! k ) c o n t i n u e ; i f ( t y p e o f   k = = " s t r i n g " ) i f ( ! b b . t e s t ( k ) ) k = b . c r e a t e T e x t N o d e ( k ) ; e l s e { k = k . r e p l a c e ( $ , " < $ 1 > < / $ 2 > " ) ; v a r   l = ( _ . e x e c ( k ) | | [ " " , " " ] ) [ 1 ] . t o L o w e r C a s e ( ) , m = b g [ l ] | | b g . _ d e f a u l t , n = m [ 0 ] , o = b . c r e a t e E l e m e n t ( " d i v " ) ; o . i n n e r H T M L = m [ 1 ] + k + m [ 2 ] ; w h i l e ( n - - ) o = o . l a s t C h i l d ; i f ( ! f . s u p p o r t . t b o d y ) { v a r   p = b a . t e s t ( k ) , q = l = = = " t a b l e " & & ! p ? o . f i r s t C h i l d & & o . f i r s t C h i l d . c h i l d N o d e s : m [ 1 ] = = = " < t a b l e > " & & ! p ? o . c h i l d N o d e s : [ ] ; f o r ( i = q . l e n g t h - 1 ; i > = 0 ; - - i ) f . n o d e N a m e ( q [ i ] , " t b o d y " ) & & ! q [ i ] . c h i l d N o d e s . l e n g t h & & q [ i ] . p a r e n t N o d e . r e m o v e C h i l d ( q [ i ] ) } ! f . s u p p o r t . l e a d i n g W h i t e s p a c e & & Z . t e s t ( k ) & & o . i n s e r t B e f o r e ( b . c r e a t e T e x t N o d e ( Z . e x e c ( k ) [ 0 ] ) , o . f i r s t C h i l d ) , k = o . c h i l d N o d e s } v a r   r ; i f ( ! f . s u p p o r t . a p p e n d C h e c k e d ) i f ( k [ 0 ] & & t y p e o f   ( r = k . l e n g t h ) = = " n u m b e r " ) f o r ( i = 0 ; i < r ; i + + ) b m ( k [ i ] ) ; e l s e   b m ( k ) ; k . n o d e T y p e ? h . p u s h ( k ) : h = f . m e r g e ( h , k ) } i f ( d ) { g = f u n c t i o n ( a ) { r e t u r n ! a . t y p e | | b e . t e s t ( a . t y p e ) } ; f o r ( j = 0 ; h [ j ] ; j + + ) i f ( e & & f . n o d e N a m e ( h [ j ] , " s c r i p t " ) & & ( ! h [ j ] . t y p e | | h [ j ] . t y p e . t o L o w e r C a s e ( ) = = = " t e x t / j a v a s c r i p t " ) ) e . p u s h ( h [ j ] . p a r e n t N o d e ? h [ j ] . p a r e n t N o d e . r e m o v e C h i l d ( h [ j ] ) : h [ j ] ) ; e l s e { i f ( h [ j ] . n o d e T y p e = = = 1 ) { v a r   s = f . g r e p ( h [ j ] . g e t E l e m e n t s B y T a g N a m e ( " s c r i p t " ) , g ) ; h . s p l i c e . a p p l y ( h , [ j + 1 , 0 ] . c o n c a t ( s ) ) } d . a p p e n d C h i l d ( h [ j ] ) } } r e t u r n   h } , c l e a n D a t a : f u n c t i o n ( a ) { v a r   b , c , d = f . c a c h e , e = f . e x p a n d o , g = f . e v e n t . s p e c i a l , h = f . s u p p o r t . d e l e t e E x p a n d o ; f o r ( v a r   i = 0 , j ; ( j = a [ i ] ) ! = n u l l ; i + + ) { i f ( j . n o d e N a m e & & f . n o D a t a [ j . n o d e N a m e . t o L o w e r C a s e ( ) ] ) c o n t i n u e ; c = j [ f . e x p a n d o ] ; i f ( c ) { b = d [ c ] & & d [ c ] [ e ] ; i f ( b & & b . e v e n t s ) { f o r ( v a r   k   i n   b . e v e n t s ) g [ k ] ? f . e v e n t . r e m o v e ( j , k ) : f . r e m o v e E v e n t ( j , k , b . h a n d l e ) ; b . h a n d l e & & ( b . h a n d l e . e l e m = n u l l ) } h ? d e l e t e   j [ f . e x p a n d o ] : j . r e m o v e A t t r i b u t e & & j . r e m o v e A t t r i b u t e ( f . e x p a n d o ) , d e l e t e   d [ c ] } } } } ) ; v a r   b o = / a l p h a \ ( [ ^ ) ] * \ ) / i , b p = / o p a c i t y = ( [ ^ ) ] * ) / , b q = / - ( [ a - z ] ) / i g , b r = / ( [ A - Z ] | ^ m s ) / g , b s = / ^ - ? \ d + ( ? : p x ) ? $ / i , b t = / ^ - ? \ d / , b u = / ^ [ + \ - ] = / , b v = / [ ^ + \ - \ . \ d e ] + / g , b w = { 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 " , d i s p l a y : " b l o c k " } , b x = [ " L e f t " , " R i g h t " ] , b y = [ " T o p " , " B o t t o m " ] , b z , b A , b B , b C = f u n c t i o n ( a , b ) { r e t u r n   b . t o U p p e r C a s e ( ) } ; f . f n . c s s = f u n c t i o n ( a , c ) { i f ( a r g u m e n t s . l e n g t h = = = 2 & & c = = = b ) r e t u r n   t h i s ; r e t u r n   f . a c c e s s ( t h i s , a , c , ! 0 , f u n c t i o n ( a , c , d ) { r e t u r n   d ! = = b ? f . s t y l e ( a , c , d ) : f . c s s ( a , c ) } ) } , f . e x t e n d ( { c s s H o o k s : { o p a c i t y : { g e t : f u n c t i o n ( a , b ) { i f ( b ) { v a r   c = b z ( a , " o p a c i t y " , " o p a c i t y " ) ; r e t u r n   c = = = " " ? " 1 " : c } r e t u r n   a . s t y l e . o p a c i t y } } } , c s s N u m b e r : { z I n d e x : ! 0 , f o n t W e i g h t : ! 0 , o p a c i t y : ! 0 , z o o m : ! 0 , l i n e H e i g h t : ! 0 , w i d o w s : ! 0 , o r p h a n s : ! 0 } , c s s P r o p s : { " f l o a t " : f . s u p p o r t . c s s F l o a t ? " c s s F l o a t " : " s t y l e F l o a t " } , s t y l e : f u n c t i o n ( a , c , d , e ) { i f ( ! ! a & & a . n o d e T y p e ! = = 3 & & a . n o d e T y p e ! = = 8 & & ! ! a . s t y l e ) { v a r   g , h , i = f . c a m e l C a s e ( c ) , j = a . s t y l e , k = f . c s s H o o k s [ i ] ; c = f . c s s P r o p s [ i ] | | i ; i f ( d = = = b ) { i f ( k & & " g e t " i n   k & & ( g = k . g e t ( a , ! 1 , e ) ) ! = = b ) r e t u r n   g ; r e t u r n   j [ c ] } h = t y p e o f   d ; i f ( h = = = " n u m b e r " & & i s N a N ( d ) | | d = = n u l l ) r e t u r n ; h = = = " s t r i n g " & & b u . t e s t ( d ) & & ( d = + d . r e p l a c e ( b v , " " ) + p a r s e F l o a t ( f . c s s ( a , c ) ) ) , h = = = " n u m b e r " & & ! f . c s s N u m b e r [ i ] & & ( d + = " p x " ) ; i f ( ! k | | ! ( " s e t " i n   k ) | | ( d = k . s e t ( a , d ) ) ! = = b ) t r y { j [ c ] = d } c a t c h ( l ) { } } } , c s s : f u n c t i o n ( a , c , d ) { v a r   e , g ; c = f . c a m e l C a s e ( c ) , g = f . c s s H o o k s [ c ] , c = f . c s s P r o p s [ c ] | | c , c = = = " c s s F l o a t " & & ( c = " f l o a t " ) ; i f ( g & & " g e t " i n   g & & ( e = g . g e t ( a , ! 0 , d ) ) ! = = b ) r e t u r n   e ; i f ( b z ) r e t u r n   b z ( a , c ) } , s w a p : f u n c t i o n ( a , b , c ) { v a r   d = { } ; f o r ( v a r   e   i n   b ) d [ e ] = a . s t y l e [ e ] , a . s t y l e [ e ] = b [ e ] ; c . c a l l ( a ) ; f o r ( e   i n   b ) a . s t y l e [ e ] = d [ e ] } , c a m e l C a s e : f u n c t i o n ( a ) { r e t u r n   a . r e p l a c e ( b q , b C ) } } ) , f . c u r C S S = f . c s s , f . e a c h ( [ " h e i g h t " , " w i d t h " ] , f u n c t i o n ( a , b ) { f . c s s H o o k s [ b ] = { g e t : f u n c t i o n ( a , c , d ) { v a r   e ; i f ( c ) { a . o f f s e t W i d t h ! = = 0 ? e = b D ( a , b , d ) : f . s w a p ( a , b w , f u n c t i o n ( ) { e = b D ( a , b , d ) } ) ; i f ( e < = 0 ) { e = b z ( a , b , b ) , e = = = " 0 p x " & & b B & & ( e = b B ( a , b , b ) ) ; i f ( e ! = n u l l ) r e t u r n   e = = = " " | | e = = = " a u t o " ? " 0 p x " : e } i f ( e < 0 | | e = = n u l l ) { e = a . s t y l e [ b ] ; r e t u r n   e = = = " " | | e = = = " a u t o " ? " 0 p x " : e } r e t u r n   t y p e o f   e = = " s t r i n g " ? e : e + " p x " } } , s e t : f u n c t i o n ( a , b ) { i f ( ! b s . t e s t ( b ) ) r e t u r n   b ; b = p a r s e F l o a t ( b ) ; i f ( b > = 0 ) r e t u r n   b + " p x " } } } ) , f . s u p p o r t . o p a c i t y | | ( f . c s s H o o k s . o p a c i t y = { g e t : f u n c t i o n ( a , b ) { r e t u r n   b p . t e s t ( ( b & & a . c u r r e n t S t y l e ? a . c u r r e n t S t y l e . f i l t e r : a . s t y l e . f i l t e r ) | | " " ) ? p a r s e F l o a t ( R e g E x p . $ 1 ) / 1 0 0 + " " : b ? " 1 " : " " } , s e t : f u n c t i o n ( a , b ) { v a r   c = a . s t y l e , d = a . c u r r e n t S t y l e ; c . z o o m = 1 ; v a r   e = f . i s N a N ( b ) ? " " : " a l p h a ( o p a c i t y = " + b * 1 0 0 + " ) " , g = d & & d . f i l t e r | | c . f i l t e r | | " " ; c . f i l t e r = b o . t e s t ( g ) ? g . r e p l a c e ( b o , e ) : g + "   " + e } } ) , f ( f u n c t i o n ( ) { f . s u p p o r t . r e l i a b l e M a r g i n R i g h t | | ( f . c s s H o o k s . m a r g i n R i g h t = { g e t : f u n c t i o n ( a , b ) { v a r   c ; f . s w a p ( a , { d i s p l a y : " i n l i n e - b l o c k " } , f u n c t i o n ( ) { b ? c = b z ( a , " m a r g i n - r i g h t " , " m a r g i n R i g h t " ) : c = a . s t y l e . m a r g i n R i g h t } ) ; r e t u r n   c } } ) } ) , c . d e f a u l t V i e w & & c . d e f a u l t V i e w . g e t C o m p u t e d S t y l e & & ( b A = f u n c t i o n ( a , c ) { v a r   d , e , g ; c = c . r e p l a c e ( b r , " - $ 1 " ) . t o L o w e r C a s e ( ) ; i f ( ! ( e = a . o w n e r D o c u m e n t . d e f a u l t V i e w ) ) r e t u r n   b ; i f ( g = e . g e t C o m p u t e d S t y l e ( a , n u l l ) ) d = g . g e t P r o p e r t y V a l u e ( c ) , d = = = " " & & ! f . c o n t a i n s ( a . o w n e r D o c u m e n t . d o c u m e n t E l e m e n t , a ) & & ( d = f . s t y l e ( a , c ) ) ; r e t u r n   d } ) , c . d o c u m e n t E l e m e n t . c u r r e n t S t y l e & & ( b B = f u n c t i o n ( a , b ) { v a r   c , d = a . c u r r e n t S t y l e & & a . c u r r e n t S t y l e [ b ] , e = a . r u n t i m e S t y l e & & a . r u n t i m e S t y l e [ b ] , f = a . s t y l e ; ! b s . t e s t ( d ) & & b t . t e s t ( d ) & & ( c = f . l e f t , e & & ( a . r u n t i m e S t y l e . l e f t = a . c u r r e n t S t y l e . l e f t ) , f . l e f t = b = = = " f o n t S i z e " ? " 1 e m " : d | | 0 , d = f . p i x e l L e f t + " p x " , f . l e f t = c , e & & ( a . r u n t i m e S t y l e . l e f t = e ) ) ; r e t u r n   d = = = " " ? " a u t o " : d } ) , b z = b A | | b B , f . e x p r & & f . e x p r . f i l t e r s & & ( f . e x p r . f i l t e r s . h i d d e n = f u n c t i o n ( a ) { v a r   b = a . o f f s e t W i d t h , c = a . o f f s e t H e i g h t ; r e t u r n   b = = = 0 & & c = = = 0 | | ! f . s u p p o r t . r e l i a b l e H i d d e n O f f s e t s & & ( a . s t y l e . d i s p l a y | | f . c s s ( a , " d i s p l a y " ) ) = = = " n o n e " } , f . e x p r . f i l t e r s . v i s i b l e = f u n c t i o n ( a ) { r e t u r n ! f . e x p r . f i l t e r s . h i d d e n ( a ) } ) ; v a r   b E = / % 2 0 / g , b F = / \ [ \ ] $ / , b G = / \ r ? \ n / g , b H = / # . * $ / , b I = / ^ ( . * ? ) : [   \ t ] * ( [ ^ \ r \ n ] * ) \ r ? $ / m g , b J = / ^ ( ? : c o l o r | d a t e | d a t e t i m e | e m a i l | h i d d e n | m o n t h | n u m b e r | p a s s w o r d | r a n g e | s e a r c h | t e l | t e x t | t i m e | u r l | w e e k ) $ / i , b K = / ^ ( ? : a b o u t | a p p | a p p \ - s t o r a g e | . + \ - e x t e n s i o n | f i l e | w i d g e t ) : $ / , b L = / ^ ( ? : G E T | H E A D ) $ / , b M = / ^ \ / \ / / , b N = / \ ? / , b O = / < s c r i p t \ b [ ^ < ] * ( ? : ( ? ! < \ / s c r i p t > ) < [ ^ < ] * ) * < \ / s c r i p t > / g i , b P = / ^ ( ? : s e l e c t | t e x t a r e a ) / i , b Q = / \ s + / , b R = / ( [ ? & ] ) _ = [ ^ & ] * / , b S = / ^ ( [ \ w \ + \ . \ - ] + : ) ( ? : \ / \ / ( [ ^ \ / ? # : ] * ) ( ? : : ( \ d + ) ) ? ) ? / , b T = f . f n . l o a d , b U = { } , b V = { } , b W , b X ; t r y { b W = e . h r e f } c a t c h ( b Y ) { b W = c . c r e a t e E l e m e n t ( " a " ) , b W . h r e f = " " , b W = b W . h r e f } b X = b S . e x e c ( b W . t o L o w e r C a s e ( ) ) | | [ ] , f . f n . e x t e n d ( { l o a d : f u n c t i o n ( a , c , d ) { i f ( t y p e o f   a ! = " s t r i n g " & & b T ) r e t u r n   b 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 . l e n g t h ) r e t u r n   t h i s ; v a r   e = a . i n d e x O f ( "   " ) ; i f ( e > = 0 ) { v a r   g = a . s l i c e ( e , a . l e n g t h ) ; a = a . s l i c e ( 0 , e ) } v a r   h = " G E T " ; c & & ( f . i s F u n c t i o n ( c ) ? ( d = c , c = b ) : t y p e o f   c = = " o b j e c t " & & ( c = f . p a r a m ( c , f . a j a x S e t t i n g s . t r a d i t i o n a l ) , h = " P O S T " ) ) ; v a r   i = t h i s ; f . a j a x ( { u r l : a , t y p e : h , d a t a T y p e : " h t m l " , d a t a : c , c o m p l e t e : f u n c t i o n ( a , b , c ) { c = a . r e s p o n s e T e x t , a . i s R e s o l v e d ( ) & & ( a . d o n e ( f u n c t i o n ( a ) { c = a } ) , i . h t m l ( g ? f ( " < d i v > " ) . a p p e n d ( c . r e p l a c e ( b O , " " ) ) . f i n d ( g ) : c ) ) , d & & i . e a c h ( d , [ c , b , a ] ) } } ) ; r e t u r n   t h i s } , s e r i a l i z e : f u n c t i o n ( ) { r e t u r n   f . p a r a m ( t h i s . s e r i a l i z e A r r a y ( ) ) } , s e r i a l i z e A r r a y : f u n c t i o n ( ) { r e t u r n   t h i s . m a p ( 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 ? f . m a k e A r r a y ( t h i s . e l e m e n t s ) : t h i s } ) . f i l t e r ( f u n c t i o n ( ) { r e t u r n   t h i s . n a m e & & ! t h i s . d i s a b l e d & & ( t h i s . c h e c k e d | | b P . t e s t ( t h i s . n o d e N a m e ) | | b J . t e s t ( t h i s . t y p e ) ) } ) . m a p ( f u n c t i o n ( a , b ) { v a r   c = f ( t h i s ) . v a l ( ) ; r e t u r n   c = = n u l l ? n u l l : f . i s A r r a y ( c ) ? f . m a p ( c , f u n c t i o n ( a , c ) { r e t u r n { n a m e : b . n a m e , v a l u e : a . r e p l a c e ( b G , " \ r \ n " ) } } ) : { n a m e : b . n a m e , v a l u e : c . r e p l a c e ( b G , " \ r \ n " ) } } ) . g e t ( ) } } ) , f . e a c h ( " a j a x S t a r t   a j a x S t o p   a j a x C o m p l e t e   a j a x E r r o r   a j a x S u c c e s s   a j a x S e n d " . s p l i t ( "   " ) , f u n c t i o n ( a , b ) { f . f n [ b ] = f u n c t i o n ( a ) { r e t u r n   t h i s . b i n d ( b , a ) } } ) , f . e a c h ( [ " g e t " , " p o s t " ] , f u n c t i o n ( a , c ) { f [ c ] = f u n c t i o n ( a , d , e , g ) { f . i s F u n c t i o n ( d ) & & ( g = g | | e , e = d , d = b ) ; r e t u r n   f . a j a x ( { t y p e : c , u r l : a , d a t a : d , s u c c e s s : e , d a t a T y p e : g } ) } } ) , f . e x t e n d ( { g e t S c r i p t : f u n c t i o n ( a , c ) { r e t u r n   f . g e t ( a , b , c , " s c r i p t " ) } , g e t J S O N : f u n c t i o n ( a , b , c ) { r e t u r n   f . g e t ( a , b , c , " j s o n " ) } , a j a x S e t u p : f u n c t i o n ( a , b ) { b ? f . e x t e n d ( ! 0 , a , f . a j a x S e t t i n g s , b ) : ( b = a , a = f . e x t e n d ( ! 0 , f . a j a x S e t t i n g s , b ) ) ; f o r ( v a r   c   i n { c o n t e x t : 1 , u r l : 1 } ) c   i n   b ? a [ c ] = b [ c ] : c   i n   f . a j a x S e t t i n g s & & ( a [ c ] = f . a j a x S e t t i n g s [ c ] ) ; r e t u r n   a } , a j a x S e t t i n g s : { u r l : b W , i s L o c a l : b K . t e s t ( b X [ 1 ] ) , g l o b a l : ! 0 , t y p e : " G E T " , 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 " , p r o c e s s D a t a : ! 0 , a s y n c : ! 0 , a c c e p t s : { x m l : " a p p l i c a t i o n / x m l ,   t e x t / x m l " , h t m l : " t e x t / h t m l " , t e x t : " t e x t / p l a i n " , j s o n : " a p p l i c a t i o n / j s o n ,   t e x t / j a v a s c r i p t " , " * " : " * / * " } , c o n t e n t s : { x m l : / x m l / , h t m l : / h t m l / , j s o n : / j s o n / } , r e s p o n s e F i e l d s : { x m l : " r e s p o n s e X M L " , t e x t : " r e s p o n s e T e x t " } , c o n v e r t e r s : { " *   t e x t " : a . S t r i n g , " t e x t   h t m l " : ! 0 , " t e x t   j s o n " : f . p a r s e J S O N , " t e x t   x m l " : f . p a r s e X M L } } , a j a x P r e f i l t e r : b Z ( b U ) , a j a x T r a n s p o r t : b Z ( b V ) , a j a x : f u n c t i o n ( a , c ) { f u n c t i o n   w ( a , c , l , m ) { i f ( s ! = = 2 ) { s = 2 , q & & c l e a r T i m e o u t ( q ) , p = b , n = m | | " " , v . r e a d y S t a t e = a ? 4 : 0 ; v a r   o , r , u , w = l ? c a ( d , v , l ) : b , x , y ; i f ( a > = 2 0 0 & & a < 3 0 0 | | a = = = 3 0 4 ) { i f ( d . i f M o d i f i e d ) { i f ( x = v . g e t R e s p o n s e H e a d e r ( " L a s t - M o d i f i e d " ) ) f . l a s t M o d i f i e d [ k ] = x ; i f ( y = v . g e t R e s p o n s e H e a d e r ( " E t a g " ) ) f . e t a g [ k ] = y } i f ( a = = = 3 0 4 ) c = " n o t m o d i f i e d " , o = ! 0 ; e l s e   t r y { r = c b ( d , w ) , c = " s u c c e s s " , o = ! 0 } c a t c h ( z ) { c = " p a r s e r e r r o r " , u = z } } e l s e { u = c ; i f ( ! c | | a ) c = " e r r o r " , a < 0 & & ( a = 0 ) } v . s t a t u s = a , v . s t a t u s T e x t = c , o ? h . r e s o l v e W i t h ( e , [ r , c , v ] ) : h . r e j e c t W i t h ( e , [ v , c , u ] ) , v . s t a t u s C o d e ( j ) , j = b , t & & g . t r i g g e r ( " a j a x " + ( o ? " S u c c e s s " : " E r r o r " ) , [ v , d , o ? r : u ] ) , i . r e s o l v e W i t h ( e , [ v , c ] ) , t & & ( g . t r i g g e r ( " a j a x C o m p l e t e " , [ v , d ] ) , - - f . a c t i v e | | f . e v e n t . t r i g g e r ( " a j a x S t o p " ) ) } } t y p e o f   a = = " o b j e c t " & & ( c = a , a = b ) , c = c | | { } ; v a r   d = f . a j a x S e t u p ( { } , c ) , e = d . c o n t e x t | | d , g = e ! = = d & & ( e . n o d e T y p e | | e   i n s t a n c e o f   f ) ? f ( e ) : f . e v e n t , h = f . D e f e r r e d ( ) , i = f . _ D e f e r r e d ( ) , j = d . s t a t u s C o d e | | { } , k , l = { } , m = { } , n , o , p , q , r , s = 0 , t , u , v = { r e a d y S t a t e : 0 , s e t R e q u e s t H e a d e r : f u n c t i o n ( a , b ) { i f ( ! s ) { v a r   c = a . t o L o w e r C a s e ( ) ; a = m [ c ] = m [ c ] | | a , l [ a ] = b } r e t u r n   t h i s } , g e t A l l R e s p o n s e H e a d e r s : f u n c t i o n ( ) { r e t u r n   s = = = 2 ? n : n u l l } , g e t R e s p o n s e H e a d e r : f u n c t i o n ( a ) { v a r   c ; i f ( s = = = 2 ) { i f ( ! o ) { o = { } ; w h i l e ( c = b I . e x e c ( n ) ) o [ c [ 1 ] . t o L o w e r C a s e ( ) ] = c [ 2 ] } c = o [ a . t o L o w e r C a s e ( ) ] } r e t u r n   c = = = b ? n u l l : c } , o v e r r i d e M i m e T y p e : f u n c t i o n ( a ) { s | | ( d . m i m e T y p e = a ) ; r e t u r n   t h i s } , a b o r t : f u n c t i o n ( a ) { a = a | | " a b o r t " , p & & p . a b o r t ( a ) , w ( 0 , a ) ; r e t u r n   t h i s } } ; h . p r o m i s e ( v ) , v . s u c c e s s = v . d o n e , v . e r r o r = v . f a i l , v . c o m p l e t e = i . d o n e , v . s t a t u s C o d e = f u n c t i o n ( a ) { i f ( a ) { v a r   b ; i f ( s < 2 ) f o r ( b   i n   a ) j [ b ] = [ j [ b ] , a [ b ] ] ; e l s e   b = a [ v . s t a t u s ] , v . t h e n ( b , b ) } r e t u r n   t h i s } , d . u r l = ( ( a | | d . u r l ) + " " ) . r e p l a c e ( b H , " " ) . r e p l a c e ( b M , b X [ 1 ] + " / / " ) , d . d a t a T y p e s = f . t r i m ( d . d a t a T y p e | | " * " ) . t o L o w e r C a s e ( ) . s p l i t ( b Q ) , d . c r o s s D o m a i n = = n u l l & & ( r = b S . e x e c ( d . u r l . t o L o w e r C a s e ( ) ) , d . c r o s s D o m a i n = ! ( ! r | | r [ 1 ] = = b X [ 1 ] & & r [ 2 ] = = b X [ 2 ] & & ( r [ 3 ] | | ( r [ 1 ] = = = " h t t p : " ? 8 0 : 4 4 3 ) ) = = ( b X [ 3 ] | | ( b X [ 1 ] = = = " h t t p : " ? 8 0 : 4 4 3 ) ) ) ) , d . d a t a & & d . p r o c e s s D a t a & & t y p e o f   d . d a t a ! = " s t r i n g " & & ( d . d a t a = f . p a r a m ( d . d a t a , d . t r a d i t i o n a l ) ) , b $ ( b U , d , c , v ) ; i f ( s = = = 2 ) r e t u r n ! 1 ; t = d . g l o b a l , d . t y p e = d . t y p e . t o U p p e r C a s e ( ) , d . h a s C o n t e n t = ! b L . t e s t ( d . t y p e ) , t & & f . a c t i v e + + = = = 0 & & f . e v e n t . t r i g g e r ( " a j a x S t a r t " ) ; i f ( ! d . h a s C o n t e n t ) { d . d a t a & & ( d . u r l + = ( b N . t e s t ( d . u r l ) ? " & " : " ? " ) + d . d a t a ) , k = d . u r l ; i f ( d . c a c h e = = = ! 1 ) { v a r   x = f . n o w ( ) , y = d . u r l . r e p l a c e ( b R , " $ 1 _ = " + x ) ; d . u r l = y + ( y = = = d . u r l ? ( b N . t e s t ( d . u r l ) ? " & " : " ? " ) + " _ = " + x : " " ) } } ( d . d a t a & & d . h a s C o n t e n t & & d . c o n t e n t T y p e ! = = ! 1 | | c . c o n t e n t T y p e ) & & v . s e t R e q u e s t H e a d e r ( " C o n t e n t - T y p e " , d . c o n t e n t T y p e ) , d . i f M o d i f i e d & & ( k = k | | d . u r l , f . l a s t M o d i f i e d [ k ] & & v . s e t R e q u e s t H e a d e r ( " I f - M o d i f i e d - S i n c e " , f . l a s t M o d i f i e d [ k ] ) , f . e t a g [ k ] & & v . s e t R e q u e s t H e a d e r ( " I f - N o n e - M a t c h " , f . e t a g [ k ] ) ) , v . s e t R e q u e s t H e a d e r ( " A c c e p t " , d . d a t a T y p e s [ 0 ] & & d . a c c e p t s [ d . d a t a T y p e s [ 0 ] ] ? d . a c c e p t s [ d . d a t a T y p e s [ 0 ] ] + ( d . d a t a T y p e s [ 0 ] ! = = " * " ? " ,   * / * ;   q = 0 . 0 1 " : " " ) : d . a c c e p t s [ " * " ] ) ; f o r ( u   i n   d . h e a d e r s ) v . s e t R e q u e s t H e a d e r ( u , d . h e a d e r s [ u ] ) ; i f ( d . b e f o r e S e n d & & ( d . b e f o r e S e n d . c a l l ( e , v , d ) = = = ! 1 | | s = = = 2 ) ) { v . a b o r t ( ) ; r e t u r n ! 1 } f o r ( u   i n { s u c c e s s : 1 , e r r o r : 1 , c o m p l e t e : 1 } ) v [ u ] ( d [ u ] ) ; p = b $ ( b V , d , c , v ) ; i f ( ! p ) w ( - 1 , " N o   T r a n s p o r t " ) ; e l s e { v . r e a d y S t a t e = 1 , t & & g . t r i g g e r ( " a j a x S e n d " , [ v , d ] ) , d . a s y n c & & d . t i m e o u t > 0 & & ( q = s e t T i m e o u t ( f u n c t i o n ( ) { v . a b o r t ( " t i m e o u t " ) } , d . t i m e o u t ) ) ; t r y { s = 1 , p . s e n d ( l , w ) } c a t c h ( z ) { s t a t u s < 2 ? w ( - 1 , z ) : f . e r r o r ( z ) } } r e t u r n   v } , p a r a m : f u n c t i o n ( a , c ) { v a r   d = [ ] , e = f u n c t i o n ( a , b ) { b = f . i s F u n c t i o n ( b ) ? b ( ) : b , d [ d . l e n g t h ] = e n c o d e U R I C o m p o n e n t ( a ) + " = " + e n c o d e U R I C o m p o n e n t ( b ) } ; c = = = b & & ( c = f . a j a x S e t t i n g s . t r a d i t i o n a l ) ; i f ( f . i s A r r a y ( a ) | | a . j q u e r y & & ! f . i s P l a i n O b j e c t ( a ) ) f . e a c h ( a , f u n c t i o n ( ) { e ( t h i s . n a m e , t h i s . v a l u e ) } ) ; e l s e   f o r ( v a r   g   i n   a ) b _ ( g , a [ g ] , c , e ) ; r e t u r n   d . j o i n ( " & " ) . r e p l a c e ( b E , " + " ) } } ) , f . e x t e n d ( { a c t i v e : 0 , l a s t M o d i f i e d : { } , e t a g : { } } ) ; v a r   c c = f . n o w ( ) , c d = / ( \ = ) \ ? ( & | $ ) | \ ? \ ? / i ; f . a j a x S e t u p ( { j s o n p : " c a l l b a c k " , j s o n p C a l l b a c k : f u n c t i o n ( ) { r e t u r n   f . e x p a n d o + " _ " + c c + + } } ) , f . a j a x P r e f i l t e r ( " j s o n   j s o n p " , f u n c t i o n ( b , c , d ) { v a r   e = b . 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 " & & t y p e o f   b . d a t a = = " s t r i n g " ; i f ( b . d a t a T y p e s [ 0 ] = = = " j s o n p " | | b . j s o n p ! = = ! 1 & & ( c d . t e s t ( b . u r l ) | | e & & c d . t e s t ( b . d a t a ) ) ) { v a r   g , h = b . j s o n p C a l l b a c k = f . i s F u n c t i o n ( b . j s o n p C a l l b a c k ) ? b . j s o n p C a l l b a c k ( ) : b . j s o n p C a l l b a c k , i = a [ h ] , j = b . u r l , k = b . d a t a , l = " $ 1 " + h + " $ 2 " ; b . j s o n p ! = = ! 1 & & ( j = j . r e p l a c e ( c d , l ) , b . u r l = = = j & & ( e & & ( k = k . r e p l a c e ( c d , l ) ) , b . d a t a = = = k & & ( j + = ( / \ ? / . t e s t ( j ) ? " & " : " ? " ) + b . j s o n p + " = " + h ) ) ) , b . u r l = j , b . d a t a = k , a [ h ] = f u n c t i o n ( a ) { g = [ a ] } , d . a l w a y s ( f u n c t i o n ( ) { a [ h ] = i , g & & f . i s F u n c t i o n ( i ) & & a [ h ] ( g [ 0 ] ) } ) , b . c o n v e r t e r s [ " s c r i p t   j s o n " ] = f u n c t i o n ( ) { g | | f . e r r o r ( h + "   w a s   n o t   c a l l e d " ) ; r e t u r n   g [ 0 ] } , b . d a t a T y p e s [ 0 ] = " j s o n " ; r e t u r n " s c r i p t " } } ) , f . a j a x S e t u p ( { a c c e p t s : { s c r i p t : " t e x t / j a v a s c r i p t ,   a p p l i c a t i o n / j a v a s c r i p t ,   a p p l i c a t i o n / e c m a s c r i p t ,   a p p l i c a t i o n / x - e c m a s c r i p t " } , c o n t e n t s : { s c r i p t : / j a v a s c r i p t | e c m a s c r i p t / } , c o n v e r t e r s : { " t e x t   s c r i p t " : f u n c t i o n ( a ) { f . g l o b a l E v a l ( a ) ; r e t u r n   a } } } ) , f . a j a x P r e f i l t e r ( " s c r i p t " , f u n c t i o n ( a ) { a . c a c h e = = = b & & ( a . c a c h e = ! 1 ) , a . c r o s s D o m a i n & & ( a . t y p e = " G E T " , a . g l o b a l = ! 1 ) } ) , f . a j a x T r a n s p o r t ( " s c r i p t " , f u n c t i o n ( a ) { i f ( a . c r o s s D o m a i n ) { v a r   d , e = c . h e a d | | c . 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 ] | | c . d o c u m e n t E l e m e n t ; r e t u r n { s e n d : f u n c t i o n ( f , g ) { d = c . c r e a t e E l e m e n t ( " s c r i p t " ) , d . a s y n c = " a s y n c " , a . s c r i p t C h a r s e t & & ( d . c h a r s e t = a . s c r i p t C h a r s e t ) , d . s r c = a . u r l , d . o n l o a d = d . o n r e a d y s t a t e c h a n g e = f u n c t i o n ( a , c ) { i f ( c | | ! d . r e a d y S t a t e | | / l o a d e d | c o m p l e t e / . t e s t ( d . r e a d y S t a t e ) ) d . o n l o a d = d . o n r e a d y s t a t e c h a n g e = n u l l , e & & d . p a r e n t N o d e & & e . r e m o v e C h i l d ( d ) , d = b , c | | g ( 2 0 0 , " s u c c e s s " ) } , e . i n s e r t B e f o r e ( d , e . f i r s t C h i l d ) } , a b o r t : f u n c t i o n ( ) { d & & d . o n l o a d ( 0 , 1 ) } } } } ) ; v a r   c e = a . A c t i v e X O b j e c t ? f u n c t i o n ( ) { f o r ( v a r   a   i n   c g ) c g [ a ] ( 0 , 1 ) } : ! 1 , c f = 0 , c g ; f . a j a x S e t t i n g s . x h r = a . A c t i v e X O b j e c t ? f u n c t i o n ( ) { r e t u r n ! t h i s . i s L o c a l & & c h ( ) | | c i ( ) } : c h , f u n c t i o n ( a ) { f . e x t e n d ( f . s u p p o r t , { a j a x : ! ! a , c o r s : ! ! a & & " w i t h C r e d e n t i a l s " i n   a } ) } ( f . a j a x S e t t i n g s . x h r ( ) ) , f . s u p p o r t . a j a x & & f . a j a x T r a n s p o r t ( f u n c t i o n ( c ) { i f ( ! c . c r o s s D o m a i n | | f . s u p p o r t . c o r s ) { v a r   d ; r e t u r n { s e n d : f u n c t i o n ( e , g ) { v a r   h = c . x h r ( ) , i , j ; c . u s e r n a m e ? h . o p e n ( c . t y p e , c . u r l , c . a s y n c , c . u s e r n a m e , c . p a s s w o r d ) : h . o p e n ( c . t y p e , c . u r l , c . a s y n c ) ; i f ( c . x h r F i e l d s ) f o r ( j   i n   c . x h r F i e l d s ) h [ j ] = c . x h r F i e l d s [ j ] ; c . m i m e T y p e & & h . o v e r r i d e M i m e T y p e & & h . o v e r r i d e M i m e T y p e ( c . m i m e T y p e ) , ! c . c r o s s D o m a i n & & ! e [ " X - R e q u e s t e d - W i t h " ] & & ( e [ " 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 " ) ; t r y { f o r ( j   i n   e ) h . s e t R e q u e s t H e a d e r ( j , e [ j ] ) } c a t c h ( k ) { } h . s e n d ( c . h a s C o n t e n t & & c . d a t a | | n u l l ) , d = f u n c t i o n ( a , e ) { v a r   j , k , l , m , n ; t r y { i f ( d & & ( e | | h . r e a d y S t a t e = = = 4 ) ) { d = b , i & & ( h . o n r e a d y s t a t e c h a n g e = f . n o o p , c e & & d e l e t e   c g [ i ] ) ; i f ( e ) h . r e a d y S t a t e ! = = 4 & & h . a b o r t ( ) ; e l s e { j = h . s t a t u s , l = h . g e t A l l R e s p o n s e H e a d e r s ( ) , m = { } , n = h . r e s p o n s e X M L , n & & n . d o c u m e n t E l e m e n t & & ( m . x m l = n ) , m . t e x t = h . r e s p o n s e T e x t ; t r y { k = h . s t a t u s T e x t } c a t c h ( o ) { k = " " } ! j & & c . i s L o c a l & & ! c . c r o s s D o m a i n ? j = m . t e x t ? 2 0 0 : 4 0 4 : j = = = 1 2 2 3 & & ( j = 2 0 4 ) } } } c a t c h ( p ) { e | | g ( - 1 , p ) } m & & g ( j , k , m , l ) } , ! c . a s y n c | | h . r e a d y S t a t e = = = 4 ? d ( ) : ( i = + + c f , c e & & ( c g | | ( c g = { } , f ( a ) . u n l o a d ( c e ) ) , c g [ i ] = d ) , h . o n r e a d y s t a t e c h a n g e = d ) } , a b o r t : f u n c t i o n ( ) { d & & d ( 0 , 1 ) } } } } ) ; v a r   c j = { } , c k , c l , c m = / ^ ( ? : t o g g l e | s h o w | h i d e ) $ / , c n = / ^ ( [ + \ - ] = ) ? ( [ \ d + . \ - ] + ) ( [ a - z % ] * ) $ / i , c o , c p = [ [ " h e i g h t " , " m a r g i n T o p " , " m a r g i n B o t t o m " , " p a d d i n g T o p " , " p a d d i n g B o t t o m " ] , [ " w i d t h " , " m a r g i n L e f t " , " m a r g i n R i g h t " , " p a d d i n g L e f t " , " p a d d i n g R i g h t " ] , [ " o p a c i t y " ] ] , c q , c r = a . w e b k i t R e q u e s t A n i m a t i o n F r a m e | | a . m o z R e q u e s t A n i m a t i o n F r a m e | | a . o R e q u e s t A n i m a t i o n F r a m e ; f . f n . e x t e n d ( { s h o w : f u n c t i o n ( a , b , c ) { v a r   d , e ; i f ( a | | a = = = 0 ) r e t u r n   t h i s . a n i m a t e ( c u ( " s h o w " , 3 ) , a , b , c ) ; f o r ( v a r   g = 0 , h = t h i s . l e n g t h ; g < h ; g + + ) d = t h i s [ g ] , d . s t y l e & & ( e = d . s t y l e . d i s p l a y , ! f . _ d a t a ( d , " o l d d i s p l a y " ) & & e = = = " n o n e " & & ( e = d . s t y l e . d i s p l a y = " " ) , e = = = " " & & f . c s s ( d , " d i s p l a y " ) = = = " n o n e " & & f . _ d a t a ( d , " o l d d i s p l a y " , c v ( d . n o d e N a m e ) ) ) ; f o r ( g = 0 ; g < h ; g + + ) { d = t h i s [ g ] ; i f ( d . s t y l e ) { e = d . s t y l e . d i s p l a y ; i f ( e = = = " " | | e = = = " n o n e " ) d . s t y l e . d i s p l a y = f . _ d a t a ( d , " o l d d i s p l a y " ) | | " " } } r e t u r n   t h i s } , h i d e : f u n c t i o n ( a , b , c ) { i f ( a | | a = = = 0 ) r e t u r n   t h i s . a n i m a t e ( c u ( " h i d e " , 3 ) , a , b , c ) ; f o r ( v a r   d = 0 , e = t h i s . l e n g t h ; d < e ; d + + ) i f ( t h i s [ d ] . s t y l e ) { v a r   g = f . c s s ( t h i s [ d ] , " d i s p l a y " ) ; g ! = = " n o n e " & & ! f . _ d a t a ( t h i s [ d ] , " o l d d i s p l a y " ) & & f . _ d a t a ( t h i s [ d ] , " o l d d i s p l a y " , g ) } f o r ( d = 0 ; d < e ; d + + ) t h i s [ d ] . s t y l e & & ( t h i s [ d ] . 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 } , _ t o g g l e : f . f n . t o g g l e , t o g g l e : f u n c t i o n ( a , b , c ) { v a r   d = t y p e o f   a = = " b o o l e a n " ; f . i s F u n c t i o n ( a ) & & f . i s F u n c t i o n ( b ) ? t h i s . _ t o g g l e . a p p l y ( t h i s , a r g u m e n t s ) : a = = n u l l | | d ? t h i s . e a c h ( f u n c t i o n ( ) { v a r   b = d ? a : f ( t h i s ) . i s ( " : h i d d e n " ) ; f ( t h i s ) [ b ? " s h o w " : " h i d e " ] ( ) } ) : t h i s . a n i m a t e ( c u ( " t o g g l e " , 3 ) , a , b , c ) ; r e t u r n   t h i s } , f a d e T o : f u n c t i o n ( a , b , c , d ) { r e t u r n   t h i s . f i l t e r ( " : h i d d e n " ) . c s s ( " o p a c i t y " , 0 ) . s h o w ( ) . e n d ( ) . a n i m a t e ( { o p a c i t y : b } , a , c , d ) } , a n i m a t e : f u n c t i o n ( a , b , c , d ) { v a r   e = f . s p e e d ( b , c , d ) ; i f ( f . i s E m p t y O b j e c t ( a ) ) r e t u r n   t h i s . e a c h ( e . c o m p l e t e , [ ! 1 ] ) ; a = f . e x t e n d ( { } , a ) ; r e t u r n   t h i s [ e . q u e u e = = = ! 1 ? " e a c h " : " q u e u e " ] ( f u n c t i o n ( ) { e . q u e u e = = = ! 1 & & f . _ m a r k ( t h i s ) ; v a r   b = f . e x t e n d ( { } , e ) , c = t h i s . n o d e T y p e = = = 1 , d = c & & f ( t h i s ) . i s ( " : h i d d e n " ) , g , h , i , j , k , l , m , n , o ; b . a n i m a t e d P r o p e r t i e s = { } ; f o r ( i   i n   a ) { g = f . c a m e l C a s e ( i ) , i ! = = g & & ( a [ g ] = a [ i ] , d e l e t e   a [ i ] ) , h = a [ g ] , f . i s A r r a y ( h ) ? ( b . a n i m a t e d P r o p e r t i e s [ g ] = h [ 1 ] , h = a [ g ] = h [ 0 ] ) : b . a n i m a t e d P r o p e r t i e s [ g ] = b . s p e c i a l E a s i n g & & b . s p e c i a l E a s i n g [ g ] | | b . e a s i n g | | " s w i n g " ; i f ( h = = = " h i d e " & & d | | h = = = " s h o w " & & ! d ) r e t u r n   b . c o m p l e t e . c a l l ( t h i s ) ; c & & ( g = = = " h e i g h t " | | g = = = " w i d t h " ) & & ( b . o v e r f l o w = [ t h i s . s t y l e . o v e r f l o w , t h i s . s t y l e . o v e r f l o w X , t h i s . s t y l e . o v e r f l o w Y ] , f . c s s ( t h i s , " d i s p l a y " ) = = = " i n l i n e " & & f . c s s ( t h i s , " f l o a t " ) = = = " n o n e " & & ( f . s u p p o r t . i n l i n e B l o c k N e e d s L a y o u t ? ( j = c v ( t h i s . n o d e N a m e ) , j = = = " i n l i n e " ? t h i s . s t y l e . d i s p l a y = " i n l i n e - b l o c k " : ( t h i s . s t y l e . d i s p l a y = " i n l i n e " , t h i s . s t y l e . z o o m = 1 ) ) : t h i s . s t y l e . d i s p l a y = " i n l i n e - b l o c k " ) ) } b . o v e r f l o w ! = n u l l & & ( t h i s . s t y l e . o v e r f l o w = " h i d d e n " ) ; f o r ( i   i n   a ) k = n e w   f . f x ( t h i s , b , i ) , h = a [ i ] , c m . t e s t ( h ) ? k [ h = = = " t o g g l e " ? d ? " s h o w " : " h i d e " : h ] ( ) : ( l = c n . e x e c ( h ) , m = k . c u r ( ) , l ? ( n = p a r s e F l o a t ( l [ 2 ] ) , o = l [ 3 ] | | ( f . c s s N u m b e r [ i ] ? " " : " p x " ) , o ! = = " p x " & & ( f . s t y l e ( t h i s , i , ( n | | 1 ) + o ) , m = ( n | | 1 ) / k . c u r ( ) * m , f . s t y l e ( t h i s , i , m + o ) ) , l [ 1 ] & & ( n = ( l [ 1 ] = = = " - = " ? - 1 : 1 ) * n + m ) , k . c u s t o m ( m , n , o ) ) : k . c u s t o m ( m , h , " " ) ) ; r e t u r n ! 0 } ) } , s t o p : f u n c t i o n ( a , b ) { a & & t h i s . q u e u e ( [ ] ) , t h i s . e a c h ( f u n c t i o n ( ) { v a r   a = f . t i m e r s , c = a . l e n g t h ; b | | f . _ u n m a r k ( ! 0 , t h i s ) ; w h i l e ( c - - ) a [ c ] . e l e m = = = t h i s & & ( b & & a [ c ] ( ! 0 ) , a . s p l i c e ( c , 1 ) ) } ) , b | | t h i s . d e q u e u e ( ) ; r e t u r n   t h i s } } ) , f . e a c h ( { s l i d e D o w n : c u ( " s h o w " , 1 ) , s l i d e U p : c u ( " h i d e " , 1 ) , s l i d e T o g g l e : c u ( " t o g g l e " , 1 ) , f a d e I n : { o p a c i t y : " s h o w " } , f a d e O u t : { o p a c i t y : " h i d e " } , f a d e T o g g l e : { o p a c i t y : " t o g g l e " } } , f u n c t i o n ( a , b ) { f . f n [ a ] = f u n c t i o n ( a , c , d ) { r e t u r n   t h i s . a n i m a t e ( b , a , c , d ) } } ) , f . e x t e n d ( { s p e e d : f u n c t i o n ( a , b , c ) { v a r   d = a & & t y p e o f   a = = " o b j e c t " ? f . e x t e n d ( { } , a ) : { c o m p l e t e : c | | ! c & & b | | f . i s F u n c t i o n ( a ) & & a , d u r a t i o n : a , e a s i n g : c & & b | | b & & ! f . i s F u n c t i o n ( b ) & & b } ; d . d u r a t i o n = f . f x . o f f ? 0 : t y p e o f   d . d u r a t i o n = = " n u m b e r " ? d . d u r a t i o n : d . d u r a t i o n   i n   f . f x . s p e e d s ? f . f x . s p e e d s [ d . d u r a t i o n ] : f . f x . s p e e d s . _ d e f a u l t , d . o l d = d . c o m p l e t e , d . c o m p l e t e = f u n c t i o n ( a ) { d . q u e u e ! = = ! 1 ? f . d e q u e u e ( t h i s ) : a ! = = ! 1 & & f . _ u n m a r k ( t h i s ) , f . i s F u n c t i o n ( d . o l d ) & & d . o l d . c a l l ( t h i s ) } ; r e t u r n   d } , e a s i n g : { l i n e a r : f u n c t i o n ( a , b , c , d ) { r e t u r n   c + d * a } , s w i n g : f u n c t i o n ( a , b , c , d ) { r e t u r n ( - M a t h . c o s ( a * M a t h . P I ) / 2 + . 5 ) * d + c } } , t i m e r s : [ ] , f x : f u n c t i o n ( a , b , c ) { t h i s . o p t i o n s = b , t h i s . e l e m = a , t h i s . p r o p = c , b . o r i g = b . o r i g | | { } } } ) , f . f x . p r o t o t y p e = { u p d a t e : f u n c t i o n ( ) { t h i s . o p t i o n s . s t e p & & t h i s . o p t i o n s . s t e p . c a l l ( t h i s . e l e m , t h i s . n o w , t h i s ) , ( f . f x . s t e p [ t h i s . p r o p ] | | f . f x . s t e p . _ d e f a u l t ) ( t h i s ) } , c u r : f u n c t i o n ( ) { i f ( t h i s . e l e m [ t h i s . p r o p ] ! = n u l l & & ( ! t h i s . e l e m . s t y l e | | t h i s . e l e m . s t y l e [ t h i s . p r o p ] = = n u l l ) ) r e t u r n   t h i s . e l e m [ t h i s . p r o p ] ; v a r   a , b = f . c s s ( t h i s . e l e m , t h i s . p r o p ) ; r e t u r n   i s N a N ( a = p a r s e F l o a t ( b ) ) ? ! b | | b = = = " a u t o " ? 0 : b : a } , c u s t o m : f u n c t i o n ( a , b , c ) { f u n c t i o n   h ( a ) { r e t u r n   d . s t e p ( a ) } v a r   d = t h i s , e = f . f x , g ; t h i s . s t a r t T i m e = c q | | c s ( ) , t h i s . s t a r t = a , t h i s . e n d = b , t h i s . u n i t = c | | t h i s . u n i t | | ( f . c s s N u m b e r [ t h i s . p r o p ] ? " " : " p x " ) , t h i s . n o w = t h i s . s t a r t , t h i s . p o s = t h i s . s t a t e = 0 , h . e l e m = t h i s . e l e m , h ( ) & & f . t i m e r s . p u s h ( h ) & & ! c o & & ( c r ? ( c o = 1 , g = f u n c t i o n ( ) { c o & & ( c r ( g ) , e . t i c k ( ) ) } , c r ( g ) ) : c o = s e t I n t e r v a l ( e . t i c k , e . i n t e r v a l ) ) } , s h o w : f u n c t i o n ( ) { t h i s . o p t i o n s . o r i g [ t h i s . p r o p ] = f . s t y l e ( t h i s . e l e m , t h i s . p r o p ) , t h i s . o p t i o n s . s h o w = ! 0 , t h i s . c u s t o m ( t h i s . p r o p = = = " w i d t h " | | t h i s . p r o p = = = " h e i g h t " ? 1 : 0 , t h i s . c u r ( ) ) , f ( t h i s . e l e m ) . s h o w ( ) } , h i d e : f u n c t i o n ( ) { t h i s . o p t i o n s . o r i g [ t h i s . p r o p ] = f . s t y l e ( t h i s . e l e m , t h i s . p r o p ) , t h i s . o p t i o n s . h i d e = ! 0 , t h i s . c u s t o m ( t h i s . c u r ( ) , 0 ) } , s t e p : f u n c t i o n ( a ) { v a r   b = c q | | c s ( ) , c = ! 0 , d = t h i s . e l e m , e = t h i s . o p t i o n s , g , h ; i f ( a | | b > = e . d u r a t i o n + t h i s . s t a r t T i m e ) { t h i s . n o w = t h i s . e n d , t h i s . p o s = t h i s . s t a t e = 1 , t h i s . u p d a t e ( ) , e . a n i m a t e d P r o p e r t i e s [ t h i s . p r o p ] = ! 0 ; f o r ( g   i n   e . a n i m a t e d P r o p e r t i e s ) e . a n i m a t e d P r o p e r t i e s [ g ] ! = = ! 0 & & ( c = ! 1 ) ; i f ( c ) { e . o v e r f l o w ! = n u l l & & ! f . s u p p o r t . s h r i n k W r a p B l o c k s & & f . e a c h ( [ " " , " X " , " Y " ] , f u n c t i o n ( a , b ) { d . s t y l e [ " o v e r f l o w " + b ] = e . o v e r f l o w [ a ] } ) , e . h i d e & & f ( d ) . h i d e ( ) ; i f ( e . h i d e | | e . s h o w ) f o r ( v a r   i   i n   e . a n i m a t e d P r o p e r t i e s ) f . s t y l e ( d , i , e . o r i g [ i ] ) ; e . c o m p l e t e . c a l l ( d ) } r e t u r n ! 1 } e . d u r a t i o n = = I n f i n i t y ? t h i s . n o w = b : ( h = b - t h i s . s t a r t T i m e , t h i s . s t a t e = h / e . d u r a t i o n , t h i s . p o s = f . e a s i n g [ e . a n i m a t e d P r o p e r t i e s [ t h i s . p r o p ] ] ( t h i s . s t a t e , h , 0 , 1 , e . d u r a t i o n ) , t h i s . n o w = t h i s . s t a r t + ( t h i s . e n d - t h i s . s t a r t ) * t h i s . p o s ) , t h i s . u p d a t e ( ) ; r e t u r n ! 0 } } , f . e x t e n d ( f . f x , { t i c k : f u n c t i o n ( ) { f o r ( v a r   a = f . t i m e r s , b = 0 ; b < a . l e n g t h ; + + b ) a [ b ] ( ) | | a . s p l i c e ( b - - , 1 ) ; a . l e n g t h | | f . f x . s t o p ( ) } , i n t e r v a l : 1 3 , s t o p : f u n c t i o n ( ) { c l e a r I n t e r v a l ( c o ) , c o = n u l l } , s p e e d s : { s l o w : 6 0 0 , f a s t : 2 0 0 , _ d e f a u l t : 4 0 0 } , s t e p : { o p a c i t y : f u n c t i o n ( a ) { f . s t y l e ( a . e l e m , " o p a c i t y " , a . n o w ) } , _ d e f a u l t : f u n c t i o n ( a ) { a . e l e m . s t y l e & & a . e l e m . s t y l e [ a . p r o p ] ! = n u l l ? a . e l e m . s t y l e [ a . p r o p ] = ( a . p r o p = = = " w i d t h " | | a . p r o p = = = " h e i g h t " ? M a t h . m a x ( 0 , a . n o w ) : a . n o w ) + a . u n i t : a . e l e m [ a . p r o p ] = a . n o w } } } ) , f . e x p r & & f . e x p r . f i l t e r s & & ( f . e x p r . f i l t e r s . a n i m a t e d = f u n c t i o n ( a ) { r e t u r n   f . g r e p ( f . t i m e r s , f u n c t i o n ( b ) { r e t u r n   a = = = b . e l e m } ) . l e n g t h } ) ; v a r   c w = / ^ t ( ? : a b l e | d | h ) $ / i , c x = / ^ ( ? : b o d y | h t m l ) $ / i ; " g e t B o u n d i n g C l i e n t R e c t " i n   c . d o c u m e n t E l e m e n t ? f . f n . o f f s e t = f u n c t i o n ( a ) { v a r   b = t h i s [ 0 ] , c ; i f ( a ) r e t u r n   t h i s . e a c h ( f u n c t i o n ( b ) { f . o f f s e t . s e t O f f s e t ( t h i s , a , b ) } ) ; i f ( ! b | | ! b . o w n e r D o c u m e n t ) r e t u r n   n u l l ; i f ( b = = = b . o w n e r D o c u m e n t . b o d y ) r e t u r n   f . o f f s e t . b o d y O f f s e t ( b ) ; t r y { c = b . g e t B o u n d i n g C l i e n t R e c t ( ) } c a t c h ( d ) { } v a r   e = b . o w n e r D o c u m e n t , g = e . d o c u m e n t E l e m e n t ; i f ( ! c | | ! f . c o n t a i n s ( g , b ) ) r e t u r n   c ? { t o p : c . t o p , l e f t : c . l e f t } : { t o p : 0 , l e f t : 0 } ; v a r   h = e . b o d y , i = c y ( e ) , j = g . c l i e n t T o p | | h . c l i e n t T o p | | 0 , k = g . c l i e n t L e f t | | h . c l i e n t L e f t | | 0 , l = i . p a g e Y O f f s e t | | f . s u p p o r t . b o x M o d e l & & g . s c r o l l T o p | | h . s c r o l l T o p , m = i . p a g e X O f f s e t | | f . s u p p o r t . b o x M o d e l & & g . s c r o l l L e f t | | h . s c r o l l L e f t , n = c . t o p + l - j , o = c . l e f t + m - k ; r e t u r n { t o p : n , l e f t : o } } : f . f n . o f f s e t = f u n c t i o n ( a ) { v a r   b = t h i s [ 0 ] ; i f ( a ) r e t u r n   t h i s . e a c h ( f u n c t i o n ( b ) { f . o f f s e t . s e t O f f s e t ( t h i s , a , b ) } ) ; i f ( ! b | | ! b . o w n e r D o c u m e n t ) r e t u r n   n u l l ; i f ( b = = = b . o w n e r D o c u m e n t . b o d y ) r e t u r n   f . o f f s e t . b o d y O f f s e t ( b ) ; f . o f f s e t . i n i t i a l i z e ( ) ; v a r   c , d = b . o f f s e t P a r e n t , e = b , g = b . o w n e r D o c u m e n t , h = g . d o c u m e n t E l e m e n t , i = g . b o d y , j = g . d e f a u l t V i e w , k = j ? j . g e t C o m p u t e d S t y l e ( b , n u l l ) : b . c u r r e n t S t y l e , l = b . o f f s e t T o p , m = b . o f f s e t L e f t ; w h i l e ( ( b = b . p a r e n t N o d e ) & & b ! = = i & & b ! = = h ) { i f ( f . o f f s e t . s u p p o r t s F i x e d P o s i t i o n & & k . p o s i t i o n = = = " f i x e d " ) b r e a k ; c = j ? j . g e t C o m p u t e d S t y l e ( b , n u l l ) : b . c u r r e n t S t y l e , l - = b . s c r o l l T o p , m - = b . s c r o l l L e f t , b = = = d & & ( l + = b . o f f s e t T o p , m + = b . o f f s e t L e f t , f . o f f s e t . d o e s N o t A d d B o r d e r & & ( ! f . o f f s e t . d o e s A d d B o r d e r F o r T a b l e A n d C e l l s | | ! c w . t e s t ( b . n o d e N a m e ) ) & & ( l + = p a r s e F l o a t ( c . b o r d e r T o p W i d t h ) | | 0 , m + = p a r s e F l o a t ( c . b o r d e r L e f t W i d t h ) | | 0 ) , e = d , d = b . o f f s e t P a r e n t ) , f . o f f s e t . s u b t r a c t s B o r d e r F o r O v e r f l o w N o t V i s i b l e & & c . o v e r f l o w ! = = " v i s i b l e " & & ( l + = p a r s e F l o a t ( c . b o r d e r T o p W i d t h ) | | 0 , m + = p a r s e F l o a t ( c . b o r d e r L e f t W i d t h ) | | 0 ) , k = c } i f ( k . p o s i t i o n = = = " r e l a t i v e " | | k . p o s i t i o n = = = " s t a t i c " ) l + = i . o f f s e t T o p , m + = i . o f f s e t L e f t ; f . o f f s e t . s u p p o r t s F i x e d P o s i t i o n & & k . p o s i t i o n = = = " f i x e d " & & ( l + = M a t h . m a x ( h . s c r o l l T o p , i . s c r o l l T o p ) , m + = M a t h . m a x ( h . s c r o l l L e f t , i . s c r o l l L e f t ) ) ; r e t u r n { t o p : l , l e f t : m } } , f . o f f s e t = { i n i t i a l i z e : f u n c t i o n ( ) { v a r   a = c . b o d y , b = c . c r e a t e E l e m e n t ( " d i v " ) , d , e , g , h , i = p a r s e F l o a t ( f . c s s ( a , " m a r g i n T o p " ) ) | | 0 , j = " < d i v   s t y l e = ' 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 ; m a r g i n : 0 ; b o r d e r : 5 p x   s o l i d   # 0 0 0 ; p a d d i n g : 0 ; w i d t h : 1 p x ; h e i g h t : 1 p x ; ' > < d i v > < / d i v > < / d i v > < t a b l e   s t y l e = ' 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 ; m a r g i n : 0 ; b o r d e r : 5 p x   s o l i d   # 0 0 0 ; p a d d i n g : 0 ; w i d t h : 1 p x ; h e i g h t : 1 p x ; '   c e l l p a d d i n g = ' 0 '   c e l l s p a c i n g = ' 0 ' > < t r > < t d > < / t d > < / t r > < / t a b l e > " ; f . e x t e n d ( b . s t y l e , { 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 , m a r g i n : 0 , b o r d e r : 0 , w i d t h : " 1 p x " , h e i g h t : " 1 p x " , v i s i b i l i t y : " h i d d e n " } ) , b . i n n e r H T M L = j , a . i n s e r t B e f o r e ( b , a . f i r s t C h i l d ) , d = b . f i r s t C h i l d , e = d . f i r s t C h i l d , h = d . n e x t S i b l i n g . f i r s t C h i l d . f i r s t C h i l d , t h i s . d o e s N o t A d d B o r d e r = e . o f f s e t T o p ! = = 5 , t h i s . d o e s A d d B o r d e r F o r T a b l e A n d C e l l s = h . o f f s e t T o p = = = 5 , e . s t y l e . p o s i t i o n = " f i x e d " , e . s t y l e . t o p = " 2 0 p x " , t h i s . s u p p o r t s F i x e d P o s i t i o n = e . o f f s e t T o p = = = 2 0 | | e . o f f s e t T o p = = = 1 5 , e . s t y l e . p o s i t i o n = e . s t y l e . t o p = " " , d . s t y l e . o v e r f l o w = " h i d d e n " , d . 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 u b t r a c t s B o r d e r F o r O v e r f l o w N o t V i s i b l e = e . o f f s e t T o p = = = - 5 , t h i s . d o e s N o t I n c l u d e M a r g i n I n B o d y O f f s e t = a . o f f s e t T o p ! = = i , a . r e m o v e C h i l d ( b ) , f . o f f s e t . i n i t i a l i z e = f . n o o p } , b o d y O f f s e t : f u n c t i o n ( a ) { v a r   b = a . o f f s e t T o p , c = a . o f f s e t L e f t ; f . o f f s e t . i n i t i a l i z e ( ) , f . o f f s e t . d o e s N o t I n c l u d e M a r g i n I n B o d y O f f s e t & & ( b + = p a r s e F l o a t ( f . c s s ( a , " m a r g i n T o p " ) ) | | 0 , c + = p a r s e F l o a t ( f . c s s ( a , " m a r g i n L e f t " ) ) | | 0 ) ; r e t u r n { t o p : b , l e f t : c } } , s e t O f f s e t : f u n c t i o n ( a , b , c ) { v a r   d = f . c s s ( a , " p o s i t i o n " ) ; d = = = " s t a t i c " & & ( a . s t y l e . p o s i t i o n = " r e l a t i v e " ) ; v a r   e = f ( a ) , g = e . o f f s e t ( ) , h = f . c s s ( a , " t o p " ) , i = f . c s s ( a , " l e f t " ) , j = ( d = = = " a b s o l u t e " | | d = = = " f i x e d " ) & & f . i n A r r a y ( " a u t o " , [ h , i ] ) > - 1 , k = { } , l = { } , m , n ; j ? ( l = e . p o s i t i o n ( ) , m = l . t o p , n = l . l e f t ) : ( m = p a r s e F l o a t ( h ) | | 0 , n = p a r s e F l o a t ( i ) | | 0 ) , f . i s F u n c t i o n ( b ) & & ( b = b . c a l l ( a , c , g ) ) , b . t o p ! = n u l l & & ( k . t o p = b . t o p - g . t o p + m ) , b . l e f t ! = n u l l & & ( k . l e f t = b . l e f t - g . l e f t + n ) , " u s i n g " i n   b ? b . u s i n g . c a l l ( a , k ) : e . c s s ( k ) } } , f . f n . e x t e n d ( { p o s i t i o n : f u n c t i o n ( ) { i f ( ! t h i s [ 0 ] ) r e t u r n   n u l l ; v a r   a = t h i s [ 0 ] , b = t h i s . o f f s e t P a r e n t ( ) , c = t h i s . o f f s e t ( ) , d = c x . t e s t ( b [ 0 ] . n o d e N a m e ) ? { t o p : 0 , l e f t : 0 } : b . o f f s e t ( ) ; c . t o p - = p a r s e F l o a t ( f . c s s ( a , " m a r g i n T o p " ) ) | | 0 , c . l e f t - = p a r s e F l o a t ( f . c s s ( a , " m a r g i n L e f t " ) ) | | 0 , d . t o p + = p a r s e F l o a t ( f . c s s ( b [ 0 ] , " b o r d e r T o p W i d t h " ) ) | | 0 , d . l e f t + = p a r s e F l o a t ( f . c s s ( b [ 0 ] , " b o r d e r L e f t W i d t h " ) ) | | 0 ; r e t u r n { t o p : c . t o p - d . t o p , l e f t : c . l e f t - d . l e f t } } , o f f s e t P a r e n t : f u n c t i o n ( ) { r e t u r n   t h i s . m a p ( f u n c t i o n ( ) { v a r   a = t h i s . o f f s e t P a r e n t | | c . b o d y ; w h i l e ( a & & ! c x . t e s t ( a . n o d e N a m e ) & & f . c s s ( a , " p o s i t i o n " ) = = = " s t a t i c " ) a = a . o f f s e t P a r e n t ; r e t u r n   a } ) } } ) , f . e a c h ( [ " L e f t " , " T o p " ] , f u n c t i o n ( a , c ) { v a r   d = " s c r o l l " + c ; f . f n [ d ] = f u n c t i o n ( c ) { v a r   e , g ; i f ( c = = = b ) { e = t h i s [ 0 ] ; i f ( ! e ) r e t u r n   n u l l ; g = c y ( e ) ; r e t u r n   g ? " p a g e X O f f s e t " i n   g ? g [ a ? " p a g e Y O f f s e t " : " p a g e X O f f s e t " ] : f . s u p p o r t . b o x M o d e l & & g . d o c u m e n t . d o c u m e n t E l e m e n t [ d ] | | g . d o c u m e n t . b o d y [ d ] : e [ d ] } r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { g = c y ( t h i s ) , g ? g . s c r o l l T o ( a ? f ( g ) . s c r o l l L e f t ( ) : c , a ? c : f ( g ) . s c r o l l T o p ( ) ) : t h i s [ d ] = c } ) } } ) , f . e a c h ( [ " H e i g h t " , " W i d t h " ] , f u n c t i o n ( a , c ) { v a r   d = c . t o L o w e r C a s e ( ) ; f . f n [ " i n n e r " + c ] = f u n c t i o n ( ) { r e t u r n   t h i s [ 0 ] ? p a r s e F l o a t ( f . c s s ( t h i s [ 0 ] , d , " p a d d i n g " ) ) : n u l l } , f . f n [ " o u t e r " + c ] = f u n c t i o n ( a ) { r e t u r n   t h i s [ 0 ] ? p a r s e F l o a t ( f . c s s ( t h i s [ 0 ] , d , a ? " m a r g i n " : " b o r d e r " ) ) : n u l l } , f . f n [ d ] = f u n c t i o n ( a ) { v a r   e = t h i s [ 0 ] ; i f ( ! e ) r e t u r n   a = = n u l l ? n u l l : t h i s ; i f ( f . i s F u n c t i o n ( a ) ) r e t u r n   t h i s . e a c h ( f u n c t i o n ( b ) { v a r   c = f ( t h i s ) ; c [ d ] ( a . c a l l ( t h i s , b , c [ d ] ( ) ) ) } ) ; i f ( f . i s W i n d o w ( e ) ) { v a r   g = e . d o c u m e n t . d o c u m e n t E l e m e n t [ " c l i e n t " + c ] ; r e t u r n   e . d o c u m e n t . c o m p a t M o d e = = = " C S S 1 C o m p a t " & & g | | e . d o c u m e n t . b o d y [ " c l i e n t " + c ] | | g } i f ( e . n o d e T y p e = = = 9 ) r e t u r n   M a t h . m a x ( e . d o c u m e n t E l e m e n t [ " c l i e n t " + c ] , e . b o d y [ " s c r o l l " + c ] , e . d o c u m e n t E l e m e n t [ " s c r o l l " + c ] , e . b o d y [ " o f f s e t " + c ] , e . d o c u m e n t E l e m e n t [ " o f f s e t " + c ] ) ; i f ( a = = = b ) { v a r   h = f . c s s ( e , d ) , i = p a r s e F l o a t ( h ) ; r e t u r n   f . i s N a N ( i ) ? h : i } r e t u r n   t h i s . c s s ( d , t y p e o f   a = = " s t r i n g " ? a : a + " p x " ) } } ) , a . j Q u e r y = a . $ = f } ) ( w i n d o w ) ; 
 / * ! 
   *   j Q u e r y   U I   1 . 8 . 1 3 
   * 
   *   C o p y r i g h t   2 0 1 1 ,   A U T H O R S . t x t   ( h t t p : / / j q u e r y u i . c o m / a b o u t ) 
   *   D u a l   l i c e n s e d   u n d e r   t h e   M I T   o r   G P L   V e r s i o n   2   l i c e n s e s . 
   *   h t t p : / / j q u e r y . o r g / l i c e n s e 
   * 
   *   h t t p : / / d o c s . j q u e r y . c o m / U I 
   * / 
 ( f u n c t i o n ( a , d ) { f u n c t i o n   c ( g , e ) { v a r   i = g . n o d e N a m e . t o L o w e r C a s e ( ) ; i f ( " a r e a " = = = i ) { e = g . p a r e n t N o d e ; i = e . n a m e ; i f ( ! g . h r e f | | ! i | | e . n o d e N a m e . t o L o w e r C a s e ( ) ! = = " m a p " ) r e t u r n   f a l s e ; g = a ( " i m g [ u s e m a p = # " + i + " ] " ) [ 0 ] ; r e t u r n ! ! g & & f ( g ) } r e t u r n ( / i n p u t | s e l e c t | t e x t a r e a | b u t t o n | o b j e c t / . t e s t ( i ) ? ! g . d i s a b l e d : " a " = = i ? g . h r e f | | e : e ) & & f ( g ) } f u n c t i o n   f ( g ) { r e t u r n ! a ( g ) . p a r e n t s ( ) . a n d S e l f ( ) . f i l t e r ( f u n c t i o n ( ) { r e t u r n   a . c u r C S S ( t h i s , " v i s i b i l i t y " ) = = = " h i d d e n " | | a . e x p r . f i l t e r s . h i d d e n ( t h i s ) } ) . l e n g t h } a . u i = a . u i | | { } ; i f ( ! a . u i . v e r s i o n ) { a . e x t e n d ( a . u i , { v e r s i o n : " 1 . 8 . 1 3 " , 
 k e y C o d e : { A L T : 1 8 , B A C K S P A C E : 8 , C A P S _ L O C K : 2 0 , C O M M A : 1 8 8 , C O M M A N D : 9 1 , C O M M A N D _ L E F T : 9 1 , C O M M A N D _ R I G H T : 9 3 , C O N T R O L : 1 7 , D E L E T E : 4 6 , D O W N : 4 0 , E N D : 3 5 , E N T E R : 1 3 , E S C A P E : 2 7 , H O M E : 3 6 , I N S E R T : 4 5 , L E F T : 3 7 , M E N U : 9 3 , N U M P A D _ A D D : 1 0 7 , N U M P A D _ D E C I M A L : 1 1 0 , N U M P A D _ D I V I D E : 1 1 1 , N U M P A D _ E N T E R : 1 0 8 , N U M P A D _ M U L T I P L Y : 1 0 6 , N U M P A D _ S U B T R A C T : 1 0 9 , P A G E _ D O W N : 3 4 , P A G E _ U P : 3 3 , P E R I O D : 1 9 0 , R I G H T : 3 9 , S H I F T : 1 6 , S P A C E : 3 2 , T A B : 9 , U P : 3 8 , W I N D O W S : 9 1 } } ) ; a . f n . e x t e n d ( { _ f o c u s : a . f n . f o c u s , f o c u s : f u n c t i o n ( g , e ) { r e t u r n   t y p e o f   g = = = " n u m b e r " ? t h i s . e a c h ( f u n c t i o n ( ) { v a r   i = t h i s ; s e t T i m e o u t ( f u n c t i o n ( ) { a ( i ) . f o c u s ( ) ; 
 e & & e . c a l l ( i ) } , g ) } ) : t h i s . _ f o c u s . a p p l y ( t h i s , a r g u m e n t s ) } , s c r o l l P a r e n t : f u n c t i o n ( ) { v a r   g ; g = a . b r o w s e r . m s i e & & / ( s t a t i c | r e l a t i v e ) / . t e s t ( t h i s . c s s ( " p o s i t i o n " ) ) | | / a b s o l u t e / . t e s t ( t h i s . c s s ( " p o s i t i o n " ) ) ? t h i s . p a r e n t s ( ) . f i l t e r ( f u n c t i o n ( ) { r e t u r n / ( r e l a t i v e | a b s o l u t e | f i x e d ) / . t e s t ( a . c u r C S S ( t h i s , " p o s i t i o n " , 1 ) ) & & / ( a u t o | s c r o l l ) / . t e s t ( a . c u r C S S ( t h i s , " o v e r f l o w " , 1 ) + a . c u r C S S ( t h i s , " o v e r f l o w - y " , 1 ) + a . c u r C S S ( t h i s , " o v e r f l o w - x " , 1 ) ) } ) . e q ( 0 ) : t h i s . p a r e n t s ( ) . f i l t e r ( f u n c t i o n ( ) { r e t u r n / ( a u t o | s c r o l l ) / . t e s t ( a . c u r C S S ( t h i s , " o v e r f l o w " , 1 ) + a . c u r C S S ( t h i s , 
 " o v e r f l o w - y " , 1 ) + a . c u r C S S ( t h i s , " o v e r f l o w - x " , 1 ) ) } ) . e q ( 0 ) ; r e t u r n / f i x e d / . t e s t ( t h i s . c s s ( " p o s i t i o n " ) ) | | ! g . l e n g t h ? a ( d o c u m e n t ) : g } , z I n d e x : f u n c t i o n ( g ) { i f ( g ! = = d ) r e t u r n   t h i s . c s s ( " z I n d e x " , g ) ; i f ( t h i s . l e n g t h ) { g = a ( t h i s [ 0 ] ) ; f o r ( v a r   e ; g . l e n g t h & & g [ 0 ] ! = = d o c u m e n t ; ) { e = g . c s s ( " p o s i t i o n " ) ; i f ( e = = = " a b s o l u t e " | | e = = = " r e l a t i v e " | | e = = = " f i x e d " ) { e = p a r s e I n t ( g . c s s ( " z I n d e x " ) , 1 0 ) ; i f ( ! i s N a N ( e ) & & e ! = = 0 ) r e t u r n   e } g = g . p a r e n t ( ) } } r e t u r n   0 } , d i s a b l e S e l e c t i o n : f u n c t i o n ( ) { r e t u r n   t h i s . b i n d ( ( a . s u p p o r t . s e l e c t s t a r t ? " s e l e c t s t a r t " : " m o u s e d o w n " ) + " . u i - d i s a b l e S e l e c t i o n " , 
 f u n c t i o n ( g ) { g . p r e v e n t D e f a u l t ( ) } ) } , e n a b l e S e l e c t i o n : f u n c t i o n ( ) { r e t u r n   t h i s . u n b i n d ( " . u i - d i s a b l e S e l e c t i o n " ) } } ) ; a . e a c h ( [ " W i d t h " , " H e i g h t " ] , f u n c t i o n ( g , e ) { f u n c t i o n   i ( l , o , n , k ) { a . e a c h ( b , f u n c t i o n ( ) { o - = p a r s e F l o a t ( a . c u r C S S ( l , " p a d d i n g " + t h i s , t r u e ) ) | | 0 ; i f ( n ) o - = p a r s e F l o a t ( a . c u r C S S ( l , " b o r d e r " + t h i s + " W i d t h " , t r u e ) ) | | 0 ; i f ( k ) o - = p a r s e F l o a t ( a . c u r C S S ( l , " m a r g i n " + t h i s , t r u e ) ) | | 0 } ) ; r e t u r n   o } v a r   b = e = = = " W i d t h " ? [ " L e f t " , " R i g h t " ] : [ " T o p " , " B o t t o m " ] , h = e . t o L o w e r C a s e ( ) , j = { i n n e r W i d t h : a . f n . i n n e r W i d t h , i n n e r H e i g h t : a . f n . i n n e r H e i g h t , o u t e r W i d t h : a . f n . o u t e r W i d t h , 
 o u t e r H e i g h t : a . f n . o u t e r H e i g h t } ; a . f n [ " i n n e r " + e ] = f u n c t i o n ( l ) { i f ( l = = = d ) r e t u r n   j [ " i n n e r " + e ] . c a l l ( t h i s ) ; r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { a ( t h i s ) . c s s ( h , i ( t h i s , l ) + " p x " ) } ) } ; a . f n [ " o u t e r " + e ] = f u n c t i o n ( l , o ) { i f ( t y p e o f   l ! = = " n u m b e r " ) r e t u r n   j [ " o u t e r " + e ] . c a l l ( t h i s , l ) ; r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { a ( t h i s ) . c s s ( h , i ( t h i s , l , t r u e , o ) + " p x " ) } ) } } ) ; a . e x t e n d ( a . e x p r [ " : " ] , { d a t a : f u n c t i o n ( g , e , i ) { r e t u r n ! ! a . d a t a ( g , i [ 3 ] ) } , f o c u s a b l e : f u n c t i o n ( g ) { r e t u r n   c ( g , ! i s N a N ( a . a t t r ( g , " t a b i n d e x " ) ) ) } , t a b b a b l e : f u n c t i o n ( g ) { v a r   e = a . a t t r ( g , " t a b i n d e x " ) , i = i s N a N ( e ) ; 
 r e t u r n ( i | | e > = 0 ) & & c ( g , ! i ) } } ) ; a ( f u n c t i o n ( ) { v a r   g = d o c u m e n t . b o d y , e = g . a p p e n d C h i l d ( 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 " ) ) ; a . e x t e n d ( e . s t y l e , { m i n H e i g h t : " 1 0 0 p x " , h e i g h t : " a u t o " , p a d d i n g : 0 , b o r d e r W i d t h : 0 } ) ; a . s u p p o r t . m i n H e i g h t = e . o f f s e t H e i g h t = = = 1 0 0 ; a . s u p p o r t . s e l e c t s t a r t = " o n s e l e c t s t a r t " i n   e ; g . r e m o v e C h i l d ( e ) . s t y l e . d i s p l a y = " n o n e " } ) ; a . e x t e n d ( a . u i , { p l u g i n : { a d d : f u n c t i o n ( g , e , i ) { g = a . u i [ g ] . p r o t o t y p e ; f o r ( v a r   b   i n   i ) { g . p l u g i n s [ b ] = g . p l u g i n s [ b ] | | [ ] ; g . p l u g i n s [ b ] . p u s h ( [ e , i [ b ] ] ) } } , c a l l : f u n c t i o n ( g , e , i ) { i f ( ( e = g . p l u g i n s [ e ] ) & & g . e l e m e n t [ 0 ] . p a r e n t N o d e ) f o r ( v a r   b = 
 0 ; b < e . l e n g t h ; b + + ) g . o p t i o n s [ e [ b ] [ 0 ] ] & & e [ b ] [ 1 ] . a p p l y ( g . e l e m e n t , i ) } } , c o n t a i n s : f u n c t i o n ( g , e ) { r e t u r n   d o c u m e n t . c o m p a r e D o c u m e n t P o s i t i o n ? g . c o m p a r e D o c u m e n t P o s i t i o n ( e ) & 1 6 : g ! = = e & & g . c o n t a i n s ( e ) } , h a s S c r o l l : f u n c t i o n ( g , e ) { i f ( a ( g ) . c s s ( " o v e r f l o w " ) = = = " h i d d e n " ) r e t u r n   f a l s e ; e = e & & e = = = " l e f t " ? " s c r o l l L e f t " : " s c r o l l T o p " ; v a r   i = f a l s e ; i f ( g [ e ] > 0 ) r e t u r n   t r u e ; g [ e ] = 1 ; i = g [ e ] > 0 ; g [ e ] = 0 ; r e t u r n   i } , i s O v e r A x i s : f u n c t i o n ( g , e , i ) { r e t u r n   g > e & & g < e + i } , i s O v e r : f u n c t i o n ( g , e , i , b , h , j ) { r e t u r n   a . u i . i s O v e r A x i s ( g , i , h ) & & a . u i . i s O v e r A x i s ( e , b , j ) } } ) } } ) ( j Q u e r y ) ; 
 ( f u n c t i o n ( a , d ) { i f ( a . c l e a n D a t a ) { v a r   c = a . c l e a n D a t a ; a . c l e a n D a t a = f u n c t i o n ( g ) { f o r ( v a r   e = 0 , i ; ( i = g [ e ] ) ! = n u l l ; e + + ) a ( i ) . t r i g g e r H a n d l e r ( " r e m o v e " ) ; c ( g ) } } e l s e { v a r   f = a . f n . r e m o v e ; a . f n . r e m o v e = f u n c t i o n ( g , e ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { i f ( ! e ) i f ( ! g | | a . f i l t e r ( g , [ t h i s ] ) . l e n g t h ) a ( " * " , t h i s ) . a d d ( [ t h i s ] ) . e a c h ( f u n c t i o n ( ) { a ( t h i s ) . t r i g g e r H a n d l e r ( " r e m o v e " ) } ) ; r e t u r n   f . c a l l ( a ( t h i s ) , g , e ) } ) } } a . w i d g e t = f u n c t i o n ( g , e , i ) { v a r   b = g . s p l i t ( " . " ) [ 0 ] , h ; g = g . s p l i t ( " . " ) [ 1 ] ; h = b + " - " + g ; i f ( ! i ) { i = e ; e = a . W i d g e t } a . e x p r [ " : " ] [ h ] = f u n c t i o n ( j ) { r e t u r n ! ! a . d a t a ( j , 
 g ) } ; a [ b ] = a [ b ] | | { } ; a [ b ] [ g ] = f u n c t i o n ( j , l ) { a r g u m e n t s . l e n g t h & & t h i s . _ c r e a t e W i d g e t ( j , l ) } ; e = n e w   e ; e . o p t i o n s = a . e x t e n d ( t r u e , { } , e . o p t i o n s ) ; a [ b ] [ g ] . p r o t o t y p e = a . e x t e n d ( t r u e , e , { n a m e s p a c e : b , w i d g e t N a m e : g , w i d g e t E v e n t P r e f i x : a [ b ] [ g ] . p r o t o t y p e . w i d g e t E v e n t P r e f i x | | g , w i d g e t B a s e C l a s s : h } , i ) ; a . w i d g e t . b r i d g e ( g , a [ b ] [ g ] ) } ; a . w i d g e t . b r i d g e = f u n c t i o n ( g , e ) { a . f n [ g ] = f u n c t i o n ( i ) { v a r   b = t y p e o f   i = = = " s t r i n g " , h = A r r a y . p r o t o t y p e . s l i c e . c a l l ( a r g u m e n t s , 1 ) , j = t h i s ; i = ! b & & h . l e n g t h ? a . e x t e n d . a p p l y ( n u l l , [ t r u e , i ] . c o n c a t ( h ) ) : i ; i f ( b & & i . c h a r A t ( 0 ) = = = " _ " ) r e t u r n   j ; 
 b ? t h i s . e a c h ( f u n c t i o n ( ) { v a r   l = a . d a t a ( t h i s , g ) , o = l & & a . i s F u n c t i o n ( l [ i ] ) ? l [ i ] . a p p l y ( l , h ) : l ; i f ( o ! = = l & & o ! = = d ) { j = o ; r e t u r n   f a l s e } } ) : t h i s . e a c h ( f u n c t i o n ( ) { v a r   l = a . d a t a ( t h i s , g ) ; l ? l . o p t i o n ( i | | { } ) . _ i n i t ( ) : a . d a t a ( t h i s , g , n e w   e ( i , t h i s ) ) } ) ; r e t u r n   j } } ; a . W i d g e t = f u n c t i o n ( g , e ) { a r g u m e n t s . l e n g t h & & t h i s . _ c r e a t e W i d g e t ( g , e ) } ; a . W i d g e t . p r o t o t y p e = { w i d g e t N a m e : " w i d g e t " , w i d g e t E v e n t P r e f i x : " " , o p t i o n s : { d i s a b l e d : f a l s e } , _ c r e a t e W i d g e t : f u n c t i o n ( g , e ) { a . d a t a ( e , t h i s . w i d g e t N a m e , t h i s ) ; t h i s . e l e m e n t = a ( e ) ; t h i s . o p t i o n s = a . e x t e n d ( t r u e , { } , t h i s . o p t i o n s , 
 t h i s . _ g e t C r e a t e O p t i o n s ( ) , g ) ; v a r   i = t h i s ; t h i s . e l e m e n t . b i n d ( " r e m o v e . " + t h i s . w i d g e t N a m e , f u n c t i o n ( ) { i . d e s t r o y ( ) } ) ; t h i s . _ c r e a t e ( ) ; t h i s . _ t r i g g e r ( " c r e a t e " ) ; t h i s . _ i n i t ( ) } , _ g e t C r e a t e O p t i o n s : f u n c t i o n ( ) { r e t u r n   a . m e t a d a t a & & a . m e t a d a t a . g e t ( t h i s . e l e m e n t [ 0 ] ) [ t h i s . w i d g e t N a m e ] } , _ c r e a t e : f u n c t i o n ( ) { } , _ i n i t : f u n c t i o n ( ) { } , d e s t r o y : f u n c t i o n ( ) { t h i s . e l e m e n t . u n b i n d ( " . " + t h i s . w i d g e t N a m e ) . r e m o v e D a t a ( t h i s . w i d g e t N a m e ) ; t h i s . w i d g e t ( ) . u n b i n d ( " . " + t h i s . w i d g e t N a m e ) . r e m o v e A t t r ( " a r i a - d i s a b l e d " ) . r e m o v e C l a s s ( t h i s . w i d g e t B a s e C l a s s + " - d i s a b l e d   u i - s t a t e - d i s a b l e d " ) } , 
 w i d g e 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 } , o p t i o n : f u n c t i o n ( g , e ) { v a r   i = g ; i f ( a r g u m e n t s . l e n g t h = = = 0 ) r e t u r n   a . e x t e n d ( { } , t h i s . o p t i o n s ) ; i f ( t y p e o f   g = = = " s t r i n g " ) { i f ( e = = = d ) r e t u r n   t h i s . o p t i o n s [ g ] ; i = { } ; i [ g ] = e } t h i s . _ s e t O p t i o n s ( i ) ; r e t u r n   t h i s } , _ s e t O p t i o n s : f u n c t i o n ( g ) { v a r   e = t h i s ; a . e a c h ( g , f u n c t i o n ( i , b ) { e . _ s e t O p t i o n ( i , b ) } ) ; r e t u r n   t h i s } , _ s e t O p t i o n : f u n c t i o n ( g , e ) { t h i s . o p t i o n s [ g ] = e ; i f ( g = = = " d i s a b l e d " ) t h i s . w i d g e t ( ) [ e ? " a d d C l a s s " : " r e m o v e C l a s s " ] ( t h i s . w i d g e t B a s e C l a s s + " - d i s a b l e d   u i - s t a t e - d i s a b l e d " ) . a t t r ( " a r i a - d i s a b l e d " , e ) ; r e t u r n   t h i s } , 
 e n a b l e : f u n c t i o n ( ) { r e t u r n   t h i s . _ s e t O p t i o n ( " d i s a b l e d " , f a l s e ) } , d i s a b l e : f u n c t i o n ( ) { r e t u r n   t h i s . _ s e t O p t i o n ( " d i s a b l e d " , t r u e ) } , _ t r i g g e r : f u n c t i o n ( g , e , i ) { v a r   b = t h i s . o p t i o n s [ g ] ; e = a . E v e n t ( e ) ; e . t y p e = ( g = = = t h i s . w i d g e t E v e n t P r e f i x ? g : t h i s . w i d g e t E v e n t P r e f i x + g ) . t o L o w e r C a s e ( ) ; i = i | | { } ; i f ( e . o r i g i n a l E v e n t ) { g = a . e v e n t . p r o p s . l e n g t h ; f o r ( v a r   h ; g ; ) { h = a . e v e n t . p r o p s [ - - g ] ; e [ h ] = e . o r i g i n a l E v e n t [ h ] } } t h i s . e l e m e n t . t r i g g e r ( e , i ) ; r e t u r n ! ( a . i s F u n c t i o n ( b ) & & b . c a l l ( t h i s . e l e m e n t [ 0 ] , e , i ) = = = f a l s e | | e . i s D e f a u l t P r e v e n t e d ( ) ) } } } ) ( j Q u e r y ) ; 
 ( f u n c t i o n ( a ) { v a r   d = f a l s e ; a ( d o c u m e n t ) . m o u s e d o w n ( f u n c t i o n ( ) { d = f a l s e } ) ; a . w i d g e t ( " u i . m o u s e " , { o p t i o n s : { c a n c e l : " : i n p u t , o p t i o n " , d i s t a n c e : 1 , d e l a y : 0 } , _ m o u s e I n i t : f u n c t i o n ( ) { v a r   c = t h i s ; t h i s . e l e m e n t . b i n d ( " m o u s e d o w n . " + t h i s . w i d g e t N a m e , f u n c t i o n ( f ) { r e t u r n   c . _ m o u s e D o w n ( f ) } ) . b i n d ( " c l i c k . " + t h i s . w i d g e t N a m e , f u n c t i o n ( f ) { i f ( t r u e = = = a . d a t a ( f . t a r g e t , c . w i d g e t N a m e + " . p r e v e n t C l i c k E v e n t " ) ) { a . r e m o v e D a t a ( f . t a r g e t , c . w i d g e t N a m e + " . p r e v e n t C l i c k E v e n t " ) ; f . s t o p I m m e d i a t e P r o p a g a t i o n ( ) ; r e t u r n   f a l s e } } ) ; t h i s . s t a r t e d = f a l s e } , _ m o u s e D e s t r o y : f u n c t i o n ( ) { t h i s . e l e m e n t . u n b i n d ( " . " + 
 t h i s . w i d g e t N a m e ) } , _ m o u s e D o w n : f u n c t i o n ( c ) { i f ( ! d ) { t h i s . _ m o u s e S t a r t e d & & t h i s . _ m o u s e U p ( c ) ; t h i s . _ m o u s e D o w n E v e n t = c ; v a r   f = t h i s , g = c . w h i c h = = 1 , e = t y p e o f   t h i s . o p t i o n s . c a n c e l = = " s t r i n g " ? a ( c . t a r g e t ) . p a r e n t s ( ) . a d d ( c . t a r g e t ) . f i l t e r ( t h i s . o p t i o n s . c a n c e l ) . l e n g t h : f a l s e ; i f ( ! g | | e | | ! t h i s . _ m o u s e C a p t u r e ( c ) ) r e t u r n   t r u e ; t h i s . m o u s e D e l a y M e t = ! t h i s . o p t i o n s . d e l a y ; i f ( ! t h i s . m o u s e D e l a y M e t ) t h i s . _ m o u s e D e l a y T i m e r = s e t T i m e o u t ( f u n c t i o n ( ) { f . m o u s e D e l a y M e t = t r u e } , t h i s . o p t i o n s . d e l a y ) ; i f ( t h i s . _ m o u s e D i s t a n c e M e t ( c ) & & t h i s . _ m o u s e D e l a y M e t ( c ) ) { t h i s . _ m o u s e S t a r t e d = 
 t h i s . _ m o u s e S t a r t ( c ) ! = = f a l s e ; i f ( ! t h i s . _ m o u s e S t a r t e d ) { c . p r e v e n t D e f a u l t ( ) ; r e t u r n   t r u e } } t r u e = = = a . d a t a ( c . t a r g e t , t h i s . w i d g e t N a m e + " . p r e v e n t C l i c k E v e n t " ) & & a . r e m o v e D a t a ( c . t a r g e t , t h i s . w i d g e t N a m e + " . p r e v e n t C l i c k E v e n t " ) ; t h i s . _ m o u s e M o v e D e l e g a t e = f u n c t i o n ( i ) { r e t u r n   f . _ m o u s e M o v e ( i ) } ; t h i s . _ m o u s e U p D e l e g a t e = f u n c t i o n ( i ) { r e t u r n   f . _ m o u s e U p ( i ) } ; a ( d o c u m e n t ) . b i n d ( " m o u s e m o v e . " + t h i s . w i d g e t N a m e , t h i s . _ m o u s e M o v e D e l e g a t e ) . b i n d ( " m o u s e u p . " + t h i s . w i d g e t N a m e , t h i s . _ m o u s e U p D e l e g a t e ) ; c . p r e v e n t D e f a u l t ( ) ; r e t u r n   d = t r u e } } , _ m o u s e M o v e : f u n c t i o n ( c ) { i f ( a . b r o w s e r . m s i e & & 
 ! ( d o c u m e n t . d o c u m e n t M o d e > = 9 ) & & ! c . b u t t o n ) r e t u r n   t h i s . _ m o u s e U p ( c ) ; i f ( t h i s . _ m o u s e S t a r t e d ) { t h i s . _ m o u s e D r a g ( c ) ; r e t u r n   c . p r e v e n t D e f a u l t ( ) } i f ( t h i s . _ m o u s e D i s t a n c e M e t ( c ) & & t h i s . _ m o u s e D e l a y M e t ( c ) ) ( t h i s . _ m o u s e S t a r t e d = t h i s . _ m o u s e S t a r t ( t h i s . _ m o u s e D o w n E v e n t , c ) ! = = f a l s e ) ? t h i s . _ m o u s e D r a g ( c ) : t h i s . _ m o u s e U p ( c ) ; r e t u r n ! t h i s . _ m o u s e S t a r t e d } , _ m o u s e U p : f u n c t i o n ( c ) { a ( d o c u m e n t ) . u n b i n d ( " m o u s e m o v e . " + t h i s . w i d g e t N a m e , t h i s . _ m o u s e M o v e D e l e g a t e ) . u n b i n d ( " m o u s e u p . " + t h i s . w i d g e t N a m e , t h i s . _ m o u s e U p D e l e g a t e ) ; i f ( t h i s . _ m o u s e S t a r t e d ) { t h i s . _ m o u s e S t a r t e d = 
 f a l s e ; c . t a r g e t = = t h i s . _ m o u s e D o w n E v e n t . t a r g e t & & a . d a t a ( c . t a r g e t , t h i s . w i d g e t N a m e + " . p r e v e n t C l i c k E v e n t " , t r u e ) ; t h i s . _ m o u s e S t o p ( c ) } r e t u r n   f a l s e } , _ m o u s e D i s t a n c e M e t : f u n c t i o n ( c ) { r e t u r n   M a t h . m a x ( M a t h . a b s ( t h i s . _ m o u s e D o w n E v e n t . p a g e X - c . p a g e X ) , M a t h . a b s ( t h i s . _ m o u s e D o w n E v e n t . p a g e Y - c . p a g e Y ) ) > = t h i s . o p t i o n s . d i s t a n c e } , _ m o u s e D e l a y M e t : f u n c t i o n ( ) { r e t u r n   t h i s . m o u s e D e l a y M e t } , _ m o u s e S t a r t : f u n c t i o n ( ) { } , _ m o u s e D r a g : f u n c t i o n ( ) { } , _ m o u s e S t o p : f u n c t i o n ( ) { } , _ m o u s e C a p t u r e : f u n c t i o n ( ) { r e t u r n   t r u e } } ) } ) ( j Q u e r y ) ; 
 ( f u n c t i o n ( a ) { a . w i d g e t ( " u i . d r a g g a b l e " , a . u i . m o u s e , { w i d g e t E v e n t P r e f i x : " d r a g " , o p t i o n s : { a d d C l a s s e s : t r u e , a p p e n d T o : " p a r e n t " , a x i s : f a l s e , c o n n e c t T o S o r t a b l e : f a l s e , c o n t a i n m e n t : f a l s e , c u r s o r : " a u t o " , c u r s o r A t : f a l s e , g r i d : f a l s e , h a n d l e : f a l s e , h e l p e r : " o r i g i n a l " , i f r a m e F i x : f a l s e , o p a c i t y : f a l s e , r e f r e s h P o s i t i o n s : f a l s e , r e v e r t : f a l s e , r e v e r t D u r a t i o n : 5 0 0 , s c o p e : " d e f a u l t " , s c r o l l : t r u e , s c r o l l S e n s i t i v i t y : 2 0 , s c r o l l S p e e d : 2 0 , s n a p : f a l s e , s n a p M o d e : " b o t h " , s n a p T o l e r a n c e : 2 0 , s t a c k : f a l s e , z I n d e x : f a l s e } , _ c r e a t e : f u n c t i o n ( ) { i f ( t h i s . o p t i o n s . h e l p e r = = 
 " o r i g i n a l " & & ! / ^ ( ? : r | a | f ) / . t e s t ( t h i s . e l e m e n t . c s s ( " p o s i t i o n " ) ) ) t h i s . e l e m e n t [ 0 ] . 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 . o p t i o n s . a d d C l a s s e s & & t h i s . e l e m e n t . a d d C l a s s ( " u i - d r a g g a b l e " ) ; t h i s . o p t i o n s . d i s a b l e d & & t h i s . e l e m e n t . a d d C l a s s ( " u i - d r a g g a b l e - d i s a b l e d " ) ; t h i s . _ m o u s e I n i t ( ) } , d e s t r o y : f u n c t i o n ( ) { i f ( t h i s . e l e m e n t . d a t a ( " d r a g g a b l e " ) ) { t h i s . e l e m e n t . r e m o v e D a t a ( " d r a g g a b l e " ) . u n b i n d ( " . d r a g g a b l e " ) . r e m o v e C l a s s ( " u i - d r a g g a b l e   u i - d r a g g a b l e - d r a g g i n g   u i - d r a g g a b l e - d i s a b l e d " ) ; t h i s . _ m o u s e D e s t r o y ( ) ; r e t u r n   t h i s } } , _ m o u s e C a p t u r e : f u n c t i o n ( d ) { v a r   c = 
 t h i s . o p t i o n s ; i f ( t h i s . h e l p e r | | c . d i s a b l e d | | a ( d . t a r g e t ) . i s ( " . u i - r e s i z a b l e - h a n d l e " ) ) r e t u r n   f a l s e ; t h i s . h a n d l e = t h i s . _ g e t H a n d l e ( d ) ; i f ( ! t h i s . h a n d l e ) r e t u r n   f a l s e ; a ( c . i f r a m e F i x = = = t r u e ? " i f r a m e " : c . i f r a m e F i x ) . e a c h ( f u n c t i o n ( ) { a ( ' < d i v   c l a s s = " u i - d r a g g a b l e - i f r a m e F i x "   s t y l e = " b a c k g r o u n d :   # f f f ; " > < / d i v > ' ) . c s s ( { w i d t h : t h i s . o f f s e t W i d t h + " p x " , h e i g h t : t h i s . o f f s e t H e i g h t + " p x " , p o s i t i o n : " a b s o l u t e " , o p a c i t y : " 0 . 0 0 1 " , z I n d e x : 1 E 3 } ) . c s s ( a ( t h i s ) . o f f s e t ( ) ) . a p p e n d T o ( " b o d y " ) } ) ; r e t u r n   t r u e } , _ m o u s e S t a r t : f u n c t i o n ( d ) { v a r   c = t h i s . o p t i o n s ; t h i s . h e l p e r = 
 t h i s . _ c r e a t e H e l p e r ( d ) ; t h i s . _ c a c h e H e l p e r P r o p o r t i o n s ( ) ; i f ( a . u i . d d m a n a g e r ) a . u i . d d m a n a g e r . c u r r e n t = t h i s ; t h i s . _ c a c h e M a r g i n s ( ) ; t h i s . c s s P o s i t i o n = t h i s . h e l p e r . c s s ( " p o s i t i o n " ) ; t h i s . s c r o l l P a r e n t = t h i s . h e l p e r . s c r o l l P a r e n t ( ) ; t h i s . o f f s e t = t h i s . p o s i t i o n A b s = t h i s . e l e m e n t . o f f s e t ( ) ; t h i s . o f f s e t = { t o p : t h i s . o f f s e t . t o p - t h i s . m a r g i n s . t o p , l e f t : t h i s . o f f s e t . l e f t - t h i s . m a r g i n s . l e f t } ; a . e x t e n d ( t h i s . o f f s e t , { c l i c k : { l e f t : d . p a g e X - t h i s . o f f s e t . l e f t , t o p : d . p a g e Y - t h i s . o f f s e t . t o p } , p a r e n t : t h i s . _ g e t P a r e n t O f f s e t ( ) , r e l a t i v e : t h i s . _ g e t R e l a t i v e O f f s e t ( ) } ) ; 
 t h i s . o r i g i n a l P o s i t i o n = t h i s . p o s i t i o n = t h i s . _ g e n e r a t e P o s i t i o n ( d ) ; t h i s . o r i g i n a l P a g e X = d . p a g e X ; t h i s . o r i g i n a l P a g e Y = d . p a g e Y ; c . c u r s o r A t & & t h i s . _ a d j u s t O f f s e t F r o m H e l p e r ( c . c u r s o r A t ) ; c . c o n t a i n m e n t & & t h i s . _ s e t C o n t a i n m e n t ( ) ; i f ( t h i s . _ t r i g g e r ( " s t a r t " , d ) = = = f a l s e ) { t h i s . _ c l e a r ( ) ; r e t u r n   f a l s e } t h i s . _ c a c h e H e l p e r P r o p o r t i o n s ( ) ; a . u i . d d m a n a g e r & & ! c . d r o p B e h a v i o u r & & a . u i . d d m a n a g e r . p r e p a r e O f f s e t s ( t h i s , d ) ; t h i s . h e l p e r . a d d C l a s s ( " u i - d r a g g a b l e - d r a g g i n g " ) ; t h i s . _ m o u s e D r a g ( d , t r u e ) ; r e t u r n   t r u e } , _ m o u s e D r a g : f u n c t i o n ( d , c ) { t h i s . p o s i t i o n = t h i s . _ g e n e r a t e P o s i t i o n ( d ) ; 
 t h i s . p o s i t i o n A b s = t h i s . _ c o n v e r t P o s i t i o n T o ( " a b s o l u t e " ) ; i f ( ! c ) { c = t h i s . _ u i H a s h ( ) ; i f ( t h i s . _ t r i g g e r ( " d r a g " , d , c ) = = = f a l s e ) { t h i s . _ m o u s e U p ( { } ) ; r e t u r n   f a l s e } t h i s . p o s i t i o n = c . p o s i t i o n } i f ( ! t h i s . o p t i o n s . a x i s | | t h i s . o p t i o n s . a x i s ! = " y " ) t h i s . h e l p e r [ 0 ] . s t y l e . l e f t = t h i s . p o s i t i o n . l e f t + " p x " ; i f ( ! t h i s . o p t i o n s . a x i s | | t h i s . o p t i o n s . a x i s ! = " x " ) t h i s . h e l p e r [ 0 ] . s t y l e . t o p = t h i s . p o s i t i o n . t o p + " p x " ; a . u i . d d m a n a g e r & & a . u i . d d m a n a g e r . d r a g ( t h i s , d ) ; r e t u r n   f a l s e } , _ m o u s e S t o p : f u n c t i o n ( d ) { v a r   c = f a l s e ; i f ( a . u i . d d m a n a g e r & & ! t h i s . o p t i o n s . d r o p B e h a v i o u r ) c = 
 a . u i . d d m a n a g e r . d r o p ( t h i s , d ) ; i f ( t h i s . d r o p p e d ) { c = t h i s . d r o p p e d ; t h i s . d r o p p e d = f a l s e } i f ( ( ! t h i s . e l e m e n t [ 0 ] | | ! t h i s . e l e m e n t [ 0 ] . p a r e n t N o d e ) & & t h i s . o p t i o n s . h e l p e r = = " o r i g i n a l " ) r e t u r n   f a l s e ; i f ( t h i s . o p t i o n s . r e v e r t = = " i n v a l i d " & & ! c | | t h i s . o p t i o n s . r e v e r t = = " v a l i d " & & c | | t h i s . o p t i o n s . r e v e r t = = = t r u e | | a . i s F u n c t i o n ( t h i s . o p t i o n s . r e v e r t ) & & t h i s . o p t i o n s . r e v e r t . c a l l ( t h i s . e l e m e n t , c ) ) { v a r   f = t h i s ; a ( t h i s . h e l p e r ) . a n i m a t e ( t h i s . o r i g i n a l P o s i t i o n , p a r s e I n t ( t h i s . o p t i o n s . r e v e r t D u r a t i o n , 1 0 ) , f u n c t i o n ( ) { f . _ t r i g g e r ( " s t o p " , d ) ! = = f a l s e & & f . _ c l e a r ( ) } ) } e l s e   t h i s . _ t r i g g e r ( " s t o p " , 
 d ) ! = = f a l s e & & t h i s . _ c l e a r ( ) ; r e t u r n   f a l s e } , _ m o u s e U p : f u n c t i o n ( d ) { t h i s . o p t i o n s . i f r a m e F i x = = = t r u e & & a ( " d i v . u i - d r a g g a b l e - i f r a m e F i x " ) . e a c h ( f u n c t i o n ( ) { 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 ) } ) ; r e t u r n   a . u i . m o u s e . p r o t o t y p e . _ m o u s e U p . c a l l ( t h i s , d ) } , c a n c e l : f u n c t i o n ( ) { t h i s . h e l p e r . i s ( " . u i - d r a g g a b l e - d r a g g i n g " ) ? t h i s . _ m o u s e U p ( { } ) : t h i s . _ c l e a r ( ) ; r e t u r n   t h i s } , _ g e t H a n d l e : f u n c t i o n ( d ) { v a r   c = ! t h i s . o p t i o n s . h a n d l e | | ! a ( 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 ) . l e n g t h ? t r u e : f a l s e ; a ( 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 ) . f i n d ( " * " ) . a n d S e l f ( ) . e a c h ( f u n c t i o n ( ) { i f ( t h i s = = 
 d . t a r g e t ) c = t r u e } ) ; r e t u r n   c } , _ c r e a t e H e l p e r : f u n c t i o n ( d ) { v a r   c = t h i s . o p t i o n s ; d = a . i s F u n c t i o n ( c . h e l p e r ) ? a ( c . h e l p e r . a p p l y ( t h i s . e l e m e n t [ 0 ] , [ d ] ) ) : c . h e l p e r = = " c l o n e " ? t h i s . e l e m e n t . c l o n e ( ) . r e m o v e A t t r ( " i d " ) : t h i s . e l e m e n t ; d . p a r e n t s ( " b o d y " ) . l e n g t h | | d . a p p e n d T o ( c . a p p e n d T o = = " p a r e n t " ? t h i s . e l e m e n t [ 0 ] . p a r e n t N o d e : c . a p p e n d T o ) ; d [ 0 ] ! = t h i s . e l e m e n t [ 0 ] & & ! / ( f i x e d | a b s o l u t e ) / . t e s t ( d . c s s ( " p o s i t i o n " ) ) & & d . c s s ( " p o s i t i o n " , " a b s o l u t e " ) ; r e t u r n   d } , _ a d j u s t O f f s e t F r o m H e l p e r : f u n c t i o n ( d ) { i f ( t y p e o f   d = = " s t r i n g " ) d = d . s p l i t ( "   " ) ; i f ( a . i s A r r a y ( d ) ) d = 
 { l e f t : + d [ 0 ] , t o p : + d [ 1 ] | | 0 } ; i f ( " l e f t " i n   d ) t h i s . o f f s e t . c l i c k . l e f t = d . l e f t + t h i s . m a r g i n s . l e f t ; i f ( " r i g h t " i n   d ) t h i s . o f f s e t . c l i c k . l e f t = t h i s . h e l p e r P r o p o r t i o n s . w i d t h - d . r i g h t + t h i s . m a r g i n s . l e f t ; i f ( " t o p " i n   d ) t h i s . o f f s e t . c l i c k . t o p = d . t o p + t h i s . m a r g i n s . t o p ; i f ( " b o t t o m " i n   d ) t h i s . o f f s e t . c l i c k . t o p = t h i s . h e l p e r P r o p o r t i o n s . h e i g h t - d . b o t t o m + t h i s . m a r g i n s . t o p } , _ g e t P a r e n t O f f s e t : f u n c t i o n ( ) { t h i s . o f f s e t P a r e n t = t h i s . h e l p e r . o f f s e t P a r e n t ( ) ; v a r   d = t h i s . o f f s e t P a r e n t . o f f s e t ( ) ; i f ( t h i s . c s s P o s i t i o n = = " a b s o l u t e " & & t h i s . s c r o l l P a r e n t [ 0 ] ! = d o c u m e n t & & 
 a . u i . c o n t a i n s ( t h i s . s c r o l l P a r e n t [ 0 ] , t h i s . o f f s e t P a r e n t [ 0 ] ) ) { d . l e f t + = t h i s . s c r o l l P a r e n t . s c r o l l L e f t ( ) ; d . t o p + = t h i s . s c r o l l P a r e n t . s c r o l l T o p ( ) } i f ( t h i s . o f f s e t P a r e n t [ 0 ] = = d o c u m e n t . b o d y | | t h i s . o f f s e t P a r e n t [ 0 ] . t a g N a m e & & t h i s . o f f s e t P a r e n t [ 0 ] . t a g N a m e . t o L o w e r C a s e ( ) = = " h t m l " & & a . b r o w s e r . m s i e ) d = { t o p : 0 , l e f t : 0 } ; r e t u r n { t o p : d . t o p + ( p a r s e I n t ( t h i s . o f f s e t P a r e n t . c s s ( " b o r d e r T o p W i d t h " ) , 1 0 ) | | 0 ) , l e f t : d . l e f t + ( p a r s e I n t ( t h i s . o f f s e t P a r e n t . c s s ( " b o r d e r L e f t W i d t h " ) , 1 0 ) | | 0 ) } } , _ g e t R e l a t i v e O f f s e t : f u n c t i o n ( ) { i f ( t h i s . c s s P o s i t i o n = = " r e l a t i v e " ) { v a r   d = 
 t h i s . e l e m e n t . p o s i t i o n ( ) ; r e t u r n { t o p : d . t o p - ( p a r s e I n t ( t h i s . h e l p e r . c s s ( " t o p " ) , 1 0 ) | | 0 ) + t h i s . s c r o l l P a r e n t . s c r o l l T o p ( ) , l e f t : d . l e f t - ( p a r s e I n t ( t h i s . h e l p e r . c s s ( " l e f t " ) , 1 0 ) | | 0 ) + t h i s . s c r o l l P a r e n t . s c r o l l L e f t ( ) } } e l s e   r e t u r n { t o p : 0 , l e f t : 0 } } , _ c a c h e M a r g i n s : f u n c t i o n ( ) { t h i s . m a r g i n s = { l e f t : p a r s e I n t ( t h i s . e l e m e n t . c s s ( " m a r g i n L e f t " ) , 1 0 ) | | 0 , t o p : p a r s e I n t ( t h i s . e l e m e n t . c s s ( " m a r g i n T o p " ) , 1 0 ) | | 0 , r i g h t : p a r s e I n t ( t h i s . e l e m e n t . c s s ( " m a r g i n R i g h t " ) , 1 0 ) | | 0 , b o t t o m : p a r s e I n t ( t h i s . e l e m e n t . c s s ( " m a r g i n B o t t o m " ) , 1 0 ) | | 0 } } , _ c a c h e H e l p e r P r o p o r t i o n s : f u n c t i o n ( ) { t h i s . h e l p e r P r o p o r t i o n s = 
 { w i d t h : t h i s . h e l p e r . o u t e r W i d t h ( ) , h e i g h t : t h i s . h e l p e r . o u t e r H e i g h t ( ) } } , _ s e t C o n t a i n m e n t : f u n c t i o n ( ) { v a r   d = t h i s . o p t i o n s ; i f ( d . c o n t a i n m e n t = = " p a r e n t " ) d . c o n t a i n m e n t = t h i s . h e l p e r [ 0 ] . p a r e n t N o d e ; i f ( d . c o n t a i n m e n t = = " d o c u m e n t " | | d . c o n t a i n m e n t = = " w i n d o w " ) t h i s . c o n t a i n m e n t = [ ( d . c o n t a i n m e n t = = " d o c u m e n t " ? 0 : a ( w i n d o w ) . s c r o l l L e f t ( ) ) - t h i s . o f f s e t . r e l a t i v e . l e f t - t h i s . o f f s e t . p a r e n t . l e f t , ( d . c o n t a i n m e n t = = " d o c u m e n t " ? 0 : a ( w i n d o w ) . s c r o l l T o p ( ) ) - t h i s . o f f s e t . r e l a t i v e . t o p - t h i s . o f f s e t . p a r e n t . t o p , ( d . c o n t a i n m e n t = = " d o c u m e n t " ? 0 : a ( w i n d o w ) . s c r o l l L e f t ( ) ) + 
 a ( d . c o n t a i n m e n t = = " d o c u m e n t " ? d o c u m e n t : w i n d o w ) . w i d t h ( ) - t h i s . h e l p e r P r o p o r t i o n s . w i d t h - t h i s . m a r g i n s . l e f t , ( d . c o n t a i n m e n t = = " d o c u m e n t " ? 0 : a ( w i n d o w ) . s c r o l l T o p ( ) ) + ( a ( d . c o n t a i n m e n t = = " d o c u m e n t " ? d o c u m e n t : w i n d o w ) . h e i g h t ( ) | | d o c u m e n t . b o d y . p a r e n t N o d e . s c r o l l H e i g h t ) - t h i s . h e l p e r P r o p o r t i o n s . h e i g h t - t h i s . m a r g i n s . t o p ] ; i f ( ! / ^ ( d o c u m e n t | w i n d o w | p a r e n t ) $ / . t e s t ( d . c o n t a i n m e n t ) & & d . c o n t a i n m e n t . c o n s t r u c t o r ! = A r r a y ) { d = a ( d . c o n t a i n m e n t ) ; v a r   c = d [ 0 ] ; i f ( c ) { d . o f f s e t ( ) ; v a r   f = a ( c ) . c s s ( " o v e r f l o w " ) ! = " h i d d e n " ; t h i s . c o n t a i n m e n t = [ ( p a r s e I n t ( a ( c ) . c s s ( " b o r d e r L e f t W i d t h " ) , 
 1 0 ) | | 0 ) + ( p a r s e I n t ( a ( c ) . c s s ( " p a d d i n g L e f t " ) , 1 0 ) | | 0 ) , ( p a r s e I n t ( a ( c ) . c s s ( " b o r d e r T o p W i d t h " ) , 1 0 ) | | 0 ) + ( p a r s e I n t ( a ( c ) . c s s ( " p a d d i n g T o p " ) , 1 0 ) | | 0 ) , ( f ? M a t h . m a x ( c . s c r o l l W i d t h , c . o f f s e t W i d t h ) : c . o f f s e t W i d t h ) - ( p a r s e I n t ( a ( c ) . c s s ( " b o r d e r L e f t W i d t h " ) , 1 0 ) | | 0 ) - ( p a r s e I n t ( a ( c ) . c s s ( " p a d d i n g R i g h t " ) , 1 0 ) | | 0 ) - t h i s . h e l p e r P r o p o r t i o n s . w i d t h - t h i s . m a r g i n s . l e f t - t h i s . m a r g i n s . r i g h t , ( f ? M a t h . m a x ( c . s c r o l l H e i g h t , c . o f f s e t H e i g h t ) : c . o f f s e t H e i g h t ) - ( p a r s e I n t ( a ( c ) . c s s ( " b o r d e r T o p W i d t h " ) , 1 0 ) | | 0 ) - ( p a r s e I n t ( a ( c ) . c s s ( " p a d d i n g B o t t o m " ) , 1 0 ) | | 0 ) - t h i s . h e l p e r P r o p o r t i o n s . h e i g h t - 
 t h i s . m a r g i n s . t o p - t h i s . m a r g i n s . b o t t o m ] ; t h i s . r e l a t i v e _ c o n t a i n e r = d } } e l s e   i f ( d . c o n t a i n m e n t . c o n s t r u c t o r = = A r r a y ) t h i s . c o n t a i n m e n t = d . c o n t a i n m e n t } , _ c o n v e r t P o s i t i o n T o : f u n c t i o n ( d , c ) { i f ( ! c ) c = t h i s . p o s i t i o n ; d = d = = " a b s o l u t e " ? 1 : - 1 ; v a r   f = t h i s . c s s P o s i t i o n = = " a b s o l u t e " & & ! ( t h i s . s c r o l l P a r e n t [ 0 ] ! = d o c u m e n t & & a . u i . c o n t a i n s ( t h i s . s c r o l l P a r e n t [ 0 ] , t h i s . o f f s e t P a r e n t [ 0 ] ) ) ? t h i s . o f f s e t P a r e n t : t h i s . s c r o l l P a r e n t , g = / ( h t m l | b o d y ) / i . t e s t ( f [ 0 ] . t a g N a m e ) ; r e t u r n { t o p : c . t o p + t h i s . o f f s e t . r e l a t i v e . t o p * d + t h i s . o f f s e t . p a r e n t . t o p * d - ( a . b r o w s e r . s a f a r i & & 
 a . b r o w s e r . v e r s i o n < 5 2 6 & & t h i s . c s s P o s i t i o n = = " f i x e d " ? 0 : ( t h i s . c s s P o s i t i o n = = " f i x e d " ? - t h i s . s c r o l l P a r e n t . s c r o l l T o p ( ) : g ? 0 : f . s c r o l l T o p ( ) ) * d ) , l e f t : c . l e f t + t h i s . o f f s e t . r e l a t i v e . l e f t * d + t h i s . o f f s e t . p a r e n t . l e f t * d - ( a . b r o w s e r . s a f a r i & & a . b r o w s e r . v e r s i o n < 5 2 6 & & t h i s . c s s P o s i t i o n = = " f i x e d " ? 0 : ( t h i s . c s s P o s i t i o n = = " f i x e d " ? - t h i s . s c r o l l P a r e n t . s c r o l l L e f t ( ) : g ? 0 : f . s c r o l l L e f t ( ) ) * d ) } } , _ g e n e r a t e P o s i t i o n : f u n c t i o n ( d ) { v a r   c = t h i s . o p t i o n s , f = t h i s . c s s P o s i t i o n = = " a b s o l u t e " & & ! ( t h i s . s c r o l l P a r e n t [ 0 ] ! = d o c u m e n t & & a . u i . c o n t a i n s ( t h i s . s c r o l l P a r e n t [ 0 ] , 
 t h i s . o f f s e t P a r e n t [ 0 ] ) ) ? t h i s . o f f s e t P a r e n t : t h i s . s c r o l l P a r e n t , g = / ( h t m l | b o d y ) / i . t e s t ( f [ 0 ] . t a g N a m e ) , e = d . p a g e X , i = d . p a g e Y ; i f ( t h i s . o r i g i n a l P o s i t i o n ) { v a r   b ; i f ( t h i s . c o n t a i n m e n t ) { i f ( t h i s . r e l a t i v e _ c o n t a i n e r ) { b = t h i s . r e l a t i v e _ c o n t a i n e r . o f f s e t ( ) ; b = [ t h i s . c o n t a i n m e n t [ 0 ] + b . l e f t , t h i s . c o n t a i n m e n t [ 1 ] + b . t o p , t h i s . c o n t a i n m e n t [ 2 ] + b . l e f t , t h i s . c o n t a i n m e n t [ 3 ] + b . t o p ] } e l s e   b = t h i s . c o n t a i n m e n t ; i f ( d . p a g e X - t h i s . o f f s e t . c l i c k . l e f t < b [ 0 ] ) e = b [ 0 ] + t h i s . o f f s e t . c l i c k . l e f t ; i f ( d . p a g e Y - t h i s . o f f s e t . c l i c k . t o p < b [ 1 ] ) i = b [ 1 ] + t h i s . o f f s e t . c l i c k . t o p ; 
 i f ( d . p a g e X - t h i s . o f f s e t . c l i c k . l e f t > b [ 2 ] ) e = b [ 2 ] + t h i s . o f f s e t . c l i c k . l e f t ; i f ( d . p a g e Y - t h i s . o f f s e t . c l i c k . t o p > b [ 3 ] ) i = b [ 3 ] + t h i s . o f f s e t . c l i c k . t o p } i f ( c . g r i d ) { i = t h i s . o r i g i n a l P a g e Y + M a t h . r o u n d ( ( i - t h i s . o r i g i n a l P a g e Y ) / c . g r i d [ 1 ] ) * c . g r i d [ 1 ] ; i = b ? ! ( i - t h i s . o f f s e t . c l i c k . t o p < b [ 1 ] | | i - t h i s . o f f s e t . c l i c k . t o p > b [ 3 ] ) ? i : ! ( i - t h i s . o f f s e t . c l i c k . t o p < b [ 1 ] ) ? i - c . g r i d [ 1 ] : i + c . g r i d [ 1 ] : i ; e = t h i s . o r i g i n a l P a g e X + M a t h . r o u n d ( ( e - t h i s . o r i g i n a l P a g e X ) / c . g r i d [ 0 ] ) * c . g r i d [ 0 ] ; e = b ? ! ( e - t h i s . o f f s e t . c l i c k . l e f t < b [ 0 ] | | e - t h i s . o f f s e t . c l i c k . l e f t > b [ 2 ] ) ? e : ! ( e - t h i s . o f f s e t . c l i c k . l e f t < 
 b [ 0 ] ) ? e - c . g r i d [ 0 ] : e + c . g r i d [ 0 ] : e } } r e t u r n { t o p : i - t h i s . o f f s e t . c l i c k . t o p - t h i s . o f f s e t . r e l a t i v e . t o p - t h i s . o f f s e t . p a r e n t . t o p + ( a . b r o w s e r . s a f a r i & & a . b r o w s e r . v e r s i o n < 5 2 6 & & t h i s . c s s P o s i t i o n = = " f i x e d " ? 0 : t h i s . c s s P o s i t i o n = = " f i x e d " ? - t h i s . s c r o l l P a r e n t . s c r o l l T o p ( ) : g ? 0 : f . s c r o l l T o p ( ) ) , l e f t : e - t h i s . o f f s e t . c l i c k . l e f t - t h i s . o f f s e t . r e l a t i v e . l e f t - t h i s . o f f s e t . p a r e n t . l e f t + ( a . b r o w s e r . s a f a r i & & a . b r o w s e r . v e r s i o n < 5 2 6 & & t h i s . c s s P o s i t i o n = = " f i x e d " ? 0 : t h i s . c s s P o s i t i o n = = " f i x e d " ? - t h i s . s c r o l l P a r e n t . s c r o l l L e f t ( ) : g ? 0 : f . s c r o l l L e f t ( ) ) } } , _ c l e a r : f u n c t i o n ( ) { t h i s . h e l p e r . r e m o v e C l a s s ( " u i - d r a g g a b l e - d r a g g i n g " ) ; 
 t h i s . h e l p e r [ 0 ] ! = t h i s . e l e m e n t [ 0 ] & & ! t h i s . c a n c e l H e l p e r R e m o v a l & & t h i s . h e l p e r . r e m o v e ( ) ; t h i s . h e l p e r = n u l l ; t h i s . c a n c e l H e l p e r R e m o v a l = f a l s e } , _ t r i g g e r : f u n c t i o n ( d , c , f ) { f = f | | t h i s . _ u i H a s h ( ) ; a . u i . p l u g i n . c a l l ( t h i s , d , [ c , f ] ) ; i f ( d = = " d r a g " ) t h i s . p o s i t i o n A b s = t h i s . _ c o n v e r t P o s i t i o n T o ( " a b s o l u t e " ) ; r e t u r n   a . W i d g e t . p r o t o t y p e . _ t r i g g e r . c a l l ( t h i s , d , c , f ) } , p l u g i n s : { } , _ u i H a s h : f u n c t i o n ( ) { r e t u r n { h e l p e r : t h i s . h e l p e r , p o s i t i o n : t h i s . p o s i t i o n , o r i g i n a l P o s i t i o n : t h i s . o r i g i n a l P o s i t i o n , o f f s e t : t h i s . p o s i t i o n A b s } } } ) ; a . e x t e n d ( a . u i . d r a g g a b l e , { v e r s i o n : " 1 . 8 . 1 3 " } ) ; 
 a . u i . p l u g i n . a d d ( " d r a g g a b l e " , " c o n n e c t T o S o r t a b l e " , { s t a r t : f u n c t i o n ( d , c ) { v a r   f = a ( t h i s ) . d a t a ( " d r a g g a b l e " ) , g = f . o p t i o n s , e = a . e x t e n d ( { } , c , { i t e m : f . e l e m e n t } ) ; f . s o r t a b l e s = [ ] ; a ( g . c o n n e c t T o S o r t a b l e ) . e a c h ( f u n c t i o n ( ) { v a r   i = a . d a t a ( t h i s , " s o r t a b l e " ) ; i f ( i & & ! i . o p t i o n s . d i s a b l e d ) { f . s o r t a b l e s . p u s h ( { i n s t a n c e : i , s h o u l d R e v e r t : i . o p t i o n s . r e v e r t } ) ; i . r e f r e s h P o s i t i o n s ( ) ; i . _ t r i g g e r ( " a c t i v a t e " , d , e ) } } ) } , s t o p : f u n c t i o n ( d , c ) { v a r   f = a ( t h i s ) . d a t a ( " d r a g g a b l e " ) , g = a . e x t e n d ( { } , c , { i t e m : f . e l e m e n t } ) ; a . e a c h ( f . s o r t a b l e s , f u n c t i o n ( ) { i f ( t h i s . i n s t a n c e . i s O v e r ) { t h i s . i n s t a n c e . i s O v e r = 
 0 ; f . c a n c e l H e l p e r R e m o v a l = t r u e ; t h i s . i n s t a n c e . c a n c e l H e l p e r R e m o v a l = f a l s e ; i f ( t h i s . s h o u l d R e v e r t ) t h i s . i n s t a n c e . o p t i o n s . r e v e r t = t r u e ; t h i s . i n s t a n c e . _ m o u s e S t o p ( d ) ; t h i s . i n s t a n c e . o p t i o n s . h e l p e r = t h i s . i n s t a n c e . o p t i o n s . _ h e l p e r ; f . o p t i o n s . h e l p e r = = " o r i g i n a l " & & t h i s . i n s t a n c e . c u r r e n t I t e m . c s s ( { t o p : " a u t o " , l e f t : " a u t o " } ) } e l s e { t h i s . i n s t a n c e . c a n c e l H e l p e r R e m o v a l = f a l s e ; t h i s . i n s t a n c e . _ t r i g g e r ( " d e a c t i v a t e " , d , g ) } } ) } , d r a g : f u n c t i o n ( d , c ) { v a r   f = a ( t h i s ) . d a t a ( " d r a g g a b l e " ) , g = t h i s ; a . e a c h ( f . s o r t a b l e s , f u n c t i o n ( ) { t h i s . i n s t a n c e . p o s i t i o n A b s = 
 f . p o s i t i o n A b s ; t h i s . i n s t a n c e . h e l p e r P r o p o r t i o n s = f . h e l p e r P r o p o r t i o n s ; t h i s . i n s t a n c e . o f f s e t . c l i c k = f . o f f s e t . c l i c k ; i f ( t h i s . i n s t a n c e . _ i n t e r s e c t s W i t h ( t h i s . i n s t a n c e . c o n t a i n e r C a c h e ) ) { i f ( ! t h i s . i n s t a n c e . i s O v e r ) { t h i s . i n s t a n c e . i s O v e r = 1 ; t h i s . i n s t a n c e . c u r r e n t I t e m = a ( g ) . c l o n e ( ) . r e m o v e A t t r ( " i d " ) . a p p e n d T o ( t h i s . i n s t a n c e . e l e m e n t ) . d a t a ( " s o r t a b l e - i t e m " , t r u e ) ; t h i s . i n s t a n c e . o p t i o n s . _ h e l p e r = t h i s . i n s t a n c e . o p t i o n s . h e l p e r ; t h i s . i n s t a n c e . o p t i o n s . h e l p e r = f u n c t i o n ( ) { r e t u r n   c . h e l p e r [ 0 ] } ; d . t a r g e t = t h i s . i n s t a n c e . c u r r e n t I t e m [ 0 ] ; t h i s . i n s t a n c e . _ m o u s e C a p t u r e ( d , 
 t r u e ) ; t h i s . i n s t a n c e . _ m o u s e S t a r t ( d , t r u e , t r u e ) ; t h i s . i n s t a n c e . o f f s e t . c l i c k . t o p = f . o f f s e t . c l i c k . t o p ; t h i s . i n s t a n c e . o f f s e t . c l i c k . l e f t = f . o f f s e t . c l i c k . l e f t ; t h i s . i n s t a n c e . o f f s e t . p a r e n t . l e f t - = f . o f f s e t . p a r e n t . l e f t - t h i s . i n s t a n c e . o f f s e t . p a r e n t . l e f t ; t h i s . i n s t a n c e . o f f s e t . p a r e n t . t o p - = f . o f f s e t . p a r e n t . t o p - t h i s . i n s t a n c e . o f f s e t . p a r e n t . t o p ; f . _ t r i g g e r ( " t o S o r t a b l e " , d ) ; f . d r o p p e d = t h i s . i n s t a n c e . e l e m e n t ; f . c u r r e n t I t e m = f . e l e m e n t ; t h i s . i n s t a n c e . f r o m O u t s i d e = f } t h i s . i n s t a n c e . c u r r e n t I t e m & & t h i s . i n s t a n c e . _ m o u s e D r a g ( d ) } e l s e   i f ( t h i s . i n s t a n c e . i s O v e r ) { t h i s . i n s t a n c e . i s O v e r = 
 0 ; t h i s . i n s t a n c e . c a n c e l H e l p e r R e m o v a l = t r u e ; t h i s . i n s t a n c e . o p t i o n s . r e v e r t = f a l s e ; t h i s . i n s t a n c e . _ t r i g g e r ( " o u t " , d , t h i s . i n s t a n c e . _ u i H a s h ( t h i s . i n s t a n c e ) ) ; t h i s . i n s t a n c e . _ m o u s e S t o p ( d , t r u e ) ; t h i s . i n s t a n c e . o p t i o n s . h e l p e r = t h i s . i n s t a n c e . o p t i o n s . _ h e l p e r ; t h i s . i n s t a n c e . c u r r e n t I t e m . r e m o v e ( ) ; t h i s . i n s t a n c e . p l a c e h o l d e r & & t h i s . i n s t a n c e . p l a c e h o l d e r . r e m o v e ( ) ; f . _ t r i g g e r ( " f r o m S o r t a b l e " , d ) ; f . d r o p p e d = f a l s e } } ) } } ) ; a . u i . p l u g i n . a d d ( " d r a g g a b l e " , " c u r s o r " , { s t a r t : f u n c t i o n ( ) { v a r   d = a ( " b o d y " ) , c = a ( t h i s ) . d a t a ( " d r a g g a b l e " ) . o p t i o n s ; i f ( d . c s s ( " c u r s o r " ) ) c . _ c u r s o r = 
 d . c s s ( " c u r s o r " ) ; d . c s s ( " c u r s o r " , c . c u r s o r ) } , s t o p : f u n c t i o n ( ) { v a r   d = a ( t h i s ) . d a t a ( " d r a g g a b l e " ) . o p t i o n s ; d . _ c u r s o r & & a ( " b o d y " ) . c s s ( " c u r s o r " , d . _ c u r s o r ) } } ) ; a . u i . p l u g i n . a d d ( " d r a g g a b l e " , " o p a c i t y " , { s t a r t : f u n c t i o n ( d , c ) { d = a ( c . h e l p e r ) ; c = a ( t h i s ) . d a t a ( " d r a g g a b l e " ) . o p t i o n s ; i f ( d . c s s ( " o p a c i t y " ) ) c . _ o p a c i t y = d . c s s ( " o p a c i t y " ) ; d . c s s ( " o p a c i t y " , c . o p a c i t y ) } , s t o p : f u n c t i o n ( d , c ) { d = a ( t h i s ) . d a t a ( " d r a g g a b l e " ) . o p t i o n s ; d . _ o p a c i t y & & a ( c . h e l p e r ) . c s s ( " o p a c i t y " , d . _ o p a c i t y ) } } ) ; a . u i . p l u g i n . a d d ( " d r a g g a b l e " , " s c r o l l " , { s t a r t : f u n c t i o n ( ) { v a r   d = a ( t h i s ) . d a t a ( " d r a g g a b l e " ) ; 
 i f ( d . s c r o l l P a r e n t [ 0 ] ! = d o c u m e n t & & d . s c r o l l P a r e n t [ 0 ] . t a g N a m e ! = " H T M L " ) d . o v e r f l o w O f f s e t = d . s c r o l l P a r e n t . o f f s e t ( ) } , d r a g : f u n c t i o n ( d ) { v a r   c = a ( t h i s ) . d a t a ( " d r a g g a b l e " ) , f = c . o p t i o n s , g = f a l s e ; i f ( c . s c r o l l P a r e n t [ 0 ] ! = d o c u m e n t & & c . s c r o l l P a r e n t [ 0 ] . t a g N a m e ! = " H T M L " ) { i f ( ! f . a x i s | | f . a x i s ! = " x " ) i f ( c . o v e r f l o w O f f s e t . t o p + c . s c r o l l P a r e n t [ 0 ] . o f f s e t H e i g h t - d . p a g e Y < f . s c r o l l S e n s i t i v i t y ) c . s c r o l l P a r e n t [ 0 ] . s c r o l l T o p = g = c . s c r o l l P a r e n t [ 0 ] . s c r o l l T o p + f . s c r o l l S p e e d ; e l s e   i f ( d . p a g e Y - c . o v e r f l o w O f f s e t . t o p < f . s c r o l l S e n s i t i v i t y ) c . s c r o l l P a r e n t [ 0 ] . s c r o l l T o p = 
 g = c . s c r o l l P a r e n t [ 0 ] . s c r o l l T o p - f . s c r o l l S p e e d ; i f ( ! f . a x i s | | f . a x i s ! = " y " ) i f ( c . o v e r f l o w O f f s e t . l e f t + c . s c r o l l P a r e n t [ 0 ] . o f f s e t W i d t h - d . p a g e X < f . s c r o l l S e n s i t i v i t y ) c . s c r o l l P a r e n t [ 0 ] . s c r o l l L e f t = g = c . s c r o l l P a r e n t [ 0 ] . s c r o l l L e f t + f . s c r o l l S p e e d ; e l s e   i f ( d . p a g e X - c . o v e r f l o w O f f s e t . l e f t < f . s c r o l l S e n s i t i v i t y ) c . s c r o l l P a r e n t [ 0 ] . s c r o l l L e f t = g = c . s c r o l l P a r e n t [ 0 ] . s c r o l l L e f t - f . s c r o l l S p e e d } e l s e { i f ( ! f . a x i s | | f . a x i s ! = " x " ) i f ( d . p a g e Y - a ( d o c u m e n t ) . s c r o l l T o p ( ) < f . s c r o l l S e n s i t i v i t y ) g = a ( d o c u m e n t ) . s c r o l l T o p ( a ( d o c u m e n t ) . s c r o l l T o p ( ) - f . s c r o l l S p e e d ) ; 
 e l s e   i f ( a ( w i n d o w ) . h e i g h t ( ) - ( d . p a g e Y - a ( d o c u m e n t ) . s c r o l l T o p ( ) ) < f . s c r o l l S e n s i t i v i t y ) g = a ( d o c u m e n t ) . s c r o l l T o p ( a ( d o c u m e n t ) . s c r o l l T o p ( ) + f . s c r o l l S p e e d ) ; i f ( ! f . a x i s | | f . a x i s ! = " y " ) i f ( d . p a g e X - a ( d o c u m e n t ) . s c r o l l L e f t ( ) < f . s c r o l l S e n s i t i v i t y ) g = a ( d o c u m e n t ) . s c r o l l L e f t ( a ( d o c u m e n t ) . s c r o l l L e f t ( ) - f . s c r o l l S p e e d ) ; e l s e   i f ( a ( w i n d o w ) . w i d t h ( ) - ( d . p a g e X - a ( d o c u m e n t ) . s c r o l l L e f t ( ) ) < f . s c r o l l S e n s i t i v i t y ) g = a ( d o c u m e n t ) . s c r o l l L e f t ( a ( d o c u m e n t ) . s c r o l l L e f t ( ) + f . s c r o l l S p e e d ) } g ! = = f a l s e & & a . u i . d d m a n a g e r & & ! f . d r o p B e h a v i o u r & & a . u i . d d m a n a g e r . p r e p a r e O f f s e t s ( c , 
 d ) } } ) ; a . u i . p l u g i n . a d d ( " d r a g g a b l e " , " s n a p " , { s t a r t : f u n c t i o n ( ) { v a r   d = a ( t h i s ) . d a t a ( " d r a g g a b l e " ) , c = d . o p t i o n s ; d . s n a p E l e m e n t s = [ ] ; a ( c . s n a p . c o n s t r u c t o r ! = S t r i n g ? c . s n a p . i t e m s | | " : d a t a ( d r a g g a b l e ) " : c . s n a p ) . e a c h ( f u n c t i o n ( ) { v a r   f = a ( t h i s ) , g = f . o f f s e t ( ) ; t h i s ! = d . e l e m e n t [ 0 ] & & d . s n a p E l e m e n t s . p u s h ( { i t e m : t h i s , w i d t h : f . o u t e r W i d t h ( ) , h e i g h t : f . o u t e r H e i g h t ( ) , t o p : g . t o p , l e f t : g . l e f t } ) } ) } , d r a g : f u n c t i o n ( d , c ) { f o r ( v a r   f = a ( t h i s ) . d a t a ( " d r a g g a b l e " ) , g = f . o p t i o n s , e = g . s n a p T o l e r a n c e , i = c . o f f s e t . l e f t , b = i + f . h e l p e r P r o p o r t i o n s . w i d t h , h = c . o f f s e t . t o p , 
 j = h + f . h e l p e r P r o p o r t i o n s . h e i g h t , l = f . s n a p E l e m e n t s . l e n g t h - 1 ; l > = 0 ; l - - ) { v a r   o = f . s n a p E l e m e n t s [ l ] . l e f t , n = o + f . s n a p E l e m e n t s [ l ] . w i d t h , k = f . s n a p E l e m e n t s [ l ] . t o p , m = k + f . s n a p E l e m e n t s [ l ] . h e i g h t ; i f ( o - e < i & & i < n + e & & k - e < h & & h < m + e | | o - e < i & & i < n + e & & k - e < j & & j < m + e | | o - e < b & & b < n + e & & k - e < h & & h < m + e | | o - e < b & & b < n + e & & k - e < j & & j < m + e ) { i f ( g . s n a p M o d e ! = " i n n e r " ) { v a r   p = M a t h . a b s ( k - j ) < = e , q = M a t h . a b s ( m - h ) < = e , s = M a t h . a b s ( o - b ) < = e , r = M a t h . a b s ( n - i ) < = e ; i f ( p ) c . p o s i t i o n . t o p = f . _ c o n v e r t P o s i t i o n T o ( " r e l a t i v e " , { t o p : k - f . h e l p e r P r o p o r t i o n s . h e i g h t , l e f t : 0 } ) . t o p - f . m a r g i n s . t o p ; 
 i f ( q ) c . p o s i t i o n . t o p = f . _ c o n v e r t P o s i t i o n T o ( " r e l a t i v e " , { t o p : m , l e f t : 0 } ) . t o p - f . m a r g i n s . t o p ; i f ( s ) c . p o s i t i o n . l e f t = f . _ c o n v e r t P o s i t i o n T o ( " r e l a t i v e " , { t o p : 0 , l e f t : o - f . h e l p e r P r o p o r t i o n s . w i d t h } ) . l e f t - f . m a r g i n s . l e f t ; i f ( r ) c . p o s i t i o n . l e f t = f . _ c o n v e r t P o s i t i o n T o ( " r e l a t i v e " , { t o p : 0 , l e f t : n } ) . l e f t - f . m a r g i n s . l e f t } v a r   u = p | | q | | s | | r ; i f ( g . s n a p M o d e ! = " o u t e r " ) { p = M a t h . a b s ( k - h ) < = e ; q = M a t h . a b s ( m - j ) < = e ; s = M a t h . a b s ( o - i ) < = e ; r = M a t h . a b s ( n - b ) < = e ; i f ( p ) c . p o s i t i o n . t o p = f . _ c o n v e r t P o s i t i o n T o ( " r e l a t i v e " , { t o p : k , l e f t : 0 } ) . t o p - f . m a r g i n s . t o p ; i f ( q ) c . p o s i t i o n . t o p = 
 f . _ c o n v e r t P o s i t i o n T o ( " r e l a t i v e " , { t o p : m - f . h e l p e r P r o p o r t i o n s . h e i g h t , l e f t : 0 } ) . t o p - f . m a r g i n s . t o p ; i f ( s ) c . p o s i t i o n . l e f t = f . _ c o n v e r t P o s i t i o n T o ( " r e l a t i v e " , { t o p : 0 , l e f t : o } ) . l e f t - f . m a r g i n s . l e f t ; i f ( r ) c . p o s i t i o n . l e f t = f . _ c o n v e r t P o s i t i o n T o ( " r e l a t i v e " , { t o p : 0 , l e f t : n - f . h e l p e r P r o p o r t i o n s . w i d t h } ) . l e f t - f . m a r g i n s . l e f t } i f ( ! f . s n a p E l e m e n t s [ l ] . s n a p p i n g & & ( p | | q | | s | | r | | u ) ) f . o p t i o n s . s n a p . s n a p & & f . o p t i o n s . s n a p . s n a p . c a l l ( f . e l e m e n t , d , a . e x t e n d ( f . _ u i H a s h ( ) , { s n a p I t e m : f . s n a p E l e m e n t s [ l ] . i t e m } ) ) ; f . s n a p E l e m e n t s [ l ] . s n a p p i n g = p | | q | | s | | r | | u } e l s e { f . s n a p E l e m e n t s [ l ] . s n a p p i n g & & 
 f . o p t i o n s . s n a p . r e l e a s e & & f . o p t i o n s . s n a p . r e l e a s e . c a l l ( f . e l e m e n t , d , a . e x t e n d ( f . _ u i H a s h ( ) , { s n a p I t e m : f . s n a p E l e m e n t s [ l ] . i t e m } ) ) ; f . s n a p E l e m e n t s [ l ] . s n a p p i n g = f a l s e } } } } ) ; a . u i . p l u g i n . a d d ( " d r a g g a b l e " , " s t a c k " , { s t a r t : f u n c t i o n ( ) { v a r   d = a ( t h i s ) . d a t a ( " d r a g g a b l e " ) . o p t i o n s ; d = a . m a k e A r r a y ( a ( d . s t a c k ) ) . s o r t ( f u n c t i o n ( f , g ) { r e t u r n ( p a r s e I n t ( a ( f ) . c s s ( " z I n d e x " ) , 1 0 ) | | 0 ) - ( p a r s e I n t ( a ( g ) . c s s ( " z I n d e x " ) , 1 0 ) | | 0 ) } ) ; i f ( d . l e n g t h ) { v a r   c = p a r s e I n t ( d [ 0 ] . s t y l e . z I n d e x ) | | 0 ; a ( d ) . e a c h ( f u n c t i o n ( f ) { t h i s . s t y l e . z I n d e x = c + f } ) ; t h i s [ 0 ] . s t y l e . z I n d e x = c + d . l e n g t h } } } ) ; 
 a . u i . p l u g i n . a d d ( " d r a g g a b l e " , " z I n d e x " , { s t a r t : f u n c t i o n ( d , c ) { d = a ( c . h e l p e r ) ; c = a ( t h i s ) . d a t a ( " d r a g g a b l e " ) . o p t i o n s ; i f ( d . c s s ( " z I n d e x " ) ) c . _ z I n d e x = d . c s s ( " z I n d e x " ) ; d . c s s ( " z I n d e x " , c . z I n d e x ) } , s t o p : f u n c t i o n ( d , c ) { d = a ( t h i s ) . d a t a ( " d r a g g a b l e " ) . o p t i o n s ; d . _ z I n d e x & & a ( c . h e l p e r ) . c s s ( " z I n d e x " , d . _ z I n d e x ) } } ) } ) ( j Q u e r y ) ; 
 ( f u n c t i o n ( a ) { a . w i d g e t ( " u i . d r o p p a b l e " , { w i d g e t E v e n t P r e f i x : " d r o p " , o p t i o n s : { a c c e p t : " * " , a c t i v e C l a s s : f a l s e , a d d C l a s s e s : t r u e , g r e e d y : f a l s e , h o v e r C l a s s : f a l s e , s c o p e : " d e f a u l t " , t o l e r a n c e : " i n t e r s e c t " } , _ c r e a t e : f u n c t i o n ( ) { v a r   d = t h i s . o p t i o n s , c = d . a c c e p t ; t h i s . i s o v e r = 0 ; t h i s . i s o u t = 1 ; t h i s . a c c e p t = a . i s F u n c t i o n ( c ) ? c : f u n c t i o n ( f ) { r e t u r n   f . i s ( c ) } ; t h i s . p r o p o r t i o n s = { w i d t h : t h i s . e l e m e n t [ 0 ] . o f f s e t W i d t h , h e i g h t : t h i s . e l e m e n t [ 0 ] . o f f s e t H e i g h t } ; a . u i . d d m a n a g e r . d r o p p a b l e s [ d . s c o p e ] = a . u i . d d m a n a g e r . d r o p p a b l e s [ d . s c o p e ] | | [ ] ; a . u i . d d m a n a g e r . d r o p p a b l e s [ d . s c o p e ] . p u s h ( t h i s ) ; 
 d . a d d C l a s s e s & & t h i s . e l e m e n t . a d d C l a s s ( " u i - d r o p p a b l e " ) } , d e s t r o y : f u n c t i o n ( ) { f o r ( v a r   d = a . u i . d d m a n a g e r . d r o p p a b l e s [ t h i s . o p t i o n s . s c o p e ] , c = 0 ; c < d . l e n g t h ; c + + ) d [ c ] = = t h i s & & d . s p l i c e ( c , 1 ) ; t h i s . e l e m e n t . r e m o v e C l a s s ( " u i - d r o p p a b l e   u i - d r o p p a b l e - d i s a b l e d " ) . r e m o v e D a t a ( " d r o p p a b l e " ) . u n b i n d ( " . d r o p p a b l e " ) ; r e t u r n   t h i s } , _ s e t O p t i o n : f u n c t i o n ( d , c ) { i f ( d = = " a c c e p t " ) t h i s . a c c e p t = a . i s F u n c t i o n ( c ) ? c : f u n c t i o n ( f ) { r e t u r n   f . i s ( c ) } ; a . W i d g e t . p r o t o t y p e . _ s e t O p t i o n . a p p l y ( t h i s , a r g u m e n t s ) } , _ a c t i v a t e : f u n c t i o n ( d ) { v a r   c = a . u i . d d m a n a g e r . c u r r e n t ; t h i s . o p t i o n s . a c t i v e C l a s s & & 
 t h i s . e l e m e n t . a d d C l a s s ( t h i s . o p t i o n s . a c t i v e C l a s s ) ; c & & t h i s . _ t r i g g e r ( " a c t i v a t e " , d , t h i s . u i ( c ) ) } , _ d e a c t i v a t e : f u n c t i o n ( d ) { v a r   c = a . u i . d d m a n a g e r . c u r r e n t ; t h i s . o p t i o n s . a c t i v e C l a s s & & t h i s . e l e m e n t . r e m o v e C l a s s ( t h i s . o p t i o n s . a c t i v e C l a s s ) ; c & & t h i s . _ t r i g g e r ( " d e a c t i v a t e " , d , t h i s . u i ( c ) ) } , _ o v e r : f u n c t i o n ( d ) { v a r   c = a . u i . d d m a n a g e r . c u r r e n t ; i f ( ! ( ! c | | ( c . c u r r e n t I t e m | | c . e l e m e n t ) [ 0 ] = = t h i s . e l e m e n t [ 0 ] ) ) i f ( t h i s . a c c e p t . c a l l ( t h i s . e l e m e n t [ 0 ] , c . c u r r e n t I t e m | | c . e l e m e n t ) ) { t h i s . o p t i o n s . h o v e r C l a s s & & t h i s . e l e m e n t . a d d C l a s s ( t h i s . o p t i o n s . h o v e r C l a s s ) ; 
 t h i s . _ t r i g g e r ( " o v e r " , d , t h i s . u i ( c ) ) } } , _ o u t : f u n c t i o n ( d ) { v a r   c = a . u i . d d m a n a g e r . c u r r e n t ; i f ( ! ( ! c | | ( c . c u r r e n t I t e m | | c . e l e m e n t ) [ 0 ] = = t h i s . e l e m e n t [ 0 ] ) ) i f ( t h i s . a c c e p t . c a l l ( t h i s . e l e m e n t [ 0 ] , c . c u r r e n t I t e m | | c . e l e m e n t ) ) { t h i s . o p t i o n s . h o v e r C l a s s & & t h i s . e l e m e n t . r e m o v e C l a s s ( t h i s . o p t i o n s . h o v e r C l a s s ) ; t h i s . _ t r i g g e r ( " o u t " , d , t h i s . u i ( c ) ) } } , _ d r o p : f u n c t i o n ( d , c ) { v a r   f = c | | a . u i . d d m a n a g e r . c u r r e n t ; i f ( ! f | | ( f . c u r r e n t I t e m | | f . e l e m e n t ) [ 0 ] = = t h i s . e l e m e n t [ 0 ] ) r e t u r n   f a l s e ; v a r   g = f a l s e ; t h i s . e l e m e n t . f i n d ( " : d a t a ( d r o p p a b l e ) " ) . n o t ( " . u i - d r a g g a b l e - d r a g g i n g " ) . e a c h ( f u n c t i o n ( ) { v a r   e = 
 a . d a t a ( t h i s , " d r o p p a b l e " ) ; i f ( e . o p t i o n s . g r e e d y & & ! e . o p t i o n s . d i s a b l e d & & e . o p t i o n s . s c o p e = = f . o p t i o n s . s c o p e & & e . a c c e p t . c a l l ( e . e l e m e n t [ 0 ] , f . c u r r e n t I t e m | | f . e l e m e n t ) & & a . u i . i n t e r s e c t ( f , a . e x t e n d ( e , { o f f s e t : e . e l e m e n t . o f f s e t ( ) } ) , e . o p t i o n s . t o l e r a n c e ) ) { g = t r u e ; r e t u r n   f a l s e } } ) ; i f ( g ) r e t u r n   f a l s e ; i f ( t h i s . a c c e p t . c a l l ( t h i s . e l e m e n t [ 0 ] , f . c u r r e n t I t e m | | f . e l e m e n t ) ) { t h i s . o p t i o n s . a c t i v e C l a s s & & t h i s . e l e m e n t . r e m o v e C l a s s ( t h i s . o p t i o n s . a c t i v e C l a s s ) ; t h i s . o p t i o n s . h o v e r C l a s s & & t h i s . e l e m e n t . r e m o v e C l a s s ( t h i s . o p t i o n s . h o v e r C l a s s ) ; t h i s . _ t r i g g e r ( " d r o p " , 
 d , t h i s . u i ( f ) ) ; r e t u r n   t h i s . e l e m e n t } r e t u r n   f a l s e } , u i : f u n c t i o n ( d ) { r e t u r n { d r a g g a b l e : d . c u r r e n t I t e m | | d . e l e m e n t , h e l p e r : d . h e l p e r , p o s i t i o n : d . p o s i t i o n , o f f s e t : d . p o s i t i o n A b s } } } ) ; a . e x t e n d ( a . u i . d r o p p a b l e , { v e r s i o n : " 1 . 8 . 1 3 " } ) ; a . u i . i n t e r s e c t = f u n c t i o n ( d , c , f ) { i f ( ! c . o f f s e t ) r e t u r n   f a l s e ; v a r   g = ( d . p o s i t i o n A b s | | d . p o s i t i o n . a b s o l u t e ) . l e f t , e = g + d . h e l p e r P r o p o r t i o n s . w i d t h , i = ( d . p o s i t i o n A b s | | d . p o s i t i o n . a b s o l u t e ) . t o p , b = i + d . h e l p e r P r o p o r t i o n s . h e i g h t , h = c . o f f s e t . l e f t , j = h + c . p r o p o r t i o n s . w i d t h , l = c . o f f s e t . t o p , o = l + c . p r o p o r t i o n s . h e i g h t ; 
 s w i t c h ( f ) { c a s e   " f i t " : r e t u r n   h < = g & & e < = j & & l < = i & & b < = o ; c a s e   " i n t e r s e c t " : r e t u r n   h < g + d . h e l p e r P r o p o r t i o n s . w i d t h / 2 & & e - d . h e l p e r P r o p o r t i o n s . w i d t h / 2 < j & & l < i + d . h e l p e r P r o p o r t i o n s . h e i g h t / 2 & & b - d . h e l p e r P r o p o r t i o n s . h e i g h t / 2 < o ; c a s e   " p o i n t e r " : r e t u r n   a . u i . i s O v e r ( ( d . p o s i t i o n A b s | | d . p o s i t i o n . a b s o l u t e ) . t o p + ( d . c l i c k O f f s e t | | d . o f f s e t . c l i c k ) . t o p , ( d . p o s i t i o n A b s | | d . p o s i t i o n . a b s o l u t e ) . l e f t + ( d . c l i c k O f f s e t | | d . o f f s e t . c l i c k ) . l e f t , l , h , c . p r o p o r t i o n s . h e i g h t , c . p r o p o r t i o n s . w i d t h ) ; c a s e   " t o u c h " : r e t u r n ( i > = l & & i < = o | | b > = l & & b < = o | | i < l & & b > o ) & & ( g > = 
 h & & g < = j | | e > = h & & e < = j | | g < h & & e > j ) ; d e f a u l t : r e t u r n   f a l s e } } ; a . u i . d d m a n a g e r = { c u r r e n t : n u l l , d r o p p a b l e s : { " d e f a u l t " : [ ] } , p r e p a r e O f f s e t s : f u n c t i o n ( d , c ) { v a r   f = a . u i . d d m a n a g e r . d r o p p a b l e s [ d . o p t i o n s . s c o p e ] | | [ ] , g = c ? c . t y p e : n u l l , e = ( d . c u r r e n t I t e m | | d . e l e m e n t ) . f i n d ( " : d a t a ( d r o p p a b l e ) " ) . a n d S e l f ( ) , i = 0 ; a : f o r ( ; i < f . l e n g t h ; i + + ) i f ( ! ( f [ i ] . o p t i o n s . d i s a b l e d | | d & & ! f [ i ] . a c c e p t . c a l l ( f [ i ] . e l e m e n t [ 0 ] , d . c u r r e n t I t e m | | d . e l e m e n t ) ) ) { f o r ( v a r   b = 0 ; b < e . l e n g t h ; b + + ) i f ( e [ b ] = = f [ i ] . e l e m e n t [ 0 ] ) { f [ i ] . p r o p o r t i o n s . h e i g h t = 0 ; c o n t i n u e   a } f [ i ] . v i s i b l e = f [ i ] . e l e m e n t . c s s ( " d i s p l a y " ) ! = 
 " n o n e " ; i f ( f [ i ] . v i s i b l e ) { g = = " m o u s e d o w n " & & f [ i ] . _ a c t i v a t e . c a l l ( f [ i ] , c ) ; f [ i ] . o f f s e t = f [ i ] . e l e m e n t . o f f s e t ( ) ; f [ i ] . p r o p o r t i o n s = { w i d t h : f [ i ] . e l e m e n t [ 0 ] . o f f s e t W i d t h , h e i g h t : f [ i ] . e l e m e n t [ 0 ] . o f f s e t H e i g h t } } } } , d r o p : f u n c t i o n ( d , c ) { v a r   f = f a l s e ; a . e a c h ( a . u i . d d m a n a g e r . d r o p p a b l e s [ d . o p t i o n s . s c o p e ] | | [ ] , f u n c t i o n ( ) { i f ( t h i s . o p t i o n s ) { i f ( ! t h i s . o p t i o n s . d i s a b l e d & & t h i s . v i s i b l e & & a . u i . i n t e r s e c t ( d , t h i s , t h i s . o p t i o n s . t o l e r a n c e ) ) f = f | | t h i s . _ d r o p . c a l l ( t h i s , c ) ; i f ( ! t h i s . o p t i o n s . d i s a b l e d & & t h i s . v i s i b l e & & t h i s . a c c e p t . c a l l ( t h i s . e l e m e n t [ 0 ] , d . c u r r e n t I t e m | | 
 d . e l e m e n t ) ) { t h i s . i s o u t = 1 ; t h i s . i s o v e r = 0 ; t h i s . _ d e a c t i v a t e . c a l l ( t h i s , c ) } } } ) ; r e t u r n   f } , d r a g : f u n c t i o n ( d , c ) { d . o p t i o n s . r e f r e s h P o s i t i o n s & & a . u i . d d m a n a g e r . p r e p a r e O f f s e t s ( d , c ) ; a . e a c h ( a . u i . d d m a n a g e r . d r o p p a b l e s [ d . o p t i o n s . s c o p e ] | | [ ] , f u n c t i o n ( ) { i f ( ! ( t h i s . o p t i o n s . d i s a b l e d | | t h i s . g r e e d y C h i l d | | ! t h i s . v i s i b l e ) ) { v a r   f = a . u i . i n t e r s e c t ( d , t h i s , t h i s . o p t i o n s . t o l e r a n c e ) ; i f ( f = ! f & & t h i s . i s o v e r = = 1 ? " i s o u t " : f & & t h i s . i s o v e r = = 0 ? " i s o v e r " : n u l l ) { v a r   g ; i f ( t h i s . o p t i o n s . g r e e d y ) { v a r   e = t h i s . e l e m e n t . p a r e n t s ( " : d a t a ( d r o p p a b l e ) : e q ( 0 ) " ) ; i f ( e . l e n g t h ) { g = 
 a . d a t a ( e [ 0 ] , " d r o p p a b l e " ) ; g . g r e e d y C h i l d = f = = " i s o v e r " ? 1 : 0 } } i f ( g & & f = = " i s o v e r " ) { g . i s o v e r = 0 ; g . i s o u t = 1 ; g . _ o u t . c a l l ( g , c ) } t h i s [ f ] = 1 ; t h i s [ f = = " i s o u t " ? " i s o v e r " : " i s o u t " ] = 0 ; t h i s [ f = = " i s o v e r " ? " _ o v e r " : " _ o u t " ] . c a l l ( t h i s , c ) ; i f ( g & & f = = " i s o u t " ) { g . i s o u t = 0 ; g . i s o v e r = 1 ; g . _ o v e r . c a l l ( g , c ) } } } } ) } } } ) ( j Q u e r y ) ; 
 ( f u n c t i o n ( a ) { a . w i d g e t ( " u i . r e s i z a b l e " , a . u i . m o u s e , { w i d g e t E v e n t P r e f i x : " r e s i z e " , o p t i o n s : { a l s o R e s i z e : f a l s e , a n i m a t e : f a l s e , a n i m a t e D u r a t i o n : " s l o w " , a n i m a t e E a s i n g : " s w i n g " , a s p e c t R a t i o : f a l s e , a u t o H i d e : f a l s e , c o n t a i n m e n t : f a l s e , g h o s t : f a l s e , g r i d : f a l s e , h a n d l e s : " e , s , s e " , h e l p e r : f a l s e , m a x H e i g h t : n u l l , m a x W i d t h : n u l l , m i n H e i g h t : 1 0 , m i n W i d t h : 1 0 , z I n d e x : 1 E 3 } , _ c r e a t e : f u n c t i o n ( ) { v a r   f = t h i s , g = t h i s . o p t i o n s ; t h i s . e l e m e n t . a d d C l a s s ( " u i - r e s i z a b l e " ) ; a . e x t e n d ( t h i s , { _ a s p e c t R a t i o : ! ! g . a s p e c t R a t i o , a s p e c t R a t i o : g . a s p e c t R a t i o , o r i g i n a l E l e m e n t : t h i s . e l e m e n t , 
 _ p r o p o r t i o n a l l y R e s i z e E l e m e n t s : [ ] , _ h e l p e r : g . h e l p e r | | g . g h o s t | | g . a n i m a t e ? g . h e l p e r | | " u i - r e s i z a b l e - h e l p e r " : n u l l } ) ; i f ( t h i s . e l e m e n t [ 0 ] . n o d e N a m e . m a t c h ( / c a n v a s | t e x t a r e a | i n p u t | s e l e c t | b u t t o n | i m g / i ) ) { / r e l a t i v e / . t e s t ( t h i s . e l e m e n t . c s s ( " p o s i t i o n " ) ) & & a . b r o w s e r . o p e r a & & t h i s . e l e m e n t . c s s ( { p o s i t i o n : " r e l a t i v e " , t o p : " a u t o " , l e f t : " a u t o " } ) ; t h i s . e l e m e n t . w r a p ( a ( ' < d i v   c l a s s = " u i - w r a p p e r "   s t y l e = " o v e r f l o w :   h i d d e n ; " > < / d i v > ' ) . c s s ( { p o s i t i o n : t h i s . e l e m e n t . c s s ( " p o s i t i o n " ) , w i d t h : t h i s . e l e m e n t . o u t e r W i d t h ( ) , h e i g h t : t h i s . e l e m e n t . o u t e r H e i g h t ( ) , 
 t o p : t h i s . e l e m e n t . c s s ( " t o p " ) , l e f t : t h i s . e l e m e n t . c s s ( " l e f t " ) } ) ) ; t h i s . e l e m e n t = t h i s . e l e m e n t . p a r e n t ( ) . d a t a ( " r e s i z a b l e " , t h i s . e l e m e n t . d a t a ( " r e s i z a b l e " ) ) ; t h i s . e l e m e n t I s W r a p p e r = t r u e ; t h i s . e l e m e n t . c s s ( { m a r g i n L e f t : t h i s . o r i g i n a l E l e m e n t . c s s ( " m a r g i n L e f t " ) , m a r g i n T o p : t h i s . o r i g i n a l E l e m e n t . c s s ( " m a r g i n T o p " ) , m a r g i n R i g h t : t h i s . o r i g i n a l E l e m e n t . c s s ( " m a r g i n R i g h t " ) , m a r g i n B o t t o m : t h i s . o r i g i n a l E l e m e n t . c s s ( " m a r g i n B o t t o m " ) } ) ; t h i s . o r i g i n a l E l e m e n t . c s s ( { m a r g i n L e f t : 0 , m a r g i n T o p : 0 , m a r g i n R i g h t : 0 , m a r g i n B o t t o m : 0 } ) ; t h i s . o r i g i n a l R e s i z e S t y l e = 
 t h i s . o r i g i n a l E l e m e n t . c s s ( " r e s i z e " ) ; t h i s . o r i g i n a l E l e m e n t . c s s ( " r e s i z e " , " n o n e " ) ; t h i s . _ p r o p o r t i o n a l l y R e s i z e E l e m e n t s . p u s h ( t h i s . o r i g i n a l E l e m e n t . c s s ( { p o s i t i o n : " s t a t i c " , z o o m : 1 , d i s p l a y : " b l o c k " } ) ) ; t h i s . o r i g i n a l E l e m e n t . c s s ( { m a r g i n : t h i s . o r i g i n a l E l e m e n t . c s s ( " m a r g i n " ) } ) ; t h i s . _ p r o p o r t i o n a l l y R e s i z e ( ) } t h i s . h a n d l e s = g . h a n d l e s | | ( ! a ( " . u i - r e s i z a b l e - h a n d l e " , t h i s . e l e m e n t ) . l e n g t h ? " e , s , s e " : { n : " . u i - r e s i z a b l e - n " , e : " . u i - r e s i z a b l e - e " , s : " . u i - r e s i z a b l e - s " , w : " . u i - r e s i z a b l e - w " , s e : " . u i - r e s i z a b l e - s e " , s w : " . u i - r e s i z a b l e - s w " , n e : " . u i - r e s i z a b l e - n e " , 
 n w : " . u i - r e s i z a b l e - n w " } ) ; i f ( t h i s . h a n d l e s . c o n s t r u c t o r = = S t r i n g ) { i f ( t h i s . h a n d l e s = = " a l l " ) t h i s . h a n d l e s = " n , e , s , w , s e , s w , n e , n w " ; v a r   e = t h i s . h a n d l e s . s p l i t ( " , " ) ; t h i s . h a n d l e s = { } ; f o r ( v a r   i = 0 ; i < e . l e n g t h ; i + + ) { v a r   b = a . t r i m ( e [ i ] ) , h = a ( ' < d i v   c l a s s = " u i - r e s i z a b l e - h a n d l e   ' + ( " u i - r e s i z a b l e - " + b ) + ' " > < / d i v > ' ) ; / s w | s e | n e | n w / . t e s t ( b ) & & h . c s s ( { z I n d e x : + + g . z I n d e x } ) ; " s e " = = b & & h . a d d C l a s s ( " u i - i c o n   u i - i c o n - g r i p s m a l l - d i a g o n a l - s e " ) ; t h i s . h a n d l e s [ b ] = " . u i - r e s i z a b l e - " + b ; t h i s . e l e m e n t . a p p e n d ( h ) } } t h i s . _ r e n d e r A x i s = f u n c t i o n ( j ) { j = j | | t h i s . e l e m e n t ; f o r ( v a r   l   i n   t h i s . h a n d l e s ) { i f ( t h i s . h a n d l e s [ l ] . c o n s t r u c t o r = = 
 S t r i n g ) t h i s . h a n d l e s [ l ] = a ( t h i s . h a n d l e s [ l ] , t h i s . e l e m e n t ) . s h o w ( ) ; i f ( t h i s . e l e m e n t I s W r a p p e r & & t h i s . o r i g i n a l E l e m e n t [ 0 ] . n o d e N a m e . m a t c h ( / t e x t a r e a | i n p u t | s e l e c t | b u t t o n / i ) ) { v a r   o = a ( t h i s . h a n d l e s [ l ] , t h i s . e l e m e n t ) , n = 0 ; n = / s w | n e | n w | s e | n | s / . t e s t ( l ) ? o . o u t e r H e i g h t ( ) : o . o u t e r W i d t h ( ) ; o = [ " p a d d i n g " , / n e | n w | n / . t e s t ( l ) ? " T o p " : / s e | s w | s / . t e s t ( l ) ? " B o t t o m " : / ^ e $ / . t e s t ( l ) ? " R i g h t " : " L e f t " ] . j o i n ( " " ) ; j . c s s ( o , n ) ; t h i s . _ p r o p o r t i o n a l l y R e s i z e ( ) } a ( t h i s . h a n d l e s [ l ] ) } } ; t h i s . _ r e n d e r A x i s ( t h i s . e l e m e n t ) ; t h i s . _ h a n d l e s = a ( " . u i - r e s i z a b l e - h a n d l e " , t h i s . e l e m e n t ) . d i s a b l e S e l e c t i o n ( ) ; 
 t h i s . _ h a n d l e s . m o u s e o v e r ( f u n c t i o n ( ) { i f ( ! f . r e s i z i n g ) { i f ( t h i s . c l a s s N a m e ) v a r   j = t h i s . c l a s s N a m e . m a t c h ( / u i - r e s i z a b l e - ( s e | s w | n e | n w | n | e | s | w ) / i ) ; f . a x i s = j & & j [ 1 ] ? j [ 1 ] : " s e " } } ) ; i f ( g . a u t o H i d e ) { t h i s . _ h a n d l e s . h i d e ( ) ; a ( t h i s . e l e m e n t ) . a d d C l a s s ( " u i - r e s i z a b l e - a u t o h i d e " ) . h o v e r ( f u n c t i o n ( ) { i f ( ! g . d i s a b l e d ) { a ( t h i s ) . r e m o v e C l a s s ( " u i - r e s i z a b l e - a u t o h i d e " ) ; f . _ h a n d l e s . s h o w ( ) } } , f u n c t i o n ( ) { i f ( ! g . d i s a b l e d ) i f ( ! f . r e s i z i n g ) { a ( t h i s ) . a d d C l a s s ( " u i - r e s i z a b l e - a u t o h i d e " ) ; f . _ h a n d l e s . h i d e ( ) } } ) } t h i s . _ m o u s e I n i t ( ) } , d e s t r o y : f u n c t i o n ( ) { t h i s . _ m o u s e D e s t r o y ( ) ; 
 v a r   f = f u n c t i o n ( e ) { a ( e ) . r e m o v e C l a s s ( " u i - r e s i z a b l e   u i - r e s i z a b l e - d i s a b l e d   u i - r e s i z a b l e - r e s i z i n g " ) . r e m o v e D a t a ( " r e s i z a b l e " ) . u n b i n d ( " . r e s i z a b l e " ) . f i n d ( " . u i - r e s i z a b l e - h a n d l e " ) . r e m o v e ( ) } ; i f ( t h i s . e l e m e n t I s W r a p p e r ) { f ( t h i s . e l e m e n t ) ; v a r   g = t h i s . e l e m e n t ; g . a f t e r ( t h i s . o r i g i n a l E l e m e n t . c s s ( { p o s i t i o n : g . c s s ( " p o s i t i o n " ) , w i d t h : g . o u t e r W i d t h ( ) , h e i g h t : g . o u t e r H e i g h t ( ) , t o p : g . c s s ( " t o p " ) , l e f t : g . c s s ( " l e f t " ) } ) ) . r e m o v e ( ) } t h i s . o r i g i n a l E l e m e n t . c s s ( " r e s i z e " , t h i s . o r i g i n a l R e s i z e S t y l e ) ; f ( t h i s . o r i g i n a l E l e m e n t ) ; r e t u r n   t h i s } , _ m o u s e C a p t u r e : f u n c t i o n ( f ) { v a r   g = 
 f a l s e ; f o r ( v a r   e   i n   t h i s . h a n d l e s ) i f ( a ( t h i s . h a n d l e s [ e ] ) [ 0 ] = = f . t a r g e t ) g = t r u e ; r e t u r n ! t h i s . o p t i o n s . d i s a b l e d & & g } , _ m o u s e S t a r t : f u n c t i o n ( f ) { v a r   g = t h i s . o p t i o n s , e = t h i s . e l e m e n t . p o s i t i o n ( ) , i = t h i s . e l e m e n t ; t h i s . r e s i z i n g = t r u e ; t h i s . d o c u m e n t S c r o l l = { t o p : a ( d o c u m e n t ) . s c r o l l T o p ( ) , l e f t : a ( d o c u m e n t ) . s c r o l l L e f t ( ) } ; i f ( i . i s ( " . u i - d r a g g a b l e " ) | | / a b s o l u t e / . t e s t ( i . c s s ( " p o s i t i o n " ) ) ) i . c s s ( { p o s i t i o n : " a b s o l u t e " , t o p : e . t o p , l e f t : e . l e f t } ) ; a . b r o w s e r . o p e r a & & / r e l a t i v e / . t e s t ( i . c s s ( " p o s i t i o n " ) ) & & i . c s s ( { p o s i t i o n : " r e l a t i v e " , t o p : " a u t o " , l e f t : " a u t o " } ) ; 
 t h i s . _ r e n d e r P r o x y ( ) ; e = d ( t h i s . h e l p e r . c s s ( " l e f t " ) ) ; v a r   b = d ( t h i s . h e l p e r . c s s ( " t o p " ) ) ; i f ( g . c o n t a i n m e n t ) { e + = a ( g . c o n t a i n m e n t ) . s c r o l l L e f t ( ) | | 0 ; b + = a ( g . c o n t a i n m e n t ) . s c r o l l T o p ( ) | | 0 } t h i s . o f f s e t = t h i s . h e l p e r . o f f s e t ( ) ; t h i s . p o s i t i o n = { l e f t : e , t o p : b } ; t h i s . s i z e = t h i s . _ h e l p e r ? { w i d t h : i . o u t e r W i d t h ( ) , h e i g h t : i . o u t e r H e i g h t ( ) } : { w i d t h : i . w i d t h ( ) , h e i g h t : i . h e i g h t ( ) } ; t h i s . o r i g i n a l S i z e = t h i s . _ h e l p e r ? { w i d t h : i . o u t e r W i d t h ( ) , h e i g h t : i . o u t e r H e i g h t ( ) } : { w i d t h : i . w i d t h ( ) , h e i g h t : i . h e i g h t ( ) } ; t h i s . o r i g i n a l P o s i t i o n = { l e f t : e , t o p : b } ; t h i s . s i z e D i f f = 
 { w i d t h : i . o u t e r W i d t h ( ) - i . w i d t h ( ) , h e i g h t : i . o u t e r H e i g h t ( ) - i . h e i g h t ( ) } ; t h i s . o r i g i n a l M o u s e P o s i t i o n = { l e f t : f . p a g e X , t o p : f . p a g e Y } ; t h i s . a s p e c t R a t i o = t y p e o f   g . a s p e c t R a t i o = = " n u m b e r " ? g . a s p e c t R a t i o : t h i s . o r i g i n a l S i z e . w i d t h / t h i s . o r i g i n a l S i z e . h e i g h t | | 1 ; g = a ( " . u i - r e s i z a b l e - " + t h i s . a x i s ) . c s s ( " c u r s o r " ) ; a ( " b o d y " ) . c s s ( " c u r s o r " , g = = " a u t o " ? t h i s . a x i s + " - r e s i z e " : g ) ; i . a d d C l a s s ( " u i - r e s i z a b l e - r e s i z i n g " ) ; t h i s . _ p r o p a g a t e ( " s t a r t " , f ) ; r e t u r n   t r u e } , _ m o u s e D r a g : f u n c t i o n ( f ) { v a r   g = t h i s . h e l p e r , e = t h i s . o r i g i n a l M o u s e P o s i t i o n , i = t h i s . _ c h a n g e [ t h i s . a x i s ] ; 
 i f ( ! i ) r e t u r n   f a l s e ; e = i . a p p l y ( t h i s , [ f , f . p a g e X - e . l e f t | | 0 , f . p a g e Y - e . t o p | | 0 ] ) ; i f ( t h i s . _ a s p e c t R a t i o | | f . s h i f t K e y ) e = t h i s . _ u p d a t e R a t i o ( e , f ) ; e = t h i s . _ r e s p e c t S i z e ( e , f ) ; t h i s . _ p r o p a g a t e ( " r e s i z e " , f ) ; g . c s s ( { t o p : t h i s . p o s i t i o n . t o p + " p x " , l e f t : t h i s . p o s i t i o n . l e f t + " p x " , w i d t h : t h i s . s i z e . w i d t h + " p x " , h e i g h t : t h i s . s i z e . h e i g h t + " p x " } ) ; ! t h i s . _ h e l p e r & & t h i s . _ p r o p o r t i o n a l l y R e s i z e E l e m e n t s . l e n g t h & & t h i s . _ p r o p o r t i o n a l l y R e s i z e ( ) ; t h i s . _ u p d a t e C a c h e ( e ) ; t h i s . _ t r i g g e r ( " r e s i z e " , f , t h i s . u i ( ) ) ; r e t u r n   f a l s e } , _ m o u s e S t o p : f u n c t i o n ( f ) { t h i s . r e s i z i n g = 
 f a l s e ; v a r   g = t h i s . o p t i o n s , e = t h i s ; i f ( t h i s . _ h e l p e r ) { v a r   i = t h i s . _ p r o p o r t i o n a l l y R e s i z e E l e m e n t s , b = i . l e n g t h & & / t e x t a r e a / i . t e s t ( i [ 0 ] . n o d e N a m e ) ; i = b & & a . u i . h a s S c r o l l ( i [ 0 ] , " l e f t " ) ? 0 : e . s i z e D i f f . h e i g h t ; b = b ? 0 : e . s i z e D i f f . w i d t h ; b = { w i d t h : e . h e l p e r . w i d t h ( ) - b , h e i g h t : e . h e l p e r . h e i g h t ( ) - i } ; i = p a r s e I n t ( e . e l e m e n t . c s s ( " l e f t " ) , 1 0 ) + ( e . p o s i t i o n . l e f t - e . o r i g i n a l P o s i t i o n . l e f t ) | | n u l l ; v a r   h = p a r s e I n t ( e . e l e m e n t . c s s ( " t o p " ) , 1 0 ) + ( e . p o s i t i o n . t o p - e . o r i g i n a l P o s i t i o n . t o p ) | | n u l l ; g . a n i m a t e | | t h i s . e l e m e n t . c s s ( a . e x t e n d ( b , { t o p : h , l e f t : i } ) ) ; e . h e l p e r . h e i g h t ( e . s i z e . h e i g h t ) ; 
 e . h e l p e r . w i d t h ( e . s i z e . w i d t h ) ; t h i s . _ h e l p e r & & ! g . a n i m a t e & & t h i s . _ p r o p o r t i o n a l l y R e s i z e ( ) } a ( " b o d y " ) . c s s ( " c u r s o r " , " a u t o " ) ; t h i s . e l e m e n t . r e m o v e C l a s s ( " u i - r e s i z a b l e - r e s i z i n g " ) ; t h i s . _ p r o p a g a t e ( " s t o p " , f ) ; t h i s . _ h e l p e r & & t h i s . h e l p e r . r e m o v e ( ) ; r e t u r n   f a l s e } , _ u p d a t e C a c h e : f u n c t i o n ( f ) { t h i s . o f f s e t = t h i s . h e l p e r . o f f s e t ( ) ; i f ( c ( f . l e f t ) ) t h i s . p o s i t i o n . l e f t = f . l e f t ; i f ( c ( f . t o p ) ) t h i s . p o s i t i o n . t o p = f . t o p ; i f ( c ( f . h e i g h t ) ) t h i s . s i z e . h e i g h t = f . h e i g h t ; i f ( c ( f . w i d t h ) ) t h i s . s i z e . w i d t h = f . w i d t h } , _ u p d a t e R a t i o : f u n c t i o n ( f ) { v a r   g = t h i s . p o s i t i o n , e = t h i s . s i z e , 
 i = t h i s . a x i s ; i f ( f . h e i g h t ) f . w i d t h = e . h e i g h t * t h i s . a s p e c t R a t i o ; e l s e   i f ( f . w i d t h ) f . h e i g h t = e . w i d t h / t h i s . a s p e c t R a t i o ; i f ( i = = " s w " ) { f . l e f t = g . l e f t + ( e . w i d t h - f . w i d t h ) ; f . t o p = n u l l } i f ( i = = " n w " ) { f . t o p = g . t o p + ( e . h e i g h t - f . h e i g h t ) ; f . l e f t = g . l e f t + ( e . w i d t h - f . w i d t h ) } r e t u r n   f } , _ r e s p e c t S i z e : f u n c t i o n ( f ) { v a r   g = t h i s . o p t i o n s , e = t h i s . a x i s , i = c ( f . w i d t h ) & & g . m a x W i d t h & & g . m a x W i d t h < f . w i d t h , b = c ( f . h e i g h t ) & & g . m a x H e i g h t & & g . m a x H e i g h t < f . h e i g h t , h = c ( f . w i d t h ) & & g . m i n W i d t h & & g . m i n W i d t h > f . w i d t h , j = c ( f . h e i g h t ) & & g . m i n H e i g h t & & g . m i n H e i g h t > f . h e i g h t ; i f ( h ) f . w i d t h = 
 g . m i n W i d t h ; i f ( j ) f . h e i g h t = g . m i n H e i g h t ; i f ( i ) f . w i d t h = g . m a x W i d t h ; i f ( b ) f . h e i g h t = g . m a x H e i g h t ; v a r   l = t h i s . o r i g i n a l P o s i t i o n . l e f t + t h i s . o r i g i n a l S i z e . w i d t h , o = t h i s . p o s i t i o n . t o p + t h i s . s i z e . h e i g h t , n = / s w | n w | w / . t e s t ( e ) ; e = / n w | n e | n / . t e s t ( e ) ; i f ( h & & n ) f . l e f t = l - g . m i n W i d t h ; i f ( i & & n ) f . l e f t = l - g . m a x W i d t h ; i f ( j & & e ) f . t o p = o - g . m i n H e i g h t ; i f ( b & & e ) f . t o p = o - g . m a x H e i g h t ; i f ( ( g = ! f . w i d t h & & ! f . h e i g h t ) & & ! f . l e f t & & f . t o p ) f . t o p = n u l l ; e l s e   i f ( g & & ! f . t o p & & f . l e f t ) f . l e f t = n u l l ; r e t u r n   f } , _ p r o p o r t i o n a l l y R e s i z e : f u n c t i o n ( ) { i f ( t h i s . _ p r o p o r t i o n a l l y R e s i z e E l e m e n t s . l e n g t h ) f o r ( v a r   f = 
 t h i s . h e l p e r | | t h i s . e l e m e n t , g = 0 ; g < t h i s . _ p r o p o r t i o n a l l y R e s i z e E l e m e n t s . l e n g t h ; g + + ) { v a r   e = t h i s . _ p r o p o r t i o n a l l y R e s i z e E l e m e n t s [ g ] ; i f ( ! t h i s . b o r d e r D i f ) { v a r   i = [ e . c s s ( " b o r d e r T o p W i d t h " ) , e . c s s ( " b o r d e r R i g h t W i d t h " ) , e . c s s ( " b o r d e r B o t t o m W i d t h " ) , e . c s s ( " b o r d e r L e f t W i d t h " ) ] , b = [ e . c s s ( " p a d d i n g T o p " ) , e . c s s ( " p a d d i n g R i g h t " ) , e . c s s ( " p a d d i n g B o t t o m " ) , e . c s s ( " p a d d i n g L e f t " ) ] ; t h i s . b o r d e r D i f = a . m a p ( i , f u n c t i o n ( h , j ) { h = p a r s e I n t ( h , 1 0 ) | | 0 ; j = p a r s e I n t ( b [ j ] , 1 0 ) | | 0 ; r e t u r n   h + j } ) } a . b r o w s e r . m s i e & & ( a ( f ) . i s ( " : h i d d e n " ) | | a ( f ) . p a r e n t s ( " : h i d d e n " ) . l e n g t h ) | | 
 e . c s s ( { h e i g h t : f . h e i g h t ( ) - t h i s . b o r d e r D i f [ 0 ] - t h i s . b o r d e r D i f [ 2 ] | | 0 , w i d t h : f . w i d t h ( ) - t h i s . b o r d e r D i f [ 1 ] - t h i s . b o r d e r D i f [ 3 ] | | 0 } ) } } , _ r e n d e r P r o x y : f u n c t i o n ( ) { v a r   f = t h i s . o p t i o n s ; t h i s . e l e m e n t O f f s e t = t h i s . e l e m e n t . o f f s e t ( ) ; i f ( t h i s . _ h e l p e r ) { t h i s . h e l p e r = t h i s . h e l p e r | | a ( ' < d i v   s t y l e = " o v e r f l o w : h i d d e n ; " > < / d i v > ' ) ; v a r   g = a . b r o w s e r . m s i e & & a . b r o w s e r . v e r s i o n < 7 , e = g ? 1 : 0 ; g = g ? 2 : - 1 ; t h i s . h e l p e r . a d d C l a s s ( t h i s . _ h e l p e r ) . c s s ( { w i d t h : t h i s . e l e m e n t . o u t e r W i d t h ( ) + g , h e i g h t : t h i s . e l e m e n t . o u t e r H e i g h t ( ) + g , p o s i t i o n : " a b s o l u t e " , l e f t : t h i s . e l e m e n t O f f s e t . l e f t - 
 e + " p x " , t o p : t h i s . e l e m e n t O f f s e t . t o p - e + " p x " , z I n d e x : + + f . z I n d e x } ) ; t h i s . h e l p e r . a p p e n d T o ( " b o d y " ) . d i s a b l e S e l e c t i o n ( ) } e l s e   t h i s . h e l p e r = t h i s . e l e m e n t } , _ c h a n g e : { e : f u n c t i o n ( f , g ) { r e t u r n { w i d t h : t h i s . o r i g i n a l S i z e . w i d t h + g } } , w : f u n c t i o n ( f , g ) { r e t u r n { l e f t : t h i s . o r i g i n a l P o s i t i o n . l e f t + g , w i d t h : t h i s . o r i g i n a l S i z e . w i d t h - g } } , n : f u n c t i o n ( f , g , e ) { r e t u r n { t o p : t h i s . o r i g i n a l P o s i t i o n . t o p + e , h e i g h t : t h i s . o r i g i n a l S i z e . h e i g h t - e } } , s : f u n c t i o n ( f , g , e ) { r e t u r n { h e i g h t : t h i s . o r i g i n a l S i z e . h e i g h t + e } } , s e : f u n c t i o n ( f , g , e ) { r e t u r n   a . e x t e n d ( t h i s . _ c h a n g e . s . a p p l y ( t h i s , 
 a r g u m e n t s ) , t h i s . _ c h a n g e . e . a p p l y ( t h i s , [ f , g , e ] ) ) } , s w : f u n c t i o n ( f , g , e ) { r e t u r n   a . e x t e n d ( t h i s . _ c h a n g e . s . a p p l y ( t h i s , a r g u m e n t s ) , t h i s . _ c h a n g e . w . a p p l y ( t h i s , [ f , g , e ] ) ) } , n e : f u n c t i o n ( f , g , e ) { r e t u r n   a . e x t e n d ( t h i s . _ c h a n g e . n . a p p l y ( t h i s , a r g u m e n t s ) , t h i s . _ c h a n g e . e . a p p l y ( t h i s , [ f , g , e ] ) ) } , n w : f u n c t i o n ( f , g , e ) { r e t u r n   a . e x t e n d ( t h i s . _ c h a n g e . n . a p p l y ( t h i s , a r g u m e n t s ) , t h i s . _ c h a n g e . w . a p p l y ( t h i s , [ f , g , e ] ) ) } } , _ p r o p a g a t e : f u n c t i o n ( f , g ) { a . u i . p l u g i n . c a l l ( t h i s , f , [ g , t h i s . u i ( ) ] ) ; f ! = " r e s i z e " & & t h i s . _ t r i g g e r ( f , g , t h i s . u i ( ) ) } , p l u g i n s : { } , u i : f u n c t i o n ( ) { r e t u r n { o r i g i n a l E l e m e n t : t h i s . o r i g i n a l 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 , h e l p e r : t h i s . h e l p e r , p o s i t i o n : t h i s . p o s i t i o n , s i z e : t h i s . s i z e , o r i g i n a l S i z e : t h i s . o r i g i n a l S i z e , o r i g i n a l P o s i t i o n : t h i s . o r i g i n a l P o s i t i o n } } } ) ; a . e x t e n d ( a . u i . r e s i z a b l e , { v e r s i o n : " 1 . 8 . 1 3 " } ) ; a . u i . p l u g i n . a d d ( " r e s i z a b l e " , " a l s o R e s i z e " , { s t a r t : f u n c t i o n ( ) { v a r   f = a ( t h i s ) . d a t a ( " r e s i z a b l e " ) . o p t i o n s , g = f u n c t i o n ( e ) { a ( e ) . e a c h ( f u n c t i o n ( ) { v a r   i = a ( t h i s ) ; i . d a t a ( " r e s i z a b l e - a l s o r e s i z e " , { w i d t h : p a r s e I n t ( i . w i d t h ( ) , 1 0 ) , h e i g h t : p a r s e I n t ( i . h e i g h t ( ) , 1 0 ) , l e f t : p a r s e I n t ( i . c s s ( " l e f t " ) , 1 0 ) , t o p : p a r s e I n t ( i . c s s ( " t o p " ) , 1 0 ) , p o s i t i o n : i . c s s ( " p o s i t i o n " ) } ) } ) } ; 
 i f ( t y p e o f   f . a l s o R e s i z e = = " o b j e c t " & & ! f . a l s o R e s i z e . p a r e n t N o d e ) i f ( f . a l s o R e s i z e . l e n g t h ) { f . a l s o R e s i z e = f . a l s o R e s i z e [ 0 ] ; g ( f . a l s o R e s i z e ) } e l s e   a . e a c h ( f . a l s o R e s i z e , f u n c t i o n ( e ) { g ( e ) } ) ; e l s e   g ( f . a l s o R e s i z e ) } , r e s i z e : f u n c t i o n ( f , g ) { v a r   e = a ( t h i s ) . d a t a ( " r e s i z a b l e " ) ; f = e . o p t i o n s ; v a r   i = e . o r i g i n a l S i z e , b = e . o r i g i n a l P o s i t i o n , h = { h e i g h t : e . s i z e . h e i g h t - i . h e i g h t | | 0 , w i d t h : e . s i z e . w i d t h - i . w i d t h | | 0 , t o p : e . p o s i t i o n . t o p - b . t o p | | 0 , l e f t : e . p o s i t i o n . l e f t - b . l e f t | | 0 } , j = f u n c t i o n ( l , o ) { a ( l ) . e a c h ( f u n c t i o n ( ) { v a r   n = a ( t h i s ) , k = a ( t h i s ) . d a t a ( " r e s i z a b l e - a l s o r e s i z e " ) , 
 m = { } , p = o & & o . l e n g t h ? o : n . p a r e n t s ( g . o r i g i n a l E l e m e n t [ 0 ] ) . l e n g t h ? [ " w i d t h " , " h e i g h t " ] : [ " w i d t h " , " h e i g h t " , " t o p " , " l e f t " ] ; a . e a c h ( p , f u n c t i o n ( q , s ) { i f ( ( q = ( k [ s ] | | 0 ) + ( h [ s ] | | 0 ) ) & & q > = 0 ) m [ s ] = q | | n u l l } ) ; i f ( a . b r o w s e r . o p e r a & & / r e l a t i v e / . t e s t ( n . c s s ( " p o s i t i o n " ) ) ) { e . _ r e v e r t T o R e l a t i v e P o s i t i o n = t r u e ; n . c s s ( { p o s i t i o n : " a b s o l u t e " , t o p : " a u t o " , l e f t : " a u t o " } ) } n . c s s ( m ) } ) } ; t y p e o f   f . a l s o R e s i z e = = " o b j e c t " & & ! f . a l s o R e s i z e . n o d e T y p e ? a . e a c h ( f . a l s o R e s i z e , f u n c t i o n ( l , o ) { j ( l , o ) } ) : j ( f . a l s o R e s i z e ) } , s t o p : f u n c t i o n ( ) { v a r   f = a ( t h i s ) . d a t a ( " r e s i z a b l e " ) , g = f . o p t i o n s , 
 e = f u n c t i o n ( i ) { a ( i ) . e a c h ( f u n c t i o n ( ) { v a r   b = a ( t h i s ) ; b . c s s ( { p o s i t i o n : b . d a t a ( " r e s i z a b l e - a l s o r e s i z e " ) . p o s i t i o n } ) } ) } ; i f ( f . _ r e v e r t T o R e l a t i v e P o s i t i o n ) { f . _ r e v e r t T o R e l a t i v e P o s i t i o n = f a l s e ; t y p e o f   g . a l s o R e s i z e = = " o b j e c t " & & ! g . a l s o R e s i z e . n o d e T y p e ? a . e a c h ( g . a l s o R e s i z e , f u n c t i o n ( i ) { e ( i ) } ) : e ( g . a l s o R e s i z e ) } a ( t h i s ) . r e m o v e D a t a ( " r e s i z a b l e - a l s o r e s i z e " ) } } ) ; a . u i . p l u g i n . a d d ( " r e s i z a b l e " , " a n i m a t e " , { s t o p : f u n c t i o n ( f ) { v a r   g = a ( t h i s ) . d a t a ( " r e s i z a b l e " ) , e = g . o p t i o n s , i = g . _ p r o p o r t i o n a l l y R e s i z e E l e m e n t s , b = i . l e n g t h & & / t e x t a r e a / i . t e s t ( i [ 0 ] . n o d e N a m e ) , 
 h = b & & a . u i . h a s S c r o l l ( i [ 0 ] , " l e f t " ) ? 0 : g . s i z e D i f f . h e i g h t ; b = { w i d t h : g . s i z e . w i d t h - ( b ? 0 : g . s i z e D i f f . w i d t h ) , h e i g h t : g . s i z e . h e i g h t - h } ; h = p a r s e I n t ( g . e l e m e n t . c s s ( " l e f t " ) , 1 0 ) + ( g . p o s i t i o n . l e f t - g . o r i g i n a l P o s i t i o n . l e f t ) | | n u l l ; v a r   j = p a r s e I n t ( g . e l e m e n t . c s s ( " t o p " ) , 1 0 ) + ( g . p o s i t i o n . t o p - g . o r i g i n a l P o s i t i o n . t o p ) | | n u l l ; g . e l e m e n t . a n i m a t e ( a . e x t e n d ( b , j & & h ? { t o p : j , l e f t : h } : { } ) , { d u r a t i o n : e . a n i m a t e D u r a t i o n , e a s i n g : e . a n i m a t e E a s i n g , s t e p : f u n c t i o n ( ) { v a r   l = { w i d t h : p a r s e I n t ( g . e l e m e n t . c s s ( " w i d t h " ) , 1 0 ) , h e i g h t : p a r s e I n t ( g . e l e m e n t . c s s ( " h e i g h t " ) , 
 1 0 ) , t o p : p a r s e I n t ( g . e l e m e n t . c s s ( " t o p " ) , 1 0 ) , l e f t : p a r s e I n t ( g . e l e m e n t . c s s ( " l e f t " ) , 1 0 ) } ; i & & i . l e n g t h & & a ( i [ 0 ] ) . c s s ( { w i d t h : l . w i d t h , h e i g h t : l . h e i g h t } ) ; g . _ u p d a t e C a c h e ( l ) ; g . _ p r o p a g a t e ( " r e s i z e " , f ) } } ) } } ) ; a . u i . p l u g i n . a d d ( " r e s i z a b l e " , " c o n t a i n m e n t " , { s t a r t : f u n c t i o n ( ) { v a r   f = a ( t h i s ) . d a t a ( " r e s i z a b l e " ) , g = f . e l e m e n t , e = f . o p t i o n s . c o n t a i n m e n t ; i f ( g = e   i n s t a n c e o f   a ? e . g e t ( 0 ) : / p a r e n t / . t e s t ( e ) ? g . p a r e n t ( ) . g e t ( 0 ) : e ) { f . c o n t a i n e r E l e m e n t = a ( g ) ; i f ( / d o c u m e n t / . t e s t ( e ) | | e = = d o c u m e n t ) { f . c o n t a i n e r O f f s e t = { l e f t : 0 , t o p : 0 } ; f . c o n t a i n e r P o s i t i o n = { l e f t : 0 , 
 t o p : 0 } ; f . p a r e n t D a t a = { e l e m e n t : a ( d o c u m e n t ) , l e f t : 0 , t o p : 0 , w i d t h : a ( d o c u m e n t ) . w i d t h ( ) , h e i g h t : a ( d o c u m e n t ) . h e i g h t ( ) | | d o c u m e n t . b o d y . p a r e n t N o d e . s c r o l l H e i g h t } } e l s e { v a r   i = a ( g ) , b = [ ] ; a ( [ " T o p " , " R i g h t " , " L e f t " , " B o t t o m " ] ) . e a c h ( f u n c t i o n ( l , o ) { b [ l ] = d ( i . c s s ( " p a d d i n g " + o ) ) } ) ; f . c o n t a i n e r O f f s e t = i . o f f s e t ( ) ; f . c o n t a i n e r P o s i t i o n = i . p o s i t i o n ( ) ; f . c o n t a i n e r S i z e = { h e i g h t : i . i n n e r H e i g h t ( ) - b [ 3 ] , w i d t h : i . i n n e r W i d t h ( ) - b [ 1 ] } ; e = f . c o n t a i n e r O f f s e t ; v a r   h = f . c o n t a i n e r S i z e . h e i g h t , j = f . c o n t a i n e r S i z e . w i d t h ; j = a . u i . h a s S c r o l l ( g , " l e f t " ) ? g . s c r o l l W i d t h : j ; 
 h = a . u i . h a s S c r o l l ( g ) ? g . s c r o l l H e i g h t : h ; f . p a r e n t D a t a = { e l e m e n t : g , l e f t : e . l e f t , t o p : e . t o p , w i d t h : j , h e i g h t : h } } } } , r e s i z e : f u n c t i o n ( f ) { v a r   g = a ( t h i s ) . d a t a ( " r e s i z a b l e " ) , e = g . o p t i o n s , i = g . c o n t a i n e r O f f s e t , b = g . p o s i t i o n ; f = g . _ a s p e c t R a t i o | | f . s h i f t K e y ; v a r   h = { t o p : 0 , l e f t : 0 } , j = g . c o n t a i n e r E l e m e n t ; i f ( j [ 0 ] ! = d o c u m e n t & & / s t a t i c / . t e s t ( j . c s s ( " p o s i t i o n " ) ) ) h = i ; i f ( b . l e f t < ( g . _ h e l p e r ? i . l e f t : 0 ) ) { g . s i z e . w i d t h + = g . _ h e l p e r ? g . p o s i t i o n . l e f t - i . l e f t : g . p o s i t i o n . l e f t - h . l e f t ; i f ( f ) g . s i z e . h e i g h t = g . s i z e . w i d t h / e . a s p e c t R a t i o ; g . p o s i t i o n . l e f t = e . h e l p e r ? i . l e f t : 
 0 } i f ( b . t o p < ( g . _ h e l p e r ? i . t o p : 0 ) ) { g . s i z e . h e i g h t + = g . _ h e l p e r ? g . p o s i t i o n . t o p - i . t o p : g . p o s i t i o n . t o p ; i f ( f ) g . s i z e . w i d t h = g . s i z e . h e i g h t * e . a s p e c t R a t i o ; g . p o s i t i o n . t o p = g . _ h e l p e r ? i . t o p : 0 } g . o f f s e t . l e f t = g . p a r e n t D a t a . l e f t + g . p o s i t i o n . l e f t ; g . o f f s e t . t o p = g . p a r e n t D a t a . t o p + g . p o s i t i o n . t o p ; e = M a t h . a b s ( ( g . _ h e l p e r ? g . o f f s e t . l e f t - h . l e f t : g . o f f s e t . l e f t - h . l e f t ) + g . s i z e D i f f . w i d t h ) ; i = M a t h . a b s ( ( g . _ h e l p e r ? g . o f f s e t . t o p - h . t o p : g . o f f s e t . t o p - i . t o p ) + g . s i z e D i f f . h e i g h t ) ; b = g . c o n t a i n e r E l e m e n t . g e t ( 0 ) = = g . e l e m e n t . p a r e n t ( ) . g e t ( 0 ) ; h = / r e l a t i v e | a b s o l u t e / . t e s t ( g . c o n t a i n e r E l e m e n t . c s s ( " p o s i t i o n " ) ) ; 
 i f ( b & & h ) e - = g . p a r e n t D a t a . l e f t ; i f ( e + g . s i z e . w i d t h > = g . p a r e n t D a t a . w i d t h ) { g . s i z e . w i d t h = g . p a r e n t D a t a . w i d t h - e ; i f ( f ) g . s i z e . h e i g h t = g . s i z e . w i d t h / g . a s p e c t R a t i o } i f ( i + g . s i z e . h e i g h t > = g . p a r e n t D a t a . h e i g h t ) { g . s i z e . h e i g h t = g . p a r e n t D a t a . h e i g h t - i ; i f ( f ) g . s i z e . w i d t h = g . s i z e . h e i g h t * g . a s p e c t R a t i o } } , s t o p : f u n c t i o n ( ) { v a r   f = a ( t h i s ) . d a t a ( " r e s i z a b l e " ) , g = f . o p t i o n s , e = f . c o n t a i n e r O f f s e t , i = f . c o n t a i n e r P o s i t i o n , b = f . c o n t a i n e r E l e m e n t , h = a ( f . h e l p e r ) , j = h . o f f s e t ( ) , l = h . o u t e r W i d t h ( ) - f . s i z e D i f f . w i d t h ; h = h . o u t e r H e i g h t ( ) - f . s i z e D i f f . h e i g h t ; f . _ h e l p e r & & 
 ! g . a n i m a t e & & / r e l a t i v e / . t e s t ( b . c s s ( " p o s i t i o n " ) ) & & a ( t h i s ) . c s s ( { l e f t : j . l e f t - i . l e f t - e . l e f t , w i d t h : l , h e i g h t : h } ) ; f . _ h e l p e r & & ! g . a n i m a t e & & / s t a t i c / . t e s t ( b . c s s ( " p o s i t i o n " ) ) & & a ( t h i s ) . c s s ( { l e f t : j . l e f t - i . l e f t - e . l e f t , w i d t h : l , h e i g h t : h } ) } } ) ; a . u i . p l u g i n . a d d ( " r e s i z a b l e " , " g h o s t " , { s t a r t : f u n c t i o n ( ) { v a r   f = a ( t h i s ) . d a t a ( " r e s i z a b l e " ) , g = f . o p t i o n s , e = f . s i z e ; f . g h o s t = f . o r i g i n a l E l e m e n t . c l o n e ( ) ; f . g h o s t . c s s ( { o p a c i t y : 0 . 2 5 , d i s p l a y : " b l o c k " , p o s i t i o n : " r e l a t i v e " , h e i g h t : e . h e i g h t , w i d t h : e . w i d t h , m a r g i n : 0 , l e f t : 0 , t o p : 0 } ) . a d d C l a s s ( " u i - r e s i z a b l e - g h o s t " ) . a d d C l a s s ( t y p e o f   g . g h o s t = = 
 " s t r i n g " ? g . g h o s t : " " ) ; f . g h o s t . a p p e n d T o ( f . h e l p e r ) } , r e s i z e : f u n c t i o n ( ) { v a r   f = a ( t h i s ) . d a t a ( " r e s i z a b l e " ) ; f . g h o s t & & f . g h o s t . c s s ( { p o s i t i o n : " r e l a t i v e " , h e i g h t : f . s i z e . h e i g h t , w i d t h : f . s i z e . w i d t h } ) } , s t o p : f u n c t i o n ( ) { v a r   f = a ( t h i s ) . d a t a ( " r e s i z a b l e " ) ; f . g h o s t & & f . h e l p e r & & f . h e l p e r . g e t ( 0 ) . r e m o v e C h i l d ( f . g h o s t . g e t ( 0 ) ) } } ) ; a . u i . p l u g i n . a d d ( " r e s i z a b l e " , " g r i d " , { r e s i z e : f u n c t i o n ( ) { v a r   f = a ( t h i s ) . d a t a ( " r e s i z a b l e " ) , g = f . o p t i o n s , e = f . s i z e , i = f . o r i g i n a l S i z e , b = f . o r i g i n a l P o s i t i o n , h = f . a x i s ; g . g r i d = t y p e o f   g . g r i d = = " n u m b e r " ? [ g . g r i d , g . g r i d ] : g . g r i d ; 
 v a r   j = M a t h . r o u n d ( ( e . w i d t h - i . w i d t h ) / ( g . g r i d [ 0 ] | | 1 ) ) * ( g . g r i d [ 0 ] | | 1 ) ; g = M a t h . r o u n d ( ( e . h e i g h t - i . h e i g h t ) / ( g . g r i d [ 1 ] | | 1 ) ) * ( g . g r i d [ 1 ] | | 1 ) ; i f ( / ^ ( s e | s | e ) $ / . t e s t ( h ) ) { f . s i z e . w i d t h = i . w i d t h + j ; f . s i z e . h e i g h t = i . h e i g h t + g } e l s e   i f ( / ^ ( n e ) $ / . t e s t ( h ) ) { f . s i z e . w i d t h = i . w i d t h + j ; f . s i z e . h e i g h t = i . h e i g h t + g ; f . p o s i t i o n . t o p = b . t o p - g } e l s e { i f ( / ^ ( s w ) $ / . t e s t ( h ) ) { f . s i z e . w i d t h = i . w i d t h + j ; f . s i z e . h e i g h t = i . h e i g h t + g } e l s e { f . s i z e . w i d t h = i . w i d t h + j ; f . s i z e . h e i g h t = i . h e i g h t + g ; f . p o s i t i o n . t o p = b . t o p - g } f . p o s i t i o n . l e f t = b . l e f t - j } } } ) ; v a r   d = f u n c t i o n ( f ) { r e t u r n   p a r s e I n t ( f , 
 1 0 ) | | 0 } , c = f u n c t i o n ( f ) { r e t u r n ! i s N a N ( p a r s e I n t ( f , 1 0 ) ) } } ) ( j Q u e r y ) ; 
 ( f u n c t i o n ( a ) { a . w i d g e t ( " u i . s e l e c t a b l e " , a . u i . m o u s e , { o p t i o n s : { a p p e n d T o : " b o d y " , a u t o R e f r e s h : t r u e , d i s t a n c e : 0 , f i l t e r : " * " , t o l e r a n c e : " t o u c h " } , _ c r e a t e : f u n c t i o n ( ) { v a r   d = t h i s ; t h i s . e l e m e n t . a d d C l a s s ( " u i - s e l e c t a b l e " ) ; t h i s . d r a g g e d = f a l s e ; v a r   c ; t h i s . r e f r e s h = f u n c t i o n ( ) { c = a ( d . o p t i o n s . f i l t e r , d . e l e m e n t [ 0 ] ) ; c . e a c h ( f u n c t i o n ( ) { v a r   f = a ( t h i s ) , g = f . o f f s e t ( ) ; a . d a t a ( t h i s , " s e l e c t a b l e - i t e m " , { e l e m e n t : t h i s , $ e l e m e n t : f , l e f t : g . l e f t , t o p : g . t o p , r i g h t : g . l e f t + f . o u t e r W i d t h ( ) , b o t t o m : g . t o p + f . o u t e r H e i g h t ( ) , s t a r t s e l e c t e d : f a l s e , s e l e c t e d : f . h a s C l a s s ( " u i - s e l e c t e d " ) , 
 s e l e c t i n g : f . h a s C l a s s ( " u i - s e l e c t i n g " ) , u n s e l e c t i n g : f . h a s C l a s s ( " u i - u n s e l e c t i n g " ) } ) } ) } ; t h i s . r e f r e s h ( ) ; t h i s . s e l e c t e e s = c . a d d C l a s s ( " u i - s e l e c t e e " ) ; t h i s . _ m o u s e I n i t ( ) ; t h i s . h e l p e r = a ( " < d i v   c l a s s = ' u i - s e l e c t a b l e - h e l p e r ' > < / d i v > " ) } , d e s t r o y : f u n c t i o n ( ) { t h i s . s e l e c t e e s . r e m o v e C l a s s ( " u i - s e l e c t e e " ) . r e m o v e D a t a ( " s e l e c t a b l e - i t e m " ) ; t h i s . e l e m e n t . r e m o v e C l a s s ( " u i - s e l e c t a b l e   u i - s e l e c t a b l e - d i s a b l e d " ) . r e m o v e D a t a ( " s e l e c t a b l e " ) . u n b i n d ( " . s e l e c t a b l e " ) ; t h i s . _ m o u s e D e s t r o y ( ) ; r e t u r n   t h i s } , _ m o u s e S t a r t : f u n c t i o n ( d ) { v a r   c = t h i s ; t h i s . o p o s = [ d . p a g e X , 
 d . p a g e Y ] ; i f ( ! t h i s . o p t i o n s . d i s a b l e d ) { v a r   f = t h i s . o p t i o n s ; t h i s . s e l e c t e e s = a ( f . f i l t e r , t h i s . e l e m e n t [ 0 ] ) ; t h i s . _ t r i g g e r ( " s t a r t " , d ) ; a ( f . a p p e n d T o ) . a p p e n d ( t h i s . h e l p e r ) ; t h i s . h e l p e r . c s s ( { l e f t : d . c l i e n t X , t o p : d . c l i e n t Y , w i d t h : 0 , h e i g h t : 0 } ) ; f . a u t o R e f r e s h & & t h i s . r e f r e s h ( ) ; t h i s . s e l e c t e e s . f i l t e r ( " . u i - s e l e c t e d " ) . e a c h ( f u n c t i o n ( ) { v a r   g = a . d a t a ( t h i s , " s e l e c t a b l e - i t e m " ) ; g . s t a r t s e l e c t e d = t r u e ; i f ( ! d . m e t a K e y ) { g . $ e l e m e n t . r e m o v e C l a s s ( " u i - s e l e c t e d " ) ; g . s e l e c t e d = f a l s e ; g . $ e l e m e n t . a d d C l a s s ( " u i - u n s e l e c t i n g " ) ; g . u n s e l e c t i n g = t r u e ; c . _ t r i g g e r ( " u n s e l e c t i n g " , 
 d , { u n s e l e c t i n g : g . e l e m e n t } ) } } ) ; a ( d . t a r g e t ) . p a r e n t s ( ) . a n d S e l f ( ) . e a c h ( f u n c t i o n ( ) { v a r   g = a . d a t a ( t h i s , " s e l e c t a b l e - i t e m " ) ; i f ( g ) { v a r   e = ! d . m e t a K e y | | ! g . $ e l e m e n t . h a s C l a s s ( " u i - s e l e c t e d " ) ; g . $ e l e m e n t . r e m o v e C l a s s ( e ? " u i - u n s e l e c t i n g " : " u i - s e l e c t e d " ) . a d d C l a s s ( e ? " u i - s e l e c t i n g " : " u i - u n s e l e c t i n g " ) ; g . u n s e l e c t i n g = ! e ; g . s e l e c t i n g = e ; ( g . s e l e c t e d = e ) ? c . _ t r i g g e r ( " s e l e c t i n g " , d , { s e l e c t i n g : g . e l e m e n t } ) : c . _ t r i g g e r ( " u n s e l e c t i n g " , d , { u n s e l e c t i n g : g . e l e m e n t } ) ; r e t u r n   f a l s e } } ) } } , _ m o u s e D r a g : f u n c t i o n ( d ) { v a r   c = t h i s ; t h i s . d r a g g e d = t r u e ; i f ( ! t h i s . o p t i o n s . d i s a b l e d ) { v a r   f = 
 t h i s . o p t i o n s , g = t h i s . o p o s [ 0 ] , e = t h i s . o p o s [ 1 ] , i = d . p a g e X , b = d . p a g e Y ; i f ( g > i ) { v a r   h = i ; i = g ; g = h } i f ( e > b ) { h = b ; b = e ; e = h } t h i s . h e l p e r . c s s ( { l e f t : g , t o p : e , w i d t h : i - g , h e i g h t : b - e } ) ; t h i s . s e l e c t e e s . e a c h ( f u n c t i o n ( ) { v a r   j = a . d a t a ( t h i s , " s e l e c t a b l e - i t e m " ) ; i f ( ! ( ! j | | j . e l e m e n t = = c . e l e m e n t [ 0 ] ) ) { v a r   l = f a l s e ; i f ( f . t o l e r a n c e = = " t o u c h " ) l = ! ( j . l e f t > i | | j . r i g h t < g | | j . t o p > b | | j . b o t t o m < e ) ; e l s e   i f ( f . t o l e r a n c e = = " f i t " ) l = j . l e f t > g & & j . r i g h t < i & & j . t o p > e & & j . b o t t o m < b ; i f ( l ) { i f ( j . s e l e c t e d ) { j . $ e l e m e n t . r e m o v e C l a s s ( " u i - s e l e c t e d " ) ; j . s e l e c t e d = f a l s e } i f ( j . u n s e l e c t i n g ) { j . $ e l e m e n t . r e m o v e C l a s s ( " u i - u n s e l e c t i n g " ) ; 
 j . u n s e l e c t i n g = f a l s e } i f ( ! j . s e l e c t i n g ) { j . $ e l e m e n t . a d d C l a s s ( " u i - s e l e c t i n g " ) ; j . s e l e c t i n g = t r u e ; c . _ t r i g g e r ( " s e l e c t i n g " , d , { s e l e c t i n g : j . e l e m e n t } ) } } e l s e { i f ( j . s e l e c t i n g ) i f ( d . m e t a K e y & & j . s t a r t s e l e c t e d ) { j . $ e l e m e n t . r e m o v e C l a s s ( " u i - s e l e c t i n g " ) ; j . s e l e c t i n g = f a l s e ; j . $ e l e m e n t . a d d C l a s s ( " u i - s e l e c t e d " ) ; j . s e l e c t e d = t r u e } e l s e { j . $ e l e m e n t . r e m o v e C l a s s ( " u i - s e l e c t i n g " ) ; j . s e l e c t i n g = f a l s e ; i f ( j . s t a r t s e l e c t e d ) { j . $ e l e m e n t . a d d C l a s s ( " u i - u n s e l e c t i n g " ) ; j . u n s e l e c t i n g = t r u e } c . _ t r i g g e r ( " u n s e l e c t i n g " , d , { u n s e l e c t i n g : j . e l e m e n t } ) } i f ( j . s e l e c t e d ) i f ( ! d . m e t a K e y & & 
 ! j . s t a r t s e l e c t e d ) { j . $ e l e m e n t . r e m o v e C l a s s ( " u i - s e l e c t e d " ) ; j . s e l e c t e d = f a l s e ; j . $ e l e m e n t . a d d C l a s s ( " u i - u n s e l e c t i n g " ) ; j . u n s e l e c t i n g = t r u e ; c . _ t r i g g e r ( " u n s e l e c t i n g " , d , { u n s e l e c t i n g : j . e l e m e n t } ) } } } } ) ; r e t u r n   f a l s e } } , _ m o u s e S t o p : f u n c t i o n ( d ) { v a r   c = t h i s ; t h i s . d r a g g e d = f a l s e ; a ( " . u i - u n s e l e c t i n g " , t h i s . e l e m e n t [ 0 ] ) . e a c h ( f u n c t i o n ( ) { v a r   f = a . d a t a ( t h i s , " s e l e c t a b l e - i t e m " ) ; f . $ e l e m e n t . r e m o v e C l a s s ( " u i - u n s e l e c t i n g " ) ; f . u n s e l e c t i n g = f a l s e ; f . s t a r t s e l e c t e d = f a l s e ; c . _ t r i g g e r ( " u n s e l e c t e d " , d , { u n s e l e c t e d : f . e l e m e n t } ) } ) ; a ( " . u i - s e l e c t i n g " , t h i s . e l e m e n t [ 0 ] ) . e a c h ( f u n c t i o n ( ) { v a r   f = 
 a . d a t a ( t h i s , " s e l e c t a b l e - i t e m " ) ; f . $ e l e m e n t . r e m o v e C l a s s ( " u i - s e l e c t i n g " ) . a d d C l a s s ( " u i - s e l e c t e d " ) ; f . s e l e c t i n g = f a l s e ; f . s e l e c t e d = t r u e ; f . s t a r t s e l e c t e d = t r u e ; c . _ t r i g g e r ( " s e l e c t e d " , d , { s e l e c t e d : f . e l e m e n t } ) } ) ; t h i s . _ t r i g g e r ( " s t o p " , d ) ; t h i s . h e l p e r . r e m o v e ( ) ; r e t u r n   f a l s e } } ) ; a . e x t e n d ( a . u i . s e l e c t a b l e , { v e r s i o n : " 1 . 8 . 1 3 " } ) } ) ( j Q u e r y ) ; 
 ( f u n c t i o n ( a ) { a . w i d g e t ( " u i . s o r t a b l e " , a . u i . m o u s e , { w i d g e t E v e n t P r e f i x : " s o r t " , o p t i o n s : { a p p e n d T o : " p a r e n t " , a x i s : f a l s e , c o n n e c t W i t h : f a l s e , c o n t a i n m e n t : f a l s e , c u r s o r : " a u t o " , c u r s o r A t : f a l s e , d r o p O n E m p t y : t r u e , f o r c e P l a c e h o l d e r S i z e : f a l s e , f o r c e H e l p e r S i z e : f a l s e , g r i d : f a l s e , h a n d l e : f a l s e , h e l p e r : " o r i g i n a l " , i t e m s : " >   * " , o p a c i t y : f a l s e , p l a c e h o l d e r : f a l s e , r e v e r t : f a l s e , s c r o l l : t r u e , s c r o l l S e n s i t i v i t y : 2 0 , s c r o l l S p e e d : 2 0 , s c o p e : " d e f a u l t " , t o l e r a n c e : " i n t e r s e c t " , z I n d e x : 1 E 3 } , _ c r e a t e : f u n c t i o n ( ) { v a r   d = t h i s . o p t i o n s ; t h i s . c o n t a i n e r C a c h e = { } ; t h i s . e l e m e n t . a d d C l a s s ( " u i - s o r t a b l e " ) ; 
 t h i s . r e f r e s h ( ) ; t h i s . f l o a t i n g = t h i s . i t e m s . l e n g t h ? d . a x i s = = = " x " | | / l e f t | r i g h t / . t e s t ( t h i s . i t e m s [ 0 ] . i t e m . c s s ( " f l o a t " ) ) | | / i n l i n e | t a b l e - c e l l / . t e s t ( t h i s . i t e m s [ 0 ] . i t e m . c s s ( " d i s p l a y " ) ) : f a l s e ; 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 ( ) ; t h i s . _ m o u s e I n i t ( ) } , d e s t r o y : 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 C l a s s ( " u i - s o r t a b l e   u i - s o r t a b l e - d i s a b l e d " ) . r e m o v e D a t a ( " s o r t a b l e " ) . u n b i n d ( " . s o r t a b l e " ) ; t h i s . _ m o u s e D e s t r o y ( ) ; f o r ( v a r   d = t h i s . i t e m s . l e n g t h - 1 ; d > = 0 ; d - - ) t h i s . i t e m s [ d ] . i t e m . r e m o v e D a t a ( " s o r t a b l e - i t e m " ) ; r e t u r n   t h i s } , _ s e t O p t i o n : f u n c t i o n ( d , c ) { i f ( d = = = 
 " d i s a b l e d " ) { t h i s . o p t i o n s [ d ] = c ; t h i s . w i d g e t ( ) [ c ? " a d d C l a s s " : " r e m o v e C l a s s " ] ( " u i - s o r t a b l e - d i s a b l e d " ) } e l s e   a . W i d g e t . p r o t o t y p e . _ s e t O p t i o n . a p p l y ( t h i s , a r g u m e n t s ) } , _ m o u s e C a p t u r e : f u n c t i o n ( d , c ) { i f ( t h i s . r e v e r t i n g ) r e t u r n   f a l s e ; i f ( t h i s . o p t i o n s . d i s a b l e d | | t h i s . o p t i o n s . t y p e = = " s t a t i c " ) r e t u r n   f a l s e ; t h i s . _ r e f r e s h I t e m s ( d ) ; v a r   f = n u l l , g = t h i s ; a ( d . t a r g e t ) . p a r e n t s ( ) . e a c h ( f u n c t i o n ( ) { i f ( a . d a t a ( t h i s , " s o r t a b l e - i t e m " ) = = g ) { f = a ( t h i s ) ; r e t u r n   f a l s e } } ) ; i f ( a . d a t a ( d . t a r g e t , " s o r t a b l e - i t e m " ) = = g ) f = a ( d . t a r g e t ) ; i f ( ! f ) r e t u r n   f a l s e ; i f ( t h i s . o p t i o n s . h a n d l e & & 
 ! c ) { v a r   e = f a l s e ; a ( t h i s . o p t i o n s . h a n d l e , f ) . f i n d ( " * " ) . a n d S e l f ( ) . e a c h ( f u n c t i o n ( ) { i f ( t h i s = = d . t a r g e t ) e = t r u e } ) ; i f ( ! e ) r e t u r n   f a l s e } t h i s . c u r r e n t I t e m = f ; t h i s . _ r e m o v e C u r r e n t s F r o m I t e m s ( ) ; r e t u r n   t r u e } , _ m o u s e S t a r t : f u n c t i o n ( d , c , f ) { c = t h i s . o p t i o n s ; v a r   g = t h i s ; t h i s . c u r r e n t C o n t a i n e r = t h i s ; t h i s . r e f r e s h P o s i t i o n s ( ) ; t h i s . h e l p e r = t h i s . _ c r e a t e H e l p e r ( d ) ; t h i s . _ c a c h e H e l p e r P r o p o r t i o n s ( ) ; t h i s . _ c a c h e M a r g i n s ( ) ; t h i s . s c r o l l P a r e n t = t h i s . h e l p e r . s c r o l l P a r e n t ( ) ; t h i s . o f f s e t = t h i s . c u r r e n t I t e m . o f f s e t ( ) ; t h i s . o f f s e t = { t o p : t h i s . o f f s e t . t o p - t h i s . m a r g i n s . t o p , 
 l e f t : t h i s . o f f s e t . l e f t - t h i s . m a r g i n s . l e f t } ; t h i s . h e l p e r . c s s ( " p o s i t i o n " , " a b s o l u t e " ) ; t h i s . c s s P o s i t i o n = t h i s . h e l p e r . c s s ( " p o s i t i o n " ) ; a . e x t e n d ( t h i s . o f f s e t , { c l i c k : { l e f t : d . p a g e X - t h i s . o f f s e t . l e f t , t o p : d . p a g e Y - t h i s . o f f s e t . t o p } , p a r e n t : t h i s . _ g e t P a r e n t O f f s e t ( ) , r e l a t i v e : t h i s . _ g e t R e l a t i v e O f f s e t ( ) } ) ; t h i s . o r i g i n a l P o s i t i o n = t h i s . _ g e n e r a t e P o s i t i o n ( d ) ; t h i s . o r i g i n a l P a g e X = d . p a g e X ; t h i s . o r i g i n a l P a g e Y = d . p a g e Y ; c . c u r s o r A t & & t h i s . _ a d j u s t O f f s e t F r o m H e l p e r ( c . c u r s o r A t ) ; t h i s . d o m P o s i t i o n = { p r e v : t h i s . c u r r e n t I t e m . p r e v ( ) [ 0 ] , p a r e n t : t h i s . c u r r e n t I t e m . p a r e n t ( ) [ 0 ] } ; 
 t h i s . h e l p e r [ 0 ] ! = t h i s . c u r r e n t I t e m [ 0 ] & & t h i s . c u r r e n t I t e m . h i d e ( ) ; t h i s . _ c r e a t e P l a c e h o l d e r ( ) ; c . c o n t a i n m e n t & & t h i s . _ s e t C o n t a i n m e n t ( ) ; i f ( c . c u r s o r ) { i f ( a ( " b o d y " ) . c s s ( " c u r s o r " ) ) t h i s . _ s t o r e d C u r s o r = a ( " b o d y " ) . c s s ( " c u r s o r " ) ; a ( " b o d y " ) . c s s ( " c u r s o r " , c . c u r s o r ) } i f ( c . o p a c i t y ) { i f ( t h i s . h e l p e r . c s s ( " o p a c i t y " ) ) t h i s . _ s t o r e d O p a c i t y = t h i s . h e l p e r . c s s ( " o p a c i t y " ) ; t h i s . h e l p e r . c s s ( " o p a c i t y " , c . o p a c i t y ) } i f ( c . z I n d e x ) { i f ( t h i s . h e l p e r . c s s ( " z I n d e x " ) ) t h i s . _ s t o r e d Z I n d e x = t h i s . h e l p e r . c s s ( " z I n d e x " ) ; t h i s . h e l p e r . c s s ( " z I n d e x " , c . z I n d e x ) } i f ( t h i s . s c r o l l P a r e n t [ 0 ] ! = 
 d o c u m e n t & & t h i s . s c r o l l P a r e n t [ 0 ] . t a g N a m e ! = " H T M L " ) t h i s . o v e r f l o w O f f s e t = t h i s . s c r o l l P a r e n t . o f f s e t ( ) ; t h i s . _ t r i g g e r ( " s t a r t " , d , t h i s . _ u i H a s h ( ) ) ; t h i s . _ p r e s e r v e H e l p e r P r o p o r t i o n s | | t h i s . _ c a c h e H e l p e r P r o p o r t i o n s ( ) ; i f ( ! f ) f o r ( f = t h i s . c o n t a i n e r s . l e n g t h - 1 ; f > = 0 ; f - - ) t h i s . c o n t a i n e r s [ f ] . _ t r i g g e r ( " a c t i v a t e " , d , g . _ u i H a s h ( t h i s ) ) ; i f ( a . u i . d d m a n a g e r ) a . u i . d d m a n a g e r . c u r r e n t = t h i s ; a . u i . d d m a n a g e r & & ! c . d r o p B e h a v i o u r & & a . u i . d d m a n a g e r . p r e p a r e O f f s e t s ( t h i s , d ) ; t h i s . d r a g g i n g = t r u e ; t h i s . h e l p e r . a d d C l a s s ( " u i - s o r t a b l e - h e l p e r " ) ; t h i s . _ m o u s e D r a g ( d ) ; 
 r e t u r n   t r u e } , _ m o u s e D r a g : f u n c t i o n ( d ) { t h i s . p o s i t i o n = t h i s . _ g e n e r a t e P o s i t i o n ( d ) ; t h i s . p o s i t i o n A b s = t h i s . _ c o n v e r t P o s i t i o n T o ( " a b s o l u t e " ) ; i f ( ! t h i s . l a s t P o s i t i o n A b s ) t h i s . l a s t P o s i t i o n A b s = t h i s . p o s i t i o n A b s ; i f ( t h i s . o p t i o n s . s c r o l l ) { v a r   c = t h i s . o p t i o n s , f = f a l s e ; i f ( t h i s . s c r o l l P a r e n t [ 0 ] ! = d o c u m e n t & & t h i s . s c r o l l P a r e n t [ 0 ] . t a g N a m e ! = " H T M L " ) { i f ( t h i s . o v e r f l o w O f f s e t . t o p + t h i s . s c r o l l P a r e n t [ 0 ] . o f f s e t H e i g h t - d . p a g e Y < c . s c r o l l S e n s i t i v i t y ) t h i s . s c r o l l P a r e n t [ 0 ] . s c r o l l T o p = f = t h i s . s c r o l l P a r e n t [ 0 ] . s c r o l l T o p + c . s c r o l l S p e e d ; e l s e   i f ( d . p a g e Y - t h i s . o v e r f l o w O f f s e t . t o p < 
 c . s c r o l l S e n s i t i v i t y ) t h i s . s c r o l l P a r e n t [ 0 ] . s c r o l l T o p = f = t h i s . s c r o l l P a r e n t [ 0 ] . s c r o l l T o p - c . s c r o l l S p e e d ; i f ( t h i s . o v e r f l o w O f f s e t . l e f t + t h i s . s c r o l l P a r e n t [ 0 ] . o f f s e t W i d t h - d . p a g e X < c . s c r o l l S e n s i t i v i t y ) t h i s . s c r o l l P a r e n t [ 0 ] . s c r o l l L e f t = f = t h i s . s c r o l l P a r e n t [ 0 ] . s c r o l l L e f t + c . s c r o l l S p e e d ; e l s e   i f ( d . p a g e X - t h i s . o v e r f l o w O f f s e t . l e f t < c . s c r o l l S e n s i t i v i t y ) t h i s . s c r o l l P a r e n t [ 0 ] . s c r o l l L e f t = f = t h i s . s c r o l l P a r e n t [ 0 ] . s c r o l l L e f t - c . s c r o l l S p e e d } e l s e { i f ( d . p a g e Y - a ( d o c u m e n t ) . s c r o l l T o p ( ) < c . s c r o l l S e n s i t i v i t y ) f = a ( d o c u m e n t ) . s c r o l l T o p ( a ( d o c u m e n t ) . s c r o l l T o p ( ) - 
 c . s c r o l l S p e e d ) ; e l s e   i f ( a ( w i n d o w ) . h e i g h t ( ) - ( d . p a g e Y - a ( d o c u m e n t ) . s c r o l l T o p ( ) ) < c . s c r o l l S e n s i t i v i t y ) f = a ( d o c u m e n t ) . s c r o l l T o p ( a ( d o c u m e n t ) . s c r o l l T o p ( ) + c . s c r o l l S p e e d ) ; i f ( d . p a g e X - a ( d o c u m e n t ) . s c r o l l L e f t ( ) < c . s c r o l l S e n s i t i v i t y ) f = a ( d o c u m e n t ) . s c r o l l L e f t ( a ( d o c u m e n t ) . s c r o l l L e f t ( ) - c . s c r o l l S p e e d ) ; e l s e   i f ( a ( w i n d o w ) . w i d t h ( ) - ( d . p a g e X - a ( d o c u m e n t ) . s c r o l l L e f t ( ) ) < c . s c r o l l S e n s i t i v i t y ) f = a ( d o c u m e n t ) . s c r o l l L e f t ( a ( d o c u m e n t ) . s c r o l l L e f t ( ) + c . s c r o l l S p e e d ) } f ! = = f a l s e & & a . u i . d d m a n a g e r & & ! c . d r o p B e h a v i o u r & & a . u i . d d m a n a g e r . p r e p a r e O f f s e t s ( t h i s , 
 d ) } t h i s . p o s i t i o n A b s = t h i s . _ c o n v e r t P o s i t i o n T o ( " a b s o l u t e " ) ; i f ( ! t h i s . o p t i o n s . a x i s | | t h i s . o p t i o n s . a x i s ! = " y " ) t h i s . h e l p e r [ 0 ] . s t y l e . l e f t = t h i s . p o s i t i o n . l e f t + " p x " ; i f ( ! t h i s . o p t i o n s . a x i s | | t h i s . o p t i o n s . a x i s ! = " x " ) t h i s . h e l p e r [ 0 ] . s t y l e . t o p = t h i s . p o s i t i o n . t o p + " p x " ; f o r ( c = t h i s . i t e m s . l e n g t h - 1 ; c > = 0 ; c - - ) { f = t h i s . i t e m s [ c ] ; v a r   g = f . i t e m [ 0 ] , e = t h i s . _ i n t e r s e c t s W i t h P o i n t e r ( f ) ; i f ( e ) i f ( g ! = t h i s . c u r r e n t I t e m [ 0 ] & & t h i s . p l a c e h o l d e r [ e = = 1 ? " n e x t " : " p r e v " ] ( ) [ 0 ] ! = g & & ! a . u i . c o n t a i n s ( t h i s . p l a c e h o l d e r [ 0 ] , g ) & & ( t h i s . o p t i o n s . t y p e = = " s e m i - d y n a m i c " ? ! a . u i . c o n t a i n s ( t h i s . e l e m e n t [ 0 ] , 
 g ) : t r u e ) ) { t h i s . d i r e c t i o n = e = = 1 ? " d o w n " : " u p " ; i f ( t h i s . o p t i o n s . t o l e r a n c e = = " p o i n t e r " | | t h i s . _ i n t e r s e c t s W i t h S i d e s ( f ) ) t h i s . _ r e a r r a n g e ( d , f ) ; e l s e   b r e a k ; t h i s . _ t r i g g e r ( " c h a n g e " , d , t h i s . _ u i H a s h ( ) ) ; b r e a k } } t h i s . _ c o n t a c t C o n t a i n e r s ( d ) ; a . u i . d d m a n a g e r & & a . u i . d d m a n a g e r . d r a g ( t h i s , d ) ; t h i s . _ t r i g g e r ( " s o r t " , d , t h i s . _ u i H a s h ( ) ) ; t h i s . l a s t P o s i t i o n A b s = t h i s . p o s i t i o n A b s ; r e t u r n   f a l s e } , _ m o u s e S t o p : f u n c t i o n ( d , c ) { i f ( d ) { a . u i . d d m a n a g e r & & ! t h i s . o p t i o n s . d r o p B e h a v i o u r & & a . u i . d d m a n a g e r . d r o p ( t h i s , d ) ; i f ( t h i s . o p t i o n s . r e v e r t ) { v a r   f = t h i s ; c = f . p l a c e h o l d e r . o f f s e t ( ) ; 
 f . r e v e r t i n g = t r u e ; a ( t h i s . h e l p e r ) . a n i m a t e ( { l e f t : c . l e f t - t h i s . o f f s e t . p a r e n t . l e f t - f . m a r g i n s . l e f t + ( t h i s . o f f s e t P a r e n t [ 0 ] = = d o c u m e n t . b o d y ? 0 : t h i s . o f f s e t P a r e n t [ 0 ] . s c r o l l L e f t ) , t o p : c . t o p - t h i s . o f f s e t . p a r e n t . t o p - f . m a r g i n s . t o p + ( t h i s . o f f s e t P a r e n t [ 0 ] = = d o c u m e n t . b o d y ? 0 : t h i s . o f f s e t P a r e n t [ 0 ] . s c r o l l T o p ) } , p a r s e I n t ( t h i s . o p t i o n s . r e v e r t , 1 0 ) | | 5 0 0 , f u n c t i o n ( ) { f . _ c l e a r ( d ) } ) } e l s e   t h i s . _ c l e a r ( d , c ) ; r e t u r n   f a l s e } } , c a n c e l : f u n c t i o n ( ) { v a r   d = t h i s ; i f ( t h i s . d r a g g i n g ) { t h i s . _ m o u s e U p ( { t a r g e t : n u l l } ) ; t h i s . o p t i o n s . h e l p e r = = " o r i g i n a l " ? t h i s . c u r r e n t I t e m . c s s ( t h i s . _ s t o r e d C S S ) . r e m o v e C l a s s ( " u i - s o r t a b l e - h e l p e r " ) : 
 t h i s . c u r r e n t I t e m . s h o w ( ) ; f o r ( v a r   c = t h i s . c o n t a i n e r s . l e n g t h - 1 ; c > = 0 ; c - - ) { t h i s . c o n t a i n e r s [ c ] . _ t r i g g e r ( " d e a c t i v a t e " , n u l l , d . _ u i H a s h ( t h i s ) ) ; i f ( t h i s . c o n t a i n e r s [ c ] . c o n t a i n e r C a c h e . o v e r ) { t h i s . c o n t a i n e r s [ c ] . _ t r i g g e r ( " o u t " , n u l l , d . _ u i H a s h ( t h i s ) ) ; t h i s . c o n t a i n e r s [ c ] . c o n t a i n e r C a c h e . o v e r = 0 } } } i f ( t h i s . p l a c e h o l d e r ) { t h i s . p l a c e h o l d e r [ 0 ] . p a r e n t N o d e & & t h i s . p l a c e h o l d e r [ 0 ] . 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 . p l a c e h o l d e r [ 0 ] ) ; t h i s . o p t i o n s . h e l p e r ! = " o r i g i n a l " & & t h i s . h e l p e r & & t h i s . h e l p e r [ 0 ] . p a r e n t N o d e & & t h i s . h e l p e r . r e m o v e ( ) ; a . e x t e n d ( t h i s , { h e l p e r : n u l l , 
 d r a g g i n g : f a l s e , r e v e r t i n g : f a l s e , _ n o F i n a l S o r t : n u l l } ) ; t h i s . d o m P o s i t i o n . p r e v ? a ( t h i s . d o m P o s i t i o n . p r e v ) . a f t e r ( t h i s . c u r r e n t I t e m ) : a ( t h i s . d o m P o s i t i o n . p a r e n t ) . p r e p e n d ( t h i s . c u r r e n t I t e m ) } r e t u r n   t h i s } , s e r i a l i z e : f u n c t i o n ( d ) { v a r   c = t h i s . _ g e t I t e m s A s j Q u e r y ( d & & d . c o n n e c t e d ) , f = [ ] ; d = d | | { } ; a ( c ) . e a c h ( f u n c t i o n ( ) { v a r   g = ( a ( d . i t e m | | t h i s ) . a t t r ( d . a t t r i b u t e | | " i d " ) | | " " ) . m a t c h ( d . e x p r e s s i o n | | / ( . + ) [ - = _ ] ( . + ) / ) ; i f ( g ) f . p u s h ( ( d . k e y | | g [ 1 ] + " [ ] " ) + " = " + ( d . k e y & & d . e x p r e s s i o n ? g [ 1 ] : g [ 2 ] ) ) } ) ; ! f . l e n g t h & & d . k e y & & f . p u s h ( d . k e y + " = " ) ; r e t u r n   f . j o i n ( " & " ) } , 
 t o A r r a y : f u n c t i o n ( d ) { v a r   c = t h i s . _ g e t I t e m s A s j Q u e r y ( d & & d . c o n n e c t e d ) , f = [ ] ; d = d | | { } ; c . e a c h ( f u n c t i o n ( ) { f . p u s h ( a ( d . i t e m | | t h i s ) . a t t r ( d . a t t r i b u t e | | " i d " ) | | " " ) } ) ; r e t u r n   f } , _ i n t e r s e c t s W i t h : f u n c t i o n ( d ) { v a r   c = t h i s . p o s i t i o n A b s . l e f t , f = c + t h i s . h e l p e r P r o p o r t i o n s . w i d t h , g = t h i s . p o s i t i o n A b s . t o p , e = g + t h i s . h e l p e r P r o p o r t i o n s . h e i g h t , i = d . l e f t , b = i + d . w i d t h , h = d . t o p , j = h + d . h e i g h t , l = t h i s . o f f s e t . c l i c k . t o p , o = t h i s . o f f s e t . c l i c k . l e f t ; l = g + l > h & & g + l < j & & c + o > i & & c + o < b ; r e t u r n   t h i s . o p t i o n s . t o l e r a n c e = = " p o i n t e r " | | t h i s . o p t i o n s . f o r c e P o i n t e r F o r C o n t a i n e r s | | 
 t h i s . o p t i o n s . t o l e r a n c e ! = " p o i n t e r " & & t h i s . h e l p e r P r o p o r t i o n s [ t h i s . f l o a t i n g ? " w i d t h " : " h e i g h t " ] > d [ t h i s . f l o a t i n g ? " w i d t h " : " h e i g h t " ] ? l : i < c + t h i s . h e l p e r P r o p o r t i o n s . w i d t h / 2 & & f - t h i s . h e l p e r P r o p o r t i o n s . w i d t h / 2 < b & & h < g + t h i s . h e l p e r P r o p o r t i o n s . h e i g h t / 2 & & e - t h i s . h e l p e r P r o p o r t i o n s . h e i g h t / 2 < j } , _ i n t e r s e c t s W i t h P o i n t e r : f u n c t i o n ( d ) { v a r   c = a . u i . i s O v e r A x i s ( t h i s . p o s i t i o n A b s . t o p + t h i s . o f f s e t . c l i c k . t o p , d . t o p , d . h e i g h t ) ; d = a . u i . i s O v e r A x i s ( t h i s . p o s i t i o n A b s . l e f t + t h i s . o f f s e t . c l i c k . l e f t , d . l e f t , d . w i d t h ) ; c = c & & d ; d = t h i s . _ g e t D r a g V e r t i c a l D i r e c t i o n ( ) ; 
 v a r   f = t h i s . _ g e t D r a g H o r i z o n t a l D i r e c t i o n ( ) ; i f ( ! c ) r e t u r n   f a l s e ; r e t u r n   t h i s . f l o a t i n g ? f & & f = = " r i g h t " | | d = = " d o w n " ? 2 : 1 : d & & ( d = = " d o w n " ? 2 : 1 ) } , _ i n t e r s e c t s W i t h S i d e s : f u n c t i o n ( d ) { v a r   c = a . u i . i s O v e r A x i s ( t h i s . p o s i t i o n A b s . t o p + t h i s . o f f s e t . c l i c k . t o p , d . t o p + d . h e i g h t / 2 , d . h e i g h t ) ; d = a . u i . i s O v e r A x i s ( t h i s . p o s i t i o n A b s . l e f t + t h i s . o f f s e t . c l i c k . l e f t , d . l e f t + d . w i d t h / 2 , d . w i d t h ) ; v a r   f = t h i s . _ g e t D r a g V e r t i c a l D i r e c t i o n ( ) , g = t h i s . _ g e t D r a g H o r i z o n t a l D i r e c t i o n ( ) ; r e t u r n   t h i s . f l o a t i n g & & g ? g = = " r i g h t " & & d | | g = = " l e f t " & & ! d : f & & ( f = = " d o w n " & & c | | f = = " u p " & & ! c ) } , 
 _ g e t D r a g V e r t i c a l D i r e c t i o n : f u n c t i o n ( ) { v a r   d = t h i s . p o s i t i o n A b s . t o p - t h i s . l a s t P o s i t i o n A b s . t o p ; r e t u r n   d ! = 0 & & ( d > 0 ? " d o w n " : " u p " ) } , _ g e t D r a g H o r i z o n t a l D i r e c t i o n : f u n c t i o n ( ) { v a r   d = t h i s . p o s i t i o n A b s . l e f t - t h i s . l a s t P o s i t i o n A b s . l e f t ; r e t u r n   d ! = 0 & & ( d > 0 ? " r i g h t " : " l e f t " ) } , r e f r e s h : f u n c t i o n ( d ) { t h i s . _ r e f r e s h I t e m s ( d ) ; t h i s . r e f r e s h P o s i t i o n s ( ) ; r e t u r n   t h i s } , _ c o n n e c t W i t h : f u n c t i o n ( ) { v a r   d = t h i s . o p t i o n s ; r e t u r n   d . c o n n e c t W i t h . c o n s t r u c t o r = = S t r i n g ? [ d . c o n n e c t W i t h ] : d . c o n n e c t W i t h } , _ g e t I t e m s A s j Q u e r y : f u n c t i o n ( d ) { v a r   c = [ ] , f = [ ] , g = t h i s . _ c o n n e c t W i t h ( ) ; 
 i f ( g & & d ) f o r ( d = g . l e n g t h - 1 ; d > = 0 ; d - - ) f o r ( v a r   e = a ( g [ d ] ) , i = e . l e n g t h - 1 ; i > = 0 ; i - - ) { v a r   b = a . d a t a ( e [ i ] , " s o r t a b l e " ) ; i f ( b & & b ! = t h i s & & ! b . o p t i o n s . d i s a b l e d ) f . p u s h ( [ a . i s F u n c t i o n ( b . o p t i o n s . i t e m s ) ? b . o p t i o n s . i t e m s . c a l l ( b . e l e m e n t ) : a ( b . o p t i o n s . i t e m s , b . e l e m e n t ) . n o t ( " . u i - s o r t a b l e - h e l p e r " ) . n o t ( " . u i - s o r t a b l e - p l a c e h o l d e r " ) , b ] ) } f . p u s h ( [ a . i s F u n c t i o n ( t h i s . o p t i o n s . i t e m s ) ? t h i s . o p t i o n s . i t e m s . c a l l ( t h i s . e l e m e n t , n u l l , { o p t i o n s : t h i s . o p t i o n s , i t e m : t h i s . c u r r e n t I t e m } ) : a ( t h i s . o p t i o n s . i t e m s , t h i s . e l e m e n t ) . n o t ( " . u i - s o r t a b l e - h e l p e r " ) . n o t ( " . u i - s o r t a b l e - p l a c e h o l d e r " ) , 
 t h i s ] ) ; f o r ( d = f . l e n g t h - 1 ; d > = 0 ; d - - ) f [ d ] [ 0 ] . e a c h ( f u n c t i o n ( ) { c . p u s h ( t h i s ) } ) ; r e t u r n   a ( c ) } , _ r e m o v e C u r r e n t s F r o m I t e m s : f u n c t i o n ( ) { f o r ( v a r   d = t h i s . c u r r e n t I t e m . f i n d ( " : d a t a ( s o r t a b l e - i t e m ) " ) , c = 0 ; c < t h i s . i t e m s . l e n g t h ; c + + ) f o r ( v a r   f = 0 ; f < d . l e n g t h ; f + + ) d [ f ] = = t h i s . i t e m s [ c ] . i t e m [ 0 ] & & t h i s . i t e m s . s p l i c e ( c , 1 ) } , _ r e f r e s h I t e m s : f u n c t i o n ( d ) { t h i s . i t e m s = [ ] ; t h i s . c o n t a i n e r s = [ t h i s ] ; v a r   c = t h i s . i t e m s , f = [ [ a . i s F u n c t i o n ( t h i s . o p t i o n s . i t e m s ) ? t h i s . o p t i o n s . i t e m s . c a l l ( t h i s . e l e m e n t [ 0 ] , d , { i t e m : t h i s . c u r r e n t I t e m } ) : a ( t h i s . o p t i o n s . i t e m s , t h i s . e l e m e n t ) , 
 t h i s ] ] , g = t h i s . _ c o n n e c t W i t h ( ) ; i f ( g ) f o r ( v a r   e = g . l e n g t h - 1 ; e > = 0 ; e - - ) f o r ( v a r   i = a ( g [ e ] ) , b = i . l e n g t h - 1 ; b > = 0 ; b - - ) { v a r   h = a . d a t a ( i [ b ] , " s o r t a b l e " ) ; i f ( h & & h ! = t h i s & & ! h . o p t i o n s . d i s a b l e d ) { f . p u s h ( [ a . i s F u n c t i o n ( h . o p t i o n s . i t e m s ) ? h . o p t i o n s . i t e m s . c a l l ( h . e l e m e n t [ 0 ] , d , { i t e m : t h i s . c u r r e n t I t e m } ) : a ( h . o p t i o n s . i t e m s , h . e l e m e n t ) , h ] ) ; t h i s . c o n t a i n e r s . p u s h ( h ) } } f o r ( e = f . l e n g t h - 1 ; e > = 0 ; e - - ) { d = f [ e ] [ 1 ] ; g = f [ e ] [ 0 ] ; b = 0 ; f o r ( i = g . l e n g t h ; b < i ; b + + ) { h = a ( g [ b ] ) ; h . d a t a ( " s o r t a b l e - i t e m " , d ) ; c . p u s h ( { i t e m : h , i n s t a n c e : d , w i d t h : 0 , h e i g h t : 0 , l e f t : 0 , t o p : 0 } ) } } } , r e f r e s h P o s i t i o n s : f u n c t i o n ( d ) { i f ( t h i s . o f f s e t P a r e n t & & 
 t h i s . h e l p e r ) t h i s . o f f s e t . p a r e n t = t h i s . _ g e t P a r e n t O f f s e t ( ) ; f o r ( v a r   c = t h i s . i t e m s . l e n g t h - 1 ; c > = 0 ; c - - ) { v a r   f = t h i s . i t e m s [ c ] ; i f ( ! ( f . i n s t a n c e ! = t h i s . c u r r e n t C o n t a i n e r & & t h i s . c u r r e n t C o n t a i n e r & & f . i t e m [ 0 ] ! = t h i s . c u r r e n t I t e m [ 0 ] ) ) { v a r   g = t h i s . o p t i o n s . t o l e r a n c e E l e m e n t ? a ( t h i s . o p t i o n s . t o l e r a n c e E l e m e n t , f . i t e m ) : f . i t e m ; i f ( ! d ) { f . w i d t h = g . o u t e r W i d t h ( ) ; f . h e i g h t = g . o u t e r H e i g h t ( ) } g = g . o f f s e t ( ) ; f . l e f t = g . l e f t ; f . t o p = g . t o p } } i f ( t h i s . o p t i o n s . c u s t o m & & t h i s . o p t i o n s . c u s t o m . r e f r e s h C o n t a i n e r s ) t h i s . o p t i o n s . c u s t o m . r e f r e s h C o n t a i n e r s . c a l l ( t h i s ) ; e l s e   f o r ( c = 
 t h i s . c o n t a i n e r s . l e n g t h - 1 ; c > = 0 ; c - - ) { g = t h i s . c o n t a i n e r s [ c ] . e l e m e n t . o f f s e t ( ) ; t h i s . c o n t a i n e r s [ c ] . c o n t a i n e r C a c h e . l e f t = g . l e f t ; t h i s . c o n t a i n e r s [ c ] . c o n t a i n e r C a c h e . t o p = g . t o p ; t h i s . c o n t a i n e r s [ c ] . c o n t a i n e r C a c h e . w i d t h = t h i s . c o n t a i n e r s [ c ] . e l e m e n t . o u t e r W i d t h ( ) ; t h i s . c o n t a i n e r s [ c ] . c o n t a i n e r C a c h e . h e i g h t = t h i s . c o n t a i n e r s [ c ] . e l e m e n t . o u t e r H e i g h t ( ) } r e t u r n   t h i s } , _ c r e a t e P l a c e h o l d e r : f u n c t i o n ( d ) { v a r   c = d | | t h i s , f = c . o p t i o n s ; i f ( ! f . p l a c e h o l d e r | | f . p l a c e h o l d e r . c o n s t r u c t o r = = S t r i n g ) { v a r   g = f . p l a c e h o l d e r ; f . p l a c e h o l d e r = { e l e m e n t : f u n c t i o n ( ) { v a r   e = 
 a ( d o c u m e n t . c r e a t e E l e m e n t ( c . c u r r e n t I t e m [ 0 ] . n o d e N a m e ) ) . a d d C l a s s ( g | | c . c u r r e n t I t e m [ 0 ] . c l a s s N a m e + "   u i - s o r t a b l e - p l a c e h o l d e r " ) . r e m o v e C l a s s ( " u i - s o r t a b l e - h e l p e r " ) [ 0 ] ; i f ( ! g ) e . s t y l e . v i s i b i l i t y = " h i d d e n " ; r e t u r n   e } , u p d a t e : f u n c t i o n ( e , i ) { i f ( ! ( g & & ! f . f o r c e P l a c e h o l d e r S i z e ) ) { i . h e i g h t ( ) | | i . h e i g h t ( c . c u r r e n t I t e m . i n n e r H e i g h t ( ) - p a r s e I n t ( c . c u r r e n t I t e m . c s s ( " p a d d i n g T o p " ) | | 0 , 1 0 ) - p a r s e I n t ( c . c u r r e n t I t e m . c s s ( " p a d d i n g B o t t o m " ) | | 0 , 1 0 ) ) ; i . w i d t h ( ) | | i . w i d t h ( c . c u r r e n t I t e m . i n n e r W i d t h ( ) - p a r s e I n t ( c . c u r r e n t I t e m . c s s ( " p a d d i n g L e f t " ) | | 0 , 1 0 ) - p a r s e I n t ( c . c u r r e n t I t e m . c s s ( " p a d d i n g R i g h t " ) | | 
 0 , 1 0 ) ) } } } } c . p l a c e h o l d e r = a ( f . p l a c e h o l d e r . e l e m e n t . c a l l ( c . e l e m e n t , c . c u r r e n t I t e m ) ) ; c . c u r r e n t I t e m . a f t e r ( c . p l a c e h o l d e r ) ; f . p l a c e h o l d e r . u p d a t e ( c , c . p l a c e h o l d e r ) } , _ c o n t a c t C o n t a i n e r s : f u n c t i o n ( d ) { f o r ( v a r   c = n u l l , f = n u l l , g = t h i s . c o n t a i n e r s . l e n g t h - 1 ; g > = 0 ; g - - ) i f ( ! a . u i . c o n t a i n s ( t h i s . c u r r e n t I t e m [ 0 ] , t h i s . c o n t a i n e r s [ g ] . e l e m e n t [ 0 ] ) ) i f ( t h i s . _ i n t e r s e c t s W i t h ( t h i s . c o n t a i n e r s [ g ] . c o n t a i n e r C a c h e ) ) { i f ( ! ( c & & a . u i . c o n t a i n s ( t h i s . c o n t a i n e r s [ g ] . e l e m e n t [ 0 ] , c . e l e m e n t [ 0 ] ) ) ) { c = t h i s . c o n t a i n e r s [ g ] ; f = g } } e l s e   i f ( t h i s . c o n t a i n e r s [ g ] . c o n t a i n e r C a c h e . o v e r ) { t h i s . c o n t a i n e r s [ g ] . _ t r i g g e r ( " o u t " , 
 d , t h i s . _ u i H a s h ( t h i s ) ) ; t h i s . c o n t a i n e r s [ g ] . c o n t a i n e r C a c h e . o v e r = 0 } i f ( c ) i f ( t h i s . c o n t a i n e r s . l e n g t h = = = 1 ) { t h i s . c o n t a i n e r s [ f ] . _ t r i g g e r ( " o v e r " , d , t h i s . _ u i H a s h ( t h i s ) ) ; t h i s . c o n t a i n e r s [ f ] . c o n t a i n e r C a c h e . o v e r = 1 } e l s e   i f ( t h i s . c u r r e n t C o n t a i n e r ! = t h i s . c o n t a i n e r s [ f ] ) { c = 1 E 4 ; g = n u l l ; f o r ( v a r   e = t h i s . p o s i t i o n A b s [ t h i s . c o n t a i n e r s [ f ] . f l o a t i n g ? " l e f t " : " t o p " ] , i = t h i s . i t e m s . l e n g t h - 1 ; i > = 0 ; i - - ) i f ( a . u i . c o n t a i n s ( t h i s . c o n t a i n e r s [ f ] . e l e m e n t [ 0 ] , t h i s . i t e m s [ i ] . i t e m [ 0 ] ) ) { v a r   b = t h i s . i t e m s [ i ] [ t h i s . c o n t a i n e r s [ f ] . f l o a t i n g ? " l e f t " : " t o p " ] ; i f ( M a t h . a b s ( b - 
 e ) < c ) { c = M a t h . a b s ( b - e ) ; g = t h i s . i t e m s [ i ] } } i f ( g | | t h i s . o p t i o n s . d r o p O n E m p t y ) { t h i s . c u r r e n t C o n t a i n e r = t h i s . c o n t a i n e r s [ f ] ; g ? t h i s . _ r e a r r a n g e ( d , g , n u l l , t r u e ) : t h i s . _ r e a r r a n g e ( d , n u l l , t h i s . c o n t a i n e r s [ f ] . e l e m e n t , t r u e ) ; t h i s . _ t r i g g e r ( " c h a n g e " , d , t h i s . _ u i H a s h ( ) ) ; t h i s . c o n t a i n e r s [ f ] . _ t r i g g e r ( " c h a n g e " , d , t h i s . _ u i H a s h ( t h i s ) ) ; t h i s . o p t i o n s . p l a c e h o l d e r . u p d a t e ( t h i s . c u r r e n t C o n t a i n e r , t h i s . p l a c e h o l d e r ) ; t h i s . c o n t a i n e r s [ f ] . _ t r i g g e r ( " o v e r " , d , t h i s . _ u i H a s h ( t h i s ) ) ; t h i s . c o n t a i n e r s [ f ] . c o n t a i n e r C a c h e . o v e r = 1 } } } , _ c r e a t e H e l p e r : f u n c t i o n ( d ) { v a r   c = 
 t h i s . o p t i o n s ; d = a . i s F u n c t i o n ( c . h e l p e r ) ? a ( c . h e l p e r . a p p l y ( t h i s . e l e m e n t [ 0 ] , [ d , t h i s . c u r r e n t I t e m ] ) ) : c . h e l p e r = = " c l o n e " ? t h i s . c u r r e n t I t e m . c l o n e ( ) : t h i s . c u r r e n t I t e m ; d . p a r e n t s ( " b o d y " ) . l e n g t h | | a ( c . a p p e n d T o ! = " p a r e n t " ? c . a p p e n d T o : t h i s . c u r r e n t I t e m [ 0 ] . p a r e n t N o d e ) [ 0 ] . a p p e n d C h i l d ( d [ 0 ] ) ; i f ( d [ 0 ] = = t h i s . c u r r e n t I t e m [ 0 ] ) t h i s . _ s t o r e d C S S = { w i d t h : t h i s . c u r r e n t I t e m [ 0 ] . s t y l e . w i d t h , h e i g h t : t h i s . c u r r e n t I t e m [ 0 ] . s t y l e . h e i g h t , p o s i t i o n : t h i s . c u r r e n t I t e m . c s s ( " p o s i t i o n " ) , t o p : t h i s . c u r r e n t I t e m . c s s ( " t o p " ) , l e f t : t h i s . c u r r e n t I t e m . c s s ( " l e f t " ) } ; i f ( d [ 0 ] . s t y l e . w i d t h = = 
 " " | | c . f o r c e H e l p e r S i z e ) d . w i d t h ( t h i s . c u r r e n t I t e m . w i d t h ( ) ) ; i f ( d [ 0 ] . s t y l e . h e i g h t = = " " | | c . f o r c e H e l p e r S i z e ) d . h e i g h t ( t h i s . c u r r e n t I t e m . h e i g h t ( ) ) ; r e t u r n   d } , _ a d j u s t O f f s e t F r o m H e l p e r : f u n c t i o n ( d ) { i f ( t y p e o f   d = = " s t r i n g " ) d = d . s p l i t ( "   " ) ; i f ( a . i s A r r a y ( d ) ) d = { l e f t : + d [ 0 ] , t o p : + d [ 1 ] | | 0 } ; i f ( " l e f t " i n   d ) t h i s . o f f s e t . c l i c k . l e f t = d . l e f t + t h i s . m a r g i n s . l e f t ; i f ( " r i g h t " i n   d ) t h i s . o f f s e t . c l i c k . l e f t = t h i s . h e l p e r P r o p o r t i o n s . w i d t h - d . r i g h t + t h i s . m a r g i n s . l e f t ; i f ( " t o p " i n   d ) t h i s . o f f s e t . c l i c k . t o p = d . t o p + t h i s . m a r g i n s . t o p ; i f ( " b o t t o m " i n   d ) t h i s . o f f s e t . c l i c k . t o p = 
 t h i s . h e l p e r P r o p o r t i o n s . h e i g h t - d . b o t t o m + t h i s . m a r g i n s . t o p } , _ g e t P a r e n t O f f s e t : f u n c t i o n ( ) { t h i s . o f f s e t P a r e n t = t h i s . h e l p e r . o f f s e t P a r e n t ( ) ; v a r   d = t h i s . o f f s e t P a r e n t . o f f s e t ( ) ; i f ( t h i s . c s s P o s i t i o n = = " a b s o l u t e " & & t h i s . s c r o l l P a r e n t [ 0 ] ! = d o c u m e n t & & a . u i . c o n t a i n s ( t h i s . s c r o l l P a r e n t [ 0 ] , t h i s . o f f s e t P a r e n t [ 0 ] ) ) { d . l e f t + = t h i s . s c r o l l P a r e n t . s c r o l l L e f t ( ) ; d . t o p + = t h i s . s c r o l l P a r e n t . s c r o l l T o p ( ) } i f ( t h i s . o f f s e t P a r e n t [ 0 ] = = d o c u m e n t . b o d y | | t h i s . o f f s e t P a r e n t [ 0 ] . t a g N a m e & & t h i s . o f f s e t P a r e n t [ 0 ] . t a g N a m e . t o L o w e r C a s e ( ) = = " h t m l " & & a . b r o w s e r . m s i e ) d = 
 { t o p : 0 , l e f t : 0 } ; r e t u r n { t o p : d . t o p + ( p a r s e I n t ( t h i s . o f f s e t P a r e n t . c s s ( " b o r d e r T o p W i d t h " ) , 1 0 ) | | 0 ) , l e f t : d . l e f t + ( p a r s e I n t ( t h i s . o f f s e t P a r e n t . c s s ( " b o r d e r L e f t W i d t h " ) , 1 0 ) | | 0 ) } } , _ g e t R e l a t i v e O f f s e t : f u n c t i o n ( ) { i f ( t h i s . c s s P o s i t i o n = = " r e l a t i v e " ) { v a r   d = t h i s . c u r r e n t I t e m . p o s i t i o n ( ) ; r e t u r n { t o p : d . t o p - ( p a r s e I n t ( t h i s . h e l p e r . c s s ( " t o p " ) , 1 0 ) | | 0 ) + t h i s . s c r o l l P a r e n t . s c r o l l T o p ( ) , l e f t : d . l e f t - ( p a r s e I n t ( t h i s . h e l p e r . c s s ( " l e f t " ) , 1 0 ) | | 0 ) + t h i s . s c r o l l P a r e n t . s c r o l l L e f t ( ) } } e l s e   r e t u r n { t o p : 0 , l e f t : 0 } } , _ c a c h e M a r g i n s : f u n c t i o n ( ) { t h i s . m a r g i n s = { l e f t : p a r s e I n t ( t h i s . c u r r e n t I t e m . c s s ( " m a r g i n L e f t " ) , 
 1 0 ) | | 0 , t o p : p a r s e I n t ( t h i s . c u r r e n t I t e m . c s s ( " m a r g i n T o p " ) , 1 0 ) | | 0 } } , _ c a c h e H e l p e r P r o p o r t i o n s : f u n c t i o n ( ) { t h i s . h e l p e r P r o p o r t i o n s = { w i d t h : t h i s . h e l p e r . o u t e r W i d t h ( ) , h e i g h t : t h i s . h e l p e r . o u t e r H e i g h t ( ) } } , _ s e t C o n t a i n m e n t : f u n c t i o n ( ) { v a r   d = t h i s . o p t i o n s ; i f ( d . c o n t a i n m e n t = = " p a r e n t " ) d . c o n t a i n m e n t = t h i s . h e l p e r [ 0 ] . p a r e n t N o d e ; i f ( d . c o n t a i n m e n t = = " d o c u m e n t " | | d . c o n t a i n m e n t = = " w i n d o w " ) t h i s . c o n t a i n m e n t = [ 0 - t h i s . o f f s e t . r e l a t i v e . l e f t - t h i s . o f f s e t . p a r e n t . l e f t , 0 - t h i s . o f f s e t . r e l a t i v e . t o p - t h i s . o f f s e t . p a r e n t . t o p , a ( d . c o n t a i n m e n t = = " d o c u m e n t " ? 
 d o c u m e n t : w i n d o w ) . w i d t h ( ) - t h i s . h e l p e r P r o p o r t i o n s . w i d t h - t h i s . m a r g i n s . l e f t , ( a ( d . c o n t a i n m e n t = = " d o c u m e n t " ? d o c u m e n t : w i n d o w ) . h e i g h t ( ) | | d o c u m e n t . b o d y . p a r e n t N o d e . s c r o l l H e i g h t ) - t h i s . h e l p e r P r o p o r t i o n s . h e i g h t - t h i s . m a r g i n s . t o p ] ; i f ( ! / ^ ( d o c u m e n t | w i n d o w | p a r e n t ) $ / . t e s t ( d . c o n t a i n m e n t ) ) { v a r   c = a ( d . c o n t a i n m e n t ) [ 0 ] ; d = a ( d . c o n t a i n m e n t ) . o f f s e t ( ) ; v a r   f = a ( c ) . c s s ( " o v e r f l o w " ) ! = " h i d d e n " ; t h i s . c o n t a i n m e n t = [ d . l e f t + ( p a r s e I n t ( a ( c ) . c s s ( " b o r d e r L e f t W i d t h " ) , 1 0 ) | | 0 ) + ( p a r s e I n t ( a ( c ) . c s s ( " p a d d i n g L e f t " ) , 1 0 ) | | 0 ) - t h i s . m a r g i n s . l e f t , d . t o p + ( p a r s e I n t ( a ( c ) . c s s ( " b o r d e r T o p W i d t h " ) , 
 1 0 ) | | 0 ) + ( p a r s e I n t ( a ( c ) . c s s ( " p a d d i n g T o p " ) , 1 0 ) | | 0 ) - t h i s . m a r g i n s . t o p , d . l e f t + ( f ? M a t h . m a x ( c . s c r o l l W i d t h , c . o f f s e t W i d t h ) : c . o f f s e t W i d t h ) - ( p a r s e I n t ( a ( c ) . c s s ( " b o r d e r L e f t W i d t h " ) , 1 0 ) | | 0 ) - ( p a r s e I n t ( a ( c ) . c s s ( " p a d d i n g R i g h t " ) , 1 0 ) | | 0 ) - t h i s . h e l p e r P r o p o r t i o n s . w i d t h - t h i s . m a r g i n s . l e f t , d . t o p + ( f ? M a t h . m a x ( c . s c r o l l H e i g h t , c . o f f s e t H e i g h t ) : c . o f f s e t H e i g h t ) - ( p a r s e I n t ( a ( c ) . c s s ( " b o r d e r T o p W i d t h " ) , 1 0 ) | | 0 ) - ( p a r s e I n t ( a ( c ) . c s s ( " p a d d i n g B o t t o m " ) , 1 0 ) | | 0 ) - t h i s . h e l p e r P r o p o r t i o n s . h e i g h t - t h i s . m a r g i n s . t o p ] } } , _ c o n v e r t P o s i t i o n T o : f u n c t i o n ( d , c ) { i f ( ! c ) c = 
 t h i s . p o s i t i o n ; d = d = = " a b s o l u t e " ? 1 : - 1 ; v a r   f = t h i s . c s s P o s i t i o n = = " a b s o l u t e " & & ! ( t h i s . s c r o l l P a r e n t [ 0 ] ! = d o c u m e n t & & a . u i . c o n t a i n s ( t h i s . s c r o l l P a r e n t [ 0 ] , t h i s . o f f s e t P a r e n t [ 0 ] ) ) ? t h i s . o f f s e t P a r e n t : t h i s . s c r o l l P a r e n t , g = / ( h t m l | b o d y ) / i . t e s t ( f [ 0 ] . t a g N a m e ) ; r e t u r n { t o p : c . t o p + t h i s . o f f s e t . r e l a t i v e . t o p * d + t h i s . o f f s e t . p a r e n t . t o p * d - ( a . b r o w s e r . s a f a r i & & t h i s . c s s P o s i t i o n = = " f i x e d " ? 0 : ( t h i s . c s s P o s i t i o n = = " f i x e d " ? - t h i s . s c r o l l P a r e n t . s c r o l l T o p ( ) : g ? 0 : f . s c r o l l T o p ( ) ) * d ) , l e f t : c . l e f t + t h i s . o f f s e t . r e l a t i v e . l e f t * d + t h i s . o f f s e t . p a r e n t . l e f t * d - ( a . b r o w s e r . s a f a r i & & 
 t h i s . c s s P o s i t i o n = = " f i x e d " ? 0 : ( t h i s . c s s P o s i t i o n = = " f i x e d " ? - t h i s . s c r o l l P a r e n t . s c r o l l L e f t ( ) : g ? 0 : f . s c r o l l L e f t ( ) ) * d ) } } , _ g e n e r a t e P o s i t i o n : f u n c t i o n ( d ) { v a r   c = t h i s . o p t i o n s , f = t h i s . c s s P o s i t i o n = = " a b s o l u t e " & & ! ( t h i s . s c r o l l P a r e n t [ 0 ] ! = d o c u m e n t & & a . u i . c o n t a i n s ( t h i s . s c r o l l P a r e n t [ 0 ] , t h i s . o f f s e t P a r e n t [ 0 ] ) ) ? t h i s . o f f s e t P a r e n t : t h i s . s c r o l l P a r e n t , g = / ( h t m l | b o d y ) / i . t e s t ( f [ 0 ] . t a g N a m e ) ; i f ( t h i s . c s s P o s i t i o n = = " r e l a t i v e " & & ! ( t h i s . s c r o l l P a r e n t [ 0 ] ! = d o c u m e n t & & t h i s . s c r o l l P a r e n t [ 0 ] ! = t h i s . o f f s e t P a r e n t [ 0 ] ) ) t h i s . o f f s e t . r e l a t i v e = t h i s . _ g e t R e l a t i v e O f f s e t ( ) ; 
 v a r   e = d . p a g e X , i = d . p a g e Y ; i f ( t h i s . o r i g i n a l P o s i t i o n ) { i f ( t h i s . c o n t a i n m e n t ) { i f ( d . p a g e X - t h i s . o f f s e t . c l i c k . l e f t < t h i s . c o n t a i n m e n t [ 0 ] ) e = t h i s . c o n t a i n m e n t [ 0 ] + t h i s . o f f s e t . c l i c k . l e f t ; i f ( d . p a g e Y - t h i s . o f f s e t . c l i c k . t o p < t h i s . c o n t a i n m e n t [ 1 ] ) i = t h i s . c o n t a i n m e n t [ 1 ] + t h i s . o f f s e t . c l i c k . t o p ; i f ( d . p a g e X - t h i s . o f f s e t . c l i c k . l e f t > t h i s . c o n t a i n m e n t [ 2 ] ) e = t h i s . c o n t a i n m e n t [ 2 ] + t h i s . o f f s e t . c l i c k . l e f t ; i f ( d . p a g e Y - t h i s . o f f s e t . c l i c k . t o p > t h i s . c o n t a i n m e n t [ 3 ] ) i = t h i s . c o n t a i n m e n t [ 3 ] + t h i s . o f f s e t . c l i c k . t o p } i f ( c . g r i d ) { i = t h i s . o r i g i n a l P a g e Y + M a t h . r o u n d ( ( i - 
 t h i s . o r i g i n a l P a g e Y ) / c . g r i d [ 1 ] ) * c . g r i d [ 1 ] ; i = t h i s . c o n t a i n m e n t ? ! ( i - t h i s . o f f s e t . c l i c k . t o p < t h i s . c o n t a i n m e n t [ 1 ] | | i - t h i s . o f f s e t . c l i c k . t o p > t h i s . c o n t a i n m e n t [ 3 ] ) ? i : ! ( i - t h i s . o f f s e t . c l i c k . t o p < t h i s . c o n t a i n m e n t [ 1 ] ) ? i - c . g r i d [ 1 ] : i + c . g r i d [ 1 ] : i ; e = t h i s . o r i g i n a l P a g e X + M a t h . r o u n d ( ( e - t h i s . o r i g i n a l P a g e X ) / c . g r i d [ 0 ] ) * c . g r i d [ 0 ] ; e = t h i s . c o n t a i n m e n t ? ! ( e - t h i s . o f f s e t . c l i c k . l e f t < t h i s . c o n t a i n m e n t [ 0 ] | | e - t h i s . o f f s e t . c l i c k . l e f t > t h i s . c o n t a i n m e n t [ 2 ] ) ? e : ! ( e - t h i s . o f f s e t . c l i c k . l e f t < t h i s . c o n t a i n m e n t [ 0 ] ) ? e - c . g r i d [ 0 ] : e + c . g r i d [ 0 ] : e } } r e t u r n { t o p : i - 
 t h i s . o f f s e t . c l i c k . t o p - t h i s . o f f s e t . r e l a t i v e . t o p - t h i s . o f f s e t . p a r e n t . t o p + ( a . b r o w s e r . s a f a r i & & t h i s . c s s P o s i t i o n = = " f i x e d " ? 0 : t h i s . c s s P o s i t i o n = = " f i x e d " ? - t h i s . s c r o l l P a r e n t . s c r o l l T o p ( ) : g ? 0 : f . s c r o l l T o p ( ) ) , l e f t : e - t h i s . o f f s e t . c l i c k . l e f t - t h i s . o f f s e t . r e l a t i v e . l e f t - t h i s . o f f s e t . p a r e n t . l e f t + ( a . b r o w s e r . s a f a r i & & t h i s . c s s P o s i t i o n = = " f i x e d " ? 0 : t h i s . c s s P o s i t i o n = = " f i x e d " ? - t h i s . s c r o l l P a r e n t . s c r o l l L e f t ( ) : g ? 0 : f . s c r o l l L e f t ( ) ) } } , _ r e a r r a n g e : f u n c t i o n ( d , c , f , g ) { f ? f [ 0 ] . a p p e n d C h i l d ( t h i s . p l a c e h o l d e r [ 0 ] ) : c . i t e m [ 0 ] . p a r e n t N o d e . i n s e r t B e f o r e ( t h i s . p l a c e h o l d e r [ 0 ] , 
 t h i s . d i r e c t i o n = = " d o w n " ? c . i t e m [ 0 ] : c . i t e m [ 0 ] . n e x t S i b l i n g ) ; t h i s . c o u n t e r = t h i s . c o u n t e r ? + + t h i s . c o u n t e r : 1 ; v a r   e = t h i s , i = t h i s . c o u n t e r ; w i n d o w . s e t T i m e o u t ( f u n c t i o n ( ) { i = = e . c o u n t e r & & e . r e f r e s h P o s i t i o n s ( ! g ) } , 0 ) } , _ c l e a r : f u n c t i o n ( d , c ) { t h i s . r e v e r t i n g = f a l s e ; v a r   f = [ ] ; ! t h i s . _ n o F i n a l S o r t & & t h i s . c u r r e n t I t e m [ 0 ] . p a r e n t N o d e & & t h i s . p l a c e h o l d e r . b e f o r e ( t h i s . c u r r e n t I t e m ) ; t h i s . _ n o F i n a l S o r t = n u l l ; i f ( t h i s . h e l p e r [ 0 ] = = t h i s . c u r r e n t I t e m [ 0 ] ) { f o r ( v a r   g   i n   t h i s . _ s t o r e d C S S ) i f ( t h i s . _ s t o r e d C S S [ g ] = = " a u t o " | | t h i s . _ s t o r e d C S S [ g ] = = " s t a t i c " ) t h i s . _ s t o r e d C S S [ g ] = 
 " " ; t h i s . c u r r e n t I t e m . c s s ( t h i s . _ s t o r e d C S S ) . r e m o v e C l a s s ( " u i - s o r t a b l e - h e l p e r " ) } e l s e   t h i s . c u r r e n t I t e m . s h o w ( ) ; t h i s . f r o m O u t s i d e & & ! c & & f . p u s h ( f u n c t i o n ( e ) { t h i s . _ t r i g g e r ( " r e c e i v e " , e , t h i s . _ u i H a s h ( t h i s . f r o m O u t s i d e ) ) } ) ; i f ( ( t h i s . f r o m O u t s i d e | | t h i s . d o m P o s i t i o n . p r e v ! = t h i s . c u r r e n t I t e m . p r e v ( ) . n o t ( " . u i - s o r t a b l e - h e l p e r " ) [ 0 ] | | t h i s . d o m P o s i t i o n . p a r e n t ! = t h i s . c u r r e n t I t e m . p a r e n t ( ) [ 0 ] ) & & ! c ) f . p u s h ( f u n c t i o n ( e ) { t h i s . _ t r i g g e r ( " u p d a t e " , e , t h i s . _ u i H a s h ( ) ) } ) ; i f ( ! a . u i . c o n t a i n s ( t h i s . e l e m e n t [ 0 ] , t h i s . c u r r e n t I t e m [ 0 ] ) ) { c | | f . p u s h ( f u n c t i o n ( e ) { t h i s . _ t r i g g e r ( " r e m o v e " , 
 e , t h i s . _ u i H a s h ( ) ) } ) ; f o r ( g = t h i s . c o n t a i n e r s . l e n g t h - 1 ; g > = 0 ; g - - ) i f ( a . u i . c o n t a i n s ( t h i s . c o n t a i n e r s [ g ] . e l e m e n t [ 0 ] , t h i s . c u r r e n t I t e m [ 0 ] ) & & ! c ) { f . p u s h ( f u n c t i o n ( e ) { r e t u r n   f u n c t i o n ( i ) { e . _ t r i g g e r ( " r e c e i v e " , i , t h i s . _ u i H a s h ( t h i s ) ) } } . c a l l ( t h i s , t h i s . c o n t a i n e r s [ g ] ) ) ; f . p u s h ( f u n c t i o n ( e ) { r e t u r n   f u n c t i o n ( i ) { e . _ t r i g g e r ( " u p d a t e " , i , t h i s . _ u i H a s h ( t h i s ) ) } } . c a l l ( t h i s , t h i s . c o n t a i n e r s [ g ] ) ) } } f o r ( g = t h i s . c o n t a i n e r s . l e n g t h - 1 ; g > = 0 ; g - - ) { c | | f . p u s h ( f u n c t i o n ( e ) { r e t u r n   f u n c t i o n ( i ) { e . _ t r i g g e r ( " d e a c t i v a t e " , i , t h i s . _ u i H a s h ( t h i s ) ) } } . c a l l ( t h i s , 
 t h i s . c o n t a i n e r s [ g ] ) ) ; i f ( t h i s . c o n t a i n e r s [ g ] . c o n t a i n e r C a c h e . o v e r ) { f . p u s h ( f u n c t i o n ( e ) { r e t u r n   f u n c t i o n ( i ) { e . _ t r i g g e r ( " o u t " , i , t h i s . _ u i H a s h ( t h i s ) ) } } . c a l l ( t h i s , t h i s . c o n t a i n e r s [ g ] ) ) ; t h i s . c o n t a i n e r s [ g ] . c o n t a i n e r C a c h e . o v e r = 0 } } t h i s . _ s t o r e d C u r s o r & & a ( " b o d y " ) . c s s ( " c u r s o r " , t h i s . _ s t o r e d C u r s o r ) ; t h i s . _ s t o r e d O p a c i t y & & t h i s . h e l p e r . c s s ( " o p a c i t y " , t h i s . _ s t o r e d O p a c i t y ) ; i f ( t h i s . _ s t o r e d Z I n d e x ) t h i s . h e l p e r . c s s ( " z I n d e x " , t h i s . _ s t o r e d Z I n d e x = = " a u t o " ? " " : t h i s . _ s t o r e d Z I n d e x ) ; t h i s . d r a g g i n g = f a l s e ; i f ( t h i s . c a n c e l H e l p e r R e m o v a l ) { i f ( ! c ) { t h i s . _ t r i g g e r ( " b e f o r e S t o p " , 
 d , t h i s . _ u i H a s h ( ) ) ; f o r ( g = 0 ; g < f . l e n g t h ; g + + ) f [ g ] . c a l l ( t h i s , d ) ; t h i s . _ t r i g g e r ( " s t o p " , d , t h i s . _ u i H a s h ( ) ) } r e t u r n   f a l s e } c | | t h i s . _ t r i g g e r ( " b e f o r e S t o p " , d , t h i s . _ u i H a s h ( ) ) ; t h i s . p l a c e h o l d e r [ 0 ] . 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 . p l a c e h o l d e r [ 0 ] ) ; t h i s . h e l p e r [ 0 ] ! = t h i s . c u r r e n t I t e m [ 0 ] & & t h i s . h e l p e r . r e m o v e ( ) ; t h i s . h e l p e r = n u l l ; i f ( ! c ) { f o r ( g = 0 ; g < f . l e n g t h ; g + + ) f [ g ] . c a l l ( t h i s , d ) ; t h i s . _ t r i g g e r ( " s t o p " , d , t h i s . _ u i H a s h ( ) ) } t h i s . f r o m O u t s i d e = f a l s e ; r e t u r n   t r u e } , _ t r i g g e r : f u n c t i o n ( ) { a . W i d g e t . p r o t o t y p e . _ t r i g g e r . a p p l y ( t h i s , a r g u m e n t s ) = = = f a l s e & & t h i s . c a n c e l ( ) } , 
 _ u i H a s h : f u n c t i o n ( d ) { v a r   c = d | | t h i s ; r e t u r n { h e l p e r : c . h e l p e r , p l a c e h o l d e r : c . p l a c e h o l d e r | | a ( [ ] ) , p o s i t i o n : c . p o s i t i o n , o r i g i n a l P o s i t i o n : c . o r i g i n a l P o s i t i o n , o f f s e t : c . p o s i t i o n A b s , i t e m : c . c u r r e n t I t e m , s e n d e r : d ? d . e l e m e n t : n u l l } } } ) ; a . e x t e n d ( a . u i . s o r t a b l e , { v e r s i o n : " 1 . 8 . 1 3 " } ) } ) ( j Q u e r y ) ; 
 j Q u e r y . e f f e c t s | | f u n c t i o n ( a , d ) { f u n c t i o n   c ( n ) { v a r   k ; i f ( n & & n . c o n s t r u c t o r = = A r r a y & & n . l e n g t h = = 3 ) r e t u r n   n ; i f ( k = / r g b \ ( \ s * ( [ 0 - 9 ] { 1 , 3 } ) \ s * , \ s * ( [ 0 - 9 ] { 1 , 3 } ) \ s * , \ s * ( [ 0 - 9 ] { 1 , 3 } ) \ s * \ ) / . e x e c ( n ) ) r e t u r n [ p a r s e I n t ( k [ 1 ] , 1 0 ) , p a r s e I n t ( k [ 2 ] , 1 0 ) , p a r s e I n t ( k [ 3 ] , 1 0 ) ] ; i f ( k = / r g b \ ( \ s * ( [ 0 - 9 ] + ( ? : \ . [ 0 - 9 ] + ) ? ) \ % \ s * , \ s * ( [ 0 - 9 ] + ( ? : \ . [ 0 - 9 ] + ) ? ) \ % \ s * , \ s * ( [ 0 - 9 ] + ( ? : \ . [ 0 - 9 ] + ) ? ) \ % \ s * \ ) / . e x e c ( n ) ) r e t u r n [ p a r s e F l o a t ( k [ 1 ] ) * 2 . 5 5 , p a r s e F l o a t ( k [ 2 ] ) * 2 . 5 5 , p a r s e F l o a t ( k [ 3 ] ) * 2 . 5 5 ] ; i f ( k = / # ( [ a - f A - F 0 - 9 ] { 2 } ) ( [ a - f A - F 0 - 9 ] { 2 } ) ( [ a - f A - F 0 - 9 ] { 2 } ) / . e x e c ( n ) ) r e t u r n [ p a r s e I n t ( k [ 1 ] , 
 1 6 ) , p a r s e I n t ( k [ 2 ] , 1 6 ) , p a r s e I n t ( k [ 3 ] , 1 6 ) ] ; i f ( k = / # ( [ a - f A - F 0 - 9 ] ) ( [ a - f A - F 0 - 9 ] ) ( [ a - f A - F 0 - 9 ] ) / . e x e c ( n ) ) r e t u r n [ p a r s e I n t ( k [ 1 ] + k [ 1 ] , 1 6 ) , p a r s e I n t ( k [ 2 ] + k [ 2 ] , 1 6 ) , p a r s e I n t ( k [ 3 ] + k [ 3 ] , 1 6 ) ] ; i f ( / r g b a \ ( 0 ,   0 ,   0 ,   0 \ ) / . e x e c ( n ) ) r e t u r n   j . t r a n s p a r e n t ; r e t u r n   j [ a . t r i m ( n ) . t o L o w e r C a s e ( ) ] } f u n c t i o n   f ( n , k ) { v a r   m ; d o { m = a . c u r C S S ( n , k ) ; i f ( m ! = " " & & m ! = " t r a n s p a r e n t " | | a . n o d e N a m e ( n , " b o d y " ) ) b r e a k ; k = " b a c k g r o u n d C o l o r " } w h i l e ( n = n . p a r e n t N o d e ) ; r e t u r n   c ( m ) } f u n c t i o n   g ( ) { v a r   n = d o c u m e n t . d e f a u l t V i e w ? d o c u m e n t . d e f a u l t V i e w . g e t C o m p u t e d S t y l e ( t h i s , n u l l ) : t h i s . c u r r e n t S t y l e , 
 k = { } , m , p ; i f ( n & & n . l e n g t h & & n [ 0 ] & & n [ n [ 0 ] ] ) f o r ( v a r   q = n . l e n g t h ; q - - ; ) { m = n [ q ] ; i f ( t y p e o f   n [ m ] = = " s t r i n g " ) { p = m . r e p l a c e ( / \ - ( \ w ) / g , f u n c t i o n ( s , r ) { r e t u r n   r . t o U p p e r C a s e ( ) } ) ; k [ p ] = n [ m ] } } e l s e   f o r ( m   i n   n ) i f ( t y p e o f   n [ m ] = = = " s t r i n g " ) k [ m ] = n [ m ] ; r e t u r n   k } f u n c t i o n   e ( n ) { v a r   k , m ; f o r ( k   i n   n ) { m = n [ k ] ; i f ( m = = n u l l | | a . i s F u n c t i o n ( m ) | | k   i n   o | | / s c r o l l b a r / . t e s t ( k ) | | ! / c o l o r / i . t e s t ( k ) & & i s N a N ( p a r s e F l o a t ( m ) ) ) d e l e t e   n [ k ] } r e t u r n   n } f u n c t i o n   i ( n , k ) { v a r   m = { _ : 0 } , p ; f o r ( p   i n   k ) i f ( n [ p ] ! = k [ p ] ) m [ p ] = k [ p ] ; r e t u r n   m } f u n c t i o n   b ( n , k , m , p ) { i f ( t y p e o f   n = = " o b j e c t " ) { p = 
 k ; m = n u l l ; k = n ; n = k . e f f e c t } i f ( a . i s F u n c t i o n ( k ) ) { p = k ; m = n u l l ; k = { } } i f ( t y p e o f   k = = " n u m b e r " | | a . f x . s p e e d s [ k ] ) { p = m ; m = k ; k = { } } i f ( a . i s F u n c t i o n ( m ) ) { p = m ; m = n u l l } k = k | | { } ; m = m | | k . d u r a t i o n ; m = a . f x . o f f ? 0 : t y p e o f   m = = " n u m b e r " ? m : m   i n   a . f x . s p e e d s ? a . f x . s p e e d s [ m ] : a . f x . s p e e d s . _ d e f a u l t ; p = p | | k . c o m p l e t e ; r e t u r n [ n , k , m , p ] } f u n c t i o n   h ( n ) { i f ( ! n | | t y p e o f   n = = = " n u m b e r " | | a . f x . s p e e d s [ n ] ) r e t u r n   t r u e ; i f ( t y p e o f   n = = = " s t r i n g " & & ! a . e f f e c t s [ n ] ) r e t u r n   t r u e ; r e t u r n   f a l s e } a . e f f e c t s = { } ; a . e a c h ( [ " b a c k g r o u n d C o l o r " , " b o r d e r B o t t o m C o l o r " , " b o r d e r L e f t C o l o r " , " b o r d e r R i g h t C o l o r " , 
 " b o r d e r T o p C o l o r " , " b o r d e r C o l o r " , " c o l o r " , " o u t l i n e C o l o r " ] , f u n c t i o n ( n , k ) { a . f x . s t e p [ k ] = f u n c t i o n ( m ) { i f ( ! m . c o l o r I n i t ) { m . s t a r t = f ( m . e l e m , k ) ; m . e n d = c ( m . e n d ) ; m . c o l o r I n i t = t r u e } m . e l e m . s t y l e [ k ] = " r g b ( " + M a t h . m a x ( M a t h . m i n ( p a r s e I n t ( m . p o s * ( m . e n d [ 0 ] - m . s t a r t [ 0 ] ) + m . s t a r t [ 0 ] , 1 0 ) , 2 5 5 ) , 0 ) + " , " + M a t h . m a x ( M a t h . m i n ( p a r s e I n t ( m . p o s * ( m . e n d [ 1 ] - m . s t a r t [ 1 ] ) + m . s t a r t [ 1 ] , 1 0 ) , 2 5 5 ) , 0 ) + " , " + M a t h . m a x ( M a t h . m i n ( p a r s e I n t ( m . p o s * ( m . e n d [ 2 ] - m . s t a r t [ 2 ] ) + m . s t a r t [ 2 ] , 1 0 ) , 2 5 5 ) , 0 ) + " ) " } } ) ; v a r   j = { a q u a : [ 0 , 2 5 5 , 2 5 5 ] , a z u r e : [ 2 4 0 , 2 5 5 , 2 5 5 ] , b e i g e : [ 2 4 5 , 2 4 5 , 2 2 0 ] , b l a c k : [ 0 , 
 0 , 0 ] , b l u e : [ 0 , 0 , 2 5 5 ] , b r o w n : [ 1 6 5 , 4 2 , 4 2 ] , c y a n : [ 0 , 2 5 5 , 2 5 5 ] , d a r k b l u e : [ 0 , 0 , 1 3 9 ] , d a r k c y a n : [ 0 , 1 3 9 , 1 3 9 ] , d a r k g r e y : [ 1 6 9 , 1 6 9 , 1 6 9 ] , d a r k g r e e n : [ 0 , 1 0 0 , 0 ] , d a r k k h a k i : [ 1 8 9 , 1 8 3 , 1 0 7 ] , d a r k m a g e n t a : [ 1 3 9 , 0 , 1 3 9 ] , d a r k o l i v e g r e e n : [ 8 5 , 1 0 7 , 4 7 ] , d a r k o r a n g e : [ 2 5 5 , 1 4 0 , 0 ] , d a r k o r c h i d : [ 1 5 3 , 5 0 , 2 0 4 ] , d a r k r e d : [ 1 3 9 , 0 , 0 ] , d a r k s a l m o n : [ 2 3 3 , 1 5 0 , 1 2 2 ] , d a r k v i o l e t : [ 1 4 8 , 0 , 2 1 1 ] , f u c h s i a : [ 2 5 5 , 0 , 2 5 5 ] , g o l d : [ 2 5 5 , 2 1 5 , 0 ] , g r e e n : [ 0 , 1 2 8 , 0 ] , i n d i g o : [ 7 5 , 0 , 1 3 0 ] , k h a k i : [ 2 4 0 , 2 3 0 , 1 4 0 ] , l i g h t b l u e : [ 1 7 3 , 2 1 6 , 2 3 0 ] , l i g h t c y a n : [ 2 2 4 , 2 5 5 , 2 5 5 ] , l i g h t g r e e n : [ 1 4 4 , 2 3 8 , 1 4 4 ] , l i g h t g r e y : [ 2 1 1 , 
 2 1 1 , 2 1 1 ] , l i g h t p i n k : [ 2 5 5 , 1 8 2 , 1 9 3 ] , l i g h t y e l l o w : [ 2 5 5 , 2 5 5 , 2 2 4 ] , l i m e : [ 0 , 2 5 5 , 0 ] , m a g e n t a : [ 2 5 5 , 0 , 2 5 5 ] , m a r o o n : [ 1 2 8 , 0 , 0 ] , n a v y : [ 0 , 0 , 1 2 8 ] , o l i v e : [ 1 2 8 , 1 2 8 , 0 ] , o r a n g e : [ 2 5 5 , 1 6 5 , 0 ] , p i n k : [ 2 5 5 , 1 9 2 , 2 0 3 ] , p u r p l e : [ 1 2 8 , 0 , 1 2 8 ] , v i o l e t : [ 1 2 8 , 0 , 1 2 8 ] , r e d : [ 2 5 5 , 0 , 0 ] , s i l v e r : [ 1 9 2 , 1 9 2 , 1 9 2 ] , w h i t e : [ 2 5 5 , 2 5 5 , 2 5 5 ] , y e l l o w : [ 2 5 5 , 2 5 5 , 0 ] , t r a n s p a r e n t : [ 2 5 5 , 2 5 5 , 2 5 5 ] } , l = [ " a d d " , " r e m o v e " , " t o g g l e " ] , o = { b o r d e r : 1 , b o r d e r B o t t o m : 1 , b o r d e r C o l o r : 1 , b o r d e r L e f t : 1 , b o r d e r R i g h t : 1 , b o r d e r T o p : 1 , b o r d e r W i d t h : 1 , m a r g i n : 1 , p a d d i n g : 1 } ; a . e f f e c t s . a n i m a t e C l a s s = f u n c t i o n ( n , k , m , 
 p ) { i f ( a . i s F u n c t i o n ( m ) ) { p = m ; m = n u l l } r e t u r n   t h i s . q u e u e ( f u n c t i o n ( ) { v a r   q = a ( t h i s ) , s = q . a t t r ( " s t y l e " ) | | "   " , r = e ( g . c a l l ( t h i s ) ) , u , v = q . a t t r ( " c l a s s " ) ; a . e a c h ( l , f u n c t i o n ( w , x ) { n [ x ] & & q [ x + " C l a s s " ] ( n [ x ] ) } ) ; u = e ( g . c a l l ( t h i s ) ) ; q . a t t r ( " c l a s s " , v ) ; q . a n i m a t e ( i ( r , u ) , { q u e u e : f a l s e , d u r a t i o n : k , e a s d i n g : m , c o m p l e t e : f u n c t i o n ( ) { a . e a c h ( l , f u n c t i o n ( w , x ) { n [ x ] & & q [ x + " C l a s s " ] ( n [ x ] ) } ) ; i f ( t y p e o f   q . a t t r ( " s t y l e " ) = = " o b j e c t " ) { q . a t t r ( " s t y l e " ) . c s s T e x t = " " ; q . a t t r ( " s t y l e " ) . c s s T e x t = s } e l s e   q . a t t r ( " s t y l e " , s ) ; p & & p . a p p l y ( t h i s , a r g u m e n t s ) ; a . d e q u e u e ( t h i s ) } } ) } ) } ; 
 a . f n . e x t e n d ( { _ a d d C l a s s : a . f n . a d d C l a s s , a d d C l a s s : f u n c t i o n ( n , k , m , p ) { r e t u r n   k ? a . e f f e c t s . a n i m a t e C l a s s . a p p l y ( t h i s , [ { a d d : n } , k , m , p ] ) : t h i s . _ a d d C l a s s ( n ) } , _ r e m o v e C l a s s : a . f n . r e m o v e C l a s s , r e m o v e C l a s s : f u n c t i o n ( n , k , m , p ) { r e t u r n   k ? a . e f f e c t s . a n i m a t e C l a s s . a p p l y ( t h i s , [ { r e m o v e : n } , k , m , p ] ) : t h i s . _ r e m o v e C l a s s ( n ) } , _ t o g g l e C l a s s : a . f n . t o g g l e C l a s s , t o g g l e C l a s s : f u n c t i o n ( n , k , m , p , q ) { r e t u r n   t y p e o f   k = = " b o o l e a n " | | k = = = d ? m ? a . e f f e c t s . a n i m a t e C l a s s . a p p l y ( t h i s , [ k ? { a d d : n } : { r e m o v e : n } , m , p , q ] ) : t h i s . _ t o g g l e C l a s s ( n , k ) : a . e f f e c t s . a n i m a t e C l a s s . a p p l y ( t h i s , 
 [ { t o g g l e : n } , k , m , p ] ) } , s w i t c h C l a s s : f u n c t i o n ( n , k , m , p , q ) { r e t u r n   a . e f f e c t s . a n i m a t e C l a s s . a p p l y ( t h i s , [ { a d d : k , r e m o v e : n } , m , p , q ] ) } } ) ; a . e x t e n d ( a . e f f e c t s , { v e r s i o n : " 1 . 8 . 1 3 " , s a v e : f u n c t i o n ( n , k ) { f o r ( v a r   m = 0 ; m < k . l e n g t h ; m + + ) k [ m ] ! = = n u l l & & n . d a t a ( " e c . s t o r a g e . " + k [ m ] , n [ 0 ] . s t y l e [ k [ m ] ] ) } , r e s t o r e : f u n c t i o n ( n , k ) { f o r ( v a r   m = 0 ; m < k . l e n g t h ; m + + ) k [ m ] ! = = n u l l & & n . c s s ( k [ m ] , n . d a t a ( " e c . s t o r a g e . " + k [ m ] ) ) } , s e t M o d e : f u n c t i o n ( n , k ) { i f ( k = = " t o g g l e " ) k = n . i s ( " : h i d d e n " ) ? " s h o w " : " h i d e " ; r e t u r n   k } , g e t B a s e l i n e : f u n c t i o n ( n , k ) { v a r   m ; s w i t c h ( n [ 0 ] ) { c a s e   " t o p " : m = 
 0 ; b r e a k ; c a s e   " m i d d l e " : m = 0 . 5 ; b r e a k ; c a s e   " b o t t o m " : m = 1 ; b r e a k ; d e f a u l t : m = n [ 0 ] / k . h e i g h t } s w i t c h ( n [ 1 ] ) { c a s e   " l e f t " : n = 0 ; b r e a k ; c a s e   " c e n t e r " : n = 0 . 5 ; b r e a k ; c a s e   " r i g h t " : n = 1 ; b r e a k ; d e f a u l t : n = n [ 1 ] / k . w i d t h } r e t u r n { x : n , y : m } } , c r e a t e W r a p p e r : f u n c t i o n ( n ) { i f ( n . p a r e n t ( ) . i s ( " . u i - e f f e c t s - w r a p p e r " ) ) r e t u r n   n . p a r e n t ( ) ; v a r   k = { w i d t h : n . o u t e r W i d t h ( t r u e ) , h e i g h t : n . o u t e r H e i g h t ( t r u e ) , " f l o a t " : n . c s s ( " f l o a t " ) } , m = a ( " < d i v > < / d i v > " ) . a d d C l a s s ( " u i - e f f e c t s - w r a p p e r " ) . c s s ( { f o n t S i z e : " 1 0 0 % " , b a c k g r o u n d : " t r a n s p a r e n t " , b o r d e r : " n o n e " , m a r g i n : 0 , p a d d i n g : 0 } ) ; 
 n . w r a p ( m ) ; m = n . p a r e n t ( ) ; i f ( n . c s s ( " p o s i t i o n " ) = = " s t a t i c " ) { m . c s s ( { p o s i t i o n : " r e l a t i v e " } ) ; n . c s s ( { p o s i t i o n : " r e l a t i v e " } ) } e l s e { a . e x t e n d ( k , { p o s i t i o n : n . c s s ( " p o s i t i o n " ) , z I n d e x : n . c s s ( " z - i n d e x " ) } ) ; a . e a c h ( [ " t o p " , " l e f t " , " b o t t o m " , " r i g h t " ] , f u n c t i o n ( p , q ) { k [ q ] = n . c s s ( q ) ; i f ( i s N a N ( p a r s e I n t ( k [ q ] , 1 0 ) ) ) k [ q ] = " a u t o " } ) ; n . c s s ( { p o s i t i o n : " r e l a t i v e " , t o p : 0 , l e f t : 0 , r i g h t : " a u t o " , b o t t o m : " a u t o " } ) } r e t u r n   m . c s s ( k ) . s h o w ( ) } , r e m o v e W r a p p e r : f u n c t i o n ( n ) { i f ( n . p a r e n t ( ) . i s ( " . u i - e f f e c t s - w r a p p e r " ) ) r e t u r n   n . p a r e n t ( ) . r e p l a c e W i t h ( n ) ; r e t u r n   n } , s e t T r a n s i t i o n : f u n c t i o n ( n , 
 k , m , p ) { p = p | | { } ; a . e a c h ( k , f u n c t i o n ( q , s ) { u n i t = n . c s s U n i t ( s ) ; i f ( u n i t [ 0 ] > 0 ) p [ s ] = u n i t [ 0 ] * m + u n i t [ 1 ] } ) ; r e t u r n   p } } ) ; a . f n . e x t e n d ( { e f f e c t : f u n c t i o n ( n ) { v a r   k = b . a p p l y ( t h i s , a r g u m e n t s ) , m = { o p t i o n s : k [ 1 ] , d u r a t i o n : k [ 2 ] , c a l l b a c k : k [ 3 ] } ; k = m . o p t i o n s . m o d e ; v a r   p = a . e f f e c t s [ n ] ; i f ( a . f x . o f f | | ! p ) r e t u r n   k ? t h i s [ k ] ( m . d u r a t i o n , m . c a l l b a c k ) : t h i s . e a c h ( f u n c t i o n ( ) { m . c a l l b a c k & & m . c a l l b a c k . c a l l ( t h i s ) } ) ; r e t u r n   p . c a l l ( t h i s , m ) } , _ s h o w : a . f n . s h o w , s h o w : f u n c t i o n ( n ) { i f ( h ( n ) ) r e t u r n   t h i s . _ s h o w . a p p l y ( t h i s , a r g u m e n t s ) ; e l s e { v a r   k = b . a p p l y ( t h i s , a r g u m e n t s ) ; 
 k [ 1 ] . m o d e = " s h o w " ; r e t u r n   t h i s . e f f e c t . a p p l y ( t h i s , k ) } } , _ h i d e : a . f n . h i d e , h i d e : f u n c t i o n ( n ) { i f ( h ( n ) ) r e t u r n   t h i s . _ h i d e . a p p l y ( t h i s , a r g u m e n t s ) ; e l s e { v a r   k = b . a p p l y ( t h i s , a r g u m e n t s ) ; k [ 1 ] . m o d e = " h i d e " ; r e t u r n   t h i s . e f f e c t . a p p l y ( t h i s , k ) } } , _ _ t o g g l e : a . f n . t o g g l e , t o g g l e : f u n c t i o n ( n ) { i f ( h ( n ) | | t y p e o f   n = = = " b o o l e a n " | | a . i s F u n c t i o n ( n ) ) r e t u r n   t h i s . _ _ t o g g l e . a p p l y ( t h i s , a r g u m e n t s ) ; e l s e { v a r   k = b . a p p l y ( t h i s , a r g u m e n t s ) ; k [ 1 ] . m o d e = " t o g g l e " ; r e t u r n   t h i s . e f f e c t . a p p l y ( t h i s , k ) } } , c s s U n i t : f u n c t i o n ( n ) { v a r   k = t h i s . c s s ( n ) , m = [ ] ; a . e a c h ( [ " e m " , " p x " , " % " , 
 " p t " ] , f u n c t i o n ( p , q ) { i f ( k . i n d e x O f ( q ) > 0 ) m = [ p a r s e F l o a t ( k ) , q ] } ) ; r e t u r n   m } } ) ; a . e a s i n g . j s w i n g = a . e a s i n g . s w i n g ; a . e x t e n d ( a . e a s i n g , { d e f : " e a s e O u t Q u a d " , s w i n g : f u n c t i o n ( n , k , m , p , q ) { r e t u r n   a . e a s i n g [ a . e a s i n g . d e f ] ( n , k , m , p , q ) } , e a s e I n Q u a d : f u n c t i o n ( n , k , m , p , q ) { r e t u r n   p * ( k / = q ) * k + m } , e a s e O u t Q u a d : f u n c t i o n ( n , k , m , p , q ) { r e t u r n - p * ( k / = q ) * ( k - 2 ) + m } , e a s e I n O u t Q u a d : f u n c t i o n ( n , k , m , p , q ) { i f ( ( k / = q / 2 ) < 1 ) r e t u r n   p / 2 * k * k + m ; r e t u r n - p / 2 * ( - - k * ( k - 2 ) - 1 ) + m } , e a s e I n C u b i c : f u n c t i o n ( n , k , m , p , q ) { r e t u r n   p * ( k / = q ) * k * k + m } , e a s e O u t C u b i c : f u n c t i o n ( n , k , m , p , q ) { r e t u r n   p * 
 ( ( k = k / q - 1 ) * k * k + 1 ) + m } , e a s e I n O u t C u b i c : f u n c t i o n ( n , k , m , p , q ) { i f ( ( k / = q / 2 ) < 1 ) r e t u r n   p / 2 * k * k * k + m ; r e t u r n   p / 2 * ( ( k - = 2 ) * k * k + 2 ) + m } , e a s e I n Q u a r t : f u n c t i o n ( n , k , m , p , q ) { r e t u r n   p * ( k / = q ) * k * k * k + m } , e a s e O u t Q u a r t : f u n c t i o n ( n , k , m , p , q ) { r e t u r n - p * ( ( k = k / q - 1 ) * k * k * k - 1 ) + m } , e a s e I n O u t Q u a r t : f u n c t i o n ( n , k , m , p , q ) { i f ( ( k / = q / 2 ) < 1 ) r e t u r n   p / 2 * k * k * k * k + m ; r e t u r n - p / 2 * ( ( k - = 2 ) * k * k * k - 2 ) + m } , e a s e I n Q u i n t : f u n c t i o n ( n , k , m , p , q ) { r e t u r n   p * ( k / = q ) * k * k * k * k + m } , e a s e O u t Q u i n t : f u n c t i o n ( n , k , m , p , q ) { r e t u r n   p * ( ( k = k / q - 1 ) * k * k * k * k + 1 ) + m } , e a s e I n O u t Q u i n t : f u n c t i o n ( n , k , m , p , q ) { i f ( ( k / = 
 q / 2 ) < 1 ) r e t u r n   p / 2 * k * k * k * k * k + m ; r e t u r n   p / 2 * ( ( k - = 2 ) * k * k * k * k + 2 ) + m } , e a s e I n S i n e : f u n c t i o n ( n , k , m , p , q ) { r e t u r n - p * M a t h . c o s ( k / q * ( M a t h . P I / 2 ) ) + p + m } , e a s e O u t S i n e : f u n c t i o n ( n , k , m , p , q ) { r e t u r n   p * M a t h . s i n ( k / q * ( M a t h . P I / 2 ) ) + m } , e a s e I n O u t S i n e : f u n c t i o n ( n , k , m , p , q ) { r e t u r n - p / 2 * ( M a t h . c o s ( M a t h . P I * k / q ) - 1 ) + m } , e a s e I n E x p o : f u n c t i o n ( n , k , m , p , q ) { r e t u r n   k = = 0 ? m : p * M a t h . p o w ( 2 , 1 0 * ( k / q - 1 ) ) + m } , e a s e O u t E x p o : f u n c t i o n ( n , k , m , p , q ) { r e t u r n   k = = q ? m + p : p * ( - M a t h . p o w ( 2 , - 1 0 * k / q ) + 1 ) + m } , e a s e I n O u t E x p o : f u n c t i o n ( n , k , m , p , q ) { i f ( k = = 0 ) r e t u r n   m ; i f ( k = = q ) r e t u r n   m + p ; i f ( ( k / = 
 q / 2 ) < 1 ) r e t u r n   p / 2 * M a t h . p o w ( 2 , 1 0 * ( k - 1 ) ) + m ; r e t u r n   p / 2 * ( - M a t h . p o w ( 2 , - 1 0 * - - k ) + 2 ) + m } , e a s e I n C i r c : f u n c t i o n ( n , k , m , p , q ) { r e t u r n - p * ( M a t h . s q r t ( 1 - ( k / = q ) * k ) - 1 ) + m } , e a s e O u t C i r c : f u n c t i o n ( n , k , m , p , q ) { r e t u r n   p * M a t h . s q r t ( 1 - ( k = k / q - 1 ) * k ) + m } , e a s e I n O u t C i r c : f u n c t i o n ( n , k , m , p , q ) { i f ( ( k / = q / 2 ) < 1 ) r e t u r n - p / 2 * ( M a t h . s q r t ( 1 - k * k ) - 1 ) + m ; r e t u r n   p / 2 * ( M a t h . s q r t ( 1 - ( k - = 2 ) * k ) + 1 ) + m } , e a s e I n E l a s t i c : f u n c t i o n ( n , k , m , p , q ) { n = 1 . 7 0 1 5 8 ; v a r   s = 0 , r = p ; i f ( k = = 0 ) r e t u r n   m ; i f ( ( k / = q ) = = 1 ) r e t u r n   m + p ; s | | ( s = q * 0 . 3 ) ; i f ( r < M a t h . a b s ( p ) ) { r = p ; n = s / 4 } e l s e   n = s / ( 2 * M a t h . P I ) * M a t h . a s i n ( p / 
 r ) ; r e t u r n - ( r * M a t h . p o w ( 2 , 1 0 * ( k - = 1 ) ) * M a t h . s i n ( ( k * q - n ) * 2 * M a t h . P I / s ) ) + m } , e a s e O u t E l a s t i c : f u n c t i o n ( n , k , m , p , q ) { n = 1 . 7 0 1 5 8 ; v a r   s = 0 , r = p ; i f ( k = = 0 ) r e t u r n   m ; i f ( ( k / = q ) = = 1 ) r e t u r n   m + p ; s | | ( s = q * 0 . 3 ) ; i f ( r < M a t h . a b s ( p ) ) { r = p ; n = s / 4 } e l s e   n = s / ( 2 * M a t h . P I ) * M a t h . a s i n ( p / r ) ; r e t u r n   r * M a t h . p o w ( 2 , - 1 0 * k ) * M a t h . s i n ( ( k * q - n ) * 2 * M a t h . P I / s ) + p + m } , e a s e I n O u t E l a s t i c : f u n c t i o n ( n , k , m , p , q ) { n = 1 . 7 0 1 5 8 ; v a r   s = 0 , r = p ; i f ( k = = 0 ) r e t u r n   m ; i f ( ( k / = q / 2 ) = = 2 ) r e t u r n   m + p ; s | | ( s = q * 0 . 3 * 1 . 5 ) ; i f ( r < M a t h . a b s ( p ) ) { r = p ; n = s / 4 } e l s e   n = s / ( 2 * M a t h . P I ) * M a t h . a s i n ( p / r ) ; i f ( k < 1 ) r e t u r n - 0 . 5 * 
 r * M a t h . p o w ( 2 , 1 0 * ( k - = 1 ) ) * M a t h . s i n ( ( k * q - n ) * 2 * M a t h . P I / s ) + m ; r e t u r n   r * M a t h . p o w ( 2 , - 1 0 * ( k - = 1 ) ) * M a t h . s i n ( ( k * q - n ) * 2 * M a t h . P I / s ) * 0 . 5 + p + m } , e a s e I n B a c k : f u n c t i o n ( n , k , m , p , q , s ) { i f ( s = = d ) s = 1 . 7 0 1 5 8 ; r e t u r n   p * ( k / = q ) * k * ( ( s + 1 ) * k - s ) + m } , e a s e O u t B a c k : f u n c t i o n ( n , k , m , p , q , s ) { i f ( s = = d ) s = 1 . 7 0 1 5 8 ; r e t u r n   p * ( ( k = k / q - 1 ) * k * ( ( s + 1 ) * k + s ) + 1 ) + m } , e a s e I n O u t B a c k : f u n c t i o n ( n , k , m , p , q , s ) { i f ( s = = d ) s = 1 . 7 0 1 5 8 ; i f ( ( k / = q / 2 ) < 1 ) r e t u r n   p / 2 * k * k * ( ( ( s * = 1 . 5 2 5 ) + 1 ) * k - s ) + m ; r e t u r n   p / 2 * ( ( k - = 2 ) * k * ( ( ( s * = 1 . 5 2 5 ) + 1 ) * k + s ) + 2 ) + m } , e a s e I n B o u n c e : f u n c t i o n ( n , k , m , p , q ) { r e t u r n   p - a . e a s i n g . e a s e O u t B o u n c e ( n , 
 q - k , 0 , p , q ) + m } , e a s e O u t B o u n c e : f u n c t i o n ( n , k , m , p , q ) { r e t u r n ( k / = q ) < 1 / 2 . 7 5 ? p * 7 . 5 6 2 5 * k * k + m : k < 2 / 2 . 7 5 ? p * ( 7 . 5 6 2 5 * ( k - = 1 . 5 / 2 . 7 5 ) * k + 0 . 7 5 ) + m : k < 2 . 5 / 2 . 7 5 ? p * ( 7 . 5 6 2 5 * ( k - = 2 . 2 5 / 2 . 7 5 ) * k + 0 . 9 3 7 5 ) + m : p * ( 7 . 5 6 2 5 * ( k - = 2 . 6 2 5 / 2 . 7 5 ) * k + 0 . 9 8 4 3 7 5 ) + m } , e a s e I n O u t B o u n c e : f u n c t i o n ( n , k , m , p , q ) { i f ( k < q / 2 ) r e t u r n   a . e a s i n g . e a s e I n B o u n c e ( n , k * 2 , 0 , p , q ) * 0 . 5 + m ; r e t u r n   a . e a s i n g . e a s e O u t B o u n c e ( n , k * 2 - q , 0 , p , q ) * 0 . 5 + p * 0 . 5 + m } } ) } ( j Q u e r y ) ; 
 ( f u n c t i o n ( a ) { a . e f f e c t s . b l i n d = f u n c t i o n ( d ) { r e t u r n   t h i s . q u e u e ( f u n c t i o n ( ) { v a r   c = a ( t h i s ) , f = [ " p o s i t i o n " , " t o p " , " b o t t o m " , " l e f t " , " r i g h t " ] , g = a . e f f e c t s . s e t M o d e ( c , d . o p t i o n s . m o d e | | " h i d e " ) , e = d . o p t i o n s . d i r e c t i o n | | " v e r t i c a l " ; a . e f f e c t s . s a v e ( c , f ) ; c . s h o w ( ) ; v a r   i = a . e f f e c t s . c r e a t e W r a p p e r ( c ) . c s s ( { o v e r f l o w : " h i d d e n " } ) , b = e = = " v e r t i c a l " ? " h e i g h t " : " w i d t h " ; e = e = = " v e r t i c a l " ? i . h e i g h t ( ) : i . w i d t h ( ) ; g = = " s h o w " & & i . c s s ( b , 0 ) ; v a r   h = { } ; h [ b ] = g = = " s h o w " ? e : 0 ; i . a n i m a t e ( h , d . d u r a t i o n , d . o p t i o n s . e a s i n g , f u n c t i o n ( ) { g = = " h i d e " & & c . h i d e ( ) ; a . e f f e c t s . r e s t o r e ( c , 
 f ) ; a . e f f e c t s . r e m o v e W r a p p e r ( c ) ; d . c a l l b a c k & & d . c a l l b a c k . a p p l y ( c [ 0 ] , a r g u m e n t s ) ; c . d e q u e u e ( ) } ) } ) } } ) ( j Q u e r y ) ; 
 ( f u n c t i o n ( a ) { a . e f f e c t s . b o u n c e = f u n c t i o n ( d ) { r e t u r n   t h i s . q u e u e ( f u n c t i o n ( ) { v a r   c = a ( t h i s ) , f = [ " p o s i t i o n " , " t o p " , " b o t t o m " , " l e f t " , " r i g h t " ] , g = a . e f f e c t s . s e t M o d e ( c , d . o p t i o n s . m o d e | | " e f f e c t " ) , e = d . o p t i o n s . d i r e c t i o n | | " u p " , i = d . o p t i o n s . d i s t a n c e | | 2 0 , b = d . o p t i o n s . t i m e s | | 5 , h = d . d u r a t i o n | | 2 5 0 ; / s h o w | h i d e / . t e s t ( g ) & & f . p u s h ( " o p a c i t y " ) ; a . e f f e c t s . s a v e ( c , f ) ; c . s h o w ( ) ; a . e f f e c t s . c r e a t e W r a p p e r ( c ) ; v a r   j = e = = " u p " | | e = = " d o w n " ? " t o p " : " l e f t " ; e = e = = " u p " | | e = = " l e f t " ? " p o s " : " n e g " ; i = d . o p t i o n s . d i s t a n c e | | ( j = = " t o p " ? c . o u t e r H e i g h t ( { m a r g i n : t r u e } ) / 3 : c . o u t e r W i d t h ( { m a r g i n : t r u e } ) / 
 3 ) ; i f ( g = = " s h o w " ) c . c s s ( " o p a c i t y " , 0 ) . c s s ( j , e = = " p o s " ? - i : i ) ; i f ( g = = " h i d e " ) i / = b * 2 ; g ! = " h i d e " & & b - - ; i f ( g = = " s h o w " ) { v a r   l = { o p a c i t y : 1 } ; l [ j ] = ( e = = " p o s " ? " + = " : " - = " ) + i ; c . a n i m a t e ( l , h / 2 , d . o p t i o n s . e a s i n g ) ; i / = 2 ; b - - } f o r ( l = 0 ; l < b ; l + + ) { v a r   o = { } , n = { } ; o [ j ] = ( e = = " p o s " ? " - = " : " + = " ) + i ; n [ j ] = ( e = = " p o s " ? " + = " : " - = " ) + i ; c . a n i m a t e ( o , h / 2 , d . o p t i o n s . e a s i n g ) . a n i m a t e ( n , h / 2 , d . o p t i o n s . e a s i n g ) ; i = g = = " h i d e " ? i * 2 : i / 2 } i f ( g = = " h i d e " ) { l = { o p a c i t y : 0 } ; l [ j ] = ( e = = " p o s " ? " - = " : " + = " ) + i ; c . a n i m a t e ( l , h / 2 , d . o p t i o n s . e a s i n g , f u n c t i o n ( ) { c . h i d e ( ) ; a . e f f e c t s . r e s t o r e ( c , f ) ; a . e f f e c t s . r e m o v e W r a p p e r ( c ) ; 
 d . c a l l b a c k & & d . c a l l b a c k . a p p l y ( t h i s , a r g u m e n t s ) } ) } e l s e { o = { } ; n = { } ; o [ j ] = ( e = = " p o s " ? " - = " : " + = " ) + i ; n [ j ] = ( e = = " p o s " ? " + = " : " - = " ) + i ; c . a n i m a t e ( o , h / 2 , d . o p t i o n s . e a s i n g ) . a n i m a t e ( n , h / 2 , d . o p t i o n s . e a s i n g , f u n c t i o n ( ) { a . e f f e c t s . r e s t o r e ( c , f ) ; a . e f f e c t s . r e m o v e W r a p p e r ( c ) ; d . c a l l b a c k & & d . c a l l b a c k . a p p l y ( t h i s , a r g u m e n t s ) } ) } c . q u e u e ( " f x " , f u n c t i o n ( ) { c . d e q u e u e ( ) } ) ; c . d e q u e u e ( ) } ) } } ) ( j Q u e r y ) ; 
 ( f u n c t i o n ( a ) { a . e f f e c t s . c l i p = f u n c t i o n ( d ) { r e t u r n   t h i s . q u e u e ( f u n c t i o n ( ) { v a r   c = a ( t h i s ) , f = [ " p o s i t i o n " , " t o p " , " b o t t o m " , " l e f t " , " r i g h t " , " h e i g h t " , " w i d t h " ] , g = a . e f f e c t s . s e t M o d e ( c , d . o p t i o n s . m o d e | | " h i d e " ) , e = d . o p t i o n s . d i r e c t i o n | | " v e r t i c a l " ; a . e f f e c t s . s a v e ( c , f ) ; c . s h o w ( ) ; v a r   i = a . e f f e c t s . c r e a t e W r a p p e r ( c ) . c s s ( { o v e r f l o w : " h i d d e n " } ) ; i = c [ 0 ] . t a g N a m e = = " I M G " ? i : c ; v a r   b = { s i z e : e = = " v e r t i c a l " ? " h e i g h t " : " w i d t h " , p o s i t i o n : e = = " v e r t i c a l " ? " t o p " : " l e f t " } ; e = e = = " v e r t i c a l " ? i . h e i g h t ( ) : i . w i d t h ( ) ; i f ( g = = " s h o w " ) { i . c s s ( b . s i z e , 0 ) ; i . c s s ( b . p o s i t i o n , 
 e / 2 ) } v a r   h = { } ; h [ b . s i z e ] = g = = " s h o w " ? e : 0 ; h [ b . p o s i t i o n ] = g = = " s h o w " ? 0 : e / 2 ; i . a n i m a t e ( h , { q u e u e : f a l s e , d u r a t i o n : d . d u r a t i o n , e a s i n g : d . o p t i o n s . e a s i n g , c o m p l e t e : f u n c t i o n ( ) { g = = " h i d e " & & c . h i d e ( ) ; a . e f f e c t s . r e s t o r e ( c , f ) ; a . e f f e c t s . r e m o v e W r a p p e r ( c ) ; d . c a l l b a c k & & d . c a l l b a c k . a p p l y ( c [ 0 ] , a r g u m e n t s ) ; c . d e q u e u e ( ) } } ) } ) } } ) ( j Q u e r y ) ; 
 ( f u n c t i o n ( a ) { a . e f f e c t s . d r o p = f u n c t i o n ( d ) { r e t u r n   t h i s . q u e u e ( f u n c t i o n ( ) { v a r   c = a ( t h i s ) , f = [ " p o s i t i o n " , " t o p " , " b o t t o m " , " l e f t " , " r i g h t " , " o p a c i t y " ] , g = a . e f f e c t s . s e t M o d e ( c , d . o p t i o n s . m o d e | | " h i d e " ) , e = d . o p t i o n s . d i r e c t i o n | | " l e f t " ; a . e f f e c t s . s a v e ( c , f ) ; c . s h o w ( ) ; a . e f f e c t s . c r e a t e W r a p p e r ( c ) ; v a r   i = e = = " u p " | | e = = " d o w n " ? " t o p " : " l e f t " ; e = e = = " u p " | | e = = " l e f t " ? " p o s " : " n e g " ; v a r   b = d . o p t i o n s . d i s t a n c e | | ( i = = " t o p " ? c . o u t e r H e i g h t ( { m a r g i n : t r u e } ) / 2 : c . o u t e r W i d t h ( { m a r g i n : t r u e } ) / 2 ) ; i f ( g = = " s h o w " ) c . c s s ( " o p a c i t y " , 0 ) . c s s ( i , e = = " p o s " ? - b : b ) ; v a r   h = { o p a c i t y : g = = 
 " s h o w " ? 1 : 0 } ; h [ i ] = ( g = = " s h o w " ? e = = " p o s " ? " + = " : " - = " : e = = " p o s " ? " - = " : " + = " ) + b ; c . a n i m a t e ( h , { q u e u e : f a l s e , d u r a t i o n : d . d u r a t i o n , e a s i n g : d . o p t i o n s . e a s i n g , c o m p l e t e : f u n c t i o n ( ) { g = = " h i d e " & & c . h i d e ( ) ; a . e f f e c t s . r e s t o r e ( c , f ) ; a . e f f e c t s . r e m o v e W r a p p e r ( c ) ; d . c a l l b a c k & & d . c a l l b a c k . a p p l y ( t h i s , a r g u m e n t s ) ; c . d e q u e u e ( ) } } ) } ) } } ) ( j Q u e r y ) ; 
 ( f u n c t i o n ( a ) { a . e f f e c t s . e x p l o d e = f u n c t i o n ( d ) { r e t u r n   t h i s . q u e u e ( f u n c t i o n ( ) { v a r   c = d . o p t i o n s . p i e c e s ? M a t h . r o u n d ( M a t h . s q r t ( d . o p t i o n s . p i e c e s ) ) : 3 , f = d . o p t i o n s . p i e c e s ? M a t h . r o u n d ( M a t h . s q r t ( d . o p t i o n s . p i e c e s ) ) : 3 ; d . o p t i o n s . m o d e = d . o p t i o n s . m o d e = = " t o g g l e " ? a ( t h i s ) . i s ( " : v i s i b l e " ) ? " h i d e " : " s h o w " : d . o p t i o n s . m o d e ; v a r   g = a ( t h i s ) . s h o w ( ) . c s s ( " v i s i b i l i t y " , " h i d d e n " ) , e = g . o f f s e t ( ) ; e . t o p - = p a r s e I n t ( g . c s s ( " m a r g i n T o p " ) , 1 0 ) | | 0 ; e . l e f t - = p a r s e I n t ( g . c s s ( " m a r g i n L e f t " ) , 1 0 ) | | 0 ; f o r ( v a r   i = g . o u t e r W i d t h ( t r u e ) , b = g . o u t e r H e i g h t ( t r u e ) , h = 0 ; h < c ; h + + ) f o r ( v a r   j = 
 0 ; j < f ; j + + ) g . c l o n e ( ) . a p p e n d T o ( " b o d y " ) . w r a p ( " < d i v > < / d i v > " ) . c s s ( { 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 : " v i s i b l e " , l e f t : - j * ( i / f ) , t o p : - h * ( b / c ) } ) . p a r e n t ( ) . a d d C l a s s ( " u i - e f f e c t s - e x p l o d e " ) . c s s ( { p o s i t i o n : " a b s o l u t e " , o v e r f l o w : " h i d d e n " , w i d t h : i / f , h e i g h t : b / c , l e f t : e . l e f t + j * ( i / f ) + ( d . o p t i o n s . m o d e = = " s h o w " ? ( j - M a t h . f l o o r ( f / 2 ) ) * ( i / f ) : 0 ) , t o p : e . t o p + h * ( b / c ) + ( d . o p t i o n s . m o d e = = " s h o w " ? ( h - M a t h . f l o o r ( c / 2 ) ) * ( b / c ) : 0 ) , o p a c i t y : d . o p t i o n s . m o d e = = " s h o w " ? 0 : 1 } ) . a n i m a t e ( { l e f t : e . l e f t + j * ( i / f ) + ( d . o p t i o n s . m o d e = = " s h o w " ? 0 : ( j - M a t h . f l o o r ( f / 2 ) ) * ( i / f ) ) , t o p : e . t o p + 
 h * ( b / c ) + ( d . o p t i o n s . m o d e = = " s h o w " ? 0 : ( h - M a t h . f l o o r ( c / 2 ) ) * ( b / c ) ) , o p a c i t y : d . o p t i o n s . m o d e = = " s h o w " ? 1 : 0 } , d . d u r a t i o n | | 5 0 0 ) ; s e t T i m e o u t ( f u n c t i o n ( ) { d . o p t i o n s . m o d e = = " s h o w " ? g . c s s ( { v i s i b i l i t y : " v i s i b l e " } ) : g . c s s ( { v i s i b i l i t y : " v i s i b l e " } ) . h i d e ( ) ; d . c a l l b a c k & & d . c a l l b a c k . a p p l y ( g [ 0 ] ) ; g . d e q u e u e ( ) ; a ( " d i v . u i - e f f e c t s - e x p l o d e " ) . r e m o v e ( ) } , d . d u r a t i o n | | 5 0 0 ) } ) } } ) ( j Q u e r y ) ; 
 ( f u n c t i o n ( a ) { a . e f f e c t s . f a d e = f u n c t i o n ( d ) { r e t u r n   t h i s . q u e u e ( f u n c t i o n ( ) { v a r   c = a ( t h i s ) , f = a . e f f e c t s . s e t M o d e ( c , d . o p t i o n s . m o d e | | " h i d e " ) ; c . a n i m a t e ( { o p a c i t y : f } , { q u e u e : f a l s e , d u r a t i o n : d . d u r a t i o n , e a s i n g : d . o p t i o n s . e a s i n g , c o m p l e t e : f u n c t i o n ( ) { d . c a l l b a c k & & d . c a l l b a c k . a p p l y ( t h i s , a r g u m e n t s ) ; c . d e q u e u e ( ) } } ) } ) } } ) ( j Q u e r y ) ; 
 ( f u n c t i o n ( a ) { a . e f f e c t s . f o l d = f u n c t i o n ( d ) { r e t u r n   t h i s . q u e u e ( f u n c t i o n ( ) { v a r   c = a ( t h i s ) , f = [ " p o s i t i o n " , " t o p " , " b o t t o m " , " l e f t " , " r i g h t " ] , g = a . e f f e c t s . s e t M o d e ( c , d . o p t i o n s . m o d e | | " h i d e " ) , e = d . o p t i o n s . s i z e | | 1 5 , i = ! ! d . o p t i o n s . h o r i z F i r s t , b = d . d u r a t i o n ? d . d u r a t i o n / 2 : a . f x . s p e e d s . _ d e f a u l t / 2 ; a . e f f e c t s . s a v e ( c , f ) ; c . s h o w ( ) ; v a r   h = a . e f f e c t s . c r e a t e W r a p p e r ( c ) . c s s ( { o v e r f l o w : " h i d d e n " } ) , j = g = = " s h o w " ! = i , l = j ? [ " w i d t h " , " h e i g h t " ] : [ " h e i g h t " , " w i d t h " ] ; j = j ? [ h . w i d t h ( ) , h . h e i g h t ( ) ] : [ h . h e i g h t ( ) , h . w i d t h ( ) ] ; v a r   o = / ( [ 0 - 9 ] + ) % / . e x e c ( e ) ; i f ( o ) e = p a r s e I n t ( o [ 1 ] , 
 1 0 ) / 1 0 0 * j [ g = = " h i d e " ? 0 : 1 ] ; i f ( g = = " s h o w " ) h . c s s ( i ? { h e i g h t : 0 , w i d t h : e } : { h e i g h t : e , w i d t h : 0 } ) ; i = { } ; o = { } ; i [ l [ 0 ] ] = g = = " s h o w " ? j [ 0 ] : e ; o [ l [ 1 ] ] = g = = " s h o w " ? j [ 1 ] : 0 ; h . a n i m a t e ( i , b , d . o p t i o n s . e a s i n g ) . a n i m a t e ( o , b , d . o p t i o n s . e a s i n g , f u n c t i o n ( ) { g = = " h i d e " & & c . h i d e ( ) ; a . e f f e c t s . r e s t o r e ( c , f ) ; a . e f f e c t s . r e m o v e W r a p p e r ( c ) ; d . c a l l b a c k & & d . c a l l b a c k . a p p l y ( c [ 0 ] , a r g u m e n t s ) ; c . d e q u e u e ( ) } ) } ) } } ) ( j Q u e r y ) ; 
 ( f u n c t i o n ( a ) { a . e f f e c t s . h i g h l i g h t = f u n c t i o n ( d ) { r e t u r n   t h i s . q u e u e ( f u n c t i o n ( ) { v a r   c = a ( t h i s ) , f = [ " b a c k g r o u n d I m a g e " , " b a c k g r o u n d C o l o r " , " o p a c i t y " ] , g = a . e f f e c t s . s e t M o d e ( c , d . o p t i o n s . m o d e | | " s h o w " ) , e = { b a c k g r o u n d C o l o r : c . c s s ( " b a c k g r o u n d C o l o r " ) } ; i f ( g = = " h i d e " ) e . o p a c i t y = 0 ; a . e f f e c t s . s a v e ( c , f ) ; c . s h o w ( ) . c s s ( { b a c k g r o u n d I m a g e : " n o n e " , b a c k g r o u n d C o l o r : d . o p t i o n s . c o l o r | | " # f f f f 9 9 " } ) . a n i m a t e ( e , { q u e u e : f a l s e , d u r a t i o n : d . d u r a t i o n , e a s i n g : d . o p t i o n s . e a s i n g , c o m p l e t e : f u n c t i o n ( ) { g = = " h i d e " & & c . h i d e ( ) ; a . e f f e c t s . r e s t o r e ( c , f ) ; g = = " s h o w " & & ! a . s u p p o r t . o p a c i t y & & 
 t h i s . s t y l e . r e m o v e A t t r i b u t e ( " f i l t e r " ) ; d . c a l l b a c k & & d . c a l l b a c k . a p p l y ( t h i s , a r g u m e n t s ) ; c . d e q u e u e ( ) } } ) } ) } } ) ( j Q u e r y ) ; 
 ( f u n c t i o n ( a ) { a . e f f e c t s . p u l s a t e = f u n c t i o n ( d ) { r e t u r n   t h i s . q u e u e ( f u n c t i o n ( ) { v a r   c = a ( t h i s ) , f = a . e f f e c t s . s e t M o d e ( c , d . o p t i o n s . m o d e | | " s h o w " ) ; t i m e s = ( d . o p t i o n s . t i m e s | | 5 ) * 2 - 1 ; d u r a t i o n = d . d u r a t i o n ? d . d u r a t i o n / 2 : a . f x . s p e e d s . _ d e f a u l t / 2 ; i s V i s i b l e = c . i s ( " : v i s i b l e " ) ; a n i m a t e T o = 0 ; i f ( ! i s V i s i b l e ) { c . c s s ( " o p a c i t y " , 0 ) . s h o w ( ) ; a n i m a t e T o = 1 } i f ( f = = " h i d e " & & i s V i s i b l e | | f = = " s h o w " & & ! i s V i s i b l e ) t i m e s - - ; f o r ( f = 0 ; f < t i m e s ; f + + ) { c . a n i m a t e ( { o p a c i t y : a n i m a t e T o } , d u r a t i o n , d . o p t i o n s . e a s i n g ) ; a n i m a t e T o = ( a n i m a t e T o + 1 ) % 2 } c . a n i m a t e ( { o p a c i t y : a n i m a t e T o } , d u r a t i o n , 
 d . o p t i o n s . e a s i n g , f u n c t i o n ( ) { a n i m a t e T o = = 0 & & c . h i d e ( ) ; d . c a l l b a c k & & d . c a l l b a c k . a p p l y ( t h i s , a r g u m e n t s ) } ) ; c . q u e u e ( " f x " , f u n c t i o n ( ) { c . d e q u e u e ( ) } ) . d e q u e u e ( ) } ) } } ) ( j Q u e r y ) ; 
 ( f u n c t i o n ( a ) { a . e f f e c t s . p u f f = f u n c t i o n ( d ) { r e t u r n   t h i s . q u e u e ( f u n c t i o n ( ) { v a r   c = a ( t h i s ) , f = a . e f f e c t s . s e t M o d e ( c , d . o p t i o n s . m o d e | | " h i d e " ) , g = p a r s e I n t ( d . o p t i o n s . p e r c e n t , 1 0 ) | | 1 5 0 , e = g / 1 0 0 , i = { h e i g h t : c . h e i g h t ( ) , w i d t h : c . w i d t h ( ) } ; a . e x t e n d ( d . o p t i o n s , { f a d e : t r u e , m o d e : f , p e r c e n t : f = = " h i d e " ? g : 1 0 0 , f r o m : f = = " h i d e " ? i : { h e i g h t : i . h e i g h t * e , w i d t h : i . w i d t h * e } } ) ; c . e f f e c t ( " s c a l e " , d . o p t i o n s , d . d u r a t i o n , d . c a l l b a c k ) ; c . d e q u e u e ( ) } ) } ; a . e f f e c t s . s c a l e = f u n c t i o n ( d ) { r e t u r n   t h i s . q u e u e ( f u n c t i o n ( ) { v a r   c = a ( t h i s ) , f = a . e x t e n d ( t r u e , { } , d . o p t i o n s ) , g = a . e f f e c t s . s e t M o d e ( c , 
 d . o p t i o n s . m o d e | | " e f f e c t " ) , e = p a r s e I n t ( d . o p t i o n s . p e r c e n t , 1 0 ) | | ( p a r s e I n t ( d . o p t i o n s . p e r c e n t , 1 0 ) = = 0 ? 0 : g = = " h i d e " ? 0 : 1 0 0 ) , i = d . o p t i o n s . d i r e c t i o n | | " b o t h " , b = d . o p t i o n s . o r i g i n ; i f ( g ! = " e f f e c t " ) { f . o r i g i n = b | | [ " m i d d l e " , " c e n t e r " ] ; f . r e s t o r e = t r u e } b = { h e i g h t : c . h e i g h t ( ) , w i d t h : c . w i d t h ( ) } ; c . f r o m = d . o p t i o n s . f r o m | | ( g = = " s h o w " ? { h e i g h t : 0 , w i d t h : 0 } : b ) ; e = { y : i ! = " h o r i z o n t a l " ? e / 1 0 0 : 1 , x : i ! = " v e r t i c a l " ? e / 1 0 0 : 1 } ; c . t o = { h e i g h t : b . h e i g h t * e . y , w i d t h : b . w i d t h * e . x } ; i f ( d . o p t i o n s . f a d e ) { i f ( g = = " s h o w " ) { c . f r o m . o p a c i t y = 0 ; c . t o . o p a c i t y = 1 } i f ( g = = " h i d e " ) { c . f r o m . o p a c i t y = 
 1 ; c . t o . o p a c i t y = 0 } } f . f r o m = c . f r o m ; f . t o = c . t o ; f . m o d e = g ; c . e f f e c t ( " s i z e " , f , d . d u r a t i o n , d . c a l l b a c k ) ; c . d e q u e u e ( ) } ) } ; a . e f f e c t s . s i z e = f u n c t i o n ( d ) { r e t u r n   t h i s . q u e u e ( f u n c t i o n ( ) { v a r   c = a ( t h i s ) , f = [ " p o s i t i o n " , " t o p " , " b o t t o m " , " l e f t " , " r i g h t " , " w i d t h " , " h e i g h t " , " o v e r f l o w " , " o p a c i t y " ] , g = [ " p o s i t i o n " , " t o p " , " b o t t o m " , " l e f t " , " r i g h t " , " o v e r f l o w " , " o p a c i t y " ] , e = [ " w i d t h " , " h e i g h t " , " o v e r f l o w " ] , i = [ " f o n t S i z e " ] , b = [ " b o r d e r T o p W i d t h " , " b o r d e r B o t t o m W i d t h " , " p a d d i n g T o p " , " p a d d i n g B o t t o m " ] , h = [ " b o r d e r L e f t W i d t h " , " b o r d e r R i g h t W i d t h " , " p a d d i n g L e f t " , " p a d d i n g R i g h t " ] , 
 j = a . e f f e c t s . s e t M o d e ( c , d . o p t i o n s . m o d e | | " e f f e c t " ) , l = d . o p t i o n s . r e s t o r e | | f a l s e , o = d . o p t i o n s . s c a l e | | " b o t h " , n = d . o p t i o n s . o r i g i n , k = { h e i g h t : c . h e i g h t ( ) , w i d t h : c . w i d t h ( ) } ; c . f r o m = d . o p t i o n s . f r o m | | k ; c . t o = d . o p t i o n s . t o | | k ; i f ( n ) { n = a . e f f e c t s . g e t B a s e l i n e ( n , k ) ; c . f r o m . t o p = ( k . h e i g h t - c . f r o m . h e i g h t ) * n . y ; c . f r o m . l e f t = ( k . w i d t h - c . f r o m . w i d t h ) * n . x ; c . t o . t o p = ( k . h e i g h t - c . t o . h e i g h t ) * n . y ; c . t o . l e f t = ( k . w i d t h - c . t o . w i d t h ) * n . x } v a r   m = { f r o m : { y : c . f r o m . h e i g h t / k . h e i g h t , x : c . f r o m . w i d t h / k . w i d t h } , t o : { y : c . t o . h e i g h t / k . h e i g h t , x : c . t o . w i d t h / k . w i d t h } } ; 
 i f ( o = = " b o x " | | o = = " b o t h " ) { i f ( m . f r o m . y ! = m . t o . y ) { f = f . c o n c a t ( b ) ; c . f r o m = a . e f f e c t s . s e t T r a n s i t i o n ( c , b , m . f r o m . y , c . f r o m ) ; c . t o = a . e f f e c t s . s e t T r a n s i t i o n ( c , b , m . t o . y , c . t o ) } i f ( m . f r o m . x ! = m . t o . x ) { f = f . c o n c a t ( h ) ; c . f r o m = a . e f f e c t s . s e t T r a n s i t i o n ( c , h , m . f r o m . x , c . f r o m ) ; c . t o = a . e f f e c t s . s e t T r a n s i t i o n ( c , h , m . t o . x , c . t o ) } } i f ( o = = " c o n t e n t " | | o = = " b o t h " ) i f ( m . f r o m . y ! = m . t o . y ) { f = f . c o n c a t ( i ) ; c . f r o m = a . e f f e c t s . s e t T r a n s i t i o n ( c , i , m . f r o m . y , c . f r o m ) ; c . t o = a . e f f e c t s . s e t T r a n s i t i o n ( c , i , m . t o . y , c . t o ) } a . e f f e c t s . s a v e ( c , l ? f : g ) ; c . s h o w ( ) ; a . e f f e c t s . c r e a t e W r a p p e r ( c ) ; 
 c . c s s ( " o v e r f l o w " , " h i d d e n " ) . c s s ( c . f r o m ) ; i f ( o = = " c o n t e n t " | | o = = " b o t h " ) { b = b . c o n c a t ( [ " m a r g i n T o p " , " m a r g i n B o t t o m " ] ) . c o n c a t ( i ) ; h = h . c o n c a t ( [ " m a r g i n L e f t " , " m a r g i n R i g h t " ] ) ; e = f . c o n c a t ( b ) . c o n c a t ( h ) ; c . f i n d ( " * [ w i d t h ] " ) . e a c h ( f u n c t i o n ( ) { c h i l d = a ( t h i s ) ; l & & a . e f f e c t s . s a v e ( c h i l d , e ) ; v a r   p = { h e i g h t : c h i l d . h e i g h t ( ) , w i d t h : c h i l d . w i d t h ( ) } ; c h i l d . f r o m = { h e i g h t : p . h e i g h t * m . f r o m . y , w i d t h : p . w i d t h * m . f r o m . x } ; c h i l d . t o = { h e i g h t : p . h e i g h t * m . t o . y , w i d t h : p . w i d t h * m . t o . x } ; i f ( m . f r o m . y ! = m . t o . y ) { c h i l d . f r o m = a . e f f e c t s . s e t T r a n s i t i o n ( c h i l d , b , m . f r o m . y , c h i l d . f r o m ) ; 
 c h i l d . t o = a . e f f e c t s . s e t T r a n s i t i o n ( c h i l d , b , m . t o . y , c h i l d . t o ) } i f ( m . f r o m . x ! = m . t o . x ) { c h i l d . f r o m = a . e f f e c t s . s e t T r a n s i t i o n ( c h i l d , h , m . f r o m . x , c h i l d . f r o m ) ; c h i l d . t o = a . e f f e c t s . s e t T r a n s i t i o n ( c h i l d , h , m . t o . x , c h i l d . t o ) } c h i l d . c s s ( c h i l d . f r o m ) ; c h i l d . a n i m a t e ( c h i l d . t o , d . d u r a t i o n , d . o p t i o n s . e a s i n g , f u n c t i o n ( ) { l & & a . e f f e c t s . r e s t o r e ( c h i l d , e ) } ) } ) } c . a n i m a t e ( c . t o , { q u e u e : f a l s e , d u r a t i o n : d . d u r a t i o n , e a s i n g : d . o p t i o n s . e a s i n g , c o m p l e t e : f u n c t i o n ( ) { c . t o . o p a c i t y = = = 0 & & c . c s s ( " o p a c i t y " , c . f r o m . o p a c i t y ) ; j = = " h i d e " & & c . h i d e ( ) ; a . e f f e c t s . r e s t o r e ( c , 
 l ? f : g ) ; a . e f f e c t s . r e m o v e W r a p p e r ( c ) ; d . c a l l b a c k & & d . c a l l b a c k . a p p l y ( t h i s , a r g u m e n t s ) ; c . d e q u e u e ( ) } } ) } ) } } ) ( j Q u e r y ) ; 
 ( f u n c t i o n ( a ) { a . e f f e c t s . s h a k e = f u n c t i o n ( d ) { r e t u r n   t h i s . q u e u e ( f u n c t i o n ( ) { v a r   c = a ( t h i s ) , f = [ " p o s i t i o n " , " t o p " , " b o t t o m " , " l e f t " , " r i g h t " ] ; a . e f f e c t s . s e t M o d e ( c , d . o p t i o n s . m o d e | | " e f f e c t " ) ; v a r   g = d . o p t i o n s . d i r e c t i o n | | " l e f t " , e = d . o p t i o n s . d i s t a n c e | | 2 0 , i = d . o p t i o n s . t i m e s | | 3 , b = d . d u r a t i o n | | d . o p t i o n s . d u r a t i o n | | 1 4 0 ; a . e f f e c t s . s a v e ( c , f ) ; c . s h o w ( ) ; a . e f f e c t s . c r e a t e W r a p p e r ( c ) ; v a r   h = g = = " u p " | | g = = " d o w n " ? " t o p " : " l e f t " , j = g = = " u p " | | g = = " l e f t " ? " p o s " : " n e g " ; g = { } ; v a r   l = { } , o = { } ; g [ h ] = ( j = = " p o s " ? " - = " : " + = " ) + e ; l [ h ] = ( j = = " p o s " ? " + = " : " - = " ) + e * 2 ; o [ h ] = 
 ( j = = " p o s " ? " - = " : " + = " ) + e * 2 ; c . a n i m a t e ( g , b , d . o p t i o n s . e a s i n g ) ; f o r ( e = 1 ; e < i ; e + + ) c . a n i m a t e ( l , b , d . o p t i o n s . e a s i n g ) . a n i m a t e ( o , b , d . o p t i o n s . e a s i n g ) ; c . a n i m a t e ( l , b , d . o p t i o n s . e a s i n g ) . a n i m a t e ( g , b / 2 , d . o p t i o n s . e a s i n g , f u n c t i o n ( ) { a . e f f e c t s . r e s t o r e ( c , f ) ; a . e f f e c t s . r e m o v e W r a p p e r ( c ) ; d . c a l l b a c k & & d . c a l l b a c k . a p p l y ( t h i s , a r g u m e n t s ) } ) ; c . q u e u e ( " f x " , f u n c t i o n ( ) { c . d e q u e u e ( ) } ) ; c . d e q u e u e ( ) } ) } } ) ( j Q u e r y ) ; 
 ( f u n c t i o n ( a ) { a . e f f e c t s . s l i d e = f u n c t i o n ( d ) { r e t u r n   t h i s . q u e u e ( f u n c t i o n ( ) { v a r   c = a ( t h i s ) , f = [ " p o s i t i o n " , " t o p " , " b o t t o m " , " l e f t " , " r i g h t " ] , g = a . e f f e c t s . s e t M o d e ( c , d . o p t i o n s . m o d e | | " s h o w " ) , e = d . o p t i o n s . d i r e c t i o n | | " l e f t " ; a . e f f e c t s . s a v e ( c , f ) ; c . s h o w ( ) ; a . e f f e c t s . c r e a t e W r a p p e r ( c ) . c s s ( { o v e r f l o w : " h i d d e n " } ) ; v a r   i = e = = " u p " | | e = = " d o w n " ? " t o p " : " l e f t " ; e = e = = " u p " | | e = = " l e f t " ? " p o s " : " n e g " ; v a r   b = d . o p t i o n s . d i s t a n c e | | ( i = = " t o p " ? c . o u t e r H e i g h t ( { m a r g i n : t r u e } ) : c . o u t e r W i d t h ( { m a r g i n : t r u e } ) ) ; i f ( g = = " s h o w " ) c . c s s ( i , e = = " p o s " ? i s N a N ( b ) ? " - " + b : - b : b ) ; 
 v a r   h = { } ; h [ i ] = ( g = = " s h o w " ? e = = " p o s " ? " + = " : " - = " : e = = " p o s " ? " - = " : " + = " ) + b ; c . a n i m a t e ( h , { q u e u e : f a l s e , d u r a t i o n : d . d u r a t i o n , e a s i n g : d . o p t i o n s . e a s i n g , c o m p l e t e : f u n c t i o n ( ) { g = = " h i d e " & & c . h i d e ( ) ; a . e f f e c t s . r e s t o r e ( c , f ) ; a . e f f e c t s . r e m o v e W r a p p e r ( c ) ; d . c a l l b a c k & & d . c a l l b a c k . a p p l y ( t h i s , a r g u m e n t s ) ; c . d e q u e u e ( ) } } ) } ) } } ) ( j Q u e r y ) ; 
 ( f u n c t i o n ( a ) { a . e f f e c t s . t r a n s f e r = f u n c t i o n ( d ) { r e t u r n   t h i s . q u e u e ( f u n c t i o n ( ) { v a r   c = a ( t h i s ) , f = a ( d . o p t i o n s . t o ) , g = f . o f f s e t ( ) ; f = { t o p : g . t o p , l e f t : g . l e f t , h e i g h t : f . i n n e r H e i g h t ( ) , w i d t h : f . i n n e r W i d t h ( ) } ; g = c . o f f s e t ( ) ; v a r   e = a ( ' < d i v   c l a s s = " u i - e f f e c t s - t r a n s f e r " > < / d i v > ' ) . a p p e n d T o ( d o c u m e n t . b o d y ) . a d d C l a s s ( d . o p t i o n s . c l a s s N a m e ) . c s s ( { t o p : g . t o p , l e f t : g . l e f t , h e i g h t : c . i n n e r H e i g h t ( ) , w i d t h : c . i n n e r W i d t h ( ) , p o s i t i o n : " a b s o l u t e " } ) . a n i m a t e ( f , d . d u r a t i o n , d . o p t i o n s . e a s i n g , f u n c t i o n ( ) { e . r e m o v e ( ) ; d . c a l l b a c k & & d . c a l l b a c k . a p p l y ( c [ 0 ] , a r g u m e n t s ) ; 
 c . d e q u e u e ( ) } ) } ) } } ) ( j Q u e r y ) ; 
 ( f u n c t i o n ( a ) { a . w i d g e t ( " u i . a c c o r d i o n " , { o p t i o n s : { a c t i v e : 0 , a n i m a t e d : " s l i d e " , a u t o H e i g h t : t r u e , c l e a r S t y l e : f a l s e , c o l l a p s i b l e : f a l s e , e v e n t : " c l i c k " , f i l l S p a c e : f a l s e , h e a d e r : " >   l i   >   : f i r s t - c h i l d , >   : n o t ( l i ) : e v e n " , i c o n s : { h e a d e r : " u i - i c o n - t r i a n g l e - 1 - e " , h e a d e r S e l e c t e d : " u i - i c o n - t r i a n g l e - 1 - s " } , n a v i g a t i o n : f a l s e , n a v i g a t i o n F i l t e r : f u n c t i o n ( ) { r e t u r n   t h i s . h r e f . t o L o w e r C a s e ( ) = = = l o c a t i o n . h r e f . t o L o w e r C a s e ( ) } } , _ c r e a t e : f u n c t i o n ( ) { v a r   d = t h i s , c = d . o p t i o n s ; d . r u n n i n g = 0 ; d . e l e m e n t . a d d C l a s s ( " u i - a c c o r d i o n   u i - w i d g e t   u i - h e l p e r - r e s e t " ) . c h i l d r e n ( " l i " ) . a d d C l a s s ( " u i - a c c o r d i o n - l i - f i x " ) ; d . h e a d e r s = 
 d . e l e m e n t . f i n d ( c . h e a d e r ) . a d d C l a s s ( " u i - a c c o r d i o n - h e a d e r   u i - h e l p e r - r e s e t   u i - s t a t e - d e f a u l t   u i - c o r n e r - a l l " ) . b i n d ( " m o u s e e n t e r . a c c o r d i o n " , f u n c t i o n ( ) { c . d i s a b l e d | | a ( t h i s ) . a d d C l a s s ( " u i - s t a t e - h o v e r " ) } ) . b i n d ( " m o u s e l e a v e . a c c o r d i o n " , f u n c t i o n ( ) { c . d i s a b l e d | | a ( t h i s ) . r e m o v e C l a s s ( " u i - s t a t e - h o v e r " ) } ) . b i n d ( " f o c u s . a c c o r d i o n " , f u n c t i o n ( ) { c . d i s a b l e d | | a ( t h i s ) . a d d C l a s s ( " u i - s t a t e - f o c u s " ) } ) . b i n d ( " b l u r . a c c o r d i o n " , f u n c t i o n ( ) { c . d i s a b l e d | | a ( t h i s ) . r e m o v e C l a s s ( " u i - s t a t e - f o c u s " ) } ) ; d . h e a d e r s . n e x t ( ) . a d d C l a s s ( " u i - a c c o r d i o n - c o n t e n t   u i - h e l p e r - r e s e t   u i - w i d g e t - c o n t e n t   u i - c o r n e r - b o t t o m " ) ; 
 i f ( c . n a v i g a t i o n ) { v a r   f = d . e l e m e n t . f i n d ( " a " ) . f i l t e r ( c . n a v i g a t i o n F i l t e r ) . e q ( 0 ) ; i f ( f . l e n g t h ) { v a r   g = f . c l o s e s t ( " . u i - a c c o r d i o n - h e a d e r " ) ; d . a c t i v e = g . l e n g t h ? g : f . c l o s e s t ( " . u i - a c c o r d i o n - c o n t e n t " ) . p r e v ( ) } } d . a c t i v e = d . _ f i n d A c t i v e ( d . a c t i v e | | c . a c t i v e ) . a d d C l a s s ( " u i - s t a t e - d e f a u l t   u i - s t a t e - a c t i v e " ) . t o g g l e C l a s s ( " u i - c o r n e r - a l l " ) . t o g g l e C l a s s ( " u i - c o r n e r - t o p " ) ; d . a c t i v e . n e x t ( ) . a d d C l a s s ( " u i - a c c o r d i o n - c o n t e n t - a c t i v e " ) ; d . _ c r e a t e I c o n s ( ) ; d . r e s i z e ( ) ; d . e l e m e n t . a t t r ( " r o l e " , " t a b l i s t " ) ; d . h e a d e r s . a t t r ( " r o l e " , " t a b " ) . b i n d ( " k e y d o w n . a c c o r d i o n " , 
 f u n c t i o n ( e ) { r e t u r n   d . _ k e y d o w n ( e ) } ) . n e x t ( ) . a t t r ( " r o l e " , " t a b p a n e l " ) ; d . h e a d e r s . n o t ( d . a c t i v e | | " " ) . a t t r ( { " a r i a - e x p a n d e d " : " f a l s e " , " a r i a - s e l e c t e d " : " f a l s e " , t a b I n d e x : - 1 } ) . n e x t ( ) . h i d e ( ) ; d . a c t i v e . l e n g t h ? d . a c t i v e . a t t r ( { " a r i a - e x p a n d e d " : " t r u e " , " a r i a - s e l e c t e d " : " t r u e " , t a b I n d e x : 0 } ) : d . h e a d e r s . e q ( 0 ) . a t t r ( " t a b I n d e x " , 0 ) ; a . b r o w s e r . s a f a r i | | d . h e a d e r s . f i n d ( " a " ) . a t t r ( " t a b I n d e x " , - 1 ) ; c . e v e n t & & d . h e a d e r s . b i n d ( c . e v e n t . s p l i t ( "   " ) . j o i n ( " . a c c o r d i o n   " ) + " . a c c o r d i o n " , f u n c t i o n ( e ) { d . _ c l i c k H a n d l e r . c a l l ( d , e , t h i s ) ; e . p r e v e n t D e f a u l t ( ) } ) } , _ c r e a t e I c o n s : f u n c t i o n ( ) { v a r   d = 
 t h i s . o p t i o n s ; i f ( d . i c o n s ) { a ( " < s p a n > < / s p a n > " ) . a d d C l a s s ( " u i - i c o n   " + d . i c o n s . h e a d e r ) . p r e p e n d T o ( t h i s . h e a d e r s ) ; t h i s . a c t i v e . c h i l d r e n ( " . u i - i c o n " ) . t o g g l e C l a s s ( d . i c o n s . h e a d e r ) . t o g g l e C l a s s ( d . i c o n s . h e a d e r S e l e c t e d ) ; t h i s . e l e m e n t . a d d C l a s s ( " u i - a c c o r d i o n - i c o n s " ) } } , _ d e s t r o y I c o n s : f u n c t i o n ( ) { t h i s . h e a d e r s . c h i l d r e n ( " . u i - i c o n " ) . r e m o v e ( ) ; t h i s . e l e m e n t . r e m o v e C l a s s ( " u i - a c c o r d i o n - i c o n s " ) } , d e s t r o y : f u n c t i o n ( ) { v a r   d = t h i s . o p t i o n s ; t h i s . e l e m e n t . r e m o v e C l a s s ( " u i - a c c o r d i o n   u i - w i d g e t   u i - h e l p e r - r e s e t " ) . r e m o v e A t t r ( " r o l e " ) ; t h i s . h e a d e r s . u n b i n d ( " . a c c o r d i o n " ) . r e m o v e C l a s s ( " u i - a c c o r d i o n - h e a d e r   u i - a c c o r d i o n - d i s a b l e d   u i - h e l p e r - r e s e t   u i - s t a t e - d e f a u l t   u i - c o r n e r - a l l   u i - s t a t e - a c t i v e   u i - s t a t e - d i s a b l e d   u i - c o r n e r - t o p " ) . r e m o v e A t t r ( " r o l e " ) . r e m o v e A t t r ( " a r i a - e x p a n d e d " ) . r e m o v e A t t r ( " a r i a - s e l e c t e d " ) . r e m o v e A t t r ( " t a b I n d e x " ) ; 
 t h i s . h e a d e r s . f i n d ( " a " ) . r e m o v e A t t r ( " t a b I n d e x " ) ; t h i s . _ d e s t r o y I c o n s ( ) ; v a r   c = t h i s . h e a d e r s . n e x t ( ) . c s s ( " d i s p l a y " , " " ) . r e m o v e A t t r ( " r o l e " ) . r e m o v e C l a s s ( " u i - h e l p e r - r e s e t   u i - w i d g e t - c o n t e n t   u i - c o r n e r - b o t t o m   u i - a c c o r d i o n - c o n t e n t   u i - a c c o r d i o n - c o n t e n t - a c t i v e   u i - a c c o r d i o n - d i s a b l e d   u i - s t a t e - d i s a b l e d " ) ; i f ( d . a u t o H e i g h t | | d . f i l l H e i g h t ) c . c s s ( " h e i g h t " , " " ) ; r e t u r n   a . W i d g e t . p r o t o t y p e . d e s t r o y . c a l l ( t h i s ) } , _ s e t O p t i o n : f u n c t i o n ( d , c ) { a . W i d g e t . p r o t o t y p e . _ s e t O p t i o n . a p p l y ( t h i s , a r g u m e n t s ) ; d = = " a c t i v e " & & t h i s . a c t i v a t e ( c ) ; i f ( d = = " i c o n s " ) { t h i s . _ d e s t r o y I c o n s ( ) ; 
 c & & t h i s . _ c r e a t e I c o n s ( ) } i f ( d = = " d i s a b l e d " ) t h i s . h e a d e r s . a d d ( t h i s . h e a d e r s . n e x t ( ) ) [ c ? " a d d C l a s s " : " r e m o v e C l a s s " ] ( " u i - a c c o r d i o n - d i s a b l e d   u i - s t a t e - d i s a b l e d " ) } , _ k e y d o w n : f u n c t i o n ( d ) { i f ( ! ( t h i s . o p t i o n s . d i s a b l e d | | d . a l t K e y | | d . c t r l K e y ) ) { v a r   c = a . u i . k e y C o d e , f = t h i s . h e a d e r s . l e n g t h , g = t h i s . h e a d e r s . i n d e x ( d . t a r g e t ) , e = f a l s e ; s w i t c h ( d . k e y C o d e ) { c a s e   c . R I G H T : c a s e   c . D O W N : e = t h i s . h e a d e r s [ ( g + 1 ) % f ] ; b r e a k ; c a s e   c . L E F T : c a s e   c . U P : e = t h i s . h e a d e r s [ ( g - 1 + f ) % f ] ; b r e a k ; c a s e   c . S P A C E : c a s e   c . E N T E R : t h i s . _ c l i c k H a n d l e r ( { t a r g e t : d . t a r g e t } , d . t a r g e t ) ; 
 d . p r e v e n t D e f a u l t ( ) } i f ( e ) { a ( d . t a r g e t ) . a t t r ( " t a b I n d e x " , - 1 ) ; a ( e ) . a t t r ( " t a b I n d e x " , 0 ) ; e . f o c u s ( ) ; r e t u r n   f a l s e } r e t u r n   t r u e } } , r e s i z e : f u n c t i o n ( ) { v a r   d = t h i s . o p t i o n s , c ; i f ( d . f i l l S p a c e ) { i f ( a . b r o w s e r . m s i e ) { v a r   f = t h i s . e l e m e n t . p a r e n t ( ) . c s s ( " o v e r f l o w " ) ; t h i s . e l e m e n t . p a r e n t ( ) . c s s ( " o v e r f l o w " , " h i d d e n " ) } c = t h i s . e l e m e n t . p a r e n t ( ) . h e i g h t ( ) ; a . b r o w s e r . m s i e & & t h i s . e l e m e n t . p a r e n t ( ) . c s s ( " o v e r f l o w " , f ) ; t h i s . h e a d e r s . e a c h ( f u n c t i o n ( ) { c - = a ( t h i s ) . o u t e r H e i g h t ( t r u e ) } ) ; t h i s . h e a d e r s . n e x t ( ) . e a c h ( f u n c t i o n ( ) { a ( t h i s ) . h e i g h t ( M a t h . m a x ( 0 , c - a ( t h i s ) . i n n e r H e i g h t ( ) + 
 a ( t h i s ) . h e i g h t ( ) ) ) } ) . c s s ( " o v e r f l o w " , " a u t o " ) } e l s e   i f ( d . a u t o H e i g h t ) { c = 0 ; t h i s . h e a d e r s . n e x t ( ) . e a c h ( f u n c t i o n ( ) { c = M a t h . m a x ( c , a ( t h i s ) . h e i g h t ( " " ) . h e i g h t ( ) ) } ) . h e i g h t ( c ) } r e t u r n   t h i s } , a c t i v a t e : f u n c t i o n ( d ) { t h i s . o p t i o n s . a c t i v e = d ; d = t h i s . _ f i n d A c t i v e ( d ) [ 0 ] ; t h i s . _ c l i c k H a n d l e r ( { t a r g e t : d } , d ) ; r e t u r n   t h i s } , _ f i n d A c t i v e : f u n c t i o n ( d ) { r e t u r n   d ? t y p e o f   d = = = " n u m b e r " ? t h i s . h e a d e r s . f i l t e r ( " : e q ( " + d + " ) " ) : t h i s . h e a d e r s . n o t ( t h i s . h e a d e r s . n o t ( d ) ) : d = = = f a l s e ? a ( [ ] ) : t h i s . h e a d e r s . f i l t e r ( " : e q ( 0 ) " ) } , _ c l i c k H a n d l e r : f u n c t i o n ( d , c ) { v a r   f = t h i s . o p t i o n s ; 
 i f ( ! f . d i s a b l e d ) i f ( d . t a r g e t ) { d = a ( d . c u r r e n t T a r g e t | | c ) ; c = d [ 0 ] = = = t h i s . a c t i v e [ 0 ] ; f . a c t i v e = f . c o l l a p s i b l e & & c ? f a l s e : t h i s . h e a d e r s . i n d e x ( d ) ; i f ( ! ( t h i s . r u n n i n g | | ! f . c o l l a p s i b l e & & c ) ) { v a r   g = t h i s . a c t i v e ; h = d . n e x t ( ) ; i = t h i s . a c t i v e . n e x t ( ) ; b = { o p t i o n s : f , n e w H e a d e r : c & & f . c o l l a p s i b l e ? a ( [ ] ) : d , o l d H e a d e r : t h i s . a c t i v e , n e w C o n t e n t : c & & f . c o l l a p s i b l e ? a ( [ ] ) : h , o l d C o n t e n t : i } ; v a r   e = t h i s . h e a d e r s . i n d e x ( t h i s . a c t i v e [ 0 ] ) > t h i s . h e a d e r s . i n d e x ( d [ 0 ] ) ; t h i s . a c t i v e = c ? a ( [ ] ) : d ; t h i s . _ t o g g l e ( h , i , b , c , e ) ; g . r e m o v e C l a s s ( " u i - s t a t e - a c t i v e   u i - c o r n e r - t o p " ) . a d d C l a s s ( " u i - s t a t e - d e f a u l t   u i - c o r n e r - a l l " ) . c h i l d r e n ( " . u i - i c o n " ) . r e m o v e C l a s s ( f . i c o n s . h e a d e r S e l e c t e d ) . a d d C l a s s ( f . i c o n s . h e a d e r ) ; 
 i f ( ! c ) { d . r e m o v e C l a s s ( " u i - s t a t e - d e f a u l t   u i - c o r n e r - a l l " ) . a d d C l a s s ( " u i - s t a t e - a c t i v e   u i - c o r n e r - t o p " ) . c h i l d r e n ( " . u i - i c o n " ) . r e m o v e C l a s s ( f . i c o n s . h e a d e r ) . a d d C l a s s ( f . i c o n s . h e a d e r S e l e c t e d ) ; d . n e x t ( ) . a d d C l a s s ( " u i - a c c o r d i o n - c o n t e n t - a c t i v e " ) } } } e l s e   i f ( f . c o l l a p s i b l e ) { t h i s . a c t i v e . r e m o v e C l a s s ( " u i - s t a t e - a c t i v e   u i - c o r n e r - t o p " ) . a d d C l a s s ( " u i - s t a t e - d e f a u l t   u i - c o r n e r - a l l " ) . c h i l d r e n ( " . u i - i c o n " ) . r e m o v e C l a s s ( f . i c o n s . h e a d e r S e l e c t e d ) . a d d C l a s s ( f . i c o n s . h e a d e r ) ; t h i s . a c t i v e . n e x t ( ) . a d d C l a s s ( " u i - a c c o r d i o n - c o n t e n t - a c t i v e " ) ; v a r   i = t h i s . a c t i v e . n e x t ( ) , 
 b = { o p t i o n s : f , n e w H e a d e r : a ( [ ] ) , o l d H e a d e r : f . a c t i v e , n e w C o n t e n t : a ( [ ] ) , o l d C o n t e n t : i } , h = t h i s . a c t i v e = a ( [ ] ) ; t h i s . _ t o g g l e ( h , i , b ) } } , _ t o g g l e : f u n c t i o n ( d , c , f , g , e ) { v a r   i = t h i s , b = i . o p t i o n s ; i . t o S h o w = d ; i . t o H i d e = c ; i . d a t a = f ; v a r   h = f u n c t i o n ( ) { i f ( i ) r e t u r n   i . _ c o m p l e t e d . a p p l y ( i , a r g u m e n t s ) } ; i . _ t r i g g e r ( " c h a n g e s t a r t " , n u l l , i . d a t a ) ; i . r u n n i n g = c . s i z e ( ) = = = 0 ? d . s i z e ( ) : c . s i z e ( ) ; i f ( b . a n i m a t e d ) { f = { } ; f = b . c o l l a p s i b l e & & g ? { t o S h o w : a ( [ ] ) , t o H i d e : c , c o m p l e t e : h , d o w n : e , a u t o H e i g h t : b . a u t o H e i g h t | | b . f i l l S p a c e } : { t o S h o w : d , t o H i d e : c , c o m p l e t e : h , d o w n : e , a u t o H e i g h t : b . a u t o H e i g h t | | 
 b . f i l l S p a c e } ; i f ( ! b . p r o x i e d ) b . p r o x i e d = b . a n i m a t e d ; i f ( ! b . p r o x i e d D u r a t i o n ) b . p r o x i e d D u r a t i o n = b . d u r a t i o n ; b . a n i m a t e d = a . i s F u n c t i o n ( b . p r o x i e d ) ? b . p r o x i e d ( f ) : b . p r o x i e d ; b . d u r a t i o n = a . i s F u n c t i o n ( b . p r o x i e d D u r a t i o n ) ? b . p r o x i e d D u r a t i o n ( f ) : b . p r o x i e d D u r a t i o n ; g = a . u i . a c c o r d i o n . a n i m a t i o n s ; v a r   j = b . d u r a t i o n , l = b . a n i m a t e d ; i f ( l & & ! g [ l ] & & ! a . e a s i n g [ l ] ) l = " s l i d e " ; g [ l ] | | ( g [ l ] = f u n c t i o n ( o ) { t h i s . s l i d e ( o , { e a s i n g : l , d u r a t i o n : j | | 7 0 0 } ) } ) ; g [ l ] ( f ) } e l s e { i f ( b . c o l l a p s i b l e & & g ) d . t o g g l e ( ) ; e l s e { c . h i d e ( ) ; d . s h o w ( ) } h ( t r u e ) } c . p r e v ( ) . a t t r ( { " a r i a - e x p a n d e d " : " f a l s e " , 
 " a r i a - s e l e c t e d " : " f a l s e " , t a b I n d e x : - 1 } ) . b l u r ( ) ; d . p r e v ( ) . a t t r ( { " a r i a - e x p a n d e d " : " t r u e " , " a r i a - s e l e c t e d " : " t r u e " , t a b I n d e x : 0 } ) . f o c u s ( ) } , _ c o m p l e t e d : f u n c t i o n ( d ) { t h i s . r u n n i n g = d ? 0 : - - t h i s . r u n n i n g ; i f ( ! t h i s . r u n n i n g ) { t h i s . o p t i o n s . c l e a r S t y l e & & t h i s . t o S h o w . a d d ( t h i s . t o H i d e ) . c s s ( { h e i g h t : " " , o v e r f l o w : " " } ) ; t h i s . t o H i d e . r e m o v e C l a s s ( " u i - a c c o r d i o n - c o n t e n t - a c t i v e " ) ; i f ( t h i s . t o H i d e . l e n g t h ) t h i s . t o H i d e . p a r e n t ( ) [ 0 ] . c l a s s N a m e = t h i s . t o H i d e . p a r e n t ( ) [ 0 ] . c l a s s N a m e ; t h i s . _ t r i g g e r ( " c h a n g e " , n u l l , t h i s . d a t a ) } } } ) ; a . e x t e n d ( a . u i . a c c o r d i o n , { v e r s i o n : " 1 . 8 . 1 3 " , 
 a n i m a t i o n s : { s l i d e : f u n c t i o n ( d , c ) { d = a . e x t e n d ( { e a s i n g : " s w i n g " , d u r a t i o n : 3 0 0 } , d , c ) ; i f ( d . t o H i d e . s i z e ( ) ) i f ( d . t o S h o w . s i z e ( ) ) { v a r   f = d . t o S h o w . c s s ( " o v e r f l o w " ) , g = 0 , e = { } , i = { } , b ; c = d . t o S h o w ; b = c [ 0 ] . s t y l e . w i d t h ; c . w i d t h ( p a r s e I n t ( c . p a r e n t ( ) . w i d t h ( ) , 1 0 ) - p a r s e I n t ( c . c s s ( " p a d d i n g L e f t " ) , 1 0 ) - p a r s e I n t ( c . c s s ( " p a d d i n g R i g h t " ) , 1 0 ) - ( p a r s e I n t ( c . c s s ( " b o r d e r L e f t W i d t h " ) , 1 0 ) | | 0 ) - ( p a r s e I n t ( c . c s s ( " b o r d e r R i g h t W i d t h " ) , 1 0 ) | | 0 ) ) ; a . e a c h ( [ " h e i g h t " , " p a d d i n g T o p " , " p a d d i n g B o t t o m " ] , f u n c t i o n ( h , j ) { i [ j ] = " h i d e " ; h = ( " " + a . c s s ( d . t o S h o w [ 0 ] , j ) ) . m a t c h ( / ^ ( [ \ d + - . ] + ) ( . * ) $ / ) ; 
 e [ j ] = { v a l u e : h [ 1 ] , u n i t : h [ 2 ] | | " p x " } } ) ; d . t o S h o w . c s s ( { h e i g h t : 0 , o v e r f l o w : " h i d d e n " } ) . s h o w ( ) ; d . t o H i d e . f i l t e r ( " : h i d d e n " ) . e a c h ( d . c o m p l e t e ) . e n d ( ) . f i l t e r ( " : v i s i b l e " ) . a n i m a t e ( i , { s t e p : f u n c t i o n ( h , j ) { i f ( j . p r o p = = " h e i g h t " ) g = j . e n d - j . s t a r t = = = 0 ? 0 : ( j . n o w - j . s t a r t ) / ( j . e n d - j . s t a r t ) ; d . t o S h o w [ 0 ] . s t y l e [ j . p r o p ] = g * e [ j . p r o p ] . v a l u e + e [ j . p r o p ] . u n i t } , d u r a t i o n : d . d u r a t i o n , e a s i n g : d . e a s i n g , c o m p l e t e : f u n c t i o n ( ) { d . a u t o H e i g h t | | d . t o S h o w . c s s ( " h e i g h t " , " " ) ; d . t o S h o w . c s s ( { w i d t h : b , o v e r f l o w : f } ) ; d . c o m p l e t e ( ) } } ) } e l s e   d . t o H i d e . a n i m a t e ( { h e i g h t : " h i d e " , 
 p a d d i n g T o p : " h i d e " , p a d d i n g B o t t o m : " h i d e " } , d ) ; e l s e   d . t o S h o w . a n i m a t e ( { h e i g h t : " s h o w " , p a d d i n g T o p : " s h o w " , p a d d i n g B o t t o m : " s h o w " } , d ) } , b o u n c e s l i d e : f u n c t i o n ( d ) { t h i s . s l i d e ( d , { e a s i n g : d . d o w n ? " e a s e O u t B o u n c e " : " s w i n g " , d u r a t i o n : d . d o w n ? 1 E 3 : 2 0 0 } ) } } } ) } ) ( j Q u e r y ) ; 
 ( f u n c t i o n ( a ) { v a r   d = 0 ; a . w i d g e t ( " u i . a u t o c o m p l e t e " , { o p t i o n s : { a p p e n d T o : " b o d y " , a u t o F o c u s : f a l s e , d e l a y : 3 0 0 , m i n L e n g t h : 1 , p o s i t i o n : { m y : " l e f t   t o p " , a t : " l e f t   b o t t o m " , c o l l i s i o n : " n o n e " } , s o u r c e : n u l l } , p e n d i n g : 0 , _ c r e a t e : f u n c t i o n ( ) { v a r   c = t h i s , f = t h i s . e l e m e n t [ 0 ] . o w n e r D o c u m e n t , g ; t h i s . e l e m e n t . a d d C l a s s ( " u i - a u t o c o m p l e t e - i n p u t " ) . a t t r ( " a u t o c o m p l e t e " , " o f f " ) . a t t r ( { r o l e : " t e x t b o x " , " a r i a - a u t o c o m p l e t e " : " l i s t " , " a r i a - h a s p o p u p " : " t r u e " } ) . b i n d ( " k e y d o w n . a u t o c o m p l e t e " , f u n c t i o n ( e ) { i f ( ! ( c . o p t i o n s . d i s a b l e d | | c . e l e m e n t . a t t r ( " r e a d o n l y " ) ) ) { g = 
 f a l s e ; v a r   i = a . u i . k e y C o d e ; s w i t c h ( e . k e y C o d e ) { c a s e   i . P A G E _ U P : c . _ m o v e ( " p r e v i o u s P a g e " , e ) ; b r e a k ; c a s e   i . P A G E _ D O W N : c . _ m o v e ( " n e x t P a g e " , e ) ; b r e a k ; c a s e   i . U P : c . _ m o v e ( " p r e v i o u s " , e ) ; e . p r e v e n t D e f a u l t ( ) ; b r e a k ; c a s e   i . D O W N : c . _ m o v e ( " n e x t " , e ) ; e . p r e v e n t D e f a u l t ( ) ; b r e a k ; c a s e   i . E N T E R : c a s e   i . N U M P A D _ E N T E R : i f ( c . m e n u . a c t i v e ) { g = t r u e ; e . p r e v e n t D e f a u l t ( ) } c a s e   i . T A B : i f ( ! c . m e n u . a c t i v e ) r e t u r n ; c . m e n u . s e l e c t ( e ) ; b r e a k ; c a s e   i . E S C A P E : c . e l e m e n t . v a l ( c . t e r m ) ; c . c l o s e ( e ) ; b r e a k ; d e f a u l t : c l e a r T i m e o u t ( c . s e a r c h i n g ) ; c . s e a r c h i n g = s e t T i m e o u t ( f u n c t i o n ( ) { i f ( c . t e r m ! = 
 c . e l e m e n t . v a l ( ) ) { c . s e l e c t e d I t e m = n u l l ; c . s e a r c h ( n u l l , e ) } } , c . o p t i o n s . d e l a y ) ; b r e a k } } } ) . b i n d ( " k e y p r e s s . a u t o c o m p l e t e " , f u n c t i o n ( e ) { i f ( g ) { g = f a l s e ; e . p r e v e n t D e f a u l t ( ) } } ) . b i n d ( " f o c u s . a u t o c o m p l e t e " , f u n c t i o n ( ) { i f ( ! c . o p t i o n s . d i s a b l e d ) { c . s e l e c t e d I t e m = n u l l ; c . p r e v i o u s = c . e l e m e n t . v a l ( ) } } ) . b i n d ( " b l u r . a u t o c o m p l e t e " , f u n c t i o n ( e ) { i f ( ! c . o p t i o n s . d i s a b l e d ) { c l e a r T i m e o u t ( c . s e a r c h i n g ) ; c . c l o s i n g = s e t T i m e o u t ( f u n c t i o n ( ) { c . c l o s e ( e ) ; c . _ c h a n g e ( e ) } , 1 5 0 ) } } ) ; t h i s . _ i n i t S o u r c e ( ) ; t h i s . r e s p o n s e = f u n c t i o n ( ) { r e t u r n   c . _ r e s p o n s e . a p p l y ( c , a r g u m e n t s ) } ; 
 t h i s . m e n u = a ( " < u l > < / u l > " ) . a d d C l a s s ( " u i - a u t o c o m p l e t e " ) . a p p e n d T o ( a ( t h i s . o p t i o n s . a p p e n d T o | | " b o d y " , f ) [ 0 ] ) . m o u s e d o w n ( f u n c t i o n ( e ) { v a r   i = c . m e n u . e l e m e n t [ 0 ] ; a ( e . t a r g e t ) . c l o s e s t ( " . u i - m e n u - i t e m " ) . l e n g t h | | s e t T i m e o u t ( f u n c t i o n ( ) { a ( d o c u m e n t ) . o n e ( " m o u s e d o w n " , f u n c t i o n ( b ) { b . t a r g e t ! = = c . e l e m e n t [ 0 ] & & b . t a r g e t ! = = i & & ! a . u i . c o n t a i n s ( i , b . t a r g e t ) & & c . c l o s e ( ) } ) } , 1 ) ; s e t T i m e o u t ( f u n c t i o n ( ) { c l e a r T i m e o u t ( c . c l o s i n g ) } , 1 3 ) } ) . m e n u ( { f o c u s : f u n c t i o n ( e , i ) { i = i . i t e m . d a t a ( " i t e m . a u t o c o m p l e t e " ) ; f a l s e ! = = c . _ t r i g g e r ( " f o c u s " , e , { i t e m : i } ) & & / ^ k e y / . t e s t ( e . o r i g i n a l E v e n t . t y p e ) & & 
 c . e l e m e n t . v a l ( i . v a l u e ) } , s e l e c t e d : f u n c t i o n ( e , i ) { v a r   b = i . i t e m . d a t a ( " i t e m . a u t o c o m p l e t e " ) , h = c . p r e v i o u s ; i f ( c . e l e m e n t [ 0 ] ! = = f . a c t i v e E l e m e n t ) { c . e l e m e n t . f o c u s ( ) ; c . p r e v i o u s = h ; s e t T i m e o u t ( f u n c t i o n ( ) { c . p r e v i o u s = h ; c . s e l e c t e d I t e m = b } , 1 ) } f a l s e ! = = c . _ t r i g g e r ( " s e l e c t " , e , { i t e m : b } ) & & c . e l e m e n t . v a l ( b . v a l u e ) ; c . t e r m = c . e l e m e n t . v a l ( ) ; c . c l o s e ( e ) ; c . s e l e c t e d I t e m = b } , b l u r : f u n c t i o n ( ) { c . m e n u . e l e m e n t . i s ( " : v i s i b l e " ) & & c . e l e m e n t . v a l ( ) ! = = c . t e r m & & c . e l e m e n t . v a l ( c . t e r m ) } } ) . z I n d e x ( t h i s . e l e m e n t . z I n d e x ( ) + 1 ) . c s s ( { t o p : 0 , l e f t : 0 } ) . h i d e ( ) . d a t a ( " m e n u " ) ; 
 a . f n . b g i f r a m e & & t h i s . m e n u . e l e m e n t . b g i f r a m e ( ) } , d e s t r o y : 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 C l a s s ( " u i - a u t o c o m p l e t e - i n p u t " ) . r e m o v e A t t r ( " a u t o c o m p l e t e " ) . r e m o v e A t t r ( " r o l e " ) . r e m o v e A t t r ( " a r i a - a u t o c o m p l e t e " ) . r e m o v e A t t r ( " a r i a - h a s p o p u p " ) ; t h i s . m e n u . e l e m e n t . r e m o v e ( ) ; a . W i d g e t . p r o t o t y p e . d e s t r o y . c a l l ( t h i s ) } , _ s e t O p t i o n : f u n c t i o n ( c , f ) { a . W i d g e t . p r o t o t y p e . _ s e t O p t i o n . a p p l y ( t h i s , a r g u m e n t s ) ; c = = = " s o u r c e " & & t h i s . _ i n i t S o u r c e ( ) ; i f ( c = = = " a p p e n d T o " ) t h i s . m e n u . e l e m e n t . a p p e n d T o ( a ( f | | " b o d y " , t h i s . e l e m e n t [ 0 ] . o w n e r D o c u m e n t ) [ 0 ] ) ; c = = = " d i s a b l e d " & & 
 f & & t h i s . x h r & & t h i s . x h r . a b o r t ( ) } , _ i n i t S o u r c e : f u n c t i o n ( ) { v a r   c = t h i s , f , g ; i f ( a . i s A r r a y ( t h i s . o p t i o n s . s o u r c e ) ) { f = t h i s . o p t i o n s . s o u r c e ; t h i s . s o u r c e = f u n c t i o n ( e , i ) { i ( a . u i . a u t o c o m p l e t e . f i l t e r ( f , e . t e r m ) ) } } e l s e   i f ( t y p e o f   t h i s . o p t i o n s . s o u r c e = = = " s t r i n g " ) { g = t h i s . o p t i o n s . s o u r c e ; t h i s . s o u r c e = f u n c t i o n ( e , i ) { c . x h r & & c . x h r . a b o r t ( ) ; c . x h r = a . a j a x ( { u r l : g , d a t a : e , d a t a T y p e : " j s o n " , a u t o c o m p l e t e R e q u e s t : + + d , s u c c e s s : f u n c t i o n ( b ) { t h i s . a u t o c o m p l e t e R e q u e s t = = = d & & i ( b ) } , e r r o r : f u n c t i o n ( ) { t h i s . a u t o c o m p l e t e R e q u e s t = = = d & & i ( [ ] ) } } ) } } e l s e   t h i s . s o u r c e = 
 t h i s . o p t i o n s . s o u r c e } , s e a r c h : f u n c t i o n ( c , f ) { c = c ! = n u l l ? c : t h i s . e l e m e n t . v a l ( ) ; t h i s . t e r m = t h i s . e l e m e n t . v a l ( ) ; i f ( c . l e n g t h < t h i s . o p t i o n s . m i n L e n g t h ) r e t u r n   t h i s . c l o s e ( f ) ; c l e a r T i m e o u t ( t h i s . c l o s i n g ) ; i f ( t h i s . _ t r i g g e r ( " s e a r c h " , f ) ! = = f a l s e ) r e t u r n   t h i s . _ s e a r c h ( c ) } , _ s e a r c h : f u n c t i o n ( c ) { t h i s . p e n d i n g + + ; t h i s . e l e m e n t . a d d C l a s s ( " u i - a u t o c o m p l e t e - l o a d i n g " ) ; t h i s . s o u r c e ( { t e r m : c } , t h i s . r e s p o n s e ) } , _ r e s p o n s e : f u n c t i o n ( c ) { i f ( ! t h i s . o p t i o n s . d i s a b l e d & & c & & c . l e n g t h ) { c = t h i s . _ n o r m a l i z e ( c ) ; t h i s . _ s u g g e s t ( c ) ; t h i s . _ t r i g g e r ( " o p e n " ) } e l s e   t h i s . c l o s e ( ) ; 
 t h i s . p e n d i n g - - ; t h i s . p e n d i n g | | t h i s . e l e m e n t . r e m o v e C l a s s ( " u i - a u t o c o m p l e t e - l o a d i n g " ) } , c l o s e : f u n c t i o n ( c ) { c l e a r T i m e o u t ( t h i s . c l o s i n g ) ; i f ( t h i s . m e n u . e l e m e n t . i s ( " : v i s i b l e " ) ) { t h i s . m e n u . e l e m e n t . h i d e ( ) ; t h i s . m e n u . d e a c t i v a t e ( ) ; t h i s . _ t r i g g e r ( " c l o s e " , c ) } } , _ c h a n g e : f u n c t i o n ( c ) { t h i s . p r e v i o u s ! = = t h i s . e l e m e n t . v a l ( ) & & t h i s . _ t r i g g e r ( " c h a n g e " , c , { i t e m : t h i s . s e l e c t e d I t e m } ) } , _ n o r m a l i z e : f u n c t i o n ( c ) { i f ( c . l e n g t h & & c [ 0 ] . l a b e l & & c [ 0 ] . v a l u e ) r e t u r n   c ; r e t u r n   a . m a p ( c , f u n c t i o n ( f ) { i f ( t y p e o f   f = = = " s t r i n g " ) r e t u r n { l a b e l : f , v a l u e : f } ; r e t u r n   a . e x t e n d ( { l a b e l : f . l a b e l | | 
 f . v a l u e , v a l u e : f . v a l u e | | f . l a b e l } , f ) } ) } , _ s u g g e s t : f u n c t i o n ( c ) { v a r   f = t h i s . m e n u . e l e m e n t . e m p t y ( ) . z I n d e x ( t h i s . e l e m e n t . z I n d e x ( ) + 1 ) ; t h i s . _ r e n d e r M e n u ( f , c ) ; t h i s . m e n u . d e a c t i v a t e ( ) ; t h i s . m e n u . r e f r e s h ( ) ; f . s h o w ( ) ; t h i s . _ r e s i z e M e n u ( ) ; f . p o s i t i o n ( a . e x t e n d ( { o f : t h i s . e l e m e n t } , t h i s . o p t i o n s . p o s i t i o n ) ) ; t h i s . o p t i o n s . a u t o F o c u s & & t h i s . m e n u . n e x t ( n e w   a . E v e n t ( " m o u s e o v e r " ) ) } , _ r e s i z e M e n u : f u n c t i o n ( ) { v a r   c = t h i s . m e n u . e l e m e n t ; c . o u t e r W i d t h ( M a t h . m a x ( c . w i d t h ( " " ) . o u t e r W i d t h ( ) , t h i s . e l e m e n t . o u t e r W i d t h ( ) ) ) } , _ r e n d e r M e n u : f u n c t i o n ( c , f ) { v a r   g = t h i s ; 
 a . e a c h ( f , f u n c t i o n ( e , i ) { g . _ r e n d e r I t e m ( c , i ) } ) } , _ r e n d e r I t e m : f u n c t i o n ( c , f ) { r e t u r n   a ( " < l i > < / l i > " ) . d a t a ( " i t e m . a u t o c o m p l e t e " , f ) . a p p e n d ( a ( " < a > < / a > " ) . t e x t ( f . l a b e l ) ) . a p p e n d T o ( c ) } , _ m o v e : f u n c t i o n ( c , f ) { i f ( t h i s . m e n u . e l e m e n t . i s ( " : v i s i b l e " ) ) i f ( t h i s . m e n u . f i r s t ( ) & & / ^ p r e v i o u s / . t e s t ( c ) | | t h i s . m e n u . l a s t ( ) & & / ^ n e x t / . t e s t ( c ) ) { t h i s . e l e m e n t . v a l ( t h i s . t e r m ) ; t h i s . m e n u . d e a c t i v a t e ( ) } e l s e   t h i s . m e n u [ c ] ( f ) ; e l s e   t h i s . s e a r c h ( n u l l , f ) } , w i d g e t : f u n c t i o n ( ) { r e t u r n   t h i s . m e n u . e l e m e n t } } ) ; a . e x t e n d ( a . u i . a u t o c o m p l e t e , { e s c a p e R e g e x : f u n c t i o n ( c ) { r e t u r n   c . r e p l a c e ( / [ - [ \ ] { } ( ) * + ? . , \ \ ^ $ | # \ s ] / g , 
 " \ \ $ & " ) } , f i l t e r : f u n c t i o n ( c , f ) { v a r   g = n e w   R e g E x p ( a . u i . a u t o c o m p l e t e . e s c a p e R e g e x ( f ) , " i " ) ; r e t u r n   a . g r e p ( c , f u n c t i o n ( e ) { r e t u r n   g . t e s t ( e . l a b e l | | e . v a l u e | | e ) } ) } } ) } ) ( j Q u e r y ) ; 
 ( f u n c t i o n ( a ) { a . w i d g e t ( " u i . m e n u " , { _ c r e a t e : f u n c t i o n ( ) { v a r   d = t h i s ; t h i s . e l e m e n t . a d d C l a s s ( " u i - m e n u   u i - w i d g e t   u i - w i d g e t - c o n t e n t   u i - c o r n e r - a l l " ) . a t t r ( { r o l e : " l i s t b o x " , " a r i a - a c t i v e d e s c e n d a n t " : " u i - a c t i v e - m e n u i t e m " } ) . c l i c k ( f u n c t i o n ( c ) { i f ( a ( c . t a r g e t ) . c l o s e s t ( " . u i - m e n u - i t e m   a " ) . l e n g t h ) { c . p r e v e n t D e f a u l t ( ) ; d . s e l e c t ( c ) } } ) ; t h i s . r e f r e s h ( ) } , r e f r e s h : f u n c t i o n ( ) { v a r   d = t h i s ; t h i s . e l e m e n t . c h i l d r e n ( " l i : n o t ( . u i - m e n u - i t e m ) : h a s ( a ) " ) . a d d C l a s s ( " u i - m e n u - i t e m " ) . a t t r ( " r o l e " , " m e n u i t e m " ) . c h i l d r e n ( " a " ) . a d d C l a s s ( " u i - c o r n e r - a l l " ) . a t t r ( " t a b i n d e x " , 
 - 1 ) . m o u s e e n t e r ( f u n c t i o n ( c ) { d . a c t i v a t e ( c , a ( t h i s ) . p a r e n t ( ) ) } ) . m o u s e l e a v e ( f u n c t i o n ( ) { d . d e a c t i v a t e ( ) } ) } , a c t i v a t e : f u n c t i o n ( d , c ) { t h i s . d e a c t i v a t e ( ) ; i f ( t h i s . h a s S c r o l l ( ) ) { v a r   f = c . o f f s e t ( ) . t o p - t h i s . e l e m e n t . o f f s e t ( ) . t o p , g = t h i s . e l e m e n t . s c r o l l T o p ( ) , e = t h i s . e l e m e n t . h e i g h t ( ) ; i f ( f < 0 ) t h i s . e l e m e n t . s c r o l l T o p ( g + f ) ; e l s e   f > = e & & t h i s . e l e m e n t . s c r o l l T o p ( g + f - e + c . h e i g h t ( ) ) } t h i s . a c t i v e = c . e q ( 0 ) . c h i l d r e n ( " a " ) . a d d C l a s s ( " u i - s t a t e - h o v e r " ) . a t t r ( " i d " , " u i - a c t i v e - m e n u i t e m " ) . e n d ( ) ; t h i s . _ t r i g g e r ( " f o c u s " , d , { i t e m : c } ) } , d e a c t i v a t e : f u n c t i o n ( ) { i f ( t h i s . a c t i v e ) { t h i s . a c t i v e . c h i l d r e n ( " a " ) . r e m o v e C l a s s ( " u i - s t a t e - h o v e r " ) . r e m o v e A t t r ( " i d " ) ; 
 t h i s . _ t r i g g e r ( " b l u r " ) ; t h i s . a c t i v e = n u l l } } , n e x t : f u n c t i o n ( d ) { t h i s . m o v e ( " n e x t " , " . u i - m e n u - i t e m : f i r s t " , d ) } , p r e v i o u s : f u n c t i o n ( d ) { t h i s . m o v e ( " p r e v " , " . u i - m e n u - i t e m : l a s t " , d ) } , f i r s t : f u n c t i o n ( ) { r e t u r n   t h i s . a c t i v e & & ! t h i s . a c t i v e . p r e v A l l ( " . u i - m e n u - i t e m " ) . l e n g t h } , l a s t : f u n c t i o n ( ) { r e t u r n   t h i s . a c t i v e & & ! t h i s . a c t i v e . n e x t A l l ( " . u i - m e n u - i t e m " ) . l e n g t h } , m o v e : f u n c t i o n ( d , c , f ) { i f ( t h i s . a c t i v e ) { d = t h i s . a c t i v e [ d + " A l l " ] ( " . u i - m e n u - i t e m " ) . e q ( 0 ) ; d . l e n g t h ? t h i s . a c t i v a t e ( f , d ) : t h i s . a c t i v a t e ( f , t h i s . e l e m e n t . c h i l d r e n ( c ) ) } e l s e   t h i s . a c t i v a t e ( f , 
 t h i s . e l e m e n t . c h i l d r e n ( c ) ) } , n e x t P a g e : f u n c t i o n ( d ) { i f ( t h i s . h a s S c r o l l ( ) ) i f ( ! t h i s . a c t i v e | | t h i s . l a s t ( ) ) t h i s . a c t i v a t e ( d , t h i s . e l e m e n t . c h i l d r e n ( " . u i - m e n u - i t e m : f i r s t " ) ) ; e l s e { v a r   c = t h i s . a c t i v e . o f f s e t ( ) . t o p , f = t h i s . e l e m e n t . h e i g h t ( ) , g = t h i s . e l e m e n t . c h i l d r e n ( " . u i - m e n u - i t e m " ) . f i l t e r ( f u n c t i o n ( ) { v a r   e = a ( t h i s ) . o f f s e t ( ) . t o p - c - f + a ( t h i s ) . h e i g h t ( ) ; r e t u r n   e < 1 0 & & e > - 1 0 } ) ; g . l e n g t h | | ( g = t h i s . e l e m e n t . c h i l d r e n ( " . u i - m e n u - i t e m : l a s t " ) ) ; t h i s . a c t i v a t e ( d , g ) } e l s e   t h i s . a c t i v a t e ( d , t h i s . e l e m e n t . c h i l d r e n ( " . u i - m e n u - i t e m " ) . f i l t e r ( ! t h i s . a c t i v e | | 
 t h i s . l a s t ( ) ? " : f i r s t " : " : l a s t " ) ) } , p r e v i o u s P a g e : f u n c t i o n ( d ) { i f ( t h i s . h a s S c r o l l ( ) ) i f ( ! t h i s . a c t i v e | | t h i s . f i r s t ( ) ) t h i s . a c t i v a t e ( d , t h i s . e l e m e n t . c h i l d r e n ( " . u i - m e n u - i t e m : l a s t " ) ) ; e l s e { v a r   c = t h i s . a c t i v e . o f f s e t ( ) . t o p , f = t h i s . e l e m e n t . h e i g h t ( ) ; r e s u l t = t h i s . e l e m e n t . c h i l d r e n ( " . u i - m e n u - i t e m " ) . f i l t e r ( f u n c t i o n ( ) { v a r   g = a ( t h i s ) . o f f s e t ( ) . t o p - c + f - a ( t h i s ) . h e i g h t ( ) ; r e t u r n   g < 1 0 & & g > - 1 0 } ) ; r e s u l t . l e n g t h | | ( r e s u l t = t h i s . e l e m e n t . c h i l d r e n ( " . u i - m e n u - i t e m : f i r s t " ) ) ; t h i s . a c t i v a t e ( d , r e s u l t ) } e l s e   t h i s . a c t i v a t e ( d , t h i s . e l e m e n t . c h i l d r e n ( " . u i - m e n u - i t e m " ) . f i l t e r ( ! t h i s . a c t i v e | | 
 t h i s . f i r s t ( ) ? " : l a s t " : " : f i r s t " ) ) } , h a s S c r o l l : 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 . h e i g h t ( ) < t h i s . e l e m e n t [ a . f n . p r o p ? " p r o p " : " a t t r " ] ( " s c r o l l H e i g h t " ) } , s e l e c t : f u n c t i o n ( d ) { t h i s . _ t r i g g e r ( " s e l e c t e d " , d , { i t e m : t h i s . a c t i v e } ) } } ) } ) ( j Q u e r y ) ; 
 ( f u n c t i o n ( a ) { v a r   d , c = f u n c t i o n ( g ) { a ( " : u i - b u t t o n " , g . t a r g e t . f o r m ) . e a c h ( f u n c t i o n ( ) { v a r   e = a ( t h i s ) . d a t a ( " b u t t o n " ) ; s e t T i m e o u t ( f u n c t i o n ( ) { e . r e f r e s h ( ) } , 1 ) } ) } , f = f u n c t i o n ( g ) { v a r   e = g . n a m e , i = g . f o r m , b = a ( [ ] ) ; i f ( e ) b = i ? a ( i ) . f i n d ( " [ n a m e = ' " + e + " ' ] " ) : a ( " [ n a m e = ' " + e + " ' ] " , g . o w n e r D o c u m e n t ) . f i l t e r ( f u n c t i o n ( ) { r e t u r n ! t h i s . f o r m } ) ; r e t u r n   b } ; a . w i d g e t ( " u i . b u t t o n " , { o p t i o n s : { d i s a b l e d : n u l l , t e x t : t r u e , l a b e l : n u l l , i c o n s : { p r i m a r y : n u l l , s e c o n d a r y : n u l l } } , _ c r e a t e : f u n c t i o n ( ) { t h i s . e l e m e n t . c l o s e s t ( " f o r m " ) . u n b i n d ( " r e s e t . b u t t o n " ) . b i n d ( " r e s e t . b u t t o n " , 
 c ) ; i f ( t y p e o f   t h i s . o p t i o n s . d i s a b l e d ! = = " b o o l e a n " ) t h i s . o p t i o n s . d i s a b l e d = t h i s . e l e m e n t . a t t r ( " d i s a b l e d " ) ; t h i s . _ d e t e r m i n e B u t t o n T y p e ( ) ; t h i s . h a s T i t l e = ! ! t h i s . b u t t o n E l e m e n t . a t t r ( " t i t l e " ) ; v a r   g = t h i s , e = t h i s . o p t i o n s , i = t h i s . t y p e = = = " c h e c k b o x " | | t h i s . t y p e = = = " r a d i o " , b = " u i - s t a t e - h o v e r " + ( ! i ? "   u i - s t a t e - a c t i v e " : " " ) ; i f ( e . l a b e l = = = n u l l ) e . l a b e l = t h i s . b u t t o n E l e m e n t . h t m l ( ) ; i f ( t h i s . e l e m e n t . i s ( " : d i s a b l e d " ) ) e . d i s a b l e d = t r u e ; t h i s . b u t t o n E l e m e n t . a d d C l a s s ( " u i - b u t t o n   u i - w i d g e t   u i - s t a t e - d e f a u l t   u i - c o r n e r - a l l " ) . a t t r ( " r o l e " , " b u t t o n " ) . b i n d ( " m o u s e e n t e r . b u t t o n " , 
 f u n c t i o n ( ) { i f ( ! e . d i s a b l e d ) { a ( t h i s ) . a d d C l a s s ( " u i - s t a t e - h o v e r " ) ; t h i s = = = d & & a ( t h i s ) . a d d C l a s s ( " u i - s t a t e - a c t i v e " ) } } ) . b i n d ( " m o u s e l e a v e . b u t t o n " , f u n c t i o n ( ) { e . d i s a b l e d | | a ( t h i s ) . r e m o v e C l a s s ( b ) } ) . b i n d ( " f o c u s . b u t t o n " , f u n c t i o n ( ) { a ( t h i s ) . a d d C l a s s ( " u i - s t a t e - f o c u s " ) } ) . b i n d ( " b l u r . b u t t o n " , f u n c t i o n ( ) { a ( t h i s ) . r e m o v e C l a s s ( " u i - s t a t e - f o c u s " ) } ) . b i n d ( " c l i c k . b u t t o n " , f u n c t i o n ( h ) { e . d i s a b l e d & & h . s t o p I m m e d i a t e P r o p a g a t i o n ( ) } ) ; i & & t h i s . e l e m e n t . b i n d ( " c h a n g e . b u t t o n " , f u n c t i o n ( ) { g . r e f r e s h ( ) } ) ; i f ( t h i s . t y p e = = = " c h e c k b o x " ) t h i s . b u t t o n E l e m e n t . b i n d ( " c l i c k . b u t t o n " , 
 f u n c t i o n ( ) { i f ( e . d i s a b l e d ) r e t u r n   f a l s e ; a ( t h i s ) . t o g g l e C l a s s ( " u i - s t a t e - a c t i v e " ) ; g . b u t t o n E l e m e n t . a t t r ( " a r i a - p r e s s e d " , g . e l e m e n t [ 0 ] . c h e c k e d ) } ) ; e l s e   i f ( t h i s . t y p e = = = " r a d i o " ) t h i s . b u t t o n E l e m e n t . b i n d ( " c l i c k . b u t t o n " , f u n c t i o n ( ) { i f ( e . d i s a b l e d ) r e t u r n   f a l s e ; a ( t h i s ) . a d d C l a s s ( " u i - s t a t e - a c t i v e " ) ; g . b u t t o n E l e m e n t . a t t r ( " a r i a - p r e s s e d " , t r u e ) ; v a r   h = g . e l e m e n t [ 0 ] ; f ( h ) . n o t ( h ) . m a p ( f u n c t i o n ( ) { r e t u r n   a ( t h i s ) . b u t t o n ( " w i d g e t " ) [ 0 ] } ) . r e m o v e C l a s s ( " u i - s t a t e - a c t i v e " ) . a t t r ( " a r i a - p r e s s e d " , f a l s e ) } ) ; e l s e { t h i s . b u t t o n E l e m e n t . b i n d ( " m o u s e d o w n . b u t t o n " , 
 f u n c t i o n ( ) { i f ( e . d i s a b l e d ) r e t u r n   f a l s e ; a ( t h i s ) . a d d C l a s s ( " u i - s t a t e - a c t i v e " ) ; d = t h i s ; a ( d o c u m e n t ) . o n e ( " m o u s e u p " , f u n c t i o n ( ) { d = n u l l } ) } ) . b i n d ( " m o u s e u p . b u t t o n " , f u n c t i o n ( ) { i f ( e . d i s a b l e d ) r e t u r n   f a l s e ; a ( t h i s ) . r e m o v e C l a s s ( " u i - s t a t e - a c t i v e " ) } ) . b i n d ( " k e y d o w n . b u t t o n " , f u n c t i o n ( h ) { i f ( e . d i s a b l e d ) r e t u r n   f a l s e ; i f ( h . k e y C o d e = = a . u i . k e y C o d e . S P A C E | | h . k e y C o d e = = a . u i . k e y C o d e . E N T E R ) a ( t h i s ) . a d d C l a s s ( " u i - s t a t e - a c t i v e " ) } ) . b i n d ( " k e y u p . b u t t o n " , f u n c t i o n ( ) { a ( t h i s ) . r e m o v e C l a s s ( " u i - s t a t e - a c t i v e " ) } ) ; t h i s . b u t t o n E l e m e n t . i s ( " a " ) & & t h i s . b u t t o n E l e m e n t . k e y u p ( f u n c t i o n ( h ) { h . k e y C o d e = = = 
 a . u i . k e y C o d e . S P A C E & & a ( t h i s ) . c l i c k ( ) } ) } t h i s . _ s e t O p t i o n ( " d i s a b l e d " , e . d i s a b l e d ) } , _ d e t e r m i n e B u t t o n T y p e : f u n c t i o n ( ) { t h i s . t y p e = t h i s . e l e m e n t . i s ( " : c h e c k b o x " ) ? " c h e c k b o x " : t h i s . e l e m e n t . i s ( " : r a d i o " ) ? " r a d i o " : t h i s . e l e m e n t . i s ( " i n p u t " ) ? " i n p u t " : " b u t t o n " ; i f ( t h i s . t y p e = = = " c h e c k b o x " | | t h i s . t y p e = = = " r a d i o " ) { v a r   g = t h i s . e l e m e n t . p a r e n t s ( ) . f i l t e r ( " : l a s t " ) , e = " l a b e l [ f o r = " + t h i s . e l e m e n t . a t t r ( " i d " ) + " ] " ; t h i s . b u t t o n E l e m e n t = g . f i n d ( e ) ; i f ( ! t h i s . b u t t o n E l e m e n t . l e n g t h ) { g = g . l e n g t h ? g . s i b l i n g s ( ) : t h i s . e l e m e n t . s i b l i n g s ( ) ; t h i s . b u t t o n E l e m e n t = g . f i l t e r ( e ) ; 
 i f ( ! t h i s . b u t t o n E l e m e n t . l e n g t h ) t h i s . b u t t o n E l e m e n t = g . f i n d ( e ) } t h i s . e l e m e n t . a d d C l a s s ( " u i - h e l p e r - h i d d e n - a c c e s s i b l e " ) ; ( g = t h i s . e l e m e n t . i s ( " : c h e c k e d " ) ) & & t h i s . b u t t o n E l e m e n t . a d d C l a s s ( " u i - s t a t e - a c t i v e " ) ; t h i s . b u t t o n E l e m e n t . a t t r ( " a r i a - p r e s s e d " , g ) } e l s e   t h i s . b u t t o n E l e m e n t = t h i s . e l e m e n t } , w i d g e t : f u n c t i o n ( ) { r e t u r n   t h i s . b u t t o n E l e m e n t } , d e s t r o y : 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 C l a s s ( " u i - h e l p e r - h i d d e n - a c c e s s i b l e " ) ; t h i s . b u t t o n E l e m e n t . r e m o v e C l a s s ( " u i - b u t t o n   u i - w i d g e t   u i - s t a t e - d e f a u l t   u i - c o r n e r - a l l   u i - s t a t e - h o v e r   u i - s t a t e - a c t i v e     u i - b u t t o n - i c o n s - o n l y   u i - b u t t o n - i c o n - o n l y   u i - b u t t o n - t e x t - i c o n s   u i - b u t t o n - t e x t - i c o n - p r i m a r y   u i - b u t t o n - t e x t - i c o n - s e c o n d a r y   u i - b u t t o n - t e x t - o n l y " ) . r e m o v e A t t r ( " r o l e " ) . r e m o v e A t t r ( " a r i a - p r e s s e d " ) . h t m l ( t h i s . b u t t o n E l e m e n t . f i n d ( " . u i - b u t t o n - t e x t " ) . h t m l ( ) ) ; 
 t h i s . h a s T i t l e | | t h i s . b u t t o n E l e m e n t . r e m o v e A t t r ( " t i t l e " ) ; a . W i d g e t . p r o t o t y p e . d e s t r o y . c a l l ( t h i s ) } , _ s e t O p t i o n : f u n c t i o n ( g , e ) { a . W i d g e t . p r o t o t y p e . _ s e t O p t i o n . a p p l y ( t h i s , a r g u m e n t s ) ; i f ( g = = = " d i s a b l e d " ) e ? t h i s . e l e m e n t . a t t r ( " d i s a b l e d " , t r u e ) : t h i s . e l e m e n t . r e m o v e A t t r ( " d i s a b l e d " ) ; t h i s . _ r e s e t B u t t o n ( ) } , r e f r e s h : f u n c t i o n ( ) { v a r   g = t h i s . e l e m e n t . i s ( " : d i s a b l e d " ) ; g ! = = t h i s . o p t i o n s . d i s a b l e d & & t h i s . _ s e t O p t i o n ( " d i s a b l e d " , g ) ; i f ( t h i s . t y p e = = = " r a d i o " ) f ( t h i s . e l e m e n t [ 0 ] ) . e a c h ( f u n c t i o n ( ) { a ( t h i s ) . i s ( " : c h e c k e d " ) ? a ( t h i s ) . b u t t o n ( " w i d g e t " ) . a d d C l a s s ( " u i - s t a t e - a c t i v e " ) . a t t r ( " a r i a - p r e s s e d " , 
 t r u e ) : a ( t h i s ) . b u t t o n ( " w i d g e t " ) . r e m o v e C l a s s ( " u i - s t a t e - a c t i v e " ) . a t t r ( " a r i a - p r e s s e d " , f a l s e ) } ) ; e l s e   i f ( t h i s . t y p e = = = " c h e c k b o x " ) t h i s . e l e m e n t . i s ( " : c h e c k e d " ) ? t h i s . b u t t o n E l e m e n t . a d d C l a s s ( " u i - s t a t e - a c t i v e " ) . a t t r ( " a r i a - p r e s s e d " , t r u e ) : t h i s . b u t t o n E l e m e n t . r e m o v e C l a s s ( " u i - s t a t e - a c t i v e " ) . a t t r ( " a r i a - p r e s s e d " , f a l s e ) } , _ r e s e t B u t t o n : f u n c t i o n ( ) { i f ( t h i s . t y p e = = = " i n p u t " ) t h i s . o p t i o n s . l a b e l & & t h i s . e l e m e n t . v a l ( t h i s . o p t i o n s . l a b e l ) ; e l s e { v a r   g = t h i s . b u t t o n E l e m e n t . r e m o v e C l a s s ( " u i - b u t t o n - i c o n s - o n l y   u i - b u t t o n - i c o n - o n l y   u i - b u t t o n - t e x t - i c o n s   u i - b u t t o n - t e x t - i c o n - p r i m a r y   u i - b u t t o n - t e x t - i c o n - s e c o n d a r y   u i - b u t t o n - t e x t - o n l y " ) , 
 e = a ( " < s p a n > < / s p a n > " ) . a d d C l a s s ( " u i - b u t t o n - t e x t " ) . h t m l ( t h i s . o p t i o n s . l a b e l ) . a p p e n d T o ( g . e m p t y ( ) ) . t e x t ( ) , i = t h i s . o p t i o n s . i c o n s , b = i . p r i m a r y & & i . s e c o n d a r y , h = [ ] ; i f ( i . p r i m a r y | | i . s e c o n d a r y ) { i f ( t h i s . o p t i o n s . t e x t ) h . p u s h ( " u i - b u t t o n - t e x t - i c o n " + ( b ? " s " : i . p r i m a r y ? " - p r i m a r y " : " - s e c o n d a r y " ) ) ; i . p r i m a r y & & g . p r e p e n d ( " < s p a n   c l a s s = ' u i - b u t t o n - i c o n - p r i m a r y   u i - i c o n   " + i . p r i m a r y + " ' > < / s p a n > " ) ; i . s e c o n d a r y & & g . a p p e n d ( " < s p a n   c l a s s = ' u i - b u t t o n - i c o n - s e c o n d a r y   u i - i c o n   " + i . s e c o n d a r y + " ' > < / s p a n > " ) ; i f ( ! t h i s . o p t i o n s . t e x t ) { h . p u s h ( b ? " u i - b u t t o n - i c o n s - o n l y " : 
 " u i - b u t t o n - i c o n - o n l y " ) ; t h i s . h a s T i t l e | | g . a t t r ( " t i t l e " , e ) } } e l s e   h . p u s h ( " u i - b u t t o n - t e x t - o n l y " ) ; g . a d d C l a s s ( h . j o i n ( "   " ) ) } } } ) ; a . w i d g e t ( " u i . b u t t o n s e t " , { o p t i o n s : { i t e m s : " : b u t t o n ,   : s u b m i t ,   : r e s e t ,   : c h e c k b o x ,   : r a d i o ,   a ,   : d a t a ( b u t t o n ) " } , _ c r e a t e : f u n c t i o n ( ) { t h i s . e l e m e n t . a d d C l a s s ( " u i - b u t t o n s e t " ) } , _ i n i t : f u n c t i o n ( ) { t h i s . r e f r e s h ( ) } , _ s e t O p t i o n : f u n c t i o n ( g , e ) { g = = = " d i s a b l e d " & & t h i s . b u t t o n s . b u t t o n ( " o p t i o n " , g , e ) ; a . W i d g e t . p r o t o t y p e . _ s e t O p t i o n . a p p l y ( t h i s , a r g u m e n t s ) } , r e f r e s h : f u n c t i o n ( ) { t h i s . b u t t o n s = t h i s . e l e m e n t . f i n d ( t h i s . o p t i o n s . i t e m s ) . f i l t e r ( " : u i - b u t t o n " ) . b u t t o n ( " r e f r e s h " ) . e n d ( ) . n o t ( " : u i - b u t t o n " ) . b u t t o n ( ) . e n d ( ) . m a p ( f u n c t i o n ( ) { r e t u r n   a ( t h i s ) . b u t t o n ( " w i d g e t " ) [ 0 ] } ) . r e m o v e C l a s s ( " u i - c o r n e r - a l l   u i - c o r n e r - l e f t   u i - c o r n e r - r i g h t " ) . f i l t e r ( " : f i r s t " ) . a d d C l a s s ( " u i - c o r n e r - l e f t " ) . e n d ( ) . f i l t e r ( " : l a s t " ) . a d d C l a s s ( " u i - c o r n e r - r i g h t " ) . e n d ( ) . e n d ( ) } , 
 d e s t r o y : 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 C l a s s ( " u i - b u t t o n s e t " ) ; t h i s . b u t t o n s . m a p ( f u n c t i o n ( ) { r e t u r n   a ( t h i s ) . b u t t o n ( " w i d g e t " ) [ 0 ] } ) . r e m o v e C l a s s ( " u i - c o r n e r - l e f t   u i - c o r n e r - r i g h t " ) . e n d ( ) . b u t t o n ( " d e s t r o y " ) ; a . W i d g e t . p r o t o t y p e . d e s t r o y . c a l l ( t h i s ) } } ) } ) ( j Q u e r y ) ; 
 ( f u n c t i o n ( a , d ) { f u n c t i o n   c ( ) { t h i s . d e b u g = f a l s e ; t h i s . _ c u r I n s t = n u l l ; t h i s . _ k e y E v e n t = f a l s e ; t h i s . _ d i s a b l e d I n p u t s = [ ] ; t h i s . _ i n D i a l o g = t h i s . _ d a t e p i c k e r S h o w i n g = f a l s e ; t h i s . _ m a i n D i v I d = " u i - d a t e p i c k e r - d i v " ; t h i s . _ i n l i n e C l a s s = " u i - d a t e p i c k e r - i n l i n e " ; t h i s . _ a p p e n d C l a s s = " u i - d a t e p i c k e r - a p p e n d " ; t h i s . _ t r i g g e r C l a s s = " u i - d a t e p i c k e r - t r i g g e r " ; t h i s . _ d i a l o g C l a s s = " u i - d a t e p i c k e r - d i a l o g " ; t h i s . _ d i s a b l e C l a s s = " u i - d a t e p i c k e r - d i s a b l e d " ; t h i s . _ u n s e l e c t a b l e C l a s s = " u i - d a t e p i c k e r - u n s e l e c t a b l e " ; t h i s . _ c u r r e n t C l a s s = " u i - d a t e p i c k e r - c u r r e n t - d a y " ; t h i s . _ d a y O v e r C l a s s = 
 " u i - d a t e p i c k e r - d a y s - c e l l - o v e r " ; t h i s . r e g i o n a l = [ ] ; t h i s . r e g i o n a l [ " " ] = { c l o s e T e x t : " D o n e " , p r e v T e x t : " P r e v " , n e x t T e x t : " N e x t " , c u r r e n t T e x t : " T o d a y " , m o n t h N a m e 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 N a m e s S h o r t : [ " 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 N a m e 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 N a m e s S h o r t : [ " S u n " , " M o n " , " T u e " , " W e d " , " T h u " , " F r i " , " S a t " ] , d a y N a m e s M i n : [ " S u " , 
 " M o " , " T u " , " W e " , " T h " , " F r " , " S a " ] , w e e k H e a d e r : " W k " , d a t e F o r m a t : " m m / d d / y y " , f i r s t D a y : 0 , i s R T L : f a l s e , s h o w M o n t h A f t e r Y e a r : f a l s e , y e a r S u f f i x : " " } ; t h i s . _ d e f a u l t s = { s h o w O n : " f o c u s " , s h o w A n i m : " f a d e I n " , s h o w O p t i o n s : { } , d e f a u l t D a t e : n u l l , a p p e n d T e x t : " " , b u t t o n T e x t : " . . . " , b u t t o n I m a g e : " " , b u t t o n I m a g e O n l y : f a l s e , h i d e I f N o P r e v N e x t : f a l s e , n a v i g a t i o n A s D a t e F o r m a t : f a l s e , g o t o C u r r e n t : f a l s e , c h a n g e M o n t h : f a l s e , c h a n g e Y e a r : f a l s e , y e a r R a n g e : " c - 1 0 : c + 1 0 " , s h o w O t h e r M o n t h s : f a l s e , s e l e c t O t h e r M o n t h s : f a l s e , s h o w W e e k : f a l s e , c a l c u l a t e W e e k : t h i s . i s o 8 6 0 1 W e e k , s h o r t Y e a r C u t o f f : " + 1 0 " , 
 m i n D a t e : n u l l , m a x D a t e : n u l l , d u r a t i o n : " f a s t " , b e f o r e S h o w D a y : n u l l , b e f o r e S h o w : n u l l , o n S e l e c t : n u l l , o n C h a n g e M o n t h Y e a r : n u l l , o n C l o s e : n u l l , n u m b e r O f M o n t h s : 1 , s h o w C u r r e n t A t P o s : 0 , s t e p M o n t h s : 1 , s t e p B i g M o n t h s : 1 2 , a l t F i e l d : " " , a l t F o r m a t : " " , c o n s t r a i n I n p u t : t r u e , s h o w B u t t o n P a n e l : f a l s e , a u t o S i z e : f a l s e } ; a . e x t e n d ( t h i s . _ d e f a u l t s , t h i s . r e g i o n a l [ " " ] ) ; t h i s . d p D i v = f ( a ( ' < d i v   i d = " ' + t h i s . _ m a i n D i v I d + ' "   c l a s s = " u i - d a t e p i c k e r   u i - w i d g e t   u i - w i d g e t - c o n t e n t   u i - h e l p e r - c l e a r f i x   u i - c o r n e r - a l l " > < / d i v > ' ) ) } f u n c t i o n   f ( b ) { r e t u r n   b . d e l e g a t e ( " b u t t o n ,   . u i - d a t e p i c k e r - p r e v ,   . u i - d a t e p i c k e r - n e x t ,   . u i - d a t e p i c k e r - c a l e n d a r   t d   a " , 
 " m o u s e o u t " , f u n c t i o n ( ) { a ( t h i s ) . r e m o v e C l a s s ( " u i - s t a t e - h o v e r " ) ; t h i s . c l a s s N a m e . i n d e x O f ( " u i - d a t e p i c k e r - p r e v " ) ! = - 1 & & a ( t h i s ) . r e m o v e C l a s s ( " u i - d a t e p i c k e r - p r e v - h o v e r " ) ; t h i s . c l a s s N a m e . i n d e x O f ( " u i - d a t e p i c k e r - n e x t " ) ! = - 1 & & a ( t h i s ) . r e m o v e C l a s s ( " u i - d a t e p i c k e r - n e x t - h o v e r " ) } ) . d e l e g a t e ( " b u t t o n ,   . u i - d a t e p i c k e r - p r e v ,   . u i - d a t e p i c k e r - n e x t ,   . u i - d a t e p i c k e r - c a l e n d a r   t d   a " , " m o u s e o v e r " , f u n c t i o n ( ) { i f ( ! a . d a t e p i c k e r . _ i s D i s a b l e d D a t e p i c k e r ( i . i n l i n e ? b . p a r e n t ( ) [ 0 ] : i . i n p u t [ 0 ] ) ) { a ( t h i s ) . p a r e n t s ( " . u i - d a t e p i c k e r - c a l e n d a r " ) . f i n d ( " a " ) . r e m o v e C l a s s ( " u i - s t a t e - h o v e r " ) ; 
 a ( t h i s ) . a d d C l a s s ( " u i - s t a t e - h o v e r " ) ; t h i s . c l a s s N a m e . i n d e x O f ( " u i - d a t e p i c k e r - p r e v " ) ! = - 1 & & a ( t h i s ) . a d d C l a s s ( " u i - d a t e p i c k e r - p r e v - h o v e r " ) ; t h i s . c l a s s N a m e . i n d e x O f ( " u i - d a t e p i c k e r - n e x t " ) ! = - 1 & & a ( t h i s ) . a d d C l a s s ( " u i - d a t e p i c k e r - n e x t - h o v e r " ) } } ) } f u n c t i o n   g ( b , h ) { a . e x t e n d ( b , h ) ; f o r ( v a r   j   i n   h ) i f ( h [ j ] = = n u l l | | h [ j ] = = d ) b [ j ] = h [ j ] ; r e t u r n   b } a . e x t e n d ( a . u i , { d a t e p i c k e r : { v e r s i o n : " 1 . 8 . 1 3 " } } ) ; v a r   e = ( n e w   D a t e ) . g e t T i m e ( ) , i ; a . e x t e n d ( c . p r o t o t y p e , { m a r k e r C l a s s N a m e : " h a s D a t e p i c k e r " , l o g : f u n c t i o n ( ) { t h i s . d e b u g & & c o n s o l e . l o g . a p p l y ( " " , a r g u m e n t s ) } , 
 _ w i d g e t D a t e p i c k e r : f u n c t i o n ( ) { r e t u r n   t h i s . d p D i v } , s e t D e f a u l t s : f u n c t i o n ( b ) { g ( t h i s . _ d e f a u l t s , b | | { } ) ; r e t u r n   t h i s } , _ a t t a c h D a t e p i c k e r : f u n c t i o n ( b , h ) { v a r   j = n u l l ; f o r ( v a r   l   i n   t h i s . _ d e f a u l t s ) { v a r   o = b . g e t A t t r i b u t e ( " d a t e : " + l ) ; i f ( o ) { j = j | | { } ; t r y { j [ l ] = e v a l ( o ) } c a t c h ( n ) { j [ l ] = o } } } l = b . n o d e N a m e . t o L o w e r C a s e ( ) ; o = l = = " d i v " | | l = = " s p a n " ; i f ( ! b . i d ) { t h i s . u u i d + = 1 ; b . i d = " d p " + t h i s . u u i d } v a r   k = t h i s . _ n e w I n s t ( a ( b ) , o ) ; k . s e t t i n g s = a . e x t e n d ( { } , h | | { } , j | | { } ) ; i f ( l = = " i n p u t " ) t h i s . _ c o n n e c t D a t e p i c k e r ( b , k ) ; e l s e   o & & t h i s . _ i n l i n e D a t e p i c k e r ( b , k ) } , _ n e w I n s t : f u n c t i o n ( b , 
 h ) { r e t u r n { i d : b [ 0 ] . i d . r e p l a c e ( / ( [ ^ A - Z a - z 0 - 9 _ - ] ) / g , " \ \ \ \ $ 1 " ) , i n p u t : b , s e l e c t e d D a y : 0 , s e l e c t e d M o n t h : 0 , s e l e c t e d Y e a r : 0 , d r a w M o n t h : 0 , d r a w Y e a r : 0 , i n l i n e : h , d p D i v : ! h ? t h i s . d p D i v : f ( a ( ' < d i v   c l a s s = " ' + t h i s . _ i n l i n e C l a s s + '   u i - d a t e p i c k e r   u i - w i d g e t   u i - w i d g e t - c o n t e n t   u i - h e l p e r - c l e a r f i x   u i - c o r n e r - a l l " > < / d i v > ' ) ) } } , _ c o n n e c t D a t e p i c k e r : f u n c t i o n ( b , h ) { v a r   j = a ( b ) ; h . a p p e n d = a ( [ ] ) ; h . t r i g g e r = a ( [ ] ) ; i f ( ! j . h a s C l a s s ( t h i s . m a r k e r C l a s s N a m e ) ) { t h i s . _ a t t a c h m e n t s ( j , h ) ; j . a d d C l a s s ( t h i s . m a r k e r C l a s s N a m e ) . k e y d o w n ( t h i s . _ d o K e y D o w n ) . k e y p r e s s ( t h i s . _ d o K e y P r e s s ) . k e y u p ( t h i s . _ d o K e y U p ) . b i n d ( " s e t D a t a . d a t e p i c k e r " , 
 f u n c t i o n ( l , o , n ) { h . s e t t i n g s [ o ] = n } ) . b i n d ( " g e t D a t a . d a t e p i c k e r " , f u n c t i o n ( l , o ) { r e t u r n   t h i s . _ g e t ( h , o ) } ) ; t h i s . _ a u t o S i z e ( h ) ; a . d a t a ( b , " d a t e p i c k e r " , h ) } } , _ a t t a c h m e n t s : f u n c t i o n ( b , h ) { v a r   j = t h i s . _ g e t ( h , " a p p e n d T e x t " ) , l = t h i s . _ g e t ( h , " i s R T L " ) ; h . a p p e n d & & h . a p p e n d . r e m o v e ( ) ; i f ( j ) { h . a p p e n d = a ( ' < s p a n   c l a s s = " ' + t h i s . _ a p p e n d C l a s s + ' " > ' + j + " < / s p a n > " ) ; b [ l ? " b e f o r e " : " a f t e r " ] ( h . a p p e n d ) } b . u n b i n d ( " f o c u s " , t h i s . _ s h o w D a t e p i c k e r ) ; h . t r i g g e r & & h . t r i g g e r . r e m o v e ( ) ; j = t h i s . _ g e t ( h , " s h o w O n " ) ; i f ( j = = " f o c u s " | | j = = " b o t h " ) b . f o c u s ( t h i s . _ s h o w D a t e p i c k e r ) ; 
 i f ( j = = " b u t t o n " | | j = = " b o t h " ) { j = t h i s . _ g e t ( h , " b u t t o n T e x t " ) ; v a r   o = t h i s . _ g e t ( h , " b u t t o n I m a g e " ) ; h . t r i g g e r = a ( t h i s . _ g e t ( h , " b u t t o n I m a g e O n l y " ) ? a ( " < i m g / > " ) . a d d C l a s s ( t h i s . _ t r i g g e r C l a s s ) . a t t r ( { s r c : o , a l t : j , t i t l e : j } ) : a ( ' < b u t t o n   t y p e = " b u t t o n " > < / b u t t o n > ' ) . a d d C l a s s ( t h i s . _ t r i g g e r C l a s s ) . h t m l ( o = = " " ? j : a ( " < i m g / > " ) . a t t r ( { s r c : o , a l t : j , t i t l e : j } ) ) ) ; b [ l ? " b e f o r e " : " a f t e r " ] ( h . t r i g g e r ) ; h . t r i g g e r . c l i c k ( f u n c t i o n ( ) { a . d a t e p i c k e r . _ d a t e p i c k e r S h o w i n g & & a . d a t e p i c k e r . _ l a s t I n p u t = = b [ 0 ] ? a . d a t e p i c k e r . _ h i d e D a t e p i c k e r ( ) : a . d a t e p i c k e r . _ s h o w D a t e p i c k e r ( b [ 0 ] ) ; 
 r e t u r n   f a l s e } ) } } , _ a u t o S i z e : f u n c t i o n ( b ) { i f ( t h i s . _ g e t ( b , " a u t o S i z e " ) & & ! b . i n l i n e ) { v a r   h = n e w   D a t e ( 2 0 0 9 , 1 1 , 2 0 ) , j = t h i s . _ g e t ( b , " d a t e F o r m a t " ) ; i f ( j . m a t c h ( / [ D M ] / ) ) { v a r   l = f u n c t i o n ( o ) { f o r ( v a r   n = 0 , k = 0 , m = 0 ; m < o . l e n g t h ; m + + ) i f ( o [ m ] . l e n g t h > n ) { n = o [ m ] . l e n g t h ; k = m } r e t u r n   k } ; h . s e t M o n t h ( l ( t h i s . _ g e t ( b , j . m a t c h ( / M M / ) ? " m o n t h N a m e s " : " m o n t h N a m e s S h o r t " ) ) ) ; h . s e t D a t e ( l ( t h i s . _ g e t ( b , j . m a t c h ( / D D / ) ? " d a y N a m e s " : " d a y N a m e s S h o r t " ) ) + 2 0 - h . g e t D a y ( ) ) } b . i n p u t . a t t r ( " s i z e " , t h i s . _ f o r m a t D a t e ( b , h ) . l e n g t h ) } } , _ i n l i n e D a t e p i c k e r : f u n c t i o n ( b , h ) { v a r   j = a ( b ) ; 
 i f ( ! j . h a s C l a s s ( t h i s . m a r k e r C l a s s N a m e ) ) { j . a d d C l a s s ( t h i s . m a r k e r C l a s s N a m e ) . a p p e n d ( h . d p D i v ) . b i n d ( " s e t D a t a . d a t e p i c k e r " , f u n c t i o n ( l , o , n ) { h . s e t t i n g s [ o ] = n } ) . b i n d ( " g e t D a t a . d a t e p i c k e r " , f u n c t i o n ( l , o ) { r e t u r n   t h i s . _ g e t ( h , o ) } ) ; a . d a t a ( b , " d a t e p i c k e r " , h ) ; t h i s . _ s e t D a t e ( h , t h i s . _ g e t D e f a u l t D a t e ( h ) , t r u e ) ; t h i s . _ u p d a t e D a t e p i c k e r ( h ) ; t h i s . _ u p d a t e A l t e r n a t e ( h ) ; h . d p D i v . s h o w ( ) } } , _ d i a l o g D a t e p i c k e r : f u n c t i o n ( b , h , j , l , o ) { b = t h i s . _ d i a l o g I n s t ; i f ( ! b ) { t h i s . u u i d + = 1 ; t h i s . _ d i a l o g I n p u t = a ( ' < i n p u t   t y p e = " t e x t "   i d = " ' + ( " d p " + t h i s . u u i d ) + ' "   s t y l e = " p o s i t i o n :   a b s o l u t e ;   t o p :   - 1 0 0 p x ;   w i d t h :   0 p x ;   z - i n d e x :   - 1 0 ; " / > ' ) ; 
 t h i s . _ d i a l o g I n p u t . k e y d o w n ( t h i s . _ d o K e y D o w n ) ; a ( " b o d y " ) . a p p e n d ( t h i s . _ d i a l o g I n p u t ) ; b = t h i s . _ d i a l o g I n s t = t h i s . _ n e w I n s t ( t h i s . _ d i a l o g I n p u t , f a l s e ) ; b . s e t t i n g s = { } ; a . d a t a ( t h i s . _ d i a l o g I n p u t [ 0 ] , " d a t e p i c k e r " , b ) } g ( b . s e t t i n g s , l | | { } ) ; h = h & & h . c o n s t r u c t o r = = D a t e ? t h i s . _ f o r m a t D a t e ( b , h ) : h ; t h i s . _ d i a l o g I n p u t . v a l ( h ) ; t h i s . _ p o s = o ? o . l e n g t h ? o : [ o . p a g e X , o . p a g e Y ] : n u l l ; i f ( ! t h i s . _ p o s ) t h i s . _ p o s = [ d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t W i d t h / 2 - 1 0 0 + ( d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l L e f t | | d o c u m e n t . b o d y . s c r o l l L e f t ) , d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t H e i g h t / 
 2 - 1 5 0 + ( d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l T o p | | d o c u m e n t . b o d y . s c r o l l T o p ) ] ; t h i s . _ d i a l o g I n p u t . c s s ( " l e f t " , t h i s . _ p o s [ 0 ] + 2 0 + " p x " ) . c s s ( " t o p " , t h i s . _ p o s [ 1 ] + " p x " ) ; b . s e t t i n g s . o n S e l e c t = j ; t h i s . _ i n D i a l o g = t r u e ; t h i s . d p D i v . a d d C l a s s ( t h i s . _ d i a l o g C l a s s ) ; t h i s . _ s h o w D a t e p i c k e r ( t h i s . _ d i a l o g I n p u t [ 0 ] ) ; a . b l o c k U I & & a . b l o c k U I ( t h i s . d p D i v ) ; a . d a t a ( t h i s . _ d i a l o g I n p u t [ 0 ] , " d a t e p i c k e r " , b ) ; r e t u r n   t h i s } , _ d e s t r o y D a t e p i c k e r : f u n c t i o n ( b ) { v a r   h = a ( b ) , j = a . d a t a ( b , " d a t e p i c k e r " ) ; i f ( h . h a s C l a s s ( t h i s . m a r k e r C l a s s N a m e ) ) { v a r   l = b . n o d e N a m e . t o L o w e r C a s e ( ) ; a . r e m o v e D a t a ( b , 
 " d a t e p i c k e r " ) ; i f ( l = = " i n p u t " ) { j . a p p e n d . r e m o v e ( ) ; j . t r i g g e r . r e m o v e ( ) ; h . r e m o v e C l a s s ( t h i s . m a r k e r C l a s s N a m e ) . u n b i n d ( " f o c u s " , t h i s . _ s h o w D a t e p i c k e r ) . u n b i n d ( " k e y d o w n " , t h i s . _ d o K e y D o w n ) . u n b i n d ( " k e y p r e s s " , t h i s . _ d o K e y P r e s s ) . u n b i n d ( " k e y u p " , t h i s . _ d o K e y U p ) } e l s e   i f ( l = = " d i v " | | l = = " s p a n " ) h . r e m o v e C l a s s ( t h i s . m a r k e r C l a s s N a m e ) . e m p t y ( ) } } , _ e n a b l e D a t e p i c k e r : f u n c t i o n ( b ) { v a r   h = a ( b ) , j = a . d a t a ( b , " d a t e p i c k e r " ) ; i f ( h . h a s C l a s s ( t h i s . m a r k e r C l a s s N a m e ) ) { v a r   l = b . n o d e N a m e . t o L o w e r C a s e ( ) ; i f ( l = = " i n p u t " ) { b . d i s a b l e d = f a l s e ; j . t r i g g e r . f i l t e r ( " b u t t o n " ) . e a c h ( f u n c t i o n ( ) { t h i s . d i s a b l e d = 
 f a l s e } ) . e n d ( ) . f i l t e r ( " i m g " ) . c s s ( { o p a c i t y : " 1 . 0 " , c u r s o r : " " } ) } e l s e   i f ( l = = " d i v " | | l = = " s p a n " ) { h = h . c h i l d r e n ( " . " + t h i s . _ i n l i n e C l a s s ) ; h . c h i l d r e n ( ) . r e m o v e C l a s s ( " u i - s t a t e - d i s a b l e d " ) ; h . f i n d ( " s e l e c t . u i - d a t e p i c k e r - m o n t h ,   s e l e c t . u i - d a t e p i c k e r - y e a r " ) . r e m o v e A t t r ( " d i s a b l e d " ) } t h i s . _ d i s a b l e d I n p u t s = a . m a p ( t h i s . _ d i s a b l e d I n p u t s , f u n c t i o n ( o ) { r e t u r n   o = = b ? n u l l : o } ) } } , _ d i s a b l e D a t e p i c k e r : f u n c t i o n ( b ) { v a r   h = a ( b ) , j = a . d a t a ( b , " d a t e p i c k e r " ) ; i f ( h . h a s C l a s s ( t h i s . m a r k e r C l a s s N a m e ) ) { v a r   l = b . n o d e N a m e . t o L o w e r C a s e ( ) ; i f ( l = = " i n p u t " ) { b . d i s a b l e d = 
 t r u e ; j . t r i g g e r . f i l t e r ( " b u t t o n " ) . e a c h ( f u n c t i o n ( ) { t h i s . d i s a b l e d = t r u e } ) . e n d ( ) . f i l t e r ( " i m g " ) . c s s ( { o p a c i t y : " 0 . 5 " , c u r s o r : " d e f a u l t " } ) } e l s e   i f ( l = = " d i v " | | l = = " s p a n " ) { h = h . c h i l d r e n ( " . " + t h i s . _ i n l i n e C l a s s ) ; h . c h i l d r e n ( ) . a d d C l a s s ( " u i - s t a t e - d i s a b l e d " ) ; h . f i n d ( " s e l e c t . u i - d a t e p i c k e r - m o n t h ,   s e l e c t . u i - d a t e p i c k e r - y e a r " ) . a t t r ( " d i s a b l e d " , " d i s a b l e d " ) } t h i s . _ d i s a b l e d I n p u t s = a . m a p ( t h i s . _ d i s a b l e d I n p u t s , f u n c t i o n ( o ) { r e t u r n   o = = b ? n u l l : o } ) ; t h i s . _ d i s a b l e d I n p u t s [ t h i s . _ d i s a b l e d I n p u t s . l e n g t h ] = b } } , _ i s D i s a b l e d D a t e p i c k e r : f u n c t i o n ( b ) { i f ( ! b ) r e t u r n   f a l s e ; 
 f o r ( v a r   h = 0 ; h < t h i s . _ d i s a b l e d I n p u t s . l e n g t h ; h + + ) i f ( t h i s . _ d i s a b l e d I n p u t s [ h ] = = b ) r e t u r n   t r u e ; r e t u r n   f a l s e } , _ g e t I n s t : f u n c t i o n ( b ) { t r y { r e t u r n   a . d a t a ( b , " d a t e p i c k e r " ) } c a t c h ( h ) { t h r o w " M i s s i n g   i n s t a n c e   d a t a   f o r   t h i s   d a t e p i c k e r " ; } } , _ o p t i o n D a t e p i c k e r : f u n c t i o n ( b , h , j ) { v a r   l = t h i s . _ g e t I n s t ( b ) ; i f ( a r g u m e n t s . l e n g t h = = 2 & & t y p e o f   h = = " s t r i n g " ) r e t u r n   h = = " d e f a u l t s " ? a . e x t e n d ( { } , a . d a t e p i c k e r . _ d e f a u l t s ) : l ? h = = " a l l " ? a . e x t e n d ( { } , l . s e t t i n g s ) : t h i s . _ g e t ( l , h ) : n u l l ; v a r   o = h | | { } ; i f ( t y p e o f   h = = " s t r i n g " ) { o = { } ; o [ h ] = j } i f ( l ) { t h i s . _ c u r I n s t = = l & & 
 t h i s . _ h i d e D a t e p i c k e r ( ) ; v a r   n = t h i s . _ g e t D a t e D a t e p i c k e r ( b , t r u e ) , k = t h i s . _ g e t M i n M a x D a t e ( l , " m i n " ) , m = t h i s . _ g e t M i n M a x D a t e ( l , " m a x " ) ; g ( l . s e t t i n g s , o ) ; i f ( k ! = = n u l l & & o . d a t e F o r m a t ! = = d & & o . m i n D a t e = = = d ) l . s e t t i n g s . m i n D a t e = t h i s . _ f o r m a t D a t e ( l , k ) ; i f ( m ! = = n u l l & & o . d a t e F o r m a t ! = = d & & o . m a x D a t e = = = d ) l . s e t t i n g s . m a x D a t e = t h i s . _ f o r m a t D a t e ( l , m ) ; t h i s . _ a t t a c h m e n t s ( a ( b ) , l ) ; t h i s . _ a u t o S i z e ( l ) ; t h i s . _ s e t D a t e ( l , n ) ; t h i s . _ u p d a t e A l t e r n a t e ( l ) ; t h i s . _ u p d a t e D a t e p i c k e r ( l ) } } , _ c h a n g e D a t e p i c k e r : f u n c t i o n ( b , h , j ) { t h i s . _ o p t i o n D a t e p i c k e r ( b , h , j ) } , _ r e f r e s h D a t e p i c k e r : f u n c t i o n ( b ) { ( b = 
 t h i s . _ g e t I n s t ( b ) ) & & t h i s . _ u p d a t e D a t e p i c k e r ( b ) } , _ s e t D a t e D a t e p i c k e r : f u n c t i o n ( b , h ) { i f ( b = t h i s . _ g e t I n s t ( b ) ) { t h i s . _ s e t D a t e ( b , h ) ; t h i s . _ u p d a t e D a t e p i c k e r ( b ) ; t h i s . _ u p d a t e A l t e r n a t e ( b ) } } , _ g e t D a t e D a t e p i c k e r : f u n c t i o n ( b , h ) { ( b = t h i s . _ g e t I n s t ( b ) ) & & ! b . i n l i n e & & t h i s . _ s e t D a t e F r o m F i e l d ( b , h ) ; r e t u r n   b ? t h i s . _ g e t D a t e ( b ) : n u l l } , _ d o K e y D o w n : f u n c t i o n ( b ) { v a r   h = a . d a t e p i c k e r . _ g e t I n s t ( b . t a r g e t ) , j = t r u e , l = h . d p D i v . i s ( " . u i - d a t e p i c k e r - r t l " ) ; h . _ k e y E v e n t = t r u e ; i f ( a . d a t e p i c k e r . _ d a t e p i c k e r S h o w i n g ) s w i t c h ( b . k e y C o d e ) { c a s e   9 : a . d a t e p i c k e r . _ h i d e D a t e p i c k e r ( ) ; 
 j = f a l s e ; b r e a k ; c a s e   1 3 : j = a ( " t d . " + a . d a t e p i c k e r . _ d a y O v e r C l a s s + " : n o t ( . " + a . d a t e p i c k e r . _ c u r r e n t C l a s s + " ) " , h . d p D i v ) ; j [ 0 ] ? a . d a t e p i c k e r . _ s e l e c t D a y ( b . t a r g e t , h . s e l e c t e d M o n t h , h . s e l e c t e d Y e a r , j [ 0 ] ) : a . d a t e p i c k e r . _ h i d e D a t e p i c k e r ( ) ; r e t u r n   f a l s e ; c a s e   2 7 : a . d a t e p i c k e r . _ h i d e D a t e p i c k e r ( ) ; b r e a k ; c a s e   3 3 : a . d a t e p i c k e r . _ a d j u s t D a t e ( b . t a r g e t , b . c t r l K e y ? - a . d a t e p i c k e r . _ g e t ( h , " s t e p B i g M o n t h s " ) : - a . d a t e p i c k e r . _ g e t ( h , " s t e p M o n t h s " ) , " M " ) ; b r e a k ; c a s e   3 4 : a . d a t e p i c k e r . _ a d j u s t D a t e ( b . t a r g e t , b . c t r l K e y ? + a . d a t e p i c k e r . _ g e t ( h , " s t e p B i g M o n t h s " ) : + a . d a t e p i c k e r . _ g e t ( h , 
 " s t e p M o n t h s " ) , " M " ) ; b r e a k ; c a s e   3 5 : i f ( b . c t r l K e y | | b . m e t a K e y ) a . d a t e p i c k e r . _ c l e a r D a t e ( b . t a r g e t ) ; j = b . c t r l K e y | | b . m e t a K e y ; b r e a k ; c a s e   3 6 : i f ( b . c t r l K e y | | b . m e t a K e y ) a . d a t e p i c k e r . _ g o t o T o d a y ( b . t a r g e t ) ; j = b . c t r l K e y | | b . m e t a K e y ; b r e a k ; c a s e   3 7 : i f ( b . c t r l K e y | | b . m e t a K e y ) a . d a t e p i c k e r . _ a d j u s t D a t e ( b . t a r g e t , l ? + 1 : - 1 , " D " ) ; j = b . c t r l K e y | | b . m e t a K e y ; i f ( b . o r i g i n a l E v e n t . a l t K e y ) a . d a t e p i c k e r . _ a d j u s t D a t e ( b . t a r g e t , b . c t r l K e y ? - a . d a t e p i c k e r . _ g e t ( h , " s t e p B i g M o n t h s " ) : - a . d a t e p i c k e r . _ g e t ( h , " s t e p M o n t h s " ) , " M " ) ; b r e a k ; c a s e   3 8 : i f ( b . c t r l K e y | | b . m e t a K e y ) a . d a t e p i c k e r . _ a d j u s t D a t e ( b . t a r g e t , 
 - 7 , " D " ) ; j = b . c t r l K e y | | b . m e t a K e y ; b r e a k ; c a s e   3 9 : i f ( b . c t r l K e y | | b . m e t a K e y ) a . d a t e p i c k e r . _ a d j u s t D a t e ( b . t a r g e t , l ? - 1 : + 1 , " D " ) ; j = b . c t r l K e y | | b . m e t a K e y ; i f ( b . o r i g i n a l E v e n t . a l t K e y ) a . d a t e p i c k e r . _ a d j u s t D a t e ( b . t a r g e t , b . c t r l K e y ? + a . d a t e p i c k e r . _ g e t ( h , " s t e p B i g M o n t h s " ) : + a . d a t e p i c k e r . _ g e t ( h , " s t e p M o n t h s " ) , " M " ) ; b r e a k ; c a s e   4 0 : i f ( b . c t r l K e y | | b . m e t a K e y ) a . d a t e p i c k e r . _ a d j u s t D a t e ( b . t a r g e t , + 7 , " D " ) ; j = b . c t r l K e y | | b . m e t a K e y ; b r e a k ; d e f a u l t : j = f a l s e } e l s e   i f ( b . k e y C o d e = = 3 6 & & b . c t r l K e y ) a . d a t e p i c k e r . _ s h o w D a t e p i c k e r ( t h i s ) ; e l s e   j = f a l s e ; i f ( j ) { b . p r e v e n t D e f a u l t ( ) ; 
 b . s t o p P r o p a g a t i o n ( ) } } , _ d o K e y P r e s s : f u n c t i o n ( b ) { v a r   h = a . d a t e p i c k e r . _ g e t I n s t ( b . t a r g e t ) ; i f ( a . d a t e p i c k e r . _ g e t ( h , " c o n s t r a i n I n p u t " ) ) { h = a . d a t e p i c k e r . _ p o s s i b l e C h a r s ( a . d a t e p i c k e r . _ g e t ( h , " d a t e F o r m a t " ) ) ; v a r   j = S t r i n g . f r o m C h a r C o d e ( b . c h a r C o d e = = d ? b . k e y C o d e : b . c h a r C o d e ) ; r e t u r n   b . c t r l K e y | | b . m e t a K e y | | j < "   " | | ! h | | h . i n d e x O f ( j ) > - 1 } } , _ d o K e y U p : f u n c t i o n ( b ) { b = a . d a t e p i c k e r . _ g e t I n s t ( b . t a r g e t ) ; i f ( b . i n p u t . v a l ( ) ! = b . l a s t V a l ) t r y { i f ( a . d a t e p i c k e r . p a r s e D a t e ( a . d a t e p i c k e r . _ g e t ( b , " d a t e F o r m a t " ) , b . i n p u t ? b . i n p u t . v a l ( ) : n u l l , a . d a t e p i c k e r . _ g e t F o r m a t C o n f i g ( b ) ) ) { a . d a t e p i c k e r . _ s e t D a t e F r o m F i e l d ( b ) ; 
 a . d a t e p i c k e r . _ u p d a t e A l t e r n a t e ( b ) ; a . d a t e p i c k e r . _ u p d a t e D a t e p i c k e r ( b ) } } c a t c h ( h ) { a . d a t e p i c k e r . l o g ( h ) } r e t u r n   t r u e } , _ s h o w D a t e p i c k e r : f u n c t i o n ( b ) { b = b . t a r g e t | | b ; i f ( b . n o d e N a m e . t o L o w e r C a s e ( ) ! = " i n p u t " ) b = a ( " i n p u t " , b . p a r e n t N o d e ) [ 0 ] ; i f ( ! ( a . d a t e p i c k e r . _ i s D i s a b l e d D a t e p i c k e r ( b ) | | a . d a t e p i c k e r . _ l a s t I n p u t = = b ) ) { v a r   h = a . d a t e p i c k e r . _ g e t I n s t ( b ) ; a . d a t e p i c k e r . _ c u r I n s t & & a . d a t e p i c k e r . _ c u r I n s t ! = h & & a . d a t e p i c k e r . _ c u r I n s t . d p D i v . s t o p ( t r u e , t r u e ) ; v a r   j = a . d a t e p i c k e r . _ g e t ( h , " b e f o r e S h o w " ) ; g ( h . s e t t i n g s , j ? j . a p p l y ( b , [ b , h ] ) : { } ) ; h . l a s t V a l = 
 n u l l ; a . d a t e p i c k e r . _ l a s t I n p u t = b ; a . d a t e p i c k e r . _ s e t D a t e F r o m F i e l d ( h ) ; i f ( a . d a t e p i c k e r . _ i n D i a l o g ) b . v a l u e = " " ; i f ( ! a . d a t e p i c k e r . _ p o s ) { a . d a t e p i c k e r . _ p o s = a . d a t e p i c k e r . _ f i n d P o s ( b ) ; a . d a t e p i c k e r . _ p o s [ 1 ] + = b . o f f s e t H e i g h t } v a r   l = f a l s e ; a ( b ) . p a r e n t s ( ) . e a c h ( f u n c t i o n ( ) { l | = a ( t h i s ) . c s s ( " p o s i t i o n " ) = = " f i x e d " ; r e t u r n ! l } ) ; i f ( l & & a . b r o w s e r . o p e r a ) { a . d a t e p i c k e r . _ p o s [ 0 ] - = d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l L e f t ; a . d a t e p i c k e r . _ p o s [ 1 ] - = d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l T o p } j = { l e f t : a . d a t e p i c k e r . _ p o s [ 0 ] , t o p : a . d a t e p i c k e r . _ p o s [ 1 ] } ; a . d a t e p i c k e r . _ p o s = 
 n u l l ; h . d p D i v . e m p t y ( ) ; h . d p D i v . c s s ( { p o s i t i o n : " a b s o l u t e " , d i s p l a y : " b l o c k " , t o p : " - 1 0 0 0 p x " } ) ; a . d a t e p i c k e r . _ u p d a t e D a t e p i c k e r ( h ) ; j = a . d a t e p i c k e r . _ c h e c k O f f s e t ( h , j , l ) ; h . d p D i v . c s s ( { p o s i t i o n : a . d a t e p i c k e r . _ i n D i a l o g & & a . b l o c k U I ? " s t a t i c " : l ? " f i x e d " : " a b s o l u t e " , d i s p l a y : " n o n e " , l e f t : j . l e f t + " p x " , t o p : j . t o p + " p x " } ) ; i f ( ! h . i n l i n e ) { j = a . d a t e p i c k e r . _ g e t ( h , " s h o w A n i m " ) ; v a r   o = a . d a t e p i c k e r . _ g e t ( h , " d u r a t i o n " ) , n = f u n c t i o n ( ) { v a r   k = h . d p D i v . f i n d ( " i f r a m e . u i - d a t e p i c k e r - c o v e r " ) ; i f ( k . l e n g t h ) { v a r   m = a . d a t e p i c k e r . _ g e t B o r d e r s ( h . d p D i v ) ; k . c s s ( { l e f t : - m [ 0 ] , 
 t o p : - m [ 1 ] , w i d t h : h . d p D i v . o u t e r W i d t h ( ) , h e i g h t : h . d p D i v . o u t e r H e i g h t ( ) } ) } } ; h . d p D i v . z I n d e x ( a ( b ) . z I n d e x ( ) + 1 ) ; a . d a t e p i c k e r . _ d a t e p i c k e r S h o w i n g = t r u e ; a . e f f e c t s & & a . e f f e c t s [ j ] ? h . d p D i v . s h o w ( j , a . d a t e p i c k e r . _ g e t ( h , " s h o w O p t i o n s " ) , o , n ) : h . d p D i v [ j | | " s h o w " ] ( j ? o : n u l l , n ) ; i f ( ! j | | ! o ) n ( ) ; h . i n p u t . i s ( " : v i s i b l e " ) & & ! h . i n p u t . i s ( " : d i s a b l e d " ) & & h . i n p u t . f o c u s ( ) ; a . d a t e p i c k e r . _ c u r I n s t = h } } } , _ u p d a t e D a t e p i c k e r : f u n c t i o n ( b ) { v a r   h = a . d a t e p i c k e r . _ g e t B o r d e r s ( b . d p D i v ) ; i = b ; b . d p D i v . e m p t y ( ) . a p p e n d ( t h i s . _ g e n e r a t e H T M L ( b ) ) ; v a r   j = b . d p D i v . f i n d ( " i f r a m e . u i - d a t e p i c k e r - c o v e r " ) ; 
 j . l e n g t h & & j . c s s ( { l e f t : - h [ 0 ] , t o p : - h [ 1 ] , w i d t h : b . d p D i v . o u t e r W i d t h ( ) , h e i g h t : b . d p D i v . o u t e r H e i g h t ( ) } ) ; b . d p D i v . f i n d ( " . " + t h i s . _ d a y O v e r C l a s s + "   a " ) . m o u s e o v e r ( ) ; h = t h i s . _ g e t N u m b e r O f M o n t h s ( b ) ; j = h [ 1 ] ; b . d p D i v . r e m o v e C l a s s ( " u i - d a t e p i c k e r - m u l t i - 2   u i - d a t e p i c k e r - m u l t i - 3   u i - d a t e p i c k e r - m u l t i - 4 " ) . w i d t h ( " " ) ; j > 1 & & b . d p D i v . a d d C l a s s ( " u i - d a t e p i c k e r - m u l t i - " + j ) . c s s ( " w i d t h " , 1 7 * j + " e m " ) ; b . d p D i v [ ( h [ 0 ] ! = 1 | | h [ 1 ] ! = 1 ? " a d d " : " r e m o v e " ) + " C l a s s " ] ( " u i - d a t e p i c k e r - m u l t i " ) ; b . d p D i v [ ( t h i s . _ g e t ( b , " i s R T L " ) ? " a d d " : " r e m o v e " ) + " C l a s s " ] ( " u i - d a t e p i c k e r - r t l " ) ; 
 b = = a . d a t e p i c k e r . _ c u r I n s t & & a . d a t e p i c k e r . _ d a t e p i c k e r S h o w i n g & & b . i n p u t & & b . i n p u t . i s ( " : v i s i b l e " ) & & ! b . i n p u t . i s ( " : d i s a b l e d " ) & & b . i n p u t [ 0 ] ! = d o c u m e n t . a c t i v e E l e m e n t & & b . i n p u t . f o c u s ( ) ; i f ( b . y e a r s h t m l ) { v a r   l = b . y e a r s h t m l ; s e t T i m e o u t ( f u n c t i o n ( ) { l = = = b . y e a r s h t m l & & b . y e a r s h t m l & & b . d p D i v . f i n d ( " s e l e c t . u i - d a t e p i c k e r - y e a r : f i r s t " ) . r e p l a c e W i t h ( b . y e a r s h t m l ) ; l = b . y e a r s h t m l = n u l l } , 0 ) } } , _ g e t B o r d e r s : f u n c t i o n ( b ) { v a r   h = f u n c t i o n ( j ) { r e t u r n { t h i n : 1 , m e d i u m : 2 , t h i c k : 3 } [ j ] | | j } ; r e t u r n [ p a r s e F l o a t ( h ( b . c s s ( " b o r d e r - l e f t - w i d t h " ) ) ) , p a r s e F l o a t ( h ( b . c s s ( " b o r d e r - t o p - w i d t h " ) ) ) ] } , 
 _ c h e c k O f f s e t : f u n c t i o n ( b , h , j ) { v a r   l = b . d p D i v . o u t e r W i d t h ( ) , o = b . d p D i v . o u t e r H e i g h t ( ) , n = b . i n p u t ? b . i n p u t . o u t e r W i d t h ( ) : 0 , k = b . i n p u t ? b . i n p u t . o u t e r H e i g h t ( ) : 0 , m = d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t W i d t h + a ( d o c u m e n t ) . s c r o l l L e f t ( ) , p = d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t H e i g h t + a ( d o c u m e n t ) . s c r o l l T o p ( ) ; h . l e f t - = t h i s . _ g e t ( b , " i s R T L " ) ? l - n : 0 ; h . l e f t - = j & & h . l e f t = = b . i n p u t . o f f s e t ( ) . l e f t ? a ( d o c u m e n t ) . s c r o l l L e f t ( ) : 0 ; h . t o p - = j & & h . t o p = = b . i n p u t . o f f s e t ( ) . t o p + k ? a ( d o c u m e n t ) . s c r o l l T o p ( ) : 0 ; h . l e f t - = M a t h . m i n ( h . l e f t , h . l e f t + l > m & & m > l ? M a t h . a b s ( h . l e f t + l - 
 m ) : 0 ) ; h . t o p - = M a t h . m i n ( h . t o p , h . t o p + o > p & & p > o ? M a t h . a b s ( o + k ) : 0 ) ; r e t u r n   h } , _ f i n d P o s : f u n c t i o n ( b ) { f o r ( v a r   h = t h i s . _ g e t ( t h i s . _ g e t I n s t ( b ) , " i s R T L " ) ; b & & ( b . t y p e = = " h i d d e n " | | b . n o d e T y p e ! = 1 | | a . e x p r . f i l t e r s . h i d d e n ( b ) ) ; ) b = b [ h ? " p r e v i o u s S i b l i n g " : " n e x t S i b l i n g " ] ; b = a ( b ) . o f f s e t ( ) ; r e t u r n [ b . l e f t , b . t o p ] } , _ h i d e D a t e p i c k e r : f u n c t i o n ( b ) { v a r   h = t h i s . _ c u r I n s t ; i f ( ! ( ! h | | b & & h ! = a . d a t a ( b , " d a t e p i c k e r " ) ) ) i f ( t h i s . _ d a t e p i c k e r S h o w i n g ) { b = t h i s . _ g e t ( h , " s h o w A n i m " ) ; v a r   j = t h i s . _ g e t ( h , " d u r a t i o n " ) , l = f u n c t i o n ( ) { a . d a t e p i c k e r . _ t i d y D i a l o g ( h ) ; t h i s . _ c u r I n s t = 
 n u l l } ; a . e f f e c t s & & a . e f f e c t s [ b ] ? h . d p D i v . h i d e ( b , a . d a t e p i c k e r . _ g e t ( h , " s h o w O p t i o n s " ) , j , l ) : h . d p D i v [ b = = " s l i d e D o w n " ? " s l i d e U p " : b = = " f a d e I n " ? " f a d e O u t " : " h i d e " ] ( b ? j : n u l l , l ) ; b | | l ( ) ; i f ( b = t h i s . _ g e t ( h , " o n C l o s e " ) ) b . a p p l y ( h . i n p u t ? h . i n p u t [ 0 ] : n u l l , [ h . i n p u t ? h . i n p u t . v a l ( ) : " " , h ] ) ; t h i s . _ d a t e p i c k e r S h o w i n g = f a l s e ; t h i s . _ l a s t I n p u t = n u l l ; i f ( t h i s . _ i n D i a l o g ) { t h i s . _ d i a l o g I n p u t . c s s ( { p o s i t i o n : " a b s o l u t e " , l e f t : " 0 " , t o p : " - 1 0 0 p x " } ) ; i f ( a . b l o c k U I ) { a . u n b l o c k U I ( ) ; a ( " b o d y " ) . a p p e n d ( t h i s . d p D i v ) } } t h i s . _ i n D i a l o g = f a l s e } } , _ t i d y D i a l o g : f u n c t i o n ( b ) { b . d p D i v . r e m o v e C l a s s ( t h i s . _ d i a l o g C l a s s ) . u n b i n d ( " . u i - d a t e p i c k e r - c a l e n d a r " ) } , 
 _ c h e c k E x t e r n a l C l i c k : f u n c t i o n ( b ) { i f ( a . d a t e p i c k e r . _ c u r I n s t ) { b = a ( b . t a r g e t ) ; b [ 0 ] . i d ! = a . d a t e p i c k e r . _ m a i n D i v I d & & b . p a r e n t s ( " # " + a . d a t e p i c k e r . _ m a i n D i v I d ) . l e n g t h = = 0 & & ! b . h a s C l a s s ( a . d a t e p i c k e r . m a r k e r C l a s s N a m e ) & & ! b . h a s C l a s s ( a . d a t e p i c k e r . _ t r i g g e r C l a s s ) & & a . d a t e p i c k e r . _ d a t e p i c k e r S h o w i n g & & ! ( a . d a t e p i c k e r . _ i n D i a l o g & & a . b l o c k U I ) & & a . d a t e p i c k e r . _ h i d e D a t e p i c k e r ( ) } } , _ a d j u s t D a t e : f u n c t i o n ( b , h , j ) { b = a ( b ) ; v a r   l = t h i s . _ g e t I n s t ( b [ 0 ] ) ; i f ( ! t h i s . _ i s D i s a b l e d D a t e p i c k e r ( b [ 0 ] ) ) { t h i s . _ a d j u s t I n s t D a t e ( l , h + ( j = = " M " ? t h i s . _ g e t ( l , " s h o w C u r r e n t A t P o s " ) : 
 0 ) , j ) ; t h i s . _ u p d a t e D a t e p i c k e r ( l ) } } , _ g o t o T o d a y : f u n c t i o n ( b ) { b = a ( b ) ; v a r   h = t h i s . _ g e t I n s t ( b [ 0 ] ) ; i f ( t h i s . _ g e t ( h , " g o t o C u r r e n t " ) & & h . c u r r e n t D a y ) { h . s e l e c t e d D a y = h . c u r r e n t D a y ; h . d r a w M o n t h = h . s e l e c t e d M o n t h = h . c u r r e n t M o n t h ; h . d r a w Y e a r = h . s e l e c t e d Y e a r = h . c u r r e n t Y e a r } e l s e { v a r   j = n e w   D a t e ; h . s e l e c t e d D a y = j . g e t D a t e ( ) ; h . d r a w M o n t h = h . s e l e c t e d M o n t h = j . g e t M o n t h ( ) ; h . d r a w Y e a r = h . s e l e c t e d Y e a r = j . g e t F u l l Y e a r ( ) } t h i s . _ n o t i f y C h a n g e ( h ) ; t h i s . _ a d j u s t D a t e ( b ) } , _ s e l e c t M o n t h Y e a r : f u n c t i o n ( b , h , j ) { b = a ( b ) ; v a r   l = t h i s . _ g e t I n s t ( b [ 0 ] ) ; l . _ s e l e c t i n g M o n t h Y e a r = 
 f a l s e ; l [ " s e l e c t e d " + ( j = = " M " ? " M o n t h " : " Y e a r " ) ] = l [ " d r a w " + ( j = = " M " ? " M o n t h " : " Y e a r " ) ] = p a r s e I n t ( h . o p t i o n s [ h . s e l e c t e d I n d e x ] . v a l u e , 1 0 ) ; t h i s . _ n o t i f y C h a n g e ( l ) ; t h i s . _ a d j u s t D a t e ( b ) } , _ c l i c k M o n t h Y e a r : f u n c t i o n ( b ) { v a r   h = t h i s . _ g e t I n s t ( a ( b ) [ 0 ] ) ; h . i n p u t & & h . _ s e l e c t i n g M o n t h Y e a r & & s e t T i m e o u t ( f u n c t i o n ( ) { h . i n p u t . f o c u s ( ) } , 0 ) ; h . _ s e l e c t i n g M o n t h Y e a r = ! h . _ s e l e c t i n g M o n t h Y e a r } , _ s e l e c t D a y : f u n c t i o n ( b , h , j , l ) { v a r   o = a ( b ) ; i f ( ! ( a ( l ) . h a s C l a s s ( t h i s . _ u n s e l e c t a b l e C l a s s ) | | t h i s . _ i s D i s a b l e d D a t e p i c k e r ( o [ 0 ] ) ) ) { o = t h i s . _ g e t I n s t ( o [ 0 ] ) ; o . s e l e c t e d D a y = o . c u r r e n t D a y = 
 a ( " a " , l ) . h t m l ( ) ; o . s e l e c t e d M o n t h = o . c u r r e n t M o n t h = h ; o . s e l e c t e d Y e a r = o . c u r r e n t Y e a r = j ; t h i s . _ s e l e c t D a t e ( b , t h i s . _ f o r m a t D a t e ( o , o . c u r r e n t D a y , o . c u r r e n t M o n t h , o . c u r r e n t Y e a r ) ) } } , _ c l e a r D a t e : f u n c t i o n ( b ) { b = a ( b ) ; t h i s . _ g e t I n s t ( b [ 0 ] ) ; t h i s . _ s e l e c t D a t e ( b , " " ) } , _ s e l e c t D a t e : f u n c t i o n ( b , h ) { b = t h i s . _ g e t I n s t ( a ( b ) [ 0 ] ) ; h = h ! = n u l l ? h : t h i s . _ f o r m a t D a t e ( b ) ; b . i n p u t & & b . i n p u t . v a l ( h ) ; t h i s . _ u p d a t e A l t e r n a t e ( b ) ; v a r   j = t h i s . _ g e t ( b , " o n S e l e c t " ) ; i f ( j ) j . a p p l y ( b . i n p u t ? b . i n p u t [ 0 ] : n u l l , [ h , b ] ) ; e l s e   b . i n p u t & & b . i n p u t . t r i g g e r ( " c h a n g e " ) ; i f ( b . i n l i n e ) t h i s . _ u p d a t e D a t e p i c k e r ( b ) ; 
 e l s e { t h i s . _ h i d e D a t e p i c k e r ( ) ; t h i s . _ l a s t I n p u t = b . i n p u t [ 0 ] ; t y p e o f   b . i n p u t [ 0 ] ! = " o b j e c t " & & b . i n p u t . f o c u s ( ) ; t h i s . _ l a s t I n p u t = n u l l } } , _ u p d a t e A l t e r n a t e : f u n c t i o n ( b ) { v a r   h = t h i s . _ g e t ( b , " a l t F i e l d " ) ; i f ( h ) { v a r   j = t h i s . _ g e t ( b , " a l t F o r m a t " ) | | t h i s . _ g e t ( b , " d a t e F o r m a t " ) , l = t h i s . _ g e t D a t e ( b ) , o = t h i s . f o r m a t D a t e ( j , l , t h i s . _ g e t F o r m a t C o n f i g ( b ) ) ; a ( h ) . e a c h ( f u n c t i o n ( ) { a ( t h i s ) . v a l ( o ) } ) } } , n o W e e k e n d s : f u n c t i o n ( b ) { b = b . g e t D a y ( ) ; r e t u r n [ b > 0 & & b < 6 , " " ] } , i s o 8 6 0 1 W e e k : f u n c t i o n ( b ) { b = n e w   D a t e ( b . g e t T i m e ( ) ) ; b . s e t D a t e ( b . g e t D a t e ( ) + 4 - ( b . g e t D a y ( ) | | 7 ) ) ; v a r   h = 
 b . g e t T i m e ( ) ; b . s e t M o n t h ( 0 ) ; b . s e t D a t e ( 1 ) ; r e t u r n   M a t h . f l o o r ( M a t h . r o u n d ( ( h - b ) / 8 6 4 E 5 ) / 7 ) + 1 } , p a r s e D a t e : f u n c t i o n ( b , h , j ) { i f ( b = = n u l l | | h = = n u l l ) t h r o w " I n v a l i d   a r g u m e n t s " ; h = t y p e o f   h = = " o b j e c t " ? h . t o S t r i n g ( ) : h + " " ; i f ( h = = " " ) r e t u r n   n u l l ; v a r   l = ( j ? j . s h o r t Y e a r C u t o f f : n u l l ) | | t h i s . _ d e f a u l t s . s h o r t Y e a r C u t o f f ; l = t y p e o f   l ! = " s t r i n g " ? l : ( n e w   D a t e ) . g e t F u l l Y e a r ( ) % 1 0 0 + p a r s e I n t ( l , 1 0 ) ; f o r ( v a r   o = ( j ? j . d a y N a m e s S h o r t : n u l l ) | | t h i s . _ d e f a u l t s . d a y N a m e s S h o r t , n = ( j ? j . d a y N a m e s : n u l l ) | | t h i s . _ d e f a u l t s . d a y N a m e s , k = ( j ? j . m o n t h N a m e s S h o r t : n u l l ) | | t h i s . _ d e f a u l t s . m o n t h N a m e s S h o r t , 
 m = ( j ? j . m o n t h N a m e s : n u l l ) | | t h i s . _ d e f a u l t s . m o n t h N a m e s , p = j = - 1 , q = - 1 , s = - 1 , r = f a l s e , u = f u n c t i o n ( y ) { ( y = G + 1 < b . l e n g t h & & b . c h a r A t ( G + 1 ) = = y ) & & G + + ; r e t u r n   y } , v = f u n c t i o n ( y ) { v a r   H = u ( y ) ; y = n e w   R e g E x p ( " ^ \ \ d { 1 , " + ( y = = " @ " ? 1 4 : y = = " ! " ? 2 0 : y = = " y " & & H ? 4 : y = = " o " ? 3 : 2 ) + " } " ) ; y = h . s u b s t r i n g ( z ) . m a t c h ( y ) ; i f ( ! y ) t h r o w " M i s s i n g   n u m b e r   a t   p o s i t i o n   " + z ; z + = y [ 0 ] . l e n g t h ; r e t u r n   p a r s e I n t ( y [ 0 ] , 1 0 ) } , w = f u n c t i o n ( y , H , N ) { y = a . m a p ( u ( y ) ? N : H , f u n c t i o n ( D , E ) { r e t u r n [ [ E , D ] ] } ) . s o r t ( f u n c t i o n ( D , E ) { r e t u r n - ( D [ 1 ] . l e n g t h - E [ 1 ] . l e n g t h ) } ) ; v a r   J = - 1 ; a . e a c h ( y , f u n c t i o n ( D , E ) { D = 
 E [ 1 ] ; i f ( h . s u b s t r ( z , D . l e n g t h ) . t o L o w e r C a s e ( ) = = D . t o L o w e r C a s e ( ) ) { J = E [ 0 ] ; z + = D . l e n g t h ; r e t u r n   f a l s e } } ) ; i f ( J ! = - 1 ) r e t u r n   J + 1 ; e l s e   t h r o w " U n k n o w n   n a m e   a t   p o s i t i o n   " + z ; } , x = f u n c t i o n ( ) { i f ( h . c h a r A t ( z ) ! = b . c h a r A t ( G ) ) t h r o w " U n e x p e c t e d   l i t e r a l   a t   p o s i t i o n   " + z ; z + + } , z = 0 , G = 0 ; G < b . l e n g t h ; G + + ) i f ( r ) i f ( b . c h a r A t ( G ) = = " ' " & & ! u ( " ' " ) ) r = f a l s e ; e l s e   x ( ) ; e l s e   s w i t c h ( b . c h a r A t ( G ) ) { c a s e   " d " : q = v ( " d " ) ; b r e a k ; c a s e   " D " : w ( " D " , o , n ) ; b r e a k ; c a s e   " o " : s = v ( " o " ) ; b r e a k ; c a s e   " m " : p = v ( " m " ) ; b r e a k ; c a s e   " M " : p = w ( " M " , k , m ) ; b r e a k ; c a s e   " y " : j = v ( " y " ) ; b r e a k ; c a s e   " @ " : v a r   C = 
 n e w   D a t e ( v ( " @ " ) ) ; j = C . g e t F u l l Y e a r ( ) ; p = C . g e t M o n t h ( ) + 1 ; q = C . g e t D a t e ( ) ; b r e a k ; c a s e   " ! " : C = n e w   D a t e ( ( v ( " ! " ) - t h i s . _ t i c k s T o 1 9 7 0 ) / 1 E 4 ) ; j = C . g e t F u l l Y e a r ( ) ; p = C . g e t M o n t h ( ) + 1 ; q = C . g e t D a t e ( ) ; b r e a k ; c a s e   " ' " : i f ( u ( " ' " ) ) x ( ) ; e l s e   r = t r u e ; b r e a k ; d e f a u l t : x ( ) } i f ( j = = - 1 ) j = ( n e w   D a t e ) . g e t F u l l Y e a r ( ) ; e l s e   i f ( j < 1 0 0 ) j + = ( n e w   D a t e ) . g e t F u l l Y e a r ( ) - ( n e w   D a t e ) . g e t F u l l Y e a r ( ) % 1 0 0 + ( j < = l ? 0 : - 1 0 0 ) ; i f ( s > - 1 ) { p = 1 ; q = s ; d o { l = t h i s . _ g e t D a y s I n M o n t h ( j , p - 1 ) ; i f ( q < = l ) b r e a k ; p + + ; q - = l } w h i l e ( 1 ) } C = t h i s . _ d a y l i g h t S a v i n g A d j u s t ( n e w   D a t e ( j , p - 1 , q ) ) ; i f ( C . g e t F u l l Y e a r ( ) ! = 
 j | | C . g e t M o n t h ( ) + 1 ! = p | | C . g e t D a t e ( ) ! = q ) t h r o w " I n v a l i d   d a t e " ; r e t u r n   C } , A T O M : " y y - m m - d d " , C O O K I E : " D ,   d d   M   y y " , I S O _ 8 6 0 1 : " y y - m m - d d " , R F C _ 8 2 2 : " D ,   d   M   y " , R F C _ 8 5 0 : " D D ,   d d - M - y " , R F C _ 1 0 3 6 : " D ,   d   M   y " , R F C _ 1 1 2 3 : " D ,   d   M   y y " , R F C _ 2 8 2 2 : " D ,   d   M   y y " , R S S : " D ,   d   M   y " , T I C K S : " ! " , T I M E S T A M P : " @ " , W 3 C : " y y - m m - d d " , _ t i c k s T o 1 9 7 0 : ( 7 1 8 6 8 5 + M a t h . f l o o r ( 4 9 2 . 5 ) - M a t h . f l o o r ( 1 9 . 7 ) + M a t h . f l o o r ( 4 . 9 2 5 ) ) * 2 4 * 6 0 * 6 0 * 1 E 7 , f o r m a t D a t e : f u n c t i o n ( b , h , j ) { i f ( ! h ) r e t u r n " " ; v a r   l = ( j ? j . d a y N a m e s S h o r t : n u l l ) | | t h i s . _ d e f a u l t s . d a y N a m e s S h o r t , o = ( j ? j . d a y N a m e s : n u l l ) | | t h i s . _ d e f a u l t s . d a y N a m e s , 
 n = ( j ? j . m o n t h N a m e s S h o r t : n u l l ) | | t h i s . _ d e f a u l t s . m o n t h N a m e s S h o r t ; j = ( j ? j . m o n t h N a m e s : n u l l ) | | t h i s . _ d e f a u l t s . m o n t h N a m e s ; v a r   k = f u n c t i o n ( u ) { ( u = r + 1 < b . l e n g t h & & b . c h a r A t ( r + 1 ) = = u ) & & r + + ; r e t u r n   u } , m = f u n c t i o n ( u , v , w ) { v = " " + v ; i f ( k ( u ) ) f o r ( ; v . l e n g t h < w ; ) v = " 0 " + v ; r e t u r n   v } , p = f u n c t i o n ( u , v , w , x ) { r e t u r n   k ( u ) ? x [ v ] : w [ v ] } , q = " " , s = f a l s e ; i f ( h ) f o r ( v a r   r = 0 ; r < b . l e n g t h ; r + + ) i f ( s ) i f ( b . c h a r A t ( r ) = = " ' " & & ! k ( " ' " ) ) s = f a l s e ; e l s e   q + = b . c h a r A t ( r ) ; e l s e   s w i t c h ( b . c h a r A t ( r ) ) { c a s e   " d " : q + = m ( " d " , h . g e t D a t e ( ) , 2 ) ; b r e a k ; c a s e   " D " : q + = p ( " D " , h . g e t D a y ( ) , l , o ) ; b r e a k ; 
 c a s e   " o " : q + = m ( " o " , ( h . g e t T i m e ( ) - ( n e w   D a t e ( h . g e t F u l l Y e a r ( ) , 0 , 0 ) ) . g e t T i m e ( ) ) / 8 6 4 E 5 , 3 ) ; b r e a k ; c a s e   " m " : q + = m ( " m " , h . g e t M o n t h ( ) + 1 , 2 ) ; b r e a k ; c a s e   " M " : q + = p ( " M " , h . g e t M o n t h ( ) , n , j ) ; b r e a k ; c a s e   " y " : q + = k ( " y " ) ? h . g e t F u l l Y e a r ( ) : ( h . g e t Y e a r ( ) % 1 0 0 < 1 0 ? " 0 " : " " ) + h . g e t Y e a r ( ) % 1 0 0 ; b r e a k ; c a s e   " @ " : q + = h . g e t T i m e ( ) ; b r e a k ; c a s e   " ! " : q + = h . g e t T i m e ( ) * 1 E 4 + t h i s . _ t i c k s T o 1 9 7 0 ; b r e a k ; c a s e   " ' " : i f ( k ( " ' " ) ) q + = " ' " ; e l s e   s = t r u e ; b r e a k ; d e f a u l t : q + = b . c h a r A t ( r ) } r e t u r n   q } , _ p o s s i b l e C h a r s : f u n c t i o n ( b ) { f o r ( v a r   h = " " , j = f a l s e , l = f u n c t i o n ( n ) { ( n = o + 1 < b . l e n g t h & & b . c h a r A t ( o + 
 1 ) = = n ) & & o + + ; r e t u r n   n } , o = 0 ; o < b . l e n g t h ; o + + ) i f ( j ) i f ( b . c h a r A t ( o ) = = " ' " & & ! l ( " ' " ) ) j = f a l s e ; e l s e   h + = b . c h a r A t ( o ) ; e l s e   s w i t c h ( b . c h a r A t ( o ) ) { c a s e   " d " : c a s e   " m " : c a s e   " y " : c a s e   " @ " : h + = " 0 1 2 3 4 5 6 7 8 9 " ; b r e a k ; c a s e   " D " : c a s e   " M " : r e t u r n   n u l l ; c a s e   " ' " : i f ( l ( " ' " ) ) h + = " ' " ; e l s e   j = t r u e ; b r e a k ; d e f a u l t : h + = b . c h a r A t ( o ) } r e t u r n   h } , _ g e t : f u n c t i o n ( b , h ) { r e t u r n   b . s e t t i n g s [ h ] ! = = d ? b . s e t t i n g s [ h ] : t h i s . _ d e f a u l t s [ h ] } , _ s e t D a t e F r o m F i e l d : f u n c t i o n ( b , h ) { i f ( b . i n p u t . v a l ( ) ! = b . l a s t V a l ) { v a r   j = t h i s . _ g e t ( b , " d a t e F o r m a t " ) , l = b . l a s t V a l = b . i n p u t ? b . i n p u t . v a l ( ) : n u l l , 
 o , n ; o = n = t h i s . _ g e t D e f a u l t D a t e ( b ) ; v a r   k = t h i s . _ g e t F o r m a t C o n f i g ( b ) ; t r y { o = t h i s . p a r s e D a t e ( j , l , k ) | | n } c a t c h ( m ) { t h i s . l o g ( m ) ; l = h ? " " : l } b . s e l e c t e d D a y = o . g e t D a t e ( ) ; b . d r a w M o n t h = b . s e l e c t e d M o n t h = o . g e t M o n t h ( ) ; b . d r a w Y e a r = b . s e l e c t e d Y e a r = o . g e t F u l l Y e a r ( ) ; b . c u r r e n t D a y = l ? o . g e t D a t e ( ) : 0 ; b . c u r r e n t M o n t h = l ? o . g e t M o n t h ( ) : 0 ; b . c u r r e n t Y e a r = l ? o . g e t F u l l Y e a r ( ) : 0 ; t h i s . _ a d j u s t I n s t D a t e ( b ) } } , _ g e t D e f a u l t D a t e : f u n c t i o n ( b ) { r e t u r n   t h i s . _ r e s t r i c t M i n M a x ( b , t h i s . _ d e t e r m i n e D a t e ( b , t h i s . _ g e t ( b , " d e f a u l t D a t e " ) , n e w   D a t e ) ) } , _ d e t e r m i n e D a t e : f u n c t i o n ( b , h , 
 j ) { v a r   l = f u n c t i o n ( n ) { v a r   k = n e w   D a t e ; k . s e t D a t e ( k . g e t D a t e ( ) + n ) ; r e t u r n   k } , o = f u n c t i o n ( n ) { t r y { r e t u r n   a . d a t e p i c k e r . p a r s e D a t e ( a . d a t e p i c k e r . _ g e t ( b , " d a t e F o r m a t " ) , n , a . d a t e p i c k e r . _ g e t F o r m a t C o n f i g ( b ) ) } c a t c h ( k ) { } v a r   m = ( n . t o L o w e r C a s e ( ) . m a t c h ( / ^ c / ) ? a . d a t e p i c k e r . _ g e t D a t e ( b ) : n u l l ) | | n e w   D a t e , p = m . g e t F u l l Y e a r ( ) , q = m . g e t M o n t h ( ) ; m = m . g e t D a t e ( ) ; f o r ( v a r   s = / ( [ + - ] ? [ 0 - 9 ] + ) \ s * ( d | D | w | W | m | M | y | Y ) ? / g , r = s . e x e c ( n ) ; r ; ) { s w i t c h ( r [ 2 ] | | " d " ) { c a s e   " d " : c a s e   " D " : m + = p a r s e I n t ( r [ 1 ] , 1 0 ) ; b r e a k ; c a s e   " w " : c a s e   " W " : m + = p a r s e I n t ( r [ 1 ] , 1 0 ) * 7 ; b r e a k ; c a s e   " m " : c a s e   " M " : q + = 
 p a r s e I n t ( r [ 1 ] , 1 0 ) ; m = M a t h . m i n ( m , a . d a t e p i c k e r . _ g e t D a y s I n M o n t h ( p , q ) ) ; b r e a k ; c a s e   " y " : c a s e   " Y " : p + = p a r s e I n t ( r [ 1 ] , 1 0 ) ; m = M a t h . m i n ( m , a . d a t e p i c k e r . _ g e t D a y s I n M o n t h ( p , q ) ) ; b r e a k } r = s . e x e c ( n ) } r e t u r n   n e w   D a t e ( p , q , m ) } ; i f ( h = ( h = h = = n u l l | | h = = = " " ? j : t y p e o f   h = = " s t r i n g " ? o ( h ) : t y p e o f   h = = " n u m b e r " ? i s N a N ( h ) ? j : l ( h ) : n e w   D a t e ( h . g e t T i m e ( ) ) ) & & h . t o S t r i n g ( ) = = " I n v a l i d   D a t e " ? j : h ) { h . s e t H o u r s ( 0 ) ; h . s e t M i n u t e s ( 0 ) ; h . s e t S e c o n d s ( 0 ) ; h . s e t M i l l i s e c o n d s ( 0 ) } r e t u r n   t h i s . _ d a y l i g h t S a v i n g A d j u s t ( h ) } , _ d a y l i g h t S a v i n g A d j u s t : f u n c t i o n ( b ) { i f ( ! b ) r e t u r n   n u l l ; 
 b . s e t H o u r s ( b . g e t H o u r s ( ) > 1 2 ? b . g e t H o u r s ( ) + 2 : 0 ) ; r e t u r n   b } , _ s e t D a t e : f u n c t i o n ( b , h , j ) { v a r   l = ! h , o = b . s e l e c t e d M o n t h , n = b . s e l e c t e d Y e a r ; h = t h i s . _ r e s t r i c t M i n M a x ( b , t h i s . _ d e t e r m i n e D a t e ( b , h , n e w   D a t e ) ) ; b . s e l e c t e d D a y = b . c u r r e n t D a y = h . g e t D a t e ( ) ; b . d r a w M o n t h = b . s e l e c t e d M o n t h = b . c u r r e n t M o n t h = h . g e t M o n t h ( ) ; b . d r a w Y e a r = b . s e l e c t e d Y e a r = b . c u r r e n t Y e a r = h . g e t F u l l Y e a r ( ) ; i f ( ( o ! = b . s e l e c t e d M o n t h | | n ! = b . s e l e c t e d Y e a r ) & & ! j ) t h i s . _ n o t i f y C h a n g e ( b ) ; t h i s . _ a d j u s t I n s t D a t e ( b ) ; i f ( b . i n p u t ) b . i n p u t . v a l ( l ? " " : t h i s . _ f o r m a t D a t e ( b ) ) } , _ g e t D a t e : f u n c t i o n ( b ) { r e t u r n ! b . c u r r e n t Y e a r | | 
 b . i n p u t & & b . i n p u t . v a l ( ) = = " " ? n u l l : t h i s . _ d a y l i g h t S a v i n g A d j u s t ( n e w   D a t e ( b . c u r r e n t Y e a r , b . c u r r e n t M o n t h , b . c u r r e n t D a y ) ) } , _ g e n e r a t e H T M L : f u n c t i o n ( b ) { v a r   h = n e w   D a t e ; h = t h i s . _ d a y l i g h t S a v i n g A d j u s t ( n e w   D a t e ( h . g e t F u l l Y e a r ( ) , h . g e t M o n t h ( ) , h . g e t D a t e ( ) ) ) ; v a r   j = t h i s . _ g e t ( b , " i s R T L " ) , l = t h i s . _ g e t ( b , " s h o w B u t t o n P a n e l " ) , o = t h i s . _ g e t ( b , " h i d e I f N o P r e v N e x t " ) , n = t h i s . _ g e t ( b , " n a v i g a t i o n A s D a t e F o r m a t " ) , k = t h i s . _ g e t N u m b e r O f M o n t h s ( b ) , m = t h i s . _ g e t ( b , " s h o w C u r r e n t A t P o s " ) , p = t h i s . _ g e t ( b , " s t e p M o n t h s " ) , q = k [ 0 ] ! = 1 | | k [ 1 ] ! = 1 , s = t h i s . _ d a y l i g h t S a v i n g A d j u s t ( ! b . c u r r e n t D a y ? 
 n e w   D a t e ( 9 9 9 9 , 9 , 9 ) : n e w   D a t e ( b . c u r r e n t Y e a r , b . c u r r e n t M o n t h , b . c u r r e n t D a y ) ) , r = t h i s . _ g e t M i n M a x D a t e ( b , " m i n " ) , u = t h i s . _ g e t M i n M a x D a t e ( b , " m a x " ) ; m = b . d r a w M o n t h - m ; v a r   v = b . d r a w Y e a r ; i f ( m < 0 ) { m + = 1 2 ; v - - } i f ( u ) { v a r   w = t h i s . _ d a y l i g h t S a v i n g A d j u s t ( n e w   D a t e ( u . g e t F u l l Y e a r ( ) , u . g e t M o n t h ( ) - k [ 0 ] * k [ 1 ] + 1 , u . g e t D a t e ( ) ) ) ; f o r ( w = r & & w < r ? r : w ; t h i s . _ d a y l i g h t S a v i n g A d j u s t ( n e w   D a t e ( v , m , 1 ) ) > w ; ) { m - - ; i f ( m < 0 ) { m = 1 1 ; v - - } } } b . d r a w M o n t h = m ; b . d r a w Y e a r = v ; w = t h i s . _ g e t ( b , " p r e v T e x t " ) ; w = ! n ? w : t h i s . f o r m a t D a t e ( w , t h i s . _ d a y l i g h t S a v i n g A d j u s t ( n e w   D a t e ( v , m - p , 1 ) ) , t h i s . _ g e t F o r m a t C o n f i g ( b ) ) ; 
 w = t h i s . _ c a n A d j u s t M o n t h ( b , - 1 , v , m ) ? ' < a   c l a s s = " u i - d a t e p i c k e r - p r e v   u i - c o r n e r - a l l "   o n c l i c k = " D P _ j Q u e r y _ ' + e + " . d a t e p i c k e r . _ a d j u s t D a t e ( ' # " + b . i d + " ' ,   - " + p + " ,   ' M ' ) ; \ "   t i t l e = \ " " + w + ' " > < s p a n   c l a s s = " u i - i c o n   u i - i c o n - c i r c l e - t r i a n g l e - ' + ( j ? " e " : " w " ) + ' " > ' + w + " < / s p a n > < / a > " : o ? " " : ' < a   c l a s s = " u i - d a t e p i c k e r - p r e v   u i - c o r n e r - a l l   u i - s t a t e - d i s a b l e d "   t i t l e = " ' + w + ' " > < s p a n   c l a s s = " u i - i c o n   u i - i c o n - c i r c l e - t r i a n g l e - ' + ( j ? " e " : " w " ) + ' " > ' + w + " < / s p a n > < / a > " ; v a r   x = t h i s . _ g e t ( b , " n e x t T e x t " ) ; x = ! n ? x : t h i s . f o r m a t D a t e ( x , t h i s . _ d a y l i g h t S a v i n g A d j u s t ( n e w   D a t e ( v , 
 m + p , 1 ) ) , t h i s . _ g e t F o r m a t C o n f i g ( b ) ) ; o = t h i s . _ c a n A d j u s t M o n t h ( b , + 1 , v , m ) ? ' < a   c l a s s = " u i - d a t e p i c k e r - n e x t   u i - c o r n e r - a l l "   o n c l i c k = " D P _ j Q u e r y _ ' + e + " . d a t e p i c k e r . _ a d j u s t D a t e ( ' # " + b . i d + " ' ,   + " + p + " ,   ' M ' ) ; \ "   t i t l e = \ " " + x + ' " > < s p a n   c l a s s = " u i - i c o n   u i - i c o n - c i r c l e - t r i a n g l e - ' + ( j ? " w " : " e " ) + ' " > ' + x + " < / s p a n > < / a > " : o ? " " : ' < a   c l a s s = " u i - d a t e p i c k e r - n e x t   u i - c o r n e r - a l l   u i - s t a t e - d i s a b l e d "   t i t l e = " ' + x + ' " > < s p a n   c l a s s = " u i - i c o n   u i - i c o n - c i r c l e - t r i a n g l e - ' + ( j ? " w " : " e " ) + ' " > ' + x + " < / s p a n > < / a > " ; p = t h i s . _ g e t ( b , " c u r r e n t T e x t " ) ; x = t h i s . _ g e t ( b , " g o t o C u r r e n t " ) & & 
 b . c u r r e n t D a y ? s : h ; p = ! n ? p : t h i s . f o r m a t D a t e ( p , x , t h i s . _ g e t F o r m a t C o n f i g ( b ) ) ; n = ! b . i n l i n e ? ' < b u t t o n   t y p e = " b u t t o n "   c l a s s = " u i - d a t e p i c k e r - c l o s e   u i - s t a t e - d e f a u l t   u i - p r i o r i t y - p r i m a r y   u i - c o r n e r - a l l "   o n c l i c k = " D P _ j Q u e r y _ ' + e + ' . d a t e p i c k e r . _ h i d e D a t e p i c k e r ( ) ; " > ' + t h i s . _ g e t ( b , " c l o s e T e x t " ) + " < / b u t t o n > " : " " ; l = l ? ' < d i v   c l a s s = " u i - d a t e p i c k e r - b u t t o n p a n e   u i - w i d g e t - c o n t e n t " > ' + ( j ? n : " " ) + ( t h i s . _ i s I n R a n g e ( b , x ) ? ' < b u t t o n   t y p e = " b u t t o n "   c l a s s = " u i - d a t e p i c k e r - c u r r e n t   u i - s t a t e - d e f a u l t   u i - p r i o r i t y - s e c o n d a r y   u i - c o r n e r - a l l "   o n c l i c k = " D P _ j Q u e r y _ ' + 
 e + " . d a t e p i c k e r . _ g o t o T o d a y ( ' # " + b . i d + " ' ) ; \ " > " + p + " < / b u t t o n > " : " " ) + ( j ? " " : n ) + " < / d i v > " : " " ; n = p a r s e I n t ( t h i s . _ g e t ( b , " f i r s t D a y " ) , 1 0 ) ; n = i s N a N ( n ) ? 0 : n ; p = t h i s . _ g e t ( b , " s h o w W e e k " ) ; x = t h i s . _ g e t ( b , " d a y N a m e s " ) ; t h i s . _ g e t ( b , " d a y N a m e s S h o r t " ) ; v a r   z = t h i s . _ g e t ( b , " d a y N a m e s M i n " ) , G = t h i s . _ g e t ( b , " m o n t h N a m e s " ) , C = t h i s . _ g e t ( b , " m o n t h N a m e s S h o r t " ) , y = t h i s . _ g e t ( b , " b e f o r e S h o w D a y " ) , H = t h i s . _ g e t ( b , " s h o w O t h e r M o n t h s " ) , N = t h i s . _ g e t ( b , " s e l e c t O t h e r M o n t h s " ) ; t h i s . _ g e t ( b , " c a l c u l a t e W e e k " ) ; f o r ( v a r   J = t h i s . _ g e t D e f a u l t D a t e ( b ) , D = " " , E = 0 ; E < k [ 0 ] ; E + + ) { f o r ( v a r   P = 
 " " , L = 0 ; L < k [ 1 ] ; L + + ) { v a r   Q = t h i s . _ d a y l i g h t S a v i n g A d j u s t ( n e w   D a t e ( v , m , b . s e l e c t e d D a y ) ) , B = "   u i - c o r n e r - a l l " , F = " " ; i f ( q ) { F + = ' < d i v   c l a s s = " u i - d a t e p i c k e r - g r o u p ' ; i f ( k [ 1 ] > 1 ) s w i t c h ( L ) { c a s e   0 : F + = "   u i - d a t e p i c k e r - g r o u p - f i r s t " ; B = "   u i - c o r n e r - " + ( j ? " r i g h t " : " l e f t " ) ; b r e a k ; c a s e   k [ 1 ] - 1 : F + = "   u i - d a t e p i c k e r - g r o u p - l a s t " ; B = "   u i - c o r n e r - " + ( j ? " l e f t " : " r i g h t " ) ; b r e a k ; d e f a u l t : F + = "   u i - d a t e p i c k e r - g r o u p - m i d d l e " ; B = " " ; b r e a k } F + = ' " > ' } F + = ' < d i v   c l a s s = " u i - d a t e p i c k e r - h e a d e r   u i - w i d g e t - h e a d e r   u i - h e l p e r - c l e a r f i x ' + B + ' " > ' + ( / a l l | l e f t / . t e s t ( B ) & & E = = 0 ? j ? 
 o : w : " " ) + ( / a l l | r i g h t / . t e s t ( B ) & & E = = 0 ? j ? w : o : " " ) + t h i s . _ g e n e r a t e M o n t h Y e a r H e a d e r ( b , m , v , r , u , E > 0 | | L > 0 , G , C ) + ' < / d i v > < t a b l e   c l a s s = " u i - d a t e p i c k e r - c a l e n d a r " > < t h e a d > < t r > ' ; v a r   I = p ? ' < t h   c l a s s = " u i - d a t e p i c k e r - w e e k - c o l " > ' + t h i s . _ g e t ( b , " w e e k H e a d e r " ) + " < / t h > " : " " ; f o r ( B = 0 ; B < 7 ; B + + ) { v a r   A = ( B + n ) % 7 ; I + = " < t h " + ( ( B + n + 6 ) % 7 > = 5 ? '   c l a s s = " u i - d a t e p i c k e r - w e e k - e n d " ' : " " ) + ' > < s p a n   t i t l e = " ' + x [ A ] + ' " > ' + z [ A ] + " < / s p a n > < / t h > " } F + = I + " < / t r > < / t h e a d > < t b o d y > " ; I = t h i s . _ g e t D a y s I n M o n t h ( v , m ) ; i f ( v = = b . s e l e c t e d Y e a r & & m = = b . s e l e c t e d M o n t h ) b . s e l e c t e d D a y = M a t h . m i n ( b . s e l e c t e d D a y , 
 I ) ; B = ( t h i s . _ g e t F i r s t D a y O f M o n t h ( v , m ) - n + 7 ) % 7 ; I = q ? 6 : M a t h . c e i l ( ( B + I ) / 7 ) ; A = t h i s . _ d a y l i g h t S a v i n g A d j u s t ( n e w   D a t e ( v , m , 1 - B ) ) ; f o r ( v a r   R = 0 ; R < I ; R + + ) { F + = " < t r > " ; v a r   S = ! p ? " " : ' < t d   c l a s s = " u i - d a t e p i c k e r - w e e k - c o l " > ' + t h i s . _ g e t ( b , " c a l c u l a t e W e e k " ) ( A ) + " < / t d > " ; f o r ( B = 0 ; B < 7 ; B + + ) { v a r   M = y ? y . a p p l y ( b . i n p u t ? b . i n p u t [ 0 ] : n u l l , [ A ] ) : [ t r u e , " " ] , K = A . g e t M o n t h ( ) ! = m , O = K & & ! N | | ! M [ 0 ] | | r & & A < r | | u & & A > u ; S + = ' < t d   c l a s s = " ' + ( ( B + n + 6 ) % 7 > = 5 ? "   u i - d a t e p i c k e r - w e e k - e n d " : " " ) + ( K ? "   u i - d a t e p i c k e r - o t h e r - m o n t h " : " " ) + ( A . g e t T i m e ( ) = = Q . g e t T i m e ( ) & & m = = b . s e l e c t e d M o n t h & & 
 b . _ k e y E v e n t | | J . g e t T i m e ( ) = = A . g e t T i m e ( ) & & J . g e t T i m e ( ) = = Q . g e t T i m e ( ) ? "   " + t h i s . _ d a y O v e r C l a s s : " " ) + ( O ? "   " + t h i s . _ u n s e l e c t a b l e C l a s s + "   u i - s t a t e - d i s a b l e d " : " " ) + ( K & & ! H ? " " : "   " + M [ 1 ] + ( A . g e t T i m e ( ) = = s . g e t T i m e ( ) ? "   " + t h i s . _ c u r r e n t C l a s s : " " ) + ( A . g e t T i m e ( ) = = h . g e t T i m e ( ) ? "   u i - d a t e p i c k e r - t o d a y " : " " ) ) + ' " ' + ( ( ! K | | H ) & & M [ 2 ] ? '   t i t l e = " ' + M [ 2 ] + ' " ' : " " ) + ( O ? " " : '   o n c l i c k = " D P _ j Q u e r y _ ' + e + " . d a t e p i c k e r . _ s e l e c t D a y ( ' # " + b . i d + " ' , " + A . g e t M o n t h ( ) + " , " + A . g e t F u l l Y e a r ( ) + ' ,   t h i s ) ; r e t u r n   f a l s e ; " ' ) + " > " + ( K & & ! H ? " & # x a 0 ; " : O ? ' < s p a n   c l a s s = " u i - s t a t e - d e f a u l t " > ' + A . g e t D a t e ( ) + 
 " < / s p a n > " : ' < a   c l a s s = " u i - s t a t e - d e f a u l t ' + ( A . g e t T i m e ( ) = = h . g e t T i m e ( ) ? "   u i - s t a t e - h i g h l i g h t " : " " ) + ( A . g e t T i m e ( ) = = s . g e t T i m e ( ) ? "   u i - s t a t e - a c t i v e " : " " ) + ( K ? "   u i - p r i o r i t y - s e c o n d a r y " : " " ) + ' "   h r e f = " # " > ' + A . g e t D a t e ( ) + " < / a > " ) + " < / t d > " ; A . s e t D a t e ( A . g e t D a t e ( ) + 1 ) ; A = t h i s . _ d a y l i g h t S a v i n g A d j u s t ( A ) } F + = S + " < / t r > " } m + + ; i f ( m > 1 1 ) { m = 0 ; v + + } F + = " < / t b o d y > < / t a b l e > " + ( q ? " < / d i v > " + ( k [ 0 ] > 0 & & L = = k [ 1 ] - 1 ? ' < d i v   c l a s s = " u i - d a t e p i c k e r - r o w - b r e a k " > < / d i v > ' : " " ) : " " ) ; P + = F } D + = P } D + = l + ( a . b r o w s e r . m s i e & & p a r s e I n t ( a . b r o w s e r . v e r s i o n , 1 0 ) < 7 & & ! b . i n l i n e ? ' < i f r a m e   s r c = " j a v a s c r i p t : f a l s e ; "   c l a s s = " u i - d a t e p i c k e r - c o v e r "   f r a m e b o r d e r = " 0 " > < / i f r a m e > ' : 
 " " ) ; b . _ k e y E v e n t = f a l s e ; r e t u r n   D } , _ g e n e r a t e M o n t h Y e a r H e a d e r : f u n c t i o n ( b , h , j , l , o , n , k , m ) { v a r   p = t h i s . _ g e t ( b , " c h a n g e M o n t h " ) , q = t h i s . _ g e t ( b , " c h a n g e Y e a r " ) , s = t h i s . _ g e t ( b , " s h o w M o n t h A f t e r Y e a r " ) , r = ' < d i v   c l a s s = " u i - d a t e p i c k e r - t i t l e " > ' , u = " " ; i f ( n | | ! p ) u + = ' < s p a n   c l a s s = " u i - d a t e p i c k e r - m o n t h " > ' + k [ h ] + " < / s p a n > " ; e l s e { k = l & & l . g e t F u l l Y e a r ( ) = = j ; v a r   v = o & & o . g e t F u l l Y e a r ( ) = = j ; u + = ' < s e l e c t   c l a s s = " u i - d a t e p i c k e r - m o n t h "   o n c h a n g e = " D P _ j Q u e r y _ ' + e + " . d a t e p i c k e r . _ s e l e c t M o n t h Y e a r ( ' # " + b . i d + " ' ,   t h i s ,   ' M ' ) ; \ "   o n c l i c k = \ " D P _ j Q u e r y _ " + e + " . d a t e p i c k e r . _ c l i c k M o n t h Y e a r ( ' # " + 
 b . i d + " ' ) ; \ " > " ; f o r ( v a r   w = 0 ; w < 1 2 ; w + + ) i f ( ( ! k | | w > = l . g e t M o n t h ( ) ) & & ( ! v | | w < = o . g e t M o n t h ( ) ) ) u + = ' < o p t i o n   v a l u e = " ' + w + ' " ' + ( w = = h ? '   s e l e c t e d = " s e l e c t e d " ' : " " ) + " > " + m [ w ] + " < / o p t i o n > " ; u + = " < / s e l e c t > " } s | | ( r + = u + ( n | | ! ( p & & q ) ? " & # x a 0 ; " : " " ) ) ; i f ( ! b . y e a r s h t m l ) { b . y e a r s h t m l = " " ; i f ( n | | ! q ) r + = ' < s p a n   c l a s s = " u i - d a t e p i c k e r - y e a r " > ' + j + " < / s p a n > " ; e l s e { m = t h i s . _ g e t ( b , " y e a r R a n g e " ) . s p l i t ( " : " ) ; v a r   x = ( n e w   D a t e ) . g e t F u l l Y e a r ( ) ; k = f u n c t i o n ( z ) { z = z . m a t c h ( / c [ + - ] . * / ) ? j + p a r s e I n t ( z . s u b s t r i n g ( 1 ) , 1 0 ) : z . m a t c h ( / [ + - ] . * / ) ? x + p a r s e I n t ( z , 1 0 ) : p a r s e I n t ( z , 1 0 ) ; r e t u r n   i s N a N ( z ) ? 
 x : z } ; h = k ( m [ 0 ] ) ; m = M a t h . m a x ( h , k ( m [ 1 ] | | " " ) ) ; h = l ? M a t h . m a x ( h , l . g e t F u l l Y e a r ( ) ) : h ; m = o ? M a t h . m i n ( m , o . g e t F u l l Y e a r ( ) ) : m ; f o r ( b . y e a r s h t m l + = ' < s e l e c t   c l a s s = " u i - d a t e p i c k e r - y e a r "   o n c h a n g e = " D P _ j Q u e r y _ ' + e + " . d a t e p i c k e r . _ s e l e c t M o n t h Y e a r ( ' # " + b . i d + " ' ,   t h i s ,   ' Y ' ) ; \ "   o n c l i c k = \ " D P _ j Q u e r y _ " + e + " . d a t e p i c k e r . _ c l i c k M o n t h Y e a r ( ' # " + b . i d + " ' ) ; \ " > " ; h < = m ; h + + ) b . y e a r s h t m l + = ' < o p t i o n   v a l u e = " ' + h + ' " ' + ( h = = j ? '   s e l e c t e d = " s e l e c t e d " ' : " " ) + " > " + h + " < / o p t i o n > " ; b . y e a r s h t m l + = " < / s e l e c t > " ; r + = b . y e a r s h t m l ; b . y e a r s h t m l = n u l l } } r + = t h i s . _ g e t ( b , " y e a r S u f f i x " ) ; i f ( s ) r + = 
 ( n | | ! ( p & & q ) ? " & # x a 0 ; " : " " ) + u ; r + = " < / d i v > " ; r e t u r n   r } , _ a d j u s t I n s t D a t e : f u n c t i o n ( b , h , j ) { v a r   l = b . d r a w Y e a r + ( j = = " Y " ? h : 0 ) , o = b . d r a w M o n t h + ( j = = " M " ? h : 0 ) ; h = M a t h . m i n ( b . s e l e c t e d D a y , t h i s . _ g e t D a y s I n M o n t h ( l , o ) ) + ( j = = " D " ? h : 0 ) ; l = t h i s . _ r e s t r i c t M i n M a x ( b , t h i s . _ d a y l i g h t S a v i n g A d j u s t ( n e w   D a t e ( l , o , h ) ) ) ; b . s e l e c t e d D a y = l . g e t D a t e ( ) ; b . d r a w M o n t h = b . s e l e c t e d M o n t h = l . g e t M o n t h ( ) ; b . d r a w Y e a r = b . s e l e c t e d Y e a r = l . g e t F u l l Y e a r ( ) ; i f ( j = = " M " | | j = = " Y " ) t h i s . _ n o t i f y C h a n g e ( b ) } , _ r e s t r i c t M i n M a x : f u n c t i o n ( b , h ) { v a r   j = t h i s . _ g e t M i n M a x D a t e ( b , " m i n " ) ; b = t h i s . _ g e t M i n M a x D a t e ( b , 
 " m a x " ) ; h = j & & h < j ? j : h ; r e t u r n   h = b & & h > b ? b : h } , _ n o t i f y C h a n g e : f u n c t i o n ( b ) { v a r   h = t h i s . _ g e t ( b , " o n C h a n g e M o n t h Y e a r " ) ; i f ( h ) h . a p p l y ( b . i n p u t ? b . i n p u t [ 0 ] : n u l l , [ b . s e l e c t e d Y e a r , b . s e l e c t e d M o n t h + 1 , b ] ) } , _ g e t N u m b e r O f M o n t h s : f u n c t i o n ( b ) { b = t h i s . _ g e t ( b , " n u m b e r O f M o n t h s " ) ; r e t u r n   b = = n u l l ? [ 1 , 1 ] : t y p e o f   b = = " n u m b e r " ? [ 1 , b ] : b } , _ g e t M i n M a x D a t e : f u n c t i o n ( b , h ) { r e t u r n   t h i s . _ d e t e r m i n e D a t e ( b , t h i s . _ g e t ( b , h + " D a t e " ) , n u l l ) } , _ g e t D a y s I n M o n t h : f u n c t i o n ( b , h ) { r e t u r n   3 2 - t h i s . _ d a y l i g h t S a v i n g A d j u s t ( n e w   D a t e ( b , h , 3 2 ) ) . g e t D a t e ( ) } , _ g e t F i r s t D a y O f M o n t h : f u n c t i o n ( b , 
 h ) { r e t u r n ( n e w   D a t e ( b , h , 1 ) ) . g e t D a y ( ) } , _ c a n A d j u s t M o n t h : f u n c t i o n ( b , h , j , l ) { v a r   o = t h i s . _ g e t N u m b e r O f M o n t h s ( b ) ; j = t h i s . _ d a y l i g h t S a v i n g A d j u s t ( n e w   D a t e ( j , l + ( h < 0 ? h : o [ 0 ] * o [ 1 ] ) , 1 ) ) ; h < 0 & & j . s e t D a t e ( t h i s . _ g e t D a y s I n M o n t h ( j . g e t F u l l Y e a r ( ) , j . g e t M o n t h ( ) ) ) ; r e t u r n   t h i s . _ i s I n R a n g e ( b , j ) } , _ i s I n R a n g e : f u n c t i o n ( b , h ) { v a r   j = t h i s . _ g e t M i n M a x D a t e ( b , " m i n " ) ; b = t h i s . _ g e t M i n M a x D a t e ( b , " m a x " ) ; r e t u r n ( ! j | | h . g e t T i m e ( ) > = j . g e t T i m e ( ) ) & & ( ! b | | h . g e t T i m e ( ) < = b . g e t T i m e ( ) ) } , _ g e t F o r m a t C o n f i g : f u n c t i o n ( b ) { v a r   h = t h i s . _ g e t ( b , " s h o r t Y e a r C u t o f f " ) ; h = t y p e o f   h ! = 
 " s t r i n g " ? h : ( n e w   D a t e ) . g e t F u l l Y e a r ( ) % 1 0 0 + p a r s e I n t ( h , 1 0 ) ; r e t u r n { s h o r t Y e a r C u t o f f : h , d a y N a m e s S h o r t : t h i s . _ g e t ( b , " d a y N a m e s S h o r t " ) , d a y N a m e s : t h i s . _ g e t ( b , " d a y N a m e s " ) , m o n t h N a m e s S h o r t : t h i s . _ g e t ( b , " m o n t h N a m e s S h o r t " ) , m o n t h N a m e s : t h i s . _ g e t ( b , " m o n t h N a m e s " ) } } , _ f o r m a t D a t e : f u n c t i o n ( b , h , j , l ) { i f ( ! h ) { b . c u r r e n t D a y = b . s e l e c t e d D a y ; b . c u r r e n t M o n t h = b . s e l e c t e d M o n t h ; b . c u r r e n t Y e a r = b . s e l e c t e d Y e a r } h = h ? t y p e o f   h = = " o b j e c t " ? h : t h i s . _ d a y l i g h t S a v i n g A d j u s t ( n e w   D a t e ( l , j , h ) ) : t h i s . _ d a y l i g h t S a v i n g A d j u s t ( n e w   D a t e ( b . c u r r e n t Y e a r , b . c u r r e n t M o n t h , b . c u r r e n t D a y ) ) ; 
 r e t u r n   t h i s . f o r m a t D a t e ( t h i s . _ g e t ( b , " d a t e F o r m a t " ) , h , t h i s . _ g e t F o r m a t C o n f i g ( b ) ) } } ) ; a . f n . d a t e p i c k e r = f u n c t i o n ( b ) { i f ( ! t h i s . l e n g t h ) r e t u r n   t h i s ; i f ( ! a . d a t e p i c k e r . i n i t i a l i z e d ) { a ( d o c u m e n t ) . m o u s e d o w n ( a . d a t e p i c k e r . _ c h e c k E x t e r n a l C l i c k ) . f i n d ( " b o d y " ) . a p p e n d ( a . d a t e p i c k e r . d p D i v ) ; a . d a t e p i c k e r . i n i t i a l i z e d = t r u e } v a r   h = A r r a y . p r o t o t y p e . s l i c e . c a l l ( a r g u m e n t s , 1 ) ; i f ( t y p e o f   b = = " s t r i n g " & & ( b = = " i s D i s a b l e d " | | b = = " g e t D a t e " | | b = = " w i d g e t " ) ) r e t u r n   a . d a t e p i c k e r [ " _ " + b + " D a t e p i c k e r " ] . a p p l y ( a . d a t e p i c k e r , [ t h i s [ 0 ] ] . c o n c a t ( h ) ) ; i f ( b = = " o p t i o n " & & 
 a r g u m e n t s . l e n g t h = = 2 & & t y p e o f   a r g u m e n t s [ 1 ] = = " s t r i n g " ) r e t u r n   a . d a t e p i c k e r [ " _ " + b + " D a t e p i c k e r " ] . a p p l y ( a . d a t e p i c k e r , [ t h i s [ 0 ] ] . c o n c a t ( h ) ) ; r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { t y p e o f   b = = " s t r i n g " ? a . d a t e p i c k e r [ " _ " + b + " D a t e p i c k e r " ] . a p p l y ( a . d a t e p i c k e r , [ t h i s ] . c o n c a t ( h ) ) : a . d a t e p i c k e r . _ a t t a c h D a t e p i c k e r ( t h i s , b ) } ) } ; a . d a t e p i c k e r = n e w   c ; a . d a t e p i c k e r . i n i t i a l i z e d = f a l s e ; a . d a t e p i c k e r . u u i d = ( n e w   D a t e ) . g e t T i m e ( ) ; a . d a t e p i c k e r . v e r s i o n = " 1 . 8 . 1 3 " ; w i n d o w [ " D P _ j Q u e r y _ " + e ] = a } ) ( j Q u e r y ) ; 
 ( f u n c t i o n ( a , d ) { v a r   c = { b u t t o n s : t r u e , h e i g h t : t r u e , m a x H e i g h t : t r u e , m a x W i d t h : t r u e , m i n H e i g h t : t r u e , m i n W i d t h : t r u e , w i d t h : t r u e } , f = { m a x H e i g h t : t r u e , m a x W i d t h : t r u e , m i n H e i g h t : t r u e , m i n W i d t h : t r u e } , g = a . a t t r F n | | { v a l : t r u e , c s s : t r u e , h t m l : t r u e , t e x t : t r u e , d a t a : t r u e , w i d t h : t r u e , h e i g h t : t r u e , o f f s e t : t r u e , c l i c k : t r u e } ; a . w i d g e t ( " u i . d i a l o g " , { o p t i o n s : { a u t o O p e n : t r u e , b u t t o n s : { } , c l o s e O n E s c a p e : t r u e , c l o s e T e x t : " c l o s e " , d i a l o g C l a s s : " " , d r a g g a b l e : t r u e , h i d e : n u l l , h e i g h t : " a u t o " , m a x H e i g h t : f a l s e , m a x W i d t h : f a l s e , m i n H e i g h t : 1 5 0 , m i n W i d t h : 1 5 0 , m o d a l : f a l s e , 
 p o s i t i o n : { m y : " c e n t e r " , a t : " c e n t e r " , c o l l i s i o n : " f i t " , u s i n g : f u n c t i o n ( e ) { v a r   i = a ( t h i s ) . c s s ( e ) . o f f s e t ( ) . t o p ; i < 0 & & a ( t h i s ) . c s s ( " t o p " , e . t o p - i ) } } , r e s i z a b l e : t r u e , s h o w : n u l l , s t a c k : t r u e , t i t l e : " " , w i d t h : 3 0 0 , z I n d e x : 1 E 3 } , _ c r e a t e : f u n c t i o n ( ) { t h i s . o r i g i n a l T i t l e = t h i s . e l e m e n t . a t t r ( " t i t l e " ) ; i f ( t y p e o f   t h i s . o r i g i n a l T i t l e ! = = " s t r i n g " ) t h i s . o r i g i n a l T i t l e = " " ; t h i s . o p t i o n s . t i t l e = t h i s . o p t i o n s . t i t l e | | t h i s . o r i g i n a l T i t l e ; v a r   e = t h i s , i = e . o p t i o n s , b = i . t i t l e | | " & # 1 6 0 ; " , h = a . u i . d i a l o g . g e t T i t l e I d ( e . e l e m e n t ) , j = ( e . u i D i a l o g = a ( " < d i v > < / d i v > " ) ) . a p p e n d T o ( d o c u m e n t . b o d y ) . h i d e ( ) . a d d C l a s s ( " u i - d i a l o g   u i - w i d g e t   u i - w i d g e t - c o n t e n t   u i - c o r n e r - a l l   " + 
 i . d i a l o g C l a s s ) . c s s ( { z I n d e x : i . z I n d e x } ) . a t t r ( " t a b I n d e x " , - 1 ) . c s s ( " o u t l i n e " , 0 ) . k e y d o w n ( f u n c t i o n ( n ) { i f ( i . c l o s e O n E s c a p e & & n . k e y C o d e & & n . k e y C o d e = = = a . u i . k e y C o d e . E S C A P E ) { e . c l o s e ( n ) ; n . p r e v e n t D e f a u l t ( ) } } ) . a t t r ( { r o l e : " d i a l o g " , " a r i a - l a b e l l e d b y " : h } ) . m o u s e d o w n ( f u n c t i o n ( n ) { e . m o v e T o T o p ( f a l s e , n ) } ) ; e . e l e m e n t . s h o w ( ) . r e m o v e A t t r ( " t i t l e " ) . a d d C l a s s ( " u i - d i a l o g - c o n t e n t   u i - w i d g e t - c o n t e n t " ) . a p p e n d T o ( j ) ; v a r   l = ( e . u i D i a l o g T i t l e b a r = a ( " < d i v > < / d i v > " ) ) . a d d C l a s s ( " u i - d i a l o g - t i t l e b a r   u i - w i d g e t - h e a d e r   u i - c o r n e r - a l l   u i - h e l p e r - c l e a r f i x " ) . p r e p e n d T o ( j ) , 
 o = a ( ' < a   h r e f = " # " > < / a > ' ) . a d d C l a s s ( " u i - d i a l o g - t i t l e b a r - c l o s e   u i - c o r n e r - a l l " ) . a t t r ( " r o l e " , " b u t t o n " ) . h o v e r ( f u n c t i o n ( ) { o . a d d C l a s s ( " u i - s t a t e - h o v e r " ) } , f u n c t i o n ( ) { o . r e m o v e C l a s s ( " u i - s t a t e - h o v e r " ) } ) . f o c u s ( f u n c t i o n ( ) { o . a d d C l a s s ( " u i - s t a t e - f o c u s " ) } ) . b l u r ( f u n c t i o n ( ) { o . r e m o v e C l a s s ( " u i - s t a t e - f o c u s " ) } ) . c l i c k ( f u n c t i o n ( n ) { e . c l o s e ( n ) ; r e t u r n   f a l s e } ) . a p p e n d T o ( l ) ; ( e . u i D i a l o g T i t l e b a r C l o s e T e x t = a ( " < s p a n > < / s p a n > " ) ) . a d d C l a s s ( " u i - i c o n   u i - i c o n - c l o s e t h i c k " ) . t e x t ( i . c l o s e T e x t ) . a p p e n d T o ( o ) ; a ( " < s p a n > < / s p a n > " ) . a d d C l a s s ( " u i - d i a l o g - t i t l e " ) . a t t r ( " i d " , 
 h ) . h t m l ( b ) . p r e p e n d T o ( l ) ; i f ( a . i s F u n c t i o n ( i . b e f o r e c l o s e ) & & ! a . i s F u n c t i o n ( i . b e f o r e C l o s e ) ) i . b e f o r e C l o s e = i . b e f o r e c l o s e ; l . f i n d ( " * " ) . a d d ( l ) . d i s a b l e S e l e c t i o n ( ) ; i . d r a g g a b l e & & a . f n . d r a g g a b l e & & e . _ m a k e D r a g g a b l e ( ) ; i . r e s i z a b l e & & a . f n . r e s i z a b l e & & e . _ m a k e R e s i z a b l e ( ) ; e . _ c r e a t e B u t t o n s ( i . b u t t o n s ) ; e . _ i s O p e n = f a l s e ; a . f n . b g i f r a m e & & j . b g i f r a m e ( ) } , _ i n i t : f u n c t i o n ( ) { t h i s . o p t i o n s . a u t o O p e n & & t h i s . o p e n ( ) } , d e s t r o y : f u n c t i o n ( ) { v a r   e = t h i s ; e . o v e r l a y & & e . o v e r l a y . d e s t r o y ( ) ; e . u i D i a l o g . h i d e ( ) ; e . e l e m e n t . u n b i n d ( " . d i a l o g " ) . r e m o v e D a t a ( " d i a l o g " ) . r e m o v e C l a s s ( " u i - d i a l o g - c o n t e n t   u i - w i d g e t - c o n t e n t " ) . h i d e ( ) . a p p e n d T o ( " b o d y " ) ; 
 e . u i D i a l o g . r e m o v e ( ) ; e . o r i g i n a l T i t l e & & e . e l e m e n t . a t t r ( " t i t l e " , e . o r i g i n a l T i t l e ) ; r e t u r n   e } , w i d g e t : f u n c t i o n ( ) { r e t u r n   t h i s . u i D i a l o g } , c l o s e : f u n c t i o n ( e ) { v a r   i = t h i s , b , h ; i f ( f a l s e ! = = i . _ t r i g g e r ( " b e f o r e C l o s e " , e ) ) { i . o v e r l a y & & i . o v e r l a y . d e s t r o y ( ) ; i . u i D i a l o g . u n b i n d ( " k e y p r e s s . u i - d i a l o g " ) ; i . _ i s O p e n = f a l s e ; i f ( i . o p t i o n s . h i d e ) i . u i D i a l o g . h i d e ( i . o p t i o n s . h i d e , f u n c t i o n ( ) { i . _ t r i g g e r ( " c l o s e " , e ) } ) ; e l s e { i . u i D i a l o g . h i d e ( ) ; i . _ t r i g g e r ( " c l o s e " , e ) } a . u i . d i a l o g . o v e r l a y . r e s i z e ( ) ; i f ( i . o p t i o n s . m o d a l ) { b = 0 ; a ( " . u i - d i a l o g " ) . e a c h ( f u n c t i o n ( ) { i f ( t h i s ! = = 
 i . u i D i a l o g [ 0 ] ) { h = a ( t h i s ) . c s s ( " z - i n d e x " ) ; i s N a N ( h ) | | ( b = M a t h . m a x ( b , h ) ) } } ) ; a . u i . d i a l o g . m a x Z = b } r e t u r n   i } } , i s O p e n : f u n c t i o n ( ) { r e t u r n   t h i s . _ i s O p e n } , m o v e T o T o p : f u n c t i o n ( e , i ) { v a r   b = t h i s , h = b . o p t i o n s ; i f ( h . m o d a l & & ! e | | ! h . s t a c k & & ! h . m o d a l ) r e t u r n   b . _ t r i g g e r ( " f o c u s " , i ) ; i f ( h . z I n d e x > a . u i . d i a l o g . m a x Z ) a . u i . d i a l o g . m a x Z = h . z I n d e x ; i f ( b . o v e r l a y ) { a . u i . d i a l o g . m a x Z + = 1 ; b . o v e r l a y . $ e l . c s s ( " z - i n d e x " , a . u i . d i a l o g . o v e r l a y . m a x Z = a . u i . d i a l o g . m a x Z ) } e = { s c r o l l T o p : b . e l e m e n t . a t t r ( " s c r o l l T o p " ) , s c r o l l L e f t : b . e l e m e n t . a t t r ( " s c r o l l L e f t " ) } ; a . u i . d i a l o g . m a x Z + = 
 1 ; b . u i D i a l o g . c s s ( " z - i n d e x " , a . u i . d i a l o g . m a x Z ) ; b . e l e m e n t . a t t r ( e ) ; b . _ t r i g g e r ( " f o c u s " , i ) ; r e t u r n   b } , o p e n : f u n c t i o n ( ) { i f ( ! t h i s . _ i s O p e n ) { v a r   e = t h i s , i = e . o p t i o n s , b = e . u i D i a l o g ; e . o v e r l a y = i . m o d a l ? n e w   a . u i . d i a l o g . o v e r l a y ( e ) : n u l l ; e . _ s i z e ( ) ; e . _ p o s i t i o n ( i . p o s i t i o n ) ; b . s h o w ( i . s h o w ) ; e . m o v e T o T o p ( t r u e ) ; i . m o d a l & & b . b i n d ( " k e y p r e s s . u i - d i a l o g " , f u n c t i o n ( h ) { i f ( h . k e y C o d e = = = a . u i . k e y C o d e . T A B ) { v a r   j = a ( " : t a b b a b l e " , t h i s ) , l = j . f i l t e r ( " : f i r s t " ) ; j = j . f i l t e r ( " : l a s t " ) ; i f ( h . t a r g e t = = = j [ 0 ] & & ! h . s h i f t K e y ) { l . f o c u s ( 1 ) ; r e t u r n   f a l s e } e l s e   i f ( h . t a r g e t = = = 
 l [ 0 ] & & h . s h i f t K e y ) { j . f o c u s ( 1 ) ; r e t u r n   f a l s e } } } ) ; a ( e . e l e m e n t . f i n d ( " : t a b b a b l e " ) . g e t ( ) . c o n c a t ( b . f i n d ( " . u i - d i a l o g - b u t t o n p a n e   : t a b b a b l e " ) . g e t ( ) . c o n c a t ( b . g e t ( ) ) ) ) . e q ( 0 ) . f o c u s ( ) ; e . _ i s O p e n = t r u e ; e . _ t r i g g e r ( " o p e n " ) ; r e t u r n   e } } , _ c r e a t e B u t t o n s : f u n c t i o n ( e ) { v a r   i = t h i s , b = f a l s e , h = a ( " < d i v > < / d i v > " ) . a d d C l a s s ( " u i - d i a l o g - b u t t o n p a n e   u i - w i d g e t - c o n t e n t   u i - h e l p e r - c l e a r f i x " ) , j = a ( " < d i v > < / d i v > " ) . a d d C l a s s ( " u i - d i a l o g - b u t t o n s e t " ) . a p p e n d T o ( h ) ; i . u i D i a l o g . f i n d ( " . u i - d i a l o g - b u t t o n p a n e " ) . r e m o v e ( ) ; t y p e o f   e = = = " o b j e c t " & & e ! = = n u l l & & a . e a c h ( e , 
 f u n c t i o n ( ) { r e t u r n ! ( b = t r u e ) } ) ; i f ( b ) { a . e a c h ( e , f u n c t i o n ( l , o ) { o = a . i s F u n c t i o n ( o ) ? { c l i c k : o , t e x t : l } : o ; v a r   n = a ( ' < b u t t o n   t y p e = " b u t t o n " > < / b u t t o n > ' ) . c l i c k ( f u n c t i o n ( ) { o . c l i c k . a p p l y ( i . e l e m e n t [ 0 ] , a r g u m e n t s ) } ) . a p p e n d T o ( j ) ; a . e a c h ( o , f u n c t i o n ( k , m ) { i f ( k ! = = " c l i c k " ) k   i n   g ? n [ k ] ( m ) : n . a t t r ( k , m ) } ) ; a . f n . b u t t o n & & n . b u t t o n ( ) } ) ; h . a p p e n d T o ( i . u i D i a l o g ) } } , _ m a k e D r a g g a b l e : f u n c t i o n ( ) { f u n c t i o n   e ( l ) { r e t u r n { p o s i t i o n : l . p o s i t i o n , o f f s e t : l . o f f s e t } } v a r   i = t h i s , b = i . o p t i o n s , h = a ( d o c u m e n t ) , j ; i . u i D i a l o g . d r a g g a b l e ( { c a n c e l : " . u i - d i a l o g - c o n t e n t ,   . u i - d i a l o g - t i t l e b a r - c l o s e " , 
 h a n d l e : " . u i - d i a l o g - t i t l e b a r " , c o n t a i n m e n t : " d o c u m e n t " , s t a r t : f u n c t i o n ( l , o ) { j = b . h e i g h t = = = " a u t o " ? " a u t o " : a ( t h i s ) . h e i g h t ( ) ; a ( t h i s ) . h e i g h t ( a ( t h i s ) . h e i g h t ( ) ) . a d d C l a s s ( " u i - d i a l o g - d r a g g i n g " ) ; i . _ t r i g g e r ( " d r a g S t a r t " , l , e ( o ) ) } , d r a g : f u n c t i o n ( l , o ) { i . _ t r i g g e r ( " d r a g " , l , e ( o ) ) } , s t o p : f u n c t i o n ( l , o ) { b . p o s i t i o n = [ o . p o s i t i o n . l e f t - h . s c r o l l L e f t ( ) , o . p o s i t i o n . t o p - h . s c r o l l T o p ( ) ] ; a ( t h i s ) . r e m o v e C l a s s ( " u i - d i a l o g - d r a g g i n g " ) . h e i g h t ( j ) ; i . _ t r i g g e r ( " d r a g S t o p " , l , e ( o ) ) ; a . u i . d i a l o g . o v e r l a y . r e s i z e ( ) } } ) } , _ m a k e R e s i z a b l e : f u n c t i o n ( e ) { f u n c t i o n   i ( l ) { r e t u r n { o r i g i n a l P o s i t i o n : l . o r i g i n a l P o s i t i o n , 
 o r i g i n a l S i z e : l . o r i g i n a l S i z e , p o s i t i o n : l . p o s i t i o n , s i z e : l . s i z e } } e = e = = = d ? t h i s . o p t i o n s . r e s i z a b l e : e ; v a r   b = t h i s , h = b . o p t i o n s , j = b . u i D i a l o g . c s s ( " p o s i t i o n " ) ; e = t y p e o f   e = = = " s t r i n g " ? e : " n , e , s , w , s e , s w , n e , n w " ; b . u i D i a l o g . r e s i z a b l e ( { c a n c e l : " . u i - d i a l o g - c o n t e n t " , c o n t a i n m e n t : " d o c u m e n t " , a l s o R e s i z e : b . e l e m e n t , m a x W i d t h : h . m a x W i d t h , m a x H e i g h t : h . m a x H e i g h t , m i n W i d t h : h . m i n W i d t h , m i n H e i g h t : b . _ m i n H e i g h t ( ) , h a n d l e s : e , s t a r t : f u n c t i o n ( l , o ) { a ( t h i s ) . a d d C l a s s ( " u i - d i a l o g - r e s i z i n g " ) ; b . _ t r i g g e r ( " r e s i z e S t a r t " , l , i ( o ) ) } , r e s i z e : f u n c t i o n ( l , o ) { b . _ t r i g g e r ( " r e s i z e " , 
 l , i ( o ) ) } , s t o p : f u n c t i o n ( l , o ) { a ( t h i s ) . r e m o v e C l a s s ( " u i - d i a l o g - r e s i z i n g " ) ; h . h e i g h t = a ( t h i s ) . h e i g h t ( ) ; h . w i d t h = a ( t h i s ) . w i d t h ( ) ; b . _ t r i g g e r ( " r e s i z e S t o p " , l , i ( o ) ) ; a . u i . d i a l o g . o v e r l a y . r e s i z e ( ) } } ) . c s s ( " p o s i t i o n " , j ) . f i n d ( " . u i - r e s i z a b l e - s e " ) . a d d C l a s s ( " u i - i c o n   u i - i c o n - g r i p - d i a g o n a l - s e " ) } , _ m i n H e i g h t : f u n c t i o n ( ) { v a r   e = t h i s . o p t i o n s ; r e t u r n   e . h e i g h t = = = " a u t o " ? e . m i n H e i g h t : M a t h . m i n ( e . m i n H e i g h t , e . h e i g h t ) } , _ p o s i t i o n : f u n c t i o n ( e ) { v a r   i = [ ] , b = [ 0 , 0 ] , h ; i f ( e ) { i f ( t y p e o f   e = = = " s t r i n g " | | t y p e o f   e = = = " o b j e c t " & & " 0 " i n   e ) { i = e . s p l i t ? e . s p l i t ( "   " ) : 
 [ e [ 0 ] , e [ 1 ] ] ; i f ( i . l e n g t h = = = 1 ) i [ 1 ] = i [ 0 ] ; a . e a c h ( [ " l e f t " , " t o p " ] , f u n c t i o n ( j , l ) { i f ( + i [ j ] = = = i [ j ] ) { b [ j ] = i [ j ] ; i [ j ] = l } } ) ; e = { m y : i . j o i n ( "   " ) , a t : i . j o i n ( "   " ) , o f f s e t : b . j o i n ( "   " ) } } e = a . e x t e n d ( { } , a . u i . d i a l o g . p r o t o t y p e . o p t i o n s . p o s i t i o n , e ) } e l s e   e = a . u i . d i a l o g . p r o t o t y p e . o p t i o n s . p o s i t i o n ; ( h = t h i s . u i D i a l o g . i s ( " : v i s i b l e " ) ) | | t h i s . u i D i a l o g . s h o w ( ) ; t h i s . u i D i a l o g . c s s ( { t o p : 0 , l e f t : 0 } ) . p o s i t i o n ( a . e x t e n d ( { o f : w i n d o w } , e ) ) ; h | | t h i s . u i D i a l o g . h i d e ( ) } , _ s e t O p t i o n s : f u n c t i o n ( e ) { v a r   i = t h i s , b = { } , h = f a l s e ; a . e a c h ( e , f u n c t i o n ( j , l ) { i . _ s e t O p t i o n ( j , l ) ; 
 i f ( j   i n   c ) h = t r u e ; i f ( j   i n   f ) b [ j ] = l } ) ; h & & t h i s . _ s i z e ( ) ; t h i s . u i D i a l o g . i s ( " : d a t a ( r e s i z a b l e ) " ) & & t h i s . u i D i a l o g . r e s i z a b l e ( " o p t i o n " , b ) } , _ s e t O p t i o n : f u n c t i o n ( e , i ) { v a r   b = t h i s , h = b . u i D i a l o g ; s w i t c h ( e ) { c a s e   " b e f o r e c l o s e " : e = " b e f o r e C l o s e " ; b r e a k ; c a s e   " b u t t o n s " : b . _ c r e a t e B u t t o n s ( i ) ; b r e a k ; c a s e   " c l o s e T e x t " : b . u i D i a l o g T i t l e b a r C l o s e T e x t . t e x t ( " " + i ) ; b r e a k ; c a s e   " d i a l o g C l a s s " : h . r e m o v e C l a s s ( b . o p t i o n s . d i a l o g C l a s s ) . a d d C l a s s ( " u i - d i a l o g   u i - w i d g e t   u i - w i d g e t - c o n t e n t   u i - c o r n e r - a l l   " + i ) ; b r e a k ; c a s e   " d i s a b l e d " : i ? h . a d d C l a s s ( " u i - d i a l o g - d i s a b l e d " ) : 
 h . r e m o v e C l a s s ( " u i - d i a l o g - d i s a b l e d " ) ; b r e a k ; c a s e   " d r a g g a b l e " : v a r   j = h . i s ( " : d a t a ( d r a g g a b l e ) " ) ; j & & ! i & & h . d r a g g a b l e ( " d e s t r o y " ) ; ! j & & i & & b . _ m a k e D r a g g a b l e ( ) ; b r e a k ; c a s e   " p o s i t i o n " : b . _ p o s i t i o n ( i ) ; b r e a k ; c a s e   " r e s i z a b l e " : ( j = h . i s ( " : d a t a ( r e s i z a b l e ) " ) ) & & ! i & & h . r e s i z a b l e ( " d e s t r o y " ) ; j & & t y p e o f   i = = = " s t r i n g " & & h . r e s i z a b l e ( " o p t i o n " , " h a n d l e s " , i ) ; ! j & & i ! = = f a l s e & & b . _ m a k e R e s i z a b l e ( i ) ; b r e a k ; c a s e   " t i t l e " : a ( " . u i - d i a l o g - t i t l e " , b . u i D i a l o g T i t l e b a r ) . h t m l ( " " + ( i | | " & # 1 6 0 ; " ) ) ; b r e a k } a . W i d g e t . p r o t o t y p e . _ s e t O p t i o n . a p p l y ( b , a r g u m e n t s ) } , _ s i z e : f u n c t i o n ( ) { v a r   e = 
 t h i s . o p t i o n s , i , b , h = t h i s . u i D i a l o g . i s ( " : v i s i b l e " ) ; t h i s . e l e m e n t . s h o w ( ) . c s s ( { w i d t h : " a u t o " , m i n H e i g h t : 0 , h e i g h t : 0 } ) ; i f ( e . m i n W i d t h > e . w i d t h ) e . w i d t h = e . m i n W i d t h ; i = t h i s . u i D i a l o g . c s s ( { h e i g h t : " a u t o " , w i d t h : e . w i d t h } ) . h e i g h t ( ) ; b = M a t h . m a x ( 0 , e . m i n H e i g h t - i ) ; i f ( e . h e i g h t = = = " a u t o " ) i f ( a . s u p p o r t . m i n H e i g h t ) t h i s . e l e m e n t . c s s ( { m i n H e i g h t : b , h e i g h t : " a u t o " } ) ; e l s e { t h i s . u i D i a l o g . s h o w ( ) ; e = t h i s . e l e m e n t . c s s ( " h e i g h t " , " a u t o " ) . h e i g h t ( ) ; h | | t h i s . u i D i a l o g . h i d e ( ) ; t h i s . e l e m e n t . h e i g h t ( M a t h . m a x ( e , b ) ) } e l s e   t h i s . e l e m e n t . h e i g h t ( M a t h . m a x ( e . h e i g h t - 
 i , 0 ) ) ; t h i s . u i D i a l o g . i s ( " : d a t a ( r e s i z a b l e ) " ) & & t h i s . u i D i a l o g . r e s i z a b l e ( " o p t i o n " , " m i n H e i g h t " , t h i s . _ m i n H e i g h t ( ) ) } } ) ; a . e x t e n d ( a . u i . d i a l o g , { v e r s i o n : " 1 . 8 . 1 3 " , u u i d : 0 , m a x Z : 0 , g e t T i t l e I d : f u n c t i o n ( e ) { e = e . a t t r ( " i d " ) ; i f ( ! e ) { t h i s . u u i d + = 1 ; e = t h i s . u u i d } r e t u r n " u i - d i a l o g - t i t l e - " + e } , o v e r l a y : f u n c t i o n ( e ) { t h i s . $ e l = a . u i . d i a l o g . o v e r l a y . c r e a t e ( e ) } } ) ; a . e x t e n d ( a . u i . d i a l o g . o v e r l a y , { i n s t a n c e s : [ ] , o l d I n s t a n c e s : [ ] , m a x Z : 0 , e v e n t s : a . m a p ( " f o c u s , m o u s e d o w n , m o u s e u p , k e y d o w n , k e y p r e s s , c l i c k " . s p l i t ( " , " ) , f u n c t i o n ( e ) { r e t u r n   e + " . d i a l o g - o v e r l a y " } ) . j o i n ( "   " ) , 
 c r e a t e : f u n c t i o n ( e ) { i f ( t h i s . i n s t a n c e s . l e n g t h = = = 0 ) { s e t T i m e o u t ( f u n c t i o n ( ) { a . u i . d i a l o g . o v e r l a y . i n s t a n c e s . l e n g t h & & a ( d o c u m e n t ) . b i n d ( a . u i . d i a l o g . o v e r l a y . e v e n t s , f u n c t i o n ( b ) { i f ( a ( b . t a r g e t ) . z I n d e x ( ) < a . u i . d i a l o g . o v e r l a y . m a x Z ) r e t u r n   f a l s e } ) } , 1 ) ; a ( d o c u m e n t ) . b i n d ( " k e y d o w n . d i a l o g - o v e r l a y " , f u n c t i o n ( b ) { i f ( e . o p t i o n s . c l o s e O n E s c a p e & & b . k e y C o d e & & b . k e y C o d e = = = a . u i . k e y C o d e . E S C A P E ) { e . c l o s e ( b ) ; b . p r e v e n t D e f a u l t ( ) } } ) ; a ( w i n d o w ) . b i n d ( " r e s i z e . d i a l o g - o v e r l a y " , a . u i . d i a l o g . o v e r l a y . r e s i z e ) } v a r   i = ( t h i s . o l d I n s t a n c e s . p o p ( ) | | a ( " < d i v > < / d i v > " ) . a d d C l a s s ( " u i - w i d g e t - o v e r l a y " ) ) . a p p e n d T o ( d o c u m e n t . b o d y ) . c s s ( { w i d t h : t h i s . w i d t h ( ) , 
 h e i g h t : t h i s . h e i g h t ( ) } ) ; a . f n . b g i f r a m e & & i . b g i f r a m e ( ) ; t h i s . i n s t a n c e s . p u s h ( i ) ; r e t u r n   i } , d e s t r o y : f u n c t i o n ( e ) { v a r   i = a . i n A r r a y ( e , t h i s . i n s t a n c e s ) ; i ! = - 1 & & t h i s . o l d I n s t a n c e s . p u s h ( t h i s . i n s t a n c e s . s p l i c e ( i , 1 ) [ 0 ] ) ; t h i s . i n s t a n c e s . l e n g t h = = = 0 & & a ( [ d o c u m e n t , w i n d o w ] ) . u n b i n d ( " . d i a l o g - o v e r l a y " ) ; e . r e m o v e ( ) ; v a r   b = 0 ; a . e a c h ( t h i s . i n s t a n c e s , f u n c t i o n ( ) { b = M a t h . m a x ( b , t h i s . c s s ( " z - i n d e x " ) ) } ) ; t h i s . m a x Z = b } , h e i g h t : f u n c t i o n ( ) { v a r   e , i ; i f ( a . b r o w s e r . m s i e & & a . b r o w s e r . v e r s i o n < 7 ) { e = M a t h . m a x ( d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l H e i g h t , d o c u m e n t . b o d y . s c r o l l H e i g h t ) ; 
 i = M a t h . m a x ( d o c u m e n t . d o c u m e n t E l e m e n t . o f f s e t H e i g h t , d o c u m e n t . b o d y . o f f s e t H e i g h t ) ; r e t u r n   e < i ? a ( w i n d o w ) . h e i g h t ( ) + " p x " : e + " p x " } e l s e   r e t u r n   a ( d o c u m e n t ) . h e i g h t ( ) + " p x " } , w i d t h : f u n c t i o n ( ) { v a r   e , i ; i f ( a . b r o w s e r . m s i e & & a . b r o w s e r . v e r s i o n < 7 ) { e = M a t h . m a x ( d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l W i d t h , d o c u m e n t . b o d y . s c r o l l W i d t h ) ; i = M a t h . m a x ( d o c u m e n t . d o c u m e n t E l e m e n t . o f f s e t W i d t h , d o c u m e n t . b o d y . o f f s e t W i d t h ) ; r e t u r n   e < i ? a ( w i n d o w ) . w i d t h ( ) + " p x " : e + " p x " } e l s e   r e t u r n   a ( d o c u m e n t ) . w i d t h ( ) + " p x " } , r e s i z e : f u n c t i o n ( ) { v a r   e = a ( [ ] ) ; a . e a c h ( a . u i . d i a l o g . o v e r l a y . i n s t a n c e s , 
 f u n c t i o n ( ) { e = e . a d d ( t h i s ) } ) ; e . c s s ( { w i d t h : 0 , h e i g h t : 0 } ) . c s s ( { w i d t h : a . u i . d i a l o g . o v e r l a y . w i d t h ( ) , h e i g h t : a . u i . d i a l o g . o v e r l a y . h e i g h t ( ) } ) } } ) ; a . e x t e n d ( a . u i . d i a l o g . o v e r l a y . p r o t o t y p e , { d e s t r o y : f u n c t i o n ( ) { a . u i . d i a l o g . o v e r l a y . d e s t r o y ( t h i s . $ e l ) } } ) } ) ( j Q u e r y ) ; 
 ( f u n c t i o n ( a ) { a . u i = a . u i | | { } ; v a r   d = / l e f t | c e n t e r | r i g h t / , c = / t o p | c e n t e r | b o t t o m / , f = a . f n . p o s i t i o n , g = a . f n . o f f s e t ; a . f n . p o s i t i o n = f u n c t i o n ( e ) { i f ( ! e | | ! e . o f ) r e t u r n   f . a p p l y ( t h i s , a r g u m e n t s ) ; e = a . e x t e n d ( { } , e ) ; v a r   i = a ( e . o f ) , b = i [ 0 ] , h = ( e . c o l l i s i o n | | " f l i p " ) . s p l i t ( "   " ) , j = e . o f f s e t ? e . o f f s e t . s p l i t ( "   " ) : [ 0 , 0 ] , l , o , n ; i f ( b . n o d e T y p e = = = 9 ) { l = i . w i d t h ( ) ; o = i . h e i g h t ( ) ; n = { t o p : 0 , l e f t : 0 } } e l s e   i f ( b . s e t T i m e o u t ) { l = i . w i d t h ( ) ; o = i . h e i g h t ( ) ; n = { t o p : i . s c r o l l T o p ( ) , l e f t : i . s c r o l l L e f t ( ) } } e l s e   i f ( b . p r e v e n t D e f a u l t ) { e . a t = " l e f t   t o p " ; l = o = 0 ; n = { t o p : e . o f . p a g e Y , 
 l e f t : e . o f . p a g e X } } e l s e { l = i . o u t e r W i d t h ( ) ; o = i . o u t e r H e i g h t ( ) ; n = i . o f f s e t ( ) } a . e a c h ( [ " m y " , " a t " ] , f u n c t i o n ( ) { v a r   k = ( e [ t h i s ] | | " " ) . s p l i t ( "   " ) ; i f ( k . l e n g t h = = = 1 ) k = d . t e s t ( k [ 0 ] ) ? k . c o n c a t ( [ " c e n t e r " ] ) : c . t e s t ( k [ 0 ] ) ? [ " c e n t e r " ] . c o n c a t ( k ) : [ " c e n t e r " , " c e n t e r " ] ; k [ 0 ] = d . t e s t ( k [ 0 ] ) ? k [ 0 ] : " c e n t e r " ; k [ 1 ] = c . t e s t ( k [ 1 ] ) ? k [ 1 ] : " c e n t e r " ; e [ t h i s ] = k } ) ; i f ( h . l e n g t h = = = 1 ) h [ 1 ] = h [ 0 ] ; j [ 0 ] = p a r s e I n t ( j [ 0 ] , 1 0 ) | | 0 ; i f ( j . l e n g t h = = = 1 ) j [ 1 ] = j [ 0 ] ; j [ 1 ] = p a r s e I n t ( j [ 1 ] , 1 0 ) | | 0 ; i f ( e . a t [ 0 ] = = = " r i g h t " ) n . l e f t + = l ; e l s e   i f ( e . a t [ 0 ] = = = " c e n t e r " ) n . l e f t + = l / 2 ; i f ( e . a t [ 1 ] = = = " b o t t o m " ) n . t o p + = 
 o ; e l s e   i f ( e . a t [ 1 ] = = = " c e n t e r " ) n . t o p + = o / 2 ; n . l e f t + = j [ 0 ] ; n . t o p + = j [ 1 ] ; r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { v a r   k = a ( t h i s ) , m = k . o u t e r W i d t h ( ) , p = k . o u t e r H e i g h t ( ) , q = p a r s e I n t ( a . c u r C S S ( t h i s , " m a r g i n L e f t " , t r u e ) ) | | 0 , s = p a r s e I n t ( a . c u r C S S ( t h i s , " m a r g i n T o p " , t r u e ) ) | | 0 , r = m + q + ( p a r s e I n t ( a . c u r C S S ( t h i s , " m a r g i n R i g h t " , t r u e ) ) | | 0 ) , u = p + s + ( p a r s e I n t ( a . c u r C S S ( t h i s , " m a r g i n B o t t o m " , t r u e ) ) | | 0 ) , v = a . e x t e n d ( { } , n ) , w ; i f ( e . m y [ 0 ] = = = " r i g h t " ) v . l e f t - = m ; e l s e   i f ( e . m y [ 0 ] = = = " c e n t e r " ) v . l e f t - = m / 2 ; i f ( e . m y [ 1 ] = = = " b o t t o m " ) v . t o p - = p ; e l s e   i f ( e . m y [ 1 ] = = = " c e n t e r " ) v . t o p - = 
 p / 2 ; v . l e f t = M a t h . r o u n d ( v . l e f t ) ; v . t o p = M a t h . r o u n d ( v . t o p ) ; w = { l e f t : v . l e f t - q , t o p : v . t o p - s } ; a . e a c h ( [ " l e f t " , " t o p " ] , f u n c t i o n ( x , z ) { a . u i . p o s i t i o n [ h [ x ] ] & & a . u i . p o s i t i o n [ h [ x ] ] [ z ] ( v , { t a r g e t W i d t h : l , t a r g e t H e i g h t : o , e l e m W i d t h : m , e l e m H e i g h t : p , c o l l i s i o n P o s i t i o n : w , c o l l i s i o n W i d t h : r , c o l l i s i o n H e i g h t : u , o f f s e t : j , m y : e . m y , a t : e . a t } ) } ) ; a . f n . b g i f r a m e & & k . b g i f r a m e ( ) ; k . o f f s e t ( a . e x t e n d ( v , { u s i n g : e . u s i n g } ) ) } ) } ; a . u i . p o s i t i o n = { f i t : { l e f t : f u n c t i o n ( e , i ) { v a r   b = a ( w i n d o w ) ; b = i . c o l l i s i o n P o s i t i o n . l e f t + i . c o l l i s i o n W i d t h - b . w i d t h ( ) - b . s c r o l l L e f t ( ) ; e . l e f t = 
 b > 0 ? e . l e f t - b : M a t h . m a x ( e . l e f t - i . c o l l i s i o n P o s i t i o n . l e f t , e . l e f t ) } , t o p : f u n c t i o n ( e , i ) { v a r   b = a ( w i n d o w ) ; b = i . c o l l i s i o n P o s i t i o n . t o p + i . c o l l i s i o n H e i g h t - b . h e i g h t ( ) - b . s c r o l l T o p ( ) ; e . t o p = b > 0 ? e . t o p - b : M a t h . m a x ( e . t o p - i . c o l l i s i o n P o s i t i o n . t o p , e . t o p ) } } , f l i p : { l e f t : f u n c t i o n ( e , i ) { i f ( i . a t [ 0 ] ! = = " c e n t e r " ) { v a r   b = a ( w i n d o w ) ; b = i . c o l l i s i o n P o s i t i o n . l e f t + i . c o l l i s i o n W i d t h - b . w i d t h ( ) - b . s c r o l l L e f t ( ) ; v a r   h = i . m y [ 0 ] = = = " l e f t " ? - i . e l e m W i d t h : i . m y [ 0 ] = = = " r i g h t " ? i . e l e m W i d t h : 0 , j = i . a t [ 0 ] = = = " l e f t " ? i . t a r g e t W i d t h : - i . t a r g e t W i d t h , l = - 2 * i . o f f s e t [ 0 ] ; e . l e f t + = 
 i . c o l l i s i o n P o s i t i o n . l e f t < 0 ? h + j + l : b > 0 ? h + j + l : 0 } } , t o p : f u n c t i o n ( e , i ) { i f ( i . a t [ 1 ] ! = = " c e n t e r " ) { v a r   b = a ( w i n d o w ) ; b = i . c o l l i s i o n P o s i t i o n . t o p + i . c o l l i s i o n H e i g h t - b . h e i g h t ( ) - b . s c r o l l T o p ( ) ; v a r   h = i . m y [ 1 ] = = = " t o p " ? - i . e l e m H e i g h t : i . m y [ 1 ] = = = " b o t t o m " ? i . e l e m H e i g h t : 0 , j = i . a t [ 1 ] = = = " t o p " ? i . t a r g e t H e i g h t : - i . t a r g e t H e i g h t , l = - 2 * i . o f f s e t [ 1 ] ; e . t o p + = i . c o l l i s i o n P o s i t i o n . t o p < 0 ? h + j + l : b > 0 ? h + j + l : 0 } } } } ; i f ( ! a . o f f s e t . s e t O f f s e t ) { a . o f f s e t . s e t O f f s e t = f u n c t i o n ( e , i ) { i f ( / s t a t i c / . t e s t ( a . c u r C S S ( e , " p o s i t i o n " ) ) ) e . s t y l e . p o s i t i o n = " r e l a t i v e " ; v a r   b = a ( e ) , 
 h = b . o f f s e t ( ) , j = p a r s e I n t ( a . c u r C S S ( e , " t o p " , t r u e ) , 1 0 ) | | 0 , l = p a r s e I n t ( a . c u r C S S ( e , " l e f t " , t r u e ) , 1 0 ) | | 0 ; h = { t o p : i . t o p - h . t o p + j , l e f t : i . l e f t - h . l e f t + l } ; " u s i n g " i n   i ? i . u s i n g . c a l l ( e , h ) : b . c s s ( h ) } ; a . f n . o f f s e t = f u n c t i o n ( e ) { v a r   i = t h i s [ 0 ] ; i f ( ! i | | ! i . o w n e r D o c u m e n t ) r e t u r n   n u l l ; i f ( e ) r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { a . o f f s e t . s e t O f f s e t ( t h i s , e ) } ) ; r e t u r n   g . c a l l ( t h i s ) } } } ) ( j Q u e r y ) ; 
 ( f u n c t i o n ( a , d ) { a . w i d g e t ( " u i . p r o g r e s s b a r " , { o p t i o n s : { v a l u e : 0 , m a x : 1 0 0 } , m i n : 0 , _ c r e a t e : f u n c t i o n ( ) { t h i s . e l e m e n t . a d d C l a s s ( " u i - p r o g r e s s b a r   u i - w i d g e t   u i - w i d g e t - c o n t e n t   u i - c o r n e r - a l l " ) . a t t r ( { r o l e : " p r o g r e s s b a r " , " a r i a - v a l u e m i n " : t h i s . m i n , " a r i a - v a l u e m a x " : t h i s . o p t i o n s . m a x , " a r i a - v a l u e n o w " : t h i s . _ v a l u e ( ) } ) ; t h i s . v a l u e D i v = a ( " < d i v   c l a s s = ' u i - p r o g r e s s b a r - v a l u e   u i - w i d g e t - h e a d e r   u i - c o r n e r - l e f t ' > < / d i v > " ) . a p p e n d T o ( t h i s . e l e m e n t ) ; t h i s . o l d V a l u e = t h i s . _ v a l u e ( ) ; t h i s . _ r e f r e s h V a l u e ( ) } , d e s t r o y : 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 C l a s s ( " u i - p r o g r e s s b a r   u i - w i d g e t   u i - w i d g e t - c o n t e n t   u i - c o r n e r - a l l " ) . r e m o v e A t t r ( " r o l e " ) . r e m o v e A t t r ( " a r i a - v a l u e m i n " ) . r e m o v e A t t r ( " a r i a - v a l u e m a x " ) . r e m o v e A t t r ( " a r i a - v a l u e n o w " ) ; 
 t h i s . v a l u e D i v . r e m o v e ( ) ; a . W i d g e t . p r o t o t y p e . d e s t r o y . a p p l y ( t h i s , a r g u m e n t s ) } , v a l u e : f u n c t i o n ( c ) { i f ( c = = = d ) r e t u r n   t h i s . _ v a l u e ( ) ; t h i s . _ s e t O p t i o n ( " v a l u e " , c ) ; r e t u r n   t h i s } , _ s e t O p t i o n : f u n c t i o n ( c , f ) { i f ( c = = = " v a l u e " ) { t h i s . o p t i o n s . v a l u e = f ; t h i s . _ r e f r e s h V a l u e ( ) ; t h i s . _ v a l u e ( ) = = = t h i s . o p t i o n s . m a x & & t h i s . _ t r i g g e r ( " c o m p l e t e " ) } a . W i d g e t . p r o t o t y p e . _ s e t O p t i o n . a p p l y ( t h i s , a r g u m e n t s ) } , _ v a l u e : f u n c t i o n ( ) { v a r   c = t h i s . o p t i o n s . v a l u e ; i f ( t y p e o f   c ! = = " n u m b e r " ) c = 0 ; r e t u r n   M a t h . m i n ( t h i s . o p t i o n s . m a x , M a t h . m a x ( t h i s . m i n , c ) ) } , _ p e r c e n t a g e : f u n c t i o n ( ) { r e t u r n   1 0 0 * 
 t h i s . _ v a l u e ( ) / t h i s . o p t i o n s . m a x } , _ r e f r e s h V a l u e : f u n c t i o n ( ) { v a r   c = t h i s . v a l u e ( ) , f = t h i s . _ p e r c e n t a g e ( ) ; i f ( t h i s . o l d V a l u e ! = = c ) { t h i s . o l d V a l u e = c ; t h i s . _ t r i g g e r ( " c h a n g e " ) } t h i s . v a l u e D i v . t o g g l e ( c > t h i s . m i n ) . t o g g l e C l a s s ( " u i - c o r n e r - r i g h t " , c = = = t h i s . o p t i o n s . m a x ) . w i d t h ( f . t o F i x e d ( 0 ) + " % " ) ; t h i s . e l e m e n t . a t t r ( " a r i a - v a l u e n o w " , c ) } } ) ; a . e x t e n d ( a . u i . p r o g r e s s b a r , { v e r s i o n : " 1 . 8 . 1 3 " } ) } ) ( j Q u e r y ) ; 
 ( f u n c t i o n ( a ) { a . w i d g e t ( " u i . s l i d e r " , a . u i . m o u s e , { w i d g e t E v e n t P r e f i x : " s l i d e " , o p t i o n s : { a n i m a t e : f a l s e , d i s t a n c e : 0 , m a x : 1 0 0 , m i n : 0 , o r i e n t a t i o n : " h o r i z o n t a l " , r a n g e : f a l s e , s t e p : 1 , v a l u e : 0 , v a l u e s : n u l l } , _ c r e a t e : f u n c t i o n ( ) { v a r   d = t h i s , c = t h i s . o p t i o n s , f = t h i s . e l e m e n t . f i n d ( " . u i - s l i d e r - h a n d l e " ) . a d d C l a s s ( " u i - s t a t e - d e f a u l t   u i - c o r n e r - a l l " ) , g = c . v a l u e s & & c . v a l u e s . l e n g t h | | 1 , e = [ ] ; t h i s . _ m o u s e S l i d i n g = t h i s . _ k e y S l i d i n g = f a l s e ; t h i s . _ a n i m a t e O f f = t r u e ; t h i s . _ h a n d l e I n d e x = n u l l ; t h i s . _ d e t e c t O r i e n t a t i o n ( ) ; t h i s . _ m o u s e I n i t ( ) ; t h i s . e l e m e n t . a d d C l a s s ( " u i - s l i d e r   u i - s l i d e r - " + 
 t h i s . o r i e n t a t i o n + "   u i - w i d g e t   u i - w i d g e t - c o n t e n t   u i - c o r n e r - a l l " + ( c . d i s a b l e d ? "   u i - s l i d e r - d i s a b l e d   u i - d i s a b l e d " : " " ) ) ; t h i s . r a n g e = a ( [ ] ) ; i f ( c . r a n g e ) { i f ( c . r a n g e = = = t r u e ) { i f ( ! c . v a l u e s ) c . v a l u e s = [ t h i s . _ v a l u e M i n ( ) , t h i s . _ v a l u e M i n ( ) ] ; i f ( c . v a l u e s . l e n g t h & & c . v a l u e s . l e n g t h ! = = 2 ) c . v a l u e s = [ c . v a l u e s [ 0 ] , c . v a l u e s [ 0 ] ] } t h i s . r a n g e = a ( " < d i v > < / d i v > " ) . a p p e n d T o ( t h i s . e l e m e n t ) . a d d C l a s s ( " u i - s l i d e r - r a n g e   u i - w i d g e t - h e a d e r " + ( c . r a n g e = = = " m i n " | | c . r a n g e = = = " m a x " ? "   u i - s l i d e r - r a n g e - " + c . r a n g e : " " ) ) } f o r ( v a r   i = f . l e n g t h ; i < g ; i + = 1 ) e . p u s h ( " < a   c l a s s = ' u i - s l i d e r - h a n d l e   u i - s t a t e - d e f a u l t   u i - c o r n e r - a l l '   h r e f = ' # ' > < / a > " ) ; 
 t h i s . h a n d l e s = f . a d d ( a ( e . j o i n ( " " ) ) . a p p e n d T o ( d . e l e m e n t ) ) ; t h i s . h a n d l e = t h i s . h a n d l e s . e q ( 0 ) ; t h i s . h a n d l e s . a d d ( t h i s . r a n g e ) . f i l t e r ( " a " ) . c l i c k ( f u n c t i o n ( b ) { b . p r e v e n t D e f a u l t ( ) } ) . h o v e r ( f u n c t i o n ( ) { c . d i s a b l e d | | a ( t h i s ) . a d d C l a s s ( " u i - s t a t e - h o v e r " ) } , f u n c t i o n ( ) { a ( t h i s ) . r e m o v e C l a s s ( " u i - s t a t e - h o v e r " ) } ) . f o c u s ( f u n c t i o n ( ) { i f ( c . d i s a b l e d ) a ( t h i s ) . b l u r ( ) ; e l s e { a ( " . u i - s l i d e r   . u i - s t a t e - f o c u s " ) . r e m o v e C l a s s ( " u i - s t a t e - f o c u s " ) ; a ( t h i s ) . a d d C l a s s ( " u i - s t a t e - f o c u s " ) } } ) . b l u r ( f u n c t i o n ( ) { a ( t h i s ) . r e m o v e C l a s s ( " u i - s t a t e - f o c u s " ) } ) ; t h i s . h a n d l e s . e a c h ( f u n c t i o n ( b ) { a ( t h i s ) . d a t a ( " i n d e x . u i - s l i d e r - h a n d l e " , 
 b ) } ) ; t h i s . h a n d l e s . k e y d o w n ( f u n c t i o n ( b ) { v a r   h = t r u e , j = a ( t h i s ) . d a t a ( " i n d e x . u i - s l i d e r - h a n d l e " ) , l , o , n ; i f ( ! d . o p t i o n s . d i s a b l e d ) { s w i t c h ( b . k e y C o d e ) { c a s e   a . u i . k e y C o d e . H O M E : c a s e   a . u i . k e y C o d e . E N D : c a s e   a . u i . k e y C o d e . P A G E _ U P : c a s e   a . u i . k e y C o d e . P A G E _ D O W N : c a s e   a . u i . k e y C o d e . U P : c a s e   a . u i . k e y C o d e . R I G H T : c a s e   a . u i . k e y C o d e . D O W N : c a s e   a . u i . k e y C o d e . L E F T : h = f a l s e ; i f ( ! d . _ k e y S l i d i n g ) { d . _ k e y S l i d i n g = t r u e ; a ( t h i s ) . a d d C l a s s ( " u i - s t a t e - a c t i v e " ) ; l = d . _ s t a r t ( b , j ) ; i f ( l = = = f a l s e ) r e t u r n } b r e a k } n = d . o p t i o n s . s t e p ; l = d . o p t i o n s . v a l u e s & & d . o p t i o n s . v a l u e s . l e n g t h ? 
 ( o = d . v a l u e s ( j ) ) : ( o = d . v a l u e ( ) ) ; s w i t c h ( b . k e y C o d e ) { c a s e   a . u i . k e y C o d e . H O M E : o = d . _ v a l u e M i n ( ) ; b r e a k ; c a s e   a . u i . k e y C o d e . E N D : o = d . _ v a l u e M a x ( ) ; b r e a k ; c a s e   a . u i . k e y C o d e . P A G E _ U P : o = d . _ t r i m A l i g n V a l u e ( l + ( d . _ v a l u e M a x ( ) - d . _ v a l u e M i n ( ) ) / 5 ) ; b r e a k ; c a s e   a . u i . k e y C o d e . P A G E _ D O W N : o = d . _ t r i m A l i g n V a l u e ( l - ( d . _ v a l u e M a x ( ) - d . _ v a l u e M i n ( ) ) / 5 ) ; b r e a k ; c a s e   a . u i . k e y C o d e . U P : c a s e   a . u i . k e y C o d e . R I G H T : i f ( l = = = d . _ v a l u e M a x ( ) ) r e t u r n ; o = d . _ t r i m A l i g n V a l u e ( l + n ) ; b r e a k ; c a s e   a . u i . k e y C o d e . D O W N : c a s e   a . u i . k e y C o d e . L E F T : i f ( l = = = d . _ v a l u e M i n ( ) ) r e t u r n ; o = d . _ t r i m A l i g n V a l u e ( l - 
 n ) ; b r e a k } d . _ s l i d e ( b , j , o ) ; r e t u r n   h } } ) . k e y u p ( f u n c t i o n ( b ) { v a r   h = a ( t h i s ) . d a t a ( " i n d e x . u i - s l i d e r - h a n d l e " ) ; i f ( d . _ k e y S l i d i n g ) { d . _ k e y S l i d i n g = f a l s e ; d . _ s t o p ( b , h ) ; d . _ c h a n g e ( b , h ) ; a ( t h i s ) . r e m o v e C l a s s ( " u i - s t a t e - a c t i v e " ) } } ) ; t h i s . _ r e f r e s h V a l u e ( ) ; t h i s . _ a n i m a t e O f f = f a l s e } , d e s t r o y : 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 ( ) ; t h i s . r a n g e . r e m o v e ( ) ; t h i s . e l e m e n t . r e m o v e C l a s s ( " u i - s l i d e r   u i - s l i d e r - h o r i z o n t a l   u i - s l i d e r - v e r t i c a l   u i - s l i d e r - d i s a b l e d   u i - w i d g e t   u i - w i d g e t - c o n t e n t   u i - c o r n e r - a l l " ) . r e m o v e D a t a ( " s l i d e r " ) . u n b i n d ( " . s l i d e r " ) ; t h i s . _ m o u s e D e s t r o y ( ) ; 
 r e t u r n   t h i s } , _ m o u s e C a p t u r e : f u n c t i o n ( d ) { v a r   c = t h i s . o p t i o n s , f , g , e , i , b ; i f ( c . d i s a b l e d ) r e t u r n   f a l s e ; t h i s . e l e m e n t S i z e = { w i d t h : t h i s . e l e m e n t . o u t e r W i d t h ( ) , h e i g h t : t h i s . e l e m e n t . o u t e r H e i g h t ( ) } ; t h i s . e l e m e n t O f f s e t = t h i s . e l e m e n t . o f f s e t ( ) ; f = t h i s . _ n o r m V a l u e F r o m M o u s e ( { x : d . p a g e X , y : d . p a g e Y } ) ; g = t h i s . _ v a l u e M a x ( ) - t h i s . _ v a l u e M i n ( ) + 1 ; i = t h i s ; t h i s . h a n d l e s . e a c h ( f u n c t i o n ( h ) { v a r   j = M a t h . a b s ( f - i . v a l u e s ( h ) ) ; i f ( g > j ) { g = j ; e = a ( t h i s ) ; b = h } } ) ; i f ( c . r a n g e = = = t r u e & & t h i s . v a l u e s ( 1 ) = = = c . m i n ) { b + = 1 ; e = a ( t h i s . h a n d l e s [ b ] ) } i f ( t h i s . _ s t a r t ( d , b ) = = = f a l s e ) r e t u r n   f a l s e ; 
 t h i s . _ m o u s e S l i d i n g = t r u e ; i . _ h a n d l e I n d e x = b ; e . a d d C l a s s ( " u i - s t a t e - a c t i v e " ) . f o c u s ( ) ; c = e . o f f s e t ( ) ; t h i s . _ c l i c k O f f s e t = ! a ( d . t a r g e t ) . p a r e n t s ( ) . a n d S e l f ( ) . i s ( " . u i - s l i d e r - h a n d l e " ) ? { l e f t : 0 , t o p : 0 } : { l e f t : d . p a g e X - c . l e f t - e . w i d t h ( ) / 2 , t o p : d . p a g e Y - c . t o p - e . h e i g h t ( ) / 2 - ( p a r s e I n t ( e . c s s ( " b o r d e r T o p W i d t h " ) , 1 0 ) | | 0 ) - ( p a r s e I n t ( e . c s s ( " b o r d e r B o t t o m W i d t h " ) , 1 0 ) | | 0 ) + ( p a r s e I n t ( e . c s s ( " m a r g i n T o p " ) , 1 0 ) | | 0 ) } ; t h i s . h a n d l e s . h a s C l a s s ( " u i - s t a t e - h o v e r " ) | | t h i s . _ s l i d e ( d , b , f ) ; r e t u r n   t h i s . _ a n i m a t e O f f = t r u e } , _ m o u s e S t a r t : f u n c t i o n ( ) { r e t u r n   t r u e } , _ m o u s e D r a g : f u n c t i o n ( d ) { v a r   c = 
 t h i s . _ n o r m V a l u e F r o m M o u s e ( { x : d . p a g e X , y : d . p a g e Y } ) ; t h i s . _ s l i d e ( d , t h i s . _ h a n d l e I n d e x , c ) ; r e t u r n   f a l s e } , _ m o u s e S t o p : f u n c t i o n ( d ) { t h i s . h a n d l e s . r e m o v e C l a s s ( " u i - s t a t e - a c t i v e " ) ; t h i s . _ m o u s e S l i d i n g = f a l s e ; t h i s . _ s t o p ( d , t h i s . _ h a n d l e I n d e x ) ; t h i s . _ c h a n g e ( d , t h i s . _ h a n d l e I n d e x ) ; t h i s . _ c l i c k O f f s e t = t h i s . _ h a n d l e I n d e x = n u l l ; r e t u r n   t h i s . _ a n i m a t e O f f = f a l s e } , _ d e t e c t O r i e n t a t i o n : f u n c t i o n ( ) { t h i s . o r i e n t a t i o n = t h i s . o p t i o n s . o r i e n t a t i o n = = = " v e r t i c a l " ? " v e r t i c a l " : " h o r i z o n t a l " } , _ n o r m V a l u e F r o m M o u s e : f u n c t i o n ( d ) { v a r   c ; i f ( t h i s . o r i e n t a t i o n = = = " h o r i z o n t a l " ) { c = 
 t h i s . e l e m e n t S i z e . w i d t h ; d = d . x - t h i s . e l e m e n t O f f s e t . l e f t - ( t h i s . _ c l i c k O f f s e t ? t h i s . _ c l i c k O f f s e t . l e f t : 0 ) } e l s e { c = t h i s . e l e m e n t S i z e . h e i g h t ; d = d . y - t h i s . e l e m e n t O f f s e t . t o p - ( t h i s . _ c l i c k O f f s e t ? t h i s . _ c l i c k O f f s e t . t o p : 0 ) } c = d / c ; i f ( c > 1 ) c = 1 ; i f ( c < 0 ) c = 0 ; i f ( t h i s . o r i e n t a t i o n = = = " v e r t i c a l " ) c = 1 - c ; d = t h i s . _ v a l u e M a x ( ) - t h i s . _ v a l u e M i n ( ) ; r e t u r n   t h i s . _ t r i m A l i g n V a l u e ( t h i s . _ v a l u e M i n ( ) + c * d ) } , _ s t a r t : f u n c t i o n ( d , c ) { v a r   f = { h a n d l e : t h i s . h a n d l e s [ c ] , v a l u e : t h i s . v a l u e ( ) } ; i f ( t h i s . o p t i o n s . v a l u e s & & t h i s . o p t i o n s . v a l u e s . l e n g t h ) { f . v a l u e = t h i s . v a l u e s ( c ) ; 
 f . v a l u e s = t h i s . v a l u e s ( ) } r e t u r n   t h i s . _ t r i g g e r ( " s t a r t " , d , f ) } , _ s l i d e : f u n c t i o n ( d , c , f ) { v a r   g ; i f ( t h i s . o p t i o n s . v a l u e s & & t h i s . o p t i o n s . v a l u e s . l e n g t h ) { g = t h i s . v a l u e s ( c ? 0 : 1 ) ; i f ( t h i s . o p t i o n s . v a l u e s . l e n g t h = = = 2 & & t h i s . o p t i o n s . r a n g e = = = t r u e & & ( c = = = 0 & & f > g | | c = = = 1 & & f < g ) ) f = g ; i f ( f ! = = t h i s . v a l u e s ( c ) ) { g = t h i s . v a l u e s ( ) ; g [ c ] = f ; d = t h i s . _ t r i g g e r ( " s l i d e " , d , { h a n d l e : t h i s . h a n d l e s [ c ] , v a l u e : f , v a l u e s : g } ) ; t h i s . v a l u e s ( c ? 0 : 1 ) ; d ! = = f a l s e & & t h i s . v a l u e s ( c , f , t r u e ) } } e l s e   i f ( f ! = = t h i s . v a l u e ( ) ) { d = t h i s . _ t r i g g e r ( " s l i d e " , d , { h a n d l e : t h i s . h a n d l e s [ c ] , v a l u e : f } ) ; 
 d ! = = f a l s e & & t h i s . v a l u e ( f ) } } , _ s t o p : f u n c t i o n ( d , c ) { v a r   f = { h a n d l e : t h i s . h a n d l e s [ c ] , v a l u e : t h i s . v a l u e ( ) } ; i f ( t h i s . o p t i o n s . v a l u e s & & t h i s . o p t i o n s . v a l u e s . l e n g t h ) { f . v a l u e = t h i s . v a l u e s ( c ) ; f . v a l u e s = t h i s . v a l u e s ( ) } t h i s . _ t r i g g e r ( " s t o p " , d , f ) } , _ c h a n g e : f u n c t i o n ( d , c ) { i f ( ! t h i s . _ k e y S l i d i n g & & ! t h i s . _ m o u s e S l i d i n g ) { v a r   f = { h a n d l e : t h i s . h a n d l e s [ c ] , v a l u e : t h i s . v a l u e ( ) } ; i f ( t h i s . o p t i o n s . v a l u e s & & t h i s . o p t i o n s . v a l u e s . l e n g t h ) { f . v a l u e = t h i s . v a l u e s ( c ) ; f . v a l u e s = t h i s . v a l u e s ( ) } t h i s . _ t r i g g e r ( " c h a n g e " , d , f ) } } , v a l u e : f u n c t i o n ( d ) { i f ( a r g u m e n t s . l e n g t h ) { t h i s . o p t i o n s . v a l u e = 
 t h i s . _ t r i m A l i g n V a l u e ( d ) ; t h i s . _ r e f r e s h V a l u e ( ) ; t h i s . _ c h a n g e ( n u l l , 0 ) } e l s e   r e t u r n   t h i s . _ v a l u e ( ) } , v a l u e s : f u n c t i o n ( d , c ) { v a r   f , g , e ; i f ( a r g u m e n t s . l e n g t h > 1 ) { t h i s . o p t i o n s . v a l u e s [ d ] = t h i s . _ t r i m A l i g n V a l u e ( c ) ; t h i s . _ r e f r e s h V a l u e ( ) ; t h i s . _ c h a n g e ( n u l l , d ) } e l s e   i f ( a r g u m e n t s . l e n g t h ) i f ( a . i s A r r a y ( a r g u m e n t s [ 0 ] ) ) { f = t h i s . o p t i o n s . v a l u e s ; g = a r g u m e n t s [ 0 ] ; f o r ( e = 0 ; e < f . l e n g t h ; e + = 1 ) { f [ e ] = t h i s . _ t r i m A l i g n V a l u e ( g [ e ] ) ; t h i s . _ c h a n g e ( n u l l , e ) } t h i s . _ r e f r e s h V a l u e ( ) } e l s e   r e t u r n   t h i s . o p t i o n s . v a l u e s & & t h i s . o p t i o n s . v a l u e s . l e n g t h ? t h i s . _ v a l u e s ( d ) : 
 t h i s . v a l u e ( ) ; e l s e   r e t u r n   t h i s . _ v a l u e s ( ) } , _ s e t O p t i o n : f u n c t i o n ( d , c ) { v a r   f , g = 0 ; i f ( a . i s A r r a y ( t h i s . o p t i o n s . v a l u e s ) ) g = t h i s . o p t i o n s . v a l u e s . l e n g t h ; a . W i d g e t . p r o t o t y p e . _ s e t O p t i o n . a p p l y ( t h i s , a r g u m e n t s ) ; s w i t c h ( d ) { c a s e   " d i s a b l e d " : i f ( c ) { t h i s . h a n d l e s . f i l t e r ( " . u i - s t a t e - f o c u s " ) . b l u r ( ) ; t h i s . h a n d l e s . r e m o v e C l a s s ( " u i - s t a t e - h o v e r " ) ; t h i s . h a n d l e s . a t t r ( " d i s a b l e d " , " d i s a b l e d " ) ; t h i s . e l e m e n t . a d d C l a s s ( " u i - d i s a b l e d " ) } e l s e { t h i s . h a n d l e s . r e m o v e A t t r ( " d i s a b l e d " ) ; t h i s . e l e m e n t . r e m o v e C l a s s ( " u i - d i s a b l e d " ) } b r e a k ; c a s e   " o r i e n t a t i o n " : t h i s . _ d e t e c t O r i e n t a t i o n ( ) ; 
 t h i s . e l e m e n t . r e m o v e C l a s s ( " u i - s l i d e r - h o r i z o n t a l   u i - s l i d e r - v e r t i c a l " ) . a d d C l a s s ( " u i - s l i d e r - " + t h i s . o r i e n t a t i o n ) ; t h i s . _ r e f r e s h V a l u e ( ) ; b r e a k ; c a s e   " v a l u e " : t h i s . _ a n i m a t e O f f = t r u e ; t h i s . _ r e f r e s h V a l u e ( ) ; t h i s . _ c h a n g e ( n u l l , 0 ) ; t h i s . _ a n i m a t e O f f = f a l s e ; b r e a k ; c a s e   " v a l u e s " : t h i s . _ a n i m a t e O f f = t r u e ; t h i s . _ r e f r e s h V a l u e ( ) ; f o r ( f = 0 ; f < g ; f + = 1 ) t h i s . _ c h a n g e ( n u l l , f ) ; t h i s . _ a n i m a t e O f f = f a l s e ; b r e a k } } , _ v a l u e : f u n c t i o n ( ) { v a r   d = t h i s . o p t i o n s . v a l u e ; r e t u r n   d = t h i s . _ t r i m A l i g n V a l u e ( d ) } , _ v a l u e s : f u n c t i o n ( d ) { v a r   c , f ; i f ( a r g u m e n t s . l e n g t h ) { c = t h i s . o p t i o n s . v a l u e s [ d ] ; 
 r e t u r n   c = t h i s . _ t r i m A l i g n V a l u e ( c ) } e l s e { c = t h i s . o p t i o n s . v a l u e s . s l i c e ( ) ; f o r ( f = 0 ; f < c . l e n g t h ; f + = 1 ) c [ f ] = t h i s . _ t r i m A l i g n V a l u e ( c [ f ] ) ; r e t u r n   c } } , _ t r i m A l i g n V a l u e : f u n c t i o n ( d ) { i f ( d < = t h i s . _ v a l u e M i n ( ) ) r e t u r n   t h i s . _ v a l u e M i n ( ) ; i f ( d > = t h i s . _ v a l u e M a x ( ) ) r e t u r n   t h i s . _ v a l u e M a x ( ) ; v a r   c = t h i s . o p t i o n s . s t e p > 0 ? t h i s . o p t i o n s . s t e p : 1 , f = ( d - t h i s . _ v a l u e M i n ( ) ) % c ; a l i g n V a l u e = d - f ; i f ( M a t h . a b s ( f ) * 2 > = c ) a l i g n V a l u e + = f > 0 ? c : - c ; r e t u r n   p a r s e F l o a t ( a l i g n V a l u e . t o F i x e d ( 5 ) ) } , _ v a l u e M i n : f u n c t i o n ( ) { r e t u r n   t h i s . o p t i o n s . m i n } , _ v a l u e M a x : f u n c t i o n ( ) { r e t u r n   t h i s . o p t i o n s . m a x } , 
 _ r e f r e s h V a l u e : f u n c t i o n ( ) { v a r   d = t h i s . o p t i o n s . r a n g e , c = t h i s . o p t i o n s , f = t h i s , g = ! t h i s . _ a n i m a t e O f f ? c . a n i m a t e : f a l s e , e , i = { } , b , h , j , l ; i f ( t h i s . o p t i o n s . v a l u e s & & t h i s . o p t i o n s . v a l u e s . l e n g t h ) t h i s . h a n d l e s . e a c h ( f u n c t i o n ( o ) { e = ( f . v a l u e s ( o ) - f . _ v a l u e M i n ( ) ) / ( f . _ v a l u e M a x ( ) - f . _ v a l u e M i n ( ) ) * 1 0 0 ; i [ f . o r i e n t a t i o n = = = " h o r i z o n t a l " ? " l e f t " : " b o t t o m " ] = e + " % " ; a ( t h i s ) . s t o p ( 1 , 1 ) [ g ? " a n i m a t e " : " c s s " ] ( i , c . a n i m a t e ) ; i f ( f . o p t i o n s . r a n g e = = = t r u e ) i f ( f . o r i e n t a t i o n = = = " h o r i z o n t a l " ) { i f ( o = = = 0 ) f . r a n g e . s t o p ( 1 , 1 ) [ g ? " a n i m a t e " : " c s s " ] ( { l e f t : e + " % " } , c . a n i m a t e ) ; 
 i f ( o = = = 1 ) f . r a n g e [ g ? " a n i m a t e " : " c s s " ] ( { w i d t h : e - b + " % " } , { q u e u e : f a l s e , d u r a t i o n : c . a n i m a t e } ) } e l s e { i f ( o = = = 0 ) f . r a n g e . s t o p ( 1 , 1 ) [ g ? " a n i m a t e " : " c s s " ] ( { b o t t o m : e + " % " } , c . a n i m a t e ) ; i f ( o = = = 1 ) f . r a n g e [ g ? " a n i m a t e " : " c s s " ] ( { h e i g h t : e - b + " % " } , { q u e u e : f a l s e , d u r a t i o n : c . a n i m a t e } ) } b = e } ) ; e l s e { h = t h i s . v a l u e ( ) ; j = t h i s . _ v a l u e M i n ( ) ; l = t h i s . _ v a l u e M a x ( ) ; e = l ! = = j ? ( h - j ) / ( l - j ) * 1 0 0 : 0 ; i [ f . o r i e n t a t i o n = = = " h o r i z o n t a l " ? " l e f t " : " b o t t o m " ] = e + " % " ; t h i s . h a n d l e . s t o p ( 1 , 1 ) [ g ? " a n i m a t e " : " c s s " ] ( i , c . a n i m a t e ) ; i f ( d = = = " m i n " & & t h i s . o r i e n t a t i o n = = = " h o r i z o n t a l " ) t h i s . r a n g e . s t o p ( 1 , 
 1 ) [ g ? " a n i m a t e " : " c s s " ] ( { w i d t h : e + " % " } , c . a n i m a t e ) ; i f ( d = = = " m a x " & & t h i s . o r i e n t a t i o n = = = " h o r i z o n t a l " ) t h i s . r a n g e [ g ? " a n i m a t e " : " c s s " ] ( { w i d t h : 1 0 0 - e + " % " } , { q u e u e : f a l s e , d u r a t i o n : c . a n i m a t e } ) ; i f ( d = = = " m i n " & & t h i s . o r i e n t a t i o n = = = " v e r t i c a l " ) t h i s . r a n g e . s t o p ( 1 , 1 ) [ g ? " a n i m a t e " : " c s s " ] ( { h e i g h t : e + " % " } , c . a n i m a t e ) ; i f ( d = = = " m a x " & & t h i s . o r i e n t a t i o n = = = " v e r t i c a l " ) t h i s . r a n g e [ g ? " a n i m a t e " : " c s s " ] ( { h e i g h t : 1 0 0 - e + " % " } , { q u e u e : f a l s e , d u r a t i o n : c . a n i m a t e } ) } } } ) ; a . e x t e n d ( a . u i . s l i d e r , { v e r s i o n : " 1 . 8 . 1 3 " } ) } ) ( j Q u e r y ) ; 
 ( f u n c t i o n ( a , d ) { f u n c t i o n   c ( ) { r e t u r n + + g } f u n c t i o n   f ( ) { r e t u r n + + e } v a r   g = 0 , e = 0 ; a . w i d g e t ( " u i . t a b s " , { o p t i o n s : { a d d : n u l l , a j a x O p t i o n s : n u l l , c a c h e : f a l s e , c o o k i e : n u l l , c o l l a p s i b l e : f a l s e , d i s a b l e : n u l l , d i s a b l e d : [ ] , e n a b l e : n u l l , e v e n t : " c l i c k " , f x : n u l l , i d P r e f i x : " u i - t a b s - " , l o a d : n u l l , p a n e l T e m p l a t e : " < d i v > < / d i v > " , r e m o v e : n u l l , s e l e c t : n u l l , s h o w : n u l l , s p i n n e r : " < e m > L o a d i n g & # 8 2 3 0 ; < / e m > " , t a b T e m p l a t e : " < l i > < a   h r e f = ' # { h r e f } ' > < s p a n > # { l a b e l } < / s p a n > < / a > < / l i > " } , _ c r e a t e : f u n c t i o n ( ) { t h i s . _ t a b i f y ( t r u e ) } , _ s e t O p t i o n : f u n c t i o n ( i , b ) { i f ( i = = " s e l e c t e d " ) t h i s . o p t i o n s . c o l l a p s i b l e & & 
 b = = t h i s . o p t i o n s . s e l e c t e d | | t h i s . s e l e c t ( b ) ; e l s e { t h i s . o p t i o n s [ i ] = b ; t h i s . _ t a b i f y ( ) } } , _ t a b I d : f u n c t i o n ( i ) { r e t u r n   i . t i t l e & & i . t i t l e . r e p l a c e ( / \ s / g , " _ " ) . r e p l a c e ( / [ ^ \ w \ u 0 0 c 0 - \ u F F F F - ] / g , " " ) | | t h i s . o p t i o n s . i d P r e f i x + c ( ) } , _ s a n i t i z e S e l e c t o r : f u n c t i o n ( i ) { r e t u r n   i . r e p l a c e ( / : / g , " \ \ : " ) } , _ c o o k i e : f u n c t i o n ( ) { v a r   i = t h i s . c o o k i e | | ( t h i s . c o o k i e = t h i s . o p t i o n s . c o o k i e . n a m e | | " u i - t a b s - " + f ( ) ) ; r e t u r n   a . c o o k i e . a p p l y ( n u l l , [ i ] . c o n c a t ( a . m a k e A r r a y ( a r g u m e n t s ) ) ) } , _ u i : f u n c t i o n ( i , b ) { r e t u r n { t a b : i , p a n e l : b , i n d e x : t h i s . a n c h o r s . i n d e x ( i ) } } , _ c l e a n u p : f u n c t i o n ( ) { t h i s . l i s . f i l t e r ( " . u i - s t a t e - p r o c e s s i n g " ) . r e m o v e C l a s s ( " u i - s t a t e - p r o c e s s i n g " ) . f i n d ( " s p a n : d a t a ( l a b e l . t a b s ) " ) . e a c h ( f u n c t i o n ( ) { v a r   i = 
 a ( t h i s ) ; i . h t m l ( i . d a t a ( " l a b e l . t a b s " ) ) . r e m o v e D a t a ( " l a b e l . t a b s " ) } ) } , _ t a b i f y : f u n c t i o n ( i ) { f u n c t i o n   b ( r , u ) { r . c s s ( " d i s p l a y " , " " ) ; ! a . s u p p o r t . o p a c i t y & & u . o p a c i t y & & r [ 0 ] . s t y l e . r e m o v e A t t r i b u t e ( " f i l t e r " ) } v a r   h = t h i s , j = t h i s . o p t i o n s , l = / ^ # . + / ; t h i s . l i s t = t h i s . e l e m e n t . f i n d ( " o l , u l " ) . e q ( 0 ) ; t h i s . l i s = a ( "   >   l i : h a s ( a [ h r e f ] ) " , t h i s . l i s t ) ; t h i s . a n c h o r s = t h i s . l i s . m a p ( f u n c t i o n ( ) { r e t u r n   a ( " a " , t h i s ) [ 0 ] } ) ; t h i s . p a n e l s = a ( [ ] ) ; t h i s . a n c h o r s . e a c h ( f u n c t i o n ( r , u ) { v a r   v = a ( u ) . a t t r ( " h r e f " ) , w = v . s p l i t ( " # " ) [ 0 ] , x ; i f ( w & & ( w = = = l o c a t i o n . t o S t r i n g ( ) . s p l i t ( " # " ) [ 0 ] | | 
 ( x = a ( " b a s e " ) [ 0 ] ) & & w = = = x . h r e f ) ) { v = u . h a s h ; u . h r e f = v } i f ( l . t e s t ( v ) ) h . p a n e l s = h . p a n e l s . a d d ( h . e l e m e n t . f i n d ( h . _ s a n i t i z e S e l e c t o r ( v ) ) ) ; e l s e   i f ( v & & v ! = = " # " ) { a . d a t a ( u , " h r e f . t a b s " , v ) ; a . d a t a ( u , " l o a d . t a b s " , v . r e p l a c e ( / # . * $ / , " " ) ) ; v = h . _ t a b I d ( u ) ; u . h r e f = " # " + v ; u = h . e l e m e n t . f i n d ( " # " + v ) ; i f ( ! u . l e n g t h ) { u = a ( j . p a n e l T e m p l a t e ) . a t t r ( " i d " , v ) . a d d C l a s s ( " u i - t a b s - p a n e l   u i - w i d g e t - c o n t e n t   u i - c o r n e r - b o t t o m " ) . i n s e r t A f t e r ( h . p a n e l s [ r - 1 ] | | h . l i s t ) ; u . d a t a ( " d e s t r o y . t a b s " , t r u e ) } h . p a n e l s = h . p a n e l s . a d d ( u ) } e l s e   j . d i s a b l e d . p u s h ( r ) } ) ; i f ( i ) { t h i s . e l e m e n t . a d d C l a s s ( " u i - t a b s   u i - w i d g e t   u i - w i d g e t - c o n t e n t   u i - c o r n e r - a l l " ) ; 
 t h i s . l i s t . a d d C l a s s ( " u i - t a b s - n a v   u i - h e l p e r - r e s e t   u i - h e l p e r - c l e a r f i x   u i - w i d g e t - h e a d e r   u i - c o r n e r - a l l " ) ; t h i s . l i s . a d d C l a s s ( " u i - s t a t e - d e f a u l t   u i - c o r n e r - t o p " ) ; t h i s . p a n e l s . a d d C l a s s ( " u i - t a b s - p a n e l   u i - w i d g e t - c o n t e n t   u i - c o r n e r - b o t t o m " ) ; i f ( j . s e l e c t e d = = = d ) { l o c a t i o n . h a s h & & t h i s . a n c h o r s . e a c h ( f u n c t i o n ( r , u ) { i f ( u . h a s h = = l o c a t i o n . h a s h ) { j . s e l e c t e d = r ; r e t u r n   f a l s e } } ) ; i f ( t y p e o f   j . s e l e c t e d ! = = " n u m b e r " & & j . c o o k i e ) j . s e l e c t e d = p a r s e I n t ( h . _ c o o k i e ( ) , 1 0 ) ; i f ( t y p e o f   j . s e l e c t e d ! = = " n u m b e r " & & t h i s . l i s . f i l t e r ( " . u i - t a b s - s e l e c t e d " ) . l e n g t h ) j . s e l e c t e d = 
 t h i s . l i s . i n d e x ( t h i s . l i s . f i l t e r ( " . u i - t a b s - s e l e c t e d " ) ) ; j . s e l e c t e d = j . s e l e c t e d | | ( t h i s . l i s . l e n g t h ? 0 : - 1 ) } e l s e   i f ( j . s e l e c t e d = = = n u l l ) j . s e l e c t e d = - 1 ; j . s e l e c t e d = j . s e l e c t e d > = 0 & & t h i s . a n c h o r s [ j . s e l e c t e d ] | | j . s e l e c t e d < 0 ? j . s e l e c t e d : 0 ; j . d i s a b l e d = a . u n i q u e ( j . d i s a b l e d . c o n c a t ( a . m a p ( t h i s . l i s . f i l t e r ( " . u i - s t a t e - d i s a b l e d " ) , f u n c t i o n ( r ) { r e t u r n   h . l i s . i n d e x ( r ) } ) ) ) . s o r t ( ) ; a . i n A r r a y ( j . s e l e c t e d , j . d i s a b l e d ) ! = - 1 & & j . d i s a b l e d . s p l i c e ( a . i n A r r a y ( j . s e l e c t e d , j . d i s a b l e d ) , 1 ) ; t h i s . p a n e l s . a d d C l a s s ( " u i - t a b s - h i d e " ) ; t h i s . l i s . r e m o v e C l a s s ( " u i - t a b s - s e l e c t e d   u i - s t a t e - a c t i v e " ) ; 
 i f ( j . s e l e c t e d > = 0 & & t h i s . a n c h o r s . l e n g t h ) { h . e l e m e n t . f i n d ( h . _ s a n i t i z e S e l e c t o r ( h . a n c h o r s [ j . s e l e c t e d ] . h a s h ) ) . r e m o v e C l a s s ( " u i - t a b s - h i d e " ) ; t h i s . l i s . e q ( j . s e l e c t e d ) . a d d C l a s s ( " u i - t a b s - s e l e c t e d   u i - s t a t e - a c t i v e " ) ; h . e l e m e n t . q u e u e ( " t a b s " , f u n c t i o n ( ) { h . _ t r i g g e r ( " s h o w " , n u l l , h . _ u i ( h . a n c h o r s [ j . s e l e c t e d ] , h . e l e m e n t . f i n d ( h . _ s a n i t i z e S e l e c t o r ( h . a n c h o r s [ j . s e l e c t e d ] . h a s h ) ) [ 0 ] ) ) } ) ; t h i s . l o a d ( j . s e l e c t e d ) } a ( w i n d o w ) . b i n d ( " u n l o a d " , f u n c t i o n ( ) { h . l i s . a d d ( h . a n c h o r s ) . u n b i n d ( " . t a b s " ) ; h . l i s = h . a n c h o r s = h . p a n e l s = n u l l } ) } e l s e   j . s e l e c t e d = t h i s . l i s . i n d e x ( t h i s . l i s . f i l t e r ( " . u i - t a b s - s e l e c t e d " ) ) ; 
 t h i s . e l e m e n t [ j . c o l l a p s i b l e ? " a d d C l a s s " : " r e m o v e C l a s s " ] ( " u i - t a b s - c o l l a p s i b l e " ) ; j . c o o k i e & & t h i s . _ c o o k i e ( j . s e l e c t e d , j . c o o k i e ) ; i = 0 ; f o r ( v a r   o ; o = t h i s . l i s [ i ] ; i + + ) a ( o ) [ a . i n A r r a y ( i , j . d i s a b l e d ) ! = - 1 & & ! a ( o ) . h a s C l a s s ( " u i - t a b s - s e l e c t e d " ) ? " a d d C l a s s " : " r e m o v e C l a s s " ] ( " u i - s t a t e - d i s a b l e d " ) ; j . c a c h e = = = f a l s e & & t h i s . a n c h o r s . r e m o v e D a t a ( " c a c h e . t a b s " ) ; t h i s . l i s . a d d ( t h i s . a n c h o r s ) . u n b i n d ( " . t a b s " ) ; i f ( j . e v e n t ! = = " m o u s e o v e r " ) { v a r   n = f u n c t i o n ( r , u ) { u . i s ( " : n o t ( . u i - s t a t e - d i s a b l e d ) " ) & & u . a d d C l a s s ( " u i - s t a t e - " + r ) } , k = f u n c t i o n ( r , u ) { u . r e m o v e C l a s s ( " u i - s t a t e - " + 
 r ) } ; t h i s . l i s . b i n d ( " m o u s e o v e r . t a b s " , f u n c t i o n ( ) { n ( " h o v e r " , a ( t h i s ) ) } ) ; t h i s . l i s . b i n d ( " m o u s e o u t . t a b s " , f u n c t i o n ( ) { k ( " h o v e r " , a ( t h i s ) ) } ) ; t h i s . a n c h o r s . b i n d ( " f o c u s . t a b s " , f u n c t i o n ( ) { n ( " f o c u s " , a ( t h i s ) . c l o s e s t ( " l i " ) ) } ) ; t h i s . a n c h o r s . b i n d ( " b l u r . t a b s " , f u n c t i o n ( ) { k ( " f o c u s " , a ( t h i s ) . c l o s e s t ( " l i " ) ) } ) } v a r   m , p ; i f ( j . f x ) i f ( a . i s A r r a y ( j . f x ) ) { m = j . f x [ 0 ] ; p = j . f x [ 1 ] } e l s e   m = p = j . f x ; v a r   q = p ? f u n c t i o n ( r , u ) { a ( r ) . c l o s e s t ( " l i " ) . a d d C l a s s ( " u i - t a b s - s e l e c t e d   u i - s t a t e - a c t i v e " ) ; u . h i d e ( ) . r e m o v e C l a s s ( " u i - t a b s - h i d e " ) . a n i m a t e ( p , p . d u r a t i o n | | " n o r m a l " , 
 f u n c t i o n ( ) { b ( u , p ) ; h . _ t r i g g e r ( " s h o w " , n u l l , h . _ u i ( r , u [ 0 ] ) ) } ) } : f u n c t i o n ( r , u ) { a ( r ) . c l o s e s t ( " l i " ) . a d d C l a s s ( " u i - t a b s - s e l e c t e d   u i - s t a t e - a c t i v e " ) ; u . r e m o v e C l a s s ( " u i - t a b s - h i d e " ) ; h . _ t r i g g e r ( " s h o w " , n u l l , h . _ u i ( r , u [ 0 ] ) ) } , s = m ? f u n c t i o n ( r , u ) { u . a n i m a t e ( m , m . d u r a t i o n | | " n o r m a l " , f u n c t i o n ( ) { h . l i s . r e m o v e C l a s s ( " u i - t a b s - s e l e c t e d   u i - s t a t e - a c t i v e " ) ; u . a d d C l a s s ( " u i - t a b s - h i d e " ) ; b ( u , m ) ; h . e l e m e n t . d e q u e u e ( " t a b s " ) } ) } : f u n c t i o n ( r , u ) { h . l i s . r e m o v e C l a s s ( " u i - t a b s - s e l e c t e d   u i - s t a t e - a c t i v e " ) ; u . a d d C l a s s ( " u i - t a b s - h i d e " ) ; h . e l e m e n t . d e q u e u e ( " t a b s " ) } ; 
 t h i s . a n c h o r s . b i n d ( j . e v e n t + " . t a b s " , f u n c t i o n ( ) { v a r   r = t h i s , u = a ( r ) . c l o s e s t ( " l i " ) , v = h . p a n e l s . f i l t e r ( " : n o t ( . u i - t a b s - h i d e ) " ) , w = h . e l e m e n t . f i n d ( h . _ s a n i t i z e S e l e c t o r ( r . h a s h ) ) ; i f ( u . h a s C l a s s ( " u i - t a b s - s e l e c t e d " ) & & ! j . c o l l a p s i b l e | | u . h a s C l a s s ( " u i - s t a t e - d i s a b l e d " ) | | u . h a s C l a s s ( " u i - s t a t e - p r o c e s s i n g " ) | | h . p a n e l s . f i l t e r ( " : a n i m a t e d " ) . l e n g t h | | h . _ t r i g g e r ( " s e l e c t " , n u l l , h . _ u i ( t h i s , w [ 0 ] ) ) = = = f a l s e ) { t h i s . b l u r ( ) ; r e t u r n   f a l s e } j . s e l e c t e d = h . a n c h o r s . i n d e x ( t h i s ) ; h . a b o r t ( ) ; i f ( j . c o l l a p s i b l e ) i f ( u . h a s C l a s s ( " u i - t a b s - s e l e c t e d " ) ) { j . s e l e c t e d = 
 - 1 ; j . c o o k i e & & h . _ c o o k i e ( j . s e l e c t e d , j . c o o k i e ) ; h . e l e m e n t . q u e u e ( " t a b s " , f u n c t i o n ( ) { s ( r , v ) } ) . d e q u e u e ( " t a b s " ) ; t h i s . b l u r ( ) ; r e t u r n   f a l s e } e l s e   i f ( ! v . l e n g t h ) { j . c o o k i e & & h . _ c o o k i e ( j . s e l e c t e d , j . c o o k i e ) ; h . e l e m e n t . q u e u e ( " t a b s " , f u n c t i o n ( ) { q ( r , w ) } ) ; h . l o a d ( h . a n c h o r s . i n d e x ( t h i s ) ) ; t h i s . b l u r ( ) ; r e t u r n   f a l s e } j . c o o k i e & & h . _ c o o k i e ( j . s e l e c t e d , j . c o o k i e ) ; i f ( w . l e n g t h ) { v . l e n g t h & & h . e l e m e n t . q u e u e ( " t a b s " , f u n c t i o n ( ) { s ( r , v ) } ) ; h . e l e m e n t . q u e u e ( " t a b s " , f u n c t i o n ( ) { q ( r , w ) } ) ; h . l o a d ( h . a n c h o r s . i n d e x ( t h i s ) ) } e l s e   t h r o w " j Q u e r y   U I   T a b s :   M i s m a t c h i n g   f r a g m e n t   i d e n t i f i e r . " ; 
 a . b r o w s e r . m s i e & & t h i s . b l u r ( ) } ) ; t h i s . a n c h o r s . b i n d ( " c l i c k . t a b s " , f u n c t i o n ( ) { r e t u r n   f a l s e } ) } , _ g e t I n d e x : f u n c t i o n ( i ) { i f ( t y p e o f   i = = " s t r i n g " ) i = t h i s . a n c h o r s . i n d e x ( t h i s . a n c h o r s . f i l t e r ( " [ h r e f $ = " + i + " ] " ) ) ; r e t u r n   i } , d e s t r o y : f u n c t i o n ( ) { v a r   i = t h i s . o p t i o n s ; t h i s . a b o r t ( ) ; t h i s . e l e m e n t . u n b i n d ( " . t a b s " ) . r e m o v e C l a s s ( " u i - t a b s   u i - w i d g e t   u i - w i d g e t - c o n t e n t   u i - c o r n e r - a l l   u i - t a b s - c o l l a p s i b l e " ) . r e m o v e D a t a ( " t a b s " ) ; t h i s . l i s t . r e m o v e C l a s s ( " u i - t a b s - n a v   u i - h e l p e r - r e s e t   u i - h e l p e r - c l e a r f i x   u i - w i d g e t - h e a d e r   u i - c o r n e r - a l l " ) ; t h i s . a n c h o r s . e a c h ( f u n c t i o n ( ) { v a r   b = 
 a . d a t a ( t h i s , " h r e f . t a b s " ) ; i f ( b ) t h i s . h r e f = b ; v a r   h = a ( t h i s ) . u n b i n d ( " . t a b s " ) ; a . e a c h ( [ " h r e f " , " l o a d " , " c a c h e " ] , f u n c t i o n ( j , l ) { h . r e m o v e D a t a ( l + " . t a b s " ) } ) } ) ; t h i s . l i s . u n b i n d ( " . t a b s " ) . a d d ( t h i s . p a n e l s ) . e a c h ( f u n c t i o n ( ) { a . d a t a ( t h i s , " d e s t r o y . t a b s " ) ? a ( t h i s ) . r e m o v e ( ) : a ( t h i s ) . r e m o v e C l a s s ( " u i - s t a t e - d e f a u l t   u i - c o r n e r - t o p   u i - t a b s - s e l e c t e d   u i - s t a t e - a c t i v e   u i - s t a t e - h o v e r   u i - s t a t e - f o c u s   u i - s t a t e - d i s a b l e d   u i - t a b s - p a n e l   u i - w i d g e t - c o n t e n t   u i - c o r n e r - b o t t o m   u i - t a b s - h i d e " ) } ) ; i . c o o k i e & & t h i s . _ c o o k i e ( n u l l , i . c o o k i e ) ; r e t u r n   t h i s } , a d d : f u n c t i o n ( i , 
 b , h ) { i f ( h = = = d ) h = t h i s . a n c h o r s . l e n g t h ; v a r   j = t h i s , l = t h i s . o p t i o n s ; b = a ( l . t a b T e m p l a t e . r e p l a c e ( / # \ { h r e f \ } / g , i ) . r e p l a c e ( / # \ { l a b e l \ } / g , b ) ) ; i = ! i . i n d e x O f ( " # " ) ? i . r e p l a c e ( " # " , " " ) : t h i s . _ t a b I d ( a ( " a " , b ) [ 0 ] ) ; b . a d d C l a s s ( " u i - s t a t e - d e f a u l t   u i - c o r n e r - t o p " ) . d a t a ( " d e s t r o y . t a b s " , t r u e ) ; v a r   o = j . e l e m e n t . f i n d ( " # " + i ) ; o . l e n g t h | | ( o = a ( l . p a n e l T e m p l a t e ) . a t t r ( " i d " , i ) . d a t a ( " d e s t r o y . t a b s " , t r u e ) ) ; o . a d d C l a s s ( " u i - t a b s - p a n e l   u i - w i d g e t - c o n t e n t   u i - c o r n e r - b o t t o m   u i - t a b s - h i d e " ) ; i f ( h > = t h i s . l i s . l e n g t h ) { b . a p p e n d T o ( t h i s . l i s t ) ; o . a p p e n d T o ( t h i s . l i s t [ 0 ] . p a r e n t N o d e ) } e l s e { b . i n s e r t B e f o r e ( t h i s . l i s [ h ] ) ; 
 o . i n s e r t B e f o r e ( t h i s . p a n e l s [ h ] ) } l . d i s a b l e d = a . m a p ( l . d i s a b l e d , f u n c t i o n ( n ) { r e t u r n   n > = h ? + + n : n } ) ; t h i s . _ t a b i f y ( ) ; i f ( t h i s . a n c h o r s . l e n g t h = = 1 ) { l . s e l e c t e d = 0 ; b . a d d C l a s s ( " u i - t a b s - s e l e c t e d   u i - s t a t e - a c t i v e " ) ; o . r e m o v e C l a s s ( " u i - t a b s - h i d e " ) ; t h i s . e l e m e n t . q u e u e ( " t a b s " , f u n c t i o n ( ) { j . _ t r i g g e r ( " s h o w " , n u l l , j . _ u i ( j . a n c h o r s [ 0 ] , j . p a n e l s [ 0 ] ) ) } ) ; t h i s . l o a d ( 0 ) } t h i s . _ t r i g g e r ( " a d d " , n u l l , t h i s . _ u i ( t h i s . a n c h o r s [ h ] , t h i s . p a n e l s [ h ] ) ) ; r e t u r n   t h i s } , r e m o v e : f u n c t i o n ( i ) { i = t h i s . _ g e t I n d e x ( i ) ; v a r   b = t h i s . o p t i o n s , h = t h i s . l i s . e q ( i ) . r e m o v e ( ) , j = t h i s . p a n e l s . e q ( i ) . r e m o v e ( ) ; 
 i f ( h . h a s C l a s s ( " u i - t a b s - s e l e c t e d " ) & & t h i s . a n c h o r s . l e n g t h > 1 ) t h i s . s e l e c t ( i + ( i + 1 < t h i s . a n c h o r s . l e n g t h ? 1 : - 1 ) ) ; b . d i s a b l e d = a . m a p ( a . g r e p ( b . d i s a b l e d , f u n c t i o n ( l ) { r e t u r n   l ! = i } ) , f u n c t i o n ( l ) { r e t u r n   l > = i ? - - l : l } ) ; t h i s . _ t a b i f y ( ) ; t h i s . _ t r i g g e r ( " r e m o v e " , n u l l , t h i s . _ u i ( h . f i n d ( " a " ) [ 0 ] , j [ 0 ] ) ) ; r e t u r n   t h i s } , e n a b l e : f u n c t i o n ( i ) { i = t h i s . _ g e t I n d e x ( i ) ; v a r   b = t h i s . o p t i o n s ; i f ( a . i n A r r a y ( i , b . d i s a b l e d ) ! = - 1 ) { t h i s . l i s . e q ( i ) . r e m o v e C l a s s ( " u i - s t a t e - d i s a b l e d " ) ; b . d i s a b l e d = a . g r e p ( b . d i s a b l e d , f u n c t i o n ( h ) { r e t u r n   h ! = i } ) ; t h i s . _ t r i g g e r ( " e n a b l e " , n u l l , 
 t h i s . _ u i ( t h i s . a n c h o r s [ i ] , t h i s . p a n e l s [ i ] ) ) ; r e t u r n   t h i s } } , d i s a b l e : f u n c t i o n ( i ) { i = t h i s . _ g e t I n d e x ( i ) ; v a r   b = t h i s . o p t i o n s ; i f ( i ! = b . s e l e c t e d ) { t h i s . l i s . e q ( i ) . a d d C l a s s ( " u i - s t a t e - d i s a b l e d " ) ; b . d i s a b l e d . p u s h ( i ) ; b . d i s a b l e d . s o r t ( ) ; t h i s . _ t r i g g e r ( " d i s a b l e " , n u l l , t h i s . _ u i ( t h i s . a n c h o r s [ i ] , t h i s . p a n e l s [ i ] ) ) } r e t u r n   t h i s } , s e l e c t : f u n c t i o n ( i ) { i = t h i s . _ g e t I n d e x ( i ) ; i f ( i = = - 1 ) i f ( t h i s . o p t i o n s . c o l l a p s i b l e & & t h i s . o p t i o n s . s e l e c t e d ! = - 1 ) i = t h i s . o p t i o n s . s e l e c t e d ; e l s e   r e t u r n   t h i s ; t h i s . a n c h o r s . e q ( i ) . t r i g g e r ( t h i s . o p t i o n s . e v e n t + " . t a b s " ) ; r e t u r n   t h i s } , 
 l o a d : f u n c t i o n ( i ) { i = t h i s . _ g e t I n d e x ( i ) ; v a r   b = t h i s , h = t h i s . o p t i o n s , j = t h i s . a n c h o r s . e q ( i ) [ 0 ] , l = a . d a t a ( j , " l o a d . t a b s " ) ; t h i s . a b o r t ( ) ; i f ( ! l | | t h i s . e l e m e n t . q u e u e ( " t a b s " ) . l e n g t h ! = = 0 & & a . d a t a ( j , " c a c h e . t a b s " ) ) t h i s . e l e m e n t . d e q u e u e ( " t a b s " ) ; e l s e { t h i s . l i s . e q ( i ) . a d d C l a s s ( " u i - s t a t e - p r o c e s s i n g " ) ; i f ( h . s p i n n e r ) { v a r   o = a ( " s p a n " , j ) ; o . d a t a ( " l a b e l . t a b s " , o . h t m l ( ) ) . h t m l ( h . s p i n n e r ) } t h i s . x h r = a . a j a x ( a . e x t e n d ( { } , h . a j a x O p t i o n s , { u r l : l , s u c c e s s : f u n c t i o n ( n , k ) { b . e l e m e n t . f i n d ( b . _ s a n i t i z e S e l e c t o r ( j . h a s h ) ) . h t m l ( n ) ; b . _ c l e a n u p ( ) ; h . c a c h e & & a . d a t a ( j , 
 " c a c h e . t a b s " , t r u e ) ; b . _ t r i g g e r ( " l o a d " , n u l l , b . _ u i ( b . a n c h o r s [ i ] , b . p a n e l s [ i ] ) ) ; t r y { h . a j a x O p t i o n s . s u c c e s s ( n , k ) } c a t c h ( m ) { } } , e r r o r : f u n c t i o n ( n , k ) { b . _ c l e a n u p ( ) ; b . _ t r i g g e r ( " l o a d " , n u l l , b . _ u i ( b . a n c h o r s [ i ] , b . p a n e l s [ i ] ) ) ; t r y { h . a j a x O p t i o n s . e r r o r ( n , k , i , j ) } c a t c h ( m ) { } } } ) ) ; b . e l e m e n t . d e q u e u e ( " t a b s " ) ; r e t u r n   t h i s } } , a b o r t : f u n c t i o n ( ) { t h i s . e l e m e n t . q u e u e ( [ ] ) ; t h i s . p a n e l s . s t o p ( f a l s e , t r u e ) ; t h i s . e l e m e n t . q u e u e ( " t a b s " , t h i s . e l e m e n t . q u e u e ( " t a b s " ) . s p l i c e ( - 2 , 2 ) ) ; i f ( t h i s . x h r ) { t h i s . x h r . a b o r t ( ) ; d e l e t e   t h i s . x h r } t h i s . _ c l e a n u p ( ) ; r e t u r n   t h i s } , 
 u r l : f u n c t i o n ( i , b ) { t h i s . a n c h o r s . e q ( i ) . r e m o v e D a t a ( " c a c h e . t a b s " ) . d a t a ( " l o a d . t a b s " , b ) ; r e t u r n   t h i s } , l e n g t h : f u n c t i o n ( ) { r e t u r n   t h i s . a n c h o r s . l e n g t h } } ) ; a . e x t e n d ( a . u i . t a b s , { v e r s i o n : " 1 . 8 . 1 3 " } ) ; a . e x t e n d ( a . u i . t a b s . p r o t o t y p e , { r o t a t i o n : n u l l , r o t a t e : f u n c t i o n ( i , b ) { v a r   h = t h i s , j = t h i s . o p t i o n s , l = h . _ r o t a t e | | ( h . _ r o t a t e = f u n c t i o n ( o ) { c l e a r T i m e o u t ( h . r o t a t i o n ) ; h . r o t a t i o n = s e t T i m e o u t ( f u n c t i o n ( ) { v a r   n = j . s e l e c t e d ; h . s e l e c t ( + + n < h . a n c h o r s . l e n g t h ? n : 0 ) } , i ) ; o & & o . s t o p P r o p a g a t i o n ( ) } ) ; b = h . _ u n r o t a t e | | ( h . _ u n r o t a t e = ! b ? f u n c t i o n ( o ) { o . c l i e n t X & & 
 h . r o t a t e ( n u l l ) } : f u n c t i o n ( ) { t = j . s e l e c t e d ; l ( ) } ) ; i f ( i ) { t h i s . e l e m e n t . b i n d ( " t a b s s h o w " , l ) ; t h i s . a n c h o r s . b i n d ( j . e v e n t + " . t a b s " , b ) ; l ( ) } e l s e { c l e a r T i m e o u t ( h . r o t a t i o n ) ; t h i s . e l e m e n t . u n b i n d ( " t a b s s h o w " , l ) ; t h i s . a n c h o r s . u n b i n d ( j . e v e n t + " . t a b s " , b ) ; d e l e t e   t h i s . _ r o t a t e ; d e l e t e   t h i s . _ u n r o t a t e } r e t u r n   t h i s } } ) } ) ( j Q u e r y ) ; 
 
 
 ( f u n c t i o n ( $ )   { 
 
     $ . f n . t w e e t   =   f u n c t i o n ( o ) { 
         v a r   s   =   $ . e x t e n d ( { 
             u s e r n a m e :   n u l l ,                                                       / /   [ s t r i n g   o r   a r r a y ]   r e q u i r e d   u n l e s s   u s i n g   t h e   ' q u e r y '   o p t i o n ;   o n e   o r   m o r e   t w i t t e r   s c r e e n   n a m e s 
             l i s t :   n u l l ,                                                               / /   [ s t r i n g ]       o p t i o n a l   n a m e   o f   l i s t   b e l o n g i n g   t o   u s e r n a m e 
             f a v o r i t e s :   f a l s e ,                                                   / /   [ b o o l e a n ]     d i s p l a y   t h e   u s e r ' s   f a v o r i t e s   i n s t e a d   o f   h i s   t w e e t s 
             q u e r y :   n u l l ,                                                             / /   [ s t r i n g ]       o p t i o n a l   s e a r c h   q u e r y 
             a v a t a r _ s i z e :   n u l l ,                                                 / /   [ i n t e g e r ]     h e i g h t   a n d   w i d t h   o f   a v a t a r   i f   d i s p l a y e d   ( 4 8 p x   m a x ) 
             c o u n t :   3 ,                                                                   / /   [ i n t e g e r ]     h o w   m a n y   t w e e t s   t o   d i s p l a y ? 
             f e t c h :   n u l l ,                                                             / /   [ i n t e g e r ]     h o w   m a n y   t w e e t s   t o   f e t c h   v i a   t h e   A P I   ( s e t   t h i s   h i g h e r   t h a n   ' c o u n t '   i f   u s i n g   t h e   ' f i l t e r '   o p t i o n ) 
             p a g e :   1 ,                                                                     / /   [ i n t e g e r ]     w h i c h   p a g e   o f   r e s u l t s   t o   f e t c h   ( i f   c o u n t   ! =   f e t c h ,   y o u ' l l   g e t   u n e x p e c t e d   r e s u l t s ) 
             r e t w e e t s :   t r u e ,                                                       / /   [ b o o l e a n ]     w h e t h e r   t o   f e t c h   ( o f f i c i a l )   r e t w e e t s   ( n o t   s u p p o r t e d   i n   a l l   d i s p l a y   m o d e s ) 
             i n t r o _ t e x t :   n u l l ,                                                   / /   [ s t r i n g ]       d o   y o u   w a n t   t e x t   B E F O R E   y o u r   y o u r   t w e e t s ? 
             o u t r o _ t e x t :   n u l l ,                                                   / /   [ s t r i n g ]       d o   y o u   w a n t   t e x t   A F T E R   y o u r   t w e e t s ? 
             j o i n _ t e x t :     n u l l ,                                                   / /   [ s t r i n g ]       o p t i o n a l   t e x t   i n   b e t w e e n   d a t e   a n d   t w e e t ,   t r y   s e t t i n g   t o   " a u t o " 
             a u t o _ j o i n _ t e x t _ d e f a u l t :   " i   s a i d , " ,                 / /   [ s t r i n g ]       a u t o   t e x t   f o r   n o n   v e r b :   " i   s a i d "   b u l l o c k s 
             a u t o _ j o i n _ t e x t _ e d :   " i " ,                                       / /   [ s t r i n g ]       a u t o   t e x t   f o r   p a s t   t e n s e :   " i "   s u r f e d 
             a u t o _ j o i n _ t e x t _ i n g :   " i   a m " ,                               / /   [ s t r i n g ]       a u t o   t e n s e   f o r   p r e s e n t   t e n s e :   " i   w a s "   s u r f i n g 
             a u t o _ j o i n _ t e x t _ r e p l y :   " i   r e p l i e d   t o " ,           / /   [ s t r i n g ]       a u t o   t e n s e   f o r   r e p l i e s :   " i   r e p l i e d   t o "   @ s o m e o n e   " w i t h " 
             a u t o _ j o i n _ t e x t _ u r l :   " i   w a s   l o o k i n g   a t " ,       / /   [ s t r i n g ]       a u t o   t e n s e   f o r   u r l s :   " i   w a s   l o o k i n g   a t "   h t t p : . . . 
             l o a d i n g _ t e x t :   n u l l ,                                               / /   [ s t r i n g ]       o p t i o n a l   l o a d i n g   t e x t ,   d i s p l a y e d   w h i l e   t w e e t s   l o a d 
             r e f r e s h _ i n t e r v a l :   n u l l   ,                                     / /   [ i n t e g e r ]     o p t i o n a l   n u m b e r   o f   s e c o n d s   a f t e r   w h i c h   t o   r e l o a d   t w e e t s 
             t w i t t e r _ u r l :   " t w i t t e r . c o m " ,                               / /   [ s t r i n g ]       c u s t o m   t w i t t e r   u r l ,   i f   a n y   ( a p i g e e ,   e t c . ) 
             t w i t t e r _ a p i _ u r l :   " a p i . t w i t t e r . c o m " ,               / /   [ s t r i n g ]       c u s t o m   t w i t t e r   a p i   u r l ,   i f   a n y   ( a p i g e e ,   e t c . ) 
             t w i t t e r _ s e a r c h _ u r l :   " s e a r c h . t w i t t e r . c o m " ,   / /   [ s t r i n g ]       c u s t o m   t w i t t e r   s e a r c h   u r l ,   i f   a n y   ( a p i g e e ,   e t c . ) 
             t e m p l a t e :   " { a v a t a r } { t e x t } { j o i n } { t i m e } " ,       / /   [ s t r i n g   o r   f u n c t i o n ]   t e m p l a t e   u s e d   t o   c o n s t r u c t   e a c h   t w e e t   < l i >   -   s e e   c o d e   f o r   a v a i l a b l e   v a r s 
             c o m p a r a t o r :   f u n c t i o n ( t w e e t 1 ,   t w e e t 2 )   {         / /   [ f u n c t i o n ]   c o m p a r a t o r   u s e d   t o   s o r t   t w e e t s   ( s e e   A r r a y . s o r t ) 
                 r e t u r n   t w e e t 2 [ " t w e e t _ t i m e " ]   -   t w e e t 1 [ " t w e e t _ t i m e " ] ; 
             } , 
             f i l t e r :   f u n c t i o n ( t w e e t )   {                                   / /   [ f u n c t i o n ]   w h e t h e r   o r   n o t   t o   i n c l u d e   a   p a r t i c u l a r   t w e e t   ( b e   s u r e   t o   a l s o   s e t   ' f e t c h ' ) 
                 r e t u r n   t r u e ; 
             } 
         } ,   o ) ; 
 
         $ . f n . e x t e n d ( { 
             l i n k U r l :   f u n c t i o n ( )   { 
                 v a r   r e t u r n i n g   =   [ ] ; 
                 / /   S e e   h t t p : / / d a r i n g f i r e b a l l . n e t / 2 0 1 0 / 0 7 / i m p r o v e d _ r e g e x _ f o r _ m a t c h i n g _ u r l s 
                 v a r   r e g e x p   =   / \ b ( ( ? : [ a - z ] [ \ w - ] + : ( ? : \ / { 1 , 3 } | [ a - z 0 - 9 % ] ) | w w w \ d { 0 , 3 } [ . ] | [ a - z 0 - 9 . \ - ] + [ . ] [ a - z ] { 2 , 4 } \ / ) ( ? : [ ^ \ s ( ) < > ] + | \ ( ( [ ^ \ s ( ) < > ] + | ( \ ( [ ^ \ s ( ) < > ] + \ ) ) ) * \ ) ) + ( ? : \ ( ( [ ^ \ s ( ) < > ] + | ( \ ( [ ^ \ s ( ) < > ] + \ ) ) ) * \ ) | [ ^ \ s ` ! ( ) \ [ \ ] { } ; : ' " . , < > ? « »     ] ) ) / g i ; 
                 t h i s . e a c h ( f u n c t i o n ( )   { 
                     r e t u r n i n g . p u s h ( t h i s . r e p l a c e ( r e g e x p , 
                                                                             f u n c t i o n ( m a t c h )   { 
                                                                                 v a r   u r l   =   ( / ^ [ a - z ] + : / i ) . t e s t ( m a t c h )   ?   m a t c h   :   " h t t p : / / " + m a t c h ; 
                                                                                 r e t u r n   " < a   h r e f = \ " " + u r l + " \ " > " + m a t c h + " < / a > " ; 
                                                                             } ) ) ; 
                 } ) ; 
                 r e t u r n   $ ( r e t u r n i n g ) ; 
             } , 
             l i n k U s e r :   f u n c t i o n ( )   { 
                 v a r   r e t u r n i n g   =   [ ] ; 
                 v a r   r e g e x p   =   / [ \ @ ] + ( \ w + ) / g i ; 
                 t h i s . e a c h ( f u n c t i o n ( )   { 
                     r e t u r n i n g . p u s h ( t h i s . r e p l a c e ( r e g e x p , " @ < a   h r e f = \ " h t t p : / / " + s . t w i t t e r _ u r l + " / $ 1 \ " > $ 1 < / a > " ) ) ; 
                 } ) ; 
                 r e t u r n   $ ( r e t u r n i n g ) ; 
             } , 
             l i n k H a s h :   f u n c t i o n ( )   { 
                 v a r   r e t u r n i n g   =   [ ] ; 
                 / /   S u p p o r t   v a r i o u s   l a t i n 1   ( \ u 0 0 * * )   a n d   a r a b i c   ( \ u 0 6 * * )   a l p h a n u m e r i c   c h a r s 
                 v a r   r e g e x p   =   / ( ? : ^ |   ) [ \ # ] + ( [ \ w \ u 0 0 c 0 - \ u 0 0 d 6 \ u 0 0 d 8 - \ u 0 0 f 6 \ u 0 0 f 8 - \ u 0 0 f f \ u 0 6 0 0 - \ u 0 6 f f ] + ) / g i ; 
                 v a r   u s e r c o n d   =   ( s . u s e r n a m e   & &   s . u s e r n a m e . l e n g t h   = =   1 )   ?   ' & f r o m = ' + s . u s e r n a m e . j o i n ( " % 2 B O R % 2 B " )   :   ' ' ; 
                 t h i s . e a c h ( f u n c t i o n ( )   { 
                     r e t u r n i n g . p u s h ( t h i s . r e p l a c e ( r e g e x p ,   '   < a   h r e f = " h t t p : / / ' + s . t w i t t e r _ s e a r c h _ u r l + ' / s e a r c h ? q = & t a g = $ 1 & l a n g = a l l ' + u s e r c o n d + ' " > # $ 1 < / a > ' ) ) ; 
                 } ) ; 
                 r e t u r n   $ ( r e t u r n i n g ) ; 
             } , 
             c a p A w e s o m e :   f u n c t i o n ( )   { 
                 v a r   r e t u r n i n g   =   [ ] ; 
                 t h i s . e a c h ( f u n c t i o n ( )   { 
                     r e t u r n i n g . p u s h ( t h i s . r e p l a c e ( / \ b ( a w e s o m e ) \ b / g i ,   ' < s p a n   c l a s s = " a w e s o m e " > $ 1 < / s p a n > ' ) ) ; 
                 } ) ; 
                 r e t u r n   $ ( r e t u r n i n g ) ; 
             } , 
             c a p E p i c :   f u n c t i o n ( )   { 
                 v a r   r e t u r n i n g   =   [ ] ; 
                 t h i s . e a c h ( f u n c t i o n ( )   { 
                     r e t u r n i n g . p u s h ( t h i s . r e p l a c e ( / \ b ( e p i c ) \ b / g i ,   ' < s p a n   c l a s s = " e p i c " > $ 1 < / s p a n > ' ) ) ; 
                 } ) ; 
                 r e t u r n   $ ( r e t u r n i n g ) ; 
             } , 
             m a k e H e a r t :   f u n c t i o n ( )   { 
                 v a r   r e t u r n i n g   =   [ ] ; 
                 t h i s . e a c h ( f u n c t i o n ( )   { 
                     r e t u r n i n g . p u s h ( t h i s . r e p l a c e ( / ( & l t ; ) + [ 3 ] / g i ,   " < t t   c l a s s = ' h e a r t ' > & # x 2 6 6 5 ; < / t t > " ) ) ; 
                 } ) ; 
                 r e t u r n   $ ( r e t u r n i n g ) ; 
             } 
         } ) ; 
 
         f u n c t i o n   p a r s e _ d a t e ( d a t e _ s t r )   { 
             / /   T h e   n o n - s e a r c h   t w i t t e r   A P I s   r e t u r n   i n c o n s i s t e n t l y - f o r m a t t e d   d a t e s ,   w h i c h   D a t e . p a r s e 
             / /   c a n n o t   h a n d l e   i n   I E .   W e   t h e r e f o r e   p e r f o r m   t h e   f o l l o w i n g   t r a n s f o r m a t i o n : 
             / /   " W e d   A p r   2 9   0 8 : 5 3 : 3 1   + 0 0 0 0   2 0 0 9 "   = >   " W e d ,   A p r   2 9   2 0 0 9   0 8 : 5 3 : 3 1   + 0 0 0 0 " 
             r e t u r n   D a t e . p a r s e ( d a t e _ s t r . r e p l a c e ( / ^ ( [ a - z ] { 3 } ) (   [ a - z ] { 3 }   \ d \ d ? ) ( . * ) (   \ d { 4 } ) $ / i ,   ' $ 1 , $ 2 $ 4 $ 3 ' ) ) ; 
         } 
 
         f u n c t i o n   r e l a t i v e _ t i m e ( d a t e )   { 
             v a r   r e l a t i v e _ t o   =   ( a r g u m e n t s . l e n g t h   >   1 )   ?   a r g u m e n t s [ 1 ]   :   n e w   D a t e ( ) ; 
             v a r   d e l t a   =   p a r s e I n t ( ( r e l a t i v e _ t o . g e t T i m e ( )   -   d a t e )   /   1 0 0 0 ,   1 0 ) ; 
             v a r   r   =   ' ' ; 
             i f   ( d e l t a   <   6 0 )   { 
                 r   =   d e l t a   +   '   s e c o n d s   a g o ' ; 
             }   e l s e   i f ( d e l t a   <   1 2 0 )   { 
                 r   =   ' a   m i n u t e   a g o ' ; 
             }   e l s e   i f ( d e l t a   <   ( 4 5 * 6 0 ) )   { 
                 r   =   ( p a r s e I n t ( d e l t a   /   6 0 ,   1 0 ) ) . t o S t r i n g ( )   +   '   m i n u t e s   a g o ' ; 
             }   e l s e   i f ( d e l t a   <   ( 2 * 6 0 * 6 0 ) )   { 
                 r   =   ' 1   h o u r   a g o ' ; 
             }   e l s e   i f ( d e l t a   <   ( 2 4 * 6 0 * 6 0 ) )   { 
                 r   =   ' '   +   ( p a r s e I n t ( d e l t a   /   3 6 0 0 ,   1 0 ) ) . t o S t r i n g ( )   +   '   h o u r s   a g o ' ; 
             }   e l s e   i f ( d e l t a   <   ( 4 8 * 6 0 * 6 0 ) )   { 
                 r   =   ' a   d a y   a g o ' ; 
             }   e l s e   { 
                 r   =   ( p a r s e I n t ( d e l t a   /   8 6 4 0 0 ,   1 0 ) ) . t o S t r i n g ( )   +   '   d a y s   a g o ' ; 
             } 
             r e t u r n   ' '   +   r ; 
         } 
 
         f u n c t i o n   b u i l d _ u r l ( )   { 
             v a r   p r o t o   =   ( ' h t t p s : '   = =   d o c u m e n t . l o c a t i o n . p r o t o c o l   ?   ' h t t p s : '   :   ' h t t p : ' ) ; 
             v a r   c o u n t   =   ( s . f e t c h   = = =   n u l l )   ?   s . c o u n t   :   s . f e t c h ; 
             i f   ( s . l i s t )   { 
                 r e t u r n   p r o t o + " / / " + s . t w i t t e r _ a p i _ u r l + " / 1 / " + s . u s e r n a m e [ 0 ] + " / l i s t s / " + s . l i s t + " / s t a t u s e s . j s o n ? p a g e = " + s . p a g e + " & p e r _ p a g e = " + c o u n t + " & c a l l b a c k = ? " ; 
             }   e l s e   i f   ( s . f a v o r i t e s )   { 
                 r e t u r n   p r o t o + " / / " + s . t w i t t e r _ a p i _ u r l + " / f a v o r i t e s / " + s . u s e r n a m e [ 0 ] + " . j s o n ? p a g e = " + s . p a g e + " & c o u n t = " + s . c o u n t + " & c a l l b a c k = ? " ; 
             }   e l s e   i f   ( s . q u e r y   = = =   n u l l   & &   s . u s e r n a m e . l e n g t h   = =   1 )   { 
                 r e t u r n   p r o t o + ' / / ' + s . t w i t t e r _ a p i _ u r l + ' / 1 / s t a t u s e s / u s e r _ t i m e l i n e . j s o n ? s c r e e n _ n a m e = ' + s . u s e r n a m e [ 0 ] + ' & c o u n t = ' + c o u n t + ( s . r e t w e e t s   ?   ' & i n c l u d e _ r t s = 1 '   :   ' ' ) + ' & p a g e = ' + s . p a g e + ' & c a l l b a c k = ? ' ; 
             }   e l s e   { 
                 v a r   q u e r y   =   ( s . q u e r y   | |   ' f r o m : ' + s . u s e r n a m e . j o i n ( '   O R   f r o m : ' ) ) ; 
                 r e t u r n   p r o t o + ' / / ' + s . t w i t t e r _ s e a r c h _ u r l + ' / s e a r c h . j s o n ? & q = ' + e n c o d e U R I C o m p o n e n t ( q u e r y ) + ' & r p p = ' + c o u n t + ' & p a g e = ' + s . p a g e + ' & c a l l b a c k = ? ' ; 
             } 
         } 
 
         r e t u r n   t h i s . e a c h ( f u n c t i o n ( i ,   w i d g e t ) { 
             v a r   l i s t   =   $ ( ' < u l   c l a s s = " t w e e t _ l i s t " > ' ) . a p p e n d T o ( w i d g e t ) ; 
             v a r   i n t r o   =   ' < p   c l a s s = " t w e e t _ i n t r o " > ' + s . i n t r o _ t e x t + ' < / p > ' ; 
             v a r   o u t r o   =   ' < p   c l a s s = " t w e e t _ o u t r o " > ' + s . o u t r o _ t e x t + ' < / p > ' ; 
             v a r   l o a d i n g   =   $ ( ' < p   c l a s s = " l o a d i n g " > ' + s . l o a d i n g _ t e x t + ' < / p > ' ) ; 
 
             i f ( s . u s e r n a m e   & &   t y p e o f ( s . u s e r n a m e )   = =   " s t r i n g " ) { 
                 s . u s e r n a m e   =   [ s . u s e r n a m e ] ; 
             } 
 
             v a r   e x p a n d _ t e m p l a t e   =   f u n c t i o n ( i n f o )   { 
                 i f   ( t y p e o f   s . t e m p l a t e   = = =   " s t r i n g " )   { 
                     v a r   r e s u l t   =   s . t e m p l a t e ; 
                     f o r ( v a r   k e y   i n   i n f o )   { 
                         v a r   v a l   =   i n f o [ k e y ] ; 
                         r e s u l t   =   r e s u l t . r e p l a c e ( n e w   R e g E x p ( ' { ' + k e y + ' } ' , ' g ' ) ,   v a l   = = =   n u l l   ?   ' '   :   v a l ) ; 
                     } 
                     r e t u r n   r e s u l t ; 
                 }   e l s e   r e t u r n   s . t e m p l a t e ( i n f o ) ; 
             } ; 
 
             i f   ( s . l o a d i n g _ t e x t )   $ ( w i d g e t ) . a p p e n d ( l o a d i n g ) ; 
             $ ( w i d g e t ) . b i n d ( " l o a d " ,   f u n c t i o n ( ) { 
                 $ . g e t J S O N ( b u i l d _ u r l ( ) ,   f u n c t i o n ( d a t a ) { 
                     i f   ( s . l o a d i n g _ t e x t )   l o a d i n g . r e m o v e ( ) ; 
                     i f   ( s . i n t r o _ t e x t )   l i s t . b e f o r e ( i n t r o ) ; 
                     l i s t . e m p t y ( ) ; 
 
                     v a r   t w e e t s   =   $ . m a p ( d a t a . r e s u l t s   | |   d a t a ,   f u n c t i o n ( i t e m ) { 
                         v a r   j o i n _ t e x t   =   s . j o i n _ t e x t ; 
 
                         / /   a u t o   j o i n   t e x t   b a s e d   o n   v e r b   t e n s e   a n d   c o n t e n t 
                         i f   ( s . j o i n _ t e x t   = =   " a u t o " )   { 
                             i f   ( i t e m . t e x t . m a t c h ( / ^ ( @ ( [ A - Z a - z 0 - 9 - _ ] + ) )   . * / i ) )   { 
                                 j o i n _ t e x t   =   s . a u t o _ j o i n _ t e x t _ r e p l y ; 
                             }   e l s e   i f   ( i t e m . t e x t . m a t c h ( / ( ^ \ w + : \ / \ / [ A - Z a - z 0 - 9 - _ ] + \ . [ A - Z a - z 0 - 9 - _ : % & \ ? \ / . = ] + )   . * / i ) )   { 
                                 j o i n _ t e x t   =   s . a u t o _ j o i n _ t e x t _ u r l ; 
                             }   e l s e   i f   ( i t e m . t e x t . m a t c h ( / ^ ( ( \ w + e d ) | j u s t )   . * / i m ) )   { 
                                 j o i n _ t e x t   =   s . a u t o _ j o i n _ t e x t _ e d ; 
                             }   e l s e   i f   ( i t e m . t e x t . m a t c h ( / ^ ( \ w * i n g )   . * / i ) )   { 
                                 j o i n _ t e x t   =   s . a u t o _ j o i n _ t e x t _ i n g ; 
                             }   e l s e   { 
                                 j o i n _ t e x t   =   s . a u t o _ j o i n _ t e x t _ d e f a u l t ; 
                             } 
                         } 
 
                         / /   B a s i c   b u i l d i n g   b l o c k s   f o r   c o n s t r u c t i n g   t w e e t   < l i >   u s i n g   a   t e m p l a t e 
                         v a r   s c r e e n _ n a m e   =   i t e m . f r o m _ u s e r   | |   i t e m . u s e r . s c r e e n _ n a m e ; 
                         v a r   s o u r c e   =   i t e m . s o u r c e ; 
                         v a r   u s e r _ u r l   =   " h t t p : / / " + s . t w i t t e r _ u r l + " / " + s c r e e n _ n a m e ; 
                         v a r   a v a t a r _ s i z e   =   s . a v a t a r _ s i z e ; 
                         v a r   a v a t a r _ u r l   =   i t e m . p r o f i l e _ i m a g e _ u r l   | |   i t e m . u s e r . p r o f i l e _ i m a g e _ u r l ; 
                         v a r   t w e e t _ u r l   =   " h t t p : / / " + s . t w i t t e r _ u r l + " / " + s c r e e n _ n a m e + " / s t a t u s / " + i t e m . i d _ s t r ; 
                         v a r   r e t w e e t   =   ( t y p e o f ( i t e m . r e t w e e t e d _ s t a t u s )   ! =   ' u n d e f i n e d ' ) ; 
                         v a r   r e t w e e t e d _ s c r e e n _ n a m e   =   r e t w e e t   ?   i t e m . r e t w e e t e d _ s t a t u s . u s e r . s c r e e n _ n a m e   :   n u l l ; 
                         v a r   t w e e t _ t i m e   =   p a r s e _ d a t e ( i t e m . c r e a t e d _ a t ) ; 
                         v a r   t w e e t _ r e l a t i v e _ t i m e   =   r e l a t i v e _ t i m e ( t w e e t _ t i m e ) ; 
                         v a r   t w e e t _ r a w _ t e x t   =   r e t w e e t   ?   ( ' R T   @ ' + r e t w e e t e d _ s c r e e n _ n a m e + '   ' + i t e m . r e t w e e t e d _ s t a t u s . t e x t )   :   i t e m . t e x t ;   / /   a v o i d   ' . . . '   i n   l o n g   r e t w e e t s 
                         v a r   t w e e t _ t e x t   =   $ ( [ t w e e t _ r a w _ t e x t ] ) . l i n k U r l ( ) . l i n k U s e r ( ) . l i n k H a s h ( ) [ 0 ] ; 
 
                         / /   D e f a u l t   s p a n s ,   a n d   p r e - f o r m a t t e d   b l o c k s   f o r   c o m m o n   l a y o u t s 
                         v a r   u s e r   =   ' < a   c l a s s = " t w e e t _ u s e r "   h r e f = " ' + u s e r _ u r l + ' " > ' + s c r e e n _ n a m e + ' < / a > ' ; 
                         v a r   j o i n   =   ' < b r / > ' ; 
                         v a r   a v a t a r   =   ( a v a t a r _ s i z e   ? 
                                                     ( ' < a   c l a s s = " t w e e t _ a v a t a r "   h r e f = " ' + u s e r _ u r l + ' " > < i m g   s r c = " ' + a v a t a r _ u r l + 
                                                       ' "   h e i g h t = " ' + a v a t a r _ s i z e + ' "   w i d t h = " ' + a v a t a r _ s i z e + 
                                                       ' "   a l t = " ' + s c r e e n _ n a m e + ' \ ' s   a v a t a r "   t i t l e = " ' + s c r e e n _ n a m e + ' \ ' s   a v a t a r "   b o r d e r = " 0 " / > < / a > ' )   :   ' ' ) ; 
                         
                         v a r   t e x t   =   ' < s p a n   c l a s s = " t w e e t _ t e x t " > ' + $ ( [ t w e e t _ t e x t ] ) . m a k e H e a r t ( ) . c a p A w e s o m e ( ) . c a p E p i c ( ) [ 0 ] +   ' < / s p a n > ' ; 
                         v a r   t i m e   =   ' < s p a n   c l a s s = " t w e e t _ t i m e " > < a   h r e f = " ' + t w e e t _ u r l + ' "   t i t l e = " v i e w   t w e e t   o n   t w i t t e r " > ' + t w e e t _ r e l a t i v e _ t i m e + ' < / a > < / s p a n > ' ; 
                         v a r   r e p l y _ u r l   =   " h t t p : / / " + s . t w i t t e r _ u r l + " / i n t e n t / t w e e t ? i n _ r e p l y _ t o = " + i t e m . i d _ s t r ; 
                         v a r   r e t w e e t _ u r l   =   " h t t p : / / " + s . t w i t t e r _ u r l + " / i n t e n t / r e t w e e t ? t w e e t _ i d = " + i t e m . i d _ s t r ; 
                         v a r   f a v o r i t e _ u r l   =   " h t t p : / / " + s . t w i t t e r _ u r l + " / i n t e n t / f a v o r i t e ? t w e e t _ i d = " + i t e m . i d _ s t r ; 
                         v a r   r e p l y _ a c t i o n   =   ' < a   c l a s s = " t w e e t _ a c t i o n   t w e e t _ r e p l y "   h r e f = " ' + r e p l y _ u r l + ' " > r e p l y < / a > ' ; 
                         v a r   r e t w e e t _ a c t i o n   =   ' < a   c l a s s = " t w e e t _ a c t i o n   t w e e t _ r e t w e e t "   h r e f = " ' + r e t w e e t _ u r l + ' " > r e t w e e t < / a > ' ; 
                         v a r   f a v o r i t e _ a c t i o n   =   ' < a   c l a s s = " t w e e t _ a c t i o n   t w e e t _ f a v o r i t e "   h r e f = " ' + f a v o r i t e _ u r l + ' " > f a v o r i t e < / a > ' ; 
 
                         r e t u r n   {   i t e m :   i t e m ,   / /   F o r   a d v a n c e d   u s e r s   w h o   w a n t   t o   d i g   o u t   o t h e r   i n f o 
                                           s c r e e n _ n a m e :   s c r e e n _ n a m e , 
                                           u s e r _ u r l :   u s e r _ u r l , 
                                           a v a t a r _ s i z e :   a v a t a r _ s i z e , 
                                           a v a t a r _ u r l :   a v a t a r _ u r l , 
                                           s o u r c e :   s o u r c e , 
                                           t w e e t _ u r l :   t w e e t _ u r l , 
                                           t w e e t _ t i m e :   t w e e t _ t i m e , 
                                           t w e e t _ r e l a t i v e _ t i m e :   t w e e t _ r e l a t i v e _ t i m e , 
                                           t w e e t _ r a w _ t e x t :   t w e e t _ r a w _ t e x t , 
                                           t w e e t _ t e x t :   t w e e t _ t e x t , 
                                           r e t w e e t :   r e t w e e t , 
                                           r e t w e e t e d _ s c r e e n _ n a m e :   r e t w e e t e d _ s c r e e n _ n a m e , 
                                           u s e r :   u s e r , 
                                           j o i n :   j o i n , 
                                           a v a t a r :   a v a t a r , 
                                           t e x t :   t e x t , 
                                           t i m e :   t i m e , 
                                           r e p l y _ u r l :   r e p l y _ u r l , 
                                           f a v o r i t e _ u r l :   f a v o r i t e _ u r l , 
                                           r e t w e e t _ u r l :   r e t w e e t _ u r l , 
                                           r e p l y _ a c t i o n :   r e p l y _ a c t i o n , 
                                           f a v o r i t e _ a c t i o n :   f a v o r i t e _ a c t i o n , 
                                           r e t w e e t _ a c t i o n :   r e t w e e t _ a c t i o n 
                                       } ; 
                     } ) ; 
 
                     t w e e t s   =   $ . g r e p ( t w e e t s ,   s . f i l t e r ) . s o r t ( s . c o m p a r a t o r ) . s l i c e ( 0 ,   s . c o u n t ) ; 
                     l i s t . a p p e n d ( $ . m a p ( t w e e t s , 
                                                         f u n c t i o n ( t )   {   r e t u r n   " < l i > "   +   e x p a n d _ t e m p l a t e ( t )   +   " < / l i > " ;   } ) . j o i n ( ' ' ) ) . 
                             c h i l d r e n ( ' l i : f i r s t ' ) . a d d C l a s s ( ' t w e e t _ f i r s t ' ) . e n d ( ) . 
                             c h i l d r e n ( ' l i : o d d ' ) . a d d C l a s s ( ' t w e e t _ e v e n ' ) . e n d ( ) . 
                             c h i l d r e n ( ' l i : e v e n ' ) . a d d C l a s s ( ' t w e e t _ o d d ' ) ; 
 
                     i f   ( s . o u t r o _ t e x t )   l i s t . a f t e r ( o u t r o ) ; 
                     $ ( w i d g e t ) . t r i g g e r ( " l o a d e d " ) . t r i g g e r ( ( t w e e t s . l e n g t h   = = =   0   ?   " e m p t y "   :   " f u l l " ) ) ; 
                     i f   ( s . r e f r e s h _ i n t e r v a l )   { 
                         w i n d o w . s e t T i m e o u t ( f u n c t i o n ( )   {   $ ( w i d g e t ) . t r i g g e r ( " l o a d " ) ;   } ,   1 0 0 0   *   s . r e f r e s h _ i n t e r v a l ) ; 
                     } 
                 } ) ; 
             } ) . t r i g g e r ( " l o a d " ) ; 
         } ) ; 
     } ; 
 } ) ( j Q u e r y ) ; 
 
 / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 D O C U M E N T :   i n c l u d e s / j a v a s c r i p t . j s 
 D E V E L O P E D   B Y :   R y a n   S t e m k o s k i 
 C O M P A N Y :   Z i p l i n e   I n t e r a c t i v e 
 E M A I L :   r y a n @ g o z i p l i n e . c o m 
 P H O N E :   5 0 9 - 3 2 1 - 2 8 4 9 
 D A T E :   3 / 2 6 / 2 0 0 9 
 U P D A T E D :   3 / 2 5 / 2 0 1 0 
 D E S C R I P T I O N :   T h i s   i s   t h e   J a v a S c r i p t   r e q u i r e d   t o   c r e a t e   t h e   a c c o r d i o n   s t y l e   m e n u .     R e q u i r e s   j Q u e r y   l i b r a r y 
 N O T E :   B e c a u s e   o f   a   b u g   i n   j Q u e r y   w i t h   I E 8   w e   h a d   t o   a d d   a n   I E   s t y l e s h e e t   h a c k   t o   g e t   t h e   s y s t e m   t o   w o r k   i n   a l l   b r o w s e r s .   I   h a t e   h a c k s   b u t   h a d   n o   c h o i c e   : ( . 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * / 
 $ ( d o c u m e n t ) . r e a d y ( f u n c t i o n ( )   { 
 	   
 	 / / A C C O R D I O N   B U T T O N   A C T I O N   ( O N   C L I C K   D O   T H E   F O L L O W I N G ) 
 	 $ ( ' . a c c o r d i o n B u t t o n ' ) . c l i c k ( f u n c t i o n ( )   { 
 
 	 	 / / R E M O V E   T H E   O N   C L A S S   F R O M   A L L   B U T T O N S 
 	 	 $ ( ' . a c c o r d i o n B u t t o n ' ) . r e m o v e C l a s s ( ' o n ' ) ; 
 	 	     
 	 	 / / N O   M A T T E R   W H A T   W E   C L O S E   A L L   O P E N   S L I D E S 
 	   	 $ ( ' . a c c o r d i o n C o n t e n t ' ) . s l i d e U p ( { d u r a t i o n :   4 0 0 ,   e a s i n g :   ' s w i n g ' } ) ; 
       
 	 	 / / I F   T H E   N E X T   S L I D E   W A S N ' T   O P E N   T H E N   O P E N   I T 
 	 	 i f ( $ ( t h i s ) . n e x t ( ) . i s ( ' : h i d d e n ' )   = =   t r u e )   { 
 	 	 	 
 	 	 	 / / A D D   T H E   O N   C L A S S   T O   T H E   B U T T O N 
 	 	 	 $ ( t h i s ) . a d d C l a s s ( ' o n ' ) ; 
 	 	 	     
 	 	 	 / / O P E N   T H E   S L I D E 
 	 	 	 $ ( t h i s ) . n e x t ( ) . s l i d e D o w n ( { d u r a t i o n :   4 0 0 ,   e a s i n g :   ' s w i n g ' } ) ; 
 	 	   }   
 	 	     
 	   } ) ; 
 	     
 	 
 	 / * * *   R E M O V E   I F   M O U S E O V E R   I S   N O T   R E Q U I R E D   * * * / 
 	 
 	 / / A D D S   T H E   . O V E R   C L A S S   F R O M   T H E   S T Y L E S H E E T   O N   M O U S E O V E R   
 	 $ ( ' . a c c o r d i o n B u t t o n ' ) . m o u s e o v e r ( f u n c t i o n ( )   { 
 	 	 $ ( t h i s ) . a d d C l a s s ( ' o v e r ' ) ; 
 	 	 
 	 / / O N   M O U S E O U T   R E M O V E   T H E   O V E R   C L A S S 
 	 } ) . m o u s e o u t ( f u n c t i o n ( )   { 
 	 	 $ ( t h i s ) . r e m o v e C l a s s ( ' o v e r ' ) ; 	 	 	 	 	 	 	 	 	 	 
 	 } ) ; 
 	 
 	 / * * *   E N D   R E M O V E   I F   M O U S E O V E R   I S   N O T   R E Q U I R E D   * * * / 
 	 
 	 
 	 / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 	 C L O S E S   A L L   S   O N   P A G E   L O A D 
 	 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * / 	 
 	 $ ( ' . a c c o r d i o n C o n t e n t ' ) . h i d e ( ) ; 
 	 
 	 e x p a n d _ a c c o r d i o n ( ) ; 
 
 } ) ; 
 
 / * 
   *   j Q u e r y   N i v o   S l i d e r   v 2 . 5 . 2 
   *   h t t p : / / n i v o . d e v 7 s t u d i o s . c o m 
   * 
   *   C o p y r i g h t   2 0 1 1 ,   G i l b e r t   P e l l e g r o m 
   *   F r e e   t o   u s e   a n d   a b u s e   u n d e r   t h e   M I T   l i c e n s e . 
   *   h t t p : / / w w w . o p e n s o u r c e . o r g / l i c e n s e s / m i t - l i c e n s e . p h p 
   *   
   *   M a r c h   2 0 1 0 
   * / 
 
 ( f u n c t i o n ( $ )   { 
 
         v a r   N i v o S l i d e r   =   f u n c t i o n ( e l e m e n t ,   o p t i o n s ) { 
 	 	 / / D e f a u l t s   a r e   b e l o w 
 	 	 v a r   s e t t i n g s   =   $ . e x t e n d ( { } ,   $ . f n . n i v o S l i d e r . d e f a u l t s ,   o p t i o n s ) ; 
 
                 / / U s e f u l   v a r i a b l e s .   P l a y   c a r e f u l l y . 
                 v a r   v a r s   =   { 
                         c u r r e n t S l i d e :   0 , 
                         c u r r e n t I m a g e :   ' ' , 
                         t o t a l S l i d e s :   0 , 
                         r a n d A n i m :   ' ' , 
                         r u n n i n g :   f a l s e , 
                         p a u s e d :   f a l s e , 
                         s t o p :   f a l s e 
                 } ; 
         
                 / / G e t   t h i s   s l i d e r 
                 v a r   s l i d e r   =   $ ( e l e m e n t ) ; 
                 s l i d e r . d a t a ( ' n i v o : v a r s ' ,   v a r s ) ; 
                 s l i d e r . c s s ( ' p o s i t i o n ' , ' r e l a t i v e ' ) ; 
                 s l i d e r . a d d C l a s s ( ' n i v o S l i d e r ' ) ; 
                 
                 / / F i n d   o u r   s l i d e r   c h i l d r e n 
                 v a r   k i d s   =   s l i d e r . c h i l d r e n ( ) ; 
                 k i d s . e a c h ( f u n c t i o n ( )   { 
                         v a r   c h i l d   =   $ ( t h i s ) ; 
                         v a r   l i n k   =   ' ' ; 
                         i f ( ! c h i l d . i s ( ' i m g ' ) ) { 
                                 i f ( c h i l d . i s ( ' a ' ) ) { 
                                         c h i l d . a d d C l a s s ( ' n i v o - i m a g e L i n k ' ) ; 
                                         l i n k   =   c h i l d ; 
                                 } 
                                 c h i l d   =   c h i l d . f i n d ( ' i m g : f i r s t ' ) ; 
                         } 
                         / / G e t   i m g   w i d t h   &   h e i g h t 
                         v a r   c h i l d W i d t h   =   c h i l d . w i d t h ( ) ; 
                         i f ( c h i l d W i d t h   = =   0 )   c h i l d W i d t h   =   c h i l d . a t t r ( ' w i d t h ' ) ; 
                         v a r   c h i l d H e i g h t   =   c h i l d . h e i g h t ( ) ; 
                         i f ( c h i l d H e i g h t   = =   0 )   c h i l d H e i g h t   =   c h i l d . a t t r ( ' h e i g h t ' ) ; 
                         / / R e s i z e   t h e   s l i d e r 
                         i f ( c h i l d W i d t h   >   s l i d e r . w i d t h ( ) ) { 
                                 s l i d e r . w i d t h ( c h i l d W i d t h ) ; 
                         } 
                         i f ( c h i l d H e i g h t   >   s l i d e r . h e i g h t ( ) ) { 
                                 s l i d e r . h e i g h t ( c h i l d H e i g h t ) ; 
                         } 
                         i f ( l i n k   ! =   ' ' ) { 
                                 l i n k . c s s ( ' d i s p l a y ' , ' n o n e ' ) ; 
                         } 
                         c h i l d . c s s ( ' d i s p l a y ' , ' n o n e ' ) ; 
                         v a r s . t o t a l S l i d e s + + ; 
                 } ) ; 
                 
                 / / S e t   s t a r t S l i d e 
                 i f ( s e t t i n g s . s t a r t S l i d e   >   0 ) { 
                         i f ( s e t t i n g s . s t a r t S l i d e   > =   v a r s . t o t a l S l i d e s )   s e t t i n g s . s t a r t S l i d e   =   v a r s . t o t a l S l i d e s   -   1 ; 
                         v a r s . c u r r e n t S l i d e   =   s e t t i n g s . s t a r t S l i d e ; 
                 } 
                 
                 / / G e t   i n i t i a l   i m a g e 
                 i f ( $ ( k i d s [ v a r s . c u r r e n t S l i d e ] ) . i s ( ' i m g ' ) ) { 
                         v a r s . c u r r e n t I m a g e   =   $ ( k i d s [ v a r s . c u r r e n t S l i d e ] ) ; 
                 }   e l s e   { 
                         v a r s . c u r r e n t I m a g e   =   $ ( k i d s [ v a r s . c u r r e n t S l i d e ] ) . f i n d ( ' i m g : f i r s t ' ) ; 
                 } 
                 
                 / / S h o w   i n i t i a l   l i n k 
                 i f ( $ ( k i d s [ v a r s . c u r r e n t S l i d e ] ) . i s ( ' a ' ) ) { 
                         $ ( k i d s [ v a r s . c u r r e n t S l i d e ] ) . c s s ( ' d i s p l a y ' , ' b l o c k ' ) ; 
                 } 
                 
                 / / S e t   f i r s t   b a c k g r o u n d 
                 s l i d e r . c s s ( ' b a c k g r o u n d ' , ' u r l ( " ' +   v a r s . c u r r e n t I m a g e . a t t r ( ' s r c ' )   + ' " )   n o - r e p e a t ' ) ; 
 
                 / / C r e a t e   c a p t i o n 
                 s l i d e r . a p p e n d ( 
                         $ ( ' < d i v   c l a s s = " n i v o - c a p t i o n " > < p > < / p > < / d i v > ' ) . c s s ( {   d i s p l a y : ' n o n e ' ,   o p a c i t y : s e t t i n g s . c a p t i o n O p a c i t y   } ) 
                 ) ; 	 	 	 
 	 	 
 	 	 
 	 	 / /   P r o c e s s   c a p t i o n   f u n c t i o n 
 	 	 v a r   p r o c e s s C a p t i o n   =   f u n c t i o n ( s e t t i n g s ) { 
 	 	 	 v a r   n i v o C a p t i o n   =   $ ( ' . n i v o - c a p t i o n ' ,   s l i d e r ) ; 
 	 	 	 i f ( v a r s . c u r r e n t I m a g e . a t t r ( ' t i t l e ' )   ! =   ' '   & &   v a r s . c u r r e n t I m a g e . a t t r ( ' t i t l e ' )   ! =   u n d e f i n e d ) { 
 	 	 	 	 v a r   t i t l e   =   v a r s . c u r r e n t I m a g e . a t t r ( ' t i t l e ' ) ; 
 	 	 	 	 i f ( t i t l e . s u b s t r ( 0 , 1 )   = =   ' # ' )   t i t l e   =   $ ( t i t l e ) . h t m l ( ) ; 	 
 
 	 	 	 	 i f ( n i v o C a p t i o n . c s s ( ' d i s p l a y ' )   = =   ' b l o c k ' ) { 
 	 	 	 	 	 n i v o C a p t i o n . f i n d ( ' p ' ) . f a d e O u t ( 4 0 0 ,   f u n c t i o n ( ) { 
 	 	 	 	 	 	 $ ( t h i s ) . h t m l ( t i t l e ) ; 
 	 	 	 	 	 	 $ ( t h i s ) . f a d e I n ( 8 0 0 ) ; 
 	 	 	 	 	 } ) ; 
 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 n i v o C a p t i o n . f i n d ( ' p ' ) . h t m l ( t i t l e ) ; 
 	 	 	 	 } 	 	 	 	 	 
 	 	 	 	 n i v o C a p t i o n . f a d e I n ( 8 0 0 ) ; 
 	 	 	 }   e l s e   { 
 	 	 	 	 n i v o C a p t i o n . f a d e O u t ( 4 0 0 ) ; 
 	 	 	 } 
 	 	 } 
 	 	 
                 / / P r o c e s s   i n i t i a l     c a p t i o n 
                 p r o c e s s C a p t i o n ( s e t t i n g s ) ; 
                 
                 / / I n   t h e   w o r d s   o f   S u p e r   M a r i o   " l e t ' s   a   g o ! " 
                 v a r   t i m e r   =   0 ; 
                 i f ( ! s e t t i n g s . m a n u a l A d v a n c e   & &   k i d s . l e n g t h   >   1 ) { 
                         t i m e r   =   s e t I n t e r v a l ( f u n c t i o n ( ) {   n i v o R u n ( s l i d e r ,   k i d s ,   s e t t i n g s ,   f a l s e ) ;   } ,   s e t t i n g s . p a u s e T i m e ) ; 
                 } 
 
                 / / A d d   D i r e c t i o n   n a v 
                 i f ( s e t t i n g s . d i r e c t i o n N a v ) { 
                         s l i d e r . a p p e n d ( ' < d i v   c l a s s = " n i v o - d i r e c t i o n N a v " > < a   c l a s s = " n i v o - p r e v N a v " > ' +   s e t t i n g s . p r e v T e x t   + ' < / a > < a   c l a s s = " n i v o - n e x t N a v " > ' +   s e t t i n g s . n e x t T e x t   + ' < / a > < / d i v > ' ) ; 
                         
                         / / H i d e   D i r e c t i o n   n a v 
                         i f ( s e t t i n g s . d i r e c t i o n N a v H i d e ) { 
                                 $ ( ' . n i v o - d i r e c t i o n N a v ' ,   s l i d e r ) . h i d e ( ) ; 
                                 s l i d e r . h o v e r ( f u n c t i o n ( ) { 
                                         $ ( ' . n i v o - d i r e c t i o n N a v ' ,   s l i d e r ) . s h o w ( ) ; 
                                 } ,   f u n c t i o n ( ) { 
                                         $ ( ' . n i v o - d i r e c t i o n N a v ' ,   s l i d e r ) . h i d e ( ) ; 
                                 } ) ; 
                         } 
                         
                         $ ( ' a . n i v o - p r e v N a v ' ,   s l i d e r ) . l i v e ( ' c l i c k ' ,   f u n c t i o n ( ) { 
                                 i f ( v a r s . r u n n i n g )   r e t u r n   f a l s e ; 
                                 c l e a r I n t e r v a l ( t i m e r ) ; 
                                 t i m e r   =   ' ' ; 
                                 v a r s . c u r r e n t S l i d e   - =   2 ; 
                                 n i v o R u n ( s l i d e r ,   k i d s ,   s e t t i n g s ,   ' p r e v ' ) ; 
                         } ) ; 
                         
                         $ ( ' a . n i v o - n e x t N a v ' ,   s l i d e r ) . l i v e ( ' c l i c k ' ,   f u n c t i o n ( ) { 
                                 i f ( v a r s . r u n n i n g )   r e t u r n   f a l s e ; 
                                 c l e a r I n t e r v a l ( t i m e r ) ; 
                                 t i m e r   =   ' ' ; 
                                 n i v o R u n ( s l i d e r ,   k i d s ,   s e t t i n g s ,   ' n e x t ' ) ; 
                         } ) ; 
                 } 
                 
                 / / A d d   C o n t r o l   n a v 
                 i f ( s e t t i n g s . c o n t r o l N a v ) { 
                         v a r   n i v o C o n t r o l   =   $ ( ' < d i v   c l a s s = " n i v o - c o n t r o l N a v " > < / d i v > ' ) ; 
                         s l i d e r . a p p e n d ( n i v o C o n t r o l ) ; 
                         f o r ( v a r   i   =   0 ;   i   <   k i d s . l e n g t h ;   i + + ) { 
                                 i f ( s e t t i n g s . c o n t r o l N a v T h u m b s ) { 
                                         v a r   c h i l d   =   k i d s . e q ( i ) ; 
                                         i f ( ! c h i l d . i s ( ' i m g ' ) ) { 
                                                 c h i l d   =   c h i l d . f i n d ( ' i m g : f i r s t ' ) ; 
                                         } 
                                         i f   ( s e t t i n g s . c o n t r o l N a v T h u m b s F r o m R e l )   { 
                                                 n i v o C o n t r o l . a p p e n d ( ' < a   c l a s s = " n i v o - c o n t r o l "   r e l = " ' +   i   + ' " > < i m g   s r c = " ' +   c h i l d . a t t r ( ' r e l ' )   +   ' "   a l t = " "   / > < / a > ' ) ; 
                                         }   e l s e   { 
                                                 n i v o C o n t r o l . a p p e n d ( ' < a   c l a s s = " n i v o - c o n t r o l "   r e l = " ' +   i   + ' " > < i m g   s r c = " ' +   c h i l d . a t t r ( ' s r c ' ) . r e p l a c e ( s e t t i n g s . c o n t r o l N a v T h u m b s S e a r c h ,   s e t t i n g s . c o n t r o l N a v T h u m b s R e p l a c e )   + ' "   a l t = " "   / > < / a > ' ) ; 
                                         } 
                                 }   e l s e   { 
                                         n i v o C o n t r o l . a p p e n d ( ' < a   c l a s s = " n i v o - c o n t r o l "   r e l = " ' +   i   + ' " > ' +   ( i   +   1 )   + ' < / a > ' ) ; 
                                 } 
                                 
                         } 
                         / / S e t   i n i t i a l   a c t i v e   l i n k 
                         $ ( ' . n i v o - c o n t r o l N a v   a : e q ( ' +   v a r s . c u r r e n t S l i d e   + ' ) ' ,   s l i d e r ) . a d d C l a s s ( ' a c t i v e ' ) ; 
                         
                         $ ( ' . n i v o - c o n t r o l N a v   a ' ,   s l i d e r ) . l i v e ( ' c l i c k ' ,   f u n c t i o n ( ) { 
                                 i f ( v a r s . r u n n i n g )   r e t u r n   f a l s e ; 
                                 i f ( $ ( t h i s ) . h a s C l a s s ( ' a c t i v e ' ) )   r e t u r n   f a l s e ; 
                                 c l e a r I n t e r v a l ( t i m e r ) ; 
                                 t i m e r   =   ' ' ; 
                                 s l i d e r . c s s ( ' b a c k g r o u n d ' , ' u r l ( " ' +   v a r s . c u r r e n t I m a g e . a t t r ( ' s r c ' )   + ' " )   n o - r e p e a t ' ) ; 
                                 v a r s . c u r r e n t S l i d e   =   $ ( t h i s ) . a t t r ( ' r e l ' )   -   1 ; 
                                 n i v o R u n ( s l i d e r ,   k i d s ,   s e t t i n g s ,   ' c o n t r o l ' ) ; 
                         } ) ; 
                 } 
                 
                 / / K e y b o a r d   N a v i g a t i o n 
                 i f ( s e t t i n g s . k e y b o a r d N a v ) { 
                         $ ( w i n d o w ) . k e y p r e s s ( f u n c t i o n ( e v e n t ) { 
                                 / / L e f t 
                                 i f ( e v e n t . k e y C o d e   = =   ' 3 7 ' ) { 
                                         i f ( v a r s . r u n n i n g )   r e t u r n   f a l s e ; 
                                         c l e a r I n t e r v a l ( t i m e r ) ; 
                                         t i m e r   =   ' ' ; 
                                         v a r s . c u r r e n t S l i d e - = 2 ; 
                                         n i v o R u n ( s l i d e r ,   k i d s ,   s e t t i n g s ,   ' p r e v ' ) ; 
                                 } 
                                 / / R i g h t 
                                 i f ( e v e n t . k e y C o d e   = =   ' 3 9 ' ) { 
                                         i f ( v a r s . r u n n i n g )   r e t u r n   f a l s e ; 
                                         c l e a r I n t e r v a l ( t i m e r ) ; 
                                         t i m e r   =   ' ' ; 
                                         n i v o R u n ( s l i d e r ,   k i d s ,   s e t t i n g s ,   ' n e x t ' ) ; 
                                 } 
                         } ) ; 
                 } 
                 
                 / / F o r   p a u s e O n H o v e r   s e t t i n g 
                 i f ( s e t t i n g s . p a u s e O n H o v e r ) { 
                         s l i d e r . h o v e r ( f u n c t i o n ( ) { 
                                 v a r s . p a u s e d   =   t r u e ; 
                                 c l e a r I n t e r v a l ( t i m e r ) ; 
                                 t i m e r   =   ' ' ; 
                         } ,   f u n c t i o n ( ) { 
                                 v a r s . p a u s e d   =   f a l s e ; 
                                 / / R e s t a r t   t h e   t i m e r 
                                 i f ( t i m e r   = =   ' '   & &   ! s e t t i n g s . m a n u a l A d v a n c e ) { 
                                         t i m e r   =   s e t I n t e r v a l ( f u n c t i o n ( ) {   n i v o R u n ( s l i d e r ,   k i d s ,   s e t t i n g s ,   f a l s e ) ;   } ,   s e t t i n g s . p a u s e T i m e ) ; 
                                 } 
                         } ) ; 
                 } 
                 
                 / / E v e n t   w h e n   A n i m a t i o n   f i n i s h e s 
                 s l i d e r . b i n d ( ' n i v o : a n i m F i n i s h e d ' ,   f u n c t i o n ( ) {   
                         v a r s . r u n n i n g   =   f a l s e ;   
                         / / H i d e   c h i l d   l i n k s 
                         $ ( k i d s ) . e a c h ( f u n c t i o n ( ) { 
                                 i f ( $ ( t h i s ) . i s ( ' a ' ) ) { 
                                         $ ( t h i s ) . c s s ( ' d i s p l a y ' , ' n o n e ' ) ; 
                                 } 
                         } ) ; 
                         / / S h o w   c u r r e n t   l i n k 
                         i f ( $ ( k i d s [ v a r s . c u r r e n t S l i d e ] ) . i s ( ' a ' ) ) { 
                                 $ ( k i d s [ v a r s . c u r r e n t S l i d e ] ) . c s s ( ' d i s p l a y ' , ' b l o c k ' ) ; 
                         } 
                         / / R e s t a r t   t h e   t i m e r 
                         i f ( t i m e r   = =   ' '   & &   ! v a r s . p a u s e d   & &   ! s e t t i n g s . m a n u a l A d v a n c e ) { 
                                 t i m e r   =   s e t I n t e r v a l ( f u n c t i o n ( ) {   n i v o R u n ( s l i d e r ,   k i d s ,   s e t t i n g s ,   f a l s e ) ;   } ,   s e t t i n g s . p a u s e T i m e ) ; 
                         } 
                         / / T r i g g e r   t h e   a f t e r C h a n g e   c a l l b a c k 
                         s e t t i n g s . a f t e r C h a n g e . c a l l ( t h i s ) ; 
                 } ) ; 
                 
                 / /   A d d   s l i c e s   f o r   s l i c e   a n i m a t i o n s 
                 v a r   c r e a t e S l i c e s   =   f u n c t i o n ( s l i d e r ,   s e t t i n g s ,   v a r s ) { 
                         f o r ( v a r   i   =   0 ;   i   <   s e t t i n g s . s l i c e s ;   i + + ) { 
 	 	 	 	 v a r   s l i c e W i d t h   =   M a t h . r o u n d ( s l i d e r . w i d t h ( ) / s e t t i n g s . s l i c e s ) ; 
 	 	 	 	 i f ( i   = =   s e t t i n g s . s l i c e s - 1 ) { 
 	 	 	 	 	 s l i d e r . a p p e n d ( 
 	 	 	 	 	 	 $ ( ' < d i v   c l a s s = " n i v o - s l i c e " > < / d i v > ' ) . c s s ( {   
 	 	 	 	 	 	 	 l e f t : ( s l i c e W i d t h * i ) + ' p x ' ,   w i d t h : ( s l i d e r . w i d t h ( ) - ( s l i c e W i d t h * i ) ) + ' p x ' , 
 	 	 	 	 	 	 	 h e i g h t : ' 0 p x ' ,   
 	 	 	 	 	 	 	 o p a c i t y : ' 0 ' ,   
 	 	 	 	 	 	 	 b a c k g r o u n d :   ' u r l ( " ' +   v a r s . c u r r e n t I m a g e . a t t r ( ' s r c ' )   + ' " )   n o - r e p e a t   - ' +   ( ( s l i c e W i d t h   +   ( i   *   s l i c e W i d t h ) )   -   s l i c e W i d t h )   + ' p x   0 % ' 
 	 	 	 	 	 	 } ) 
 	 	 	 	 	 ) ; 
 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 s l i d e r . a p p e n d ( 
 	 	 	 	 	 	 $ ( ' < d i v   c l a s s = " n i v o - s l i c e " > < / d i v > ' ) . c s s ( {   
 	 	 	 	 	 	 	 l e f t : ( s l i c e W i d t h * i ) + ' p x ' ,   w i d t h : s l i c e W i d t h + ' p x ' , 
 	 	 	 	 	 	 	 h e i g h t : ' 0 p x ' ,   
 	 	 	 	 	 	 	 o p a c i t y : ' 0 ' ,   
 	 	 	 	 	 	 	 b a c k g r o u n d :   ' u r l ( " ' +   v a r s . c u r r e n t I m a g e . a t t r ( ' s r c ' )   + ' " )   n o - r e p e a t   - ' +   ( ( s l i c e W i d t h   +   ( i   *   s l i c e W i d t h ) )   -   s l i c e W i d t h )   + ' p x   0 % ' 
 	 	 	 	 	 	 } ) 
 	 	 	 	 	 ) ; 
 	 	 	 	 } 
 	 	 	 } 
                 } 
 	 	 
 	 	 / /   A d d   b o x e s   f o r   b o x   a n i m a t i o n s 
 	 	 v a r   c r e a t e B o x e s   =   f u n c t i o n ( s l i d e r ,   s e t t i n g s ,   v a r s ) { 
 	 	 	 v a r   b o x W i d t h   =   M a t h . r o u n d ( s l i d e r . w i d t h ( ) / s e t t i n g s . b o x C o l s ) ; 
 	 	 	 v a r   b o x H e i g h t   =   M a t h . r o u n d ( s l i d e r . h e i g h t ( ) / s e t t i n g s . b o x R o w s ) ; 
 	 	 	 
 	 	 	 f o r ( v a r   r o w s   =   0 ;   r o w s   <   s e t t i n g s . b o x R o w s ;   r o w s + + ) { 
 	 	 	 	 f o r ( v a r   c o l s   =   0 ;   c o l s   <   s e t t i n g s . b o x C o l s ;   c o l s + + ) { 
 	 	 	 	 	 i f ( c o l s   = =   s e t t i n g s . b o x C o l s - 1 ) { 
 	 	 	 	 	 	 s l i d e r . a p p e n d ( 
 	 	 	 	 	 	 	 $ ( ' < d i v   c l a s s = " n i v o - b o x " > < / d i v > ' ) . c s s ( {   
 	 	 	 	 	 	 	 	 o p a c i t y : 0 , 
 	 	 	 	 	 	 	 	 l e f t : ( b o x W i d t h * c o l s ) + ' p x ' ,   
 	 	 	 	 	 	 	 	 t o p : ( b o x H e i g h t * r o w s ) + ' p x ' , 
 	 	 	 	 	 	 	 	 w i d t h : ( s l i d e r . w i d t h ( ) - ( b o x W i d t h * c o l s ) ) + ' p x ' , 
 	 	 	 	 	 	 	 	 h e i g h t : b o x H e i g h t + ' p x ' , 
 	 	 	 	 	 	 	 	 b a c k g r o u n d :   ' u r l ( " ' +   v a r s . c u r r e n t I m a g e . a t t r ( ' s r c ' )   + ' " )   n o - r e p e a t   - ' +   ( ( b o x W i d t h   +   ( c o l s   *   b o x W i d t h ) )   -   b o x W i d t h )   + ' p x   - ' +   ( ( b o x H e i g h t   +   ( r o w s   *   b o x H e i g h t ) )   -   b o x H e i g h t )   + ' p x ' 
 	 	 	 	 	 	 	 } ) 
 	 	 	 	 	 	 ) ; 
 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 s l i d e r . a p p e n d ( 
 	 	 	 	 	 	 	 $ ( ' < d i v   c l a s s = " n i v o - b o x " > < / d i v > ' ) . c s s ( {   
 	 	 	 	 	 	 	 	 o p a c i t y : 0 , 
 	 	 	 	 	 	 	 	 l e f t : ( b o x W i d t h * c o l s ) + ' p x ' ,   
 	 	 	 	 	 	 	 	 t o p : ( b o x H e i g h t * r o w s ) + ' p x ' , 
 	 	 	 	 	 	 	 	 w i d t h : b o x W i d t h + ' p x ' , 
 	 	 	 	 	 	 	 	 h e i g h t : b o x H e i g h t + ' p x ' , 
 	 	 	 	 	 	 	 	 b a c k g r o u n d :   ' u r l ( " ' +   v a r s . c u r r e n t I m a g e . a t t r ( ' s r c ' )   + ' " )   n o - r e p e a t   - ' +   ( ( b o x W i d t h   +   ( c o l s   *   b o x W i d t h ) )   -   b o x W i d t h )   + ' p x   - ' +   ( ( b o x H e i g h t   +   ( r o w s   *   b o x H e i g h t ) )   -   b o x H e i g h t )   + ' p x ' 
 	 	 	 	 	 	 	 } ) 
 	 	 	 	 	 	 ) ; 
 	 	 	 	 	 } 
 	 	 	 	 } 
 	 	 	 } 
 	 	 } 
 
                 / /   P r i v a t e   r u n   m e t h o d 
 	 	 v a r   n i v o R u n   =   f u n c t i o n ( s l i d e r ,   k i d s ,   s e t t i n g s ,   n u d g e ) { 
 	 	 	 / / G e t   o u r   v a r s 
 	 	 	 v a r   v a r s   =   s l i d e r . d a t a ( ' n i v o : v a r s ' ) ; 
                         
                         / / T r i g g e r   t h e   l a s t S l i d e   c a l l b a c k 
                         i f ( v a r s   & &   ( v a r s . c u r r e n t S l i d e   = =   v a r s . t o t a l S l i d e s   -   1 ) ) {   
 	 	 	 	 s e t t i n g s . l a s t S l i d e . c a l l ( t h i s ) ; 
 	 	 	 } 
                         
                         / /   S t o p 
 	 	 	 i f ( ( ! v a r s   | |   v a r s . s t o p )   & &   ! n u d g e )   r e t u r n   f a l s e ; 
 	 	 	 
 	 	 	 / / T r i g g e r   t h e   b e f o r e C h a n g e   c a l l b a c k 
 	 	 	 s e t t i n g s . b e f o r e C h a n g e . c a l l ( t h i s ) ; 
 	 	 	 	 	 
 	 	 	 / / S e t   c u r r e n t   b a c k g r o u n d   b e f o r e   c h a n g e 
 	 	 	 i f ( ! n u d g e ) { 
 	 	 	 	 s l i d e r . c s s ( ' b a c k g r o u n d ' , ' u r l ( " ' +   v a r s . c u r r e n t I m a g e . a t t r ( ' s r c ' )   + ' " )   n o - r e p e a t ' ) ; 
 	 	 	 }   e l s e   { 
 	 	 	 	 i f ( n u d g e   = =   ' p r e v ' ) { 
 	 	 	 	 	 s l i d e r . c s s ( ' b a c k g r o u n d ' , ' u r l ( " ' +   v a r s . c u r r e n t I m a g e . a t t r ( ' s r c ' )   + ' " )   n o - r e p e a t ' ) ; 
 	 	 	 	 } 
 	 	 	 	 i f ( n u d g e   = =   ' n e x t ' ) { 
 	 	 	 	 	 s l i d e r . c s s ( ' b a c k g r o u n d ' , ' u r l ( " ' +   v a r s . c u r r e n t I m a g e . a t t r ( ' s r c ' )   + ' " )   n o - r e p e a t ' ) ; 
 	 	 	 	 } 
 	 	 	 } 
 	 	 	 v a r s . c u r r e n t S l i d e + + ; 
                         / / T r i g g e r   t h e   s l i d e s h o w E n d   c a l l b a c k 
 	 	 	 i f ( v a r s . c u r r e n t S l i d e   = =   v a r s . t o t a l S l i d e s ) {   
 	 	 	 	 v a r s . c u r r e n t S l i d e   =   0 ; 
 	 	 	 	 s e t t i n g s . s l i d e s h o w E n d . c a l l ( t h i s ) ; 
 	 	 	 } 
 	 	 	 i f ( v a r s . c u r r e n t S l i d e   <   0 )   v a r s . c u r r e n t S l i d e   =   ( v a r s . t o t a l S l i d e s   -   1 ) ; 
 	 	 	 / / S e t   v a r s . c u r r e n t I m a g e 
 	 	 	 i f ( $ ( k i d s [ v a r s . c u r r e n t S l i d e ] ) . i s ( ' i m g ' ) ) { 
 	 	 	 	 v a r s . c u r r e n t I m a g e   =   $ ( k i d s [ v a r s . c u r r e n t S l i d e ] ) ; 
 	 	 	 }   e l s e   { 
 	 	 	 	 v a r s . c u r r e n t I m a g e   =   $ ( k i d s [ v a r s . c u r r e n t S l i d e ] ) . f i n d ( ' i m g : f i r s t ' ) ; 
 	 	 	 } 
 	 	 	 
 	 	 	 / / S e t   a c t i v e   l i n k s 
 	 	 	 i f ( s e t t i n g s . c o n t r o l N a v ) { 
 	 	 	 	 $ ( ' . n i v o - c o n t r o l N a v   a ' ,   s l i d e r ) . r e m o v e C l a s s ( ' a c t i v e ' ) ; 
 	 	 	 	 $ ( ' . n i v o - c o n t r o l N a v   a : e q ( ' +   v a r s . c u r r e n t S l i d e   + ' ) ' ,   s l i d e r ) . a d d C l a s s ( ' a c t i v e ' ) ; 
 	 	 	 } 
 	 	 	 
 	 	 	 / / P r o c e s s   c a p t i o n 
 	 	 	 p r o c e s s C a p t i o n ( s e t t i n g s ) ; 
 	 	 	 
 	 	 	 / /   R e m o v e   a n y   s l i c e s   f r o m   l a s t   t r a n s i t i o n 
 	 	 	 $ ( ' . n i v o - s l i c e ' ,   s l i d e r ) . r e m o v e ( ) ; 
 	 	 	 
 	 	 	 / /   R e m o v e   a n y   b o x e s   f r o m   l a s t   t r a n s i t i o n 
 	 	 	 $ ( ' . n i v o - b o x ' ,   s l i d e r ) . r e m o v e ( ) ; 
 	 	 	 
 	 	 	 i f ( s e t t i n g s . e f f e c t   = =   ' r a n d o m ' ) { 
 	 	 	 	 v a r   a n i m s   =   n e w   A r r a y ( ' s l i c e D o w n R i g h t ' , ' s l i c e D o w n L e f t ' , ' s l i c e U p R i g h t ' , ' s l i c e U p L e f t ' , ' s l i c e U p D o w n ' , ' s l i c e U p D o w n L e f t ' , ' f o l d ' , ' f a d e ' , 
                                 ' b o x R a n d o m ' , ' b o x R a i n ' , ' b o x R a i n R e v e r s e ' , ' b o x R a i n G r o w ' , ' b o x R a i n G r o w R e v e r s e ' ) ; 
 	 	 	 	 v a r s . r a n d A n i m   =   a n i m s [ M a t h . f l o o r ( M a t h . r a n d o m ( ) * ( a n i m s . l e n g t h   +   1 ) ) ] ; 
 	 	 	 	 i f ( v a r s . r a n d A n i m   = =   u n d e f i n e d )   v a r s . r a n d A n i m   =   ' f a d e ' ; 
 	 	 	 } 
                         
                         / / R u n   r a n d o m   e f f e c t   f r o m   s p e c i f i e d   s e t   ( e g :   e f f e c t : ' f o l d , f a d e ' ) 
                         i f ( s e t t i n g s . e f f e c t . i n d e x O f ( ' , ' )   ! =   - 1 ) { 
                                 v a r   a n i m s   =   s e t t i n g s . e f f e c t . s p l i t ( ' , ' ) ; 
                                 v a r s . r a n d A n i m   =   a n i m s [ M a t h . f l o o r ( M a t h . r a n d o m ( ) * ( a n i m s . l e n g t h ) ) ] ; 
 	 	 	 	 i f ( v a r s . r a n d A n i m   = =   u n d e f i n e d )   v a r s . r a n d A n i m   =   ' f a d e ' ; 
                         } 
 	 	 
 	 	 	 / / R u n   e f f e c t s 
 	 	 	 v a r s . r u n n i n g   =   t r u e ; 
 	 	 	 i f ( s e t t i n g s . e f f e c t   = =   ' s l i c e D o w n '   | |   s e t t i n g s . e f f e c t   = =   ' s l i c e D o w n R i g h t '   | |   v a r s . r a n d A n i m   = =   ' s l i c e D o w n R i g h t '   | | 
 	 	 	 	 s e t t i n g s . e f f e c t   = =   ' s l i c e D o w n L e f t '   | |   v a r s . r a n d A n i m   = =   ' s l i c e D o w n L e f t ' ) { 
 	 	 	 	 c r e a t e S l i c e s ( s l i d e r ,   s e t t i n g s ,   v a r s ) ; 
 	 	 	 	 v a r   t i m e B u f f   =   0 ; 
 	 	 	 	 v a r   i   =   0 ; 
 	 	 	 	 v a r   s l i c e s   =   $ ( ' . n i v o - s l i c e ' ,   s l i d e r ) ; 
 	 	 	 	 i f ( s e t t i n g s . e f f e c t   = =   ' s l i c e D o w n L e f t '   | |   v a r s . r a n d A n i m   = =   ' s l i c e D o w n L e f t ' )   s l i c e s   =   $ ( ' . n i v o - s l i c e ' ,   s l i d e r ) . _ r e v e r s e ( ) ; 
 	 	 	 	 
 	 	 	 	 s l i c e s . e a c h ( f u n c t i o n ( ) { 
 	 	 	 	 	 v a r   s l i c e   =   $ ( t h i s ) ; 
 	 	 	 	 	 s l i c e . c s s ( {   ' t o p ' :   ' 0 p x '   } ) ; 
 	 	 	 	 	 i f ( i   = =   s e t t i n g s . s l i c e s - 1 ) { 
 	 	 	 	 	 	 s e t T i m e o u t ( f u n c t i o n ( ) { 
 	 	 	 	 	 	 	 s l i c e . a n i m a t e ( {   h e i g h t : ' 1 0 0 % ' ,   o p a c i t y : ' 1 . 0 '   } ,   s e t t i n g s . a n i m S p e e d ,   ' ' ,   f u n c t i o n ( ) {   s l i d e r . t r i g g e r ( ' n i v o : a n i m F i n i s h e d ' ) ;   } ) ; 
 	 	 	 	 	 	 } ,   ( 1 0 0   +   t i m e B u f f ) ) ; 
 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 s e t T i m e o u t ( f u n c t i o n ( ) { 
 	 	 	 	 	 	 	 s l i c e . a n i m a t e ( {   h e i g h t : ' 1 0 0 % ' ,   o p a c i t y : ' 1 . 0 '   } ,   s e t t i n g s . a n i m S p e e d ) ; 
 	 	 	 	 	 	 } ,   ( 1 0 0   +   t i m e B u f f ) ) ; 
 	 	 	 	 	 } 
 	 	 	 	 	 t i m e B u f f   + =   5 0 ; 
 	 	 	 	 	 i + + ; 
 	 	 	 	 } ) ; 
 	 	 	 }   
 	 	 	 e l s e   i f ( s e t t i n g s . e f f e c t   = =   ' s l i c e U p '   | |   s e t t i n g s . e f f e c t   = =   ' s l i c e U p R i g h t '   | |   v a r s . r a n d A n i m   = =   ' s l i c e U p R i g h t '   | | 
 	 	 	 	 	 s e t t i n g s . e f f e c t   = =   ' s l i c e U p L e f t '   | |   v a r s . r a n d A n i m   = =   ' s l i c e U p L e f t ' ) { 
 	 	 	 	 c r e a t e S l i c e s ( s l i d e r ,   s e t t i n g s ,   v a r s ) ; 
 	 	 	 	 v a r   t i m e B u f f   =   0 ; 
 	 	 	 	 v a r   i   =   0 ; 
 	 	 	 	 v a r   s l i c e s   =   $ ( ' . n i v o - s l i c e ' ,   s l i d e r ) ; 
 	 	 	 	 i f ( s e t t i n g s . e f f e c t   = =   ' s l i c e U p L e f t '   | |   v a r s . r a n d A n i m   = =   ' s l i c e U p L e f t ' )   s l i c e s   =   $ ( ' . n i v o - s l i c e ' ,   s l i d e r ) . _ r e v e r s e ( ) ; 
 	 	 	 	 
 	 	 	 	 s l i c e s . e a c h ( f u n c t i o n ( ) { 
 	 	 	 	 	 v a r   s l i c e   =   $ ( t h i s ) ; 
 	 	 	 	 	 s l i c e . c s s ( {   ' b o t t o m ' :   ' 0 p x '   } ) ; 
 	 	 	 	 	 i f ( i   = =   s e t t i n g s . s l i c e s - 1 ) { 
 	 	 	 	 	 	 s e t T i m e o u t ( f u n c t i o n ( ) { 
 	 	 	 	 	 	 	 s l i c e . a n i m a t e ( {   h e i g h t : ' 1 0 0 % ' ,   o p a c i t y : ' 1 . 0 '   } ,   s e t t i n g s . a n i m S p e e d ,   ' ' ,   f u n c t i o n ( ) {   s l i d e r . t r i g g e r ( ' n i v o : a n i m F i n i s h e d ' ) ;   } ) ; 
 	 	 	 	 	 	 } ,   ( 1 0 0   +   t i m e B u f f ) ) ; 
 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 s e t T i m e o u t ( f u n c t i o n ( ) { 
 	 	 	 	 	 	 	 s l i c e . a n i m a t e ( {   h e i g h t : ' 1 0 0 % ' ,   o p a c i t y : ' 1 . 0 '   } ,   s e t t i n g s . a n i m S p e e d ) ; 
 	 	 	 	 	 	 } ,   ( 1 0 0   +   t i m e B u f f ) ) ; 
 	 	 	 	 	 } 
 	 	 	 	 	 t i m e B u f f   + =   5 0 ; 
 	 	 	 	 	 i + + ; 
 	 	 	 	 } ) ; 
 	 	 	 }   
 	 	 	 e l s e   i f ( s e t t i n g s . e f f e c t   = =   ' s l i c e U p D o w n '   | |   s e t t i n g s . e f f e c t   = =   ' s l i c e U p D o w n R i g h t '   | |   v a r s . r a n d A n i m   = =   ' s l i c e U p D o w n '   | |   
 	 	 	 	 	 s e t t i n g s . e f f e c t   = =   ' s l i c e U p D o w n L e f t '   | |   v a r s . r a n d A n i m   = =   ' s l i c e U p D o w n L e f t ' ) { 
 	 	 	 	 c r e a t e S l i c e s ( s l i d e r ,   s e t t i n g s ,   v a r s ) ; 
 	 	 	 	 v a r   t i m e B u f f   =   0 ; 
 	 	 	 	 v a r   i   =   0 ; 
 	 	 	 	 v a r   v   =   0 ; 
 	 	 	 	 v a r   s l i c e s   =   $ ( ' . n i v o - s l i c e ' ,   s l i d e r ) ; 
 	 	 	 	 i f ( s e t t i n g s . e f f e c t   = =   ' s l i c e U p D o w n L e f t '   | |   v a r s . r a n d A n i m   = =   ' s l i c e U p D o w n L e f t ' )   s l i c e s   =   $ ( ' . n i v o - s l i c e ' ,   s l i d e r ) . _ r e v e r s e ( ) ; 
 	 	 	 	 
 	 	 	 	 s l i c e s . e a c h ( f u n c t i o n ( ) { 
 	 	 	 	 	 v a r   s l i c e   =   $ ( t h i s ) ; 
 	 	 	 	 	 i f ( i   = =   0 ) { 
 	 	 	 	 	 	 s l i c e . c s s ( ' t o p ' , ' 0 p x ' ) ; 
 	 	 	 	 	 	 i + + ; 
 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 s l i c e . c s s ( ' b o t t o m ' , ' 0 p x ' ) ; 
 	 	 	 	 	 	 i   =   0 ; 
 	 	 	 	 	 } 
 	 	 	 	 	 
 	 	 	 	 	 i f ( v   = =   s e t t i n g s . s l i c e s - 1 ) { 
 	 	 	 	 	 	 s e t T i m e o u t ( f u n c t i o n ( ) { 
 	 	 	 	 	 	 	 s l i c e . a n i m a t e ( {   h e i g h t : ' 1 0 0 % ' ,   o p a c i t y : ' 1 . 0 '   } ,   s e t t i n g s . a n i m S p e e d ,   ' ' ,   f u n c t i o n ( ) {   s l i d e r . t r i g g e r ( ' n i v o : a n i m F i n i s h e d ' ) ;   } ) ; 
 	 	 	 	 	 	 } ,   ( 1 0 0   +   t i m e B u f f ) ) ; 
 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 s e t T i m e o u t ( f u n c t i o n ( ) { 
 	 	 	 	 	 	 	 s l i c e . a n i m a t e ( {   h e i g h t : ' 1 0 0 % ' ,   o p a c i t y : ' 1 . 0 '   } ,   s e t t i n g s . a n i m S p e e d ) ; 
 	 	 	 	 	 	 } ,   ( 1 0 0   +   t i m e B u f f ) ) ; 
 	 	 	 	 	 } 
 	 	 	 	 	 t i m e B u f f   + =   5 0 ; 
 	 	 	 	 	 v + + ; 
 	 	 	 	 } ) ; 
 	 	 	 }   
 	 	 	 e l s e   i f ( s e t t i n g s . e f f e c t   = =   ' f o l d '   | |   v a r s . r a n d A n i m   = =   ' f o l d ' ) { 
 	 	 	 	 c r e a t e S l i c e s ( s l i d e r ,   s e t t i n g s ,   v a r s ) ; 
 	 	 	 	 v a r   t i m e B u f f   =   0 ; 
 	 	 	 	 v a r   i   =   0 ; 
 	 	 	 	 
 	 	 	 	 $ ( ' . n i v o - s l i c e ' ,   s l i d e r ) . e a c h ( f u n c t i o n ( ) { 
 	 	 	 	 	 v a r   s l i c e   =   $ ( t h i s ) ; 
 	 	 	 	 	 v a r   o r i g W i d t h   =   s l i c e . w i d t h ( ) ; 
 	 	 	 	 	 s l i c e . c s s ( {   t o p : ' 0 p x ' ,   h e i g h t : ' 1 0 0 % ' ,   w i d t h : ' 0 p x '   } ) ; 
 	 	 	 	 	 i f ( i   = =   s e t t i n g s . s l i c e s - 1 ) { 
 	 	 	 	 	 	 s e t T i m e o u t ( f u n c t i o n ( ) { 
 	 	 	 	 	 	 	 s l i c e . a n i m a t e ( {   w i d t h : o r i g W i d t h ,   o p a c i t y : ' 1 . 0 '   } ,   s e t t i n g s . a n i m S p e e d ,   ' ' ,   f u n c t i o n ( ) {   s l i d e r . t r i g g e r ( ' n i v o : a n i m F i n i s h e d ' ) ;   } ) ; 
 	 	 	 	 	 	 } ,   ( 1 0 0   +   t i m e B u f f ) ) ; 
 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 s e t T i m e o u t ( f u n c t i o n ( ) { 
 	 	 	 	 	 	 	 s l i c e . a n i m a t e ( {   w i d t h : o r i g W i d t h ,   o p a c i t y : ' 1 . 0 '   } ,   s e t t i n g s . a n i m S p e e d ) ; 
 	 	 	 	 	 	 } ,   ( 1 0 0   +   t i m e B u f f ) ) ; 
 	 	 	 	 	 } 
 	 	 	 	 	 t i m e B u f f   + =   5 0 ; 
 	 	 	 	 	 i + + ; 
 	 	 	 	 } ) ; 
 	 	 	 }     
 	 	 	 e l s e   i f ( s e t t i n g s . e f f e c t   = =   ' f a d e '   | |   v a r s . r a n d A n i m   = =   ' f a d e ' ) { 
 	 	 	 	 c r e a t e S l i c e s ( s l i d e r ,   s e t t i n g s ,   v a r s ) ; 
 	 	 	 	 / / a l e r t ( " f a d e   s t a r t " ) ; 
 	 	 	 	 v a r   f i r s t S l i c e   =   $ ( ' . n i v o - s l i c e : f i r s t ' ,   s l i d e r ) ; 
                                 f i r s t S l i c e . c s s ( { 
                                         ' h e i g h t ' :   ' 1 0 0 % ' , 
                                         ' w i d t h ' :   s l i d e r . w i d t h ( )   +   ' p x ' 
                                 } ) ; 
         	 	 	 
 	 	 	 	 f i r s t S l i c e . a n i m a t e ( {   o p a c i t y : ' 1 . 0 '   } ,   ( s e t t i n g s . a n i m S p e e d * 2 ) ,   ' ' ,   f u n c t i o n ( ) {   s l i d e r . t r i g g e r ( ' n i v o : a n i m F i n i s h e d ' ) ;   } ) ; 
 	 	 	 }                     
                         e l s e   i f ( s e t t i n g s . e f f e c t   = =   ' s l i d e I n R i g h t '   | |   v a r s . r a n d A n i m   = =   ' s l i d e I n R i g h t ' ) { 
 	 	 	 	 c r e a t e S l i c e s ( s l i d e r ,   s e t t i n g s ,   v a r s ) ; 
 	 	 	 	 
                                 v a r   f i r s t S l i c e   =   $ ( ' . n i v o - s l i c e : f i r s t ' ,   s l i d e r ) ; 
                                 f i r s t S l i c e . c s s ( { 
                                         ' h e i g h t ' :   ' 1 0 0 % ' , 
                                         ' w i d t h ' :   ' 0 p x ' , 
                                         ' o p a c i t y ' :   ' 1 ' 
                                 } ) ; 
 
                                 f i r s t S l i c e . a n i m a t e ( {   w i d t h :   s l i d e r . w i d t h ( )   +   ' p x '   } ,   ( s e t t i n g s . a n i m S p e e d * 2 ) ,   ' ' ,   f u n c t i o n ( ) {   s l i d e r . t r i g g e r ( ' n i v o : a n i m F i n i s h e d ' ) ;   } ) ; 
                         } 
                         e l s e   i f ( s e t t i n g s . e f f e c t   = =   ' s l i d e I n L e f t '   | |   v a r s . r a n d A n i m   = =   ' s l i d e I n L e f t ' ) { 
 	 	 	 	 c r e a t e S l i c e s ( s l i d e r ,   s e t t i n g s ,   v a r s ) ; 
 	 	 	 	 
                                 v a r   f i r s t S l i c e   =   $ ( ' . n i v o - s l i c e : f i r s t ' ,   s l i d e r ) ; 
                                 f i r s t S l i c e . c s s ( { 
                                         ' h e i g h t ' :   ' 1 0 0 % ' , 
                                         ' w i d t h ' :   ' 0 p x ' , 
                                         ' o p a c i t y ' :   ' 1 ' , 
                                         ' l e f t ' :   ' ' , 
                                         ' r i g h t ' :   ' 0 p x ' 
                                 } ) ; 
 
                                 f i r s t S l i c e . a n i m a t e ( {   w i d t h :   s l i d e r . w i d t h ( )   +   ' p x '   } ,   ( s e t t i n g s . a n i m S p e e d * 2 ) ,   ' ' ,   f u n c t i o n ( ) {   
                                         / /   R e s e t   p o s i t i o n i n g 
                                         f i r s t S l i c e . c s s ( { 
                                                 ' l e f t ' :   ' 0 p x ' , 
                                                 ' r i g h t ' :   ' ' 
                                         } ) ; 
                                         s l i d e r . t r i g g e r ( ' n i v o : a n i m F i n i s h e d ' ) ;   
                                 } ) ; 
                         } 
 	 	 	 e l s e   i f ( s e t t i n g s . e f f e c t   = =   ' b o x R a n d o m '   | |   v a r s . r a n d A n i m   = =   ' b o x R a n d o m ' ) { 
 	 	 	 	 c r e a t e B o x e s ( s l i d e r ,   s e t t i n g s ,   v a r s ) ; 
 	 	 	 	 
 	 	 	 	 v a r   t o t a l B o x e s   =   s e t t i n g s . b o x C o l s   *   s e t t i n g s . b o x R o w s ; 
 	 	 	 	 v a r   i   =   0 ; 
 	 	 	 	 v a r   t i m e B u f f   =   0 ; 
 	 	 	 	 
 	 	 	 	 v a r   b o x e s   =   s h u f f l e ( $ ( ' . n i v o - b o x ' ,   s l i d e r ) ) ; 
 	 	 	 	 b o x e s . e a c h ( f u n c t i o n ( ) { 
 	 	 	 	 	 v a r   b o x   =   $ ( t h i s ) ; 
 	 	 	 	 	 i f ( i   = =   t o t a l B o x e s - 1 ) { 
 	 	 	 	 	 	 s e t T i m e o u t ( f u n c t i o n ( ) { 
 	 	 	 	 	 	 	 b o x . a n i m a t e ( {   o p a c i t y : ' 1 '   } ,   s e t t i n g s . a n i m S p e e d ,   ' ' ,   f u n c t i o n ( ) {   s l i d e r . t r i g g e r ( ' n i v o : a n i m F i n i s h e d ' ) ;   } ) ; 
 	 	 	 	 	 	 } ,   ( 1 0 0   +   t i m e B u f f ) ) ; 
 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 s e t T i m e o u t ( f u n c t i o n ( ) { 
 	 	 	 	 	 	 	 b o x . a n i m a t e ( {   o p a c i t y : ' 1 '   } ,   s e t t i n g s . a n i m S p e e d ) ; 
 	 	 	 	 	 	 } ,   ( 1 0 0   +   t i m e B u f f ) ) ; 
 	 	 	 	 	 } 
 	 	 	 	 	 t i m e B u f f   + =   2 0 ; 
 	 	 	 	 	 i + + ; 
 	 	 	 	 } ) ; 
 	 	 	 } 
 	 	 	 e l s e   i f ( s e t t i n g s . e f f e c t   = =   ' b o x R a i n '   | |   v a r s . r a n d A n i m   = =   ' b o x R a i n '   | |   s e t t i n g s . e f f e c t   = =   ' b o x R a i n R e v e r s e '   | |   v a r s . r a n d A n i m   = =   ' b o x R a i n R e v e r s e '   | |   
                                         s e t t i n g s . e f f e c t   = =   ' b o x R a i n G r o w '   | |   v a r s . r a n d A n i m   = =   ' b o x R a i n G r o w '   | |   s e t t i n g s . e f f e c t   = =   ' b o x R a i n G r o w R e v e r s e '   | |   v a r s . r a n d A n i m   = =   ' b o x R a i n G r o w R e v e r s e ' ) { 
 	 	 	 	 c r e a t e B o x e s ( s l i d e r ,   s e t t i n g s ,   v a r s ) ; 
 	 	 	 	 
 	 	 	 	 v a r   t o t a l B o x e s   =   s e t t i n g s . b o x C o l s   *   s e t t i n g s . b o x R o w s ; 
 	 	 	 	 v a r   i   =   0 ; 
 	 	 	 	 v a r   t i m e B u f f   =   0 ; 
 	 	 	 	 
 	 	 	 	 / /   S p l i t   b o x e s   i n t o   2 D   a r r a y 
 	 	 	 	 v a r   r o w I n d e x   =   0 ; 
 	 	 	 	 v a r   c o l I n d e x   =   0 ; 
 	 	 	 	 v a r   b o x 2 D a r r   =   n e w   A r r a y ( ) ; 
 	 	 	 	 b o x 2 D a r r [ r o w I n d e x ]   =   n e w   A r r a y ( ) ; 
 	 	 	 	 v a r   b o x e s   =   $ ( ' . n i v o - b o x ' ,   s l i d e r ) ; 
 	 	 	 	 i f ( s e t t i n g s . e f f e c t   = =   ' b o x R a i n R e v e r s e '   | |   v a r s . r a n d A n i m   = =   ' b o x R a i n R e v e r s e '   | | 
                                       s e t t i n g s . e f f e c t   = =   ' b o x R a i n G r o w R e v e r s e '   | |   v a r s . r a n d A n i m   = =   ' b o x R a i n G r o w R e v e r s e ' ) { 
 	 	 	 	 	 b o x e s   =   $ ( ' . n i v o - b o x ' ,   s l i d e r ) . _ r e v e r s e ( ) ; 
 	 	 	 	 } 
 	 	 	 	 b o x e s . e a c h ( f u n c t i o n ( ) { 
 	 	 	 	 	 b o x 2 D a r r [ r o w I n d e x ] [ c o l I n d e x ]   =   $ ( t h i s ) ; 
 	 	 	 	 	 c o l I n d e x + + ; 
 	 	 	 	 	 i f ( c o l I n d e x   = =   s e t t i n g s . b o x C o l s ) { 
 	 	 	 	 	 	 r o w I n d e x + + ; 
 	 	 	 	 	 	 c o l I n d e x   =   0 ; 
 	 	 	 	 	 	 b o x 2 D a r r [ r o w I n d e x ]   =   n e w   A r r a y ( ) ; 
 	 	 	 	 	 } 
 	 	 	 	 } ) ; 
 	 	 	 	 
 	 	 	 	 / /   R u n   a n i m a t i o n 
 	 	 	 	 f o r ( v a r   c o l s   =   0 ;   c o l s   <   ( s e t t i n g s . b o x C o l s   *   2 ) ;   c o l s + + ) { 
 	 	 	 	 	 v a r   p r e v C o l   =   c o l s ; 
 	 	 	 	 	 f o r ( v a r   r o w s   =   0 ;   r o w s   <   s e t t i n g s . b o x R o w s ;   r o w s + + ) { 
 	 	 	 	 	 	 i f ( p r e v C o l   > =   0   & &   p r e v C o l   <   s e t t i n g s . b o x C o l s ) { 
 	 	 	 	 	 	 	 / *   D u e   t o   s o m e   w e i r d   J S   b u g   w i t h   l o o p   v a r s   
 	 	 	 	 	 	 	 b e i n g   u s e d   i n   s e t T i m e o u t ,   t h i s   i s   w r a p p e d 
 	 	 	 	 	 	 	 w i t h   a n   a n o n y m o u s   f u n c t i o n   c a l l   * / 
 	 	 	 	 	 	 	 ( f u n c t i o n ( r o w ,   c o l ,   t i m e ,   i ,   t o t a l B o x e s )   { 
 	 	 	 	 	 	 	 	 v a r   b o x   =   $ ( b o x 2 D a r r [ r o w ] [ c o l ] ) ; 
                                                                 v a r   w   =   b o x . w i d t h ( ) ; 
                                                                 v a r   h   =   b o x . h e i g h t ( ) ; 
                                                                 i f ( s e t t i n g s . e f f e c t   = =   ' b o x R a i n G r o w '   | |   v a r s . r a n d A n i m   = =   ' b o x R a i n G r o w '   | | 
                                                                       s e t t i n g s . e f f e c t   = =   ' b o x R a i n G r o w R e v e r s e '   | |   v a r s . r a n d A n i m   = =   ' b o x R a i n G r o w R e v e r s e ' ) { 
                                                                         b o x . w i d t h ( 0 ) . h e i g h t ( 0 ) ; 
                                                                 } 
 	 	 	 	 	 	 	 	 i f ( i   = =   t o t a l B o x e s - 1 ) { 
 	 	 	 	 	 	 	 	 	 s e t T i m e o u t ( f u n c t i o n ( ) { 
 	 	 	 	 	 	 	 	 	 	 b o x . a n i m a t e ( {   o p a c i t y : ' 1 ' ,   w i d t h : w ,   h e i g h t : h   } ,   s e t t i n g s . a n i m S p e e d / 1 . 3 ,   ' ' ,   f u n c t i o n ( ) {   s l i d e r . t r i g g e r ( ' n i v o : a n i m F i n i s h e d ' ) ;   } ) ; 
 	 	 	 	 	 	 	 	 	 } ,   ( 1 0 0   +   t i m e ) ) ; 
 	 	 	 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 	 	 	 s e t T i m e o u t ( f u n c t i o n ( ) { 
 	 	 	 	 	 	 	 	 	 	 b o x . a n i m a t e ( {   o p a c i t y : ' 1 ' ,   w i d t h : w ,   h e i g h t : h   } ,   s e t t i n g s . a n i m S p e e d / 1 . 3 ) ; 
 	 	 	 	 	 	 	 	 	 } ,   ( 1 0 0   +   t i m e ) ) ; 
 	 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 	 } ) ( r o w s ,   p r e v C o l ,   t i m e B u f f ,   i ,   t o t a l B o x e s ) ; 
 	 	 	 	 	 	 	 i + + ; 
 	 	 	 	 	 	 } 
 	 	 	 	 	 	 p r e v C o l - - ; 
 	 	 	 	 	 } 
 	 	 	 	 	 t i m e B u f f   + =   1 0 0 ; 
 	 	 	 	 } 
 	 	 	 } 
 	 	 } 
 	 	 
 	 	 / /   S h u f f l e   a n   a r r a y 
 	 	 v a r   s h u f f l e   =   f u n c t i o n ( a r r ) { 
 	 	 	 f o r ( v a r   j ,   x ,   i   =   a r r . l e n g t h ;   i ;   j   =   p a r s e I n t ( M a t h . r a n d o m ( )   *   i ) ,   x   =   a r r [ - - i ] ,   a r r [ i ]   =   a r r [ j ] ,   a r r [ j ]   =   x ) ; 
 	 	 	 r e t u r n   a r r ; 
 	 	 } 
                 
                 / /   F o r   d e b u g g i n g 
                 v a r   t r a c e   =   f u n c t i o n ( m s g ) { 
                         i f   ( t h i s . c o n s o l e   & &   t y p e o f   c o n s o l e . l o g   ! =   " u n d e f i n e d " ) 
                                 c o n s o l e . l o g ( m s g ) ; 
                 } 
                 
                 / /   S t a r t   /   S t o p 
                 t h i s . s t o p   =   f u n c t i o n ( ) { 
                         i f ( ! $ ( e l e m e n t ) . d a t a ( ' n i v o : v a r s ' ) . s t o p ) { 
                                 $ ( e l e m e n t ) . d a t a ( ' n i v o : v a r s ' ) . s t o p   =   t r u e ; 
                                 t r a c e ( ' S t o p   S l i d e r ' ) ; 
                         } 
                 } 
                 
                 t h i s . s t a r t   =   f u n c t i o n ( ) { 
                         i f ( $ ( e l e m e n t ) . d a t a ( ' n i v o : v a r s ' ) . s t o p ) { 
                                 $ ( e l e m e n t ) . d a t a ( ' n i v o : v a r s ' ) . s t o p   =   f a l s e ; 
                                 t r a c e ( ' S t a r t   S l i d e r ' ) ; 
                         } 
                 } 
                 
                 / / T r i g g e r   t h e   a f t e r L o a d   c a l l b a c k 
                 s e t t i n g s . a f t e r L o a d . c a l l ( t h i s ) ; 
 	 	 
 	 	 r e t u r n   t h i s ; 
         } ; 
                 
         $ . f n . n i v o S l i d e r   =   f u n c t i o n ( o p t i o n s )   { 
         
                 r e t u r n   t h i s . e a c h ( f u n c t i o n ( k e y ,   v a l u e ) { 
                         v a r   e l e m e n t   =   $ ( t h i s ) ; 
                         / /   R e t u r n   e a r l y   i f   t h i s   e l e m e n t   a l r e a d y   h a s   a   p l u g i n   i n s t a n c e 
                         i f   ( e l e m e n t . d a t a ( ' n i v o s l i d e r ' ) )   r e t u r n   e l e m e n t . d a t a ( ' n i v o s l i d e r ' ) ; 
                         / /   P a s s   o p t i o n s   t o   p l u g i n   c o n s t r u c t o r 
                         v a r   n i v o s l i d e r   =   n e w   N i v o S l i d e r ( t h i s ,   o p t i o n s ) ; 
                         / /   S t o r e   p l u g i n   o b j e c t   i n   t h i s   e l e m e n t ' s   d a t a 
                         e l e m e n t . d a t a ( ' n i v o s l i d e r ' ,   n i v o s l i d e r ) ; 
                 } ) ; 
 
 	 } ; 
 	 
 	 / / D e f a u l t   s e t t i n g s 
 	 $ . f n . n i v o S l i d e r . d e f a u l t s   =   { 
 	 	 e f f e c t :   ' r a n d o m ' , 
 	 	 s l i c e s :   1 5 , 
 	 	 b o x C o l s :   8 , 
 	 	 b o x R o w s :   4 , 
 	 	 a n i m S p e e d :   5 0 0 , 
 	 	 p a u s e T i m e :   3 0 0 0 , 
 	 	 s t a r t S l i d e :   0 , 
 	 	 d i r e c t i o n N a v :   t r u e , 
 	 	 d i r e c t i o n N a v H i d e :   t r u e , 
 	 	 c o n t r o l N a v :   t r u e , 
 	 	 c o n t r o l N a v T h u m b s :   f a l s e , 
                 c o n t r o l N a v T h u m b s F r o m R e l :   f a l s e , 
 	 	 c o n t r o l N a v T h u m b s S e a r c h :   ' . j p g ' , 
 	 	 c o n t r o l N a v T h u m b s R e p l a c e :   ' _ t h u m b . j p g ' , 
 	 	 k e y b o a r d N a v :   t r u e , 
 	 	 p a u s e O n H o v e r :   t r u e , 
 	 	 m a n u a l A d v a n c e :   f a l s e , 
 	 	 c a p t i o n O p a c i t y :   0 . 8 , 
 	 	 p r e v T e x t :   ' P r e v ' , 
 	 	 n e x t T e x t :   ' N e x t ' , 
 	 	 b e f o r e C h a n g e :   f u n c t i o n ( ) { } , 
 	 	 a f t e r C h a n g e :   f u n c t i o n ( ) { } , 
 	 	 s l i d e s h o w E n d :   f u n c t i o n ( ) { } , 
                 l a s t S l i d e :   f u n c t i o n ( ) { } , 
                 a f t e r L o a d :   f u n c t i o n ( ) { } 
 	 } ; 
 	 
 	 $ . f n . _ r e v e r s e   =   [ ] . r e v e r s e ; 
 	 
 } ) ( j Q u e r y ) ; 
 
 ( f u n c t i o n ( $ ) { 
 	 / *   h o v e r I n t e n t   b y   B r i a n   C h e r n e   * / 
 	 $ . f n . h o v e r I n t e n t   =   f u n c t i o n ( f , g )   { 
 	 	 / /   d e f a u l t   c o n f i g u r a t i o n   o p t i o n s 
 	 	 v a r   c f g   =   { 
 	 	 	 s e n s i t i v i t y :   7 , 
 	 	 	 i n t e r v a l :   1 0 0 , 
 	 	 	 t i m e o u t :   0 
 	 	 } ; 
 	 	 / /   o v e r r i d e   c o n f i g u r a t i o n   o p t i o n s   w i t h   u s e r   s u p p l i e d   o b j e c t 
 	 	 c f g   =   $ . e x t e n d ( c f g ,   g   ?   {   o v e r :   f ,   o u t :   g   }   :   f   ) ; 
 
 	 	 / /   i n s t a n t i a t e   v a r i a b l e s 
 	 	 / /   c X ,   c Y   =   c u r r e n t   X   a n d   Y   p o s i t i o n   o f   m o u s e ,   u p d a t e d   b y   m o u s e m o v e   e v e n t 
 	 	 / /   p X ,   p Y   =   p r e v i o u s   X   a n d   Y   p o s i t i o n   o f   m o u s e ,   s e t   b y   m o u s e o v e r   a n d   p o l l i n g   i n t e r v a l 
 	 	 v a r   c X ,   c Y ,   p X ,   p Y ; 
 
 	 	 / /   A   p r i v a t e   f u n c t i o n   f o r   g e t t i n g   m o u s e   p o s i t i o n 
 	 	 v a r   t r a c k   =   f u n c t i o n ( e v )   { 
 	 	 	 c X   =   e v . p a g e X ; 
 	 	 	 c Y   =   e v . p a g e Y ; 
 	 	 } ; 
 
 	 	 / /   A   p r i v a t e   f u n c t i o n   f o r   c o m p a r i n g   c u r r e n t   a n d   p r e v i o u s   m o u s e   p o s i t i o n 
 	 	 v a r   c o m p a r e   =   f u n c t i o n ( e v , o b )   { 
 	 	 	 o b . h o v e r I n t e n t _ t   =   c l e a r T i m e o u t ( o b . h o v e r I n t e n t _ t ) ; 
 	 	 	 / /   c o m p a r e   m o u s e   p o s i t i o n s   t o   s e e   i f   t h e y ' v e   c r o s s e d   t h e   t h r e s h o l d 
 	 	 	 i f   (   (   M a t h . a b s ( p X - c X )   +   M a t h . a b s ( p Y - c Y )   )   <   c f g . s e n s i t i v i t y   )   { 
 	 	 	 	 $ ( o b ) . u n b i n d ( " m o u s e m o v e " , t r a c k ) ; 
 	 	 	 	 / /   s e t   h o v e r I n t e n t   s t a t e   t o   t r u e   ( s o   m o u s e O u t   c a n   b e   c a l l e d ) 
 	 	 	 	 o b . h o v e r I n t e n t _ s   =   1 ; 
 	 	 	 	 r e t u r n   c f g . o v e r . a p p l y ( o b , [ e v ] ) ; 
 	 	 	 }   e l s e   { 
 	 	 	 	 / /   s e t   p r e v i o u s   c o o r d i n a t e s   f o r   n e x t   t i m e 
 	 	 	 	 p X   =   c X ;   p Y   =   c Y ; 
 	 	 	 	 / /   u s e   s e l f - c a l l i n g   t i m e o u t ,   g u a r a n t e e s   i n t e r v a l s   a r e   s p a c e d   o u t   p r o p e r l y   ( a v o i d s   J a v a S c r i p t   t i m e r   b u g s ) 
 	 	 	 	 o b . h o v e r I n t e n t _ t   =   s e t T i m e o u t (   f u n c t i o n ( ) { c o m p a r e ( e v ,   o b ) ; }   ,   c f g . i n t e r v a l   ) ; 
 	 	 	 } 
 	 	 } ; 
 
 	 	 / /   A   p r i v a t e   f u n c t i o n   f o r   d e l a y i n g   t h e   m o u s e O u t   f u n c t i o n 
 	 	 v a r   d e l a y   =   f u n c t i o n ( e v , o b )   { 
 	 	 	 o b . h o v e r I n t e n t _ t   =   c l e a r T i m e o u t ( o b . h o v e r I n t e n t _ t ) ; 
 	 	 	 o b . h o v e r I n t e n t _ s   =   0 ; 
 	 	 	 r e t u r n   c f g . o u t . a p p l y ( o b , [ e v ] ) ; 
 	 	 } ; 
 
 	 	 / /   A   p r i v a t e   f u n c t i o n   f o r   h a n d l i n g   m o u s e   ' h o v e r i n g ' 
 	 	 v a r   h a n d l e H o v e r   =   f u n c t i o n ( e )   { 
 	 	 	 / /   n e x t   t h r e e   l i n e s   c o p i e d   f r o m   j Q u e r y . h o v e r ,   i g n o r e   c h i l d r e n   o n M o u s e O v e r / o n M o u s e O u t 
 	 	 	 v a r   p   =   ( e . t y p e   = =   " m o u s e o v e r "   ?   e . f r o m E l e m e n t   :   e . t o E l e m e n t )   | |   e . r e l a t e d T a r g e t ; 
 	 	 	 w h i l e   (   p   & &   p   ! =   t h i s   )   {   t r y   {   p   =   p . p a r e n t N o d e ;   }   c a t c h ( e )   {   p   =   t h i s ;   }   } 
 	 	 	 i f   (   p   = =   t h i s   )   {   r e t u r n   f a l s e ;   } 
 
 	 	 	 / /   c o p y   o b j e c t s   t o   b e   p a s s e d   i n t o   t   ( r e q u i r e d   f o r   e v e n t   o b j e c t   t o   b e   p a s s e d   i n   I E ) 
 	 	 	 v a r   e v   =   j Q u e r y . e x t e n d ( { } , e ) ; 
 	 	 	 v a r   o b   =   t h i s ; 
 
 	 	 	 / /   c a n c e l   h o v e r I n t e n t   t i m e r   i f   i t   e x i s t s 
 	 	 	 i f   ( o b . h o v e r I n t e n t _ t )   {   o b . h o v e r I n t e n t _ t   =   c l e a r T i m e o u t ( o b . h o v e r I n t e n t _ t ) ;   } 
 
 	 	 	 / /   e l s e   e . t y p e   = =   " o n m o u s e o v e r " 
 	 	 	 i f   ( e . t y p e   = =   " m o u s e o v e r " )   { 
 	 	 	 	 / /   s e t   " p r e v i o u s "   X   a n d   Y   p o s i t i o n   b a s e d   o n   i n i t i a l   e n t r y   p o i n t 
 	 	 	 	 p X   =   e v . p a g e X ;   p Y   =   e v . p a g e Y ; 
 	 	 	 	 / /   u p d a t e   " c u r r e n t "   X   a n d   Y   p o s i t i o n   b a s e d   o n   m o u s e m o v e 
 	 	 	 	 $ ( o b ) . b i n d ( " m o u s e m o v e " , t r a c k ) ; 
 	 	 	 	 / /   s t a r t   p o l l i n g   i n t e r v a l   ( s e l f - c a l l i n g   t i m e o u t )   t o   c o m p a r e   m o u s e   c o o r d i n a t e s   o v e r   t i m e 
 	 	 	 	 i f   ( o b . h o v e r I n t e n t _ s   ! =   1 )   {   o b . h o v e r I n t e n t _ t   =   s e t T i m e o u t (   f u n c t i o n ( ) { c o m p a r e ( e v , o b ) ; }   ,   c f g . i n t e r v a l   ) ; } 
 
 	 	 	 / /   e l s e   e . t y p e   = =   " o n m o u s e o u t " 
 	 	 	 }   e l s e   { 
 	 	 	 	 / /   u n b i n d   e x p e n s i v e   m o u s e m o v e   e v e n t 
 	 	 	 	 $ ( o b ) . u n b i n d ( " m o u s e m o v e " , t r a c k ) ; 
 	 	 	 	 / /   i f   h o v e r I n t e n t   s t a t e   i s   t r u e ,   t h e n   c a l l   t h e   m o u s e O u t   f u n c t i o n   a f t e r   t h e   s p e c i f i e d   d e l a y 
 	 	 	 	 i f   ( o b . h o v e r I n t e n t _ s   = =   1 )   {   o b . h o v e r I n t e n t _ t   =   s e t T i m e o u t (   f u n c t i o n ( ) { d e l a y ( e v , o b ) ; }   ,   c f g . t i m e o u t   ) ; } 
 	 	 	 } 
 	 	 } ; 
 
 	 	 / /   b i n d   t h e   f u n c t i o n   t o   t h e   t w o   e v e n t   l i s t e n e r s 
 	 	 r e t u r n   t h i s . m o u s e o v e r ( h a n d l e H o v e r ) . m o u s e o u t ( h a n d l e H o v e r ) ; 
 	 } ; 
 	 
 } ) ( j Q u e r y ) ; 
 
 
 / * 
   *   S u p e r f i s h   v 1 . 4 . 8   -   j Q u e r y   m e n u   w i d g e t 
   *   C o p y r i g h t   ( c )   2 0 0 8   J o e l   B i r c h 
   * 
   *   D u a l   l i c e n s e d   u n d e r   t h e   M I T   a n d   G P L   l i c e n s e s : 
   *   	 h t t p : / / w w w . o p e n s o u r c e . o r g / l i c e n s e s / m i t - l i c e n s e . p h p 
   *   	 h t t p : / / w w w . g n u . o r g / l i c e n s e s / g p l . h t m l 
   * 
   *   C H A N G E L O G :   h t t p : / / u s e r s . t p g . c o m . a u / j _ b i r c h / p l u g i n s / s u p e r f i s h / c h a n g e l o g . t x t 
   * / 
 
 ; ( f u n c t i o n ( $ ) { 
 	 $ . f n . s u p e r f i s h   =   f u n c t i o n ( o p ) { 
 
 	 	 v a r   s f   =   $ . f n . s u p e r f i s h , 
 	 	 	 c   =   s f . c , 
 	 	 	 $ a r r o w   =   $ ( [ ' < s p a n   c l a s s = " ' , c . a r r o w C l a s s , ' " >   & # 1 8 7 ; < / s p a n > ' ] . j o i n ( ' ' ) ) , 
 	 	 	 o v e r   =   f u n c t i o n ( ) { 
 	 	 	 	 v a r   $ $   =   $ ( t h i s ) ,   m e n u   =   g e t M e n u ( $ $ ) ; 
 	 	 	 	 c l e a r T i m e o u t ( m e n u . s f T i m e r ) ; 
 	 	 	 	 $ $ . s h o w S u p e r f i s h U l ( ) . s i b l i n g s ( ) . h i d e S u p e r f i s h U l ( ) ; 
 	 	 	 } , 
 	 	 	 o u t   =   f u n c t i o n ( ) { 
 	 	 	 	 v a r   $ $   =   $ ( t h i s ) ,   m e n u   =   g e t M e n u ( $ $ ) ,   o   =   s f . o p ; 
 	 	 	 	 c l e a r T i m e o u t ( m e n u . s f T i m e r ) ; 
 	 	 	 	 m e n u . s f T i m e r = s e t T i m e o u t ( f u n c t i o n ( ) { 
 	 	 	 	 	 o . r e t a i n P a t h = ( $ . i n A r r a y ( $ $ [ 0 ] , o . $ p a t h ) > - 1 ) ; 
 	 	 	 	 	 $ $ . h i d e S u p e r f i s h U l ( ) ; 
 	 	 	 	 	 i f   ( o . $ p a t h . l e n g t h   & &   $ $ . p a r e n t s ( [ ' l i . ' , o . h o v e r C l a s s ] . j o i n ( ' ' ) ) . l e n g t h < 1 ) { o v e r . c a l l ( o . $ p a t h ) ; } 
 	 	 	 	 } , o . d e l a y ) ; 	 
 	 	 	 } , 
 	 	 	 g e t M e n u   =   f u n c t i o n ( $ m e n u ) { 
 	 	 	 	 v a r   m e n u   =   $ m e n u . p a r e n t s ( [ ' u l . ' , c . m e n u C l a s s , ' : f i r s t ' ] . j o i n ( ' ' ) ) [ 0 ] ; 
 	 	 	 	 s f . o p   =   s f . o [ m e n u . s e r i a l ] ; 
 	 	 	 	 r e t u r n   m e n u ; 
 	 	 	 } , 
 	 	 	 a d d A r r o w   =   f u n c t i o n ( $ a ) {   $ a . a d d C l a s s ( c . a n c h o r C l a s s ) . a p p e n d ( $ a r r o w . c l o n e ( ) ) ;   } ; 
 	 	 	 
 	 	 r e t u r n   t h i s . e a c h ( f u n c t i o n ( )   { 
 	 	 	 v a r   s   =   t h i s . s e r i a l   =   s f . o . l e n g t h ; 
 	 	 	 v a r   o   =   $ . e x t e n d ( { } , s f . d e f a u l t s , o p ) ; 
 	 	 	 o . $ p a t h   =   $ ( ' l i . ' + o . p a t h C l a s s , t h i s ) . s l i c e ( 0 , o . p a t h L e v e l s ) . e a c h ( f u n c t i o n ( ) { 
 	 	 	 	 $ ( t h i s ) . a d d C l a s s ( [ o . h o v e r C l a s s , c . b c C l a s s ] . j o i n ( '   ' ) ) 
 	 	 	 	 	 . f i l t e r ( ' l i : h a s ( u l ) ' ) . r e m o v e C l a s s ( o . p a t h C l a s s ) ; 
 	 	 	 } ) ; 
 	 	 	 s f . o [ s ]   =   s f . o p   =   o ; 
 	 	 	 
 	 	 	 $ ( ' l i : h a s ( u l ) ' , t h i s ) [ ( $ . f n . h o v e r I n t e n t   & &   ! o . d i s a b l e H I )   ?   ' h o v e r I n t e n t '   :   ' h o v e r ' ] ( o v e r , o u t ) . e a c h ( f u n c t i o n ( )   { 
 	 	 	 	 i f   ( o . a u t o A r r o w s )   a d d A r r o w (   $ ( ' > a : f i r s t - c h i l d ' , t h i s )   ) ; 
 	 	 	 } ) 
 	 	 	 . n o t ( ' . ' + c . b c C l a s s ) 
 	 	 	 	 . h i d e S u p e r f i s h U l ( ) ; 
 	 	 	 
 	 	 	 v a r   $ a   =   $ ( ' a ' , t h i s ) ; 
 	 	 	 $ a . e a c h ( f u n c t i o n ( i ) { 
 	 	 	 	 v a r   $ l i   =   $ a . e q ( i ) . p a r e n t s ( ' l i ' ) ; 
 	 	 	 	 $ a . e q ( i ) . f o c u s ( f u n c t i o n ( ) { o v e r . c a l l ( $ l i ) ; } ) . b l u r ( f u n c t i o n ( ) { o u t . c a l l ( $ l i ) ; } ) ; 
 	 	 	 } ) ; 
 	 	 	 o . o n I n i t . c a l l ( t h i s ) ; 
 	 	 	 
 	 	 } ) . e a c h ( f u n c t i o n ( )   { 
 	 	 	 v a r   m e n u C l a s s e s   =   [ c . m e n u C l a s s ] ; 
 	 	 	 i f   ( s f . o p . d r o p S h a d o w s     & &   ! ( $ . b r o w s e r . m s i e   & &   $ . b r o w s e r . v e r s i o n   <   7 ) )   m e n u C l a s s e s . p u s h ( c . s h a d o w C l a s s ) ; 
 	 	 	 $ ( t h i s ) . a d d C l a s s ( m e n u C l a s s e s . j o i n ( '   ' ) ) ; 
 	 	 } ) ; 
 	 } ; 
 
 	 v a r   s f   =   $ . f n . s u p e r f i s h ; 
 	 s f . o   =   [ ] ; 
 	 s f . o p   =   { } ; 
 	 s f . I E 7 f i x   =   f u n c t i o n ( ) { 
 	 	 v a r   o   =   s f . o p ; 
 	 	 i f   ( $ . b r o w s e r . m s i e   & &   $ . b r o w s e r . v e r s i o n   >   6   & &   o . d r o p S h a d o w s   & &   o . a n i m a t i o n . o p a c i t y ! = u n d e f i n e d ) 
 	 	 	 t h i s . t o g g l e C l a s s ( s f . c . s h a d o w C l a s s + ' - o f f ' ) ; 
 	 	 } ; 
 	 s f . c   =   { 
 	 	 b c C l a s s           :   ' s f - b r e a d c r u m b ' , 
 	 	 m e n u C l a s s       :   ' s f - j s - e n a b l e d ' , 
 	 	 a n c h o r C l a s s   :   ' s f - w i t h - u l ' , 
 	 	 a r r o w C l a s s     :   ' s f - s u b - i n d i c a t o r ' , 
 	 	 s h a d o w C l a s s   :   ' s f - s h a d o w ' 
 	 } ; 
 	 s f . d e f a u l t s   =   { 
 	 	 h o v e r C l a s s 	 :   ' s f H o v e r ' , 
 	 	 p a t h C l a s s 	 :   ' o v e r i d e T h i s T o U s e ' , 
 	 	 p a t h L e v e l s 	 :   1 , 
 	 	 d e l a y 	 	 :   8 0 0 , 
 	 	 a n i m a t i o n 	 :   { o p a c i t y : ' s h o w ' } , 
 	 	 s p e e d 	 	 :   ' n o r m a l ' , 
 	 	 a u t o A r r o w s 	 :   t r u e , 
 	 	 d r o p S h a d o w s   :   t r u e , 
 	 	 d i s a b l e H I 	 :   f a l s e , 	 	 / /   t r u e   d i s a b l e s   h o v e r I n t e n t   d e t e c t i o n 
 	 	 o n I n i t 	 	 :   f u n c t i o n ( ) { } ,   / /   c a l l b a c k   f u n c t i o n s 
 	 	 o n B e f o r e S h o w :   f u n c t i o n ( ) { } , 
 	 	 o n S h o w 	 	 :   f u n c t i o n ( ) { } , 
 	 	 o n H i d e 	 	 :   f u n c t i o n ( ) { } 
 	 } ; 
 	 $ . f n . e x t e n d ( { 
 	 	 h i d e S u p e r f i s h U l   :   f u n c t i o n ( ) { 
 	 	 	 v a r   o   =   s f . o p , 
 	 	 	 	 n o t   =   ( o . r e t a i n P a t h = = = t r u e )   ?   o . $ p a t h   :   ' ' ; 
 	 	 	 o . r e t a i n P a t h   =   f a l s e ; 
 	 	 	 v a r   $ u l   =   $ ( [ ' l i . ' , o . h o v e r C l a s s ] . j o i n ( ' ' ) , t h i s ) . a d d ( t h i s ) . n o t ( n o t ) . r e m o v e C l a s s ( o . h o v e r C l a s s ) 
 	 	 	 	 	 . f i n d ( ' > u l ' ) . h i d e ( ) . c s s ( ' v i s i b i l i t y ' , ' h i d d e n ' ) ; 
 	 	 	 o . o n H i d e . c a l l ( $ u l ) ; 
 	 	 	 r e t u r n   t h i s ; 
 	 	 } , 
 	 	 s h o w S u p e r f i s h U l   :   f u n c t i o n ( ) { 
 	 	 	 v a r   o   =   s f . o p , 
 	 	 	 	 s h   =   s f . c . s h a d o w C l a s s + ' - o f f ' , 
 	 	 	 	 $ u l   =   t h i s . a d d C l a s s ( o . h o v e r C l a s s ) 
 	 	 	 	 	 . f i n d ( ' > u l : h i d d e n ' ) . c s s ( ' v i s i b i l i t y ' , ' v i s i b l e ' ) ; 
 	 	 	 s f . I E 7 f i x . c a l l ( $ u l ) ; 
 	 	 	 o . o n B e f o r e S h o w . c a l l ( $ u l ) ; 
 	 	 	 $ u l . a n i m a t e ( o . a n i m a t i o n , o . s p e e d , f u n c t i o n ( ) {   s f . I E 7 f i x . c a l l ( $ u l ) ;   o . o n S h o w . c a l l ( $ u l ) ;   } ) ; 
 	 	 	 r e t u r n   t h i s ; 
 	 	 } 
 	 } ) ; 
 
 } ) ( j Q u e r y ) ; 
 
 
 / * 
   *   S u p e r s u b s   v 0 . 2 b   -   j Q u e r y   p l u g i n 
   *   C o p y r i g h t   ( c )   2 0 0 8   J o e l   B i r c h 
   * 
   *   D u a l   l i c e n s e d   u n d e r   t h e   M I T   a n d   G P L   l i c e n s e s : 
   *   	 h t t p : / / w w w . o p e n s o u r c e . o r g / l i c e n s e s / m i t - l i c e n s e . p h p 
   *   	 h t t p : / / w w w . g n u . o r g / l i c e n s e s / g p l . h t m l 
   * 
   * 
   *   T h i s   p l u g i n   a u t o m a t i c a l l y   a d j u s t s   s u b m e n u   w i d t h s   o f   s u c k e r f i s h - s t y l e   m e n u s   t o   t h a t   o f 
   *   t h e i r   l o n g e s t   l i s t   i t e m   c h i l d r e n .   I f   y o u   u s e   t h i s ,   p l e a s e   e x p e c t   b u g s   a n d   r e p o r t   t h e m 
   *   t o   t h e   j Q u e r y   G o o g l e   G r o u p   w i t h   t h e   w o r d   ' S u p e r f i s h '   i n   t h e   s u b j e c t   l i n e . 
   * 
   * / 
 
 ; ( f u n c t i o n ( $ ) {   / /   $   w i l l   r e f e r   t o   j Q u e r y   w i t h i n   t h i s   c l o s u r e 
 
 	 $ . f n . s u p e r s u b s   =   f u n c t i o n ( o p t i o n s ) { 
 	 	 v a r   o p t s   =   $ . e x t e n d ( { } ,   $ . f n . s u p e r s u b s . d e f a u l t s ,   o p t i o n s ) ; 
 	 	 / /   r e t u r n   o r i g i n a l   o b j e c t   t o   s u p p o r t   c h a i n i n g 
 	 	 r e t u r n   t h i s . e a c h ( f u n c t i o n ( )   { 
 	 	 	 / /   c a c h e   s e l e c t i o n s 
 	 	 	 v a r   $ $   =   $ ( t h i s ) ; 
 	 	 	 / /   s u p p o r t   m e t a d a t a 
 	 	 	 v a r   o   =   $ . m e t a   ?   $ . e x t e n d ( { } ,   o p t s ,   $ $ . d a t a ( ) )   :   o p t s ; 
 	 	 	 / /   g e t   t h e   f o n t   s i z e   o f   m e n u . 
 	 	 	 / /   . c s s ( ' f o n t S i z e ' )   r e t u r n s   v a r i o u s   r e s u l t s   c r o s s - b r o w s e r ,   s o   m e a s u r e   a n   e m   d a s h   i n s t e a d 
 	 	 	 v a r   f o n t s i z e   =   $ ( ' < l i   i d = " m e n u - f o n t s i z e " > & # 8 2 1 2 ; < / l i > ' ) . c s s ( { 
 	 	 	 	 ' p a d d i n g '   :   0 , 
 	 	 	 	 ' p o s i t i o n '   :   ' a b s o l u t e ' , 
 	 	 	 	 ' t o p '   :   ' - 9 9 9 e m ' , 
 	 	 	 	 ' w i d t h '   :   ' a u t o ' 
 	 	 	 } ) . a p p e n d T o ( $ $ ) . w i d t h ( ) ;   / / c l i e n t W i d t h   i s   f a s t e r ,   b u t   w a s   i n c o r r e c t   h e r e 
 	 	 	 / /   r e m o v e   e m   d a s h 
 	 	 	 $ ( ' # m e n u - f o n t s i z e ' ) . r e m o v e ( ) ; 
 	 	 	 / /   c a c h e   a l l   u l   e l e m e n t s 
 	 	 	 $ U L s   =   $ $ . f i n d ( ' u l ' ) ; 
 	 	 	 / /   l o o p   t h r o u g h   e a c h   u l   i n   m e n u 
 	 	 	 $ U L s . e a c h ( f u n c t i o n ( i )   { 	 
 	 	 	 	 / /   c a c h e   t h i s   u l 
 	 	 	 	 v a r   $ u l   =   $ U L s . e q ( i ) ; 
 	 	 	 	 / /   g e t   a l l   ( l i )   c h i l d r e n   o f   t h i s   u l 
 	 	 	 	 v a r   $ L I s   =   $ u l . c h i l d r e n ( ) ; 
 	 	 	 	 / /   g e t   a l l   a n c h o r   g r a n d - c h i l d r e n 
 	 	 	 	 v a r   $ A s   =   $ L I s . c h i l d r e n ( ' a ' ) ; 
 	 	 	 	 / /   f o r c e   c o n t e n t   t o   o n e   l i n e   a n d   s a v e   c u r r e n t   f l o a t   p r o p e r t y 
 	 	 	 	 v a r   l i F l o a t   =   $ L I s . c s s ( ' w h i t e - s p a c e ' , ' n o w r a p ' ) . c s s ( ' f l o a t ' ) ; 
 	 	 	 	 / /   r e m o v e   w i d t h   r e s t r i c t i o n s   a n d   f l o a t s   s o   e l e m e n t s   r e m a i n   v e r t i c a l l y   s t a c k e d 
 	 	 	 	 v a r   e m W i d t h   =   $ u l . a d d ( $ L I s ) . a d d ( $ A s ) . c s s ( { 
 	 	 	 	 	 ' f l o a t '   :   ' n o n e ' , 
 	 	 	 	 	 ' w i d t h ' 	 :   ' a u t o ' 
 	 	 	 	 } ) 
 	 	 	 	 / /   t h i s   u l   w i l l   n o w   b e   s h r i n k - w r a p p e d   t o   l o n g e s t   l i   d u e   t o   p o s i t i o n : a b s o l u t e 
 	 	 	 	 / /   s o   s a v e   i t s   w i d t h   a s   e m s .   C l i e n t w i d t h   i s   2   t i m e s   f a s t e r   t h a n   . w i d t h ( )   -   t h a n k s   D a n   S w i t z e r 
 	 	 	 	 . e n d ( ) . e n d ( ) [ 0 ] . c l i e n t W i d t h   /   f o n t s i z e ; 
 	 	 	 	 / /   a d d   m o r e   w i d t h   t o   e n s u r e   l i n e s   d o n ' t   t u r n   o v e r   a t   c e r t a i n   s i z e s   i n   v a r i o u s   b r o w s e r s 
 	 	 	 	 e m W i d t h   + =   o . e x t r a W i d t h ; 
 	 	 	 	 / /   r e s t r i c t   t o   a t   l e a s t   m i n W i d t h   a n d   a t   m o s t   m a x W i d t h 
 	 	 	 	 i f   ( e m W i d t h   >   o . m a x W i d t h ) 	 	 {   e m W i d t h   =   o . m a x W i d t h ;   } 
 	 	 	 	 e l s e   i f   ( e m W i d t h   <   o . m i n W i d t h ) 	 {   e m W i d t h   =   o . m i n W i d t h ;   } 
 	 	 	 	 e m W i d t h   + =   ' e m ' ; 
 	 	 	 	 / /   s e t   u l   t o   w i d t h   i n   e m s 
 	 	 	 	 $ u l . c s s ( ' w i d t h ' , e m W i d t h ) ; 
 	 	 	 	 / /   r e s t o r e   l i   f l o a t s   t o   a v o i d   I E   b u g s 
 	 	 	 	 / /   s e t   l i   w i d t h   t o   f u l l   w i d t h   o f   t h i s   u l 
 	 	 	 	 / /   r e v e r t   w h i t e - s p a c e   t o   n o r m a l 
 	 	 	 	 $ L I s . c s s ( { 
 	 	 	 	 	 ' f l o a t '   :   l i F l o a t , 
 	 	 	 	 	 ' w i d t h '   :   ' 1 0 0 % ' , 
 	 	 	 	 	 ' w h i t e - s p a c e '   :   ' n o r m a l ' 
 	 	 	 	 } ) 
 	 	 	 	 / /   u p d a t e   o f f s e t   p o s i t i o n   o f   d e s c e n d a n t   u l   t o   r e f l e c t   n e w   w i d t h   o f   p a r e n t 
 	 	 	 	 . e a c h ( f u n c t i o n ( ) { 
 	 	 	 	 	 v a r   $ c h i l d U l   =   $ ( ' > u l ' , t h i s ) ; 
 	 	 	 	 	 v a r   o f f s e t D i r e c t i o n   =   $ c h i l d U l . c s s ( ' l e f t ' ) ! = = u n d e f i n e d   ?   ' l e f t '   :   ' r i g h t ' ; 
 	 	 	 	 	 $ c h i l d U l . c s s ( o f f s e t D i r e c t i o n , e m W i d t h ) ; 
 	 	 	 	 } ) ; 
 	 	 	 } ) ; 
 	 	 	 
 	 	 } ) ; 
 	 } ; 
 	 / /   e x p o s e   d e f a u l t s 
 	 $ . f n . s u p e r s u b s . d e f a u l t s   =   { 
 	 	 m i n W i d t h 	 	 :   9 , 	 	 / /   r e q u i r e s   e m   u n i t . 
 	 	 m a x W i d t h 	 	 :   2 5 , 	 	 / /   r e q u i r e s   e m   u n i t . 
 	 	 e x t r a W i d t h 	 	 :   0 	 	 	 / /   e x t r a   w i d t h   c a n   e n s u r e   l i n e s   d o n ' t   s o m e t i m e s   t u r n   o v e r   d u e   t o   s l i g h t   b r o w s e r   d i f f e r e n c e s   i n   h o w   t h e y   r o u n d - o f f   v a l u e s 
 	 } ; 
 	 
 } ) ( j Q u e r y ) ;   / /   p l u g i n   c o d e   e n d s 
 
 j Q u e r y . f n . o t w i t   =   f u n c t i o n ( o p t i o n s )   { 
 
 	 / / g e t   o b j e c t 
 	 v a r   o b j   =   $ ( t h i s [ 0 ] ) ; 
 	 
 	 / / g e t   o p t i o n s 
 	   v a r   o p t i o n s   =   j Q u e r y . e x t e n d (   { 
 
             c o u n t :   " 3 " , 	 	 	 	 	 	 	 / / h o w   m a n y   t w e e t s   t o   d i s p l a y ? 
             t y p e :   " u s e r " , 	 	 	 	 	 	 	 / / t y p e   o f   f e e d   -   p u b l i c ,   h o m e ,   u s e r ,   m e n t i o n s ,   r e t w e e t e d _ b y _ m e ,   r e t w e e t e d _ t o _ m e ,   r e t w e e t s _ o f _ m e ,   f a v o r i t e s 
 	     a v a t a r _ s i z e :   " 0 " , 	 	 	 	 	 	 / / l e a v e   b l a n k   i f   y o u   d o n t   n e e d   a n   a v a t a r   o r   o t h e r w i s e   e n t e r   n u m b e r   i n   p i x e l s 
 	     l o a d i n g _ t e x t :   " L o a d i n g   t w e e t s . . . " ,   	 / / l o a d i n g   t e x t 
 	     a j a x _ r e f r e s h :   " 0 " , 	 	 	 	 	 / / a j a x   r e f r e s h   r a t e   -   0   m e a n s   n o n e 
 	     b a s e u r l :   " " 	 	 	 	 	 
 	     
         } ,   o p t i o n s ) ; 
         
         / / s e t   l o a d i n g   t e x t 
 	 / / o b j . h t m l ( o p t i o n s . l o a d i n g _ t e x t ) ; 
 	         
         
         f u n c t i o n   o t w i t _ d i s p l a y ( )   { 
 	 	 $ . a j a x ( { 
 	 	     u r l :   o p t i o n s . b a s e u r l   +   ' o t w i t . p h p ? c o u n t = '   +   o p t i o n s . c o u n t   +   ' & t y p e = '   +   o p t i o n s . t y p e     +   ' & a s i z e = '   +   o p t i o n s . a v a t a r _ s i z e , 
 	 	     s u c c e s s :   f u n c t i o n ( d a t a )   { 
 	 	         o b j . h t m l ( d a t a ) ; 
 	 	     } 
 	 	 } ) ; 
 	 } 
 	 
 	 o t w i t _ d i s p l a y ( ) ; 
 	 
 	 i f ( o p t i o n s . a j a x _ r e f r e s h   ! =   " 0 " )   { 
 	 	 s e t I n t e r v a l ( f u n c t i o n ( )   { 
 	 	         o t w i t _ d i s p l a y ( ) ; 
 	 	 } ,   o p t i o n s . a j a x _ r e f r e s h * 1 0 0 0 ) ; 
 	 } 
 	 
 } 
 
 
 
 
