d i f f   - - g i t   a / . g i t i g n o r e   b / . g i t i g n o r e 
 
 i n d e x   8 f b a b f 6 . . b e e e a 8 2   1 0 0 6 4 4 
 
 - - -   a / . g i t i g n o r e 
 
 + + +   b / . g i t i g n o r e 
 
 @ @   - 1   + 1 , 2   @ @ 
 
   o-h4QYP ? 
 
 + . t r a e / 
 
 d i f f   - - g i t   a / E x t e n d W e b A I T o k e n C h a r t . j s   b / E x t e n d W e b A I T o k e n C h a r t . j s 
 
 i n d e x   8 5 7 5 a 7 9 . . 5 3 3 6 5 d 5   1 0 0 6 4 4 
 
 - - -   a / E x t e n d W e b A I T o k e n C h a r t . j s 
 
 + + +   b / E x t e n d W e b A I T o k e n C h a r t . j s 
 
 @ @   - 1 , 5 3   + 1 , 3 4   @ @ 
 
   / /   = = U s e r S c r i p t = = 
 
 - / /   @ n a m e                   A I   ")1zV)b6^m^]YcXmt? + / /   @ n a m e                   A I   ")1zV)b6^
 
   / /   @ n a m e s p a c e         h t t p : / / t a m p e r m o n k e y . n e t / 
 
 - / /   @ v e r s i o n             5 . 1 
 
 - / /   @ d e s c r i p t i o n     tg}ho[XUv_xOMw~p dde_bV*mhopzV}\߂[SGRɓWO0QT` ? + / /   @ v e r s i o n             7 . 0 
 
 + / /   @ d e s c r i p t i o n     =W$i8upo  A P I   ")1zVHrA]59^xOWZ^lಕVlȓ]Y?   / /   @ a u t h o r               A I   A s s i s t a n t 
 
   / /   @ m a t c h                 h t t p : / / 1 9 2 . 1 6 8 . 0 . 8 7 : 8 7 8 7 / * 
 
 - / /   @ g r a n t                 G M _ g e t V a l u e 
 
 - / /   @ g r a n t                 G M _ s e t V a l u e 
 
 - / /   @ g r a n t                 G M _ s e t C l i p b o a r d 
 
   / /   @ g r a n t                 u n s a f e W i n d o w 
 
 - / /   @ r e q u i r e             h t t p s : / / c d n . j s d e l i v r . n e t / n p m / c h a r t . j s 
 
   / /   = = / U s e r S c r i p t = = 
 
   
 
   ( f u n c t i o n   ( )   { 
 
           ' u s e   s t r i c t ' ; 
 
   
 
 -         c o n s t   P O L L I N G _ I N T E R V A L   =   3 0 0 0 0 0 ; 
 
 -         c o n s t   R E Q U E S T _ T I M E O U T   =   3 0 0 0 0 ; 
 
 -         c o n s t   P A N E L _ M I N _ W I D T H   =   3 4 0 ; 
 
 -         c o n s t   P A N E L _ M I N _ H E I G H T   =   2 4 0 ; 
 
 -         c o n s t   S T O R A G E _ K E Y   =   ' a i U s a g e H i s t o r y V 1 ' ; 
 
 -         c o n s t   P A N E L _ L A Y O U T _ S T O R A G E _ K E Y   =   ' a i U s a g e P a n e l L a y o u t V 1 ' ; 
 
 -         c o n s t   E X P O R T _ P R E F I X   =   ' A I _ U S A G E _ H I S T O R Y _ V 1 : ' ; 
 
 -         c o n s t   p a g e W i n d o w   =   t y p e o f   u n s a f e W i n d o w   = = =   ' u n d e f i n e d '   | |   t y p e o f   u n s a f e W i n d o w . f e t c h   ! = =   ' f u n c t i o n '   ?   w i n d o w   :   u n s a f e W i n d o w ; 
 
 +         / /   9 9   ]u  9 9 
 
 +         c o n s t   P O L L I N G _ I N T E R V A L   =   3 0 0 0 0 0 ;               / /   ^gdk  5   RUc
 
 +         c o n s t   R E Q U E S T _ T I M E O U T   =   3 0 0 0 0 ;                   / /   Rgt0wtnTi
 
 +         c o n s t   B A C K E N D _ U R L   =   ' h t t p : / / 1 2 7 . 0 . 0 . 1 : 8 7 8 8 ' ; 
 
 +         c o n s t   C H A N N E L _ I D   =   1 ;                                     / /   i?j{ZrN,l4UbY?   
 
 -         / /   ONq  E x t e n d W e b U I D a r k . j s 3lt-lpn|m,lS^p Y]X}\߂WfZig:j+^  c a n v a s ? -         c o n s t   u s e s I n v e r s i o n D a r k M o d e   =   ( )   = >   B o o l e a n ( d o c u m e n t . g e t E l e m e n t B y I d ( ' t m - d a r k - f i l t e r ' ) ) ; 
 
 +         c o n s t   p a g e W i n d o w   =   t y p e o f   u n s a f e W i n d o w   = = =   ' u n d e f i n e d '   | |   t y p e o f   u n s a f e W i n d o w . f e t c h   ! = =   ' f u n c t i o n ' 
 
 +                 ?   w i n d o w   :   u n s a f e W i n d o w ; 
 
   
 
 +         / /   9 9   5 ? 9 9 
 
           l e t   h i s t o r y B y A s s i g n m e n t   =   { } ; 
 
           l e t   a s s i g n m e n t N a m e s   =   { } ; 
 
 -         l e t   c u r r e n t Q u o t a B y A s s i g n m e n t   =   { } ; 
 
 -         l e t   s e l e c t e d A s s i g n m e n t I d   =   ' ' ; 
 
 -         l e t   s e l e c t e d R a n g e   =   ' t o d a y ' ; 
 
 -         l e t   m y C h a r t   =   n u l l ; 
 
           l e t   t i m e r I d   =   n u l l ; 
 
           l e t   i s P r o c e s s i n g   =   f a l s e ; 
 
 -         l e t   i s C l i p b o a r d B u s y   =   f a l s e ; 
 
 -         l e t   r e f r e s h A n i m a t i o n I d   =   n u l l ; 
 
 -         l e t   r e f r e s h A n i m a t i o n S t a r t e d A t   =   0 ; 
 
 -         c o n s t   R E F R E S H _ A N I M A T I O N _ D U R A T I O N   =   1 2 0 0 ; 
 
 + 
 
           c o n s t   p e n d i n g R e f r e s h e s   =   n e w   M a p ( ) ; 
 
   
 
 -         f u n c t i o n   s e t S t a t u s ( m e s s a g e ,   c o l o r   =   ' # 6 c 7 5 7 d ' )   { 
 
 -                 c o n s t   s t a t u s   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' m o n i t o r - s t a t u s ' ) ; 
 
 -                 i f   ( s t a t u s )   { 
 
 -                         s t a t u s . t e x t C o n t e n t   =   m e s s a g e ; 
 
 -                         s t a t u s . s t y l e . c o l o r   =   c o l o r ; 
 
 -                 } 
 
 -         } 
 
 +         / /   9 9   [0SQf  9 9 
 
   
 
           f u n c t i o n   n u m b e r O r N u l l ( v a l u e )   { 
 
                   c o n s t   p a r s e d   =   N u m b e r ( v a l u e ) ; 
 
 @ @   - 6 1 , 1 0   + 4 2 , 6   @ @ 
 
                   r e t u r n   [ N u m b e r ( t i m e s t a m p ) ,   N u m b e r ( u s e d ) ] ; 
 
           } 
 
   
 
 -         f u n c t i o n   t o C h a r t P o i n t ( p o i n t )   { 
 
 -                 r e t u r n   {   t i m e s t a m p :   p o i n t [ 0 ] ,   u s e d :   p o i n t [ 1 ]   } ; 
 
 -         } 
 
 - 
 
           f u n c t i o n   a g g r e g a t e P o i n t s ( p o i n t s ,   i n t e r v a l M s )   { 
 
                   c o n s t   b u c k e t s   =   n e w   M a p ( ) ; 
 
                   p o i n t s . f o r E a c h ( p o i n t   = >   { 
 
 @ @   - 7 5 , 4 7 2   + 5 2 , 9 0   @ @ 
 
                   r e t u r n   A r r a y . f r o m ( b u c k e t s . v a l u e s ( ) ) . s o r t ( ( a ,   b )   = >   a [ 0 ]   -   b [ 0 ] ) ; 
 
           } 
 
   
 
 +         / * *   ? 2   oA%W#\0}igbanO)1zV  +   ǓX[h
YI0q,l`\iY 24Up;jhĕ,a? * / 
 
           f u n c t i o n   c o m p a c t P o i n t s ( p o i n t s )   { 
 
                   c o n s t   c u t o f f   =   D a t e . n o w ( )   -   2   *   8 6 4 0 0 0 0 0 ; 
 
 -                 c o n s t   u n i q u e   =   n e w   M a p ( p o i n t s . m a p ( n o r m a l i z e P o i n t ) . f i l t e r ( B o o l e a n ) . m a p ( p o i n t   = >   [ p o i n t [ 0 ] ,   p o i n t ] ) ) ; 
 
 +                 c o n s t   u n i q u e   =   n e w   M a p ( 
 
 +                         p o i n t s . m a p ( n o r m a l i z e P o i n t ) . f i l t e r ( B o o l e a n ) . m a p ( p   = >   [ p [ 0 ] ,   p ] ) 
 
 +                 ) ; 
 
                   c o n s t   a l l   =   A r r a y . f r o m ( u n i q u e . v a l u e s ( ) ) . s o r t ( ( a ,   b )   = >   a [ 0 ]   -   b [ 0 ] ) ; 
 
                   r e t u r n   { 
 
 -                         r e c e n t :   a l l . f i l t e r ( p o i n t   = >   p o i n t [ 0 ]   > =   c u t o f f ) , 
 
 -                         a r c h i v e d :   a g g r e g a t e P o i n t s ( a l l . f i l t e r ( p o i n t   = >   p o i n t [ 0 ]   <   c u t o f f ) ,   8 6 4 0 0 0 0 0 ) 
 
 +                         r e c e n t :   a l l . f i l t e r ( p   = >   p [ 0 ]   > =   c u t o f f ) , 
 
 +                         a r c h i v e d :   a g g r e g a t e P o i n t s ( a l l . f i l t e r ( p   = >   p [ 0 ]   <   c u t o f f ) ,   8 6 4 0 0 0 0 0 ) 
 
                   } ; 
 
           } 
 
   
 
 -         f u n c t i o n   e x t r a c t S t o r e d P o i n t s ( s t o r e d )   { 
 
 -                 i f   ( A r r a y . i s A r r a y ( s t o r e d ) )   r e t u r n   s t o r e d ; 
 
 -                 i f   ( ! s t o r e d   | |   t y p e o f   s t o r e d   ! = =   ' o b j e c t ' )   r e t u r n   [ ] ; 
 
 -                 i f   ( A r r a y . i s A r r a y ( s t o r e d . r e c e n t )   | |   A r r a y . i s A r r a y ( s t o r e d . a r c h i v e d ) )   r e t u r n   [ . . . ( s t o r e d . r e c e n t   | |   [ ] ) ,   . . . ( s t o r e d . a r c h i v e d   | |   [ ] ) ] ; 
 
 -                 r e t u r n   O b j e c t . v a l u e s ( s t o r e d ) . f l a t M a p ( p o i n t s   = >   A r r a y . i s A r r a y ( p o i n t s )   ?   p o i n t s   :   [ ] ) ; 
 
 -         } 
 
 - 
 
 -         f u n c t i o n   n o r m a l i z e H i s t o r y ( r a w )   { 
 
 -                 c o n s t   n o r m a l i z e d   =   { } ; 
 
 -                 i f   ( ! r a w   | |   t y p e o f   r a w   ! = =   ' o b j e c t ' )   r e t u r n   n o r m a l i z e d ; 
 
 -                 O b j e c t . e n t r i e s ( r a w ) . f o r E a c h ( ( [ a s s i g n m e n t I d ,   s t o r e d ] )   = >   { 
 
 -                         c o n s t   c o m p a c t   =   c o m p a c t P o i n t s ( e x t r a c t S t o r e d P o i n t s ( s t o r e d ) ) ; 
 
 -                         i f   ( c o m p a c t . r e c e n t . l e n g t h   | |   c o m p a c t . a r c h i v e d . l e n g t h )   n o r m a l i z e d [ a s s i g n m e n t I d ]   =   c o m p a c t ; 
 
 -                 } ) ; 
 
 -                 r e t u r n   n o r m a l i z e d ; 
 
 -         } 
 
 - 
 
 -         f u n c t i o n   g e t A s s i g n m e n t P o i n t s ( a s s i g n m e n t I d )   { 
 
 -                 c o n s t   h i s t o r y   =   h i s t o r y B y A s s i g n m e n t [ a s s i g n m e n t I d ]   | |   {   r e c e n t :   [ ] ,   a r c h i v e d :   [ ]   } ; 
 
 -                 r e t u r n   [ . . . h i s t o r y . a r c h i v e d ,   . . . h i s t o r y . r e c e n t ] . s o r t ( ( a ,   b )   = >   a [ 0 ]   -   b [ 0 ] ) . m a p ( t o C h a r t P o i n t ) ; 
 
 -         } 
 
 - 
 
 -         a s y n c   f u n c t i o n   l o a d H i s t o r y ( )   { 
 
 -                 h i s t o r y B y A s s i g n m e n t   =   n o r m a l i z e H i s t o r y ( a w a i t   G M _ g e t V a l u e ( S T O R A G E _ K E Y ,   { } ) ) ; 
 
 -         } 
 
 - 
 
 -         a s y n c   f u n c t i o n   s a v e H i s t o r y ( )   { 
 
 -                 h i s t o r y B y A s s i g n m e n t   =   n o r m a l i z e H i s t o r y ( h i s t o r y B y A s s i g n m e n t ) ; 
 
 -                 a w a i t   G M _ s e t V a l u e ( S T O R A G E _ K E Y ,   h i s t o r y B y A s s i g n m e n t ) ; 
 
 -         } 
 
 - 
 
 -         f u n c t i o n   c o n s t r a i n P a n e l ( c o n t a i n e r ,   l a y o u t   =   { } )   { 
 
 -                 c o n s t   v i e w p o r t W i d t h   =   M a t h . m a x ( 1 ,   w i n d o w . i n n e r W i d t h ) ; 
 
 -                 c o n s t   v i e w p o r t H e i g h t   =   M a t h . m a x ( 1 ,   w i n d o w . i n n e r H e i g h t ) ; 
 
 -                 c o n s t   m i n W i d t h   =   M a t h . m i n ( P A N E L _ M I N _ W I D T H ,   v i e w p o r t W i d t h ) ; 
 
 -                 c o n s t   m i n H e i g h t   =   M a t h . m i n ( P A N E L _ M I N _ H E I G H T ,   v i e w p o r t H e i g h t ) ; 
 
 -                 c o n s t   w i d t h   =   M a t h . m i n ( M a t h . m a x ( m i n W i d t h ,   N u m b e r ( l a y o u t . w i d t h )   | |   c o n t a i n e r . g e t B o u n d i n g C l i e n t R e c t ( ) . w i d t h ) ,   v i e w p o r t W i d t h ) ; 
 
 -                 c o n s t   h e i g h t   =   M a t h . m i n ( M a t h . m a x ( m i n H e i g h t ,   N u m b e r ( l a y o u t . h e i g h t )   | |   c o n t a i n e r . g e t B o u n d i n g C l i e n t R e c t ( ) . h e i g h t ) ,   v i e w p o r t H e i g h t ) ; 
 
 -                 c o n s t   f a l l b a c k L e f t   =   M a t h . m a x ( 0 ,   v i e w p o r t W i d t h   -   w i d t h   -   2 0 ) ; 
 
 -                 c o n s t   l e f t   =   M a t h . m i n ( M a t h . m a x ( 0 ,   N u m b e r . i s F i n i t e ( N u m b e r ( l a y o u t . l e f t ) )   ?   N u m b e r ( l a y o u t . l e f t )   :   f a l l b a c k L e f t ) ,   v i e w p o r t W i d t h   -   w i d t h ) ; 
 
 -                 c o n s t   t o p   =   M a t h . m i n ( M a t h . m a x ( 0 ,   N u m b e r . i s F i n i t e ( N u m b e r ( l a y o u t . t o p ) )   ?   N u m b e r ( l a y o u t . t o p )   :   2 0 ) ,   v i e w p o r t H e i g h t   -   h e i g h t ) ; 
 
 -                 O b j e c t . a s s i g n ( c o n t a i n e r . s t y l e ,   {   l e f t :   ` $ { l e f t } p x ` ,   t o p :   ` $ { t o p } p x ` ,   w i d t h :   ` $ { w i d t h } p x ` ,   h e i g h t :   ` $ { h e i g h t } p x ` ,   r i g h t :   ' a u t o ' ,   b o t t o m :   ' a u t o '   } ) ; 
 
 -         } 
 
 - 
 
 -         a s y n c   f u n c t i o n   r e s t o r e P a n e l L a y o u t ( c o n t a i n e r )   { 
 
 -                 c o n s t   l a y o u t   =   a w a i t   G M _ g e t V a l u e ( P A N E L _ L A Y O U T _ S T O R A G E _ K E Y ,   { } ) ; 
 
 -                 c o n s t r a i n P a n e l ( c o n t a i n e r ,   l a y o u t ) ; 
 
 -                 m y C h a r t ? . r e s i z e ( ) ; 
 
 -                 m y C h a r t ? . u p d a t e ( ' n o n e ' ) ; 
 
 -         } 
 
 - 
 
 -         f u n c t i o n   s a v e P a n e l L a y o u t ( c o n t a i n e r )   { 
 
 -                 c o n s t   r e c t   =   c o n t a i n e r . g e t B o u n d i n g C l i e n t R e c t ( ) ; 
 
 -                 G M _ s e t V a l u e ( P A N E L _ L A Y O U T _ S T O R A G E _ K E Y ,   {   l e f t :   r e c t . l e f t ,   t o p :   r e c t . t o p ,   w i d t h :   r e c t . w i d t h ,   h e i g h t :   r e c t . h e i g h t   } ) ; 
 
 -         } 
 
 +         / /   9 9   HrA]͓Nq!}^g2]  9 9 
 
   
 
 -         f u n c t i o n   g e t R e f r e s h B u t t o n s ( )   { 
 
 -                 r e t u r n   A r r a y . f r o m ( d o c u m e n t . q u e r y S e l e c t o r A l l ( ' b u t t o n [ d a t a - a c t i o n = " r e f r e s h " ] [ d a t a - a s s i g n m e n t - i d ] ' ) ) ; 
 
 +         f u n c t i o n   r a w T o P a y l o a d ( r a w )   { 
 
 +                 c o n s t   a s s i g n m e n t s   =   O b j e c t . e n t r i e s ( r a w   | |   { } ) . m a p ( ( [ i d ,   h i s t o r y ] )   = >   [ 
 
 +                         i d , 
 
 +                         a s s i g n m e n t N a m e s [ i d ]   | |   ' ' , 
 
 +                         [ . . . ( h i s t o r y ? . a r c h i v e d   | |   [ ] ) ,   . . . ( h i s t o r y ? . r e c e n t   | |   [ ] ) ] 
 
 +                 ] ) ; 
 
 +                 r e t u r n   {   v :   3 ,   a :   a s s i g n m e n t s   } ; 
 
           } 
 
   
 
 -         f u n c t i o n   r e f r e s h A s s i g n m e n t s ( )   { 
 
 -                 g e t R e f r e s h B u t t o n s ( ) . f o r E a c h ( b u t t o n   = >   { 
 
 -                         c o n s t   i d   =   b u t t o n . d a t a s e t . a s s i g n m e n t I d ; 
 
 -                         i f   ( ! i d )   r e t u r n ; 
 
 -                         c o n s t   c a r d   =   b u t t o n . c l o s e s t ( ' a r t i c l e ,   s e c t i o n ,   d i v ' ) ; 
 
 -                         c o n s t   t e x t   =   c a r d   ?   c a r d . i n n e r T e x t . s p l i t ( ' \ n ' ) [ 0 ] . t r i m ( )   :   ' ' ; 
 
 -                         a s s i g n m e n t N a m e s [ i d ]   =   t e x t   | |   a s s i g n m e n t N a m e s [ i d ]   | |   i d ; 
 
 -                 } ) ; 
 
 -                 O b j e c t . k e y s ( h i s t o r y B y A s s i g n m e n t ) . f o r E a c h ( i d   = >   {   a s s i g n m e n t N a m e s [ i d ]   =   a s s i g n m e n t N a m e s [ i d ]   | |   i d ;   } ) ; 
 
 -                 c o n s t   i d s   =   O b j e c t . k e y s ( a s s i g n m e n t N a m e s ) ; 
 
 -                 i f   ( ! s e l e c t e d A s s i g n m e n t I d   | |   ! i d s . i n c l u d e s ( s e l e c t e d A s s i g n m e n t I d ) )   s e l e c t e d A s s i g n m e n t I d   =   i d s [ 0 ]   | |   ' ' ; 
 
 - 
 
 -                 c o n s t   s e l e c t   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' a s s i g n m e n t - s e l e c t o r ' ) ; 
 
 -                 i f   ( ! s e l e c t )   r e t u r n ; 
 
 -                 s e l e c t . r e p l a c e C h i l d r e n ( ) ; 
 
 -                 i d s . f o r E a c h ( i d   = >   { 
 
 -                         c o n s t   o p t i o n   =   d o c u m e n t . c r e a t e E l e m e n t ( ' o p t i o n ' ) ; 
 
 -                         o p t i o n . v a l u e   =   i d ; 
 
 -                         o p t i o n . t e x t C o n t e n t   =   a s s i g n m e n t N a m e s [ i d ]   | |   i d ; 
 
 -                         s e l e c t . a p p e n d C h i l d ( o p t i o n ) ; 
 
 -                 } ) ; 
 
 -                 s e l e c t . v a l u e   =   s e l e c t e d A s s i g n m e n t I d ; 
 
 -         } 
 
 +         / /   9 9   Z^lຓ)1 ? 9 9 
 
   
 
 -         f u n c t i o n   s e t P a n e l M i n i m i z e d ( c o n t a i n e r ,   m i n i m i z e d )   { 
 
 -                 c o n s t   r e s t o r e B u t t o n   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' u s a g e - m o n i t o r - r e s t o r e - b u t t o n ' ) ; 
 
 -                 c o n t a i n e r . d a t a s e t . m i n i m i z e d   =   m i n i m i z e d   ?   ' t r u e '   :   ' ' ; 
 
 -                 c o n t a i n e r . s t y l e . d i s p l a y   =   m i n i m i z e d   ?   ' n o n e '   :   ' f l e x ' ; 
 
 -                 i f   ( r e s t o r e B u t t o n )   r e s t o r e B u t t o n . s t y l e . d i s p l a y   =   m i n i m i z e d   ?   ' b l o c k '   :   ' n o n e ' ; 
 
 -                 i f   ( ! m i n i m i z e d )   { 
 
 -                         m y C h a r t ? . r e s i z e ( ) ; 
 
 -                         m y C h a r t ? . u p d a t e ( ' n o n e ' ) ; 
 
 +         a s y n c   f u n c t i o n   s e n d P o i n t T o B a c k e n d ( a s s i g n m e n t I d ,   p o i n t )   { 
 
 +                 t r y   { 
 
 +                         a w a i t   f e t c h ( ` $ { B A C K E N D _ U R L } / a p i / u s a g e - d a t a ` ,   { 
 
 +                                 m e t h o d :   ' P O S T ' , 
 
 +                                 h e a d e r s :   {   ' C o n t e n t - T y p e ' :   ' a p p l i c a t i o n / j s o n '   } , 
 
 +                                 b o d y :   J S O N . s t r i n g i f y ( { 
 
 +                                         a s s i g n m e n t I d , 
 
 +                                         a s s i g n m e n t N a m e :   a s s i g n m e n t N a m e s [ a s s i g n m e n t I d ]   | |   a s s i g n m e n t I d , 
 
 +                                         c h a n n e l _ i d :   C H A N N E L _ I D , 
 
 +                                         t i m e s t a m p :   p o i n t . t i m e s t a m p , 
 
 +                                         u s e d :   p o i n t . u s e d , 
 
 +                                         r e m a i n i n g :   p o i n t . r e m a i n i n g 
 
 +                                 } ) 
 
 +                         } ) ; 
 
 +                 }   c a t c h   ( e r r o r )   { 
 
 +                         c o n s o l e . w a r n ( ' [ ")1zV)b6^]   )1 xOWZ^lo' ,   e r r o r ) ; 
 
                   } 
 
           } 
 
   
 
 -         f u n c t i o n   c r e a t e U I ( )   { 
 
 -                 c o n s t   i n v e r t e d   =   u s e s I n v e r s i o n D a r k M o d e ( ) ; 
 
 -                 / /   Y]XY3 !}m6[}ȕ!2oȓ|m3lf  h t m l   JZ0fY]Fm}\mY0|e"%14dek4ZpTXXqPJ:{ ? -                 c o n s t   p a l e t t e   =   i n v e r t e d 
 
 -                         ?   {   s u r f a c e :   ' # e f e 7 d 8 ' ,   t e x t :   ' # 0 7 1 0 1 2 ' ,   b o r d e r :   ' # c b d 5 e 1 ' ,   c o n t r o l :   ' # e 2 e 8 f 0 ' ,   m u t e d :   ' # 4 7 5 5 6 9 ' ,   s h a d o w :   ' 0   1 2 p x   3 2 p x   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , . 2 8 ) '   } 
 
 -                         :   {   s u r f a c e :   ' # 1 0 1 8 2 7 ' ,   t e x t :   ' # f 8 f a f c ' ,   b o r d e r :   ' # 3 3 4 1 5 5 ' ,   c o n t r o l :   ' # 1 e 2 9 3 b ' ,   m u t e d :   ' # 9 4 a 3 b 8 ' ,   s h a d o w :   ' 0   1 2 p x   3 2 p x   r g b a ( 1 5 , 2 3 , 4 2 , . 4 8 ) '   } ; 
 
 -                 c o n s t   c o n t a i n e r   =   d o c u m e n t . c r e a t e E l e m e n t ( ' d i v ' ) ; 
 
 -                 c o n t a i n e r . i d   =   ' u s a g e - m o n i t o r - c o n t a i n e r ' ; 
 
 -                 O b j e c t . a s s i g n ( c o n t a i n e r . s t y l e ,   { 
 
 -                         p o s i t i o n :   ' f i x e d ' ,   t o p :   ' 2 0 p x ' ,   r i g h t :   ' 2 0 p x ' ,   w i d t h :   ' 4 6 0 p x ' ,   h e i g h t :   ' 3 3 0 p x ' , 
 
 -                         b a c k g r o u n d C o l o r :   p a l e t t e . s u r f a c e ,   c o l o r :   p a l e t t e . t e x t ,   p a d d i n g :   ' 1 5 p x ' ,   b o r d e r R a d i u s :   ' 1 0 p x ' , 
 
 -                         b o x S h a d o w :   p a l e t t e . s h a d o w ,   z I n d e x :   ' 9 9 9 9 ' , 
 
 -                         f o n t F a m i l y :   ' - a p p l e - s y s t e m ,   B l i n k M a c S y s t e m F o n t ,   " S e g o e   U I " ,   R o b o t o ,   H e l v e t i c a ,   A r i a l ,   s a n s - s e r i f ' , 
 
 -                         f o n t S i z e :   ' 1 4 p x ' ,   b o r d e r :   ` 1 p x   s o l i d   $ { p a l e t t e . b o r d e r } ` ,   b o x S i z i n g :   ' b o r d e r - b o x ' ,   d i s p l a y :   ' f l e x ' ,   f l e x D i r e c t i o n :   ' c o l u m n ' ,   o v e r f l o w :   ' h i d d e n ' 
 
 -                 } ) ; 
 
 -                 c o n s t   h e a d e r   =   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 e a d e r . s t y l e . c s s T e x t   =   ` d i s p l a y : f l e x ; a l i g n - i t e m s : c e n t e r ; g a p : 8 p x ; m a r g i n - b o t t o m : 8 p x ; f l e x - s h r i n k : 0 ; c o l o r : $ { p a l e t t e . t e x t } ` ; 
 
 -                 h e a d e r . i n n e r H T M L   =   ` < s t r o n g   s t y l e = " l e t t e r - s p a c i n g : . 0 2 e m ; w h i t e - s p a c e : n o w r a p " > ")1zV)b6^< / s t r o n g > < s e l e c t   i d = " a s s i g n m e n t - s e l e c t o r "   t i t l e = " YZUtyOaq**[]Y,k$i8upoQ_A]"   s t y l e = " m i n - w i d t h : 0 ; f l e x : 1 ; b a c k g r o u n d : $ { p a l e t t e . c o n t r o l } ; c o l o r : $ { p a l e t t e . t e x t } ; b o r d e r : 1 p x   s o l i d   $ { p a l e t t e . b o r d e r } ; b o r d e r - r a d i u s : 5 p x ; p a d d i n g : 4 p x   6 p x " > < / s e l e c t > ` ; 
 
 -                 c o n s t   c r e a t e H e a d e r B u t t o n   =   ( i d ,   l a b e l ,   t i t l e ,   h a n d l e r ,   a c c e n t   =   f a l s e )   = >   { 
 
 -                         c o n s t   b u t t o n   =   d o c u m e n t . c r e a t e E l e m e n t ( ' b u t t o n ' ) ; 
 
 -                         b u t t o n . i d   =   i d ; 
 
 -                         b u t t o n . t y p e   =   ' b u t t o n ' ; 
 
 -                         b u t t o n . t e x t C o n t e n t   =   l a b e l ; 
 
 -                         b u t t o n . t i t l e   =   t i t l e ; 
 
 -                         b u t t o n . s t y l e . c s s T e x t   =   ` b a c k g r o u n d : $ { a c c e n t   ?   ' # 0 e a 5 e 9 '   :   p a l e t t e . c o n t r o l } ; c o l o r : $ { p a l e t t e . t e x t } ; b o r d e r : 1 p x   s o l i d   $ { a c c e n t   ?   ' # 7 d d 3 f c '   :   p a l e t t e . b o r d e r } ; b o r d e r - r a d i u s : 5 p x ; p a d d i n g : 4 p x   8 p x ; f o n t - s i z e : 1 2 p x ; f o n t - w e i g h t : 7 0 0 ; c u r s o r : p o i n t e r ; w h i t e - s p a c e : n o w r a p ` ; 
 
 -                         b u t t o n . a d d E v e n t L i s t e n e r ( ' c l i c k ' ,   h a n d l e r ) ; 
 
 -                         h e a d e r . a p p e n d C h i l d ( b u t t o n ) ; 
 
 -                         r e t u r n   b u t t o n ; 
 
 -                 } ; 
 
 -                 c o n s t   m a n u a l R e f r e s h B u t t o n   =   c r e a t e H e a d e r B u t t o n ( ' m a n u a l - r e f r e s h - b u t t o n ' ,   ' Rg' ,   ' ~*[F]RgO)14QQ_A]")1zV' ,   ( )   = >   t r i g g e r P a g e R e f r e s h ( ) ,   t r u e ) ; 
 
 -                 c r e a t e H e a d e r B u t t o n ( ' e x p o r t - h i s t o r y - b u t t o n ' ,   ' 5pNqV' ,   ' OpUS%1]Yc2RWSGRɓ? ,   ( )   = >   r u n C l i p b o a r d A c t i o n ( ' e x p o r t ' ) ) ; 
 
 -                 c r e a t e H e a d e r B u t t o n ( ' i m p o r t - h i s t o r y - b u t t o n ' ,   ' 5pNqS' ,   ' `m^XtX[otG_XUv_`? ,   ( )   = >   r u n C l i p b o a r d A c t i o n ( ' i m p o r t ' ) ) ; 
 
 -                 c o n s t   m i n i m i z e B u t t o n   =   d o c u m e n t . c r e a t e E l e m e n t ( ' b u t t o n ' ) ; 
 
 -                 m i n i m i z e B u t t o n . t y p e   =   ' b u t t o n ' ; 
 
 -                 m i n i m i z e B u t t o n . t e x t C o n t e n t   =   ' -? ; 
 
 -                 m i n i m i z e B u t t o n . t i t l e   =   ' ȓ Op_[ePc0' ; 
 
 -                 m i n i m i z e B u t t o n . s e t A t t r i b u t e ( ' a r i a - l a b e l ' ,   ' ȓ Op_[ePc0' ) ; 
 
 -                 m i n i m i z e B u t t o n . s t y l e . c s s T e x t   =   ` b a c k g r o u n d : $ { p a l e t t e . c o n t r o l } ; c o l o r : $ { p a l e t t e . t e x t } ; b o r d e r : 1 p x   s o l i d   $ { p a l e t t e . b o r d e r } ; b o r d e r - r a d i u s : 5 p x ; p a d d i n g : 2 p x   8 p x ; f o n t - s i z e : 1 6 p x ; l i n e - h e i g h t : 1 8 p x ; c u r s o r : p o i n t e r ; f o n t - w e i g h t : 7 0 0 ` ; 
 
 -                 m i n i m i z e B u t t o n . a d d E v e n t L i s t e n e r ( ' c l i c k ' ,   ( )   = >   s e t P a n e l M i n i m i z e d ( c o n t a i n e r ,   t r u e ) ) ; 
 
 -                 h e a d e r . a p p e n d C h i l d ( m i n i m i z e B u t t o n ) ; 
 
 -                 c o n t a i n e r . a p p e n d C h i l d ( h e a d e r ) ; 
 
 - 
 
 -                 c o n s t   r a n g e B a r   =   d o c u m e n t . c r e a t e E l e m e n t ( ' d i v ' ) ; 
 
 -                 r a n g e B a r . i d   =   ' c h a r t - r a n g e - s e l e c t o r ' ; 
 
 -                 r a n g e B a r . s t y l e . c s s T e x t   =   ' d i s p l a y : f l e x ; g a p : 6 p x ; m a r g i n - b o t t o m : 7 p x ; f l e x - s h r i n k : 0 ' ; 
 
 -                 [ [ ' t o d a y ' ,   ' `mBZI0' ] ,   [ ' 7 d ' ,   ' ȓ ig? 7   o? ] ,   [ ' 3 0 d ' ,   ' ȓ ig? 3 0   o? ] ] . f o r E a c h ( ( [ v a l u e ,   l a b e l ] )   = >   { 
 
 -                         c o n s t   b u t t o n   =   d o c u m e n t . c r e a t e E l e m e n t ( ' b u t t o n ' ) ; 
 
 -                         b u t t o n . t y p e   =   ' b u t t o n ' ; 
 
 -                         b u t t o n . d a t a s e t . r a n g e   =   v a l u e ; 
 
 -                         b u t t o n . t e x t C o n t e n t   =   l a b e l ; 
 
 -                         b u t t o n . s t y l e . c s s T e x t   =   ` b a c k g r o u n d : $ { p a l e t t e . c o n t r o l } ; c o l o r : $ { p a l e t t e . t e x t } ; b o r d e r : 1 p x   s o l i d   $ { p a l e t t e . b o r d e r } ; b o r d e r - r a d i u s : 5 p x ; p a d d i n g : 3 p x   7 p x ; f o n t - s i z e : 1 2 p x ; c u r s o r : p o i n t e r ` ; 
 
 -                         b u t t o n . a d d E v e n t L i s t e n e r ( ' c l i c k ' ,   ( )   = >   { 
 
 -                                 s e l e c t e d R a n g e   =   v a l u e ; 
 
 -                                 u p d a t e R a n g e B u t t o n s ( ) ; 
 
 -                                 u p d a t e C h a r t ( ) ; 
 
 +         a s y n c   f u n c t i o n   s a v e H i s t o r y T o B a c k e n d ( )   { 
 
 +                 c o n s t   p a y l o a d   =   r a w T o P a y l o a d ( h i s t o r y B y A s s i g n m e n t ) ; 
 
 +                 i f   ( ! p a y l o a d . a . l e n g t h )   r e t u r n ; 
 
 +                 t r y   { 
 
 +                         a w a i t   f e t c h ( ` $ { B A C K E N D _ U R L } / a p i / h i s t o r y / s y n c ` ,   { 
 
 +                                 m e t h o d :   ' P O S T ' , 
 
 +                                 h e a d e r s :   {   ' C o n t e n t - T y p e ' :   ' a p p l i c a t i o n / j s o n '   } , 
 
 +                                 b o d y :   J S O N . s t r i n g i f y ( {   . . . p a y l o a d ,   c h a n n e l _ i d :   C H A N N E L _ I D   } ) 
 
                           } ) ; 
 
 -                         r a n g e B a r . a p p e n d C h i l d ( b u t t o n ) ; 
 
 -                 } ) ; 
 
 -                 c o n t a i n e r . a p p e n d C h i l d ( r a n g e B a r ) ; 
 
 - 
 
 -                 c o n s t   s t a t u 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 t a t u s . i d   =   ' m o n i t o r - s t a t u s ' ; 
 
 -                 s t a t u s . t e x t C o n t e n t   =   ' RoPV? . . ' ; 
 
 -                 s t a t u s . s t y l e . c s s T e x t   =   ` f o n t - s i z e : 1 2 p x ; c o l o r : $ { p a l e t t e . m u t e d } ; m a r g i n - b o t t o m : 4 p x ; f l e x - s h r i n k : 0 ` ; 
 
 -                 c o n t a i n e r . a p p e n d C h i l d ( s t a t u s ) ; 
 
 -                 c o n s t   h i n 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 ' ) ; 
 
 -                 h i n t . t e x t C o n t e n t   =   ' cmde%nQa o2RS%1]Y1}cmde%nO0 o|SGRɓW`]Y? ; 
 
 -                 h i n t . s t y l e . c s s T e x t   =   ` f o n t - s i z e : 1 1 p x ; c o l o r : $ { p a l e t t e . m u t e d } ; m a r g i n - b o t t o m : 8 p x ; f l e x - s h r i n k : 0 ` ; 
 
 -                 c o n t a i n e r . a p p e n d C h i l d ( h i n t ) ; 
 
 - 
 
 -                 c o n s t   c h a r t B o x   =   d o c u m e n t . c r e a t e E l e m e n t ( ' d i v ' ) ; 
 
 -                 c h a r t B o x . s t y l e . c s s T e x t   =   ' p o s i t i o n : r e l a t i v e ; f l e x : 1 ; m i n - h e i g h t : 0 ' ; 
 
 -                 c o n s t   c a n v a s   =   d o c u m e n t . c r e a t e E l e m e n t ( ' c a n v a s ' ) ; 
 
 -                 c a n v a s . i d   =   ' u s a g e C h a r t ' ; 
 
 -                 c h a r t B o x . a p p e n d C h i l d ( c a n v a s ) ; 
 
 -                 c o n t a i n e r . a p p e n d C h i l d ( c h a r t B o x ) ; 
 
 -                 c o n s t   r e s i z e r   =   d o c u m e n t . c r e a t e E l e m e n t ( ' d i v ' ) ; 
 
 -                 O b j e c t . a s s i g n ( r e s i z e r . s t y l e ,   {   w i d t h :   ' 1 5 p x ' ,   h e i g h t :   ' 1 5 p x ' ,   p o s i t i o n :   ' a b s o l u t e ' ,   r i g h t :   ' 1 p x ' ,   b o t t o m :   ' 1 p x ' ,   c u r s o r :   ' s e - r e s i z e ' ,   b a c k g r o u n d :   ' l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   t r a n s p a r e n t   5 0 % ,   # 3 8 b d f 8   5 0 % ) '   } ) ; 
 
 -                 c o n t a i n e r . a p p e n d C h i l d ( r e s i z e r ) ; 
 
 -                 d o c u m e n t . b o d y . a p p e n d C h i l d ( c o n t a i n e r ) ; 
 
 -                 c o n s t   r e s t o r e B u t t o n   =   d o c u m e n t . c r e a t e E l e m e n t ( ' b u t t o n ' ) ; 
 
 -                 r e s t o r e B u t t o n . i d   =   ' u s a g e - m o n i t o r - r e s t o r e - b u t t o n ' ; 
 
 -                 r e s t o r e B u t t o n . t y p e   =   ' b u t t o n ' ; 
 
 -                 r e s t o r e B u t t o n . t e x t C o n t e n t   =   ' ")1zV)b6^' ; 
 
 -                 r e s t o r e B u t t o n . t i t l e   =   '  22")1zV)b6^ePc0' ; 
 
 -                 r e s t o r e B u t t o n . s t y l e . c s s T e x t   =   ` p o s i t i o n : f i x e d ; t o p : 1 2 p x ; r i g h t : 1 2 p x ; z - i n d e x : 9 9 9 9 ; d i s p l a y : n o n e ; b a c k g r o u n d : $ { p a l e t t e . c o n t r o l } ; c o l o r : $ { p a l e t t e . t e x t } ; b o r d e r : 1 p x   s o l i d   $ { p a l e t t e . b o r d e r } ; b o r d e r - r a d i u s : 6 p x ; p a d d i n g : 6 p x   1 0 p x ; f o n t - s i z e : 1 2 p x ; f o n t - w e i g h t : 7 0 0 ; b o x - s h a d o w : $ { p a l e t t e . s h a d o w } ; c u r s o r : p o i n t e r ` ; 
 
 -                 r e s t o r e B u t t o n . a d d E v e n t L i s t e n e r ( ' c l i c k ' ,   ( )   = >   s e t P a n e l M i n i m i z e d ( c o n t a i n e r ,   f a l s e ) ) ; 
 
 -                 d o c u m e n t . b o d y . a p p e n d C h i l d ( r e s t o r e B u t t o n ) ; 
 
 -                 m a k e D r a g g a b l e ( c o n t a i n e r ,   h e a d e r ) ; 
 
 -                 m a k e R e s i z a b l e ( c o n t a i n e r ,   r e s i z e r ) ; 
 
 -                 d o c u m e n t . g e t E l e m e n t B y I d ( ' a s s i g n m e n t - s e l e c t o r ' ) . a d d E v e n t L i s t e n e r ( ' c h a n g e ' ,   e v e n t   = >   { 
 
 -                         s e l e c t e d A s s i g n m e n t I d   =   e v e n t . t a r g e t . v a l u e ; 
 
 -                         u p d a t e C h a r t ( ) ; 
 
 -                 } ) ; 
 
 -                 r e f r e s h A s s i g n m e n t s ( ) ; 
 
 -                 i n i t C h a r t ( ) ; 
 
 -                 u p d a t e R a n g e B u t t o n s ( ) ; 
 
 -                 r e s t o r e P a n e l L a y o u t ( c o n t a i n e r ) ; 
 
 -         } 
 
 - 
 
 -         f u n c t i o n   m a k e D r a g g a b l e ( c o n t a i n e r ,   h a n d l e )   { 
 
 -                 l e t   d r a g O f f s e t X   =   0 ; 
 
 -                 l e t   d r a g O f f s e t Y   =   0 ; 
 
 -                 l e t   d r a g g i n g   =   f a l s e ; 
 
 - 
 
 -                 h a n d l e . s t y l e . c u r s o r   =   ' m o v e ' ; 
 
 -                 h a n d l e . a d d E v e n t L i s t e n e r ( ' m o u s e d o w n ' ,   e v e n t   = >   { 
 
 -                         i f   ( e v e n t . t a r g e t . c l o s e s t ( ' b u t t o n ,   s e l e c t ' ) )   r e t u r n ; 
 
 -                         c o n s t   r e c t   =   c o n t a i n e r . g e t B o u n d i n g C l i e n t R e c t ( ) ; 
 
 -                         d r a g O f f s e t X   =   e v e n t . c l i e n t X   -   r e c t . l e f t ; 
 
 -                         d r a g O f f s e t Y   =   e v e n t . c l i e n t Y   -   r e c t . t o p ; 
 
 -                         d r a g g i n g   =   t r u e ; 
 
 -                         e v e n t . p r e v e n t D e f a u l t ( ) ; 
 
 -                 } ) ; 
 
 -                 w i n d o w . a d d E v e n t L i s t e n e r ( ' m o u s e m o v e ' ,   e v e n t   = >   { 
 
 -                         i f   ( ! d r a g g i n g )   r e t u r n ; 
 
 -                         c o n s t   r e c t   =   c o n t a i n e r . g e t B o u n d i n g C l i e n t R e c t ( ) ; 
 
 -                         c o n s t   m a x L e f t   =   M a t h . m a x ( 0 ,   w i n d o w . i n n e r W i d t h   -   r e c t . w i d t h ) ; 
 
 -                         c o n s t   m a x T o p   =   M a t h . m a x ( 0 ,   w i n d o w . i n n e r H e i g h t   -   r e c t . h e i g h t ) ; 
 
 -                         c o n t a i n e r . s t y l e . l e f t   =   ` $ { M a t h . m i n ( M a t h . m a x ( 0 ,   e v e n t . c l i e n t X   -   d r a g O f f s e t X ) ,   m a x L e f t ) } p x ` ; 
 
 -                         c o n t a i n e r . s t y l e . t o p   =   ` $ { M a t h . m i n ( M a t h . m a x ( 0 ,   e v e n t . c l i e n t Y   -   d r a g O f f s e t Y ) ,   m a x T o p ) } p x ` ; 
 
 -                         c o n t a i n e r . s t y l e . r i g h t   =   ' a u t o ' ; 
 
 -                         c o n t a i n e r . s t y l e . b o t t o m   =   ' a u t o ' ; 
 
 -                 } ) ; 
 
 -                 w i n d o w . a d d E v e n t L i s t e n e r ( ' m o u s e u p ' ,   ( )   = >   { 
 
 -                         i f   ( ! d r a g g i n g )   r e t u r n ; 
 
 -                         d r a g g i n g   =   f a l s e ; 
 
 -                         s a v e P a n e l L a y o u t ( c o n t a i n e r ) ; 
 
 -                 } ) ; 
 
 -         } 
 
 - 
 
 -         f u n c t i o n   m a k e R e s i z a b l e ( c o n t a i n e r ,   r e s i z e r )   { 
 
 -                 l e t   r e s i z i n g   =   f a l s e ; 
 
 -                 l e t   s t a r t X   =   0 ; 
 
 -                 l e t   s t a r t Y   =   0 ; 
 
 -                 l e t   s t a r t W i d t h   =   0 ; 
 
 -                 l e t   s t a r t H e i g h t   =   0 ; 
 
 - 
 
 -                 r e s i z e r . a d d E v e n t L i s t e n e r ( ' m o u s e d o w n ' ,   e v e n t   = >   { 
 
 -                         c o n s t   r e c t   =   c o n t a i n e r . g e t B o u n d i n g C l i e n t R e c t ( ) ; 
 
 -                         r e s i z i n g   =   t r u e ; 
 
 -                         s t a r t X   =   e v e n t . c l i e n t X ; 
 
 -                         s t a r t Y   =   e v e n t . c l i e n t Y ; 
 
 -                         s t a r t W i d t h   =   r e c t . w i d t h ; 
 
 -                         s t a r t H e i g h t   =   r e c t . h e i g h t ; 
 
 -                         e v e n t . p r e v e n t D e f a u l t ( ) ; 
 
 -                         e v e n t . s t o p P r o p a g a t i o n ( ) ; 
 
 -                 } ) ; 
 
 -                 w i n d o w . a d d E v e n t L i s t e n e r ( ' m o u s e m o v e ' ,   e v e n t   = >   { 
 
 -                         i f   ( ! r e s i z i n g )   r e t u r n ; 
 
 -                         c o n s t   r e c t   =   c o n t a i n e r . g e t B o u n d i n g C l i e n t R e c t ( ) ; 
 
 -                         c o n s t   m i n W i d t h   =   M a t h . m i n ( P A N E L _ M I N _ W I D T H ,   w i n d o w . i n n e r W i d t h ) ; 
 
 -                         c o n s t   m i n H e i g h t   =   M a t h . m i n ( P A N E L _ M I N _ H E I G H T ,   w i n d o w . i n n e r H e i g h t ) ; 
 
 -                         c o n s t   m a x W i d t h   =   M a t h . m a x ( m i n W i d t h ,   w i n d o w . i n n e r W i d t h   -   r e c t . l e f t ) ; 
 
 -                         c o n s t   m a x H e i g h t   =   M a t h . m a x ( m i n H e i g h t ,   w i n d o w . i n n e r H e i g h t   -   r e c t . t o p ) ; 
 
 -                         c o n s t   w i d t h   =   M a t h . m i n ( M a t h . m a x ( m i n W i d t h ,   s t a r t W i d t h   +   e v e n t . c l i e n t X   -   s t a r t X ) ,   m a x W i d t h ) ; 
 
 -                         c o n s t   h e i g h t   =   M a t h . m i n ( M a t h . m a x ( m i n H e i g h t ,   s t a r t H e i g h t   +   e v e n t . c l i e n t Y   -   s t a r t Y ) ,   m a x H e i g h t ) ; 
 
 -                         c o n t a i n e r . s t y l e . w i d t h   =   ` $ { w i d t h } p x ` ; 
 
 -                         c o n t a i n e r . s t y l e . h e i g h t   =   ` $ { h e i g h t } p x ` ; 
 
 -                         m y C h a r t ? . r e s i z e ( ) ; 
 
 -                 } ) ; 
 
 -                 w i n d o w . a d d E v e n t L i s t e n e r ( ' m o u s e u p ' ,   ( )   = >   { 
 
 -                         i f   ( ! r e s i z i n g )   r e t u r n ; 
 
 -                         r e s i z i n g   =   f a l s e ; 
 
 -                         s a v e P a n e l L a y o u t ( c o n t a i n e r ) ; 
 
 -                         m y C h a r t ? . r e s i z e ( ) ; 
 
 -                         m y C h a r t ? . u p d a t e ( ' n o n e ' ) ; 
 
 -                 } ) ; 
 
 -         } 
 
 - 
 
 -         f u n c t i o n   g e t R e f r e s h A n i m a t i o n P r o g r e s s ( )   { 
 
 -                 i f   ( ! r e f r e s h A n i m a t i o n S t a r t e d A t )   r e t u r n   1 ; 
 
 -                 r e t u r n   M a t h . m i n ( 1 ,   ( p e r f o r m a n c e . n o w ( )   -   r e f r e s h A n i m a t i o n S t a r t e d A t )   /   R E F R E S H _ A N I M A T I O N _ D U R A T I O N ) ; 
 
 -         } 
 
 - 
 
 -         f u n c t i o n   p l a y R e f r e s h A n i m a t i o n ( )   { 
 
 -                 r e f r e s h A n i m a t i o n S t a r t e d A t   =   p e r f o r m a n c e . n o w ( ) ; 
 
 -                 c a n c e l A n i m a t i o n F r a m e ( r e f r e s h A n i m a t i o n I d ) ; 
 
 -                 c o n s t   r e n d e r   =   ( )   = >   { 
 
 -                         c o n s t   p r o g r e s s   =   g e t R e f r e s h A n i m a t i o n P r o g r e s s ( ) ; 
 
 -                         m y C h a r t ? . d r a w ( ) ; 
 
 -                         i f   ( p r o g r e s s   <   1 )   r e f r e s h A n i m a t i o n I d   =   r e q u e s t A n i m a t i o n F r a m e ( r e n d e r ) ; 
 
 -                         e l s e   r e f r e s h A n i m a t i o n S t a r t e d A t   =   0 ; 
 
 -                 } ; 
 
 -                 r e f r e s h A n i m a t i o n I d   =   r e q u e s t A n i m a t i o n F r a m e ( r e n d e r ) ; 
 
 -         } 
 
 - 
 
 -         f u n c t i o n   g e t A v e r a g e D a i l y U s a g e ( p o i n t s )   { 
 
 -                 i f   ( p o i n t s . l e n g t h   <   2 )   r e t u r n   0 ; 
 
 -                 c o n s t   f i r s t   =   p o i n t s [ 0 ] ; 
 
 -                 c o n s t   l a s t   =   p o i n t s [ p o i n t s . l e n g t h   -   1 ] ; 
 
 -                 c o n s t   e l a p s e d D a y s   =   ( l a s t . t i m e s t a m p   -   f i r s t . t i m e s t a m p )   /   8 6 4 0 0 0 0 0 ; 
 
 -                 r e t u r n   e l a p s e d D a y s   >   0   ?   M a t h . m a x ( 0 ,   ( l a s t . u s e d   -   f i r s t . u s e d )   /   e l a p s e d D a y s )   :   0 ; 
 
 -         } 
 
 - 
 
 -         f u n c t i o n   g e t T o d a y U s a g e ( p o i n t s )   { 
 
 -                 c o n s t   t o d a y P o i n t s   =   p o i n t s . f i l t e r ( p o i n t   = >   p o i n t . t i m e s t a m p   > =   s t a r t O f T o d a y ( ) ) ; 
 
 -                 i f   ( t o d a y P o i n t s . l e n g t h   <   2 )   r e t u r n   0 ; 
 
 -                 r e t u r n   M a t h . m a x ( 0 ,   t o d a y P o i n t s [ t o d a y P o i n t s . l e n g t h   -   1 ] . u s e d   -   t o d a y P o i n t s [ 0 ] . u s e d ) ; 
 
 -         } 
 
 - 
 
 -         c o n s t   c u r r e n t U s a g e L i n e P l u g i n   =   { 
 
 -                 i d :   ' c u r r e n t U s a g e L i n e ' , 
 
 -                 a f t e r D r a w ( c h a r t )   { 
 
 -                         c o n s t   p o i n t s   =   g e t A s s i g n m e n t P o i n t s ( s e l e c t e d A s s i g n m e n t I d ) ; 
 
 -                         c o n s t   c u r r e n t P o i n t   =   p o i n t s [ p o i n t s . l e n g t h   -   1 ] ; 
 
 -                         c o n s t   q u o t a   =   c u r r e n t Q u o t a B y A s s i g n m e n t [ s e l e c t e d A s s i g n m e n t I d ] ; 
 
 -                         c o n s t   y S c a l e   =   c h a r t . s c a l e s . y U s e d ; 
 
 -                         i f   ( ! c u r r e n t P o i n t   | |   ! y S c a l e )   r e t u r n ; 
 
 - 
 
 -                         c o n s t   y   =   y S c a l e . g e t P i x e l F o r V a l u e ( c u r r e n t P o i n t . u s e d ) ; 
 
 -                         c o n s t   {   l e f t ,   r i g h t ,   t o p ,   b o t t o m   }   =   c h a r t . c h a r t A r e a ; 
 
 -                         i f   ( y   <   t o p   | |   y   >   b o t t o m )   r e t u r n ; 
 
 - 
 
 -                         c o n s t   r e m a i n i n g   =   n u m b e r O r N u l l ( q u o t a ? . r e m a i n i n g ) ; 
 
 -                         c o n s t   t o d a y U s a g e   =   g e t T o d a y U s a g e ( p o i n t s ) ; 
 
 -                         c o n s t   d a i l y U s a g e   =   g e t A v e r a g e D a i l y U s a g e ( p o i n t s ) ; 
 
 -                         c o n s t   e s t i m a t e d D a y s   =   r e m a i n i n g   ! = =   n u l l   & &   d a i l y U s a g e   >   0   ?   r e m a i n i n g   /   d a i l y U s a g e   :   n u l l ; 
 
 -                         c o n s t   e s t i m a t e T e x t   =   r e m a i n i n g   ! = =   n u l l   & &   r e m a i n i n g   < =   0 
 
 -                                 ?   '   [ [,de9p[' 
 
 -                                 :   e s t i m a t e d D a y s   = = =   n u l l 
 
 -                                         ?   ' ' 
 
 -                                         :   e s t i m a t e d D a y s   <   1 
 
 -                                                 ?   '   [ hRx`mBZI0O)14Qcmde9p~\/v] ' 
 
 -                                                 :   `   [ hRx  $ { M a t h . c e i l ( e s t i m a t e d D a y s ) }   o@%Z"%1luY!f` ; 
 
 -                         c o n s t   t e x t   =   r e m a i n i n g   = = =   n u l l 
 
 -                                 ?   ` 0dX  $ { c u r r e n t P o i n t . u s e d . t o F i x e d ( 6 ) }   C N Y   /   `mCZh")1zV  $ { t o d a y U s a g e . t o F i x e d ( 6 ) }   C N Y ` 
 
 -                                 :   ` 0dX  $ { c u r r e n t P o i n t . u s e d . t o F i x e d ( 6 ) }   C N Y   /   S@%}  $ { r e m a i n i n g . t o F i x e d ( 6 ) }   C N Y   /   `mCZh")1zV  $ { t o d a y U s a g e . t o F i x e d ( 6 ) }   C N Y $ { e s t i m a t e T e x t } ` ; 
 
 - 
 
 -                         c o n s t   c o n t e x t   =   c h a r t . c t x ; 
 
 -                         c o n t e x t . s a v e ( ) ; 
 
 -                         c o n t e x t . s e t L i n e D a s h ( [ 7 ,   5 ] ) ; 
 
 -                         c o n t e x t . s t r o k e S t y l e   =   ' # f a c c 1 5 ' ; 
 
 -                         c o n t e x t . l i n e W i d t h   =   2 ; 
 
 -                         c o n t e x t . b e g i n P a t h ( ) ; 
 
 -                         c o n t e x t . m o v e T o ( l e f t ,   y ) ; 
 
 -                         c o n t e x t . l i n e T o ( r i g h t ,   y ) ; 
 
 -                         c o n t e x t . s t r o k e ( ) ; 
 
 -                         c o n t e x t . s e t L i n e D a s h ( [ ] ) ; 
 
 -                         c o n t e x t . f o n t   =   ' b o l d   1 6 p x   - a p p l e - s y s t e m ,   B l i n k M a c S y s t e m F o n t ,   " S e g o e   U I " ,   s a n s - s e r i f ' ; 
 
 -                         c o n t e x t . t e x t A l i g n   =   ' r i g h t ' ; 
 
 -                         c o n t e x t . t e x t B a s e l i n e   =   ' b o t t o m ' ; 
 
 -                         c o n t e x t . f i l l S t y l e   =   ' # f e f 0 8 a ' ; 
 
 -                         c o n t e x t . f i l l T e x t ( t e x t ,   r i g h t   -   6 ,   y   -   5 ) ; 
 
 -                         c o n t e x t . r e s t o r e ( ) ; 
 
 -                 } 
 
 -         } ; 
 
 - 
 
 -         c o n s t   r e f r e s h S w e e p P l u g i n   =   { 
 
 -                 i d :   ' r e f r e s h S w e e p ' , 
 
 -                 a f t e r D a t a s e t s D r a w ( c h a r t )   { 
 
 -                         i f   ( ! r e f r e s h A n i m a t i o n S t a r t e d A t )   r e t u r n ; 
 
 -                         c o n s t   d a t a s e t   =   c h a r t . g e t D a t a s e t M e t a ( 0 ) ; 
 
 -                         c o n s t   p o i n t s   =   d a t a s e t . d a t a ; 
 
 -                         i f   ( p o i n t s . l e n g t h   <   2 )   r e t u r n ; 
 
 - 
 
 -                         c o n s t   p r o g r e s s   =   g e t R e f r e s h A n i m a t i o n P r o g r e s s ( ) ; 
 
 -                         c o n s t   {   l e f t ,   r i g h t ,   b o t t o m   }   =   c h a r t . c h a r t A r e a ; 
 
 -                         c o n s t   s w e e p X   =   l e f t   +   ( r i g h t   -   l e f t )   *   p r o g r e s s ; 
 
 -                         c o n s t   c o n t e x t   =   c h a r t . c t x ; 
 
 -                         c o n s t   g l o w   =   c o n t e x t . c r e a t e L i n e a r G r a d i e n t ( s w e e p X   -   9 0 ,   0 ,   s w e e p X   +   9 0 ,   0 ) ; 
 
 -                         g l o w . a d d C o l o r S t o p ( 0 ,   ' r g b a ( 1 2 5 , 2 1 1 , 2 5 2 , 0 ) ' ) ; 
 
 -                         g l o w . a d d C o l o r S t o p ( . 5 ,   ' r g b a ( 2 2 4 , 2 4 2 , 2 5 4 , . 4 8 ) ' ) ; 
 
 -                         g l o w . a d d C o l o r S t o p ( 1 ,   ' r g b a ( 1 2 5 , 2 1 1 , 2 5 2 , 0 ) ' ) ; 
 
 - 
 
 -                         / /   "&1 dde_Y~8Y{iyV˓RWAtxOXVTYq~\XO
Yg_|m,lVgjnt0Y~荑koS|Q?mPkT ? -                         c o n t e x t . s a v e ( ) ; 
 
 -                         c o n t e x t . b e g i n P a t h ( ) ; 
 
 -                         c o n t e x t . m o v e T o ( p o i n t s [ 0 ] . x ,   b o t t o m ) ; 
 
 -                         p o i n t s . f o r E a c h ( p o i n t   = >   c o n t e x t . l i n e T o ( p o i n t . x ,   p o i n t . y ) ) ; 
 
 -                         c o n t e x t . l i n e T o ( p o i n t s [ p o i n t s . l e n g t h   -   1 ] . x ,   b o t t o m ) ; 
 
 -                         c o n t e x t . c l o s e P a t h ( ) ; 
 
 -                         c o n t e x t . c l i p ( ) ; 
 
 -                         c o n t e x t . f i l l S t y l e   =   g l o w ; 
 
 -                         c o n t e x t . f i l l R e c t ( s w e e p X   -   9 0 ,   c h a r t . c h a r t A r e a . t o p ,   1 8 0 ,   b o t t o m   -   c h a r t . c h a r t A r e a . t o p ) ; 
 
 -                         c o n t e x t . r e s t o r e ( ) ; 
 
 +                 }   c a t c h   ( e r r o r )   { 
 
 +                         c o n s o l e . w a r n ( ' [ ")1zV)b6^]   Z~\XUv_Rg`~Q0t? ,   e r r o r ) ; 
 
                   } 
 
 -         } ; 
 
 - 
 
 -         f u n c t i o n   i n i t C h a r t ( )   { 
 
 -                 c o n s t   c t x   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' u s a g e C h a r t ' ) . g e t C o n t e x t ( ' 2 d ' ) ; 
 
 -                 m y C h a r t   =   n e w   C h a r t ( c t x ,   { 
 
 -                         t y p e :   ' l i n e ' , 
 
 -                         p l u g i n s :   [ r e f r e s h S w e e p P l u g i n ,   c u r r e n t U s a g e L i n e P l u g i n ] , 
 
 -                         d a t a :   {   d a t a s e t s :   [ 
 
 -                                 {   l a b e l :   ' Q")14d? ( C N Y ) ' ,   d a t a :   [ ] ,   y A x i s I D :   ' y U s e d ' ,   b o r d e r C o l o r :   ' # 0 e a 5 e 9 ' ,   b a c k g r o u n d C o l o r :   ' r g b a ( 1 4 , 1 6 5 , 2 3 3 , . 1 8 ) ' ,   p o i n t B a c k g r o u n d C o l o r :   ' # e 0 f 2 f e ' ,   p o i n t B o r d e r C o l o r :   ' # 3 8 b d f 8 ' ,   f i l l :   t r u e ,   b o r d e r W i d t h :   2 . 5 ,   t e n s i o n :   . 2 5   } , 
 
 -                                 {   l a b e l :   ' V*mhg")1zV  ( C N Y ) ' ,   d a t a :   [ ] ,   y A x i s I D :   ' y D e l t a ' ,   b o r d e r C o l o r :   ' # f 9 7 3 1 6 ' ,   b a c k g r o u n d C o l o r :   ' r g b a ( 2 4 9 , 1 1 5 , 2 2 , . 1 5 ) ' ,   p o i n t B a c k g r o u n d C o l o r :   ' # f f e d d 5 ' ,   p o i n t B o r d e r C o l o r :   ' # f b 9 2 3 c ' ,   b o r d e r W i d t h :   2 . 5 ,   b o r d e r D a s h :   [ 5 ,   4 ] ,   t e n s i o n :   . 2 5   } 
 
 -                         ]   } , 
 
 -                         o p t i o n s :   { 
 
 -                                 r e s p o n s i v e :   t r u e ,   m a i n t a i n A s p e c t R a t i o :   f a l s e ,   a n i m a t i o n :   {   d u r a t i o n :   0   } , 
 
 -                                 s c a l e s :   { 
 
 -                                         / /   cmdeYWÓXhEQ}m? x   Jwx}Exz|m-l[*qu_C~ÓXhp\jo͓pn4OzV:jW? -                                         x :   { 
 
 -                                                 t y p e :   ' l i n e a r ' ,   g r i d :   {   c o l o r :   ' # 3 3 4 1 5 5 '   } , 
 
 -                                                 t i c k s :   {   c o l o r :   ' # c b d 5 e 1 ' ,   m a x T i c k s L i m i t :   6 ,   c a l l b a c k :   v a l u e   = >   f o r m a t A x i s T i m e ( v a l u e )   } 
 
 -                                         } , 
 
 -                                         y U s e d :   {   p o s i t i o n :   ' l e f t ' ,   g r i d :   {   c o l o r :   ' # 3 3 4 1 5 5 '   } ,   t i c k s :   {   c o l o r :   ' # 7 d d 3 f c ' ,   c a l l b a c k :   v a l u e   = >   ` $ { N u m b e r ( v a l u e ) . t o F i x e d ( 2 ) }   C N Y `   }   } , 
 
 -                                         y D e l t a :   {   p o s i t i o n :   ' r i g h t ' ,   g r i d :   {   d r a w O n C h a r t A r e a :   f a l s e   } ,   t i c k s :   {   c o l o r :   ' # f d b a 7 4 ' ,   c a l l b a c k :   v a l u e   = >   ` $ { N u m b e r ( v a l u e ) . t o F i x e d ( 2 ) }   C N Y `   } ,   s u g g e s t e d M i n :   0   } 
 
 -                                 } , 
 
 -                                 p l u g i n s :   { 
 
 -                                         l e g e n d :   {   l a b e l s :   {   c o l o r :   ' # e 2 e 8 f 0 ' ,   b o x W i d t h :   1 4   }   } , 
 
 -                                         t o o l t i p :   { 
 
 -                                                 c a l l b a c k s :   { 
 
 -                                                         t i t l e :   i t e m s   = >   i t e m s [ 0 ]   ?   f o r m a t T i m e ( i t e m s [ 0 ] . p a r s e d . x )   :   ' ' , 
 
 -                                                         l a b e l :   i t e m   = >   ` $ { i t e m . d a t a s e t . l a b e l } :   $ { N u m b e r ( i t e m . p a r s e d . y ) . t o F i x e d ( 5 ) }   C N Y ` 
 
 -                                                 } 
 
 -                                         } 
 
 -                                 } 
 
 -                         } 
 
 -                 } ) ; 
 
           } 
 
   
 
 -         f u n c t i o n   f o r m a t T i m e ( t i m e s t a m p )   { 
 
 -                 r e t u r n   n e w   D a t e ( N u m b e r ( t i m e s t a m p ) ) . t o L o c a l e S t r i n g ( ' z h - C N ' ,   {   h o u r 1 2 :   f a l s e   } ) ; 
 
 -         } 
 
 +         / /   9 9   HrA]Vl͓?z>~  9 9 
 
   
 
 -         f u n c t i o n   f o r m a t A x i s T i m e ( t i m e s t a m p )   { 
 
 -                 r e t u r n   n e w   D a t e ( N u m b e r ( t i m e s t a m p ) ) . t o L o c a l e S t r i n g ( ' z h - C N ' ,   { 
 
 -                         m o n t h :   ' 2 - d i g i t ' ,   d a y :   ' 2 - d i g i t ' ,   h o u r :   ' 2 - d i g i t ' ,   m i n u t e :   ' 2 - d i g i t ' ,   h o u r 1 2 :   f a l s e 
 
 -                 } ) ; 
 
 -         } 
 
 - 
 
 -         f u n c t i o n   s t a r t O f T o d a y ( )   { 
 
 -                 c o n s t   d a t e   =   n e w   D a t e ( ) ; 
 
 -                 d a t e . s e t H o u r s ( 0 ,   0 ,   0 ,   0 ) ; 
 
 -                 r e t u r n   d a t e . g e t T i m e ( ) ; 
 
 -         } 
 
 - 
 
 -         f u n c t i o n   g e t D i s p l a y e d P o i n t s ( a s s i g n m e n t I d )   { 
 
 -                 c o n s t   a l l P o i n t s   =   g e t A s s i g n m e n t P o i n t s ( a s s i g n m e n t I d ) ; 
 
 +         a s y n c   f u n c t i o n   a d d Q u o t a P o i n t ( a s s i g n m e n t I d ,   q u o t a )   { 
 
 +                 c o n s t   u s e d   =   n u m b e r O r N u l l ( q u o t a   & &   q u o t a . u s e d ) ; 
 
 +                 i f   ( ! a s s i g n m e n t I d   | |   u s e d   = = =   n u l l )   r e t u r n   f a l s e ; 
 
                   c o n s t   n o w   =   D a t e . n o w ( ) ; 
 
 -                 i f   ( s e l e c t e d R a n g e   = = =   ' t o d a y ' )   r e t u r n   a l l P o i n t s . f i l t e r ( p o i n t   = >   p o i n t . t i m e s t a m p   > =   s t a r t O f T o d a y ( ) ) ; 
 
 -                 / /   tpTC~m0I0(RpV͓\jnp:jMPÕ5[S[oA%}YO1}igbanHrA]f(1KeSQP][|Q?mq,l`? -                 i f   ( s e l e c t e d R a n g e   = = =   ' 7 d ' )   { 
 
 -                         r e t u r n   a g g r e g a t e P o i n t s ( a l l P o i n t s . f i l t e r ( p o i n t   = >   p o i n t . t i m e s t a m p   > =   n o w   -   7   *   8 6 4 0 0 0 0 0 ) . m a p ( p o i n t   = >   [ p o i n t . t i m e s t a m p ,   p o i n t . u s e d ] ) ,   3 6 0 0 0 0 0 ) . m a p ( t o C h a r t P o i n t ) ; 
 
 -                 } 
 
 -                 r e t u r n   a l l P o i n t s . f i l t e r ( p o i n t   = >   p o i n t . t i m e s t a m p   > =   n o w   -   3 0   *   8 6 4 0 0 0 0 0 ) ; 
 
 -         } 
 
 +                 c o n s t   r e m a i n i n g   =   n u m b e r O r N u l l ( q u o t a . r e m a i n i n g ) ; 
 
 +                 c o n s t   p o i n t   =   [ n o w ,   u s e d ] ; 
 
   
 
 -         f u n c t i o n   g e t P o i n t s W i t h D e l t a ( a s s i g n m e n t I d )   { 
 
 -                 c o n s t   p o i n t s   =   g e t D i s p l a y e d P o i n t s ( a s s i g n m e n t I d ) ; 
 
 -                 r e t u r n   p o i n t s . m a p ( ( p o i n t ,   i n d e x )   = >   ( {   . . . p o i n t ,   d e l t a :   i n d e x   ?   p o i n t . u s e d   -   p o i n t s [ i n d e x   -   1 ] . u s e d   :   0   } ) ) ; 
 
 -         } 
 
 +                 h i s t o r y B y A s s i g n m e n t [ a s s i g n m e n t I d ]   =   h i s t o r y B y A s s i g n m e n t [ a s s i g n m e n t I d ]   | |   {   r e c e n t :   [ ] ,   a r c h i v e d :   [ ]   } ; 
 
 +                 h i s t o r y B y A s s i g n m e n t [ a s s i g n m e n t I d ] . r e c e n t . p u s h ( p o i n t ) ; 
 
 +                 h i s t o r y B y A s s i g n m e n t [ a s s i g n m e n t I d ]   =   c o m p a c t P o i n t s ( [ 
 
 +                         . . . h i s t o r y B y A s s i g n m e n t [ a s s i g n m e n t I d ] . a r c h i v e d , 
 
 +                         . . . h i s t o r y B y A s s i g n m e n t [ a s s i g n m e n t I d ] . r e c e n t 
 
 +                 ] ) ; 
 
 +                 a s s i g n m e n t N a m e s [ a s s i g n m e n t I d ]   =   a s s i g n m e n t N a m e s [ a s s i g n m e n t I d ]   | |   a s s i g n m e n t I d ; 
 
   
 
 -         f u n c t i o n   u p d a t e R a n g e B u t t o n s ( )   { 
 
 -                 d o c u m e n t . q u e r y S e l e c t o r A l l ( ' # c h a r t - r a n g e - s e l e c t o r   b u t t o n ' ) . f o r E a c h ( b u t t o n   = >   { 
 
 -                         c o n s t   a c t i v e   =   b u t t o n . d a t a s e t . r a n g e   = = =   s e l e c t e d R a n g e ; 
 
 -                         b u t t o n . s t y l e . b a c k g r o u n d   =   a c t i v e   ?   ' # 0 e a 5 e 9 '   :   ' ' ; 
 
 -                         b u t t o n . s t y l e . b o r d e r C o l o r   =   a c t i v e   ?   ' # 7 d d 3 f c '   :   ' ' ; 
 
 -                         b u t t o n . s t y l e . f o n t W e i g h t   =   a c t i v e   ?   ' 7 0 0 '   :   ' 4 0 0 ' ; 
 
 -                 } ) ; 
 
 -         } 
 
 +                 / /   )1 xOWZ^l
 
 +                 a w a i t   s e n d P o i n t T o B a c k e n d ( a s s i g n m e n t I d ,   {   t i m e s t a m p :   n o w ,   u s e d ,   r e m a i n i n g   } ) ; 
 
   
 
 -         f u n c t i o n   u p d a t e C h a r t ( )   { 
 
 -                 i f   ( ! m y C h a r t )   r e t u r n ; 
 
 -                 c o n s t   p o i n t s   =   g e t P o i n t s W i t h D e l t a ( s e l e c t e d A s s i g n m e n t I d ) ; 
 
 -                 m y C h a r t . d a t a . d a t a s e t s [ 0 ] . d a t a   =   p o i n t s . m a p ( p o i n t   = >   ( {   x :   p o i n t . t i m e s t a m p ,   y :   p o i n t . u s e d   } ) ) ; 
 
 -                 m y C h a r t . d a t a . d a t a s e t s [ 1 ] . d a t a   =   p o i n t s . m a p ( p o i n t   = >   ( {   x :   p o i n t . t i m e s t a m p ,   y :   p o i n t . d e l t a   } ) ) ; 
 
 -                 m y C h a r t . u p d a t e ( ) ; 
 
 +                 r e t u r n   t r u e ; 
 
           } 
 
   
 
 +         / /   9 9   F e t c h   =W  9 9 
 
 + 
 
           f u n c t i o n   g e t R e q u e s t U r l ( i n p u t )   { 
 
                   i f   ( t y p e o f   i n p u t   = = =   ' s t r i n g ' )   r e t u r n   i n p u t ; 
 
                   i f   ( i n p u t   i n s t a n c e o f   U R L )   r e t u r n   i n p u t . h r e f ; 
 
 @ @   - 5 5 5 , 2 5   + 1 5 0 , 6   @ @ 
 
                   t r y   {   r e t u r n   J S O N . p a r s e ( b o d y ) . a s s i g n m e n t I d   | |   ' ' ;   }   c a t c h   ( _ )   {   r e t u r n   ' ' ;   } 
 
           } 
 
   
 
 -         f u n c t i o n   a d d Q u o t a P o i n t ( a s s i g n m e n t I d ,   q u o t a )   { 
 
 -                 c o n s t   u s e d   =   n u m b e r O r N u l l ( q u o t a   & &   q u o t a . u s e d ) ; 
 
 -                 i f   ( ! a s s i g n m e n t I d   | |   u s e d   = = =   n u l l )   r e t u r n   f a l s e ; 
 
 -                 c o n s t   p o i n t   =   [ D a t e . n o w ( ) ,   u s e d ] ; 
 
 -                 c u r r e n t Q u o t a B y A s s i g n m e n t [ a s s i g n m e n t I d ]   =   {   r e m a i n i n g :   n u m b e r O r N u l l ( q u o t a . r e m a i n i n g )   } ; 
 
 -                 h i s t o r y B y A s s i g n m e n t [ a s s i g n m e n t I d ]   =   h i s t o r y B y A s s i g n m e n t [ a s s i g n m e n t I d ]   | |   {   r e c e n t :   [ ] ,   a r c h i v e d :   [ ]   } ; 
 
 -                 h i s t o r y B y A s s i g n m e n t [ a s s i g n m e n t I d ] . r e c e n t . p u s h ( p o i n t ) ; 
 
 -                 h i s t o r y B y A s s i g n m e n t [ a s s i g n m e n t I d ]   =   c o m p a c t P o i n t s ( [ 
 
 -                         . . . h i s t o r y B y A s s i g n m e n t [ a s s i g n m e n t I d ] . a r c h i v e d , 
 
 -                         . . . h i s t o r y B y A s s i g n m e n t [ a s s i g n m e n t I d ] . r e c e n t 
 
 -                 ] ) ; 
 
 -                 a s s i g n m e n t N a m e s [ a s s i g n m e n t I d ]   =   a s s i g n m e n t N a m e s [ a s s i g n m e n t I d ]   | |   a s s i g n m e n t I d ; 
 
 -                 i f   ( ! s e l e c t e d A s s i g n m e n t I d )   s e l e c t e d A s s i g n m e n t I d   =   a s s i g n m e n t I d ; 
 
 -                 r e f r e s h A s s i g n m e n t s ( ) ; 
 
 -                 u p d a t e C h a r t ( ) ; 
 
 -                 p l a y R e f r e s h A n i m a t i o n ( ) ; 
 
 -                 r e t u r n   t r u e ; 
 
 -         } 
 
 - 
 
           f u n c t i o n   h o o k F e t c h ( )   { 
 
                   c o n s t   o r i g i n a l F e t c h   =   p a g e W i n d o w . f e t c h ; 
 
                   p a g e W i n d o w . f e t c h   =   a s y n c   f u n c t i o n   ( . . . a r g s )   { 
 
 @ @   - 5 9 0 , 7   + 1 6 6 , 7   @ @ 
 
                                   t r y   { 
 
                                           i f   ( ! r e s p o n s e . o k )   t h r o w   n e w   E r r o r ( ` t0wo  ( $ { r e s p o n s e . s t a t u s } ) ` ) ; 
 
                                           c o n s t   q u o t a   =   a w a i t   r e s p o n s e . c l o n e ( ) . j s o n ( ) ; 
 
 -                                         i f   ( ! a d d Q u o t a P o i n t ( a s s i g n m e n t I d ,   q u o t a ) )   t h r o w   n e w   E r r o r ( ' ]]2|m`]OpbAn"Xde? ) ; 
 
 +                                         i f   ( ! ( a w a i t   a d d Q u o t a P o i n t ( a s s i g n m e n t I d ,   q u o t a ) ) )   t h r o w   n e w   E r r o r ( ' ]]2|m`]OpbAn"Xde? ) ; 
 
                                           f i n i s h R e f r e s h ( a s s i g n m e n t I d ) ; 
 
                                   }   c a t c h   ( e r r o r )   { 
 
                                           f i n i s h R e f r e s h ( a s s i g n m e n t I d ,   e r r o r ) ; 
 
 @ @   - 6 0 0 , 6   + 1 7 6 , 8   @ @ 
 
                   } ; 
 
           } 
 
   
 
 +         / /   9 9   RgȓTW  9 9 
 
 + 
 
           f u n c t i o n   f i n i s h R e f r e s h ( a s s i g n m e n t I d ,   e r r o r )   { 
 
                   c o n s t   p e n d i n g   =   p e n d i n g R e f r e s h e s . g e t ( a s s i g n m e n t I d ) ; 
 
                   i f   ( ! p e n d i n g )   r e t u r n ; 
 
 @ @   - 6 1 5 , 5 1   + 1 9 3 , 4 5   @ @ 
 
                   } ) ; 
 
           } 
 
   
 
 +         f u n c t i o n   g e t R e f r e s h B u t t o n s ( )   { 
 
 +                 r e t u r n   A r r a y . f r o m ( d o c u m e n t . q u e r y S e l e c t o r A l l ( ' b u t t o n [ d a t a - a c t i o n = " r e f r e s h " ] [ d a t a - a s s i g n m e n t - i d ] ' ) ) ; 
 
 +         } 
 
 + 
 
 +         f u n c t i o n   c o l l e c t A s s i g n m e n t N a m e s ( )   { 
 
 +                 g e t R e f r e s h B u t t o n s ( ) . f o r E a c h ( b u t t o n   = >   { 
 
 +                         c o n s t   i d   =   b u t t o n . d a t a s e t . a s s i g n m e n t I d ; 
 
 +                         i f   ( ! i d )   r e t u r n ; 
 
 +                         c o n s t   c a r d   =   b u t t o n . c l o s e s t ( ' a r t i c l e ,   s e c t i o n ,   d i v ' ) ; 
 
 +                         c o n s t   t e x t   =   c a r d   ?   c a r d . i n n e r T e x t . s p l i t ( ' \ n ' ) [ 0 ] . t r i m ( )   :   ' ' ; 
 
 +                         a s s i g n m e n t N a m e s [ i d ]   =   t e x t   | |   a s s i g n m e n t N a m e s [ i d ]   | |   i d ; 
 
 +                 } ) ; 
 
 +         } 
 
 + 
 
           a s y n c   f u n c t i o n   t r i g g e r P a g e R e f r e s h ( )   { 
 
                   i f   ( i s P r o c e s s i n g )   r e t u r n ; 
 
 -                 c o n s t   m a n u a l R e f r e s h B u t t o n   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' m a n u a l - r e f r e s h - b u t t o n ' ) ; 
 
 -                 i f   ( m a n u a l R e f r e s h B u t t o n )   { 
 
 -                         m a n u a l R e f r e s h B u t t o n . d i s a b l e d   =   t r u e ; 
 
 -                         m a n u a l R e f r e s h B u t t o n . t e x t C o n t e n t   =   ' Rgm? ; 
 
 -                         m a n u a l R e f r e s h B u t t o n . s t y l e . o p a c i t y   =   ' 0 . 6 5 ' ; 
 
 -                         m a n u a l R e f r e s h B u t t o n . s t y l e . c u r s o r   =   ' w a i t ' ; 
 
 -                 } 
 
                   c o n s t   b u t t o n s   =   g e t R e f r e s h B u t t o n s ( ) ; 
 
                   i f   ( ! b u t t o n s . l e n g t h )   { 
 
 -                         s e t S t a t u s ( ' ȓEXRgW4O4d=[? ,   ' # d c 3 5 4 5 ' ) ; 
 
 -                         i f   ( m a n u a l R e f r e s h B u t t o n )   { 
 
 -                                 m a n u a l R e f r e s h B u t t o n . d i s a b l e d   =   f a l s e ; 
 
 -                                 m a n u a l R e f r e s h B u t t o n . t e x t C o n t e n t   =   ' Rg' ; 
 
 -                                 m a n u a l R e f r e s h B u t t o n . s t y l e . o p a c i t y   =   ' 1 ' ; 
 
 -                                 m a n u a l R e f r e s h B u t t o n . s t y l e . c u r s o r   =   ' p o i n t e r ' ; 
 
 -                         } 
 
 +                         c o n s o l e . w a r n ( ' [ ")1zV)b6^]   ȓEXRgW4O4d=[? ) ; 
 
                           s c h e d u l e N e x t R u n ( ) ; 
 
                           r e t u r n ; 
 
                   } 
 
                   i s P r o c e s s i n g   =   t r u e ; 
 
 -                 r e f r e s h A s s i g n m e n t s ( ) ; 
 
 +                 c o l l e c t A s s i g n m e n t N a m e s ( ) ; 
 
                   l e t   s u c c e s s C o u n t   =   0 ; 
 
                   t r y   { 
 
                           f o r   ( c o n s t   b u t t o n   o f   b u t t o n s )   { 
 
                                   c o n s t   a s s i g n m e n t I d   =   b u t t o n . d a t a s e t . a s s i g n m e n t I d ; 
 
                                   i f   ( ! a s s i g n m e n t I d )   c o n t i n u e ; 
 
 -                                 s e t S t a t u s ( ` YEjnRg  $ { a s s i g n m e n t N a m e s [ a s s i g n m e n t I d ]   | |   a s s i g n m e n t I d } . . . ` ,   ' # f f c 1 0 7 ' ) ; 
 
                                   c o n s t   r e s u l t   =   w a i t F o r R e f r e s h ( a s s i g n m e n t I d ) ; 
 
                                   b u t t o n . c l i c k ( ) ; 
 
                                   c o n s t   e r r o r   =   a w a i t   r e s u l t ; 
 
                                   i f   ( e r r o r )   c o n s o l e . w a r n ( ` [ ")1zV)b6^]   $ { a s s i g n m e n t I d }   Rgo` ,   e r r o r ) ; 
 
                                   e l s e   s u c c e s s C o u n t   + =   1 ; 
 
                           } 
 
 -                         a w a i t   s a v e H i s t o r y ( ) ; 
 
 -                         s e t S t a t u s ( ` [60? $ { s u c c e s s C o u n t } / $ { b u t t o n s . l e n g t h }   mDV!u,   s u c c e s s C o u n t   ?   ' # 2 8 a 7 4 5 '   :   ' # d c 3 5 4 5 ' ) ; 
 
 +                         a w a i t   s a v e H i s t o r y T o B a c k e n d ( ) ; 
 
 +                         c o n s o l e . l o g ( ` [ ")1zV)b6^]   [60? $ { s u c c e s s C o u n t } / $ { b u t t o n s . l e n g t h }   mDV!u) ; 
 
                   }   f i n a l l y   { 
 
                           i s P r o c e s s i n g   =   f a l s e ; 
 
 -                         i f   ( m a n u a l R e f r e s h B u t t o n )   { 
 
 -                                 m a n u a l R e f r e s h B u t t o n . d i s a b l e d   =   f a l s e ; 
 
 -                                 m a n u a l R e f r e s h B u t t o n . t e x t C o n t e n t   =   ' Rg' ; 
 
 -                                 m a n u a l R e f r e s h B u t t o n . s t y l e . o p a c i t y   =   ' 1 ' ; 
 
 -                                 m a n u a l R e f r e s h B u t t o n . s t y l e . c u r s o r   =   ' p o i n t e r ' ; 
 
 -                         } 
 
                           s c h e d u l e N e x t R u n ( ) ; 
 
                   } 
 
           } 
 
 @ @   - 6 6 9 , 1 4 7   + 2 4 1 , 1 3   @ @ 
 
                   t i m e r I d   =   s e t T i m e o u t ( t r i g g e r P a g e R e f r e s h ,   P O L L I N G _ I N T E R V A L ) ; 
 
           } 
 
   
 
 -         f u n c t i o n   b y t e s T o B a s e 6 4 ( b y t e s )   { 
 
 -                 l e t   b i n a r y   =   ' ' ; 
 
 -                 b y t e s . f o r E a c h ( b y t e   = >   {   b i n a r y   + =   S t r i n g . f r o m C h a r C o d e ( b y t e ) ;   } ) ; 
 
 -                 r e t u r n   b t o a ( b i n a r y ) ; 
 
 -         } 
 
 - 
 
 -         f u n c t i o n   b a s e 6 4 T o B y t e s ( v a l u e )   { 
 
 -                 c o n s t   b i n a r y   =   a t o b ( v a l u e ) ; 
 
 -                 r e t u r n   U i n t 8 A r r a y . f r o m ( b i n a r y ,   c h a r   = >   c h a r . c h a r C o d e A t ( 0 ) ) ; 
 
 -         } 
 
 - 
 
 -         a s y n c   f u n c t i o n   g z i p T e x t ( t e x t )   { 
 
 -                 i f   ( ! w i n d o w . C o m p r e s s i o n S t r e a m )   t h r o w   n e w   E r r o r ( ' 0dX4Z_Mc$1	{[  g z i p   X,[	' ) ; 
 
 -                 c o n s t   s t r e a m   =   n e w   B l o b ( [ t e x t ] ) . s t r e a m ( ) . p i p e T h r o u g h ( n e w   C o m p r e s s i o n S t r e a m ( ' g z i p ' ) ) ; 
 
 -                 r e t u r n   n e w   U i n t 8 A r r a y ( a w a i t   n e w   R e s p o n s e ( s t r e a m ) . a r r a y B u f f e r ( ) ) ; 
 
 -         } 
 
 - 
 
 -         a s y n c   f u n c t i o n   g u n z i p T e x t ( b y t e s )   { 
 
 -                 i f   ( ! w i n d o w . D e c o m p r e s s i o n S t r e a m )   t h r o w   n e w   E r r o r ( ' 0dX4Z_Mc$1	{[  g z i p   YtE^' ) ; 
 
 -                 c o n s t   s t r e a m   =   n e w   B l o b ( [ b y t e s ] ) . s t r e a m ( ) . p i p e T h r o u g h ( n e w   D e c o m p r e s s i o n S t r e a m ( ' g z i p ' ) ) ; 
 
 -                 r e t u r n   n e w   R e s p o n s e ( s t r e a m ) . t e x t ( ) ; 
 
 -         } 
 
 - 
 
 -         f u n c t i o n   b u i l d E x p o r t P a y l o a d ( )   { 
 
 -                 c o n s t   a s s i g n m e n t s   =   O b j e c t . e n t r i e s ( h i s t o r y B y A s s i g n m e n t ) . m a p ( ( [ i d ,   h i s t o r y ] )   = >   [ 
 
 -                         i d , 
 
 -                         a s s i g n m e n t N a m e s [ i d ]   | |   ' ' , 
 
 -                         [ . . . h i s t o r y . a r c h i v e d ,   . . . h i s t o r y . r e c e n t ] 
 
 -                 ] ) ; 
 
 -                 r e t u r n   {   v :   3 ,   a :   a s s i g n m e n t s   } ; 
 
 -         } 
 
 - 
 
 -         a s y n c   f u n c t i o n   w r i t e C l i p b o a r d ( t e x t )   { 
 
 -                 i f   ( t y p e o f   G M _ s e t C l i p b o a r d   = = =   ' f u n c t i o n ' )   { 
 
 -                         G M _ s e t C l i p b o a r d ( t e x t ,   ' t e x t ' ) ; 
 
 -                         r e t u r n ; 
 
 -                 } 
 
 -                 i f   ( n a v i g a t o r . c l i p b o a r d   & &   w i n d o w . i s S e c u r e C o n t e x t )   r e t u r n   n a v i g a t o r . c l i p b o a r d . w r i t e T e x t ( t e x t ) ; 
 
 -                 c o n s t   t e x t a r e a   =   d o c u m e n t . c r e a t e E l e m e n t ( ' t e x t a r e a ' ) ; 
 
 -                 t e x t a r e a . v a l u e   =   t e x t ; 
 
 -                 t e x t a r e a . s t y l e . c s s T e x t   =   ' p o s i t i o n : f i x e d ; o p a c i t y : 0 ' ; 
 
 -                 d o c u m e n t . b o d y . a p p e n d C h i l d ( t e x t a r e a ) ; 
 
 -                 t e x t a r e a . s e l e c t ( ) ; 
 
 -                 c o n s t   c o p i e d   =   d o c u m e n t . e x e c C o m m a n d ( ' c o p y ' ) ; 
 
 -                 t e x t a r e a . r e m o v e ( ) ; 
 
 -                 i f   ( ! c o p i e d )   t h r o w   n e w   E r r o r ( ' 4Z_Mc&1ZoSUO0XtX[o' ) ; 
 
 -         } 
 
 - 
 
 -         a s y n c   f u n c t i o n   r e a d C l i p b o a r d ( )   { 
 
 -                 i f   ( n a v i g a t o r . c l i p b o a r d   & &   w i n d o w . i s S e c u r e C o n t e x t )   r e t u r n   ( a w a i t   n a v i g a t o r . c l i p b o a r d . r e a d T e x t ( ) ) . t r i m ( ) ; 
 
 -                 c o n s t   t e x t   =   w i n d o w . p r o m p t ( ' 0dX  H T T P   $i8upom]StLk|Rȓ?m0Y'hXtX[oP~?jR5pNqV(RluX[f`~{? ) ; 
 
 -                 i f   ( t e x t   = = =   n u l l )   t h r o w   n e w   E r r o r ( ' [cG_ZXO? ) ; 
 
 -                 r e t u r n   t e x t . t r i m ( ) ; 
 
 -         } 
 
 - 
 
 -         a s y n c   f u n c t i o n   e x p o r t H i s t o r y ( )   { 
 
 -                 c o n s t   c o u n t   =   O b j e c t . k e y s ( h i s t o r y B y A s s i g n m e n t ) . r e d u c e ( ( s u m ,   a s s i g n m e n t I d )   = >   s u m   +   g e t A s s i g n m e n t P o i n t s ( a s s i g n m e n t I d ) . l e n g t h ,   0 ) ; 
 
 -                 i f   ( ! c o u n t )   t h r o w   n e w   E r r o r ( ' Z!AnYQykXUv_tg}' ) ; 
 
 -                 c o n s t   c o m p r e s s e d   =   a w a i t   g z i p T e x t ( J S O N . s t r i n g i f y ( b u i l d E x p o r t P a y l o a d ( ) ) ) ; 
 
 -                 c o n s t   t e x t   =   E X P O R T _ P R E F I X   +   b y t e s T o B a s e 6 4 ( c o m p r e s s e d ) ; 
 
 -                 a w a i t   w r i t e C l i p b o a r d ( t e x t ) ; 
 
 -                 s e t S t a t u s ( ` [cQ? $ { c o u n t }   ɓ 0f}$ { t e x t . l e n g t h }   pCifX,   ' # 2 8 a 7 4 5 ' ) ; 
 
 -         } 
 
 - 
 
 -         f u n c t i o n   m e r g e I m p o r t P a y l o a d ( p a y l o a d )   { 
 
 -                 i f   ( ! p a y l o a d   | |   ! [ 1 ,   2 ,   3 ] . i n c l u d e s ( p a y l o a d . v )   | |   ! A r r a y . i s A r r a y ( p a y l o a d . a ) )   t h r o w   n e w   E r r o r ( ' XUv_HrA]͓Nq!}Óref' ) ; 
 
 -                 l e t   i m p o r t e d   =   0 ; 
 
 -                 p a y l o a d . a . f o r E a c h ( e n t r y   = >   { 
 
 -                         i f   ( ! A r r a y . i s A r r a y ( e n t r y )   | |   t y p e o f   e n t r y [ 0 ]   ! = =   ' s t r i n g '   | |   ! A r r a y . i s A r r a y ( e n t r y [ 2 ] ) )   r e t u r n ; 
 
 -                         c o n s t   [ a s s i g n m e n t I d ,   n a m e ,   s o u r c e ]   =   e n t r y ; 
 
 -                         c o n s t   r o w s   =   p a y l o a d . v   = = =   2 
 
 -                                 ?   s o u r c e . f l a t M a p ( d a y   = >   A r r a y . i s A r r a y ( d a y )   & &   A r r a y . i s A r r a y ( d a y [ 1 ] )   ?   d a y [ 1 ]   :   [ ] ) 
 
 -                                 :   s o u r c e ; 
 
 -                         c o n s t   e x i s t i n g   =   n e w   S e t ( g e t A s s i g n m e n t P o i n t s ( a s s i g n m e n t I d ) . m a p ( p o i n t   = >   p o i n t . t i m e s t a m p ) ) ; 
 
 -                         c o n s t   m e r g e d   =   [ 
 
 -                                 . . . ( h i s t o r y B y A s s i g n m e n t [ a s s i g n m e n t I d ] ? . a r c h i v e d   | |   [ ] ) , 
 
 -                                 . . . ( h i s t o r y B y A s s i g n m e n t [ a s s i g n m e n t I d ] ? . r e c e n t   | |   [ ] ) 
 
 -                         ] ; 
 
 -                         r o w s . f o r E a c h ( r o w   = >   { 
 
 -                                 c o n s t   p o i n t   =   n o r m a l i z e P o i n t ( r o w ) ; 
 
 -                                 i f   ( ! p o i n t   | |   e x i s t i n g . h a s ( p o i n t [ 0 ] ) )   r e t u r n ; 
 
 -                                 m e r g e d . p u s h ( p o i n t ) ; 
 
 -                                 e x i s t i n g . a d d ( p o i n t [ 0 ] ) ; 
 
 -                                 i m p o r t e d   + =   1 ; 
 
 -                         } ) ; 
 
 -                         h i s t o r y B y A s s i g n m e n t [ a s s i g n m e n t I d ]   =   c o m p a c t P o i n t s ( m e r g e d ) ; 
 
 -                         a s s i g n m e n t N a m e s [ a s s i g n m e n t I d ]   =   a s s i g n m e n t N a m e s [ a s s i g n m e n t I d ]   | |   n a m e   | |   a s s i g n m e n t I d ; 
 
 -                 } ) ; 
 
 -                 r e t u r n   i m p o r t e d ; 
 
 -         } 
 
 - 
 
 -         a s y n c   f u n c t i o n   i m p o r t H i s t o r y ( )   { 
 
 -                 c o n s t   t e x t   =   a w a i t   r e a d C l i p b o a r d ( ) ; 
 
 -                 i f   ( ! t e x t . s t a r t s W i t h ( E X P O R T _ P R E F I X ) )   t h r o w   n e w   E r r o r ( ' SGRɓ8YQm]i  A I   ")1zVXUv_HrA]' ) ; 
 
 -                 c o n s t   p a y l o a d   =   J S O N . p a r s e ( a w a i t   g u n z i p T e x t ( b a s e 6 4 T o B y t e s ( t e x t . s l i c e ( E X P O R T _ P R E F I X . l e n g t h ) ) ) ) ; 
 
 -                 c o n s t   i m p o r t e d   =   m e r g e I m p o r t P a y l o a d ( p a y l o a d ) ; 
 
 -                 i f   ( ! i m p o r t e d )   t h r o w   n e w   E r r o r ( ' ȓDB_gr_ZX߂(Rgtg}' ) ; 
 
 -                 a w a i t   s a v e H i s t o r y ( ) ; 
 
 -                 r e f r e s h A s s i g n m e n t s ( ) ; 
 
 -                 u p d a t e C h a r t ( ) ; 
 
 -                 s e t S t a t u s ( ` [cO? $ { i m p o r t e d }   ɓ!gtg}` ,   ' # 2 8 a 7 4 5 ' ) ; 
 
 -         } 
 
 - 
 
 -         a s y n c   f u n c t i o n   r u n C l i p b o a r d A c t i o n ( a c t i o n )   { 
 
 -                 i f   ( i s C l i p b o a r d B u s y )   r e t u r n ; 
 
 -                 i s C l i p b o a r d B u s y   =   t r u e ; 
 
 -                 t r y   { 
 
 -                         i f   ( a c t i o n   = = =   ' e x p o r t ' )   a w a i t   e x p o r t H i s t o r y ( ) ; 
 
 -                         e l s e   { 
 
 -                                 s e t S t a t u s ( ' YEjn5pNqS. . . ' ,   ' # f f c 1 0 7 ' ) ; 
 
 -                                 a w a i t   i m p o r t H i s t o r y ( ) ; 
 
 -                         } 
 
 -                 }   c a t c h   ( e r r o r )   { 
 
 -                         c o n s o l e . w a r n ( ' [ ")1zV)b6^]   SGRɓc7dcmnQ0t? ,   e r r o r ) ; 
 
 -                         s e t S t a t u s ( e r r o r . m e s s a g e   | |   ' SGRɓc7dcmnQ0t? ,   ' # d c 3 5 4 5 ' ) ; 
 
 -                 }   f i n a l l y   { 
 
 -                         i s C l i p b o a r d B u s y   =   f a l s e ; 
 
 -                 } 
 
 -         } 
 
 +         / /   9 9   ZY  9 9 
 
   
 
           a s y n c   f u n c t i o n   s t a r t ( )   { 
 
 -                 a w a i t   l o a d H i s t o r y ( ) ; 
 
 -                 c r e a t e U I ( ) ; 
 
                   h o o k F e t c h ( ) ; 
 
 -                 u p d a t e C h a r t ( ) ; 
 
 -                 s e t S t a t u s ( ' [c`T}YEjnh(hRg. . . ' ,   ' # 6 c 7 5 7 d ' ) ; 
 
 +                 c o n s o l e . l o g ( ' [ ")1zV)b6^]   t-lpn  V 7 . 0   [c`T}~pVƕU[_}? ) ; 
 
                   t r i g g e r P a g e R e f r e s h ( ) ; 
 
 -                 w i n d o w . a d d E v e n t L i s t e n e r ( ' r e s i z e ' ,   ( )   = >   { 
 
 -                         c o n s t   c o n t a i n e r   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' u s a g e - m o n i t o r - c o n t a i n e r ' ) ; 
 
 -                         i f   ( ! c o n t a i n e r )   r e t u r n ; 
 
 -                         c o n s t   r e c t   =   c o n t a i n e r . g e t B o u n d i n g C l i e n t R e c t ( ) ; 
 
 -                         c o n s t r a i n P a n e l ( c o n t a i n e r ,   r e c t ) ; 
 
 -                         s a v e P a n e l L a y o u t ( c o n t a i n e r ) ; 
 
 -                         m y C h a r t ? . r e s i z e ( ) ; 
 
 -                         m y C h a r t ? . u p d a t e ( ' n o n e ' ) ; 
 
 -                 } ) ; 
 
 -                 w i n d o w . a d d E v e n t L i s t e n e r ( ' b e f o r e u n l o a d ' ,   ( )   = >   { 
 
 -                         c l e a r T i m e o u t ( t i m e r I d ) ; 
 
 -                         c a n c e l A n i m a t i o n F r a m e ( r e f r e s h A n i m a t i o n I d ) ; 
 
 -                 } ) ; 
 
 -                 c o n s o l e . l o g ( ' [ ")1zV)b6^]   t-lpn  V 5 . 0   [c`T#1 ? ) ; 
 
 +                 w i n d o w . a d d E v e n t L i s t e n e r ( ' b e f o r e u n l o a d ' ,   ( )   = >   c l e a r T i m e o u t ( t i m e r I d ) ) ; 
 
           } 
 
   
 
           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 ' )   s t a r t ( ) ; 
 
 