ÿþ/ * 
   *   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 . 3 
   *   h t t p : / / j q u e r y . c o m / 
   * 
   *   C o p y r i g h t   ( c )   2 0 0 9   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   a n d   G P L   l i c e n s e s . 
   *   h t t p : / / d o c s . j q u e r y . c o m / L i c e n s e 
   * 
   *   D a t e :   2 0 0 9 - 0 1 - 1 3   1 2 : 5 0 : 3 1   - 0 5 0 0   ( T u e ,   1 3   J a n   2 0 0 9 ) 
   *   R e v i s i o n :   6 1 0 4 
   * / 
 ( f u n c t i o n ( ) { v a r   l = t h i s , g , x = l . j Q u e r y , o = l . $ , n = l . j Q u e r y = l . $ = f u n c t i o n ( D , E ) { r e t u r n   n e w   n . f n . i n i t ( D , E ) } , C = / ^ [ ^ < ] * ( < ( . | \ s ) + > ) [ ^ > ] * $ | ^ # ( [ \ w - ] + ) $ / , f = / ^ . [ ^ : # \ [ \ . , ] * $ / ; n . f n = n . p r o t o t y p e = { i n i t : f u n c t i o n ( D , G ) { D = D | | d o c u m e n t ; i f ( D . n o d e T y p e ) { t h i s [ 0 ] = D ; t h i s . l e n g t h = 1 ; t h i s . c o n t e x t = D ; r e t u r n   t h i s } i f ( t y p e o f   D = = = " s t r i n g " ) { v a r   F = C . e x e c ( D ) ; i f ( F & & ( F [ 1 ] | | ! G ) ) { i f ( F [ 1 ] ) { D = n . c l e a n ( [ F [ 1 ] ] , G ) } e l s e { v a r   H = d o c u m e n t . g e t E l e m e n t B y I d ( F [ 3 ] ) ; i f ( H ) { i f ( H . i d ! = F [ 3 ] ) { r e t u r n   n ( ) . f i n d ( D ) } v a r   E = n ( H ) ; E . c o n t e x t = d o c u m e n t ; E . s e l e c t o r = D ; r e t u r n   E } D = [ ] } } e l s e { r e t u r n   n ( G ) . f i n d ( D ) } } e l s e { i f ( n . i s F u n c t i o n ( D ) ) { r e t u r n   n ( d o c u m e n t ) . r e a d y ( D ) } } i f ( D . s e l e c t o r & & D . c o n t e x t ) { t h i s . s e l e c t o r = D . s e l e c t o r ; t h i s . c o n t e x t = D . c o n t e x t } r e t u r n   t h i s . s e t A r r a y ( n . m a k e A r r a y ( D ) ) } , s e l e c t o r : " " , j q u e r y : " 1 . 3 " , 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 } , g e t : f u n c t i o n ( D ) { r e t u r n   D = = = g ? n . m a k e A r r a y ( t h i s ) : t h i s [ D ] } , p u s h S t a c k : f u n c t i o n ( E , G , D ) { v a r   F = n ( E ) ; F . p r e v O b j e c t = t h i s ; F . c o n t e x t = t h i s . c o n t e x t ; i f ( G = = = " f i n d " ) { F . 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 ? "   " : " " ) + D } e l s e { i f ( G ) { F . s e l e c t o r = t h i s . s e l e c t o r + " . " + G + " ( " + D + " ) " } } r e t u r n   F } , s e t A r r a y : f u n c t i o n ( D ) { t h i s . l e n g t h = 0 ; A r r a y . p r o t o t y p e . p u s h . a p p l y ( t h i s , D ) ; r e t u r n   t h i s } , e a c h : f u n c t i o n ( E , D ) { r e t u r n   n . e a c h ( t h i s , E , D ) } , i n d e x : f u n c t i o n ( D ) { r e t u r n   n . i n A r r a y ( D & & D . j q u e r y ? D [ 0 ] : D , t h i s ) } , a t t r : f u n c t i o n ( E , G , F ) { v a r   D = E ; i f ( t y p e o f   E = = = " s t r i n g " ) { i f ( G = = = g ) { r e t u r n   t h i s [ 0 ] & & n [ F | | " a t t r " ] ( t h i s [ 0 ] , E ) } e l s e { D = { } ; D [ E ] = G } } r e t u r n   t h i s . e a c h ( f u n c t i o n ( H ) { f o r ( E   i n   D ) { n . a t t r ( F ? t h i s . s t y l e : t h i s , E , n . p r o p ( t h i s , D [ E ] , F , H , E ) ) } } ) } , c s s : f u n c t i o n ( D , E ) { i f ( ( D = = " w i d t h " | | D = = " h e i g h t " ) & & p a r s e F l o a t ( E ) < 0 ) { E = g } r e t u r n   t h i s . a t t r ( D , E , " c u r C S S " ) } , t e x t : f u n c t i o n ( E ) { i f ( t y p e o f   E ! = = " o b j e c t " & & E ! = n u l l ) { 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 | | d o c u m e n t ) . c r e a t e T e x t N o d e ( E ) ) } v a r   D = " " ; n . e a c h ( E | | t h i s , f u n c t i o n ( ) { n . e a c h ( t h i s . c h i l d N o d e s , f u n c t i o n ( ) { i f ( t h i s . n o d e T y p e ! = 8 ) { D + = t h i s . n o d e T y p e ! = 1 ? t h i s . n o d e V a l u e : n . f n . t e x t ( [ t h i s ] ) } } ) } ) ; r e t u r n   D } , w r a p A l l : f u n c t i o n ( D ) { i f ( t h i s [ 0 ] ) { v a r   E = n ( D , t h i s [ 0 ] . o w n e r D o c u m e n t ) . c l o n e ( ) ; i f ( t h i s [ 0 ] . p a r e n t N o d e ) { E . i n s e r t B e f o r e ( t h i s [ 0 ] ) } E . m a p ( f u n c t i o n ( ) { v a r   F = t h i s ; w h i l e ( F . f i r s t C h i l d ) { F = F . f i r s t C h i l d } r e t u r n   F } ) . 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 ( D ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { n ( t h i s ) . c o n t e n t s ( ) . w r a p A l l ( D ) } ) } , w r a p : f u n c t i o n ( D ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { n ( t h i s ) . w r a p A l l ( 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 , t r u e , f u n c t i o n ( D ) { i f ( 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 ( D ) } } ) } , 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 , t r u e , f u n c t i o n ( D ) { i f ( 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 ( D , 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 ( ) { 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 , f a l s e , f u n c t i o n ( D ) { 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 ( D , t h i s ) } ) } , a f t e r : 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 , f a l s e , f u n c t i o n ( D ) { 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 ( D , t h i s . n e x t S i b l i n g ) } ) } , 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 | | n ( [ ] ) } , p u s h : [ ] . p u s h , f i n d : f u n c t i o n ( D ) { i f ( t h i s . l e n g t h = = = 1 & & ! / , / . t e s t ( D ) ) { v a r   F = t h i s . p u s h S t a c k ( [ ] , " f i n d " , D ) ; F . l e n g t h = 0 ; n . f i n d ( D , t h i s [ 0 ] , F ) ; r e t u r n   F } e l s e { v a r   E = n . m a p ( t h i s , f u n c t i o n ( G ) { r e t u r n   n . f i n d ( D , G ) } ) ; r e t u r n   t h i s . p u s h S t a c k ( / [ ^ + > ]   [ ^ + > ] / . t e s t ( D ) ? n . u n i q u e ( E ) : E , " f i n d " , D ) } } , c l o n e : f u n c t i o n ( E ) { v a r   D = t h i s . m a p ( f u n c t i o n ( ) { i f ( ! n . s u p p o r t . n o C l o n e E v e n t & & ! n . i s X M L D o c ( t h i s ) ) { v a r   H = t h i s . c l o n e N o d e ( t r u e ) , G = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; G . a p p e n d C h i l d ( H ) ; r e t u r n   n . c l e a n ( [ G . i n n e r H T M L ] ) [ 0 ] } e l s e { r e t u r n   t h i s . c l o n e N o d e ( t r u e ) } } ) ; v a r   F = D . 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 [ h ] ! = = g ) { t h i s [ h ] = n u l l } } ) ; i f ( E = = = t r u e ) { t h i s . f i n d ( " * " ) . a n d S e l f ( ) . e a c h ( f u n c t i o n ( H ) { i f ( t h i s . n o d e T y p e = = 3 ) { r e t u r n } v a r   G = n . d a t a ( t h i s , " e v e n t s " ) ; f o r ( v a r   J   i n   G ) { f o r ( v a r   I   i n   G [ J ] ) { n . e v e n t . a d d ( F [ H ] , J , G [ J ] [ I ] , G [ J ] [ I ] . d a t a ) } } } ) } r e t u r n   D } , f i l t e r : f u n c t i o n ( D ) { r e t u r n   t h i s . p u s h S t a c k ( n . i s F u n c t i o n ( D ) & & n . g r e p ( t h i s , f u n c t i o n ( F , E ) { r e t u r n   D . c a l l ( F , E ) } ) | | n . m u l t i F i l t e r ( D , n . g r e p ( t h i s , f u n c t i o n ( E ) { r e t u r n   E . n o d e T y p e = = = 1 } ) ) , " f i l t e r " , D ) } , c l o s e s t : f u n c t i o n ( D ) { v a r   E = n . e x p r . m a t c h . P O S . t e s t ( D ) ? n ( D ) : n u l l ; r e t u r n   t h i s . m a p ( f u n c t i o n ( ) { v a r   F = t h i s ; w h i l e ( F & & F . o w n e r D o c u m e n t ) { i f ( E ? E . i n d e x ( F ) > - 1 : n ( F ) . i s ( D ) ) { r e t u r n   F } F = F . p a r e n t N o d e } } ) } , n o t : f u n c t i o n ( D ) { i f ( t y p e o f   D = = = " s t r i n g " ) { i f ( f . t e s t ( D ) ) { r e t u r n   t h i s . p u s h S t a c k ( n . m u l t i F i l t e r ( D , t h i s , t r u e ) , " n o t " , D ) } e l s e { D = n . m u l t i F i l t e r ( D , t h i s ) } } v a r   E = D . l e n g t h & & D [ D . l e n g t h - 1 ] ! = = g & & ! D . n o d e T y p e ; r e t u r n   t h i s . f i l t e r ( f u n c t i o n ( ) { r e t u r n   E ? n . i n A r r a y ( t h i s , D ) < 0 : t h i s ! = D } ) } , a d d : f u n c t i o n ( D ) { r e t u r n   t h i s . p u s h S t a c k ( n . u n i q u e ( n . m e r g e ( t h i s . g e t ( ) , t y p e o f   D = = = " s t r i n g " ? n ( D ) : n . m a k e A r r a y ( D ) ) ) ) } , i s : f u n c t i o n ( D ) { r e t u r n   ! ! D & & n . m u l t i F i l t e r ( D , t h i s ) . l e n g t h > 0 } , h a s C l a s s : f u n c t i o n ( D ) { r e t u r n   ! ! D & & t h i s . i s ( " . " + D ) } , v a l : f u n c t i o n ( J ) { i f ( J = = = g ) { v a r   D = t h i s [ 0 ] ; i f ( D ) { i f ( n . n o d e N a m e ( D , " o p t i o n " ) ) { r e t u r n ( D . a t t r i b u t e s . v a l u e | | { } ) . s p e c i f i e d ? D . v a l u e : D . t e x t } i f ( n . n o d e N a m e ( D , " s e l e c t " ) ) { v a r   H = D . s e l e c t e d I n d e x , K = [ ] , L = D . o p t i o n s , G = D . t y p e = = " s e l e c t - o n e " ; i f ( H < 0 ) { r e t u r n   n u l l } f o r ( v a r   E = G ? H : 0 , I = G ? H + 1 : L . l e n g t h ; E < I ; E + + ) { v a r   F = L [ E ] ; i f ( F . s e l e c t e d ) { J = n ( F ) . v a l ( ) ; i f ( G ) { r e t u r n   J } K . p u s h ( J ) } } r e t u r n   K } r e t u r n ( D . v a l u e | | " " ) . r e p l a c e ( / \ r / g , " " ) } r e t u r n   g } i f ( t y p e o f   J = = = " n u m b e r " ) { J + = " " } r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { i f ( t h i s . n o d e T y p e ! = 1 ) { r e t u r n } i f ( n . i s A r r a y ( J ) & & / r a d i o | c h e c k b o x / . t e s t ( t h i s . t y p e ) ) { t h i s . c h e c k e d = ( n . i n A r r a y ( t h i s . v a l u e , J ) > = 0 | | n . i n A r r a y ( t h i s . n a m e , J ) > = 0 ) } e l s e { i f ( n . n o d e N a m e ( t h i s , " s e l e c t " ) ) { v a r   M = n . m a k e A r r a y ( J ) ; n ( " o p t i o n " , t h i s ) . e a c h ( f u n c t i o n ( ) { t h i s . s e l e c t e d = ( n . i n A r r a y ( t h i s . v a l u e , M ) > = 0 | | n . i n A r r a y ( t h i s . t e x t , M ) > = 0 ) } ) ; i f ( ! M . l e n g t h ) { t h i s . s e l e c t e d I n d e x = - 1 } } e l s e { t h i s . v a l u e = J } } } ) } , h t m l : f u n c t i o n ( D ) { r e t u r n   D = = = g ? ( t h i s [ 0 ] ? t h i s [ 0 ] . i n n e r H T M L : n u l l ) : t h i s . e m p t y ( ) . a p p e n d ( D ) } , r e p l a c e W i t h : f u n c t i o n ( D ) { r e t u r n   t h i s . a f t e r ( D ) . r e m o v e ( ) } , e q : f u n c t i o n ( D ) { r e t u r n   t h i s . s l i c e ( D , + D + 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 ( A r r a y . p r o t o t y p e . s l i c e . a p p l y ( t h i s , a r g u m e n t s ) , " s l i c e " , 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 ) . j o i n ( " , " ) ) } , m a p : f u n c t i o n ( D ) { r e t u r n   t h i s . p u s h S t a c k ( n . m a p ( t h i s , f u n c t i o n ( F , E ) { r e t u r n   D . c a l l ( F , E , F ) } ) ) } , 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 ) } , d o m M a n i p : f u n c t i o n ( J , M , L ) { i f ( t h i s [ 0 ] ) { v a r   I = ( t h i s [ 0 ] . o w n e r D o c u m e n t | | t h i s [ 0 ] ) . c r e a t e D o c u m e n t F r a g m e n t ( ) , F = n . c l e a n ( J , ( t h i s [ 0 ] . o w n e r D o c u m e n t | | t h i s [ 0 ] ) , I ) , H = I . f i r s t C h i l d , D = t h i s . l e n g t h > 1 ? I . c l o n e N o d e ( t r u e ) : I ; i f ( H ) { f o r ( v a r   G = 0 , E = t h i s . l e n g t h ; G < E ; G + + ) { L . c a l l ( K ( t h i s [ G ] , H ) , G > 0 ? D . c l o n e N o d e ( t r u e ) : I ) } } i f ( F ) { n . e a c h ( F , y ) } } r e t u r n   t h i s ; f u n c t i o n   K ( N , O ) { r e t u r n   M & & n . n o d e N a m e ( N , " t a b l e " ) & & n . n o d e N a m e ( O , " t r " ) ? ( N . 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 ] | | N . a p p e n d C h i l d ( N . 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 " ) ) ) : N } } } ; n . f n . i n i t . p r o t o t y p e = n . f n ; f u n c t i o n   y ( D , E ) { i f ( E . s r c ) { n . a j a x ( { u r l : E . s r c , a s y n c : f a l s e , d a t a T y p e : " s c r i p t " } ) } e l s e { n . g l o b a l E v a l ( E . t e x t | | E . t e x t C o n t e n t | | E . i n n e r H T M L | | " " ) } i f ( E . p a r e n t N o d e ) { E . p a r e n t N o d e . r e m o v e C h i l d ( E ) } } f u n c t i o n   e ( ) { r e t u r n   + n e w   D a t e } n . e x t e n d = n . f n . e x t e n d = f u n c t i o n ( ) { v a r   I = a r g u m e n t s [ 0 ] | | { } , G = 1 , H = a r g u m e n t s . l e n g t h , D = f a l s e , F ; i f ( t y p e o f   I = = = " b o o l e a n " ) { D = I ; I = a r g u m e n t s [ 1 ] | | { } ; G = 2 } i f ( t y p e o f   I ! = = " o b j e c t " & & ! n . i s F u n c t i o n ( I ) ) { I = { } } i f ( H = = G ) { I = t h i s ; - - G } f o r ( ; G < H ; G + + ) { i f ( ( F = a r g u m e n t s [ G ] ) ! = n u l l ) { f o r ( v a r   E   i n   F ) { v a r   J = I [ E ] , K = F [ E ] ; i f ( I = = = K ) { c o n t i n u e } i f ( D & & K & & t y p e o f   K = = = " o b j e c t " & & ! K . n o d e T y p e ) { I [ E ] = n . e x t e n d ( D , J | | ( K . l e n g t h ! = n u l l ? [ ] : { } ) , K ) } e l s e { i f ( K ! = = g ) { I [ E ] = K } } } } } r e t u r n   I } ; v a r   b = / z - ? i n d e x | f o n t - ? w e i g h t | o p a c i t y | z o o m | l i n e - ? h e i g h t / i , p = d o c u m e n t . d e f a u l t V i e w | | { } , r = O b j e c t . p r o t o t y p e . t o S t r i n g ; n . e x t e n d ( { n o C o n f l i c t : f u n c t i o n ( D ) { l . $ = o ; i f ( D ) { l . j Q u e r y = x } r e t u r n   n } , i s F u n c t i o n : f u n c t i o n ( D ) { r e t u r n   r . c a l l ( D ) = = = " [ o b j e c t   F u n c t i o n ] " } , i s A r r a y : f u n c t i o n ( D ) { r e t u r n   r . c a l l ( D ) = = = " [ o b j e c t   A r r a y ] " } , i s X M L D o c : f u n c t i o n ( D ) { r e t u r n   D . d o c u m e n t E l e m e n t & & ! D . b o d y | | D . t a g N a m e & & D . o w n e r D o c u m e n t & & ! D . o w n e r D o c u m e n t . b o d y } , g l o b a l E v a l : f u n c t i o n ( F ) { F = n . t r i m ( F ) ; i f ( F ) { v a r   E = d o c u m e n t . 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 ] | | d o c u m e n t . d o c u m e n t E l e m e n t , D = d o c u m e n t . c r e a t e E l e m e n t ( " s c r i p t " ) ; D . t y p e = " t e x t / j a v a s c r i p t " ; i f ( n . s u p p o r t . s c r i p t E v a l ) { D . a p p e n d C h i l d ( d o c u m e n t . c r e a t e T e x t N o d e ( F ) ) } e l s e { D . t e x t = F } 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 ) ; E . r e m o v e C h i l d ( D ) } } , n o d e N a m e : f u n c t i o n ( E , D ) { r e t u r n   E . n o d e N a m e & & E . n o d e N a m e . t o U p p e r C a s e ( ) = = D . t o U p p e r C a s e ( ) } , e a c h : f u n c t i o n ( F , J , E ) { v a r   D , G = 0 , H = F . l e n g t h ; i f ( E ) { i f ( H = = = g ) { f o r ( D   i n   F ) { i f ( J . a p p l y ( F [ D ] , E ) = = = f a l s e ) { b r e a k } } } e l s e { f o r ( ; G < H ; ) { i f ( J . a p p l y ( F [ G + + ] , E ) = = = f a l s e ) { b r e a k } } } } e l s e { i f ( H = = = g ) { f o r ( D   i n   F ) { i f ( J . c a l l ( F [ D ] , D , F [ D ] ) = = = f a l s e ) { b r e a k } } } e l s e { f o r ( v a r   I = F [ 0 ] ; G < H & & J . c a l l ( I , G , I ) ! = = f a l s e ; I = F [ + + G ] ) { } } } r e t u r n   F } , p r o p : f u n c t i o n ( G , H , F , E , D ) { i f ( n . i s F u n c t i o n ( H ) ) { H = H . c a l l ( G , E ) } r e t u r n   t y p e o f   H = = = " n u m b e r " & & F = = " c u r C S S " & & ! b . t e s t ( D ) ? H + " p x " : H } , c l a s s N a m e : { a d d : f u n c t i o n ( D , E ) { n . e a c h ( ( E | | " " ) . s p l i t ( / \ s + / ) , f u n c t i o n ( F , G ) { i f ( D . n o d e T y p e = = 1 & & ! n . c l a s s N a m e . h a s ( D . c l a s s N a m e , G ) ) { D . c l a s s N a m e + = ( D . c l a s s N a m e ? "   " : " " ) + G } } ) } , r e m o v e : f u n c t i o n ( D , E ) { i f ( D . n o d e T y p e = = 1 ) { D . c l a s s N a m e = E ! = = g ? n . g r e p ( D . c l a s s N a m e . s p l i t ( / \ s + / ) , f u n c t i o n ( F ) { r e t u r n   ! n . c l a s s N a m e . h a s ( E , F ) } ) . j o i n ( "   " ) : " " } } , h a s : f u n c t i o n ( E , D ) { r e t u r n   n . i n A r r a y ( D , ( E . c l a s s N a m e | | E ) . t o S t r i n g ( ) . s p l i t ( / \ s + / ) ) > - 1 } } , s w a p : f u n c t i o n ( G , F , H ) { v a r   D = { } ; f o r ( v a r   E   i n   F ) { D [ E ] = G . s t y l e [ E ] ; G . s t y l e [ E ] = F [ E ] } H . c a l l ( G ) ; f o r ( v a r   E   i n   F ) { G . s t y l e [ E ] = D [ E ] } } , c s s : f u n c t i o n ( F , D , H ) { i f ( D = = " w i d t h " | | D = = " h e i g h t " ) { v a r   J , E = { 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 " } , I = D = = " w i d t h " ? [ " L e f t " , " R i g h t " ] : [ " T o p " , " B o t t o m " ] ; f u n c t i o n   G ( ) { J = D = = " w i d t h " ? F . o f f s e t W i d t h : F . o f f s e t H e i g h t ; v a r   L = 0 , K = 0 ; n . e a c h ( I , f u n c t i o n ( ) { L + = p a r s e F l o a t ( n . c u r C S S ( F , " p a d d i n g " + t h i s , t r u e ) ) | | 0 ; K + = p a r s e F l o a t ( n . c u r C S S ( F , " b o r d e r " + t h i s + " W i d t h " , t r u e ) ) | | 0 } ) ; J - = M a t h . r o u n d ( L + K ) } i f ( n ( F ) . i s ( " : v i s i b l e " ) ) { G ( ) } e l s e { n . s w a p ( F , E , G ) } r e t u r n   M a t h . m a x ( 0 , J ) } r e t u r n   n . c u r C S S ( F , D , H ) } , c u r C S S : f u n c t i o n ( H , E , F ) { v a r   K , D = H . s t y l e ; i f ( E = = " o p a c i t y " & & ! n . s u p p o r t . o p a c i t y ) { K = n . a t t r ( D , " o p a c i t y " ) ; r e t u r n   K = = " " ? " 1 " : K } i f ( E . m a t c h ( / f l o a t / i ) ) { E = v } i f ( ! F & & D & & D [ E ] ) { K = D [ E ] } e l s e { i f ( p . g e t C o m p u t e d S t y l e ) { i f ( E . m a t c h ( / f l o a t / i ) ) { E = " f l o a t " } E = E . r e p l a c e ( / ( [ A - Z ] ) / g , " - $ 1 " ) . t o L o w e r C a s e ( ) ; v a r   L = p . g e t C o m p u t e d S t y l e ( H , n u l l ) ; i f ( L ) { K = L . g e t P r o p e r t y V a l u e ( E ) } i f ( E = = " o p a c i t y " & & K = = " " ) { K = " 1 " } } e l s e { i f ( H . c u r r e n t S t y l e ) { v a r   I = E . r e p l a c e ( / \ - ( \ w ) / g , f u n c t i o n ( M , N ) { r e t u r n   N . t o U p p e r C a s e ( ) } ) ; K = H . c u r r e n t S t y l e [ E ] | | H . c u r r e n t S t y l e [ I ] ; i f ( ! / ^ \ d + ( p x ) ? $ / i . t e s t ( K ) & & / ^ \ d / . t e s t ( K ) ) { v a r   G = D . l e f t , J = H . r u n t i m e S t y l e . l e f t ; H . r u n t i m e S t y l e . l e f t = H . c u r r e n t S t y l e . l e f t ; D . l e f t = K | | 0 ; K = D . p i x e l L e f t + " p x " ; D . l e f t = G ; H . r u n t i m e S t y l e . l e f t = J } } } } r e t u r n   K } , c l e a n : f u n c t i o n ( E , J , H ) { J = J | | d o c u m e n t ; i f ( t y p e o f   J . c r e a t e E l e m e n t = = = " u n d e f i n e d " ) { J = J . o w n e r D o c u m e n t | | J [ 0 ] & & J [ 0 ] . o w n e r D o c u m e n t | | d o c u m e n t } i f ( ! H & & E . l e n g t h = = = 1 & & t y p e o f   E [ 0 ] = = = " s t r i n g " ) { v a r   G = / ^ < ( \ w + ) \ s * \ / ? > $ / . e x e c ( E [ 0 ] ) ; i f ( G ) { r e t u r n [ J . c r e a t e E l e m e n t ( G [ 1 ] ) ] } } v a r   F = [ ] , D = [ ] , K = J . c r e a t e E l e m e n t ( " d i v " ) ; n . e a c h ( E , f u n c t i o n ( O , Q ) { i f ( t y p e o f   Q = = = " n u m b e r " ) { Q + = " " } i f ( ! Q ) { r e t u r n } i f ( t y p e o f   Q = = = " s t r i n g " ) { Q = Q . r e p l a c e ( / ( < ( \ w + ) [ ^ > ] * ? ) \ / > / g , f u n c t i o n ( S , T , R ) { r e t u r n   R . m a t c h ( / ^ ( a b b r | b r | c o l | i m g | i n p u t | l i n k | m e t a | p a r a m | h r | a r e a | e m b e d ) $ / i ) ? S : T + " > < / " + R + " > " } ) ; v a r   N = n . t r i m ( Q ) . t o L o w e r C a s e ( ) ; v a r   P = ! N . i n d e x O f ( " < o p t " ) & & [ 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 > " ] | | ! N . i n d e x O f ( " < l e g " ) & & [ 1 , " < f i e l d s e t > " , " < / f i e l d s e t > " ] | | N . m a t c h ( / ^ < ( t h e a d | t b o d y | t f o o t | c o l g | c a p ) / ) & & [ 1 , " < t a b l e > " , " < / t a b l e > " ] | | ! N . i n d e x O f ( " < t r " ) & & [ 2 , " < t a b l e > < t b o d y > " , " < / t b o d y > < / t a b l e > " ] | | ( ! N . i n d e x O f ( " < t d " ) | | ! N . i n d e x O f ( " < t h " ) ) & & [ 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 > " ] | | ! N . i n d e x O f ( " < 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 > " ] | | ! n . s u p p o r t . h t m l S e r i a l i z e & & [ 1 , " d i v < d i v > " , " < / d i v > " ] | | [ 0 , " " , " " ] ; K . i n n e r H T M L = P [ 1 ] + Q + P [ 2 ] ; w h i l e ( P [ 0 ] - - ) { K = K . l a s t C h i l d } i f ( ! n . s u p p o r t . t b o d y ) { v a r   M = ! N . i n d e x O f ( " < t a b l e " ) & & N . i n d e x O f ( " < t b o d y " ) < 0 ? K . f i r s t C h i l d & & K . f i r s t C h i l d . c h i l d N o d e s : P [ 1 ] = = " < t a b l e > " & & N . i n d e x O f ( " < t b o d y " ) < 0 ? K . c h i l d N o d e s : [ ] ; f o r ( v a r   L = M . l e n g t h - 1 ; L > = 0 ; - - L ) { i f ( n . n o d e N a m e ( M [ L ] , " t b o d y " ) & & ! M [ L ] . c h i l d N o d e s . l e n g t h ) { M [ L ] . p a r e n t N o d e . r e m o v e C h i l d ( M [ L ] ) } } } i f ( ! n . s u p p o r t . l e a d i n g W h i t e s p a c e & & / ^ \ s / . t e s t ( Q ) ) { K . i n s e r t B e f o r e ( J . c r e a t e T e x t N o d e ( Q . m a t c h ( / ^ \ s * / ) [ 0 ] ) , K . f i r s t C h i l d ) } Q = n . m a k e A r r a y ( K . c h i l d N o d e s ) } i f ( Q . n o d e T y p e ) { F . p u s h ( Q ) } e l s e { F = n . m e r g e ( F , Q ) } } ) ; i f ( H ) { f o r ( v a r   I = 0 ; F [ I ] ; I + + ) { i f ( n . n o d e N a m e ( F [ I ] , " s c r i p t " ) & & ( ! F [ I ] . t y p e | | F [ I ] . 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 " ) ) { D . p u s h ( F [ I ] . p a r e n t N o d e ? F [ I ] . p a r e n t N o d e . r e m o v e C h i l d ( F [ I ] ) : F [ I ] ) } e l s e { i f ( F [ I ] . n o d e T y p e = = = 1 ) { F . s p l i c e . a p p l y ( F , [ I + 1 , 0 ] . c o n c a t ( n . m a k e A r r a y ( F [ I ] . 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 " ) ) ) ) } H . a p p e n d C h i l d ( F [ I ] ) } } r e t u r n   D } r e t u r n   F } , a t t r : f u n c t i o n ( I , F , J ) { i f ( ! I | | I . n o d e T y p e = = 3 | | I . n o d e T y p e = = 8 ) { r e t u r n   g } v a r   G = ! n . i s X M L D o c ( I ) , K = J ! = = g ; F = G & & n . p r o p s [ F ] | | F ; i f ( I . t a g N a m e ) { v a r   E = / h r e f | s r c | s t y l e / . t e s t ( F ) ; i f ( F = = " s e l e c t e d " & & I . p a r e n t N o d e ) { I . p a r e n t N o d e . s e l e c t e d I n d e x } i f ( F   i n   I & & G & & ! E ) { i f ( K ) { i f ( F = = " t y p e " & & n . n o d e N a m e ( I , " i n p u t " ) & & I . p a r e n t N o d e ) { t h r o w " 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 " } I [ F ] = J } i f ( n . n o d e N a m e ( I , " f o r m " ) & & I . g e t A t t r i b u t e N o d e ( F ) ) { r e t u r n   I . g e t A t t r i b u t e N o d e ( F ) . n o d e V a l u e } i f ( F = = " t a b I n d e x " ) { v a r   H = I . 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   H & & H . s p e c i f i e d ? H . v a l u e : I . n o d e N a m e . m a t c h ( / ^ ( a | a r e a | 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 ) ? 0 : g } r e t u r n   I [ F ] } i f ( ! n . s u p p o r t . s t y l e & & G & & F = = " s t y l e " ) { r e t u r n   n . a t t r ( I . s t y l e , " c s s T e x t " , J ) } i f ( K ) { I . s e t A t t r i b u t e ( F , " " + J ) } v a r   D = ! n . s u p p o r t . h r e f N o r m a l i z e d & & G & & E ? I . g e t A t t r i b u t e ( F , 2 ) : I . g e t A t t r i b u t e ( F ) ; r e t u r n   D = = = n u l l ? g : D } i f ( ! n . s u p p o r t . o p a c i t y & & F = = " o p a c i t y " ) { i f ( K ) { I . z o o m = 1 ; I . f i l t e r = ( I . f i l t e r | | " " ) . r e p l a c e ( / a l p h a \ ( [ ^ ) ] * \ ) / , " " ) + ( p a r s e I n t ( J ) + " " = = " N a N " ? " " : " a l p h a ( o p a c i t y = " + J * 1 0 0 + " ) " ) } r e t u r n   I . f i l t e r & & I . f i l t e r . i n d e x O f ( " o p a c i t y = " ) > = 0 ? ( p a r s e F l o a t ( I . f i l t e r . m a t c h ( / o p a c i t y = ( [ ^ ) ] * ) / ) [ 1 ] ) / 1 0 0 ) + " " : " " } F = F . r e p l a c e ( / - ( [ a - z ] ) / i g , f u n c t i o n ( L , M ) { r e t u r n   M . t o U p p e r C a s e ( ) } ) ; i f ( K ) { I [ F ] = J } r e t u r n   I [ F ] } , t r i m : f u n c t i o n ( D ) { r e t u r n ( D | | " " ) . r e p l a c e ( / ^ \ s + | \ s + $ / g , " " ) } , m a k e A r r a y : f u n c t i o n ( F ) { v a r   D = [ ] ; i f ( F ! = n u l l ) { v a r   E = F . l e n g t h ; i f ( E = = n u l l | | t y p e o f   F = = = " s t r i n g " | | n . i s F u n c t i o n ( F ) | | F . s e t I n t e r v a l ) { D [ 0 ] = F } e l s e { w h i l e ( E ) { D [ - - E ] = F [ E ] } } } r e t u r n   D } , i n A r r a y : f u n c t i o n ( F , G ) { f o r ( v a r   D = 0 , E = G . l e n g t h ; D < E ; D + + ) { i f ( G [ D ] = = = F ) { r e t u r n   D } } r e t u r n   - 1 } , m e r g e : f u n c t i o n ( G , D ) { v a r   E = 0 , F , H = G . l e n g t h ; i f ( ! n . s u p p o r t . g e t A l l ) { w h i l e ( ( F = D [ E + + ] ) ! = n u l l ) { i f ( F . n o d e T y p e ! = 8 ) { G [ H + + ] = F } } } e l s e { w h i l e ( ( F = D [ E + + ] ) ! = n u l l ) { G [ H + + ] = F } } r e t u r n   G } , u n i q u e : f u n c t i o n ( J ) { v a r   E = [ ] , D = { } ; t r y { f o r ( v a r   F = 0 , G = J . l e n g t h ; F < G ; F + + ) { v a r   I = n . d a t a ( J [ F ] ) ; i f ( ! D [ I ] ) { D [ I ] = t r u e ; E . p u s h ( J [ F ] ) } } } c a t c h ( H ) { E = J } r e t u r n   E } , g r e p : f u n c t i o n ( E , I , D ) { v a r   F = [ ] ; f o r ( v a r   G = 0 , H = E . l e n g t h ; G < H ; G + + ) { i f ( ! D ! = ! I ( E [ G ] , G ) ) { F . p u s h ( E [ G ] ) } } r e t u r n   F } , m a p : f u n c t i o n ( D , I ) { v a r   E = [ ] ; f o r ( v a r   F = 0 , G = D . l e n g t h ; F < G ; F + + ) { v a r   H = I ( D [ F ] , F ) ; i f ( H ! = n u l l ) { E [ E . l e n g t h ] = H } } r e t u r n   E . c o n c a t . a p p l y ( [ ] , E ) } } ) ; v a r   B = n a v i g a t o r . u s e r A g e n t . t o L o w e r C a s e ( ) ; n . b r o w s e r = { v e r s i o n : ( B . m a t c h ( / . + ( ? : r v | i t | r a | i e ) [ \ / :   ] ( [ \ d . ] + ) / ) | | [ 0 , " 0 " ] ) [ 1 ] , s a f a r i : / w e b k i t / . t e s t ( B ) , o p e r a : / o p e r a / . t e s t ( B ) , m s i e : / m s i e / . t e s t ( B ) & & ! / o p e r a / . t e s t ( B ) , m o z i l l a : / m o z i l l a / . t e s t ( B ) & & ! / ( c o m p a t i b l e | w e b k i t ) / . t e s t ( B ) } ; n . e a c h ( { p a r e n t : f u n c t i o n ( D ) { r e t u r n   D . p a r e n t N o d e } , p a r e n t s : f u n c t i o n ( D ) { r e t u r n   n . d i r ( D , " p a r e n t N o d e " ) } , n e x t : f u n c t i o n ( D ) { r e t u r n   n . n t h ( D , 2 , " n e x t S i b l i n g " ) } , p r e v : f u n c t i o n ( D ) { r e t u r n   n . n t h ( D , 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 ( D ) { r e t u r n   n . d i r ( D , " 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 ( D ) { r e t u r n   n . d i r ( D , " p r e v i o u s S i b l i n g " ) } , s i b l i n g s : f u n c t i o n ( D ) { r e t u r n   n . s i b l i n g ( D . p a r e n t N o d e . f i r s t C h i l d , D ) } , c h i l d r e n : f u n c t i o n ( D ) { r e t u r n   n . s i b l i n g ( D . 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 ( D ) { r e t u r n   n . n o d e N a m e ( D , " i f r a m e " ) ? D . c o n t e n t D o c u m e n t | | D . c o n t e n t W i n d o w . d o c u m e n t : n . m a k e A r r a y ( D . c h i l d N o d e s ) } } , f u n c t i o n ( D , E ) { n . f n [ D ] = f u n c t i o n ( F ) { v a r   G = n . m a p ( t h i s , E ) ; i f ( F & & t y p e o f   F = = " s t r i n g " ) { G = n . m u l t i F i l t e r ( F , G ) } r e t u r n   t h i s . p u s h S t a c k ( n . u n i q u e ( G ) , D , F ) } } ) ; n . 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 ( D , E ) { n . f n [ D ] = f u n c t i o n ( ) { v a r   F = a r g u m e n t s ; r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { f o r ( v a r   G = 0 , H = F . l e n g t h ; G < H ; G + + ) { n ( F [ G ] ) [ E ] ( t h i s ) } } ) } } ) ; n . e a c h ( { r e m o v e A t t r : f u n c t i o n ( D ) { n . a t t r ( t h i s , D , " " ) ; i f ( t h i s . n o d e T y p e = = 1 ) { t h i s . r e m o v e A t t r i b u t e ( D ) } } , a d d C l a s s : f u n c t i o n ( D ) { n . c l a s s N a m e . a d d ( t h i s , D ) } , r e m o v e C l a s s : f u n c t i o n ( D ) { n . c l a s s N a m e . r e m o v e ( t h i s , D ) } , t o g g l e C l a s s : f u n c t i o n ( E , D ) { i f ( t y p e o f   D ! = = " b o o l e a n " ) { D = ! n . c l a s s N a m e . h a s ( t h i s , E ) } n . c l a s s N a m e [ D ? " a d d " : " r e m o v e " ] ( t h i s , E ) } , r e m o v e : f u n c t i o n ( D ) { i f ( ! D | | n . f i l t e r ( D , [ t h i s ] ) . l e n g t h ) { n ( " * " , t h i s ) . a d d ( [ t h i s ] ) . e a c h ( f u n c t i o n ( ) { n . e v e n t . r e m o v e ( t h i s ) ; n . r e m o v e D a t a ( t h i s ) } ) ; i f ( t h i s . p a r e n t N o d e ) { t h i s . p a r e n t N o d e . r e m o v e C h i l d ( t h i s ) } } } , e m p t y : f u n c t i o n ( ) { n ( " > * " , t h i s ) . r e m o v e ( ) ; w h i l e ( t h i s . f i r s t C h i l d ) { t h i s . r e m o v e C h i l d ( t h i s . f i r s t C h i l d ) } } } , f u n c t i o n ( D , E ) { n . f n [ D ] = f u n c t i o n ( ) { r e t u r n   t h i s . e a c h ( E , a r g u m e n t s ) } } ) ; f u n c t i o n   j ( D , E ) { r e t u r n   D [ 0 ] & & p a r s e I n t ( n . c u r C S S ( D [ 0 ] , E , t r u e ) , 1 0 ) | | 0 } v a r   h = " j Q u e r y " + e ( ) , u = 0 , z = { } ; n . e x t e n d ( { c a c h e : { } , d a t a : f u n c t i o n ( E , D , F ) { E = E = = l ? z : E ; v a r   G = E [ h ] ; i f ( ! G ) { G = E [ h ] = + + u } i f ( D & & ! n . c a c h e [ G ] ) { n . c a c h e [ G ] = { } } i f ( F ! = = g ) { n . c a c h e [ G ] [ D ] = F } r e t u r n   D ? n . c a c h e [ G ] [ D ] : G } , r e m o v e D a t a : f u n c t i o n ( E , D ) { E = E = = l ? z : E ; v a r   G = E [ h ] ; i f ( D ) { i f ( n . c a c h e [ G ] ) { d e l e t e   n . c a c h e [ G ] [ D ] ; D = " " ; f o r ( D   i n   n . c a c h e [ G ] ) { b r e a k } i f ( ! D ) { n . r e m o v e D a t a ( E ) } } } e l s e { t r y { d e l e t e   E [ h ] } c a t c h ( F ) { i f ( E . r e m o v e A t t r i b u t e ) { E . r e m o v e A t t r i b u t e ( h ) } } d e l e t e   n . c a c h e [ G ] } } , q u e u e : f u n c t i o n ( E , D , G ) { i f ( E ) { D = ( D | | " f x " ) + " q u e u e " ; v a r   F = n . d a t a ( E , D ) ; i f ( ! F | | n . i s A r r a y ( G ) ) { F = n . d a t a ( E , D , n . m a k e A r r a y ( G ) ) } e l s e { i f ( G ) { F . p u s h ( G ) } } } r e t u r n   F } , d e q u e u e : f u n c t i o n ( G , F ) { v a r   D = n . q u e u e ( G , F ) , E = D . s h i f t ( ) ; i f ( ! F | | F = = = " f x " ) { E = D [ 0 ] } i f ( E ! = = g ) { E . c a l l ( G ) } } } ) ; n . f n . e x t e n d ( { d a t a : f u n c t i o n ( D , F ) { v a r   G = D . s p l i t ( " . " ) ; G [ 1 ] = G [ 1 ] ? " . " + G [ 1 ] : " " ; i f ( F = = = g ) { v a r   E = 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 " + G [ 1 ] + " ! " , [ G [ 0 ] ] ) ; i f ( E = = = g & & t h i s . l e n g t h ) { E = n . d a t a ( t h i s [ 0 ] , D ) } r e t u r n   E = = = g & & G [ 1 ] ? t h i s . d a t a ( G [ 0 ] ) : E } e l s e { r e t u r n   t h i s . t r i g g e r ( " s e t D a t a " + G [ 1 ] + " ! " , [ G [ 0 ] , F ] ) . e a c h ( f u n c t i o n ( ) { n . d a t a ( t h i s , D , F ) } ) } } , r e m o v e D a t a : f u n c t i o n ( D ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { n . r e m o v e D a t a ( t h i s , D ) } ) } , q u e u e : f u n c t i o n ( D , E ) { i f ( t y p e o f   D ! = = " s t r i n g " ) { E = D ; D = " f x " } i f ( E = = = g ) { r e t u r n   n . q u e u e ( t h i s [ 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   F = n . q u e u e ( t h i s , D , E ) ; i f ( D = = " f x " & & F . l e n g t h = = 1 ) { F [ 0 ] . c a l l ( t h i s ) } } ) } , d e q u e u e : f u n c t i o n ( D ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { n . d e q u e u e ( t h i s , D ) } ) } } ) ; 
 / * 
   *   S i z z l e   C S S   S e l e c t o r   E n g i n e   -   v 0 . 9 . 1 
   *     C o p y r i g h t   2 0 0 9 ,   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 . 
   *     M o r e   i n f o r m a t i o n :   h t t p : / / s i z z l e j s . c o m / 
   * / 
 ( f u n c t i o n ( ) { v a r   N = / ( ( ? : \ ( ( ? : \ ( [ ^ ( ) ] + \ ) | [ ^ ( ) ] + ) + \ ) | \ [ ( ? : \ [ [ ^ [ \ ] ] * \ ] | [ ^ [ \ ] ] + ) + \ ] | \ \ . | [ ^   > + ~ , ( \ [ ] + ) + | [ > + ~ ] ) ( \ s * , \ s * ) ? / g , I = 0 , F = O b j e c t . p r o t o t y p e . t o S t r i n g ; v a r   E = f u n c t i o n ( a e , S , a a , V ) { a a = a a | | [ ] ; S = S | | d o c u m e n t ; i f ( S . n o d e T y p e ! = = 1 & & S . n o d e T y p e ! = = 9 ) { r e t u r n [ ] } i f ( ! a e | | t y p e o f   a e ! = = " s t r i n g " ) { r e t u r n   a a } v a r   a b = [ ] , a c , Y , a h , a g , Z , R , Q = t r u e ; N . l a s t I n d e x = 0 ; w h i l e ( ( a c = N . e x e c ( a e ) ) ! = = n u l l ) { a b . p u s h ( a c [ 1 ] ) ; i f ( a c [ 2 ] ) { R = R e g E x p . r i g h t C o n t e x t ; b r e a k } } i f ( a b . l e n g t h > 1 & & G . m a t c h . P O S . e x e c ( a e ) ) { i f ( a b . l e n g t h = = = 2 & & G . r e l a t i v e [ a b [ 0 ] ] ) { v a r   U = " " , X ; w h i l e ( ( X = G . m a t c h . P O S . e x e c ( a e ) ) ) { U + = X [ 0 ] ; a e = a e . r e p l a c e ( G . m a t c h . P O S , " " ) } Y = E . f i l t e r ( U , E ( / \ s $ / . t e s t ( a e ) ? a e + " * " : a e , S ) ) } e l s e { Y = G . r e l a t i v e [ a b [ 0 ] ] ? [ S ] : E ( a b . s h i f t ( ) , S ) ; w h i l e ( a b . l e n g t h ) { v a r   P = [ ] ; a e = a b . s h i f t ( ) ; i f ( G . r e l a t i v e [ a e ] ) { a e + = a b . s h i f t ( ) } f o r ( v a r   a f = 0 , a d = Y . l e n g t h ; a f < a d ; a f + + ) { E ( a e , Y [ a f ] , P ) } Y = P } } } e l s e { v a r   a i = V ? { e x p r : a b . p o p ( ) , s e t : D ( V ) } : E . f i n d ( a b . p o p ( ) , a b . l e n g t h = = = 1 & & S . p a r e n t N o d e ? S . p a r e n t N o d e : S ) ; Y = E . f i l t e r ( a i . e x p r , a i . s e t ) ; i f ( a b . l e n g t h > 0 ) { a h = D ( Y ) } e l s e { Q = f a l s e } w h i l e ( a b . l e n g t h ) { v a r   T = a b . p o p ( ) , W = T ; i f ( ! G . r e l a t i v e [ T ] ) { T = " " } e l s e { W = a b . p o p ( ) } i f ( W = = n u l l ) { W = S } G . r e l a t i v e [ T ] ( a h , W , M ( S ) ) } } i f ( ! a h ) { a h = Y } i f ( ! a h ) { 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 :   " + ( T | | a e ) } i f ( F . c a l l ( a h ) = = = " [ o b j e c t   A r r a y ] " ) { i f ( ! Q ) { a a . p u s h . a p p l y ( a a , a h ) } e l s e { i f ( S . n o d e T y p e = = = 1 ) { f o r ( v a r   a f = 0 ; a h [ a f ] ! = n u l l ; a f + + ) { i f ( a h [ a f ] & & ( a h [ a f ] = = = t r u e | | a h [ a f ] . n o d e T y p e = = = 1 & & H ( S , a h [ a f ] ) ) ) { a a . p u s h ( Y [ a f ] ) } } } e l s e { f o r ( v a r   a f = 0 ; a h [ a f ] ! = n u l l ; a f + + ) { i f ( a h [ a f ] & & a h [ a f ] . n o d e T y p e = = = 1 ) { a a . p u s h ( Y [ a f ] ) } } } } } e l s e { D ( a h , a a ) } i f ( R ) { E ( R , S , a a , V ) } r e t u r n   a a } ; E . m a t c h e s = f u n c t i o n ( P , Q ) { r e t u r n   E ( P , n u l l , n u l l , Q ) } ; E . f i n d = f u n c t i o n ( V , S ) { v a r   W , Q ; i f ( ! V ) { r e t u r n [ ] } f o r ( v a r   R = 0 , P = G . o r d e r . l e n g t h ; R < P ; R + + ) { v a r   T = G . o r d e r [ R ] , Q ; i f ( ( Q = G . m a t c h [ T ] . e x e c ( V ) ) ) { v a r   U = R e g E x p . l e f t C o n t e x t ; i f ( U . s u b s t r ( U . l e n g t h - 1 ) ! = = " \ \ " ) { Q [ 1 ] = ( Q [ 1 ] | | " " ) . r e p l a c e ( / \ \ / g , " " ) ; W = G . f i n d [ T ] ( Q , S ) ; i f ( W ! = n u l l ) { V = V . r e p l a c e ( G . m a t c h [ T ] , " " ) ; b r e a k } } } } i f ( ! W ) { W = S . 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 : W , e x p r : V } } ; E . f i l t e r = f u n c t i o n ( S , a c , a d , T ) { v a r   Q = S , Y = [ ] , a h = a c , V , a b ; w h i l e ( S & & a c . l e n g t h ) { f o r ( v a r   U   i n   G . f i l t e r ) { i f ( ( V = G . m a t c h [ U ] . e x e c ( S ) ) ! = n u l l ) { v a r   Z = G . f i l t e r [ U ] , R = n u l l , X = 0 , a a , a g ; a b = f a l s e ; i f ( a h = = Y ) { Y = [ ] } i f ( G . p r e F i l t e r [ U ] ) { V = G . p r e F i l t e r [ U ] ( V , a h , a d , Y , T ) ; i f ( ! V ) { a b = a a = t r u e } e l s e { i f ( V = = = t r u e ) { c o n t i n u e } e l s e { i f ( V [ 0 ] = = = t r u e ) { R = [ ] ; v a r   W = n u l l , a f ; f o r ( v a r   a e = 0 ; ( a f = a h [ a e ] ) ! = = g ; a e + + ) { i f ( a f & & W ! = = a f ) { R . p u s h ( a f ) ; W = a f } } } } } } i f ( V ) { f o r ( v a r   a e = 0 ; ( a g = a h [ a e ] ) ! = = g ; a e + + ) { i f ( a g ) { i f ( R & & a g ! = R [ X ] ) { X + + } a a = Z ( a g , V , X , R ) ; v a r   P = T ^ ! ! a a ; i f ( a d & & a a ! = n u l l ) { i f ( P ) { a b = t r u e } e l s e { a h [ a e ] = f a l s e } } e l s e { i f ( P ) { Y . p u s h ( a g ) ; a b = t r u e } } } } } i f ( a a ! = = g ) { i f ( ! a d ) { a h = Y } S = S . r e p l a c e ( G . m a t c h [ U ] , " " ) ; i f ( ! a b ) { r e t u r n [ ] } b r e a k } } } S = S . r e p l a c e ( / \ s * , \ s * / , " " ) ; i f ( S = = Q ) { i f ( a b = = n u l l ) { 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 :   " + S } e l s e { b r e a k } } Q = S } r e t u r n   a h } ; v a r   G = E . 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 | ) \ 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 ( ? : \ ( ( e v e n | o d d | [ \ d n + - ] * ) \ ) ) ? / , 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 \ ( \ ) ] * ) + ) \ 2 \ ) ) ? / } , 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 ( P ) { r e t u r n   P . g e t A t t r i b u t e ( " h r e f " ) } } , r e l a t i v e : { " + " : f u n c t i o n ( T , Q ) { f o r ( v a r   R = 0 , P = T . l e n g t h ; R < P ; R + + ) { v a r   S = T [ R ] ; i f ( S ) { v a r   U = S . p r e v i o u s S i b l i n g ; w h i l e ( U & & U . n o d e T y p e ! = = 1 ) { U = U . p r e v i o u s S i b l i n g } T [ R ] = t y p e o f   Q = = = " s t r i n g " ? U | | f a l s e : U = = = Q } } i f ( t y p e o f   Q = = = " s t r i n g " ) { E . f i l t e r ( Q , T , t r u e ) } } , " > " : f u n c t i o n ( U , Q , V ) { i f ( t y p e o f   Q = = = " s t r i n g " & & ! / \ W / . t e s t ( Q ) ) { Q = V ? Q : Q . t o U p p e r C a s e ( ) ; f o r ( v a r   R = 0 , P = U . l e n g t h ; R < P ; R + + ) { v a r   T = U [ R ] ; i f ( T ) { v a r   S = T . p a r e n t N o d e ; U [ R ] = S . n o d e N a m e = = = Q ? S : f a l s e } } } e l s e { f o r ( v a r   R = 0 , P = U . l e n g t h ; R < P ; R + + ) { v a r   T = U [ R ] ; i f ( T ) { U [ R ] = t y p e o f   Q = = = " s t r i n g " ? T . p a r e n t N o d e : T . p a r e n t N o d e = = = Q } } i f ( t y p e o f   Q = = = " s t r i n g " ) { E . f i l t e r ( Q , U , t r u e ) } } } , " " : f u n c t i o n ( S , Q , U ) { v a r   R = " d o n e " + ( I + + ) , P = O ; i f ( ! Q . m a t c h ( / \ W / ) ) { v a r   T = Q = U ? Q : Q . t o U p p e r C a s e ( ) ; P = L } P ( " p a r e n t N o d e " , Q , R , S , T , U ) } , " ~ " : f u n c t i o n ( S , Q , U ) { v a r   R = " d o n e " + ( I + + ) , P = O ; i f ( t y p e o f   Q = = = " s t r i n g " & & ! Q . m a t c h ( / \ W / ) ) { v a r   T = Q = U ? Q : Q . t o U p p e r C a s e ( ) ; P = L } P ( " p r e v i o u s S i b l i n g " , Q , R , S , T , U ) } } , f i n d : { I D : f u n c t i o n ( Q , R ) { i f ( R . g e t E l e m e n t B y I d ) { v a r   P = R . g e t E l e m e n t B y I d ( Q [ 1 ] ) ; r e t u r n   P ? [ P ] : [ ] } } , N A M E : f u n c t i o n ( P , Q ) { r e t u r n   Q . g e t E l e m e n t s B y N a m e ? Q . g e t E l e m e n t s B y N a m e ( P [ 1 ] ) : n u l l } , T A G : f u n c t i o n ( P , Q ) { r e t u r n   Q . g e t E l e m e n t s B y T a g N a m e ( P [ 1 ] ) } } , p r e F i l t e r : { C L A S S : f u n c t i o n ( S , Q , R , P , U ) { S = "   " + S [ 1 ] . r e p l a c e ( / \ \ / g , " " ) + "   " ; f o r ( v a r   T = 0 ; Q [ T ] ; T + + ) { i f ( U ^ ( "   " + Q [ T ] . c l a s s N a m e + "   " ) . i n d e x O f ( S ) > = 0 ) { i f ( ! R ) { P . p u s h ( Q [ T ] ) } } e l s e { i f ( R ) { Q [ T ] = f a l s e } } } r e t u r n   f a l s e } , I D : f u n c t i o n ( P ) { r e t u r n   P [ 1 ] . r e p l a c e ( / \ \ / g , " " ) } , T A G : f u n c t i o n ( Q , P ) { f o r ( v a r   R = 0 ; ! P [ R ] ; R + + ) { } r e t u r n   M ( P [ R ] ) ? Q [ 1 ] : Q [ 1 ] . t o U p p e r C a s e ( ) } , C H I L D : f u n c t i o n ( P ) { i f ( P [ 1 ] = = " n t h " ) { v a r   Q = / ( - ? ) ( \ d * ) n ( ( ? : \ + | - ) ? \ d * ) / . e x e c ( P [ 2 ] = = " e v e n " & & " 2 n " | | P [ 2 ] = = " o d d " & & " 2 n + 1 " | | ! / \ D / . t e s t ( P [ 2 ] ) & & " 0 n + " + P [ 2 ] | | P [ 2 ] ) ; P [ 2 ] = ( Q [ 1 ] + ( Q [ 2 ] | | 1 ) ) - 0 ; P [ 3 ] = Q [ 3 ] - 0 } P [ 0 ] = " d o n e " + ( I + + ) ; r e t u r n   P } , A T T R : f u n c t i o n ( Q ) { v a r   P = Q [ 1 ] ; i f ( G . a t t r M a p [ P ] ) { Q [ 1 ] = G . a t t r M a p [ P ] } i f ( Q [ 2 ] = = = " ~ = " ) { Q [ 4 ] = "   " + Q [ 4 ] + "   " } r e t u r n   Q } , P S E U D O : f u n c t i o n ( T , Q , R , P , U ) { i f ( T [ 1 ] = = = " n o t " ) { i f ( T [ 3 ] . m a t c h ( N ) . l e n g t h > 1 ) { T [ 3 ] = E ( T [ 3 ] , n u l l , n u l l , Q ) } e l s e { v a r   S = E . f i l t e r ( T [ 3 ] , Q , R , t r u e ^ U ) ; i f ( ! R ) { P . p u s h . a p p l y ( P , S ) } r e t u r n   f a l s e } } e l s e { i f ( G . m a t c h . P O S . t e s t ( T [ 0 ] ) ) { r e t u r n   t r u e } } r e t u r n   T } , P O S : f u n c t i o n ( P ) { P . u n s h i f t ( t r u e ) ; r e t u r n   P } } , f i l t e r s : { e n a b l e d : f u n c t i o n ( P ) { r e t u r n   P . d i s a b l e d = = = f a l s e & & P . 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 ( P ) { r e t u r n   P . d i s a b l e d = = = t r u e } , c h e c k e d : f u n c t i o n ( P ) { r e t u r n   P . c h e c k e d = = = t r u e } , s e l e c t e d : f u n c t i o n ( P ) { P . 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   P . s e l e c t e d = = = t r u e } , p a r e n t : f u n c t i o n ( P ) { r e t u r n   ! ! P . f i r s t C h i l d } , e m p t y : f u n c t i o n ( P ) { r e t u r n   ! P . f i r s t C h i l d } , h a s : f u n c t i o n ( R , Q , P ) { r e t u r n   ! ! E ( P [ 3 ] , R ) . l e n g t h } , h e a d e r : f u n c t i o n ( P ) { r e t u r n / h \ d / i . t e s t ( P . n o d e N a m e ) } , t e x t : f u n c t i o n ( P ) { r e t u r n " t e x t " = = = P . t y p e } , r a d i o : f u n c t i o n ( P ) { r e t u r n " r a d i o " = = = P . t y p e } , c h e c k b o x : f u n c t i o n ( P ) { r e t u r n " c h e c k b o x " = = = P . t y p e } , f i l e : f u n c t i o n ( P ) { r e t u r n " f i l e " = = = P . t y p e } , p a s s w o r d : f u n c t i o n ( P ) { r e t u r n " p a s s w o r d " = = = P . t y p e } , s u b m i t : f u n c t i o n ( P ) { r e t u r n " s u b m i t " = = = P . t y p e } , i m a g e : f u n c t i o n ( P ) { r e t u r n " i m a g e " = = = P . t y p e } , r e s e t : f u n c t i o n ( P ) { r e t u r n " r e s e t " = = = P . t y p e } , b u t t o n : f u n c t i o n ( P ) { r e t u r n " b u t t o n " = = = P . t y p e | | P . n o d e N a m e . t o U p p e r C a s e ( ) = = = " B U T T O N " } , i n p u t : f u n c t i o n ( P ) { 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 ( P . n o d e N a m e ) } } , s e t F i l t e r s : { f i r s t : f u n c t i o n ( Q , P ) { r e t u r n   P = = = 0 } , l a s t : f u n c t i o n ( R , Q , P , S ) { r e t u r n   Q = = = S . l e n g t h - 1 } , e v e n : f u n c t i o n ( Q , P ) { r e t u r n   P % 2 = = = 0 } , o d d : f u n c t i o n ( Q , P ) { r e t u r n   P % 2 = = = 1 } , l t : f u n c t i o n ( R , Q , P ) { r e t u r n   Q < P [ 3 ] - 0 } , g t : f u n c t i o n ( R , Q , P ) { r e t u r n   Q > P [ 3 ] - 0 } , n t h : f u n c t i o n ( R , Q , P ) { r e t u r n   P [ 3 ] - 0 = = Q } , e q : f u n c t i o n ( R , Q , P ) { r e t u r n   P [ 3 ] - 0 = = Q } } , f i l t e r : { C H I L D : f u n c t i o n ( P , S ) { v a r   V = S [ 1 ] , W = P . p a r e n t N o d e ; v a r   U = " c h i l d " + W . c h i l d N o d e s . l e n g t h ; i f ( W & & ( ! W [ U ] | | ! P . n o d e I n d e x ) ) { v a r   T = 1 ; f o r ( v a r   Q = W . f i r s t C h i l d ; Q ; Q = Q . n e x t S i b l i n g ) { i f ( Q . n o d e T y p e = = 1 ) { Q . n o d e I n d e x = T + + } } W [ U ] = T - 1 } i f ( V = = " f i r s t " ) { r e t u r n   P . n o d e I n d e x = = 1 } e l s e { i f ( V = = " l a s t " ) { r e t u r n   P . n o d e I n d e x = = W [ U ] } e l s e { i f ( V = = " o n l y " ) { r e t u r n   W [ U ] = = 1 } e l s e { i f ( V = = " n t h " ) { v a r   Y = f a l s e , R = S [ 2 ] , X = S [ 3 ] ; i f ( R = = 1 & & X = = 0 ) { r e t u r n   t r u e } i f ( R = = 0 ) { i f ( P . n o d e I n d e x = = X ) { Y = t r u e } } e l s e { i f ( ( P . n o d e I n d e x - X ) % R = = 0 & & ( P . n o d e I n d e x - X ) / R > = 0 ) { Y = t r u e } } r e t u r n   Y } } } } } , P S E U D O : f u n c t i o n ( V , R , S , W ) { v a r   Q = R [ 1 ] , T = G . f i l t e r s [ Q ] ; i f ( T ) { r e t u r n   T ( V , S , R , W ) } e l s e { i f ( Q = = = " c o n t a i n s " ) { r e t u r n ( V . t e x t C o n t e n t | | V . i n n e r T e x t | | " " ) . i n d e x O f ( R [ 3 ] ) > = 0 } e l s e { i f ( Q = = = " n o t " ) { v a r   U = R [ 3 ] ; f o r ( v a r   S = 0 , P = U . l e n g t h ; S < P ; S + + ) { i f ( U [ S ] = = = V ) { r e t u r n   f a l s e } } r e t u r n   t r u e } } } } , I D : f u n c t i o n ( Q , P ) { r e t u r n   Q . n o d e T y p e = = = 1 & & Q . g e t A t t r i b u t e ( " i d " ) = = = P } , T A G : f u n c t i o n ( Q , P ) { r e t u r n ( P = = = " * " & & Q . n o d e T y p e = = = 1 ) | | Q . n o d e N a m e = = = P } , C L A S S : f u n c t i o n ( Q , P ) { r e t u r n   P . t e s t ( Q . c l a s s N a m e ) } , A T T R : f u n c t i o n ( T , R ) { v a r   P = G . a t t r H a n d l e [ R [ 1 ] ] ? G . a t t r H a n d l e [ R [ 1 ] ] ( T ) : T [ R [ 1 ] ] | | T . g e t A t t r i b u t e ( R [ 1 ] ) , U = P + " " , S = R [ 2 ] , Q = R [ 4 ] ; r e t u r n   P = = n u l l ? f a l s e : S = = = " = " ? U = = = Q : S = = = " * = " ? U . i n d e x O f ( Q ) > = 0 : S = = = " ~ = " ? ( "   " + U + "   " ) . i n d e x O f ( Q ) > = 0 : ! R [ 4 ] ? P : S = = = " ! = " ? U ! = Q : S = = = " ^ = " ? U . i n d e x O f ( Q ) = = = 0 : S = = = " $ = " ? U . s u b s t r ( U . l e n g t h - Q . l e n g t h ) = = = Q : S = = = " | = " ? U = = = Q | | U . s u b s t r ( 0 , Q . l e n g t h + 1 ) = = = Q + " - " : f a l s e } , P O S : f u n c t i o n ( T , Q , R , U ) { v a r   P = Q [ 2 ] , S = G . s e t F i l t e r s [ P ] ; i f ( S ) { r e t u r n   S ( T , R , Q , U ) } } } } ; f o r ( v a r   K   i n   G . m a t c h ) { G . m a t c h [ K ] = R e g E x p ( G . m a t c h [ K ] . s o u r c e + / ( ? ! [ ^ \ [ ] * \ ] ) ( ? ! [ ^ \ ( ] * \ ) ) / . s o u r c e ) } v a r   D = f u n c t i o n ( Q , P ) { Q = A r r a y . p r o t o t y p e . s l i c e . c a l l ( Q ) ; i f ( P ) { P . p u s h . a p p l y ( P , Q ) ; r e t u r n   P } r e t u r n   Q } ; 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 ( d o c u m e n t . 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 ) } c a t c h ( J ) { D = f u n c t i o n ( T , S ) { v a r   Q = S | | [ ] ; i f ( F . c a l l ( T ) = = = " [ 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 ( Q , T ) } e l s e { i f ( t y p e o f   T . l e n g t h = = = " n u m b e r " ) { f o r ( v a r   R = 0 , P = T . l e n g t h ; R < P ; R + + ) { Q . p u s h ( T [ R ] ) } } e l s e { f o r ( v a r   R = 0 ; T [ R ] ; R + + ) { Q . p u s h ( T [ R ] ) } } } r e t u r n   Q } } ( f u n c t i o n ( ) { v a r   Q = d o c u m e n t . c r e a t e E l e m e n t ( " f o r m " ) , R = " s c r i p t " + ( n e w   D a t e ) . g e t T i m e ( ) ; Q . i n n e r H T M L = " < i n p u t   n a m e = ' " + R + " ' / > " ; v a r   P = d o c u m e n t . d o c u m e n t E l e m e n t ; P . i n s e r t B e f o r e ( Q , P . f i r s t C h i l d ) ; i f ( ! ! d o c u m e n t . g e t E l e m e n t B y I d ( R ) ) { G . f i n d . I D = f u n c t i o n ( T , U ) { i f ( U . g e t E l e m e n t B y I d ) { v a r   S = U . g e t E l e m e n t B y I d ( T [ 1 ] ) ; r e t u r n   S ? S . i d = = = T [ 1 ] | | S . g e t A t t r i b u t e N o d e & & S . 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 = = = T [ 1 ] ? [ S ] : g : [ ] } } ; G . f i l t e r . I D = f u n c t i o n ( U , S ) { v a r   T = U . g e t A t t r i b u t e N o d e & & U . g e t A t t r i b u t e N o d e ( " i d " ) ; r e t u r n   U . n o d e T y p e = = = 1 & & T & & T . n o d e V a l u e = = = S } } P . r e m o v e C h i l d ( Q ) } ) ( ) ; ( f u n c t i o n ( ) { v a r   P = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; P . a p p e n d C h i l d ( d o c u m e n t . c r e a t e C o m m e n t ( " " ) ) ; i f ( P . 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 ) { G . f i n d . T A G = f u n c t i o n ( Q , U ) { v a r   T = U . g e t E l e m e n t s B y T a g N a m e ( Q [ 1 ] ) ; i f ( Q [ 1 ] = = = " * " ) { v a r   S = [ ] ; f o r ( v a r   R = 0 ; T [ R ] ; R + + ) { i f ( T [ R ] . n o d e T y p e = = = 1 ) { S . p u s h ( T [ R ] ) } } T = S } r e t u r n   T } } P . i n n e r H T M L = " < a   h r e f = ' # ' > < / a > " ; i f ( P . 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 " ) ! = = " # " ) { G . a t t r H a n d l e . h r e f = f u n c t i o n ( Q ) { r e t u r n   Q . g e t A t t r i b u t e ( " h r e f " , 2 ) } } } ) ( ) ; i f ( d o c u m e n t . 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   P = E ; E = f u n c t i o n ( T , S , Q , R ) { S = S | | d o c u m e n t ; i f ( ! R & & S . n o d e T y p e = = = 9 ) { t r y { r e t u r n   D ( S . q u e r y S e l e c t o r A l l ( T ) , Q ) } c a t c h ( U ) { } } r e t u r n   P ( T , S , Q , R ) } ; E . f i n d = P . f i n d ; E . f i l t e r = P . f i l t e r ; E . s e l e c t o r s = P . s e l e c t o r s ; E . m a t c h e s = P . m a t c h e s } ) ( ) } i f ( d o c u m e n t . d o c u m e n t E l e m e n t . g e t E l e m e n t s B y C l a s s N a m e ) { G . o r d e r . s p l i c e ( 1 , 0 , " C L A S S " ) ; G . f i n d . C L A S S = f u n c t i o n ( P , Q ) { r e t u r n   Q . g e t E l e m e n t s B y C l a s s N a m e ( P [ 1 ] ) } } f u n c t i o n   L ( Q , W , V , Z , X , Y ) { f o r ( v a r   T = 0 , R = Z . l e n g t h ; T < R ; T + + ) { v a r   P = Z [ T ] ; i f ( P ) { P = P [ Q ] ; v a r   U = f a l s e ; w h i l e ( P & & P . n o d e T y p e ) { v a r   S = P [ V ] ; i f ( S ) { U = Z [ S ] ; b r e a k } i f ( P . n o d e T y p e = = = 1 & & ! Y ) { P [ V ] = T } i f ( P . n o d e N a m e = = = W ) { U = P ; b r e a k } P = P [ Q ] } Z [ T ] = U } } } f u n c t i o n   O ( Q , V , U , Y , W , X ) { f o r ( v a r   S = 0 , R = Y . l e n g t h ; S < R ; S + + ) { v a r   P = Y [ S ] ; i f ( P ) { P = P [ Q ] ; v a r   T = f a l s e ; w h i l e ( P & & P . n o d e T y p e ) { i f ( P [ U ] ) { T = Y [ P [ U ] ] ; b r e a k } i f ( P . n o d e T y p e = = = 1 ) { i f ( ! X ) { P [ U ] = S } i f ( t y p e o f   V ! = = " s t r i n g " ) { i f ( P = = = V ) { T = t r u e ; b r e a k } } e l s e { i f ( E . f i l t e r ( V , [ P ] ) . l e n g t h > 0 ) { T = P ; b r e a k } } } P = P [ Q ] } Y [ S ] = T } } } v a r   H = 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 ? f u n c t i o n ( Q , P ) { r e t u r n   Q . c o m p a r e D o c u m e n t P o s i t i o n ( P ) & 1 6 } : f u n c t i o n ( Q , P ) { r e t u r n   Q ! = = P & & ( Q . c o n t a i n s ? Q . c o n t a i n s ( P ) : t r u e ) } ; v a r   M = f u n c t i o n ( P ) { r e t u r n   P . d o c u m e n t E l e m e n t & & ! P . b o d y | | P . t a g N a m e & & P . o w n e r D o c u m e n t & & ! P . o w n e r D o c u m e n t . b o d y } ; n . f i n d = E ; n . f i l t e r = E . f i l t e r ; n . e x p r = E . s e l e c t o r s ; n . e x p r [ " : " ] = n . e x p r . f i l t e r s ; E . s e l e c t o r s . f i l t e r s . h i d d e n = f u n c t i o n ( P ) { r e t u r n " h i d d e n " = = = P . t y p e | | n . c s s ( P , " d i s p l a y " ) = = = " n o n e " | | n . c s s ( P , " v i s i b i l i t y " ) = = = " h i d d e n " } ; E . s e l e c t o r s . f i l t e r s . v i s i b l e = f u n c t i o n ( P ) { r e t u r n " h i d d e n " ! = = P . t y p e & & n . c s s ( P , " d i s p l a y " ) ! = = " n o n e " & & n . c s s ( P , " v i s i b i l i t y " ) ! = = " h i d d e n " } ; E . s e l e c t o r s . f i l t e r s . a n i m a t e d = f u n c t i o n ( P ) { r e t u r n   n . g r e p ( n . t i m e r s , f u n c t i o n ( Q ) { r e t u r n   P = = = Q . e l e m } ) . l e n g t h } ; n . m u l t i F i l t e r = f u n c t i o n ( R , P , Q ) { i f ( Q ) { R = " : n o t ( " + R + " ) " } r e t u r n   E . m a t c h e s ( R , P ) } ; n . d i r = f u n c t i o n ( R , Q ) { v a r   P = [ ] , S = R [ Q ] ; w h i l e ( S & & S ! = d o c u m e n t ) { i f ( S . n o d e T y p e = = 1 ) { P . p u s h ( S ) } S = S [ Q ] } r e t u r n   P } ; n . n t h = f u n c t i o n ( T , P , R , S ) { P = P | | 1 ; v a r   Q = 0 ; f o r ( ; T ; T = T [ R ] ) { i f ( T . n o d e T y p e = = 1 & & + + Q = = P ) { b r e a k } } r e t u r n   T } ; n . s i b l i n g = f u n c t i o n ( R , Q ) { v a r   P = [ ] ; f o r ( ; R ; R = R . n e x t S i b l i n g ) { i f ( R . n o d e T y p e = = 1 & & R ! = Q ) { P . p u s h ( R ) } } r e t u r n   P } ; r e t u r n ; l . S i z z l e = E } ) ( ) ; n . e v e n t = { a d d : f u n c t i o n ( H , E , G , J ) { i f ( H . n o d e T y p e = = 3 | | H . n o d e T y p e = = 8 ) { r e t u r n } i f ( H . s e t I n t e r v a l & & H ! = l ) { H = l } i f ( ! G . g u i d ) { G . g u i d = t h i s . g u i d + + } i f ( J ! = = g ) { v a r   F = G ; G = t h i s . p r o x y ( F ) ; G . d a t a = J } v a r   D = n . d a t a ( H , " e v e n t s " ) | | n . d a t a ( H , " e v e n t s " , { } ) , I = n . d a t a ( H , " h a n d l e " ) | | n . d a t a ( H , " h a n d l e " , f u n c t i o n ( ) { r e t u r n   t y p e o f   n ! = = " u n d e f i n e d " & & ! n . e v e n t . t r i g g e r e d ? n . e v e n t . h a n d l e . a p p l y ( a r g u m e n t s . c a l l e e . e l e m , a r g u m e n t s ) : g } ) ; I . e l e m = H ; n . e a c h ( E . s p l i t ( / \ s + / ) , f u n c t i o n ( L , M ) { v a r   N = M . s p l i t ( " . " ) ; M = N . s h i f t ( ) ; G . t y p e = N . s l i c e ( ) . s o r t ( ) . j o i n ( " . " ) ; v a r   K = D [ M ] ; i f ( n . e v e n t . s p e c i a l A l l [ M ] ) { n . e v e n t . s p e c i a l A l l [ M ] . s e t u p . c a l l ( H , J , N ) } i f ( ! K ) { K = D [ M ] = { } ; i f ( ! n . e v e n t . s p e c i a l [ M ] | | n . e v e n t . s p e c i a l [ M ] . s e t u p . c a l l ( H , J , N ) = = = f a l s e ) { i f ( H . a d d E v e n t L i s t e n e r ) { H . a d d E v e n t L i s t e n e r ( M , I , f a l s e ) } e l s e { i f ( H . a t t a c h E v e n t ) { H . a t t a c h E v e n t ( " o n " + M , I ) } } } } K [ G . g u i d ] = G ; n . e v e n t . g l o b a l [ M ] = t r u e } ) ; H = n u l l } , g u i d : 1 , g l o b a l : { } , r e m o v e : f u n c t i o n ( J , G , I ) { i f ( J . n o d e T y p e = = 3 | | J . n o d e T y p e = = 8 ) { r e t u r n } v a r   F = n . d a t a ( J , " e v e n t s " ) , E , D ; i f ( F ) { i f ( G = = = g | | ( t y p e o f   G = = = " s t r i n g " & & G . c h a r A t ( 0 ) = = " . " ) ) { f o r ( v a r   H   i n   F ) { t h i s . r e m o v e ( J , H + ( G | | " " ) ) } } e l s e { i f ( G . t y p e ) { I = G . h a n d l e r ; G = G . t y p e } n . e a c h ( G . s p l i t ( / \ s + / ) , f u n c t i o n ( L , N ) { v a r   P = N . s p l i t ( " . " ) ; N = P . s h i f t ( ) ; v a r   M = R e g E x p ( " ( ^ | \ \ . ) " + P . s l i c e ( ) . s o r t ( ) . j o i n ( " . * \ \ . " ) + " ( \ \ . | $ ) " ) ; i f ( F [ N ] ) { i f ( I ) { d e l e t e   F [ N ] [ I . g u i d ] } e l s e { f o r ( v a r   O   i n   F [ N ] ) { i f ( M . t e s t ( F [ N ] [ O ] . t y p e ) ) { d e l e t e   F [ N ] [ O ] } } } i f ( n . e v e n t . s p e c i a l A l l [ N ] ) { n . e v e n t . s p e c i a l A l l [ N ] . t e a r d o w n . c a l l ( J , P ) } f o r ( E   i n   F [ N ] ) { b r e a k } i f ( ! E ) { i f ( ! n . e v e n t . s p e c i a l [ N ] | | n . e v e n t . s p e c i a l [ N ] . t e a r d o w n . c a l l ( J , P ) = = = f a l s e ) { i f ( J . r e m o v e E v e n t L i s t e n e r ) { J . r e m o v e E v e n t L i s t e n e r ( N , n . d a t a ( J , " h a n d l e " ) , f a l s e ) } e l s e { i f ( J . d e t a c h E v e n t ) { J . d e t a c h E v e n t ( " o n " + N , n . d a t a ( J , " h a n d l e " ) ) } } } E = n u l l ; d e l e t e   F [ N ] } } } ) } f o r ( E   i n   F ) { b r e a k } i f ( ! E ) { v a r   K = n . d a t a ( J , " h a n d l e " ) ; i f ( K ) { K . e l e m = n u l l } n . r e m o v e D a t a ( J , " e v e n t s " ) ; n . r e m o v e D a t a ( J , " h a n d l e " ) } } } , t r i g g e r : f u n c t i o n ( H , J , G , D ) { v a r   F = H . t y p e | | H ; i f ( ! D ) { H = t y p e o f   H = = = " o b j e c t " ? H [ h ] ? H : n . e x t e n d ( n . E v e n t ( F ) , H ) : n . E v e n t ( F ) ; i f ( F . i n d e x O f ( " ! " ) > = 0 ) { H . t y p e = F = F . s l i c e ( 0 , - 1 ) ; H . e x c l u s i v e = t r u e } i f ( ! G ) { H . s t o p P r o p a g a t i o n ( ) ; i f ( t h i s . g l o b a l [ F ] ) { n . e a c h ( n . c a c h e , f u n c t i o n ( ) { i f ( t h i s . e v e n t s & & t h i s . e v e n t s [ F ] ) { n . e v e n t . t r i g g e r ( H , J , t h i s . h a n d l e . e l e m ) } } ) } } i f ( ! G | | G . n o d e T y p e = = 3 | | G . n o d e T y p e = = 8 ) { r e t u r n   g } H . r e s u l t = g ; H . t a r g e t = G ; J = n . m a k e A r r a y ( J ) ; J . u n s h i f t ( H ) } H . c u r r e n t T a r g e t = G ; v a r   I = n . d a t a ( G , " h a n d l e " ) ; i f ( I ) { I . a p p l y ( G , J ) } i f ( ( ! G [ F ] | | ( n . n o d e N a m e ( G , " a " ) & & F = = " c l i c k " ) ) & & G [ " o n " + F ] & & G [ " o n " + F ] . a p p l y ( G , J ) = = = f a l s e ) { H . r e s u l t = f a l s e } i f ( ! D & & G [ F ] & & ! H . i s D e f a u l t P r e v e n t e d ( ) & & ! ( n . n o d e N a m e ( G , " a " ) & & F = = " c l i c k " ) ) { t h i s . t r i g g e r e d = t r u e ; t r y { G [ F ] ( ) } c a t c h ( K ) { } } t h i s . t r i g g e r e d = f a l s e ; i f ( ! H . i s P r o p a g a t i o n S t o p p e d ( ) ) { v a r   E = G . p a r e n t N o d e | | G . o w n e r D o c u m e n t ; i f ( E ) { n . e v e n t . t r i g g e r ( H , J , E , t r u e ) } } } , h a n d l e : f u n c t i o n ( J ) { v a r   I , D ; J = a r g u m e n t s [ 0 ] = n . e v e n t . f i x ( J | | l . e v e n t ) ; v a r   K = J . t y p e . s p l i t ( " . " ) ; J . t y p e = K . s h i f t ( ) ; I = ! K . l e n g t h & & ! J . e x c l u s i v e ; v a r   H = R e g E x p ( " ( ^ | \ \ . ) " + K . s l i c e ( ) . s o r t ( ) . j o i n ( " . * \ \ . " ) + " ( \ \ . | $ ) " ) ; D = ( n . d a t a ( t h i s , " e v e n t s " ) | | { } ) [ J . t y p e ] ; f o r ( v a r   F   i n   D ) { v a r   G = D [ F ] ; i f ( I | | H . t e s t ( G . t y p e ) ) { J . h a n d l e r = G ; J . d a t a = G . d a t a ; v a r   E = G . a p p l y ( t h i s , a r g u m e n t s ) ; i f ( E ! = = g ) { J . r e s u l t = E ; i f ( E = = = f a l s e ) { J . p r e v e n t D e f a u l t ( ) ; J . s t o p P r o p a g a t i o n ( ) } } i f ( J . 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 } } } } , 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   m e t a K e y   n e w V a l u e   o r i g i n a l T a r g e t   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 ( G ) { i f ( G [ h ] ) { r e t u r n   G } v a r   E = G ; G = n . E v e n t ( E ) ; f o r ( v a r   F = t h i s . p r o p s . l e n g t h , I ; F ; ) { I = t h i s . p r o p s [ - - F ] ; G [ I ] = E [ I ] } i f ( ! G . t a r g e t ) { G . t a r g e t = G . s r c E l e m e n t | | d o c u m e n t } i f ( G . t a r g e t . n o d e T y p e = = 3 ) { G . t a r g e t = G . t a r g e t . p a r e n t N o d e } i f ( ! G . r e l a t e d T a r g e t & & G . f r o m E l e m e n t ) { G . r e l a t e d T a r g e t = G . f r o m E l e m e n t = = G . t a r g e t ? G . t o E l e m e n t : G . f r o m E l e m e n t } i f ( G . p a g e X = = n u l l & & G . c l i e n t X ! = n u l l ) { v a r   H = d o c u m e n t . d o c u m e n t E l e m e n t , D = d o c u m e n t . b o d y ; G . p a g e X = G . c l i e n t X + ( H & & H . s c r o l l L e f t | | D & & D . s c r o l l L e f t | | 0 ) - ( H . c l i e n t L e f t | | 0 ) ; G . p a g e Y = G . c l i e n t Y + ( H & & H . s c r o l l T o p | | D & & D . s c r o l l T o p | | 0 ) - ( H . c l i e n t T o p | | 0 ) } i f ( ! G . w h i c h & & ( ( G . c h a r C o d e | | G . c h a r C o d e = = = 0 ) ? G . c h a r C o d e : G . k e y C o d e ) ) { G . w h i c h = G . c h a r C o d e | | G . k e y C o d e } i f ( ! G . m e t a K e y & & G . c t r l K e y ) { G . m e t a K e y = G . c t r l K e y } i f ( ! G . w h i c h & & G . b u t t o n ) { G . w h i c h = ( G . b u t t o n & 1 ? 1 : ( G . b u t t o n & 2 ? 3 : ( G . b u t t o n & 4 ? 2 : 0 ) ) ) } r e t u r n   G } , p r o x y : f u n c t i o n ( E , D ) { D = D | | f u n c t i o n ( ) { 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 ) } ; D . g u i d = E . g u i d = E . g u i d | | D . g u i d | | t h i s . g u i d + + ; r e t u r n   D } , s p e c i a l : { r e a d y : { s e t u p : A , t e a r d o w n : f u n c t i o n ( ) { } } } , s p e c i a l A l l : { l i v e : { s e t u p : f u n c t i o n ( D , E ) { n . e v e n t . a d d ( t h i s , E [ 0 ] , c ) } , t e a r d o w n : f u n c t i o n ( F ) { i f ( F . l e n g t h ) { v a r   D = 0 , E = R e g E x p ( " ( ^ | \ \ . ) " + F [ 0 ] + " ( \ \ . | $ ) " ) ; n . e a c h ( ( n . d a t a ( t h i s , " e v e n t s " ) . l i v e | | { } ) , f u n c t i o n ( ) { i f ( E . t e s t ( t h i s . t y p e ) ) { D + + } } ) ; i f ( D < 1 ) { n . e v e n t . r e m o v e ( t h i s , F [ 0 ] , c ) } } } } } } ; n . E v e n t = f u n c t i o n ( D ) { 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   n . E v e n t ( D ) } i f ( D & & D . t y p e ) { t h i s . o r i g i n a l E v e n t = D ; t h i s . t y p e = D . t y p e ; t h i s . t i m e S t a m p = D . t i m e S t a m p } e l s e { t h i s . t y p e = D } i f ( ! t h i s . t i m e S t a m p ) { t h i s . t i m e S t a m p = e ( ) } t h i s [ h ] = t r u e } ; f u n c t i o n   k ( ) { r e t u r n   f a l s e } f u n c t i o n   t ( ) { r e t u r n   t r u e } n . 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 = t ; v a r   D = t h i s . o r i g i n a l E v e n t ; i f ( ! D ) { r e t u r n } i f ( D . p r e v e n t D e f a u l t ) { D . p r e v e n t D e f a u l t ( ) } D . r e t u r n V a l u e = f a l s e } , 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 = t ; v a r   D = t h i s . o r i g i n a l E v e n t ; i f ( ! D ) { r e t u r n } i f ( D . s t o p P r o p a g a t i o n ) { D . s t o p P r o p a g a t i o n ( ) } D . c a n c e l B u b b l e = t r u e } , 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 = t ; 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 : k , i s P r o p a g a t i o n S t o p p e d : k , 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 : k } ; v a r   a = f u n c t i o n ( E ) { v a r   D = E . r e l a t e d T a r g e t ; w h i l e ( D & & D ! = t h i s ) { t r y { D = D . p a r e n t N o d e } c a t c h ( F ) { D = t h i s } } i f ( D ! = t h i s ) { E . t y p e = E . d a t a ; n . 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 ) } } ; n . e a c h ( { m o u s e o v e r : " m o u s e e n t e r " , m o u s e o u t : " m o u s e l e a v e " } , f u n c t i o n ( E , D ) { n . e v e n t . s p e c i a l [ D ] = { s e t u p : f u n c t i o n ( ) { n . e v e n t . a d d ( t h i s , E , a , D ) } , t e a r d o w n : f u n c t i o n ( ) { n . e v e n t . r e m o v e ( t h i s , E , a ) } } } ) ; n . f n . e x t e n d ( { b i n d : f u n c t i o n ( E , F , D ) { r e t u r n   E = = " u n l o a d " ? t h i s . o n e ( E , F , D ) : t h i s . e a c h ( f u n c t i o n ( ) { n . e v e n t . a d d ( t h i s , E , D | | F , D & & F ) } ) } , o n e : f u n c t i o n ( F , G , E ) { v a r   D = n . e v e n t . p r o x y ( E | | G , f u n c t i o n ( H ) { n ( t h i s ) . u n b i n d ( H , D ) ; r e t u r n ( E | | G ) . a p p l y ( t h i s , a r g u m e n t s ) } ) ; r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { n . e v e n t . a d d ( t h i s , F , D , E & & G ) } ) } , u n b i n d : f u n c t i o n ( E , D ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { n . e v e n t . r e m o v e ( t h i s , E , D ) } ) } , t r i g g e r : f u n c t i o n ( D , E ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { n . e v e n t . t r i g g e r ( D , E , 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 ( D , F ) { i f ( t h i s [ 0 ] ) { v a r   E = n . E v e n t ( D ) ; E . p r e v e n t D e f a u l t ( ) ; E . s t o p P r o p a g a t i o n ( ) ; n . e v e n t . t r i g g e r ( E , F , t h i s [ 0 ] ) ; r e t u r n   E . r e s u l t } } , t o g g l e : f u n c t i o n ( F ) { v a r   D = a r g u m e n t s , E = 1 ; w h i l e ( E < D . l e n g t h ) { n . e v e n t . p r o x y ( F , D [ E + + ] ) } r e t u r n   t h i s . c l i c k ( n . e v e n t . p r o x y ( F , f u n c t i o n ( G ) { t h i s . l a s t T o g g l e = ( t h i s . l a s t T o g g l e | | 0 ) % E ; G . p r e v e n t D e f a u l t ( ) ; r e t u r n   D [ t h i s . l a s t T o g g l e + + ] . a p p l y ( t h i s , a r g u m e n t s ) | | f a l s e } ) ) } , h o v e r : f u n c t i o n ( D , E ) { r e t u r n   t h i s . m o u s e e n t e r ( D ) . m o u s e l e a v e ( E ) } , r e a d y : f u n c t i o n ( D ) { A ( ) ; i f ( n . i s R e a d y ) { D . c a l l ( d o c u m e n t , n ) } e l s e { n . r e a d y L i s t . p u s h ( D ) } r e t u r n   t h i s } , l i v e : f u n c t i o n ( F , E ) { v a r   D = n . e v e n t . p r o x y ( E ) ; D . g u i d + = t h i s . s e l e c t o r + F ; n ( d o c u m e n t ) . b i n d ( i ( F , t h i s . s e l e c t o r ) , t h i s . s e l e c t o r , D ) ; r e t u r n   t h i s } , d i e : f u n c t i o n ( E , D ) { n ( d o c u m e n t ) . u n b i n d ( i ( E , t h i s . s e l e c t o r ) , D ? { g u i d : D . g u i d + t h i s . s e l e c t o r + E } : n u l l ) ; r e t u r n   t h i s } } ) ; f u n c t i o n   c ( G ) { v a r   D = R e g E x p ( " ( ^ | \ \ . ) " + G . t y p e + " ( \ \ . | $ ) " ) , F = t r u e , E = [ ] ; n . e a c h ( n . d a t a ( t h i s , " e v e n t s " ) . l i v e | | [ ] , f u n c t i o n ( H , I ) { i f ( D . t e s t ( I . t y p e ) ) { v a r   J = n ( G . t a r g e t ) . c l o s e s t ( I . d a t a ) [ 0 ] ; i f ( J ) { E . p u s h ( { e l e m : J , f n : I } ) } } } ) ; n . e a c h ( E , f u n c t i o n ( ) { i f ( ! G . 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 ( ) & & t h i s . f n . c a l l ( t h i s . e l e m , G , t h i s . f n . d a t a ) = = = f a l s e ) { F = f a l s e } } ) ; r e t u r n   F } f u n c t i o n   i ( E , D ) { r e t u r n [ " l i v e " , E , D . r e p l a c e ( / \ . / g , " ` " ) . r e p l a c e ( /   / g , " | " ) ] . j o i n ( " . " ) } n . e x t e n d ( { i s R e a d y : f a l s e , r e a d y L i s t : [ ] , r e a d y : f u n c t i o n ( ) { i f ( ! n . i s R e a d y ) { n . i s R e a d y = t r u e ; i f ( n . r e a d y L i s t ) { n . e a c h ( n . r e a d y L i s t , f u n c t i o n ( ) { t h i s . c a l l ( d o c u m e n t , n ) } ) ; n . r e a d y L i s t = n u l l } n ( d o c u m e n t ) . t r i g g e r H a n d l e r ( " r e a d y " ) } } } ) ; v a r   w = f a l s e ; f u n c t i o n   A ( ) { i f ( w ) { r e t u r n } w = t r u e ; i f ( d o c u m e n t . a d d E v e n t L i s t e n e r ) { d o c u m e n t . 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 " , f u n c t i o n ( ) { d o c u m e n t . 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 " , a r g u m e n t s . c a l l e e , f a l s e ) ; n . r e a d y ( ) } , f a l s e ) } e l s e { i f ( d o c u m e n t . a t t a c h E v e n t ) { d o c u m e n t . 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 " , f u n c t i o n ( ) { i f ( d o c u m e n t . r e a d y S t a t e = = = " c o m p l e t e " ) { d o c u m e n t . 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 " , a r g u m e n t s . c a l l e e ) ; n . r e a d y ( ) } } ) ; i f ( d o c u m e n t . d o c u m e n t E l e m e n t . d o S c r o l l & & ! l . f r a m e E l e m e n t ) { ( f u n c t i o n ( ) { i f ( n . i s R e a d y ) { r e t u r n } t r y { d o c u m e n t . 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 ( D ) { s e t T i m e o u t ( a r g u m e n t s . c a l l e e , 0 ) ; r e t u r n } n . r e a d y ( ) } ) ( ) } } } n . e v e n t . a d d ( l , " l o a d " , n . r e a d y ) } n . e a c h ( ( " b l u r , f o c u s , 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 ( E , D ) { n . f n [ D ] = f u n c t i o n ( F ) { r e t u r n   F ? t h i s . b i n d ( D , F ) : t h i s . t r i g g e r ( D ) } } ) ; n ( l ) . b i n d ( " u n l o a d " , f u n c t i o n ( ) { f o r ( v a r   D   i n   n . c a c h e ) { i f ( D ! = 1 & & n . c a c h e [ D ] . h a n d l e ) { n . e v e n t . r e m o v e ( n . c a c h e [ D ] . h a n d l e . e l e m ) } } } ) ; ( f u n c t i o n ( ) { n . s u p p o r t = { } ; v a r   E = d o c u m e n t . d o c u m e n t E l e m e n t , F = d o c u m e n t . c r e a t e E l e m e n t ( " s c r i p t " ) , J = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) , I = " s c r i p t " + ( n e w   D a t e ) . g e t T i m e ( ) ; J . s t y l e . d i s p l a y = " n o n e " ; J . 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 = " c o l o r : r e d ; f l o a t : l e f t ; o p a c i t y : . 5 ; " > a < / a > < s e l e c t > < o p t i o n > t e x t < / o p t i o n > < / s e l e c t > < o b j e c t > < p a r a m / > < / o b j e c t > ' ; v a r   G = J . g e t E l e m e n t s B y T a g N a m e ( " * " ) , D = J . g e t E l e m e n t s B y T a g N a m e ( " a " ) [ 0 ] ; i f ( ! G | | ! G . l e n g t h | | ! D ) { r e t u r n } n . s u p p o r t = { l e a d i n g W h i t e s p a c e : J . f i r s t C h i l d . n o d e T y p e = = 3 , t b o d y : ! J . 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 , o b j e c t A l l : ! ! J . g e t E l e m e n t s B y T a g N a m e ( " o b j e c t " ) [ 0 ] . 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 , h t m l S e r i a l i z e : ! ! J . 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 : / r e d / . t e s t ( D . 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 : D . g e t A t t r i b u t e ( " h r e f " ) = = = " / a " , o p a c i t y : D . s t y l e . o p a c i t y = = = " 0 . 5 " , c s s F l o a t : ! ! D . s t y l e . c s s F l o a t , s c r i p t E v a l : f a l s e , n o C l o n e E v e n t : t r u e , b o x M o d e l : n u l l } ; F . t y p e = " t e x t / j a v a s c r i p t " ; t r y { F . a p p e n d C h i l d ( d o c u m e n t . c r e a t e T e x t N o d e ( " w i n d o w . " + I + " = 1 ; " ) ) } c a t c h ( H ) { } E . i n s e r t B e f o r e ( F , E . f i r s t C h i l d ) ; i f ( l [ I ] ) { n . s u p p o r t . s c r i p t E v a l = t r u e ; d e l e t e   l [ I ] } E . r e m o v e C h i l d ( F ) ; i f ( J . a t t a c h E v e n t & & J . f i r e E v e n t ) { J . 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 ( ) { n . s u p p o r t . n o C l o n e E v e n t = f a l s e ; J . d e t a c h E v e n t ( " o n c l i c k " , a r g u m e n t s . c a l l e e ) } ) ; J . c l o n e N o d e ( t r u e ) . f i r e E v e n t ( " o n c l i c k " ) } n ( f u n c t i o n ( ) { v a r   K = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; K . s t y l e . w i d t h = " 1 p x " ; K . s t y l e . p a d d i n g L e f t = " 1 p x " ; d o c u m e n t . b o d y . a p p e n d C h i l d ( K ) ; n . b o x M o d e l = n . s u p p o r t . b o x M o d e l = K . o f f s e t W i d t h = = = 2 ; d o c u m e n t . b o d y . r e m o v e C h i l d ( K ) } ) } ) ( ) ; v a r   v = n . 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 " ; n . p r o p s = { " f o r " : " h t m l F o r " , " c l a s s " : " c l a s s N a m e " , " f l o a t " : v , c s s F l o a t : v , s t y l e F l o a t : v , r e a d o n l y : " r e a d O n l y " , 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 " , r o w s p a n : " r o w S p a n " , t a b i n d e x : " t a b I n d e x " } ; n . f n . e x t e n d ( { _ l o a d : n . f n . l o a d , l o a d : f u n c t i o n ( F , I , J ) { i f ( t y p e o f   F ! = = " s t r i n g " ) { r e t u r n   t h i s . _ l o a d ( F ) } v a r   H = F . i n d e x O f ( "   " ) ; i f ( H > = 0 ) { v a r   D = F . s l i c e ( H , F . l e n g t h ) ; F = F . s l i c e ( 0 , H ) } v a r   G = " G E T " ; i f ( I ) { i f ( n . i s F u n c t i o n ( I ) ) { J = I ; I = n u l l } e l s e { i f ( t y p e o f   I = = = " o b j e c t " ) { I = n . p a r a m ( I ) ; G = " P O S T " } } } v a r   E = t h i s ; n . a j a x ( { u r l : F , t y p e : G , d a t a T y p e : " h t m l " , d a t a : I , c o m p l e t e : f u n c t i o n ( L , K ) { i f ( K = = " s u c c e s s " | | K = = " n o t m o d i f i e d " ) { E . h t m l ( D ? n ( " < d i v / > " ) . a p p e n d ( L . r e s p o n s e T e x t . r e p l a c e ( / < s c r i p t ( . | \ s ) * ? \ / s c r i p t > / g , " " ) ) . f i n d ( D ) : L . r e s p o n s e T e x t ) } i f ( J ) { E . e a c h ( J , [ L . r e s p o n s e T e x t , K , L ] ) } } } ) ; 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   n . 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 ? n . 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 | | / s e l e c t | t e x t a r e a / i . t e s t ( t h i s . n o d e N a m e ) | | / t e x t | h i d d e n | p a s s w o r d / i . t e s t ( t h i s . t y p e ) ) } ) . m a p ( f u n c t i o n ( D , E ) { v a r   F = n ( t h i s ) . v a l ( ) ; r e t u r n   F = = n u l l ? n u l l : n . i s A r r a y ( F ) ? n . m a p ( F , f u n c t i o n ( H , G ) { r e t u r n { n a m e : E . n a m e , v a l u e : H } } ) : { n a m e : E . n a m e , v a l u e : F } } ) . g e t ( ) } } ) ; n . 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 ( D , E ) { n . f n [ E ] = f u n c t i o n ( F ) { r e t u r n   t h i s . b i n d ( E , F ) } } ) ; v a r   q = e ( ) ; n . e x t e n d ( { g e t : f u n c t i o n ( D , F , G , E ) { i f ( n . i s F u n c t i o n ( F ) ) { G = F ; F = n u l l } r e t u r n   n . a j a x ( { t y p e : " G E T " , u r l : D , d a t a : F , s u c c e s s : G , d a t a T y p e : E } ) } , g e t S c r i p t : f u n c t i o n ( D , E ) { r e t u r n   n . g e t ( D , n u l l , E , " s c r i p t " ) } , g e t J S O N : f u n c t i o n ( D , E , F ) { r e t u r n   n . g e t ( D , E , F , " j s o n " ) } , p o s t : f u n c t i o n ( D , F , G , E ) { i f ( n . i s F u n c t i o n ( F ) ) { G = F ; F = { } } r e t u r n   n . a j a x ( { t y p e : " P O S T " , u r l : D , d a t a : F , s u c c e s s : G , d a t a T y p e : E } ) } , a j a x S e t u p : f u n c t i o n ( D ) { n . e x t e n d ( n . a j a x S e t t i n g s , D ) } , a j a x S e t t i n g s : { u r l : l o c a t i o n . h r e f , g l o b a l : t r u e , 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 : t r u e , a s y n c : t r u e , x h r : f u n c t i o n ( ) { r e t u r n   l . A c t i v e X O b j e c t ? n e w   A c t i v e X O b j e c t ( " M i c r o s o f t . X M L H T T P " ) : n e w   X M L H t t p R e q u e s t ( ) } , 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 " , 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 " , 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 " , t e x t : " t e x t / p l a i n " , _ d e f a u l t : " * / * " } } , l a s t M o d i f i e d : { } , a j a x : f u n c t i o n ( L ) { L = n . e x t e n d ( t r u e , L , n . e x t e n d ( t r u e , { } , n . a j a x S e t t i n g s , L ) ) ; v a r   V , E = / = \ ? ( & | $ ) / g , Q , U , F = L . t y p e . t o U p p e r C a s e ( ) ; i f ( L . d a t a & & L . p r o c e s s D a t a & & t y p e o f   L . d a t a ! = = " s t r i n g " ) { L . d a t a = n . p a r a m ( L . d a t a ) } i f ( L . d a t a T y p e = = " j s o n p " ) { i f ( F = = " G E T " ) { i f ( ! L . u r l . m a t c h ( E ) ) { L . u r l + = ( L . u r l . m a t c h ( / \ ? / ) ? " & " : " ? " ) + ( L . j s o n p | | " c a l l b a c k " ) + " = ? " } } e l s e { i f ( ! L . d a t a | | ! L . d a t a . m a t c h ( E ) ) { L . d a t a = ( L . d a t a ? L . d a t a + " & " : " " ) + ( L . j s o n p | | " c a l l b a c k " ) + " = ? " } } L . d a t a T y p e = " j s o n " } i f ( L . d a t a T y p e = = " j s o n " & & ( L . d a t a & & L . d a t a . m a t c h ( E ) | | L . u r l . m a t c h ( E ) ) ) { V = " j s o n p " + q + + ; i f ( L . d a t a ) { L . d a t a = ( L . d a t a + " " ) . r e p l a c e ( E , " = " + V + " $ 1 " ) } L . u r l = L . u r l . r e p l a c e ( E , " = " + V + " $ 1 " ) ; L . d a t a T y p e = " s c r i p t " ; l [ V ] = f u n c t i o n ( W ) { U = W ; H ( ) ; K ( ) ; l [ V ] = g ; t r y { d e l e t e   l [ V ] } c a t c h ( X ) { } i f ( G ) { G . r e m o v e C h i l d ( S ) } } } i f ( L . d a t a T y p e = = " s c r i p t " & & L . c a c h e = = n u l l ) { L . c a c h e = f a l s e } i f ( L . c a c h e = = = f a l s e & & F = = " G E T " ) { v a r   D = e ( ) ; v a r   T = L . u r l . r e p l a c e ( / ( \ ? | & ) _ = . * ? ( & | $ ) / , " $ 1 _ = " + D + " $ 2 " ) ; L . u r l = T + ( ( T = = L . u r l ) ? ( L . u r l . m a t c h ( / \ ? / ) ? " & " : " ? " ) + " _ = " + D : " " ) } i f ( L . d a t a & & F = = " G E T " ) { L . u r l + = ( L . u r l . m a t c h ( / \ ? / ) ? " & " : " ? " ) + L . d a t a ; L . d a t a = n u l l } i f ( L . g l o b a l & & ! n . a c t i v e + + ) { n . e v e n t . t r i g g e r ( " a j a x S t a r t " ) } v a r   P = / ^ ( \ w + : ) ? \ / \ / ( [ ^ \ / ? # ] + ) / . e x e c ( L . u r l ) ; i f ( L . d a t a T y p e = = " s c r i p t " & & F = = " G E T " & & P & & ( P [ 1 ] & & P [ 1 ] ! = l o c a t i o n . p r o t o c o l | | P [ 2 ] ! = l o c a t i o n . h o s t ) ) { v a r   G = d o c u m e n t . 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 ] ; v a r   S = d o c u m e n t . c r e a t e E l e m e n t ( " s c r i p t " ) ; S . s r c = L . u r l ; i f ( L . s c r i p t C h a r s e t ) { S . c h a r s e t = L . s c r i p t C h a r s e t } i f ( ! V ) { v a r   N = f a l s e ; S . o n l o a d = S . 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 ( ) { i f ( ! N & & ( ! t h i s . r e a d y S t a t e | | t h i s . r e a d y S t a t e = = " l o a d e d " | | t h i s . r e a d y S t a t e = = " c o m p l e t e " ) ) { N = t r u e ; H ( ) ; K ( ) ; G . r e m o v e C h i l d ( S ) } } } G . a p p e n d C h i l d ( S ) ; r e t u r n   g } v a r   J = f a l s e ; v a r   I = L . x h r ( ) ; i f ( L . u s e r n a m e ) { I . o p e n ( F , L . u r l , L . a s y n c , L . u s e r n a m e , L . p a s s w o r d ) } e l s e { I . o p e n ( F , L . u r l , L . a s y n c ) } t r y { i f ( L . d a t a ) { I . 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 " , L . c o n t e n t T y p e ) } i f ( L . i f M o d i f i e d ) { I . 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 " , n . l a s t M o d i f i e d [ L . u r l ] | | " T h u ,   0 1   J a n   1 9 7 0   0 0 : 0 0 : 0 0   G M T " ) } I . s e t R e q u e s t H e a d e r ( " 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 " ) ; I . s e t R e q u e s t H e a d e r ( " A c c e p t " , L . d a t a T y p e & & L . a c c e p t s [ L . d a t a T y p e ] ? L . a c c e p t s [ L . d a t a T y p e ] + " ,   * / * " : L . a c c e p t s . _ d e f a u l t ) } c a t c h ( R ) { } i f ( L . b e f o r e S e n d & & L . b e f o r e S e n d ( I , L ) = = = f a l s e ) { i f ( L . g l o b a l & & ! - - n . a c t i v e ) { n . e v e n t . t r i g g e r ( " a j a x S t o p " ) } I . a b o r t ( ) ; r e t u r n   f a l s e } i f ( L . g l o b a l ) { n . e v e n t . t r i g g e r ( " a j a x S e n d " , [ I , L ] ) } v a r   M = f u n c t i o n ( W ) { i f ( I . r e a d y S t a t e = = 0 ) { i f ( O ) { c l e a r I n t e r v a l ( O ) ; O = n u l l ; i f ( L . g l o b a l & & ! - - n . a c t i v e ) { n . e v e n t . t r i g g e r ( " a j a x S t o p " ) } } } e l s e { i f ( ! J & & I & & ( I . r e a d y S t a t e = = 4 | | W = = " t i m e o u t " ) ) { J = t r u e ; i f ( O ) { c l e a r I n t e r v a l ( O ) ; O = n u l l } Q = W = = " t i m e o u t " ? " t i m e o u t " : ! n . h t t p S u c c e s s ( I ) ? " e r r o r " : L . i f M o d i f i e d & & n . h t t p N o t M o d i f i e d ( I , L . u r l ) ? " n o t m o d i f i e d " : " s u c c e s s " ; i f ( Q = = " s u c c e s s " ) { t r y { U = n . h t t p D a t a ( I , L . d a t a T y p e , L ) } c a t c h ( Y ) { Q = " p a r s e r e r r o r " } } i f ( Q = = " s u c c e s s " ) { v a r   X ; t r y { X = I . 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 " ) } c a t c h ( Y ) { } i f ( L . i f M o d i f i e d & & X ) { n . l a s t M o d i f i e d [ L . u r l ] = X } i f ( ! V ) { H ( ) } } e l s e { n . h a n d l e E r r o r ( L , I , Q ) } K ( ) ; i f ( L . a s y n c ) { I = n u l l } } } } ; i f ( L . a s y n c ) { v a r   O = s e t I n t e r v a l ( M , 1 3 ) ; i f ( L . t i m e o u t > 0 ) { s e t T i m e o u t ( f u n c t i o n ( ) { i f ( I ) { i f ( ! J ) { M ( " t i m e o u t " ) } i f ( I ) { I . a b o r t ( ) } } } , L . t i m e o u t ) } } t r y { I . s e n d ( L . d a t a ) } c a t c h ( R ) { n . h a n d l e E r r o r ( L , I , n u l l , R ) } i f ( ! L . a s y n c ) { M ( ) } f u n c t i o n   H ( ) { i f ( L . s u c c e s s ) { L . s u c c e s s ( U , Q ) } i f ( L . g l o b a l ) { n . e v e n t . t r i g g e r ( " a j a x S u c c e s s " , [ I , L ] ) } } f u n c t i o n   K ( ) { i f ( L . c o m p l e t e ) { L . c o m p l e t e ( I , Q ) } i f ( L . g l o b a l ) { n . e v e n t . t r i g g e r ( " a j a x C o m p l e t e " , [ I , L ] ) } i f ( L . g l o b a l & & ! - - n . a c t i v e ) { n . e v e n t . t r i g g e r ( " a j a x S t o p " ) } } r e t u r n   I } , h a n d l e E r r o r : f u n c t i o n ( E , G , D , F ) { i f ( E . e r r o r ) { E . e r r o r ( G , D , F ) } i f ( E . g l o b a l ) { n . e v e n t . t r i g g e r ( " a j a x E r r o r " , [ G , E , F ] ) } } , a c t i v e : 0 , h t t p S u c c e s s : f u n c t i o n ( E ) { t r y { r e t u r n   ! E . s t a t u s & & l o c a t i o n . p r o t o c o l = = " f i l e : " | | ( E . s t a t u s > = 2 0 0 & & E . s t a t u s < 3 0 0 ) | | E . s t a t u s = = 3 0 4 | | E . s t a t u s = = 1 2 2 3 } c a t c h ( D ) { } r e t u r n   f a l s e } , h t t p N o t M o d i f i e d : f u n c t i o n ( F , D ) { t r y { v a r   G = F . 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 " ) ; r e t u r n   F . s t a t u s = = 3 0 4 | | G = = n . l a s t M o d i f i e d [ D ] } c a t c h ( E ) { } r e t u r n   f a l s e } , h t t p D a t a : f u n c t i o n ( I , G , F ) { v a r   E = I . 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 " ) , D = G = = " x m l " | | ! G & & E & & E . i n d e x O f ( " x m l " ) > = 0 , H = D ? I . r e s p o n s e X M L : I . r e s p o n s e T e x t ; i f ( D & & H . d o c u m e n t E l e m e n t . t a g N a m e = = " p a r s e r e r r o r " ) { t h r o w " p a r s e r e r r o r " } i f ( F & & F . d a t a F i l t e r ) { H = F . d a t a F i l t e r ( H , G ) } i f ( t y p e o f   H = = = " s t r i n g " ) { i f ( G = = " s c r i p t " ) { n . g l o b a l E v a l ( H ) } i f ( G = = " j s o n " ) { H = l [ " e v a l " ] ( " ( " + H + " ) " ) } } r e t u r n   H } , p a r a m : f u n c t i o n ( D ) { v a r   F = [ ] ; f u n c t i o n   G ( H , I ) { F [ F . l e n g t h ] = e n c o d e U R I C o m p o n e n t ( H ) + " = " + e n c o d e U R I C o m p o n e n t ( I ) } i f ( n . i s A r r a y ( D ) | | D . j q u e r y ) { n . e a c h ( D , f u n c t i o n ( ) { G ( 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   E   i n   D ) { i f ( n . i s A r r a y ( D [ E ] ) ) { n . e a c h ( D [ E ] , f u n c t i o n ( ) { G ( E , t h i s ) } ) } e l s e { G ( E , n . i s F u n c t i o n ( D [ E ] ) ? D [ E ] ( ) : D [ E ] ) } } } r e t u r n   F . j o i n ( " & " ) . r e p l a c e ( / % 2 0 / g , " + " ) } } ) ; v a r   m = { } , d = [ [ " 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 " ] ] ; f u n c t i o n   s ( E , D ) { v a r   F = { } ; n . e a c h ( d . c o n c a t . a p p l y ( [ ] , d . s l i c e ( 0 , D ) ) , f u n c t i o n ( ) { F [ t h i s ] = E } ) ; r e t u r n   F } n . f n . e x t e n d ( { s h o w : f u n c t i o n ( I , K ) { i f ( I ) { r e t u r n   t h i s . a n i m a t e ( s ( " s h o w " , 3 ) , I , K ) } e l s e { f o r ( v a r   G = 0 , E = t h i s . l e n g t h ; G < E ; G + + ) { v a r   D = n . d a t a ( t h i s [ G ] , " o l d d i s p l a y " ) ; t h i s [ G ] . s t y l e . d i s p l a y = D | | " " ; i f ( n . c s s ( t h i s [ G ] , " d i s p l a y " ) = = = " n o n e " ) { v a r   F = t h i s [ G ] . t a g N a m e , J ; i f ( m [ F ] ) { J = m [ F ] } e l s e { v a r   H = n ( " < " + F + "   / > " ) . a p p e n d T o ( " b o d y " ) ; J = H . c s s ( " d i s p l a y " ) ; i f ( J = = = " n o n e " ) { J = " b l o c k " } H . r e m o v e ( ) ; m [ F ] = J } t h i s [ G ] . s t y l e . d i s p l a y = n . d a t a ( t h i s [ G ] , " o l d d i s p l a y " , J ) } } r e t u r n   t h i s } } , h i d e : f u n c t i o n ( G , H ) { i f ( G ) { r e t u r n   t h i s . a n i m a t e ( s ( " h i d e " , 3 ) , G , H ) } e l s e { f o r ( v a r   F = 0 , E = t h i s . l e n g t h ; F < E ; F + + ) { v a r   D = n . d a t a ( t h i s [ F ] , " o l d d i s p l a y " ) ; i f ( ! D & & D ! = = " n o n e " ) { n . d a t a ( t h i s [ F ] , " o l d d i s p l a y " , n . c s s ( t h i s [ F ] , " d i s p l a y " ) ) } t h i s [ F ] . 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 : n . f n . t o g g l e , t o g g l e : f u n c t i o n ( F , E ) { v a r   D = t y p e o f   F = = = " b o o l e a n " ; r e t u r n   n . i s F u n c t i o n ( F ) & & n . i s F u n c t i o n ( E ) ? 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 ) : F = = n u l l | | D ? t h i s . e a c h ( f u n c t i o n ( ) { v a r   G = D ? F : n ( t h i s ) . i s ( " : h i d d e n " ) ; n ( t h i s ) [ G ? " s h o w " : " h i d e " ] ( ) } ) : t h i s . a n i m a t e ( s ( " t o g g l e " , 3 ) , F , E ) } , f a d e T o : f u n c t i o n ( D , F , E ) { r e t u r n   t h i s . a n i m a t e ( { o p a c i t y : F } , D , E ) } , a n i m a t e : f u n c t i o n ( H , E , G , F ) { v a r   D = n . s p e e d ( E , G , F ) ; r e t u r n   t h i s [ D . q u e u e = = = f a l s e ? " e a c h " : " q u e u e " ] ( f u n c t i o n ( ) { v a r   J = n . e x t e n d ( { } , D ) , L , K = t h i s . n o d e T y p e = = 1 & & n ( t h i s ) . i s ( " : h i d d e n " ) , I = t h i s ; f o r ( L   i n   H ) { i f ( H [ L ] = = " h i d e " & & K | | H [ L ] = = " s h o w " & & ! K ) { r e t u r n   J . c o m p l e t e . c a l l ( t h i s ) } i f ( ( L = = " h e i g h t " | | L = = " w i d t h " ) & & t h i s . s t y l e ) { J . d i s p l a y = n . c s s ( t h i s , " d i s p l a y " ) ; J . 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 } } i f ( J . 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 " } J . c u r A n i m = n . e x t e n d ( { } , H ) ; n . e a c h ( H , f u n c t i o n ( N , R ) { v a r   Q = n e w   n . f x ( I , J , N ) ; i f ( / t o g g l e | s h o w | h i d e / . t e s t ( R ) ) { Q [ R = = " t o g g l e " ? K ? " s h o w " : " h i d e " : R ] ( H ) } e l s e { v a r   P = R . t o S t r i n g ( ) . m a t c h ( / ^ ( [ + - ] = ) ? ( [ \ d + - . ] + ) ( . * ) $ / ) , S = Q . c u r ( t r u e ) | | 0 ; i f ( P ) { v a r   M = p a r s e F l o a t ( P [ 2 ] ) , O = P [ 3 ] | | " p x " ; i f ( O ! = " p x " ) { I . s t y l e [ N ] = ( M | | 1 ) + O ; S = ( ( M | | 1 ) / Q . c u r ( t r u e ) ) * S ; I . s t y l e [ N ] = S + O } i f ( P [ 1 ] ) { M = ( ( P [ 1 ] = = " - = " ? - 1 : 1 ) * M ) + S } Q . c u s t o m ( S , M , O ) } e l s e { Q . c u s t o m ( S , R , " " ) } } } ) ; r e t u r n   t r u e } ) } , s t o p : f u n c t i o n ( E , D ) { v a r   F = n . t i m e r s ; i f ( E ) { 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 ( ) { f o r ( v a r   G = F . l e n g t h - 1 ; G > = 0 ; G - - ) { i f ( F [ G ] . e l e m = = t h i s ) { i f ( D ) { F [ G ] ( t r u e ) } F . s p l i c e ( G , 1 ) } } } ) ; i f ( ! D ) { t h i s . d e q u e u e ( ) } r e t u r n   t h i s } } ) ; n . e a c h ( { s l i d e D o w n : s ( " s h o w " , 1 ) , s l i d e U p : s ( " h i d e " , 1 ) , s l i d e T o g g l e : s ( " 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 u n c t i o n ( D , E ) { n . f n [ D ] = f u n c t i o n ( F , G ) { r e t u r n   t h i s . a n i m a t e ( E , F , G ) } } ) ; n . e x t e n d ( { s p e e d : f u n c t i o n ( F , G , E ) { v a r   D = t y p e o f   F = = = " o b j e c t " ? F : { c o m p l e t e : E | | ! E & & G | | n . i s F u n c t i o n ( F ) & & F , d u r a t i o n : F , e a s i n g : E & & G | | G & & ! n . i s F u n c t i o n ( G ) & & G } ; D . d u r a t i o n = n . 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 : n . f x . s p e e d s [ D . d u r a t i o n ] | | n . 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 ( ) { i f ( D . q u e u e ! = = f a l s e ) { n ( t h i s ) . d e q u e u e ( ) } i f ( n . 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 ( F , G , D , E ) { r e t u r n   D + E * F } , s w i n g : f u n c t i o n ( F , G , D , E ) { r e t u r n ( ( - M a t h . c o s ( F * M a t h . P I ) / 2 ) + 0 . 5 ) * E + D } } , t i m e r s : [ ] , t i m e r I d : n u l l , f x : f u n c t i o n ( E , D , F ) { t h i s . o p t i o n s = D ; t h i s . e l e m = E ; t h i s . p r o p = F ; i f ( ! D . o r i g ) { D . o r i g = { } } } } ) ; n . 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 ( ) { i f ( 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 ) } ( n . f x . s t e p [ t h i s . p r o p ] | | n . f x . s t e p . _ d e f a u l t ) ( t h i s ) ; i f ( ( t h i s . p r o p = = " h e i g h t " | | t h i s . p r o p = = " w i d t h " ) & & 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 . d i s p l a y = " b l o c k " } } , c u r : f u n c t i o n ( E ) { 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   D = p a r s e F l o a t ( n . c s s ( t h i s . e l e m , t h i s . p r o p , E ) ) ; r e t u r n   D & & D > - 1 0 0 0 0 ? D : p a r s e F l o a t ( n . c u r C S S ( t h i s . e l e m , t h i s . p r o p ) ) | | 0 } , c u s t o m : f u n c t i o n ( H , G , F ) { t h i s . s t a r t T i m e = e ( ) ; t h i s . s t a r t = H ; t h i s . e n d = G ; t h i s . u n i t = F | | t h i s . u n i t | | " 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 ; v a r   D = t h i s ; f u n c t i o n   E ( I ) { r e t u r n   D . s t e p ( I ) } E . e l e m = t h i s . e l e m ; n . t i m e r s . p u s h ( E ) ; i f ( E ( ) & & n . t i m e r I d = = n u l l ) { n . t i m e r I d = s e t I n t e r v a l ( f u n c t i o n ( ) { v a r   J = n . t i m e r s ; f o r ( v a r   I = 0 ; I < J . l e n g t h ; I + + ) { i f ( ! J [ I ] ( ) ) { J . s p l i c e ( I - - , 1 ) } } i f ( ! J . l e n g t h ) { c l e a r I n t e r v a l ( n . t i m e r I d ) ; n . t i m e r I d = n u l l } } , 1 3 ) } } , 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 ] = n . a t t r ( t h i s . e l e m . s t y l e , t h i s . p r o p ) ; t h i s . o p t i o n s . s h o w = t r u e ; 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 ( ) ) ; n ( 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 ] = n . a t t r ( t h i s . e l e m . s t y l e , t h i s . p r o p ) ; t h i s . o p t i o n s . h i d e = t r u e ; 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 ( G ) { v a r   F = e ( ) ; i f ( G | | F > = t h i s . o p t i o n s . 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 ( ) ; t h i s . o p t i o n s . c u r A n i m [ t h i s . p r o p ] = t r u e ; v a r   D = t r u e ; f o r ( v a r   E   i n   t h i s . o p t i o n s . c u r A n i m ) { i f ( t h i s . o p t i o n s . c u r A n i m [ E ] ! = = t r u e ) { D = f a l s e } } i f ( D ) { i f ( t h i s . o p t i o n s . d i s p l a y ! = n u l l ) { t h i s . e l e m . s t y l e . o v e r f l o w = t h i s . o p t i o n s . o v e r f l o w ; t h i s . e l e m . s t y l e . d i s p l a y = t h i s . o p t i o n s . d i s p l a y ; i f ( n . c s s ( t h i s . e l e m , " d i s p l a y " ) = = " n o n e " ) { t h i s . e l e m . s t y l e . d i s p l a y = " b l o c k " } } i f ( t h i s . o p t i o n s . h i d e ) { n ( t h i s . e l e m ) . h i d e ( ) } i f ( t h i s . o p t i o n s . h i d e | | t h i s . o p t i o n s . s h o w ) { f o r ( v a r   H   i n   t h i s . o p t i o n s . c u r A n i m ) { n . a t t r ( t h i s . e l e m . s t y l e , H , t h i s . o p t i o n s . o r i g [ H ] ) } } } i f ( D ) { t h i s . o p t i o n s . c o m p l e t e . c a l l ( t h i s . e l e m ) } r e t u r n   f a l s e } e l s e { v a r   I = F - t h i s . s t a r t T i m e ; t h i s . s t a t e = I / t h i s . o p t i o n s . d u r a t i o n ; t h i s . p o s = n . e a s i n g [ t h i s . o p t i o n s . e a s i n g | | ( n . e a s i n g . s w i n g ? " s w i n g " : " l i n e a r " ) ] ( t h i s . s t a t e , I , 0 , 1 , t h i s . o p t i o n s . 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   t r u e } } ; n . e x t e n d ( n . f x , { 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 ( D ) { n . a t t r ( D . e l e m . s t y l e , " o p a c i t y " , D . n o w ) } , _ d e f a u l t : f u n c t i o n ( D ) { i f ( D . e l e m . s t y l e & & D . e l e m . s t y l e [ D . p r o p ] ! = n u l l ) { D . e l e m . s t y l e [ D . p r o p ] = D . n o w + D . u n i t } e l s e { D . e l e m [ D . p r o p ] = D . n o w } } } } ) ; i f ( d o c u m e n t . d o c u m e n t E l e m e n t . g e t B o u n d i n g C l i e n t R e c t ) { n . f n . o f f s e t = f u n c t i o n ( ) { i f ( ! t h i s [ 0 ] ) { r e t u r n { t o p : 0 , l e f t : 0 } } i f ( t h i s [ 0 ] = = = t h i s [ 0 ] . o w n e r D o c u m e n t . b o d y ) { r e t u r n   n . o f f s e t . b o d y O f f s e t ( t h i s [ 0 ] ) } v a r   F = t h i s [ 0 ] . g e t B o u n d i n g C l i e n t R e c t ( ) , I = t h i s [ 0 ] . o w n e r D o c u m e n t , E = I . b o d y , D = I . d o c u m e n t E l e m e n t , K = D . c l i e n t T o p | | E . c l i e n t T o p | | 0 , J = D . c l i e n t L e f t | | E . c l i e n t L e f t | | 0 , H = F . t o p + ( s e l f . p a g e Y O f f s e t | | n . b o x M o d e l & & D . s c r o l l T o p | | E . s c r o l l T o p ) - K , G = F . l e f t + ( s e l f . p a g e X O f f s e t | | n . b o x M o d e l & & D . s c r o l l L e f t | | E . s c r o l l L e f t ) - J ; r e t u r n { t o p : H , l e f t : G } } } e l s e { n . f n . o f f s e t = f u n c t i o n ( ) { i f ( ! t h i s [ 0 ] ) { r e t u r n { t o p : 0 , l e f t : 0 } } i f ( t h i s [ 0 ] = = = t h i s [ 0 ] . o w n e r D o c u m e n t . b o d y ) { r e t u r n   n . o f f s e t . b o d y O f f s e t ( t h i s [ 0 ] ) } n . o f f s e t . i n i t i a l i z e d | | n . o f f s e t . i n i t i a l i z e ( ) ; v a r   I = t h i s [ 0 ] , F = I . o f f s e t P a r e n t , E = I , N = I . o w n e r D o c u m e n t , L , G = N . d o c u m e n t E l e m e n t , J = N . b o d y , K = N . d e f a u l t V i e w , D = K . g e t C o m p u t e d S t y l e ( I , n u l l ) , M = I . o f f s e t T o p , H = I . o f f s e t L e f t ; w h i l e ( ( I = I . p a r e n t N o d e ) & & I ! = = J & & I ! = = G ) { L = K . g e t C o m p u t e d S t y l e ( I , n u l l ) ; M - = I . s c r o l l T o p , H - = I . s c r o l l L e f t ; i f ( I = = = F ) { M + = I . o f f s e t T o p , H + = I . o f f s e t L e f t ; i f ( n . o f f s e t . d o e s N o t A d d B o r d e r & & ! ( n . 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 & & / ^ t ( a b l e | d | h ) $ / i . t e s t ( I . t a g N a m e ) ) ) { M + = p a r s e I n t ( L . b o r d e r T o p W i d t h , 1 0 ) | | 0 , H + = p a r s e I n t ( L . b o r d e r L e f t W i d t h , 1 0 ) | | 0 } E = F , F = I . o f f s e t P a r e n t } i f ( n . 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 & & L . o v e r f l o w ! = = " v i s i b l e " ) { M + = p a r s e I n t ( L . b o r d e r T o p W i d t h , 1 0 ) | | 0 , H + = p a r s e I n t ( L . b o r d e r L e f t W i d t h , 1 0 ) | | 0 } D = L } i f ( D . p o s i t i o n = = = " r e l a t i v e " | | D . p o s i t i o n = = = " s t a t i c " ) { M + = J . o f f s e t T o p , H + = J . o f f s e t L e f t } i f ( D . p o s i t i o n = = = " f i x e d " ) { M + = M a t h . m a x ( G . s c r o l l T o p , J . s c r o l l T o p ) , H + = M a t h . m a x ( G . s c r o l l L e f t , J . s c r o l l L e f t ) } r e t u r n { t o p : M , l e f t : H } } } n . o f f s e t = { i n i t i a l i z e : f u n c t i o n ( ) { i f ( t h i s . i n i t i a l i z e d ) { r e t u r n } v a r   K = d o c u m e n t . b o d y , 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 " ) , G , F , M , H , L , D , I = K . s t y l e . m a r g i n T o p , 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 > ' ; L = { 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 " } ; f o r ( D   i n   L ) { E . s t y l e [ D ] = L [ D ] } E . i n n e r H T M L = J ; K . i n s e r t B e f o r e ( E , K . f i r s t C h i l d ) ; G = E . f i r s t C h i l d , F = G . f i r s t C h i l d , H = G . 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 = ( F . 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 ) ; G . s t y l e . o v e r f l o w = " h i d d e n " , G . 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 = ( F . o f f s e t T o p = = = - 5 ) ; K . s t y l e . m a r g i n T o p = " 1 p x " ; 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 = ( K . o f f s e t T o p = = = 0 ) ; K . s t y l e . m a r g i n T o p = I ; K . r e m o v e C h i l d ( E ) ; t h i s . i n i t i a l i z e d = t r u e } , b o d y O f f s e t : f u n c t i o n ( D ) { n . o f f s e t . i n i t i a l i z e d | | n . o f f s e t . i n i t i a l i z e ( ) ; v a r   F = D . o f f s e t T o p , E = D . o f f s e t L e f t ; i f ( n . 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 ) { F + = p a r s e I n t ( n . c u r C S S ( D , " m a r g i n T o p " , t r u e ) , 1 0 ) | | 0 , E + = p a r s e I n t ( n . c u r C S S ( D , " m a r g i n L e f t " , t r u e ) , 1 0 ) | | 0 } r e t u r n { t o p : F , l e f t : E } } } ; n . f n . e x t e n d ( { p o s i t i o n : f u n c t i o n ( ) { v a r   H = 0 , G = 0 , E ; i f ( t h i s [ 0 ] ) { v a r   F = t h i s . o f f s e t P a r e n t ( ) , I = t h i s . o f f s e t ( ) , D = / ^ b o d y | h t m l $ / i . t e s t ( F [ 0 ] . t a g N a m e ) ? { t o p : 0 , l e f t : 0 } : F . o f f s e t ( ) ; I . t o p - = j ( t h i s , " m a r g i n T o p " ) ; I . l e f t - = j ( t h i s , " m a r g i n L e f t " ) ; D . t o p + = j ( F , " b o r d e r T o p W i d t h " ) ; D . l e f t + = j ( F , " b o r d e r L e f t W i d t h " ) ; E = { t o p : I . t o p - D . t o p , l e f t : I . l e f t - D . l e f t } } r e t u r n   E } , o f f s e t P a r e n t : f u n c t i o n ( ) { v a r   D = t h i s [ 0 ] . o f f s e t P a r e n t | | d o c u m e n t . b o d y ; w h i l e ( D & & ( ! / ^ b o d y | h t m l $ / i . t e s t ( D . t a g N a m e ) & & n . c s s ( D , " p o s i t i o n " ) = = " s t a t i c " ) ) { D = D . o f f s e t P a r e n t } r e t u r n   n ( D ) } } ) ; n . e a c h ( [ " L e f t " , " T o p " ] , f u n c t i o n ( E , D ) { v a r   F = " s c r o l l " + D ; n . f n [ F ] = f u n c t i o n ( G ) { i f ( ! t h i s [ 0 ] ) { r e t u r n   n u l l } r e t u r n   G ! = = g ? t h i s . e a c h ( f u n c t i o n ( ) { t h i s = = l | | t h i s = = d o c u m e n t ? l . s c r o l l T o ( ! E ? G : n ( l ) . s c r o l l L e f t ( ) , E ? G : n ( l ) . s c r o l l T o p ( ) ) : t h i s [ F ] = G } ) : t h i s [ 0 ] = = l | | t h i s [ 0 ] = = d o c u m e n t ? s e l f [ E ? " p a g e Y O f f s e t " : " p a g e X O f f s e t " ] | | n . b o x M o d e l & & d o c u m e n t . d o c u m e n t E l e m e n t [ F ] | | d o c u m e n t . b o d y [ F ] : t h i s [ 0 ] [ F ] } } ) ; n . e a c h ( [ " H e i g h t " , " W i d t h " ] , f u n c t i o n ( G , E ) { v a r   D = G ? " L e f t " : " T o p " , F = G ? " R i g h t " : " B o t t o m " ; n . f n [ " i n n e r " + E ] = f u n c t i o n ( ) { r e t u r n   t h i s [ E . t o L o w e r C a s e ( ) ] ( ) + j ( t h i s , " p a d d i n g " + D ) + j ( t h i s , " p a d d i n g " + F ) } ; n . f n [ " o u t e r " + E ] = f u n c t i o n ( I ) { r e t u r n   t h i s [ " i n n e r " + E ] ( ) + j ( t h i s , " b o r d e r " + D + " W i d t h " ) + j ( t h i s , " b o r d e r " + F + " W i d t h " ) + ( I ? j ( t h i s , " m a r g i n " + D ) + j ( t h i s , " m a r g i n " + F ) : 0 ) } ; v a r   H = E . t o L o w e r C a s e ( ) ; n . f n [ H ] = f u n c t i o n ( I ) { r e t u r n   t h i s [ 0 ] = = l ? 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 " & & 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 " + E ] | | d o c u m e n t . b o d y [ " c l i e n t " + E ] : t h i s [ 0 ] = = d o c u m e n t ? 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 [ " c l i e n t " + E ] , d o c u m e n t . b o d y [ " s c r o l l " + E ] , 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 " + E ] , d o c u m e n t . b o d y [ " o f f s e t " + E ] , 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 " + E ] ) : I = = = g ? ( t h i s . l e n g t h ? n . c s s ( t h i s [ 0 ] , H ) : n u l l ) : t h i s . c s s ( H , t y p e o f   I = = = " s t r i n g " ? I : I + " p x " ) } } ) } ) ( ) ; 
