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