            o"path cG r a n t s / B u s i n e s s   G r a n t s   P r o j e c t / G r a n t s   A p p   O b s i d i a n / G r a n t   A p p   O b s i d i a n   0 5 2 0 2 5 . m d "tsN @ːyB"data ch o w   c o u l d   i   b u i l d   t h i s   w h o l e   a p p   i n   a   l o c a l   o b s i d i a n   w i t h   p r o j e c t s   p l u g i n   o r   a n y   o t h e r   p l u g i n s   y o u   r e c o m m e n d 
 
 ! [ A I ] ( C : \ U s e r s \ H P \ N e x t c l o u d \ P o r t a b l e A p p s \ O b s i d i a n P o r t a b l e \ D a t a \ i m a g e s \ i m g . i c o n s 8 _ c l a u d e _ b r o w n . p n g ) C l a u d e   3 . 7   S o n n e t   ( T h i n k i n g ) 
 
 #   B u i l d i n g   a   G r a n t   M a n a g e m e n t   S y s t e m   i n   O b s i d i a n 
 
 Y o u   c a n   c r e a t e   a   s i m p l i f i e d   b u t   f u n c t i o n a l   v e r s i o n   o f   t h e   g r a n t   m a n a g e m e n t   s y s t e m   w i t h i n   O b s i d i a n   u s i n g   v a r i o u s   p l u g i n s .   T h i s   a p p r o a c h   l e v e r a g e s   O b s i d i a n ' s   p o w e r f u l   n o t e - t a k i n g   a n d   k n o w l e d g e   m a n a g e m e n t   c a p a b i l i t i e s   w h i l e   a d d i n g   f u n c t i o n a l i t y   t h r o u g h   c o m m u n i t y   p l u g i n s . 
 
 # #   C o r e   P l u g i n s   N e e d e d 
 
 1 .   P r o j e c t s  -   F o r   t a s k   m a n a g e m e n t   a n d   p r o j e c t   o r g a n i z a t i o n 
 2 .   D a t a v i e w  -   F o r   d a t a b a s e - l i k e   q u e r i e s   a n d   v i e w s 
 3 .   T e m p l a t e r  -   F o r   c r e a t i n g   t e m p l a t e s   f o r   d i f f e r e n t   c o n t e n t   t y p e s 
 4 .   C a l e n d a r  -   F o r   d e a d l i n e   t r a c k i n g 
 5 .   K a n b a n  -   F o r   v i s u a l   w o r k f l o w   m a n a g e m e n t 
 6 .   Q u i c k A d d  -   F o r   r a p i d   d a t a   e n t r y 
 7 .   B u t t o n s  -   F o r   i n t e r a c t i v e   e l e m e n t s 
 8 .   T a s k s  -   F o r   e n h a n c e d   t a s k   m a n a g e m e n t 
 9 .   O b s i d i a n   E x c a l i d r a w  -   F o r   v i s u a l   p l a n n i n g   a n d   d i a g r a m s 
 1 0 .   O b s i d i a n   L e a f l e t  -   F o r   m a p   i n t e g r a t i o n   ( o p t i o n a l ) 
 1 1 .   P e r i o d i c   N o t e s  -   F o r   r e g u l a r   r e v i e w   s c h e d u l e s 
 1 2 .   A d v a n c e d   T a b l e s  -   F o r   b e t t e r   t a b l e   m a n a g e m e n t 
 1 3 .   O b s i d i a n   G i t  -   F o r   v e r s i o n   c o n t r o l   a n d   b a c k u p 
 
 # #   F o l d e r   S t r u c t u r e 
 
 ` ` ` 
 G r a n t   M a n a g e m e n t / 
 % % %  _ t e m p l a t e s / 
 %      % % %  b u s i n e s s . m d 
 %      % % %  g r a n t . m d 
 %      % % %  a p p l i c a t i o n . m d 
 %      % % %  s e c t i o n . m d 
 %      % % %  d a i l y _ n o t e . m d 
 % % %  _ q u e r i e s / 
 %      % % %  u p c o m i n g _ d e a d l i n e s . m d 
 %      % % %  a c t i v e _ a p p l i c a t i o n s . m d 
 %      % % %  g r a n t _ m a t c h e s . m d 
 % % %  b u s i n e s s e s / 
 %      % % %  [ i n d i v i d u a l   b u s i n e s s   f i l e s ] 
 % % %  g r a n t s / 
 %      % % %  [ i n d i v i d u a l   g r a n t   f i l e s ] 
 % % %  a p p l i c a t i o n s / 
 %      % % %  [ i n d i v i d u a l   a p p l i c a t i o n   f i l e s ] 
 % % %  s e c t i o n s / 
 %      % % %  [ a p p l i c a t i o n   s e c t i o n   f i l e s ] 
 % % %  d a s h b o a r d s / 
 %      % % %  m a i n _ d a s h b o a r d . m d 
 %      % % %  b u s i n e s s _ d a s h b o a r d . m d 
 %      % % %  g r a n t _ d a s h b o a r d . m d 
 % % %  k a n b a n / 
 %      % % %  a p p l i c a t i o n s _ b o a r d . m d 
 %      % % %  g r a n t s _ b o a r d . m d 
 % % %  s e t t i n g s . m d 
 ` ` ` 
 
 # #   I m p l e m e n t a t i o n   S t e p s 
 
 # # #   1 .   I n s t a l l   R e q u i r e d   P l u g i n s 
 
 F i r s t ,   i n s t a l l   a l l   t h e   n e c e s s a r y   p l u g i n s   f r o m   O b s i d i a n ' s   c o m m u n i t y   p l u g i n s   s e c t i o n : 
 
 1 .   O p e n   O b s i d i a n   S e t t i n g s 
 2 .   G o   t o   C o m m u n i t y   P l u g i n s 
 3 .   B r o w s e   a n d   i n s t a l l   e a c h   p l u g i n   l i s t e d   a b o v e 
 4 .   E n a b l e   t h e   p l u g i n s   a f t e r   i n s t a l l a t i o n 
 
 # # #   2 .   C r e a t e   T e m p l a t e s 
 
 # # # #   B u s i n e s s   T e m p l a t e   ( 
 
 ` ` ` 
 _ t e m p l a t e s / b u s i n e s s . m d 
 ` ` ` 
 
 ) 
 
 ` ` ` ` 
 - - - 
 t y p e :   b u s i n e s s 
 n a m e :   " { { N A M E } } " 
 b u s i n e s s _ t y p e :   " { { T Y P E } } " 
 y e a r _ f o u n d e d :   { { Y E A R } } 
 a n n u a l _ r e v e n u e :   { { R E V E N U E } } 
 e m p l o y e e _ c o u n t :   { { E M P L O Y E E S } } 
 o w n e r _ d e m o g r a p h i c s :   
     -   { { D E M O G R A P H I C S } } 
 c e r t i f i c a t i o n s : 
     -   { { C E R T I F I C A T I O N S } } 
 w e b s i t e :   " { { W E B S I T E } } " 
 a d d r e s s :   " { { A D D R E S S } } " 
 c o n t a c t _ e m a i l :   " { { E M A I L } } " 
 c o n t a c t _ p h o n e :   " { { P H O N E } } " 
 c r e a t e d :   { { d a t e } } 
 l a s t _ m o d i f i e d :   { { d a t e } } 
 - - - 
 
 #   { { N A M E } } 
 
 # #   B u s i n e s s   D e s c r i p t i o n 
 { { D E S C R I P T I O N } } 
 
 # #   I m p a c t   S t a t e m e n t 
 { { I M P A C T } } 
 
 # #   N o t e s 
 { { N O T E S } } 
 
 # #   R e l a t e d 
 # # #   G r a n t s 
 ` ` ` d a t a v i e w 
 T A B L E   g r a n t _ n a m e ,   i s s u e r ,   a m o u n t ,   a p p l i c a t i o n _ d e a d l i n e ,   m a t c h _ s c o r e 
 F R O M   # g r a n t 
 W H E R E   c o n t a i n s ( f i l e . o u t l i n k s ,   t h i s . f i l e . l i n k ) 
 S O R T   m a t c h _ s c o r e   D E S C 
 ` ` ` ` 
 
 # # #   A p p l i c a t i o n s 
 
 ` ` ` 
 T A B L E   g r a n t _ n a m e ,   s t a t u s ,   c o m p l e t i o n _ p e r c e n t a g e ,   s u b m i s s i o n _ d a t e 
 F R O M   # a p p l i c a t i o n 
 W H E R E   b u s i n e s s   =   t h i s . f i l e . l i n k 
 S O R T   s u b m i s s i o n _ d a t e   D E S C 
 ` ` ` 
 
 ` ` ` ` 
 
 # # # #   G r a n t   T e m p l a t e   ( ` _ t e m p l a t e s / g r a n t . m d ` ) 
 
 ` ` ` m a r k d o w n 
 - - - 
 t y p e :   g r a n t 
 g r a n t _ n a m e :   " { { N A M E } } " 
 i s s u e r :   " { { I S S U E R } } " 
 a m o u n t :   { { A M O U N T } } 
 a p p l i c a t i o n _ d e a d l i n e :   { { d a t e : Y Y Y Y - M M - D D } } 
 f r e q u e n c y :   " { { F R E Q U E N C Y } } " 
 g r a n t _ c a t e g o r i e s : 
     -   { { C A T E G O R I E S } } 
 d e m o g r a p h i c _ r e q u i r e m e n t s : 
     -   { { D E M O G R A P H I C S } } 
 g r a n t _ u r l :   " { { U R L } } " 
 e l i g i b i l i t y :   " { { E L I G I B I L I T Y } } " 
 m a t c h _ s c o r e :   { { S C O R E } } 
 c r e a t e d :   { { d a t e } } 
 l a s t _ m o d i f i e d :   { { d a t e } } 
 t a g s :   g r a n t 
 - - - 
 
 #   { { N A M E } } 
 
 # #   D e s c r i p t i o n 
 { { D E S C R I P T I O N } } 
 
 # #   E l i g i b i l i t y 
 { { E L I G I B I L I T Y } } 
 
 # #   N o t e s 
 { { N O T E S } } 
 
 # #   D a y s   U n t i l   D e a d l i n e 
 ` ` ` d a t a v i e w j s 
 c o n s t   d e a d l i n e   =   d v . c u r r e n t ( ) . a p p l i c a t i o n _ d e a d l i n e ; 
 i f   ( d e a d l i n e )   { 
     c o n s t   t o d a y   =   n e w   D a t e ( ) ; 
     c o n s t   d e a d l i n e D a t e   =   n e w   D a t e ( d e a d l i n e ) ; 
     c o n s t   d a y s L e f t   =   M a t h . c e i l ( ( d e a d l i n e D a t e   -   t o d a y )   /   ( 1 0 0 0   *   6 0   *   6 0   *   2 4 ) ) ; 
     
     l e t   c o l o r   =   " g r e e n " ; 
     i f   ( d a y s L e f t   < =   3 )   c o l o r   =   " r e d " ; 
     e l s e   i f   ( d a y s L e f t   < =   7 )   c o l o r   =   " o r a n g e " ; 
     
     d v . p a r a g r a p h ( ` < s p a n   s t y l e = " c o l o r : < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > c o < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > o r < / s p a n > < / s p a n > < s p a n   c l a s s = " m p u n c t " > ; < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 1 6 6 7 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 7 6 4 e m ; " > f < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > o < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 2 2 2 e m ; " > < / s p a n > < s p a n   c l a s s = " m b i n " > "< / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 2 2 2 e m ; " > < / s p a n > < / s p a n > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 6 9 1 e m ; " > w < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 3 5 8 8 e m ; " > g < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > h < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 7 7 8 e m ; " > < / s p a n > < s p a n   c l a s s = " m r e l " > : < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 7 7 8 e m ; " > < / s p a n > < / s p a n > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > b < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > o < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > d < / s p a n > < s p a n   c l a s s = " m p u n c t " > ; < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 1 6 6 7 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > & q u o t ; < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 7 7 8 e m ; " > < / s p a n > < s p a n   c l a s s = " m r e l " > & g t ; < / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { d a y s L e f t }   d a y s   l e f t < / s p a n > ` ) ; 
 }   e l s e   { 
     d v . p a r a g r a p h ( " N o   d e a d l i n e   s p e c i f i e d " ) ; 
 } 
 ` ` ` ` 
 
 # #   M a t c h i n g   B u s i n e s s e s 
 
 ` ` ` 
 T A B L E   b u s i n e s s _ t y p e ,   a n n u a l _ r e v e n u e ,   o w n e r _ d e m o g r a p h i c s 
 F R O M   # b u s i n e s s 
 W H E R E   m a t c h _ s c o r e   >   5 0 
 S O R T   m a t c h _ s c o r e   D E S C 
 ` ` ` 
 
 # #   A p p l i c a t i o n s 
 
 ` ` ` 
 T A B L E   b u s i n e s s . n a m e   a s   " B u s i n e s s " ,   s t a t u s ,   c o m p l e t i o n _ p e r c e n t a g e ,   s u b m i s s i o n _ d a t e 
 F R O M   # a p p l i c a t i o n 
 W H E R E   g r a n t   =   t h i s . f i l e . l i n k 
 S O R T   s u b m i s s i o n _ d a t e   D E S C 
 ` ` ` 
 
 # #   A c t i o n s 
 
 ` ` ` 
 n a m e   C r e a t e   A p p l i c a t i o n 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   C r e a t e   A p p l i c a t i o n   f o r   t h i s   G r a n t 
 ` ` ` 
 
 ` ` ` ` 
 
 # # # #   A p p l i c a t i o n   T e m p l a t e   ( ` _ t e m p l a t e s / a p p l i c a t i o n . m d ` ) 
 
 ` ` ` m a r k d o w n 
 - - - 
 t y p e :   a p p l i c a t i o n 
 b u s i n e s s :   " [ [ { { B U S I N E S S } } ] ] " 
 g r a n t :   " [ [ { { G R A N T } } ] ] " 
 s t a t u s :   " r e s e a r c h i n g " 
 c o m p l e t i o n _ p e r c e n t a g e :   0 
 a s s i g n e d _ t o :   " { { U S E R } } " 
 s u b m i s s i o n _ d a t e :   
 c r e a t e d :   { { d a t e } } 
 l a s t _ m o d i f i e d :   { { d a t e } } 
 t a g s :   a p p l i c a t i o n 
 - - - 
 
 #   A p p l i c a t i o n :   { { B U S I N E S S } }   -   { { G R A N T } } 
 
 # #   S t a t u s :   { { s t a t u s } } 
 # #   C o m p l e t i o n :   { { c o m p l e t i o n _ p e r c e n t a g e } } % 
 
 ` ` ` d a t a v i e w j s 
 c o n s t   p e r c e n t a g e   =   d v . c u r r e n t ( ) . c o m p l e t i o n _ p e r c e n t a g e ; 
 c o n s t   w i d t h   =   2 0 0 ; 
 c o n s t   f i l l e d W i d t h   =   ( p e r c e n t a g e   /   1 0 0 )   *   w i d t h ; 
 
 c o n s t   h t m l   =   ` < d i v   s t y l e = " w i d t h : $ { w i d t h } p x ; h e i g h t : 2 0 p x ; b a c k g r o u n d - c o l o r : # e e e ; b o r d e r - r a d i u s : 1 0 p x ; o v e r f l o w : h i d d e n ; " > 
     < d i v   s t y l e = " w i d t h : $ { f i l l e d W i d t h } p x ; h e i g h t : 2 0 p x ; b a c k g r o u n d - c o l o r : # 4 C A F 5 0 ; " > < / d i v > 
 < / d i v > ` ; 
 
 d v . p a r a g r a p h ( h t m l ) ; 
 ` ` ` ` 
 
 # #   S e c t i o n s 
 
 ` ` ` 
 T A B L E   s e c t i o n _ n a m e ,   i s _ c o m p l e t e 
 F R O M   # s e c t i o n 
 W H E R E   a p p l i c a t i o n   =   t h i s . f i l e . l i n k 
 S O R T   s e c t i o n _ o r d e r   A S C 
 ` ` ` 
 
 # #   G r a n t   D e t a i l s 
 
 ` ` ` 
 T A B L E   i s s u e r ,   a m o u n t ,   a p p l i c a t i o n _ d e a d l i n e 
 F R O M   " { { G R A N T } } " 
 L I M I T   1 
 ` ` ` 
 
 # #   B u s i n e s s   D e t a i l s 
 
 ` ` ` 
 T A B L E   b u s i n e s s _ t y p e ,   o w n e r _ d e m o g r a p h i c s 
 F R O M   " { { B U S I N E S S } } " 
 L I M I T   1 
 ` ` ` 
 
 # #   A c t i o n s 
 
 ` ` ` 
 n a m e   A d d   S e c t i o n 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   A d d   S e c t i o n   t o   A p p l i c a t i o n 
 ` ` ` 
 
 ` ` ` 
 n a m e   M a r k   R e a d y 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   M a r k   A p p l i c a t i o n   a s   R e a d y 
 ` ` ` 
 
 ` ` ` ` 
 
 # # # #   S e c t i o n   T e m p l a t e   ( ` _ t e m p l a t e s / s e c t i o n . m d ` ) 
 
 ` ` ` m a r k d o w n 
 - - - 
 t y p e :   s e c t i o n 
 a p p l i c a t i o n :   " [ [ { { A P P L I C A T I O N } } ] ] " 
 s e c t i o n _ n a m e :   " { { N A M E } } " 
 s e c t i o n _ o r d e r :   { { O R D E R } } 
 i s _ c o m p l e t e :   f a l s e 
 c r e a t e d :   { { d a t e } } 
 l a s t _ m o d i f i e d :   { { d a t e } } 
 t a g s :   s e c t i o n 
 - - - 
 
 #   { { N A M E } }   -   { { A P P L I C A T I O N } } 
 
 # #   C o n t e n t 
 { { C O N T E N T } } 
 
 # #   A c t i o n s 
 ` ` ` b u t t o n 
 n a m e   G e n e r a t e   A I   C o n t e n t 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   G e n e r a t e   A I   C o n t e n t 
 ` ` ` ` 
 
 ` ` ` 
 n a m e   M a r k   C o m p l e t e 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   T o g g l e   S e c t i o n   C o m p l e t e 
 ` ` ` 
 
 ` ` ` ` 
 
 # # #   3 .   S e t   U p   Q u i c k A d d   C o m m a n d s 
 
 C r e a t e   t h e   f o l l o w i n g   Q u i c k A d d   c o m m a n d s : 
 
 1 .   * * C r e a t e   B u s i n e s s * * 
       -   T y p e :   T e m p l a t e 
       -   T e m p l a t e :   ` _ t e m p l a t e s / b u s i n e s s . m d ` 
       -   F i l e   d e s t i n a t i o n :   ` b u s i n e s s e s / { { N A M E } } . m d ` 
       -   V a r i a b l e s :   N A M E ,   T Y P E ,   Y E A R ,   R E V E N U E ,   E M P L O Y E E S ,   D E M O G R A P H I C S ,   C E R T I F I C A T I O N S ,   W E B S I T E ,   A D D R E S S ,   E M A I L ,   P H O N E ,   D E S C R I P T I O N ,   I M P A C T ,   N O T E S 
 
 2 .   * * C r e a t e   G r a n t * * 
       -   T y p e :   T e m p l a t e 
       -   T e m p l a t e :   ` _ t e m p l a t e s / g r a n t . m d ` 
       -   F i l e   d e s t i n a t i o n :   ` g r a n t s / { { N A M E } } . m d ` 
       -   V a r i a b l e s :   N A M E ,   I S S U E R ,   A M O U N T ,   F R E Q U E N C Y ,   C A T E G O R I E S ,   D E M O G R A P H I C S ,   U R L ,   E L I G I B I L I T Y ,   S C O R E ,   D E S C R I P T I O N ,   N O T E S 
 
 3 .   * * C r e a t e   A p p l i c a t i o n   f o r   t h i s   G r a n t * * 
       -   T y p e :   T e m p l a t e 
       -   T e m p l a t e :   ` _ t e m p l a t e s / a p p l i c a t i o n . m d ` 
       -   F i l e   d e s t i n a t i o n :   ` a p p l i c a t i o n s / { { B U S I N E S S } }   -   { { G R A N T } } . m d ` 
       -   V a r i a b l e s :   B U S I N E S S ,   G R A N T ,   U S E R 
 
 4 .   * * A d d   S e c t i o n   t o   A p p l i c a t i o n * * 
       -   T y p e :   T e m p l a t e 
       -   T e m p l a t e :   ` _ t e m p l a t e s / s e c t i o n . m d ` 
       -   F i l e   d e s t i n a t i o n :   ` s e c t i o n s / { { N A M E } }   -   { { A P P L I C A T I O N } } . m d ` 
       -   V a r i a b l e s :   A P P L I C A T I O N ,   N A M E ,   O R D E R ,   C O N T E N T 
 
 5 .   * * G e n e r a t e   A I   C o n t e n t * * 
       -   T y p e :   M a c r o 
       -   A c t i o n s : 
           -   P r o m p t   f o r   c o n t e n t   t y p e 
           -   C r e a t e   a   n o t e   w i t h   A I - g e n e r a t e d   c o n t e n t   ( s i m u l a t e d ) 
           -   I n s e r t   c o n t e n t   i n t o   c u r r e n t   n o t e 
 
 6 .   * * T o g g l e   S e c t i o n   C o m p l e t e * * 
       -   T y p e :   M a c r o 
       -   A c t i o n s : 
           -   T o g g l e   f r o n t m a t t e r   p r o p e r t y   ` i s _ c o m p l e t e ` 
           -   U p d a t e   a p p l i c a t i o n   c o m p l e t i o n   p e r c e n t a g e 
 
 7 .   * * M a r k   A p p l i c a t i o n   a s   R e a d y * * 
       -   T y p e :   M a c r o 
       -   A c t i o n s : 
           -   C h a n g e   f r o n t m a t t e r   p r o p e r t y   ` s t a t u s `   t o   " r e a d y " 
           -   U p d a t e   l a s t _ m o d i f i e d   d a t e 
 
 # # #   4 .   C r e a t e   M a i n   D a s h b o a r d 
 
 C r e a t e   a   ` d a s h b o a r d s / m a i n _ d a s h b o a r d . m d `   f i l e : 
 
 ` ` ` m a r k d o w n 
 #   G r a n t   M a n a g e m e n t   D a s h b o a r d 
 
 # #   U p c o m i n g   D e a d l i n e s 
 ` ` ` d a t a v i e w 
 T A B L E   g r a n t _ n a m e   a s   " G r a n t " ,   i s s u e r   a s   " I s s u e r " ,   a p p l i c a t i o n _ d e a d l i n e   a s   " D e a d l i n e " ,   ( d a t e ( a p p l i c a t i o n _ d e a d l i n e )   -   d a t e ( t o d a y ) ) . d a y   a s   " D a y s   L e f t " 
 F R O M   # g r a n t 
 W H E R E   a p p l i c a t i o n _ d e a d l i n e   ! =   n u l l   A N D   a p p l i c a t i o n _ d e a d l i n e   > =   d a t e ( t o d a y )   A N D   a p p l i c a t i o n _ d e a d l i n e   < =   d a t e ( t o d a y )   +   d u r ( 1 4   d a y s ) 
 S O R T   a p p l i c a t i o n _ d e a d l i n e   A S C 
 ` ` ` ` 
 
 # #   M y   A p p l i c a t i o n s 
 
 ` ` ` 
 T A B L E   b u s i n e s s . n a m e   a s   " B u s i n e s s " ,   g r a n t . g r a n t _ n a m e   a s   " G r a n t " ,   s t a t u s   a s   " S t a t u s " ,   c o m p l e t i o n _ p e r c e n t a g e   a s   " C o m p l e t i o n " 
 F R O M   # a p p l i c a t i o n 
 W H E R E   a s s i g n e d _ t o   =   " { { c u r r e n t _ u s e r } } " 
 S O R T   c o m p l e t i o n _ p e r c e n t a g e   D E S C 
 ` ` ` 
 
 # #   R e c e n t   G r a n t s 
 
 ` ` ` 
 T A B L E   g r a n t _ n a m e   a s   " G r a n t " ,   i s s u e r   a s   " I s s u e r " ,   a m o u n t   a s   " A m o u n t " ,   a p p l i c a t i o n _ d e a d l i n e   a s   " D e a d l i n e " 
 F R O M   # g r a n t 
 S O R T   f i l e . c t i m e   D E S C 
 L I M I T   5 
 ` ` ` 
 
 # #   S t a t i s t i c s 
 
 ` ` ` 
 / /   C o u n t   b u s i n e s s e s 
 c o n s t   b u s i n e s s e s   =   d v . p a g e s ( " # b u s i n e s s " ) . l e n g t h ; 
 
 / /   C o u n t   g r a n t s 
 c o n s t   g r a n t s   =   d v . p a g e s ( " # g r a n t " ) . l e n g t h ; 
 
 / /   C o u n t   a p p l i c a t i o n s 
 c o n s t   a p p l i c a t i o n s   =   d v . p a g e s ( " # a p p l i c a t i o n " ) . l e n g t h ; 
 
 / /   C o u n t   w o n   a p p l i c a t i o n s 
 c o n s t   w o n A p p l i c a t i o n s   =   d v . p a g e s ( " # a p p l i c a t i o n " ) . w h e r e ( p   = >   p . s t a t u s   = = =   " w o n " ) . l e n g t h ; 
 
 / /   C a l c u l a t e   s u c c e s s   r a t e 
 c o n s t   s u b m i t t e d A p p l i c a t i o n s   =   d v . p a g e s ( " # a p p l i c a t i o n " ) . w h e r e ( p   = >   [ " s u b m i t t e d " ,   " w o n " ,   " d e c l i n e d " ] . i n c l u d e s ( p . s t a t u s ) ) . l e n g t h ; 
 c o n s t   s u c c e s s R a t e   =   s u b m i t t e d A p p l i c a t i o n s   >   0   ?   M a t h . r o u n d ( ( w o n A p p l i c a t i o n s   /   s u b m i t t e d A p p l i c a t i o n s )   *   1 0 0 )   :   0 ; 
 
 / /   C r e a t e   H T M L   t a b l e 
 c o n s t   h t m l   =   ` 
 < d i v   s t y l e = " d i s p l a y : f l e x ; f l e x - w r a p : w r a p ; g a p : 1 0 p x ; " > 
     < d i v   s t y l e = " b a c k g r o u n d - c o l o r : # 4 2 8 7 f 5 ; c o l o r : w h i t e ; p a d d i n g : 1 5 p x ; b o r d e r - r a d i u s : 5 p x ; w i d t h : 2 0 0 p x ; " > 
         < h 3   s t y l e = " m a r g i n : 0 ; " > $ { b u s i n e s s e s } < / h 3 > 
         < p   s t y l e = " m a r g i n : 0 ; " > B u s i n e s s e s < / p > 
     < / d i v > 
     < d i v   s t y l e = " b a c k g r o u n d - c o l o r : # f 5 a 7 4 2 ; c o l o r : w h i t e ; p a d d i n g : 1 5 p x ; b o r d e r - r a d i u s : 5 p x ; w i d t h : 2 0 0 p x ; " > 
         < h 3   s t y l e = " m a r g i n : 0 ; " > $ { g r a n t s } < / h 3 > 
         < p   s t y l e = " m a r g i n : 0 ; " > G r a n t s < / p > 
     < / d i v > 
     < d i v   s t y l e = " b a c k g r o u n d - c o l o r : # 4 2 f 5 8 4 ; c o l o r : w h i t e ; p a d d i n g : 1 5 p x ; b o r d e r - r a d i u s : 5 p x ; w i d t h : 2 0 0 p x ; " > 
         < h 3   s t y l e = " m a r g i n : 0 ; " > $ { a p p l i c a t i o n s } < / h 3 > 
         < p   s t y l e = " m a r g i n : 0 ; " > A p p l i c a t i o n s < / p > 
     < / d i v > 
     < d i v   s t y l e = " b a c k g r o u n d - c o l o r : # f 5 4 2 4 2 ; c o l o r : w h i t e ; p a d d i n g : 1 5 p x ; b o r d e r - r a d i u s : 5 p x ; w i d t h : 2 0 0 p x ; " > 
         < h 3   s t y l e = " m a r g i n : 0 ; " > $ { s u c c e s s R a t e } % < / h 3 > 
         < p   s t y l e = " m a r g i n : 0 ; " > S u c c e s s   R a t e < / p > 
     < / d i v > 
 < / d i v > 
 ` ; 
 
 d v . p a r a g r a p h ( h t m l ) ; 
 ` ` ` 
 
 # #   Q u i c k   A c t i o n s 
 
 ` ` ` 
 n a m e   N e w   B u s i n e s s 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   C r e a t e   B u s i n e s s 
 ` ` ` 
 
 ` ` ` 
 n a m e   N e w   G r a n t 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   C r e a t e   G r a n t 
 ` ` ` 
 
 ` ` ` 
 n a m e   A p p l i c a t i o n s   B o a r d 
 t y p e   l i n k 
 a c t i o n   o b s i d i a n : / / o p e n ? v a u l t = G r a n t % 2 0 M a n a g e m e n t & f i l e = k a n b a n % 2 F a p p l i c a t i o n s _ b o a r d 
 ` ` ` 
 
 ` ` ` ` 
 
 # # #   5 .   C r e a t e   K a n b a n   B o a r d   f o r   A p p l i c a t i o n s 
 
 C r e a t e   a   ` k a n b a n / a p p l i c a t i o n s _ b o a r d . m d `   f i l e : 
 
 ` ` ` m a r k d o w n 
 - - - 
 k a n b a n - p l u g i n :   b a s i c 
 - - - 
 
 #   A p p l i c a t i o n s   B o a r d 
 
 # #   R e s e a r c h i n g 
 
 # #   D r a f t i n g 
 
 # #   I n t e r n a l   R e v i e w 
 
 # #   R e a d y 
 
 # #   S u b m i t t e d 
 
 # #   W o n 
 
 # #   D e c l i n e d 
 
 % %   k a n b a n : s e t t i n g s 
 ` ` ` ` 
 
 { " k a n b a n - p l u g i n " : " b a s i c " , " n e w - n o t e - f o l d e r " : " a p p l i c a t i o n s " , " n e w - n o t e - t e m p l a t e " : " _ t e m p l a t e s / a p p l i c a t i o n . m d " , " m e t a d a t a - k e y s " : [ { " m e t a d a t a K e y " : " b u s i n e s s " , " l a b e l " : " B u s i n e s s " , " s h o u l d H i d e L a b e l " : f a l s e , " c o n t a i n s M a r k d o w n " : t r u e } , { " m e t a d a t a K e y " : " g r a n t " , " l a b e l " : " G r a n t " , " s h o u l d H i d e L a b e l " : f a l s e , " c o n t a i n s M a r k d o w n " : t r u e } , { " m e t a d a t a K e y " : " c o m p l e t i o n _ p e r c e n t a g e " , " l a b e l " : " C o m p l e t i o n " , " s h o u l d H i d e L a b e l " : f a l s e , " c o n t a i n s M a r k d o w n " : f a l s e } ] } 
 
 ` ` ` 
 % % 
 ` ` ` 
 
 # # #   6 .   C r e a t e   A I   C o n t e n t   G e n e r a t i o n   S i m u l a t i o n 
 
 S i n c e   O b s i d i a n   d o e s n ' t   h a v e   d i r e c t   A P I   i n t e g r a t i o n   w i t h   O p e n R o u t e r ,   w e ' l l   c r e a t e   a   s i m u l a t e d   A I   c o n t e n t   g e n e r a t i o n   s y s t e m   u s i n g   T e m p l a t e r   a n d   Q u i c k A d d : 
 
 C r e a t e   a   f i l e 
 
 ` ` ` 
 _ t e m p l a t e s / a i _ c o n t e n t . m d 
 ` ` ` 
 
 : 
 
 ` ` ` 
 - - - 
 c o n t e n t _ t y p e :   " { { C O N T E N T _ T Y P E } } " 
 s e c t i o n _ n a m e :   " { { S E C T I O N _ N A M E } } " 
 - - - 
 
 < % * 
 / /   S i m u l a t e   A I   c o n t e n t   g e n e r a t i o n   b a s e d   o n   c o n t e n t   t y p e 
 l e t   c o n t e n t   =   " " ; 
 c o n s t   c o n t e n t T y p e   =   t p . f r o n t m a t t e r . c o n t e n t _ t y p e ; 
 c o n s t   s e c t i o n N a m e   =   t p . f r o n t m a t t e r . s e c t i o n _ n a m e ; 
 
 / /   G e t   b u s i n e s s   a n d   g r a n t   i n f o   f r o m   t h e   s e c t i o n ' s   a p p l i c a t i o n   l i n k 
 c o n s t   s e c t i o n   =   t p . c o n f i g . a c t i v e _ f i l e ; 
 c o n s t   a p p L i n k   =   s e c t i o n . f r o n t m a t t e r . a p p l i c a t i o n ; 
 c o n s t   a p p   =   t p . o b s i d i a n . g e t F i l e B y P a t h ( a p p L i n k . r e p l a c e ( " [ [ " ,   " " ) . r e p l a c e ( " ] ] " ,   " " )   +   " . m d " ) ; 
 c o n s t   a p p C o n t e n t   =   a w a i t   a p p . c o n t e n t ; 
 c o n s t   a p p F r o n t m a t t e r   =   a p p . f r o n t m a t t e r ; 
 
 c o n s t   b u s i n e s s N a m e   =   a p p F r o n t m a t t e r . b u s i n e s s . r e p l a c e ( " [ [ " ,   " " ) . r e p l a c e ( " ] ] " ,   " " ) ; 
 c o n s t   g r a n t N a m e   =   a p p F r o n t m a t t e r . g r a n t . r e p l a c e ( " [ [ " ,   " " ) . r e p l a c e ( " ] ] " ,   " " ) ; 
 
 s w i t c h ( c o n t e n t T y p e )   { 
     c a s e   " i m p a c t " : 
         c o n t e n t   =   ` #   I m p a c t   S t a t e m e n t   f o r   $ { b u s i n e s s N a m e } 
 
 O u r   o r g a n i z a t i o n   w i l l   c r e a t e   s i g n i f i c a n t   p o s i t i v e   i m p a c t   t h r o u g h   t h i s   g r a n t   b y   a d d r e s s i n g   c r i t i c a l   n e e d s   i n   o u r   c o m m u n i t y   w h i l e   l e v e r a g i n g   o u r   u n i q u e   s t r e n g t h s   a n d   e x p e r t i s e . 
 
 # #   P r i m a r y   I m p a c t   A r e a s 
 
 1 .   * * E c o n o m i c   D e v e l o p m e n t * * :   W e   w i l l   c r e a t e   5 - 7   n e w   j o b s   w i t h i n   t h e   f i r s t   y e a r ,   p r i o r i t i z i n g   l o c a l   h i r i n g   f r o m   u n d e r s e r v e d   c o m m u n i t i e s . 
 
 2 .   * * C o m m u n i t y   E n g a g e m e n t * * :   O u r   p r o j e c t   w i l l   d i r e c t l y   s e r v e   a p p r o x i m a t e l y   2 5 0   i n d i v i d u a l s   m o n t h l y   t h r o u g h   o u r   p r o g r a m s ,   w i t h   i n d i r e c t   b e n e f i t s   r e a c h i n g   a n   e s t i m a t e d   1 , 0 0 0   c o m m u n i t y   m e m b e r s . 
 
 3 .   * * S u s t a i n a b i l i t y * * :   W e   w i l l   i m p l e m e n t   e n v i r o n m e n t a l l y   r e s p o n s i b l e   p r a c t i c e s   t h a t   r e d u c e   w a s t e   b y   3 0 %   a n d   e n e r g y   c o n s u m p t i o n   b y   2 5 %   c o m p a r e d   t o   t r a d i t i o n a l   a p p r o a c h e s . 
 
 # #   M e a s u r e m e n t   &   E v a l u a t i o n 
 
 W e   w i l l   t r a c k   o u r   i m p a c t   u s i n g   t h e   f o l l o w i n g   m e t r i c s : 
 -   N u m b e r   o f   i n d i v i d u a l s   s e r v e d   ( t a r g e t :   3 , 0 0 0   a n n u a l l y ) 
 -   J o b   c r e a t i o n   a n d   r e t e n t i o n   ( t a r g e t :   7   n e w   p o s i t i o n s ) 
 -   C o m m u n i t y   f e e d b a c k   s u r v e y s   ( t a r g e t :   8 5 %   s a t i s f a c t i o n   r a t e ) 
 -   E n v i r o n m e n t a l   i m p a c t   r e d u c t i o n   ( m e a s u r e d   q u a r t e r l y ) 
 
 T h r o u g h   t h i s   g r a n t ,   w e   w i l l   n o t   o n l y   a d d r e s s   i m m e d i a t e   n e e d s   b u t   a l s o   c r e a t e   l a s t i n g ,   s u s t a i n a b l e   c h a n g e   i n   o u r   c o m m u n i t y . ` ; 
         b r e a k ; 
     c a s e   " b u d g e t " : 
         c o n t e n t   =   ` #   B u d g e t   J u s t i f i c a t i o n 
 
 # #   P e r s o n n e l   C o s t s   ( 4 5 %   o f   t o t a l   b u d g e t ) 
 -   P r o g r a m   D i r e c t o r   ( 0 . 5   F T E ) :   $ 3 0 , 0 0 0 
     R e s p o n s i b l e   f o r   o v e r a l l   p r o j e c t   m a n a g e m e n t ,   r e p o r t i n g ,   a n d   s t a k e h o l d e r   r e l a t i o n s 
 -   P r o g r a m   C o o r d i n a t o r   ( 1 . 0   F T E ) :   $ 4 5 , 0 0 0 
     H a n d l e s   d a y - t o - d a y   o p e r a t i o n s ,   c l i e n t   i n t e r a c t i o n s ,   a n d   d a t a   c o l l e c t i o n 
 -   A d m i n i s t r a t i v e   A s s i s t a n t   ( 0 . 5   F T E ) :   $ 2 0 , 0 0 0 
     P r o v i d e s   a d m i n i s t r a t i v e   s u p p o r t ,   s c h e d u l i n g ,   a n d   d o c u m e n t a t i o n 
 
 # #   E q u i p m e n t   &   S u p p l i e s   ( 2 5 %   o f   t o t a l   b u d g e t ) 
 -   T e c h n o l o g y   i n f r a s t r u c t u r e :   $ 1 5 , 0 0 0 
     I n c l u d e s   c o m p u t e r s ,   s o f t w a r e   l i c e n s e s ,   a n d   n e t w o r k i n g   e q u i p m e n t 
 -   P r o g r a m   m a t e r i a l s :   $ 1 2 , 0 0 0 
     E d u c a t i o n a l   r e s o u r c e s ,   t r a i n i n g   m a t e r i a l s ,   a n d   p a r t i c i p a n t   s u p p l i e s 
 -   O f f i c e   s u p p l i e s :   $ 3 , 0 0 0 
     G e n e r a l   s u p p l i e s   n e e d e d   f o r   p r o g r a m   a d m i n i s t r a t i o n 
 
 # #   O p e r a t i o n a l   E x p e n s e s   ( 2 0 %   o f   t o t a l   b u d g e t ) 
 -   F a c i l i t y   c o s t s :   $ 1 8 , 0 0 0 
     R e n t ,   u t i l i t i e s ,   a n d   m a i n t e n a n c e   f o r   p r o g r a m   s p a c e 
 -   M a r k e t i n g   a n d   o u t r e a c h :   $ 7 , 0 0 0 
     C o m m u n i t y   e n g a g e m e n t ,   p r o m o t i o n a l   m a t e r i a l s ,   a n d   d i g i t a l   m a r k e t i n g 
 -   P r o f e s s i o n a l   s e r v i c e s :   $ 5 , 0 0 0 
     A c c o u n t i n g ,   l e g a l ,   a n d   c o n s u l t i n g   s e r v i c e s 
 
 # #   E v a l u a t i o n   &   R e p o r t i n g   ( 1 0 %   o f   t o t a l   b u d g e t ) 
 -   D a t a   c o l l e c t i o n   t o o l s :   $ 3 , 0 0 0 
 -   E x t e r n a l   e v a l u a t i o n   c o n s u l t a n t :   $ 5 , 0 0 0 
 -   R e p o r t   p r e p a r a t i o n   a n d   d i s s e m i n a t i o n :   $ 2 , 0 0 0 
 
 T h i s   b u d g e t   h a s   b e e n   c a r e f u l l y   d e v e l o p e d   t o   e n s u r e   c o s t - e f f e c t i v e n e s s   w h i l e   m a x i m i z i n g   i m p a c t .   A l l   e x p e n s e s   d i r e c t l y   s u p p o r t   t h e   p r o g r a m   o b j e c t i v e s   a n d   a r e   e s s e n t i a l   f o r   s u c c e s s f u l   i m p l e m e n t a t i o n . ` ; 
         b r e a k ; 
     c a s e   " t i m e l i n e " : 
         c o n t e n t   =   ` #   P r o j e c t   T i m e l i n e 
 
 # #   P h a s e   1 :   P l a n n i n g   &   P r e p a r a t i o n   ( M o n t h s   1 - 2 ) 
 -   W e e k   1 - 2 :   F i n a l i z e   p r o j e c t   t e a m   a n d   r o l e s 
 -   W e e k   3 - 4 :   D e v e l o p   d e t a i l e d   i m p l e m e n t a t i o n   p l a n 
 -   W e e k   5 - 6 :   S e c u r e   n e c e s s a r y   p e r m i t s   a n d   a p p r o v a l s 
 -   W e e k   7 - 8 :   E s t a b l i s h   b a s e l i n e   m e t r i c s   a n d   e v a l u a t i o n   f r a m e w o r k 
 
 # #   P h a s e   2 :   I n i t i a l   I m p l e m e n t a t i o n   ( M o n t h s   3 - 5 ) 
 -   M o n t h   3 :   L a u n c h   c o m m u n i t y   o u t r e a c h   a n d   r e c r u i t m e n t 
 -   M o n t h   4 :   B e g i n   c o r e   p r o g r a m   a c t i v i t i e s 
 -   M o n t h   5 :   C o n d u c t   f i r s t   p r o g r e s s   a s s e s s m e n t   a n d   m a k e   a d j u s t m e n t s 
 
 # #   P h a s e   3 :   F u l l   I m p l e m e n t a t i o n   ( M o n t h s   6 - 9 ) 
 -   M o n t h   6 :   S c a l e   u p   t o   f u l l   o p e r a t i o n a l   c a p a c i t y 
 -   M o n t h   7 :   I m p l e m e n t   f e e d b a c k   m e c h a n i s m s 
 -   M o n t h   8 - 9 :   C o n d u c t   m i d - p r o j e c t   e v a l u a t i o n   a n d   r e f i n e   a p p r o a c h e s 
 
 # #   P h a s e   4 :   E v a l u a t i o n   &   S u s t a i n a b i l i t y   ( M o n t h s   1 0 - 1 2 ) 
 -   M o n t h   1 0 :   B e g i n   c o m p r e h e n s i v e   d a t a   a n a l y s i s 
 -   M o n t h   1 1 :   D e v e l o p   s u s t a i n a b i l i t y   p l a n   f o r   p o s t - g r a n t   p e r i o d 
 -   M o n t h   1 2 :   C o m p l e t e   f i n a l   e v a l u a t i o n   a n d   p r e p a r e   f i n a l   r e p o r t 
 
 # #   K e y   M i l e s t o n e s 
 1 .   P r o j e c t   k i c k o f f :   M o n t h   1 ,   W e e k   1 
 2 .   F i r s t   c o m m u n i t y   e v e n t :   M o n t h   3 ,   W e e k   2 
 3 .   M i d - p r o j e c t   r e v i e w :   M o n t h   6 ,   W e e k   1 
 4 .   F u l l   i m p l e m e n t a t i o n :   M o n t h   7 ,   W e e k   1 
 5 .   F i n a l   e v a l u a t i o n   c o m p l e t e d :   M o n t h   1 2 ,   W e e k   3 
 6 .   F i n a l   r e p o r t   s u b m i t t e d :   M o n t h   1 2 ,   W e e k   4 
 
 T h i s   t i m e l i n e   a l l o w s   f o r   t h o u g h t f u l   i m p l e m e n t a t i o n   w i t h   b u i l t - i n   a s s e s s m e n t   p o i n t s   t o   e n s u r e   w e   r e m a i n   o n   t r a c k   t o   a c h i e v e   o u r   o b j e c t i v e s . ` ; 
         b r e a k ; 
     c a s e   " e x e c u t i v e " : 
         c o n t e n t   =   ` #   E x e c u t i v e   S u m m a r y 
 
 < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 1 e m ; v e r t i c a l - a l i g n : - 0 . 2 5 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > b < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > u < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > s < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e s s < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 9 0 3 e m ; " > N < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a m < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > s s e e < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > k i n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 3 5 8 8 e m ; " > g < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 3 5 8 8 e m ; " > g < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > r < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > o < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 7 6 4 e m ; " > f < / s p a n > < s p a n   c l a s s = " m o p e n " > [ < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > A < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > M O < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 9 0 3 e m ; " > U < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 3 8 8 9 e m ; " > N T < / s p a n > < s p a n   c l a s s = " m c l o s e " > ] < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 7 6 4 e m ; " > f < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > r o < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > m < / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { g r a n t N a m e }   t o   i m p l e m e n t   o u r   i n n o v a t i v e   p r o g r a m   a d d r e s s i n g   c r i t i c a l   c o m m u n i t y   n e e d s .   W i t h   o u r   e s t a b l i s h e d   t r a c k   r e c o r d   o f   s u c c e s s   a n d   d e e p   c o m m u n i t y   c o n n e c t i o n s ,   w e   a r e   u n i q u e l y   p o s i t i o n e d   t o   d e l i v e r   m e a n i n g f u l ,   s u s t a i n a b l e   o u t c o m e s . 
 
 # #   P r o j e c t   O v e r v i e w 
 O u r   p r o p o s e d   i n i t i a t i v e   w i l l   a d d r e s s   [ S P E C I F I C   N E E D ]   t h r o u g h   a   c o m p r e h e n s i v e   a p p r o a c h   t h a t   c o m b i n e s   d i r e c t   s e r v i c e ,   c a p a c i t y   b u i l d i n g ,   a n d   s y s t e m s   c h a n g e .   B u i l d i n g   o n   o u r   e x i s t i n g   i n f r a s t r u c t u r e   a n d   e x p e r t i s e ,   w e   w i l l   e x p a n d   o u r   r e a c h   t o   s e r v e   a n   a d d i t i o n a l   [ N U M B E R ]   i n d i v i d u a l s   a n n u a l l y   w h i l e   i m p r o v i n g   s e r v i c e   q u a l i t y   a n d   e f f i c i e n c y . 
 
 # #   K e y   O b j e c t i v e s 
 1 .   I n c r e a s e   a c c e s s   t o   e s s e n t i a l   s e r v i c e s   f o r   u n d e r s e r v e d   p o p u l a t i o n s 
 2 .   D e v e l o p   s u s t a i n a b l e   s o l u t i o n s   t o   p e r s i s t e n t   c o m m u n i t y   c h a l l e n g e s 
 3 .   C r e a t e   m e a s u r a b l e   i m p r o v e m e n t s   i n   [ S P E C I F I C   M E T R I C S ] 
 4 .   B u i l d   c a p a c i t y   w i t h i n   t h e   c o m m u n i t y   f o r   l o n g - t e r m   i m p a c t 
 
 # #   E x p e c t e d   O u t c o m e s 
 -   S e r v e   [ N U M B E R ]   i n d i v i d u a l s   d i r e c t l y   t h r o u g h   p r o g r a m   a c t i v i t i e s 
 -   A c h i e v e   [ S P E C I F I C   I M P R O V E M E N T ]   i n   k e y   i n d i c a t o r s 
 -   D e v e l o p   r e p l i c a b l e   m o d e l   f o r   i m p l e m e n t a t i o n   i n   o t h e r   c o m m u n i t i e s 
 -   C r e a t e   [ N U M B E R ]   n e w   j o b s   a n d   e c o n o m i c   o p p o r t u n i t i e s 
 
 # #   O r g a n i z a t i o n a l   Q u a l i f i c a t i o n s 
 $ { b u s i n e s s N a m e }   b r i n g s   [ N U M B E R ]   y e a r s   o f   e x p e r i e n c e   i n   t h i s   f i e l d ,   w i t h   a   p r o v e n   t r a c k   r e c o r d   o f   s u c c e s s f u l   p r o g r a m   i m p l e m e n t a t i o n   a n d   r e s p o n s i b l e   f i n a n c i a l   m a n a g e m e n t .   O u r   t e a m   c o m b i n e s   s u b j e c t   m a t t e r   e x p e r t i s e   w i t h   d e e p   c o m m u n i t y   c o n n e c t i o n s ,   e n s u r i n g   b o t h   e f f e c t i v e n e s s   a n d   c u l t u r a l   c o m p e t e n c e   i n   o u r   a p p r o a c h . 
 
 W e   r e s p e c t f u l l y   r e q u e s t   y o u r   c o n s i d e r a t i o n   o f   t h i s   p r o p o s a l ,   w h i c h   a l i g n s   p e r f e c t l y   w i t h   $ { g r a n t N a m e } ' s   m i s s i o n   a n d   p r i o r i t i e s . ` ; 
         b r e a k ; 
     d e f a u l t : 
         c o n t e n t   =   ` #   $ { s e c t i o n N a m e }   C o n t e n t 
 
 T h i s   s e c t i o n   p r o v i d e s   d e t a i l e d   i n f o r m a t i o n   a b o u t   h o w   < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > b < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > u < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > s < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e s s < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 9 0 3 e m ; " > N < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a m < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 6 9 1 e m ; " > w < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > l l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > u < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > z e < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > h < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 3 5 8 8 e m ; " > g < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > r < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 7 6 4 e m ; " > f < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > r o < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > m < / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { g r a n t N a m e }   t o   a c h i e v e   s i g n i f i c a n t   i m p a c t . 
 
 # #   B a c k g r o u n d 
 < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > b < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > u < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > s < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e s s < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 9 0 3 e m ; " > N < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a m < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > h a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > s < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > d < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 7 6 4 e m ; " > f < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > d < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > c r < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > c < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e e < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > d < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > o < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > u < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > r c o < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > m m < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > u < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > n i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 3 5 8 8 e m ; " > y < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > h a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 3 5 8 8 e m ; " > g < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > s < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > p < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > e r < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 7 6 4 e m ; " > f < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e c < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > t l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 3 5 8 8 e m ; " > y < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 6 9 1 e m ; " > w < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > h < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > h < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > p < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > r < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > o r < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e s o < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 7 6 4 e m ; " > f < / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { g r a n t N a m e } .   O u r   a p p r o a c h   b u i l d s   o n   o u r   e s t a b l i s h e d   e x p e r t i s e   a n d   c o m m u n i t y   c o n n e c t i o n s   t o   d e l i v e r   m e a n i n g f u l   r e s u l t s . 
 
 # #   K e y   C o m p o n e n t s 
 1 .   * * C o m p r e h e n s i v e   A p p r o a c h * * :   O u r   p r o g r a m   i n t e g r a t e s   m u l t i p l e   s t r a t e g i e s   t o   a d d r e s s   c o m p l e x   c h a l l e n g e s . 
 2 .   * * E v i d e n c e - B a s e d   M e t h o d s * * :   A l l   a c t i v i t i e s   a r e   g r o u n d e d   i n   r e s e a r c h   a n d   b e s t   p r a c t i c e s . 
 3 .   * * C o m m u n i t y   E n g a g e m e n t * * :   W e   p r i o r i t i z e   c o m m u n i t y   v o i c e   a n d   p a r t i c i p a t i o n   t h r o u g h o u t . 
 4 .   * * S u s t a i n a b i l i t y   P l a n n i n g * * :   O u r   a p p r o a c h   i n c l u d e s   s t r a t e g i e s   f o r   l o n g - t e r m   s u s t a i n a b i l i t y . 
 
 # #   I m p l e m e n t a t i o n   S t r a t e g y 
 O u r   i m p l e m e n t a t i o n   w i l l   f o l l o w   a   p h a s e d   a p p r o a c h ,   b e g i n n i n g   w i t h   c o m m u n i t y   e n g a g e m e n t   a n d   n e e d s   a s s e s s m e n t ,   f o l l o w e d   b y   p r o g r a m   d e v e l o p m e n t ,   i m p l e m e n t a t i o n ,   a n d   c o n t i n u o u s   e v a l u a t i o n .   E a c h   p h a s e   i n c l u d e s   s p e c i f i c   a c t i v i t i e s   a n d   m i l e s t o n e s   t o   e n s u r e   a c c o u n t a b i l i t y   a n d   p r o g r e s s . 
 
 # #   E x p e c t e d   R e s u l t s 
 T h r o u g h   t h i s   p r o j e c t ,   w e   a n t i c i p a t e   a c h i e v i n g   s i g n i f i c a n t   o u t c o m e s   i n   [ S P E C I F I C   A R E A S ] ,   w i t h   b o t h   i m m e d i a t e   b e n e f i t s   a n d   l o n g - t e r m   p o s i t i v e   c h a n g e   f o r   o u r   c o m m u n i t y . 
 
 T h i s   a p p r o a c h   r e p r e s e n t s   t h e   m o s t   e f f e c t i v e   a n d   e f f i c i e n t   u s e   o f   g r a n t   r e s o u r c e s   t o   a d d r e s s   t h e   i d e n t i f i e d   n e e d s   w h i l e   b u i l d i n g   c a p a c i t y   f o r   s u s t a i n e d   i m p a c t . ` ; 
 } 
 
 / /   R e t u r n   t h e   g e n e r a t e d   c o n t e n t 
 t R   + =   c o n t e n t ; 
 % > 
 ` ` ` 
 
 # # #   7 .   S e t   U p   D a t a v i e w   Q u e r i e s   f o r   G r a n t   D i s c o v e r y 
 
 C r e a t e   a   f i l e 
 
 ` ` ` 
 _ q u e r i e s / g r a n t _ m a t c h e s . m d 
 ` ` ` 
 
 : 
 
 ` ` ` ` 
 #   G r a n t   M a t c h e s   f o r   B u s i n e s s e s 
 
 ` ` ` d a t a v i e w j s 
 / /   G e t   a l l   b u s i n e s s e s 
 c o n s t   b u s i n e s s e s   =   d v . p a g e s ( " # b u s i n e s s " ) ; 
 
 / /   G e t   a l l   g r a n t s 
 c o n s t   g r a n t s   =   d v . p a g e s ( " # g r a n t " ) ; 
 
 / /   F u n c t i o n   t o   c a l c u l a t e   m a t c h   s c o r e 
 f u n c t i o n   c a l c u l a t e M a t c h S c o r e ( b u s i n e s s ,   g r a n t )   { 
     l e t   s c o r e   =   0 ; 
     
     / /   M a t c h   b y   b u s i n e s s   t y p e 
     i f   ( g r a n t . g r a n t _ c a t e g o r i e s   & &   b u s i n e s s . b u s i n e s s _ t y p e )   { 
         c o n s t   c a t e g o r i e s   =   A r r a y . i s A r r a y ( g r a n t . g r a n t _ c a t e g o r i e s )   ?   g r a n t . g r a n t _ c a t e g o r i e s   :   [ g r a n t . g r a n t _ c a t e g o r i e s ] ; 
         
         / /   M a p   b u s i n e s s   t y p e s   t o   r e l e v a n t   c a t e g o r i e s 
         c o n s t   c a t e g o r y M a p   =   { 
             " T e c h n o l o g y   W e b s i t e " :   [ " S c i e n c e   a n d   T e c h n o l o g y " ,   " I n f o r m a t i o n   a n d   S t a t i s t i c s " ,   " B u s i n e s s   a n d   C o m m e r c e " ] , 
             " L P F M   R a d i o   S t a t i o n " :   [ " C o m m u n i t y   D e v e l o p m e n t " ,   " M e d i a " ,   " E d u c a t i o n " ] , 
             " T e n a n t   R i g h t s   A I " :   [ " H o u s i n g " ,   " C o n s u m e r   P r o t e c t i o n " ,   " S c i e n c e   a n d   T e c h n o l o g y " ] , 
             " S u p e r f o o d   C o m p a n y " :   [ " H e a l t h " ,   " F o o d   a n d   N u t r i t i o n " ] , 
             " H a i r   R e c y c l i n g " :   [ " H e a l t h " ,   " N a t u r a l   R e s o u r c e s " ] , 
             " D a t i n g   P l a t f o r m " :   [ " S c i e n c e   a n d   T e c h n o l o g y " ,   " B u s i n e s s   a n d   C o m m e r c e " ] , 
             " L a n d   F l i p p i n g " :   [ " N a t u r a l   R e s o u r c e s " ,   " B u s i n e s s   a n d   C o m m e r c e " ] , 
             " P r e p p e r   N e t w o r k " :   [ " C o m m u n i t y   D e v e l o p m e n t " ,   " E d u c a t i o n " ] , 
             " M u l t i f a m i l y   I n v e s t i n g " :   [ " H o u s i n g " ,   " C o m m u n i t y   D e v e l o p m e n t " ] , 
             " C o a c h i n g   F i r m " :   [ " E d u c a t i o n " ,   " B u s i n e s s   a n d   C o m m e r c e " ] , 
             " S t u d e n t   S t o r a g e " :   [ " E d u c a t i o n " ,   " B u s i n e s s   a n d   C o m m e r c e " ] 
         } ; 
         
         c o n s t   r e l e v a n t C a t e g o r i e s   =   c a t e g o r y M a p [ b u s i n e s s . b u s i n e s s _ t y p e ]   | |   [ ] ; 
         
         f o r   ( c o n s t   c a t e g o r y   o f   c a t e g o r i e s )   { 
             i f   ( r e l e v a n t C a t e g o r i e s . i n c l u d e s ( c a t e g o r y ) )   { 
                 s c o r e   + =   2 0 ; 
             } 
         } 
     } 
     
     / /   M a t c h   b y   d e m o g r a p h i c s 
     i f   ( g r a n t . d e m o g r a p h i c _ r e q u i r e m e n t s   & &   b u s i n e s s . o w n e r _ d e m o g r a p h i c s )   { 
         c o n s t   d e m o g r a p h i c s   =   A r r a y . i s A r r a y ( b u s i n e s s . o w n e r _ d e m o g r a p h i c s )   ?   b u s i n e s s . o w n e r _ d e m o g r a p h i c s   :   [ b u s i n e s s . o w n e r _ d e m o g r a p h i c s ] ; 
         c o n s t   r e q u i r e m e n t s   =   A r r a y . i s A r r a y ( g r a n t . d e m o g r a p h i c _ r e q u i r e m e n t s )   ?   g r a n t . d e m o g r a p h i c _ r e q u i r e m e n t s   :   [ g r a n t . d e m o g r a p h i c _ r e q u i r e m e n t s ] ; 
         
         f o r   ( c o n s t   d e m o   o f   d e m o g r a p h i c s )   { 
             i f   ( r e q u i r e m e n t s . i n c l u d e s ( d e m o ) )   { 
                 s c o r e   + =   3 0 ; 
             } 
         } 
     } 
     
     / /   B a s e   s c o r e 
     s c o r e   + =   5 0 ; 
     
     / /   C a p   a t   1 0 0 
     r e t u r n   M a t h . m i n ( s c o r e ,   1 0 0 ) ; 
 } 
 
 / /   G e n e r a t e   m a t c h e s 
 l e t   m a t c h e s H t m l   =   " " ; 
 
 f o r   ( c o n s t   b u s i n e s s   o f   b u s i n e s s e s )   { 
     m a t c h e s H t m l   + =   ` < h 2 > $ { b u s i n e s s . n a m e } < / h 2 > ` ; 
     m a t c h e s H t m l   + =   ` < t a b l e > ` ; 
     m a t c h e s H t m l   + =   ` < t r > < t h > G r a n t < / t h > < t h > I s s u e r < / t h > < t h > A m o u n t < / t h > < t h > D e a d l i n e < / t h > < t h > M a t c h   S c o r e < / t h > < / t r > ` ; 
     
     / /   C a l c u l a t e   m a t c h e s   f o r   t h i s   b u s i n e s s 
     c o n s t   m a t c h e s   =   [ ] ; 
     
     f o r   ( c o n s t   g r a n t   o f   g r a n t s )   { 
         c o n s t   s c o r e   =   c a l c u l a t e M a t c h S c o r e ( b u s i n e s s ,   g r a n t ) ; 
         i f   ( s c o r e   > =   5 0 )   { 
             m a t c h e s . p u s h ( { 
                 g r a n t :   g r a n t , 
                 s c o r e :   s c o r e 
             } ) ; 
         } 
     } 
     
     / /   S o r t   b y   s c o r e 
     m a t c h e s . s o r t ( ( a ,   b )   = >   b . s c o r e   -   a . s c o r e ) ; 
     
     / /   D i s p l a y   t o p   5   m a t c h e s 
     f o r   ( c o n s t   m a t c h   o f   m a t c h e s . s l i c e ( 0 ,   5 ) )   { 
         c o n s t   g r a n t   =   m a t c h . g r a n t ; 
         m a t c h e s H t m l   + =   ` < t r > ` ; 
         m a t c h e s H t m l   + =   ` < t d > < a   h r e f = " < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 3 5 8 8 e m ; " > g < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > r < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 7 6 4 e m ; " > f < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > p < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > h < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d " > & q u o t ; < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 7 7 8 e m ; " > < / s p a n > < s p a n   c l a s s = " m r e l " > & g t ; < / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { g r a n t . g r a n t _ n a m e } < / a > < / t d > ` ; 
         m a t c h e s H t m l   + =   ` < t d > $ { g r a n t . i s s u e r } < / t d > ` ; 
         m a t c h e s H t m l   + =   ` < t d > < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x - e r r o r "   t i t l e = " P a r s e E r r o r :   K a T e X   p a r s e   e r r o r :   E x p e c t e d   & # x 2 7 ; } & # x 2 7 ; ,   g o t   & # x 2 7 ; E O F & # x 2 7 ;   a t   e n d   o f   i n p u t :   & r a n t . a m o u n t   ?   & q u o t ; "   s t y l e = " c o l o r : # c c 0 0 0 0 " > { g r a n t . a m o u n t   ?   & q u o t ; < / s p a n > 
                     < / s p a n > 
                 < / s p a n > "   +   g r a n t . a m o u n t . t o L o c a l e S t r i n g ( )   :   " N o t   s p e c i f i e d " } < / t d > ` ; 
         m a t c h e s H t m l   + =   ` < t d > $ { g r a n t . a p p l i c a t i o n _ d e a d l i n e   ?   g r a n t . a p p l i c a t i o n _ d e a d l i n e   :   " N o t   s p e c i f i e d " } < / t d > ` ; 
         m a t c h e s H t m l   + =   ` < t d > $ { m a t c h . s c o r e } < / t d > ` ; 
         m a t c h e s H t m l   + =   ` < / t r > ` ; 
     } 
     
     m a t c h e s H t m l   + =   ` < / t a b l e > ` ; 
 } 
 
 d v . p a r a g r a p h ( m a t c h e s H t m l ) ; 
 ` ` ` ` 
 
 # # #   8 .   C r e a t e   P e r i o d i c   N o t e s   f o r   G r a n t   D i s c o v e r y 
 
 S e t   u p   a   w e e k l y   n o t e   t e m p l a t e   f o r   g r a n t   d i s c o v e r y : 
 
 ` ` ` ` 
 - - - 
 t y p e :   w e e k l y _ n o t e 
 w e e k :   " { { d a t e : Y Y Y Y - [ W ] w w } } " 
 - - - 
 
 #   W e e k l y   G r a n t   D i s c o v e r y :   { { d a t e : Y Y Y Y - [ W ] w w } } 
 
 # #   N e w   G r a n t s   t o   R e v i e w 
 
 # # #   F e d e r a l   G r a n t s 
 -   [   ]   C h e c k   G r a n t s . g o v   f o r   n e w   o p p o r t u n i t i e s 
 -   [   ]   R e v i e w   S B A   g r a n t s 
 -   [   ]   C h e c k   U S D A   R u r a l   D e v e l o p m e n t   g r a n t s 
 
 # # #   S t a t e   G r a n t s 
 -   [   ]   C h e c k   N e b r a s k a   D e p a r t m e n t   o f   E c o n o m i c   D e v e l o p m e n t 
 -   [   ]   R e v i e w   s t a t e   b u s i n e s s   d e v e l o p m e n t   p r o g r a m s 
 
 # # #   C o r p o r a t e   G r a n t s 
 -   [   ]   C h e c k   c o r p o r a t e   f o u n d a t i o n   w e b s i t e s 
 -   [   ]   R e v i e w   i n d u s t r y - s p e c i f i c   g r a n t   o p p o r t u n i t i e s 
 
 # #   G r a n t   M a t c h e s 
 
 ` ` ` d a t a v i e w j s 
 / /   I m p o r t   g r a n t   m a t c h e s   q u e r y 
 c o n s t   m a t c h e s Q u e r y   =   a w a i t   d v . i o . l o a d ( " _ q u e r i e s / g r a n t _ m a t c h e s . m d " ) ; 
 d v . p a r a g r a p h ( m a t c h e s Q u e r y ) ; 
 ` ` ` ` 
 
 # #   A c t i o n s 
 
 -   [   ]    C r e a t e   n e w   g r a n t   e n t r i e s   f o r   p r o m i s i n g   o p p o r t u n i t i e s 
 -   [   ]    U p d a t e   e x i s t i n g   g r a n t   i n f o r m a t i o n 
 -   [   ]    N o t i f y   t e a m   o f   h i g h - p r i o r i t y   m a t c h e s 
 
 ` ` ` ` 
 
 # #   A d v a n c e d   F e a t u r e s 
 
 # # #   1 .   S i m u l a t e d   A I   C o n t e n t   G e n e r a t i o n   w i t h   T e m p l a t e r 
 
 C r e a t e   a   T e m p l a t e r   s c r i p t   t h a t   s i m u l a t e s   A I   c o n t e n t   g e n e r a t i o n : 
 
 ` ` ` j a v a s c r i p t 
 / /   _ t e m p l a t e s / a i _ g e n e r a t o r . j s 
 m o d u l e . e x p o r t s   =   a s y n c   f u n c t i o n ( t p )   { 
     / /   G e t   c o n t e n t   t y p e   f r o m   u s e r 
     c o n s t   c o n t e n t T y p e   =   a w a i t   t p . s y s t e m . p r o m p t ( " S e l e c t   c o n t e n t   t y p e " ,   " g e n e r a l , i m p a c t , b u d g e t , t i m e l i n e , e x e c u t i v e " ) ; 
     
     / /   G e t   c u r r e n t   s e c t i o n   n a m e 
     c o n s t   s e c t i o n N a m e   =   t p . f i l e . t i t l e . s p l i t ( "   -   " ) [ 0 ] ; 
     
     / /   C r e a t e   t e m p o r a r y   A I   c o n t e n t   f i l e 
     a w a i t   t p . f i l e . c r e a t e _ n e w ( 
         t p . f i l e . f i n d _ t f i l e ( " _ t e m p l a t e s / a i _ c o n t e n t . m d " ) , 
         s e c t i o n N a m e   +   "   A I   C o n t e n t " , 
         t r u e , 
         { 
             C O N T E N T _ T Y P E :   c o n t e n t T y p e , 
             S E C T I O N _ N A M E :   s e c t i o n N a m e 
         } 
     ) ; 
     
     / /   R e t u r n   p l a c e h o l d e r   f o r   u s e r   t o   k n o w   i t ' s   w o r k i n g 
     r e t u r n   " G e n e r a t i n g   c o n t e n t . . . " ; 
 } 
 ` ` ` ` 
 
 # # #   2 .   G r a n t   D i s c o v e r y   S i m u l a t i o n 
 
 C r e a t e   a   s c r i p t   t h a t   s i m u l a t e s   d i s c o v e r i n g   n e w   g r a n t s : 
 
 ` ` ` 
 / /   _ t e m p l a t e s / d i s c o v e r _ g r a n t s . j s 
 m o d u l e . e x p o r t s   =   a s y n c   f u n c t i o n ( t p )   { 
     / /   S a m p l e   g r a n t   d a t a 
     c o n s t   s a m p l e G r a n t s   =   [ 
         { 
             n a m e :   " S m a l l   B u s i n e s s   I n n o v a t i o n   R e s e a r c h " , 
             i s s u e r :   " N a t i o n a l   S c i e n c e   F o u n d a t i o n " , 
             a m o u n t :   1 5 0 0 0 0 , 
             d e a d l i n e :   t p . d a t e . n o w ( " Y Y Y Y - M M - D D " ,   3 0 ) , 
             c a t e g o r i e s :   [ " S c i e n c e   a n d   T e c h n o l o g y " ,   " R e s e a r c h   a n d   D e v e l o p m e n t " ] , 
             d e s c r i p t i o n :   " F u n d i n g   f o r   h i g h - r i s k ,   h i g h - r e w a r d   r e s e a r c h   a n d   d e v e l o p m e n t   p r o j e c t s   f r o m   s m a l l   b u s i n e s s e s . " 
         } , 
         { 
             n a m e :   " C o m m u n i t y   D e v e l o p m e n t   B l o c k   G r a n t " , 
             i s s u e r :   " D e p a r t m e n t   o f   H o u s i n g   a n d   U r b a n   D e v e l o p m e n t " , 
             a m o u n t :   7 5 0 0 0 , 
             d e a d l i n e :   t p . d a t e . n o w ( " Y Y Y Y - M M - D D " ,   4 5 ) , 
             c a t e g o r i e s :   [ " C o m m u n i t y   D e v e l o p m e n t " ,   " H o u s i n g " ] , 
             d e s c r i p t i o n :   " F u n d i n g   f o r   c o m m u n i t y   d e v e l o p m e n t   a c t i v i t i e s   t h a t   b e n e f i t   l o w -   a n d   m o d e r a t e - i n c o m e   p e r s o n s . " 
         } , 
         { 
             n a m e :   " W o m e n ' s   B u s i n e s s   C e n t e r   G r a n t " , 
             i s s u e r :   " S m a l l   B u s i n e s s   A d m i n i s t r a t i o n " , 
             a m o u n t :   5 0 0 0 0 , 
             d e a d l i n e :   t p . d a t e . n o w ( " Y Y Y Y - M M - D D " ,   6 0 ) , 
             c a t e g o r i e s :   [ " B u s i n e s s   a n d   C o m m e r c e " ,   " E d u c a t i o n " ] , 
             d e m o g r a p h i c s :   [ " W o m e n " ] , 
             d e s c r i p t i o n :   " F u n d i n g   t o   s u p p o r t   w o m e n   e n t r e p r e n e u r s   t h r o u g h   t r a i n i n g   a n d   t e c h n i c a l   a s s i s t a n c e . " 
         } 
     ] ; 
     
     / /   C r e a t e   g r a n t   f i l e s 
     l e t   c r e a t e d G r a n t s   =   [ ] ; 
     
     f o r   ( c o n s t   g r a n t   o f   s a m p l e G r a n t s )   { 
         c o n s t   f i l e N a m e   =   ` g r a n t s / $ { g r a n t . n a m e } . m d ` ; 
         
         / /   C h e c k   i f   g r a n t   a l r e a d y   e x i s t s 
         c o n s t   e x i s t i n g F i l e   =   t p . f i l e . f i n d _ t f i l e ( f i l e N a m e ) ; 
         i f   ( e x i s t i n g F i l e )   c o n t i n u e ; 
         
         / /   C r e a t e   g r a n t   f i l e 
         a w a i t   t p . f i l e . c r e a t e _ n e w ( 
             t p . f i l e . f i n d _ t f i l e ( " _ t e m p l a t e s / g r a n t . m d " ) , 
             f i l e N a m e , 
             f a l s e , 
             { 
                 N A M E :   g r a n t . n a m e , 
                 I S S U E R :   g r a n t . i s s u e r , 
                 A M O U N T :   g r a n t . a m o u n t , 
                 F R E Q U E N C Y :   " A n n u a l " , 
                 C A T E G O R I E S :   g r a n t . c a t e g o r i e s . j o i n ( " ,   " ) , 
                 D E M O G R A P H I C S :   g r a n t . d e m o g r a p h i c s   ?   g r a n t . d e m o g r a p h i c s . j o i n ( " ,   " )   :   " " , 
                 U R L :   " h t t p s : / / e x a m p l e . c o m / g r a n t " , 
                 E L I G I B I L I T Y :   " S m a l l   b u s i n e s s e s   w i t h   f e w e r   t h a n   5 0 0   e m p l o y e e s " , 
                 S C O R E :   7 0 , 
                 D E S C R I P T I O N :   g r a n t . d e s c r i p t i o n , 
                 N O T E S :   " D i s c o v e r e d   t h r o u g h   a u t o m a t e d   g r a n t   d i s c o v e r y " 
             } 
         ) ; 
         
         c r e a t e d G r a n t s . p u s h ( g r a n t . n a m e ) ; 
     } 
     
     / /   R e t u r n   r e s u l t s 
     i f   ( c r e a t e d G r a n t s . l e n g t h   >   0 )   { 
         r e t u r n   ` D i s c o v e r e d   < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > c r e < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > d < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > G < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > r < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > s < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 3 5 8 8 e m ; " > g < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > h < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 6 9 1 e m ; " > w < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 3 5 8 8 e m ; " > g < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > r < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > s < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 7 7 8 e m ; " > < / s p a n > < s p a n   c l a s s = " m r e l " > : < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 7 7 8 e m ; " > < / s p a n > < / s p a n > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 1 e m ; v e r t i c a l - a l i g n : - 0 . 2 5 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d   t e x t "   s t y l e = " c o l o r : # c c 0 0 0 0 ; " > < s p a n   c l a s s = " m o r d "   s t y l e = " c o l o r : # c c 0 0 0 0 ; " > \ n < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d " > "< / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { c r e a t e d G r a n t s . j o i n ( " \ n -   " ) } ` ; 
     }   e l s e   { 
         r e t u r n   " N o   n e w   g r a n t s   d i s c o v e r e d . " ; 
     } 
 } 
 ` ` ` 
 
 # # #   3 .   A p p l i c a t i o n   S t a t u s   T r a c k i n g 
 
 C r e a t e   a   s c r i p t   t o   u p d a t e   a p p l i c a t i o n   s t a t u s   a n d   t r a c k   p r o g r e s s : 
 
 ` ` ` 
 / /   _ t e m p l a t e s / u p d a t e _ a p p l i c a t i o n _ s t a t u s . j s 
 m o d u l e . e x p o r t s   =   a s y n c   f u n c t i o n ( t p )   { 
     / /   G e t   c u r r e n t   a p p l i c a t i o n 
     c o n s t   a p p   =   t p . f i l e ; 
     
     / /   G e t   c u r r e n t   s t a t u s 
     c o n s t   c u r r e n t S t a t u s   =   a p p . f r o n t m a t t e r . s t a t u s   | |   " r e s e a r c h i n g " ; 
     
     / /   D e f i n e   s t a t u s   o p t i o n s 
     c o n s t   s t a t u s O p t i o n s   =   [ " r e s e a r c h i n g " ,   " d r a f t i n g " ,   " i n t e r n a l _ r e v i e w " ,   " r e a d y " ,   " s u b m i t t e d " ,   " w o n " ,   " d e c l i n e d " ] ; 
     
     / /   G e t   c u r r e n t   i n d e x 
     c o n s t   c u r r e n t I n d e x   =   s t a t u s O p t i o n s . i n d e x O f ( c u r r e n t S t a t u s ) ; 
     
     / /   G e t   n e x t   s t a t u s   o p t i o n s 
     c o n s t   n e x t O p t i o n s   =   s t a t u s O p t i o n s . s l i c e ( c u r r e n t I n d e x   +   1 ) ; 
     
     / /   P r o m p t   f o r   n e w   s t a t u s 
     c o n s t   n e w S t a t u s   =   a w a i t   t p . s y s t e m . p r o m p t ( 
         " S e l e c t   n e w   s t a t u s " , 
         n e x t O p t i o n s . j o i n ( " , " ) 
     ) ; 
     
     / /   U p d a t e   f r o n t m a t t e r 
     a p p . f r o n t m a t t e r . s t a t u s   =   n e w S t a t u s ; 
     a p p . f r o n t m a t t e r . l a s t _ m o d i f i e d   =   t p . d a t e . n o w ( " Y Y Y Y - M M - D D " ) ; 
     
     / /   I f   s u b m i t t e d ,   a d d   s u b m i s s i o n   d a t e 
     i f   ( n e w S t a t u s   = = =   " s u b m i t t e d " )   { 
         a p p . f r o n t m a t t e r . s u b m i s s i o n _ d a t e   =   t p . d a t e . n o w ( " Y Y Y Y - M M - D D " ) ; 
     } 
     
     / /   R e t u r n   c o n f i r m a t i o n 
     r e t u r n   ` S t a t u s   u p d a t e d   t o :   $ { n e w S t a t u s } ` ; 
 } 
 ` ` ` 
 
 # #   U s i n g   t h e   S y s t e m 
 
 # # #   D a i l y   W o r k f l o w 
 
 1 .   M o r n i n g   R e v i e w 
         
         -   O p e n   t h e   m a i n   d a s h b o a r d   t o   s e e   u p c o m i n g   d e a d l i n e s   a n d   a c t i v e   a p p l i c a t i o n s 
         -   C h e c k   n o t i f i c a t i o n s   f o r   a n y   a p p r o a c h i n g   d e a d l i n e s 
 2 .   A p p l i c a t i o n   W o r k 
         
         -   S e l e c t   a n   a p p l i c a t i o n   t o   w o r k   o n   f r o m   t h e   d a s h b o a r d 
         -   U p d a t e   s e c t i o n   c o n t e n t   u s i n g   t h e   b u i l t - i n   e d i t o r 
         -   G e n e r a t e   A I   c o n t e n t   f o r   s e c t i o n s   u s i n g   t h e   Q u i c k A d d   c o m m a n d 
         -   M a r k   s e c t i o n s   a s   c o m p l e t e   a s   y o u   f i n i s h   t h e m 
 3 .   G r a n t   D i s c o v e r y 
         
         -   R u n   t h e   w e e k l y   g r a n t   d i s c o v e r y   p r o c e s s   ( s i m u l a t e d ) 
         -   R e v i e w   n e w   g r a n t s   a n d   m a t c h   t h e m   w i t h   b u s i n e s s e s 
         -   C r e a t e   a p p l i c a t i o n s   f o r   h i g h - p r i o r i t y   m a t c h e s 
 4 .   P r o g r e s s   T r a c k i n g 
         
         -   U p d a t e   a p p l i c a t i o n   s t a t u s   o n   t h e   K a n b a n   b o a r d 
         -   T r a c k   c o m p l e t i o n   p e r c e n t a g e s   a n d   d e a d l i n e s 
         -   G e n e r a t e   r e p o r t s   u s i n g   D a t a v i e w   q u e r i e s 
 
 # # #   B e n e f i t s   o f   t h e   O b s i d i a n   A p p r o a c h 
 
 1 .   O f f l i n e   A c c e s s :   W o r k s   c o m p l e t e l y   o f f l i n e ,   n o   s e r v e r   n e e d e d 
 2 .   F l e x i b i l i t y :   E a s i l y   c u s t o m i z a b l e   t o   y o u r   s p e c i f i c   n e e d s 
 3 .   I n t e g r a t i o n :   A l l   y o u r   g r a n t   m a n a g e m e n t   d a t a   l i v e s   a l o n g s i d e   y o u r   o t h e r   n o t e s 
 4 .   P o r t a b i l i t y :   E a s y   t o   b a c k   u p   a n d   m o v e   b e t w e e n   d e v i c e s 
 5 .   P r i v a c y :   A l l   d a t a   s t a y s   l o c a l ,   n o   t h i r d - p a r t y   a c c e s s 
 6 .   C o s t - E f f e c t i v e :   F r e e   o r   l o w - c o s t   s o l u t i o n   ( C o m m u n i t y   p l u g i n s   a r e   f r e e ) 
 7 .   K n o w l e d g e   M a n a g e m e n t :   L e v e r a g e s   O b s i d i a n ' s   p o w e r f u l   l i n k i n g   a n d   k n o w l e d g e   g r a p h 
 
 # # #   L i m i t a t i o n s 
 
 1 .   N o   M u l t i - U s e r   S u p p o r t :   B e s t   f o r   i n d i v i d u a l   u s e   o r   s m a l l   t e a m s   s h a r i n g   a   v a u l t 
 2 .   L i m i t e d   A u t o m a t i o n :   S o m e   p r o c e s s e s   r e q u i r e   m a n u a l   s t e p s 
 3 .   N o   R e a l   A P I   I n t e g r a t i o n :   A I   c o n t e n t   g e n e r a t i o n   i s   s i m u l a t e d 
 4 .   B a s i c   U I :   L e s s   p o l i s h e d   t h a n   d e d i c a t e d   w e b   a p p l i c a t i o n s 
 5 .   L i m i t e d   R e p o r t i n g :   B a s i c   r e p o r t i n g   t h r o u g h   D a t a v i e w   q u e r i e s 
 
 # #   C o n c l u s i o n 
 
 W h i l e   t h i s   O b s i d i a n - b a s e d   s o l u t i o n   d o e s n ' t   h a v e   a l l   t h e   f e a t u r e s   o f   a   d e d i c a t e d   w e b   a p p l i c a t i o n ,   i t   p r o v i d e s   a   p o w e r f u l ,   f l e x i b l e ,   a n d   c o s t - e f f e c t i v e   w a y   t o   m a n a g e   g r a n t   a p p l i c a t i o n s   f o r   s m a l l   b u s i n e s s e s .   T h e   s y s t e m   l e v e r a g e s   O b s i d i a n ' s   s t r e n g t h s   i n   k n o w l e d g e   m a n a g e m e n t   a n d   n o t e - t a k i n g   w h i l e   a d d i n g   p r o j e c t   m a n a g e m e n t   c a p a b i l i t i e s   t h r o u g h   c o m m u n i t y   p l u g i n s . 
 
 T h i s   a p p r o a c h   i s   p a r t i c u l a r l y   w e l l - s u i t e d   f o r   i n d i v i d u a l   c o n s u l t a n t s   o r   s m a l l   t e a m s   w h o   w a n t   a   l i g h t w e i g h t ,   p o r t a b l e   s o l u t i o n   t h a t   d o e s n ' t   r e q u i r e   s e r v e r   i n f r a s t r u c t u r e   o r   o n g o i n g   m a i n t e n a n c e   c o s t s . 
 
 g o   o n l i n e   &   r e v i e w   t h e s e   o b s i d i a n   p l u g i n s   t o   s e e   i f   w e   c a n   u s e   t h e s e   w i t h   o p e n r o u t e r   a p i s   f o r   g r a n t   d i s c o v e r y   &   a p p l i c a t i o n   w r i t i n g   e t c :   S m a r t   C o n n e c t i o n s ,   L o c a l R E S T   A P I ,   A I   C o m m a n d e r ,   A P I R e q u e s t ,   A u t o   C l a s s i f i e r ,   A I   T a g g e r ,   G e n e ,   E x p l a i n   S e l e c t i o n   W i t h   A I ,   P o s t   W e b h o o k ,   S i m p l e   F i l e   P u s h ,   O p e n A P I   R e n d e r e r ,   R a p i d   A I ,   D a t a   F e t c h e r 
 
 g o   o n l i n e   &   r e v i e w   t h e s e   o b s i d i a n   p l u g i n s   t o   s e e   i f   w e   c a n   u s e   t h e s e   w i t h   o p e n r o u t e r   a p i s   f o r   g r a n t   d i s c o v e r y   &   a p p l i c a t i o n   w r i t i n g   e t c :   S m a r t   C o n n e c t i o n s ,   L o c a l R E S T   A P I ,   A I   C o m m a n d e r ,   A P I R e q u e s t ,   A u t o   C l a s s i f i e r ,   A I   T a g g e r ,   G e n e ,   E x p l a i n   S e l e c t i o n   W i t h   A I ,   P o s t   W e b h o o k ,   S i m p l e   F i l e   P u s h ,   O p e n A P I   R e n d e r e r ,   R a p i d   A I ,   D a t a   F e t c h e r 
 
 ! [ A I ] ( C : \ U s e r s \ H P \ N e x t c l o u d \ P o r t a b l e A p p s \ O b s i d i a n P o r t a b l e \ D a t a \ i m a g e s \ i m g . i c o n s 8 _ c l a u d e _ b r o w n . p n g ) C l a u d e   3 . 7   S o n n e t   ( T h i n k i n g ) 
 
 #   O b s i d i a n   P l u g i n s   f o r   O p e n R o u t e r   A P I   I n t e g r a t i o n 
 
 A f t e r   r e v i e w i n g   t h e   p l u g i n s   y o u   m e n t i o n e d ,   I ' v e   i d e n t i f i e d   s e v e r a l   t h a t   c a n   e f f e c t i v e l y   i n t e g r a t e   w i t h   O p e n R o u t e r   A P I s   f o r   g r a n t   d i s c o v e r y   a n d   a p p l i c a t i o n   w r i t i n g .   H e r e ' s   m y   a n a l y s i s   o f   e a c h   p l u g i n ' s   c a p a b i l i t i e s   a n d   h o w   t h e y   c a n   b e   u s e d   i n   y o u r   g r a n t   m a n a g e m e n t   s y s t e m : 
 
 # #   T o p   R e c o m m e n d e d   P l u g i n s 
 
 # # #   1 .  A P I R e q u e s t 
 
 -   S t a t u s :   A c t i v e ,   w e l l - m a i n t a i n e d 
 -   C o m p a t i b i l i t y :   E x c e l l e n t   f o r   O p e n R o u t e r   i n t e g r a t i o n 
 -   K e y   F e a t u r e s : 
         -   M a k e s   H T T P   r e q u e s t s   d i r e c t l y   f r o m   O b s i d i a n 
         -   S u p p o r t s   c u s t o m   h e a d e r s   ( r e q u i r e d   f o r   O p e n R o u t e r   a u t h e n t i c a t i o n ) 
         -   C a n   s a v e   r e s p o n s e s   a s   n o t e s 
         -   S u p p o r t s   J S O N   b o d y   f o r   P O S T   r e q u e s t s 
 -   I m p l e m e n t a t i o n   E x a m p l e : 
 
 ` ` ` 
 / /   A P I R e q u e s t   t e m p l a t e   f o r   O p e n R o u t e r   c o n t e n t   g e n e r a t i o n 
 c o n s t   r e s p o n s e   =   a w a i t   a p i R e q u e s t ( { 
     u r l :   ' h t t p s : / / o p e n r o u t e r . a i / a p i / v 1 / c h a t / c o m p l e t i o n s ' , 
     m e t h o d :   ' P O S T ' , 
     h e a d e r s :   { 
         ' A u t h o r i z a t i o n ' :   ' B e a r e r   { { O P E N R O U T E R _ A P I _ K E Y } } ' , 
         ' 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 ' , 
         ' H T T P - R e f e r e r ' :   ' h t t p s : / / o b s i d i a n . m d ' , 
         ' X - T i t l e ' :   ' G r a n t   M a n a g e m e n t   S y s t e m ' 
     } , 
     b o d y :   { 
         ' m o d e l ' :   ' m i s t r a l a i / m i s t r a l - 7 b - i n s t r u c t ' , 
         ' m e s s a g e s ' :   [ 
             { 
                 ' r o l e ' :   ' s y s t e m ' , 
                 ' c o n t e n t ' :   ' Y o u   a r e   a n   e x p e r t   g r a n t   w r i t e r   s p e c i a l i z i n g   i n   i m p a c t   s t a t e m e n t s . ' 
             } , 
             { 
                 ' r o l e ' :   ' u s e r ' , 
                 ' c o n t e n t ' :   ' { { P R O M P T } } ' 
             } 
         ] , 
         ' t e m p e r a t u r e ' :   0 . 7 
     } 
 } ) ; 
 
 / /   I n s e r t   t h e   g e n e r a t e d   c o n t e n t 
 r e t u r n   r e s p o n s e . c h o i c e s [ 0 ] . m e s s a g e . c o n t e n t ; 
 ` ` ` 
 
 -   U s e   C a s e :   P e r f e c t   f o r   m a k i n g   d i r e c t   c a l l s   t o   O p e n R o u t e r   A P I   f o r   c o n t e n t   g e n e r a t i o n   a n d   g r a n t   d i s c o v e r y 
 
 # # #   2 .  A I   C o m m a n d e r 
 
 -   S t a t u s :   A c t i v e ,   r e g u l a r l y   u p d a t e d 
 -   C o m p a t i b i l i t y :   G o o d   f o r   O p e n R o u t e r   i n t e g r a t i o n 
 -   K e y   F e a t u r e s : 
         -   C r e a t e   c u s t o m   A I   c o m m a n d s   w i t h   t e m p l a t e s 
         -   S u p p o r t s   m u l t i p l e   A I   p r o v i d e r s   ( c a n   b e   c o n f i g u r e d   f o r   O p e n R o u t e r ) 
         -   C o n t e x t - a w a r e   p r o m p t i n g 
         -   C o m m a n d   p a l e t t e   i n t e g r a t i o n 
 -   I m p l e m e n t a t i o n   E x a m p l e : 
 
 ` ` ` 
 / /   A I   C o m m a n d e r   c u s t o m   c o m m a n d   f o r   g r a n t   i m p a c t   s t a t e m e n t 
 N a m e :   G e n e r a t e   I m p a c t   S t a t e m e n t 
 M o d e l :   O p e n R o u t e r   -   m i s t r a l a i / m i s t r a l - 7 b - i n s t r u c t 
 S y s t e m   P r o m p t :   Y o u   a r e   a n   e x p e r t   g r a n t   w r i t e r   s p e c i a l i z i n g   i n   i m p a c t   s t a t e m e n t s   f o r   g r a n t   a p p l i c a t i o n s . 
 U s e r   P r o m p t :   C r e a t e   a   c o m p e l l i n g   i m p a c t   s t a t e m e n t   f o r   { { b u s i n e s s _ n a m e } } ,   a   { { b u s i n e s s _ t y p e } }   a p p l y i n g   f o r   t h e   { { g r a n t _ n a m e } }   g r a n t .   T h e   s t a t e m e n t   s h o u l d   h i g h l i g h t   t h e   s o c i a l   a n d   e c o n o m i c   i m p a c t   o f   t h e   b u s i n e s s ,   a l i g n   w i t h   t h e   g r a n t ' s   f o c u s   a r e a s   ( { { g r a n t _ c a t e g o r i e s } } ) ,   a n d   i n c l u d e   m e a s u r a b l e   o u t c o m e s . 
 ` ` ` 
 
 -   U s e   C a s e :   E x c e l l e n t   f o r   c r e a t i n g   a   l i b r a r y   o f   g r a n t - w r i t i n g   c o m m a n d s   t h a t   c a n   b e   q u i c k l y   a c c e s s e d   f r o m   a n y w h e r e   i n   y o u r   v a u l t 
 
 # # #   3 .  R a p i d   A I 
 
 -   S t a t u s :   A c t i v e ,   w e l l - m a i n t a i n e d 
 -   C o m p a t i b i l i t y :   V e r y   g o o d   f o r   O p e n R o u t e r   i n t e g r a t i o n 
 -   K e y   F e a t u r e s : 
         -   S u p p o r t s   c u s t o m   A P I   e n d p o i n t s 
         -   C o n f i g u r a b l e   t e m p l a t e s 
         -   I n l i n e   A I   r e s p o n s e s 
         -   C o n v e r s a t i o n   h i s t o r y 
 -   I m p l e m e n t a t i o n   E x a m p l e : 
         -   C o n f i g u r e   R a p i d   A I   t o   u s e   O p e n R o u t e r   e n d p o i n t 
         -   C r e a t e   t e m p l a t e s   f o r   d i f f e r e n t   g r a n t   s e c t i o n s 
         -   U s e   i n l i n e   c o m m a n d s   t o   g e n e r a t e   c o n t e n t   w i t h i n   n o t e s 
 -   U s e   C a s e :   G r e a t   f o r   q u i c k   c o n t e n t   g e n e r a t i o n   w h i l e   w r i t i n g   g r a n t   a p p l i c a t i o n s 
 
 # # #   4 .  D a t a   F e t c h e r 
 
 -   S t a t u s :   A c t i v e ,   s t a b l e 
 -   C o m p a t i b i l i t y :   G o o d   f o r   g r a n t   d i s c o v e r y 
 -   K e y   F e a t u r e s : 
         -   F e t c h   d a t a   f r o m   e x t e r n a l   A P I s 
         -   S c h e d u l e   r e g u l a r   d a t a   f e t c h i n g 
         -   T r a n s f o r m   a n d   f i l t e r   d a t a 
         -   C r e a t e   n o t e s   f r o m   f e t c h e d   d a t a 
 -   I m p l e m e n t a t i o n   E x a m p l e : 
 
 ` ` ` 
 / /   D a t a   F e t c h e r   c o n f i g u r a t i o n   f o r   G r a n t s . g o v   A P I 
 { 
     " u r l " :   " h t t p s : / / w w w . g r a n t s . g o v / g r a n t s w s / r e s t / o p p o r t u n i t i e s / s e a r c h " , 
     " 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 " :   { 
         " k e y w o r d " :   " s m a l l   b u s i n e s s " , 
         " o p p S t a t u s " :   " p o s t e d " , 
         " s o r t B y " :   " o p e n D a t e " , 
         " s o r t O r d e r " :   " d e s c " , 
         " p a g e S i z e " :   2 5 
     } , 
     " t r a n s f o r m " :   ( d a t a )   = >   { 
         r e t u r n   d a t a . o p p H i t s . m a p ( g r a n t   = >   ( { 
             n a m e :   g r a n t . o p p T i t l e , 
             i s s u e r :   g r a n t . a g e n c y N a m e , 
             a m o u n t :   g r a n t . a w a r d C e i l i n g , 
             d e a d l i n e :   g r a n t . c l o s e D a t e , 
             d e s c r i p t i o n :   g r a n t . d e s c r i p t i o n , 
             u r l :   ` h t t p s : / / w w w . g r a n t s . g o v / w e b / g r a n t s / v i e w - o p p o r t u n i t y . h t m l ? o p p I d = $ { g r a n t . o p p N u m b e r } ` 
         } ) ) ; 
     } , 
     " t e m p l a t e " :   " t e m p l a t e s / g r a n t . m d " 
 } 
 ` ` ` 
 
 -   U s e   C a s e :   P e r f e c t   f o r   a u t o m a t i n g   g r a n t   d i s c o v e r y   f r o m   m u l t i p l e   s o u r c e s   a n d   c r e a t i n g   g r a n t   n o t e s   a u t o m a t i c a l l y 
 
 # #   S e c o n d a r y   R e c o m m e n d e d   P l u g i n s 
 
 # # #   5 .  L o c a l R E S T   A P I 
 
 -   S t a t u s :   A c t i v e 
 -   C o m p a t i b i l i t y :   G o o d   f o r   c r e a t i n g   a   l o c a l   A P I   s e r v e r 
 -   K e y   F e a t u r e s : 
         -   C r e a t e   a   l o c a l   R E S T   A P I   s e r v e r   w i t h i n   O b s i d i a n 
         -   D e f i n e   c u s t o m   e n d p o i n t s 
         -   E x e c u t e   J a v a S c r i p t   f u n c t i o n s 
         -   R e t u r n   d a t a   t o   e x t e r n a l   a p p l i c a t i o n s 
 -   U s e   C a s e :   C a n   b e   u s e d   t o   c r e a t e   a   b r i d g e   b e t w e e n   O b s i d i a n   a n d   e x t e r n a l   g r a n t   m a n a g e m e n t   t o o l s 
 
 # # #   6 .  E x p l a i n   S e l e c t i o n   W i t h   A I 
 
 -   S t a t u s :   A c t i v e 
 -   C o m p a t i b i l i t y :   C a n   b e   c o n f i g u r e d   f o r   O p e n R o u t e r 
 -   K e y   F e a t u r e s : 
         -   S e n d   s e l e c t e d   t e x t   t o   A I   f o r   e x p l a n a t i o n / e n h a n c e m e n t 
         -   R e p l a c e   o r   i n s e r t   A I   r e s p o n s e s 
         -   C u s t o m i z a b l e   p r o m p t s 
 -   U s e   C a s e :   U s e f u l   f o r   i m p r o v i n g   g r a n t   l a n g u a g e ,   c l a r i f y i n g   t e c h n i c a l   t e r m s ,   o r   e n h a n c i n g   s p e c i f i c   s e c t i o n s 
 
 # # #   7 .  P o s t   W e b h o o k 
 
 -   S t a t u s :   A c t i v e 
 -   C o m p a t i b i l i t y :   G o o d   f o r   i n t e g r a t i o n   w i t h   e x t e r n a l   s y s t e m s 
 -   K e y   F e a t u r e s : 
         -   S e n d   d a t a   t o   e x t e r n a l   w e b h o o k s 
         -   T r i g g e r   e x t e r n a l   p r o c e s s e s 
         -   C u s t o m i z a b l e   p a y l o a d s 
 -   U s e   C a s e :   C a n   b e   u s e d   t o   n o t i f y   t e a m   m e m b e r s   o f   g r a n t   d e a d l i n e s   o r   a p p l i c a t i o n   s t a t u s   c h a n g e s 
 
 # # #   8 .  S m a r t   C o n n e c t i o n s 
 
 -   S t a t u s :   A c t i v e ,   p o p u l a r 
 -   C o m p a t i b i l i t y :   I n d i r e c t   b e n e f i t   f o r   g r a n t   m a n a g e m e n t 
 -   K e y   F e a t u r e s : 
         -   F i n d   s e m a n t i c   c o n n e c t i o n s   b e t w e e n   n o t e s 
         -   D i s c o v e r   r e l a t e d   c o n t e n t 
         -   B u i l d   k n o w l e d g e   g r a p h 
 -   U s e   C a s e :   H e l p f u l   f o r   f i n d i n g   c o n n e c t i o n s   b e t w e e n   b u s i n e s s e s   a n d   g r a n t s   b a s e d   o n   c o n t e n t   s i m i l a r i t y 
 
 # #   L i m i t e d   U t i l i t y   P l u g i n s 
 
 # # #   9 .  A u t o   C l a s s i f i e r 
 
 -   S t a t u s :   A c t i v e 
 -   C o m p a t i b i l i t y :   L i m i t e d   d i r e c t   i n t e g r a t i o n   w i t h   O p e n R o u t e r 
 -   K e y   F e a t u r e s : 
         -   A u t o m a t i c a l l y   c l a s s i f y   n o t e s 
         -   A d d   t a g s   a n d   p r o p e r t i e s 
 -   U s e   C a s e :   C o u l d   h e l p   o r g a n i z e   g r a n t   n o t e s   b u t   l i m i t e d   d i r e c t   A P I   i n t e g r a t i o n 
 
 # # #   1 0 .  A I   T a g g e r 
 
 -   S t a t u s :   A c t i v e 
 -   C o m p a t i b i l i t y :   L i m i t e d   d i r e c t   i n t e g r a t i o n   w i t h   O p e n R o u t e r 
 -   K e y   F e a t u r e s : 
         -   G e n e r a t e   t a g s   u s i n g   A I 
         -   O r g a n i z e   n o t e s   a u t o m a t i c a l l y 
 -   U s e   C a s e :   U s e f u l   f o r   t a g g i n g   g r a n t   o p p o r t u n i t i e s   b u t   n o t   c o r e   t o   A P I   i n t e g r a t i o n 
 
 # # #   1 1 .  G e n e 
 
 -   S t a t u s :   E x p e r i m e n t a l 
 -   C o m p a t i b i l i t y :   L i m i t e d   i n f o r m a t i o n   o n   O p e n R o u t e r   c o m p a t i b i l i t y 
 -   K e y   F e a t u r e s : 
         -   A I - p o w e r e d   n o t e   g e n e r a t i o n 
         -   U s e s   G P T   m o d e l s 
 -   U s e   C a s e :   C o u l d   p o t e n t i a l l y   b e   u s e d   f o r   c o n t e n t   g e n e r a t i o n   b u t   l e s s   f l e x i b l e   t h a n   o t h e r   o p t i o n s 
 
 # # #   1 2 .  S i m p l e   F i l e   P u s h 
 
 -   S t a t u s :   A c t i v e 
 -   C o m p a t i b i l i t y :   L i m i t e d   d i r e c t   i n t e g r a t i o n   w i t h   O p e n R o u t e r 
 -   K e y   F e a t u r e s : 
         -   P u s h   f i l e s   t o   e x t e r n a l   s e r v i c e s 
         -   S y n c   w i t h   e x t e r n a l   s y s t e m s 
 -   U s e   C a s e :   C o u l d   b e   u s e d   t o   s h a r e   g r a n t   a p p l i c a t i o n s   b u t   n o t   c o r e   t o   A P I   i n t e g r a t i o n 
 
 # # #   1 3 .  O p e n A P I   R e n d e r e r 
 
 -   S t a t u s :   A c t i v e 
 -   C o m p a t i b i l i t y :   U s e f u l   f o r   A P I   d o c u m e n t a t i o n 
 -   K e y   F e a t u r e s : 
         -   R e n d e r   O p e n A P I   s p e c i f i c a t i o n s 
         -   V i s u a l i z e   A P I   e n d p o i n t s 
 -   U s e   C a s e :   H e l p f u l   f o r   d o c u m e n t i n g   y o u r   O p e n R o u t e r   A P I   u s a g e   b u t   n o t   f o r   d i r e c t   i n t e g r a t i o n 
 
 # #   I m p l e m e n t a t i o n   S t r a t e g y 
 
 B a s e d   o n   t h e   p l u g i n   r e v i e w ,   h e r e ' s   a   r e c o m m e n d e d   i m p l e m e n t a t i o n   s t r a t e g y   f o r   i n t e g r a t i n g   O p e n R o u t e r   A P I s   w i t h   O b s i d i a n   f o r   g r a n t   m a n a g e m e n t : 
 
 # # #   1 .   C o r e   A P I   I n t e g r a t i o n 
 
 -   I n s t a l l   A P I R e q u e s t  f o r   d i r e c t   O p e n R o u t e r   A P I   c a l l s 
 -   C o n f i g u r e   a u t h e n t i c a t i o n   a n d   e n d p o i n t s 
 -   C r e a t e   t e m p l a t e s   f o r   d i f f e r e n t   A P I   c a l l s   ( c o n t e n t   g e n e r a t i o n ,   g r a n t   d i s c o v e r y ) 
 
 # # #   2 .   C o n t e n t   G e n e r a t i o n   W o r k f l o w 
 
 -   I n s t a l l   A I   C o m m a n d e r  f o r   q u i c k   a c c e s s   t o   A I   c o m m a n d s 
 -   C r e a t e   c u s t o m   c o m m a n d s   f o r   d i f f e r e n t   g r a n t   s e c t i o n s : 
         -   I m p a c t   s t a t e m e n t s 
         -   B u d g e t   j u s t i f i c a t i o n s 
         -   P r o j e c t   d e s c r i p t i o n s 
         -   E x e c u t i v e   s u m m a r i e s 
         -   E v a l u a t i o n   p l a n s 
 
 # # #   3 .   G r a n t   D i s c o v e r y   A u t o m a t i o n 
 
 -   I n s t a l l   D a t a   F e t c h e r  f o r   a u t o m a t e d   g r a n t   d i s c o v e r y 
 -   C o n f i g u r e   s c h e d u l e d   f e t c h i n g   f r o m   g r a n t   s o u r c e s : 
         -   G r a n t s . g o v 
         -   S B A   g r a n t s 
         -   F o u n d a t i o n   d a t a b a s e s 
 -   S e t   u p   t e m p l a t e s   f o r   c r e a t i n g   g r a n t   n o t e s   f r o m   f e t c h e d   d a t a 
 
 # # #   4 .   E n h a n c e d   U s e r   E x p e r i e n c e 
 
 -   I n s t a l l   R a p i d   A I  f o r   i n l i n e   c o n t e n t   g e n e r a t i o n 
 -   I n s t a l l   S m a r t   C o n n e c t i o n s  f o r   f i n d i n g   r e l a t i o n s h i p s   b e t w e e n   g r a n t s   a n d   b u s i n e s s e s 
 -   I n s t a l l   E x p l a i n   S e l e c t i o n   W i t h   A I  f o r   i m p r o v i n g   g r a n t   l a n g u a g e 
 
 # # #   5 .   I n t e g r a t i o n   w i t h   E x t e r n a l   S y s t e m s 
 
 -   I n s t a l l   P o s t   W e b h o o k  f o r   n o t i f i c a t i o n s   a n d   e x t e r n a l   i n t e g r a t i o n s 
 -   C o n f i g u r e   w e b h o o k s   f o r   d e a d l i n e   n o t i f i c a t i o n s   a n d   s t a t u s   u p d a t e s 
 
 # #   S a m p l e   S e t u p :   O p e n R o u t e r   I n t e g r a t i o n   w i t h   A P I R e q u e s t 
 
 H e r e ' s   a   d e t a i l e d   i m p l e m e n t a t i o n   e x a m p l e   f o r   i n t e g r a t i n g   O p e n R o u t e r   w i t h   O b s i d i a n   u s i n g   t h e   A P I R e q u e s t   p l u g i n : 
 
 1 .   I n s t a l l   A P I R e q u e s t  p l u g i n   f r o m   t h e   C o m m u n i t y   P l u g i n s   s e c t i o n 
         
 2 .   C r e a t e   a n   A P I   c o n f i g u r a t i o n   n o t e  ( 
         
         ` ` ` 
         _ c o n f i g / o p e n r o u t e r _ a p i . m d 
         ` ` ` 
         
         ) : 
         
 
 ` ` ` 
 - - - 
 a p i _ k e y :   " y o u r _ o p e n r o u t e r _ a p i _ k e y " 
 d e f a u l t _ m o d e l :   " m i s t r a l a i / m i s t r a l - 7 b - i n s t r u c t " 
 f a l l b a c k _ m o d e l :   " m i c r o s o f t / p h i - 2 " 
 m o d e l s : 
     g e n e r a l :   " m i s t r a l a i / m i s t r a l - 7 b - i n s t r u c t " 
     i m p a c t :   " m e t a - l l a m a / l l a m a - 2 - 1 3 b - c h a t " 
     b u d g e t :   " g o o g l e / g e m m a - 7 b - i t " 
     s u m m a r y :   " m i c r o s o f t / p h i - 2 " 
     t i m e l i n e :   " m i s t r a l a i / m i s t r a l - 7 b - i n s t r u c t " 
 - - - 
 
 #   O p e n R o u t e r   A P I   C o n f i g u r a t i o n 
 
 T h i s   n o t e   c o n t a i n s   c o n f i g u r a t i o n   f o r   O p e n R o u t e r   A P I   i n t e g r a t i o n . 
 ` ` ` 
 
 3 .   C r e a t e   a   t e m p l a t e   f o r   g e n e r a t i n g   g r a n t   c o n t e n t  ( 
         
         ` ` ` 
         _ t e m p l a t e s / g e n e r a t e _ c o n t e n t . m d 
         ` ` ` 
         
         ) : 
 
 ` ` ` 
 < % * 
 / /   G e t   A P I   c o n f i g u r a t i o n 
 c o n s t   c o n f i g F i l e   =   a p p . v a u l t . g e t A b s t r a c t F i l e B y P a t h ( " _ c o n f i g / o p e n r o u t e r _ a p i . m d " ) ; 
 c o n s t   c o n f i g C o n t e n t   =   a w a i t   a p p . v a u l t . r e a d ( c o n f i g F i l e ) ; 
 c o n s t   c o n f i g F r o n t m a t t e r   =   a p p . m e t a d a t a C a c h e . g e t F i l e C a c h e ( c o n f i g F i l e ) . f r o n t m a t t e r ; 
 
 / /   G e t   c o n t e n t   t y p e   f r o m   u s e r 
 c o n s t   c o n t e n t T y p e   =   a w a i t   t p . s y s t e m . p r o m p t ( " S e l e c t   c o n t e n t   t y p e " ,   " g e n e r a l , i m p a c t , b u d g e t , t i m e l i n e , e x e c u t i v e " ) ; 
 
 / /   G e t   m o d e l   b a s e d   o n   c o n t e n t   t y p e 
 c o n s t   m o d e l   =   c o n f i g F r o n t m a t t e r . m o d e l s [ c o n t e n t T y p e ]   | |   c o n f i g F r o n t m a t t e r . d e f a u l t _ m o d e l ; 
 
 / /   G e t   s e c t i o n   i n f o r m a t i o n 
 c o n s t   s e c t i o n N a m e   =   t p . f i l e . t i t l e . s p l i t ( "   -   " ) [ 0 ] ; 
 c o n s t   a p p l i c a t i o n L i n k   =   t p . f r o n t m a t t e r . a p p l i c a t i o n ; 
 c o n s t   a p p l i c a t i o n F i l e   =   a p p l i c a t i o n L i n k . r e p l a c e ( " [ [ " ,   " " ) . r e p l a c e ( " ] ] " ,   " " )   +   " . m d " ; 
 c o n s t   a p p l i c a t i o n C o n t e n t   =   a w a i t   a p p . v a u l t . r e a d ( a p p . v a u l t . g e t A b s t r a c t F i l e B y P a t h ( a p p l i c a t i o n F i l e ) ) ; 
 c o n s t   a p p l i c a t i o n F r o n t m a t t e r   =   a p p . m e t a d a t a C a c h e . g e t F i l e C a c h e ( a p p . v a u l t . g e t A b s t r a c t F i l e B y P a t h ( a p p l i c a t i o n F i l e ) ) . f r o n t m a t t e r ; 
 
 / /   G e t   b u s i n e s s   a n d   g r a n t   i n f o r m a t i o n 
 c o n s t   b u s i n e s s L i n k   =   a p p l i c a t i o n F r o n t m a t t e r . b u s i n e s s ; 
 c o n s t   g r a n t L i n k   =   a p p l i c a t i o n F r o n t m a t t e r . g r a n t ; 
 c o n s t   b u s i n e s s F i l e   =   b u s i n e s s L i n k . r e p l a c e ( " [ [ " ,   " " ) . r e p l a c e ( " ] ] " ,   " " )   +   " . m d " ; 
 c o n s t   g r a n t F i l e   =   g r a n t L i n k . r e p l a c e ( " [ [ " ,   " " ) . r e p l a c e ( " ] ] " ,   " " )   +   " . m d " ; 
 c o n s t   b u s i n e s s C o n t e n t   =   a w a i t   a p p . v a u l t . r e a d ( a p p . v a u l t . g e t A b s t r a c t F i l e B y P a t h ( b u s i n e s s F i l e ) ) ; 
 c o n s t   g r a n t C o n t e n t   =   a w a i t   a p p . v a u l t . r e a d ( a p p . v a u l t . g e t A b s t r a c t F i l e B y P a t h ( g r a n t F i l e ) ) ; 
 c o n s t   b u s i n e s s F r o n t m a t t e r   =   a p p . m e t a d a t a C a c h e . g e t F i l e C a c h e ( a p p . v a u l t . g e t A b s t r a c t F i l e B y P a t h ( b u s i n e s s F i l e ) ) . f r o n t m a t t e r ; 
 c o n s t   g r a n t F r o n t m a t t e r   =   a p p . m e t a d a t a C a c h e . g e t F i l e C a c h e ( a p p . v a u l t . g e t A b s t r a c t F i l e B y P a t h ( g r a n t F i l e ) ) . f r o n t m a t t e r ; 
 
 / /   P r e p a r e   p r o m p t 
 c o n s t   p r o m p t   =   ` C r e a t e   c o n t e n t   f o r   t h e   ' $ { s e c t i o n N a m e } '   s e c t i o n   o f   a   g r a n t   a p p l i c a t i o n   w i t h   t h e   f o l l o w i n g   d e t a i l s : 
 
 B u s i n e s s :   $ { b u s i n e s s F r o n t m a t t e r . n a m e } 
 B u s i n e s s   T y p e :   $ { b u s i n e s s F r o n t m a t t e r . b u s i n e s s _ t y p e } 
 B u s i n e s s   D e s c r i p t i o n :   $ { b u s i n e s s F r o n t m a t t e r . b u s i n e s s _ d e s c r i p t i o n   | |   " N o t   p r o v i d e d " } 
 
 G r a n t :   $ { g r a n t F r o n t m a t t e r . g r a n t _ n a m e } 
 G r a n t   I s s u e r :   $ { g r a n t F r o n t m a t t e r . i s s u e r } 
 G r a n t   C a t e g o r i e s :   $ { g r a n t F r o n t m a t t e r . g r a n t _ c a t e g o r i e s } 
 G r a n t   D e s c r i p t i o n :   $ { g r a n t F r o n t m a t t e r . d e s c r i p t i o n   | |   " N o t   p r o v i d e d " } 
 
 $ { c o n t e n t T y p e   = = =   " i m p a c t "   ?   
     " C r e a t e   a   c o m p e l l i n g   i m p a c t   s t a t e m e n t   t h a t   h i g h l i g h t s   t h e   s o c i a l   a n d   e c o n o m i c   i m p a c t   o f   t h e   b u s i n e s s ,   a l i g n s   w i t h   t h e   g r a n t ' s   f o c u s   a r e a s ,   a n d   i n c l u d e s   m e a s u r a b l e   o u t c o m e s . "   : 
     c o n t e n t T y p e   = = =   " b u d g e t "   ? 
     " C r e a t e   a   d e t a i l e d   b u d g e t   j u s t i f i c a t i o n   t h a t   e x p l a i n s   h o w   t h e   r e q u e s t e d   f u n d s   w i l l   b e   u s e d ,   d e m o n s t r a t e s   c o s t - e f f e c t i v e n e s s ,   a n d   a l i g n s   w i t h   t h e   g r a n t ' s   r e q u i r e m e n t s . "   : 
     c o n t e n t T y p e   = = =   " t i m e l i n e "   ? 
     " C r e a t e   a   p r o j e c t   t i m e l i n e   t h a t   o u t l i n e s   k e y   m i l e s t o n e s ,   d e l i v e r a b l e s ,   a n d   d e a d l i n e s   f o r   t h e   g r a n t   p r o j e c t .   F o r m a t   i t   i n   a   c l e a r ,   s t r u c t u r e d   w a y . "   : 
     c o n t e n t T y p e   = = =   " e x e c u t i v e "   ? 
     " C r e a t e   a n   e x e c u t i v e   s u m m a r y   t h a t   p r o v i d e s   a   c o n c i s e   o v e r v i e w   o f   t h e   g r a n t   a p p l i c a t i o n ,   h i g h l i g h t i n g   t h e   b u s i n e s s ' s   q u a l i f i c a t i o n s ,   t h e   p r o j e c t ' s   p u r p o s e ,   a n d   t h e   e x p e c t e d   o u t c o m e s . "   : 
     " C r e a t e   c o m p e l l i n g   c o n t e n t   f o r   t h i s   s e c t i o n   t h a t   i s   t a i l o r e d   t o   t h e   b u s i n e s s   a n d   g r a n t .   T h e   c o n t e n t   s h o u l d   b e   w e l l - s t r u c t u r e d   a n d   p e r s u a s i v e . " 
 } ` ; 
 
 / /   G e t   s y s t e m   p r o m p t   b a s e d   o n   c o n t e n t   t y p e 
 c o n s t   s y s t e m P r o m p t   =   c o n t e n t T y p e   = = =   " i m p a c t "   ? 
     " Y o u   a r e   a n   e x p e r t   g r a n t   w r i t e r   s p e c i a l i z i n g   i n   i m p a c t   s t a t e m e n t s   f o r   g r a n t   a p p l i c a t i o n s . "   : 
     c o n t e n t T y p e   = = =   " b u d g e t "   ? 
     " Y o u   a r e   a n   e x p e r t   g r a n t   w r i t e r   s p e c i a l i z i n g   i n   b u d g e t   j u s t i f i c a t i o n s   f o r   g r a n t   a p p l i c a t i o n s . "   : 
     c o n t e n t T y p e   = = =   " t i m e l i n e "   ? 
     " Y o u   a r e   a n   e x p e r t   g r a n t   w r i t e r   s p e c i a l i z i n g   i n   p r o j e c t   t i m e l i n e s   f o r   g r a n t   a p p l i c a t i o n s . "   : 
     c o n t e n t T y p e   = = =   " e x e c u t i v e "   ? 
     " Y o u   a r e   a n   e x p e r t   g r a n t   w r i t e r   s p e c i a l i z i n g   i n   e x e c u t i v e   s u m m a r i e s   f o r   g r a n t   a p p l i c a t i o n s . "   : 
     " Y o u   a r e   a n   e x p e r t   g r a n t   w r i t e r   s p e c i a l i z i n g   i n   c r e a t i n g   c o m p e l l i n g   c o n t e n t   f o r   g r a n t   a p p l i c a t i o n s . " ; 
 
 / /   G e t   t e m p e r a t u r e   b a s e d   o n   c o n t e n t   t y p e 
 c o n s t   t e m p e r a t u r e   =   c o n t e n t T y p e   = = =   " b u d g e t "   ?   0 . 3   : 
                                       c o n t e n t T y p e   = = =   " i m p a c t "   ?   0 . 8   : 
                                       0 . 7 ; 
 
 / /   M a k e   A P I   r e q u e s t 
 c o n s t   r e s p o n s e   =   a w a i t   a p i R e q u e s t ( { 
     u r l :   ' h t t p s : / / o p e n r o u t e r . a i / a p i / v 1 / c h a t / c o m p l e t i o n s ' , 
     m e t h o d :   ' P O S T ' , 
     h e a d e r s :   { 
         ' A u t h o r i z a t i o n ' :   ` B e a r e r   $ { c o n f i g F r o n t m a t t e r . a p i _ k e y } ` , 
         ' 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 ' , 
         ' H T T P - R e f e r e r ' :   ' h t t p s : / / o b s i d i a n . m d ' , 
         ' X - T i t l e ' :   ' G r a n t   M a n a g e m e n t   S y s t e m ' 
     } , 
     b o d y :   { 
         ' m o d e l ' :   m o d e l , 
         ' m e s s a g e s ' :   [ 
             { 
                 ' r o l e ' :   ' s y s t e m ' , 
                 ' c o n t e n t ' :   s y s t e m P r o m p t 
             } , 
             { 
                 ' r o l e ' :   ' u s e r ' , 
                 ' c o n t e n t ' :   p r o m p t 
             } 
         ] , 
         ' t e m p e r a t u r e ' :   t e m p e r a t u r e , 
         ' m a x _ t o k e n s ' :   1 0 0 0 
     } 
 } ) ; 
 
 / /   C h e c k   f o r   e r r o r s 
 i f   ( r e s p o n s e . e r r o r )   { 
     t h r o w   n e w   E r r o r ( ` O p e n R o u t e r   A P I   E r r o r :   $ { r e s p o n s e . e r r o r . m e s s a g e } ` ) ; 
 } 
 
 / /   G e t   g e n e r a t e d   c o n t e n t 
 c o n s t   g e n e r a t e d C o n t e n t   =   r e s p o n s e . c h o i c e s [ 0 ] . m e s s a g e . c o n t e n t ; 
 
 / /   R e t u r n   t h e   g e n e r a t e d   c o n t e n t 
 t R   + =   g e n e r a t e d C o n t e n t ; 
 % > 
 ` ` ` 
 
 4 .   C r e a t e   a   t e m p l a t e   f o r   g r a n t   d i s c o v e r y  ( 
         
         ` ` ` 
         _ t e m p l a t e s / d i s c o v e r _ g r a n t s . m d 
         ` ` ` 
         
         ) : 
 
 ` ` ` 
 < % * 
 / /   G e t   A P I   c o n f i g u r a t i o n 
 c o n s t   c o n f i g F i l e   =   a p p . v a u l t . g e t A b s t r a c t F i l e B y P a t h ( " _ c o n f i g / o p e n r o u t e r _ a p i . m d " ) ; 
 c o n s t   c o n f i g C o n t e n t   =   a w a i t   a p p . v a u l t . r e a d ( c o n f i g F i l e ) ; 
 c o n s t   c o n f i g F r o n t m a t t e r   =   a p p . m e t a d a t a C a c h e . g e t F i l e C a c h e ( c o n f i g F i l e ) . f r o n t m a t t e r ; 
 
 / /   D e f i n e   k e y w o r d s 
 c o n s t   k e y w o r d s   =   [ " s m a l l   b u s i n e s s " ,   " m i n o r i t y " ,   " w o m e n " ,   " N e b r a s k a " ] ; 
 
 / /   M a k e   A P I   r e q u e s t   t o   G r a n t s . g o v 
 c o n s t   r e s p o n s e   =   a w a i t   a p i R e q u e s t ( { 
     u r l :   ' h t t p s : / / w w w . g r a n t s . g o v / g r a n t s w s / r e s t / o p p o r t u n i t i e s / s e a r c h ' , 
     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 :   { 
         ' k e y w o r d ' :   k e y w o r d s [ 0 ] , 
         ' o p p S t a t u s ' :   ' p o s t e d ' , 
         ' s o r t B y ' :   ' o p e n D a t e ' , 
         ' s o r t O r d e r ' :   ' d e s c ' , 
         ' p a g e S i z e ' :   1 0 
     } 
 } ) ; 
 
 / /   P r o c e s s   g r a n t s 
 l e t   c r e a t e d G r a n t s   =   0 ; 
 i f   ( r e s p o n s e . o p p H i t s )   { 
     f o r   ( c o n s t   g r a n t   o f   r e s p o n s e . o p p H i t s )   { 
         / /   C h e c k   i f   g r a n t   a l r e a d y   e x i s t s 
         c o n s t   g r a n t F i l e N a m e   =   ` g r a n t s / $ { g r a n t . o p p T i t l e . r e p l a c e ( / [ ^ a - z A - Z 0 - 9 ] / g ,   "   " ) . r e p l a c e ( / \ s + / g ,   " - " ) } . m d ` ; 
         c o n s t   e x i s t i n g F i l e   =   a p p . v a u l t . g e t A b s t r a c t F i l e B y P a t h ( g r a n t F i l e N a m e ) ; 
         
         i f   ( ! e x i s t i n g F i l e )   { 
             / /   C r e a t e   g r a n t   f i l e 
             c o n s t   g r a n t C o n t e n t   =   ` - - - 
 t y p e :   g r a n t 
 g r a n t _ n a m e :   " $ { g r a n t . o p p T i t l e } " 
 i s s u e r :   " $ { g r a n t . a g e n c y N a m e } " 
 a m o u n t :   $ { g r a n t . a w a r d C e i l i n g   | |   " n u l l " } 
 a p p l i c a t i o n _ d e a d l i n e :   $ { g r a n t . c l o s e D a t e   ?   m o m e n t ( g r a n t . c l o s e D a t e ) . f o r m a t ( " Y Y Y Y - M M - D D " )   :   " n u l l " } 
 f r e q u e n c y :   " A n n u a l " 
 g r a n t _ c a t e g o r i e s :   " $ { g r a n t . c a t e g o r y O f F u n d i n g A c t i v i t y   ?   g r a n t . c a t e g o r y O f F u n d i n g A c t i v i t y . j o i n ( " ,   " )   :   " " } " 
 d e m o g r a p h i c _ r e q u i r e m e n t s :   " " 
 g r a n t _ u r l :   " h t t p s : / / w w w . g r a n t s . g o v / w e b / g r a n t s / v i e w - o p p o r t u n i t y . h t m l ? o p p I d = $ { g r a n t . o p p N u m b e r } " 
 e l i g i b i l i t y :   " $ { g r a n t . e l i g i b l e A p p l i c a n t s   ?   g r a n t . e l i g i b l e A p p l i c a n t s . j o i n ( " ,   " )   :   " " } " 
 m a t c h _ s c o r e :   7 0 
 c r e a t e d :   $ { m o m e n t ( ) . f o r m a t ( " Y Y Y Y - M M - D D " ) } 
 l a s t _ m o d i f i e d :   $ { m o m e n t ( ) . f o r m a t ( " Y Y Y Y - M M - D D " ) } 
 t a g s :   g r a n t 
 - - - 
 
 #   $ { g r a n t . o p p T i t l e } 
 
 # #   D e s c r i p t i o n 
 $ { g r a n t . d e s c r i p t i o n   | |   " N o   d e s c r i p t i o n   a v a i l a b l e . " } 
 
 # #   E l i g i b i l i t y 
 $ { g r a n t . e l i g i b l e A p p l i c a n t s   ?   g r a n t . e l i g i b l e A p p l i c a n t s . j o i n ( " ,   " )   :   " N o t   s p e c i f i e d " } 
 
 # #   N o t e s 
 D i s c o v e r e d   t h r o u g h   a u t o m a t e d   g r a n t   d i s c o v e r y   u s i n g   G r a n t s . g o v   A P I . 
 
 # #   D a y s   U n t i l   D e a d l i n e 
 \ ` \ ` \ ` d a t a v i e w j s 
 c o n s t   d e a d l i n e   =   d v . c u r r e n t ( ) . a p p l i c a t i o n _ d e a d l i n e ; 
 i f   ( d e a d l i n e )   { 
     c o n s t   t o d a y   =   n e w   D a t e ( ) ; 
     c o n s t   d e a d l i n e D a t e   =   n e w   D a t e ( d e a d l i n e ) ; 
     c o n s t   d a y s L e f t   =   M a t h . c e i l ( ( d e a d l i n e D a t e   -   t o d a y )   /   ( 1 0 0 0   *   6 0   *   6 0   *   2 4 ) ) ; 
     
     l e t   c o l o r   =   " g r e e n " ; 
     i f   ( d a y s L e f t   < =   3 )   c o l o r   =   " r e d " ; 
     e l s e   i f   ( d a y s L e f t   < =   7 )   c o l o r   =   " o r a n g e " ; 
     
     d v . p a r a g r a p h ( \ ` < s p a n   s t y l e = " c o l o r : \ < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x - e r r o r "   t i t l e = " P a r s e E r r o r :   K a T e X   p a r s e   e r r o r :   U n e x p e c t e d   c h a r a c t e r :   & # x 2 7 ; \ & # x 2 7 ;   a t   p o s i t i o n   2 8 :   & - w e i g h t : b o l d ; & q u o t ; & g t ; \ 2"   s t y l e = " c o l o r : # c c 0 0 0 0 " > { c o l o r } ; f o n t - w e i g h t : b o l d ; & q u o t ; & g t ; \ < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { d a y s L e f t }   d a y s   l e f t < / s p a n > \ ` ) ; 
 }   e l s e   { 
     d v . p a r a g r a p h ( " N o   d e a d l i n e   s p e c i f i e d " ) ; 
 } 
 \ ` \ ` \ ` 
 
 # #   M a t c h i n g   B u s i n e s s e s 
 \ ` \ ` \ ` d a t a v i e w 
 T A B L E   b u s i n e s s _ t y p e ,   a n n u a l _ r e v e n u e ,   o w n e r _ d e m o g r a p h i c s 
 F R O M   # b u s i n e s s 
 W H E R E   m a t c h _ s c o r e   >   5 0 
 S O R T   m a t c h _ s c o r e   D E S C 
 \ ` \ ` \ ` 
 
 # #   A p p l i c a t i o n s 
 \ ` \ ` \ ` d a t a v i e w 
 T A B L E   b u s i n e s s . n a m e   a s   " B u s i n e s s " ,   s t a t u s ,   c o m p l e t i o n _ p e r c e n t a g e ,   s u b m i s s i o n _ d a t e 
 F R O M   # a p p l i c a t i o n 
 W H E R E   g r a n t   =   t h i s . f i l e . l i n k 
 S O R T   s u b m i s s i o n _ d a t e   D E S C 
 \ ` \ ` \ ` 
 
 # #   A c t i o n s 
 \ ` \ ` \ ` b u t t o n 
 n a m e   C r e a t e   A p p l i c a t i o n 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   C r e a t e   A p p l i c a t i o n   f o r   t h i s   G r a n t 
 \ ` \ ` \ ` 
 ` ; 
 
             a w a i t   a p p . v a u l t . c r e a t e ( g r a n t F i l e N a m e ,   g r a n t C o n t e n t ) ; 
             c r e a t e d G r a n t s + + ; 
         } 
     } 
 } 
 
 / /   G e n e r a t e   s u m m a r y   u s i n g   O p e n R o u t e r 
 c o n s t   s u m m a r y P r o m p t   =   ` I ' v e   d i s c o v e r e d   $ { c r e a t e d G r a n t s }   n e w   g r a n t s   f r o m   G r a n t s . g o v .   P l e a s e   p r o v i d e   a   b r i e f   s u m m a r y   o f   t h e   t y p e s   o f   g r a n t s   t h a t   a r e   t y p i c a l l y   a v a i l a b l e   f o r   s m a l l   b u s i n e s s e s ,   m i n o r i t y - o w n e d   b u s i n e s s e s ,   a n d   w o m e n - o w n e d   b u s i n e s s e s   i n   N e b r a s k a . ` ; 
 
 c o n s t   s u m m a r y R e s p o n s e   =   a w a i t   a p i R e q u e s t ( { 
     u r l :   ' h t t p s : / / o p e n r o u t e r . a i / a p i / v 1 / c h a t / c o m p l e t i o n s ' , 
     m e t h o d :   ' P O S T ' , 
     h e a d e r s :   { 
         ' A u t h o r i z a t i o n ' :   ` B e a r e r   $ { c o n f i g F r o n t m a t t e r . a p i _ k e y } ` , 
         ' 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 ' , 
         ' H T T P - R e f e r e r ' :   ' h t t p s : / / o b s i d i a n . m d ' , 
         ' X - T i t l e ' :   ' G r a n t   M a n a g e m e n t   S y s t e m ' 
     } , 
     b o d y :   { 
         ' m o d e l ' :   ' m i c r o s o f t / p h i - 2 ' , 
         ' m e s s a g e s ' :   [ 
             { 
                 ' r o l e ' :   ' s y s t e m ' , 
                 ' c o n t e n t ' :   ' Y o u   a r e   a n   e x p e r t   o n   g r a n t   o p p o r t u n i t i e s   f o r   s m a l l   b u s i n e s s e s . ' 
             } , 
             { 
                 ' r o l e ' :   ' u s e r ' , 
                 ' c o n t e n t ' :   s u m m a r y P r o m p t 
             } 
         ] , 
         ' t e m p e r a t u r e ' :   0 . 7 , 
         ' m a x _ t o k e n s ' :   5 0 0 
     } 
 } ) ; 
 
 / /   R e t u r n   r e s u l t s 
 t R   + =   ` #   G r a n t   D i s c o v e r y   R e s u l t s \ n \ n ` ; 
 t R   + =   ` D i s c o v e r e d   $ { c r e a t e d G r a n t s }   n e w   g r a n t s   f r o m   G r a n t s . g o v . \ n \ n ` ; 
 t R   + =   ` # #   G r a n t   S u m m a r y \ n \ n ` ; 
 t R   + =   s u m m a r y R e s p o n s e . c h o i c e s [ 0 ] . m e s s a g e . c o n t e n t ; 
 % > 
 ` ` ` 
 
 # #   C o n c l u s i o n 
 
 A f t e r   r e v i e w i n g   t h e   p l u g i n s ,   I   r e c o m m e n d   t h e   f o l l o w i n g   c o m b i n a t i o n   f o r   y o u r   g r a n t   m a n a g e m e n t   s y s t e m   i n   O b s i d i a n : 
 
 1 .   A P I R e q u e s t  -   F o r   d i r e c t   O p e n R o u t e r   A P I   i n t e g r a t i o n 
 2 .   A I   C o m m a n d e r  -   F o r   q u i c k   a c c e s s   t o   A I - p o w e r e d   g r a n t   w r i t i n g   c o m m a n d s 
 3 .   D a t a   F e t c h e r  -   F o r   a u t o m a t e d   g r a n t   d i s c o v e r y 
 4 .   R a p i d   A I  -   F o r   i n l i n e   c o n t e n t   g e n e r a t i o n 
 5 .   S m a r t   C o n n e c t i o n s  -   F o r   f i n d i n g   r e l a t i o n s h i p s   b e t w e e n   g r a n t s   a n d   b u s i n e s s e s 
 
 T h e s e   p l u g i n s   t o g e t h e r   p r o v i d e   a   p o w e r f u l   f o u n d a t i o n   f o r   b u i l d i n g   a   g r a n t   m a n a g e m e n t   s y s t e m   i n   O b s i d i a n   t h a t   l e v e r a g e s   O p e n R o u t e r   A P I s   f o r   b o t h   g r a n t   d i s c o v e r y   a n d   a p p l i c a t i o n   w r i t i n g .   T h e   i m p l e m e n t a t i o n   e x a m p l e s   p r o v i d e d   s h o u l d   g i v e   y o u   a   s t a r t i n g   p o i n t   f o r   s e t t i n g   u p   y o u r   s y s t e m . 
 
 T h e   k e y   a d v a n t a g e   o f   t h i s   a p p r o a c h   i s   t h a t   y o u   c a n   h a v e   a   f u l l y   f u n c t i o n a l   g r a n t   m a n a g e m e n t   s y s t e m   t h a t   w o r k s   o f f l i n e ,   i s   h i g h l y   c u s t o m i z a b l e ,   a n d   i n t e g r a t e s   d i r e c t l y   w i t h   A I   c a p a b i l i t i e s   t h r o u g h   O p e n R o u t e r ,   a l l   w h i l e   m a i n t a i n i n g   t h e   k n o w l e d g e   m a n a g e m e n t   b e n e f i t s   o f   O b s i d i a n . 
 
 d r i l l   d o w n   a l l   f o r   b u i l d i n g   t h e   s y s t e m   &   i n t e g r a t i n g   t h e   p l u g i n s .   i   n e e d   s t e p   b y   s t e p .   p l e a s e   r e v i e w   a l l   p r e v i o u s   c o n t e n t   s o   w e   d o n t   f o r g e t   a n y t h i n g .   i n c l u d e   t h e   a d d i t i o n a l   f e a t u r e s   w e   d i s c u s s e d   ( e . g .   v a r y i n g   m o d e l   s e l e c t i o n   b a s e d   o n   t a s k   t y p e ,   a d d i t i o n a l   g r a n t   s i t e s   a p i s   i n   a d d i t i o n   t o   g r a n t s . g o v ,   e t c ) .   b e   c o m p r e h e n s i v e 
 
 ! [ A I ] ( h t t p s : / / c h a t . g a l a x y . a i / g a l a x y - s v g . p n g ) 
 
 #   C o m p r e h e n s i v e   G u i d e :   B u i l d i n g   a   G r a n t   M a n a g e m e n t   S y s t e m   i n   O b s i d i a n   w i t h   O p e n R o u t e r   I n t e g r a t i o n 
 
 T h i s   s t e p - b y - s t e p   g u i d e   w i l l   w a l k   y o u   t h r o u g h   b u i l d i n g   a   c o m p l e t e   g r a n t   m a n a g e m e n t   s y s t e m   i n   O b s i d i a n   t h a t   i n t e g r a t e s   w i t h   O p e n R o u t e r   A P I s   f o r   A I - p o w e r e d   c o n t e n t   g e n e r a t i o n   a n d   g r a n t   d i s c o v e r y .   I ' v e   r e v i e w e d   a l l   p r e v i o u s   c o n t e n t   t o   e n s u r e   w e   i n c l u d e   a l l   d i s c u s s e d   f e a t u r e s   a n d   c o m p o n e n t s . 
 
 # #   T a b l e   o f   C o n t e n t s 
 
 1 .   [ I n i t i a l   S e t u p ] ( h t t p s : / / c h a t . g a l a x y . a i / 6 8 1 a 1 0 2 9 a 8 a 9 d 1 b 9 2 3 c 1 0 b 0 c # 1 - i n i t i a l - s e t u p ) 
 2 .   [ F o l d e r   S t r u c t u r e   a n d   O r g a n i z a t i o n ] ( h t t p s : / / c h a t . g a l a x y . a i / 6 8 1 a 1 0 2 9 a 8 a 9 d 1 b 9 2 3 c 1 0 b 0 c # 2 - f o l d e r - s t r u c t u r e - a n d - o r g a n i z a t i o n ) 
 3 .   [ P l u g i n   I n s t a l l a t i o n   a n d   C o n f i g u r a t i o n ] ( h t t p s : / / c h a t . g a l a x y . a i / 6 8 1 a 1 0 2 9 a 8 a 9 d 1 b 9 2 3 c 1 0 b 0 c # 3 - p l u g i n - i n s t a l l a t i o n - a n d - c o n f i g u r a t i o n ) 
 4 .   [ T e m p l a t e   C r e a t i o n ] ( h t t p s : / / c h a t . g a l a x y . a i / 6 8 1 a 1 0 2 9 a 8 a 9 d 1 b 9 2 3 c 1 0 b 0 c # 4 - t e m p l a t e - c r e a t i o n ) 
 5 .   [ O p e n R o u t e r   A P I   I n t e g r a t i o n ] ( h t t p s : / / c h a t . g a l a x y . a i / 6 8 1 a 1 0 2 9 a 8 a 9 d 1 b 9 2 3 c 1 0 b 0 c # 5 - o p e n r o u t e r - a p i - i n t e g r a t i o n ) 
 6 .   [ G r a n t   D i s c o v e r y   S y s t e m ] ( h t t p s : / / c h a t . g a l a x y . a i / 6 8 1 a 1 0 2 9 a 8 a 9 d 1 b 9 2 3 c 1 0 b 0 c # 6 - g r a n t - d i s c o v e r y - s y s t e m ) 
 7 .   [ A I - P o w e r e d   C o n t e n t   G e n e r a t i o n ] ( h t t p s : / / c h a t . g a l a x y . a i / 6 8 1 a 1 0 2 9 a 8 a 9 d 1 b 9 2 3 c 1 0 b 0 c # 7 - a i - p o w e r e d - c o n t e n t - g e n e r a t i o n ) 
 8 .   [ B u s i n e s s   a n d   G r a n t   M a t c h i n g ] ( h t t p s : / / c h a t . g a l a x y . a i / 6 8 1 a 1 0 2 9 a 8 a 9 d 1 b 9 2 3 c 1 0 b 0 c # 8 - b u s i n e s s - a n d - g r a n t - m a t c h i n g ) 
 9 .   [ A p p l i c a t i o n   M a n a g e m e n t ] ( h t t p s : / / c h a t . g a l a x y . a i / 6 8 1 a 1 0 2 9 a 8 a 9 d 1 b 9 2 3 c 1 0 b 0 c # 9 - a p p l i c a t i o n - m a n a g e m e n t ) 
 1 0 .   [ D a s h b o a r d   a n d   R e p o r t i n g ] ( h t t p s : / / c h a t . g a l a x y . a i / 6 8 1 a 1 0 2 9 a 8 a 9 d 1 b 9 2 3 c 1 0 b 0 c # 1 0 - d a s h b o a r d - a n d - r e p o r t i n g ) 
 1 1 .   [ A u t o m a t i o n   a n d   W o r k f l o w s ] ( h t t p s : / / c h a t . g a l a x y . a i / 6 8 1 a 1 0 2 9 a 8 a 9 d 1 b 9 2 3 c 1 0 b 0 c # 1 1 - a u t o m a t i o n - a n d - w o r k f l o w s ) 
 1 2 .   [ A d v a n c e d   F e a t u r e s ] ( h t t p s : / / c h a t . g a l a x y . a i / 6 8 1 a 1 0 2 9 a 8 a 9 d 1 b 9 2 3 c 1 0 b 0 c # 1 2 - a d v a n c e d - f e a t u r e s ) 
 1 3 .   [ B a c k u p   a n d   S y n c h r o n i z a t i o n ] ( h t t p s : / / c h a t . g a l a x y . a i / 6 8 1 a 1 0 2 9 a 8 a 9 d 1 b 9 2 3 c 1 0 b 0 c # 1 3 - b a c k u p - a n d - s y n c h r o n i z a t i o n ) 
 1 4 .   [ D a i l y   U s a g e   G u i d e ] ( h t t p s : / / c h a t . g a l a x y . a i / 6 8 1 a 1 0 2 9 a 8 a 9 d 1 b 9 2 3 c 1 0 b 0 c # 1 4 - d a i l y - u s a g e - g u i d e ) 
 
 # #   1 .   I n i t i a l   S e t u p 
 
 # # #   1 . 1   I n s t a l l   O b s i d i a n 
 
 1 .   D o w n l o a d   O b s i d i a n   f r o m  [ h t t p s : / / o b s i d i a n . m d / ] ( h t t p s : / / o b s i d i a n . m d / ) 
 2 .   I n s t a l l   t h e   a p p l i c a t i o n   o n   y o u r   c o m p u t e r 
 3 .   L a u n c h   O b s i d i a n   a n d   c r e a t e   a   n e w   v a u l t   n a m e d   " G r a n t   M a n a g e m e n t   S y s t e m " 
 
 # # #   1 . 2   C o n f i g u r e   C o r e   O b s i d i a n   S e t t i n g s 
 
 1 .   O p e n   S e t t i n g s   ( g e a r   i c o n   i n   t h e   b o t t o m   l e f t ) 
 2 .   U n d e r   " E d i t o r " : 
         -   E n a b l e   " S p e l l   c h e c k " 
         -   E n a b l e   " S h o w   l i n e   n u m b e r s " 
         -   E n a b l e   " U s e   t a b s " 
         -   S e t   " T a b   s i z e "   t o   2 
 3 .   U n d e r   " F i l e s   &   L i n k s " : 
         -   E n a b l e   " A u t o m a t i c a l l y   u p d a t e   i n t e r n a l   l i n k s " 
         -   E n a b l e   " D e f a u l t   l o c a t i o n   f o r   n e w   n o t e s "   a n d   s e t   t o   " S a m e   f o l d e r   a s   c u r r e n t   f i l e " 
 4 .   U n d e r   " A p p e a r a n c e " : 
         -   C h o o s e   a   t h e m e   t h a t   w o r k s   f o r   y o u   ( I   r e c o m m e n d   " T h i n g s "   o r   " M i n i m a l " ) 
         -   E n a b l e   " S h o w   i n l i n e   t i t l e " 
 5 .   U n d e r   " C o r e   P l u g i n s " : 
         -   E n a b l e   " T e m p l a t e s " 
         -   E n a b l e   " D a i l y   n o t e s " 
         -   E n a b l e   " O u t g o i n g   l i n k s " 
         -   E n a b l e   " T a g   p a n e " 
         -   E n a b l e   " P a g e   p r e v i e w " 
         -   E n a b l e   " S t a r r e d " 
         -   E n a b l e   " W o r k s p a c e s " 
 
 # # #   1 . 3   C o n f i g u r e   T e m p l a t e s   P l u g i n 
 
 1 .   G o   t o   S e t t i n g s   >   T e m p l a t e s 
 2 .   S e t   " T e m p l a t e   f o l d e r   l o c a t i o n "   t o   " _ t e m p l a t e s " 
 3 .   S e t   " D a t e   f o r m a t "   t o   " Y Y Y Y - M M - D D " 
 4 .   S e t   " T i m e   f o r m a t "   t o   " H H : m m " 
 
 # # #   1 . 4   C o n f i g u r e   D a i l y   N o t e s 
 
 1 .   G o   t o   S e t t i n g s   >   D a i l y   n o t e s 
 2 .   S e t   " D a t e   f o r m a t "   t o   " Y Y Y Y - M M - D D " 
 3 .   S e t   " N e w   f i l e   l o c a t i o n "   t o   " d a i l y " 
 4 .   S e t   " T e m p l a t e   f i l e   l o c a t i o n "   t o   " _ t e m p l a t e s / d a i l y _ n o t e . m d " 
 
 # #   2 .   F o l d e r   S t r u c t u r e   a n d   O r g a n i z a t i o n 
 
 C r e a t e   t h e   f o l l o w i n g   f o l d e r   s t r u c t u r e   i n   y o u r   v a u l t : 
 
 ` ` ` 
 G r a n t   M a n a g e m e n t / 
 % % %  _ t e m p l a t e s / 
 % % %  _ q u e r i e s / 
 % % %  _ c o n f i g / 
 % % %  b u s i n e s s e s / 
 % % %  g r a n t s / 
 % % %  a p p l i c a t i o n s / 
 % % %  s e c t i o n s / 
 % % %  d a s h b o a r d s / 
 % % %  k a n b a n / 
 % % %  d a i l y / 
 % % %  a t t a c h m e n t s / 
 ` ` ` 
 
 1 .   C r e a t e   e a c h   f o l d e r   b y   r i g h t - c l i c k i n g   i n   t h e   f i l e   e x p l o r e r   a n d   s e l e c t i n g   " N e w   f o l d e r " 
 2 .   C r e a t e   a 
         
         ` ` ` 
         . g i t i g n o r e 
         ` ` ` 
         
         f i l e   i n   t h e   r o o t   f o l d e r   w i t h   t h e   f o l l o w i n g   c o n t e n t : 
         
         ` ` ` 
         . o b s i d i a n / 
         . t r a s h / 
         ` ` ` 
         
 
 # #   3 .   P l u g i n   I n s t a l l a t i o n   a n d   C o n f i g u r a t i o n 
 
 # # #   3 . 1   I n s t a l l   C o m m u n i t y   P l u g i n s 
 
 1 .   G o   t o   S e t t i n g s   >   C o m m u n i t y   p l u g i n s 
 2 .   T u r n   o f f   " S a f e   m o d e "   i f   p r o m p t e d 
 3 .   C l i c k   " B r o w s e "   t o   o p e n   t h e   c o m m u n i t y   p l u g i n s   b r o w s e r 
 4 .   S e a r c h   f o r   a n d   i n s t a l l   t h e   f o l l o w i n g   p l u g i n s : 
 
 # # # #   C o r e   F u n c t i o n a l i t y   P l u g i n s 
 
 -   D a t a v i e w 
 -   T e m p l a t e r 
 -   Q u i c k A d d 
 -   T a s k s 
 -   C a l e n d a r 
 -   K a n b a n 
 -   B u t t o n s 
 
 # # # #   A P I   I n t e g r a t i o n   P l u g i n s 
 
 -   A P I R e q u e s t 
 -   D a t a   F e t c h e r 
 -   A I   C o m m a n d e r 
 -   R a p i d   A I 
 
 # # # #   E n h a n c e m e n t   P l u g i n s 
 
 -   S m a r t   C o n n e c t i o n s 
 -   E x p l a i n   S e l e c t i o n   W i t h   A I 
 -   A d v a n c e d   T a b l e s 
 -   O b s i d i a n   G i t 
 -   P e r i o d i c   N o t e s 
 
 # # #   3 . 2   C o n f i g u r e   D a t a v i e w 
 
 1 .   G o   t o   S e t t i n g s   >   D a t a v i e w 
 2 .   E n a b l e   " E n a b l e   J a v a S c r i p t   Q u e r i e s " 
 3 .   E n a b l e   " E n a b l e   I n l i n e   J a v a S c r i p t   Q u e r i e s " 
 4 .   E n a b l e   " E n a b l e   I n l i n e   F i e l d   E v a l u a t i o n " 
 5 .   S e t   " D e f a u l t   Q u e r y   R e s u l t   D i s p l a y "   t o   " T a b l e " 
 
 # # #   3 . 3   C o n f i g u r e   T e m p l a t e r 
 
 1 .   G o   t o   S e t t i n g s   >   T e m p l a t e r 
 2 .   E n a b l e   " T e m p l a t e   f o l d e r   l o c a t i o n "   a n d   s e t   t o   " _ t e m p l a t e s " 
 3 .   E n a b l e   " T r i g g e r   T e m p l a t e r   o n   n e w   f i l e   c r e a t i o n " 
 4 .   A d d   t h e   f o l l o w i n g   f o l d e r   p a i r s   u n d e r   " F o l d e r   t e m p l a t e s " : 
         -   b u s i n e s s e s /   !  _ t e m p l a t e s / b u s i n e s s . m d 
         -   g r a n t s /   !  _ t e m p l a t e s / g r a n t . m d 
         -   a p p l i c a t i o n s /   !  _ t e m p l a t e s / a p p l i c a t i o n . m d 
         -   s e c t i o n s /   !  _ t e m p l a t e s / s e c t i o n . m d 
 
 # # #   3 . 4   C o n f i g u r e   Q u i c k A d d 
 
 1 .   G o   t o   S e t t i n g s   >   Q u i c k A d d 
 2 .   C l i c k   " A d d   C h o i c e " 
 3 .   S e t   u p   t h e   f o l l o w i n g   c h o i c e s : 
 
 # # # #   C r e a t e   B u s i n e s s 
 
 -   T y p e :   T e m p l a t e 
 -   N a m e :   C r e a t e   B u s i n e s s 
 -   T e m p l a t e   P a t h :   _ t e m p l a t e s / b u s i n e s s . m d 
 -   F i l e   N a m e   F o r m a t :   b u s i n e s s e s / { { V A L U E : B u s i n e s s   N a m e } } . m d 
 -   O p e n :   t r u e 
 
 # # # #   C r e a t e   G r a n t 
 
 -   T y p e :   T e m p l a t e 
 -   N a m e :   C r e a t e   G r a n t 
 -   T e m p l a t e   P a t h :   _ t e m p l a t e s / g r a n t . m d 
 -   F i l e   N a m e   F o r m a t :   g r a n t s / { { V A L U E : G r a n t   N a m e } } . m d 
 -   O p e n :   t r u e 
 
 # # # #   C r e a t e   A p p l i c a t i o n 
 
 -   T y p e :   T e m p l a t e 
 -   N a m e :   C r e a t e   A p p l i c a t i o n 
 -   T e m p l a t e   P a t h :   _ t e m p l a t e s / a p p l i c a t i o n . m d 
 -   F i l e   N a m e   F o r m a t :   a p p l i c a t i o n s / { { V A L U E : B u s i n e s s } }   -   { { V A L U E : G r a n t } } . m d 
 -   O p e n :   t r u e 
 
 # # # #   A d d   S e c t i o n 
 
 -   T y p e :   T e m p l a t e 
 -   N a m e :   A d d   S e c t i o n 
 -   T e m p l a t e   P a t h :   _ t e m p l a t e s / s e c t i o n . m d 
 -   F i l e   N a m e   F o r m a t :   s e c t i o n s / { { V A L U E : S e c t i o n   N a m e } }   -   { { V A L U E : A p p l i c a t i o n } } . m d 
 -   O p e n :   t r u e 
 
 # # # #   G e n e r a t e   A I   C o n t e n t 
 
 -   T y p e :   M a c r o 
 -   N a m e :   G e n e r a t e   A I   C o n t e n t 
 -   C o m m a n d s : 
         -   U s e r   S c r i p t :   _ t e m p l a t e s / g e n e r a t e _ c o n t e n t . j s 
 
 # # # #   D i s c o v e r   G r a n t s 
 
 -   T y p e :   M a c r o 
 -   N a m e :   D i s c o v e r   G r a n t s 
 -   C o m m a n d s : 
         -   T e m p l a t e r :   _ t e m p l a t e s / d i s c o v e r _ g r a n t s . m d 
 
 # # #   3 . 5   C o n f i g u r e   A I   C o m m a n d e r 
 
 1 .   G o   t o   S e t t i n g s   >   A I   C o m m a n d e r 
 2 .   C l i c k   " A d d   N e w   P r o v i d e r " 
 3 .   S e t   u p   O p e n R o u t e r   a s   a   p r o v i d e r : 
         -   N a m e :   O p e n R o u t e r 
         -   A P I   U R L :  [ h t t p s : / / o p e n r o u t e r . a i / a p i / v 1 / c h a t / c o m p l e t i o n s ] ( h t t p s : / / o p e n r o u t e r . a i / a p i / v 1 / c h a t / c o m p l e t i o n s ) 
         -   A P I   K e y :   y o u r _ o p e n r o u t e r _ a p i _ k e y 
         -   H e a d e r s : 
                 
                 ` ` ` 
                 H T T P - R e f e r e r :   h t t p s : / / o b s i d i a n . m d 
                 X - T i t l e :   G r a n t   M a n a g e m e n t   S y s t e m 
                 ` ` ` 
                 
 4 .   A d d   t h e   f o l l o w i n g   c o m m a n d s : 
 
 # # # #   G e n e r a t e   I m p a c t   S t a t e m e n t 
 
 -   N a m e :   G e n e r a t e   I m p a c t   S t a t e m e n t 
 -   M o d e l :   O p e n R o u t e r   -   m e t a - l l a m a / l l a m a - 2 - 1 3 b - c h a t 
 -   S y s t e m   P r o m p t :   Y o u   a r e   a n   e x p e r t   g r a n t   w r i t e r   s p e c i a l i z i n g   i n   i m p a c t   s t a t e m e n t s   f o r   g r a n t   a p p l i c a t i o n s . 
 -   U s e r   P r o m p t :   C r e a t e   a   c o m p e l l i n g   i m p a c t   s t a t e m e n t   f o r   { { s e l e c t i o n } }   t h a t   h i g h l i g h t s   s o c i a l   a n d   e c o n o m i c   i m p a c t ,   i n c l u d e s   m e a s u r a b l e   o u t c o m e s ,   a n d   a l i g n s   w i t h   g r a n t   r e q u i r e m e n t s . 
 
 # # # #   G e n e r a t e   B u d g e t   J u s t i f i c a t i o n 
 
 -   N a m e :   G e n e r a t e   B u d g e t   J u s t i f i c a t i o n 
 -   M o d e l :   O p e n R o u t e r   -   g o o g l e / g e m m a - 7 b - i t 
 -   S y s t e m   P r o m p t :   Y o u   a r e   a n   e x p e r t   g r a n t   w r i t e r   s p e c i a l i z i n g   i n   b u d g e t   j u s t i f i c a t i o n s   f o r   g r a n t   a p p l i c a t i o n s . 
 -   U s e r   P r o m p t :   C r e a t e   a   d e t a i l e d   b u d g e t   j u s t i f i c a t i o n   f o r   { { s e l e c t i o n } }   t h a t   e x p l a i n s   h o w   r e q u e s t e d   f u n d s   w i l l   b e   u s e d ,   d e m o n s t r a t e s   c o s t - e f f e c t i v e n e s s ,   a n d   a l i g n s   w i t h   g r a n t   r e q u i r e m e n t s . 
 
 # # # #   G e n e r a t e   P r o j e c t   T i m e l i n e 
 
 -   N a m e :   G e n e r a t e   P r o j e c t   T i m e l i n e 
 -   M o d e l :   O p e n R o u t e r   -   m i s t r a l a i / m i s t r a l - 7 b - i n s t r u c t 
 -   S y s t e m   P r o m p t :   Y o u   a r e   a n   e x p e r t   g r a n t   w r i t e r   s p e c i a l i z i n g   i n   p r o j e c t   t i m e l i n e s   f o r   g r a n t   a p p l i c a t i o n s . 
 -   U s e r   P r o m p t :   C r e a t e   a   p r o j e c t   t i m e l i n e   f o r   { { s e l e c t i o n } }   t h a t   o u t l i n e s   k e y   m i l e s t o n e s ,   d e l i v e r a b l e s ,   a n d   d e a d l i n e s   i n   a   c l e a r ,   s t r u c t u r e d   f o r m a t . 
 
 # # # #   S u m m a r i z e   G r a n t 
 
 -   N a m e :   S u m m a r i z e   G r a n t 
 -   M o d e l :   O p e n R o u t e r   -   m i c r o s o f t / p h i - 2 
 -   S y s t e m   P r o m p t :   Y o u   a r e   a n   e x p e r t   a t   s u m m a r i z i n g   g r a n t   o p p o r t u n i t i e s   c o n c i s e l y . 
 -   U s e r   P r o m p t :   S u m m a r i z e   t h e   f o l l o w i n g   g r a n t   o p p o r t u n i t y   i n   3 - 5   b u l l e t   p o i n t s ,   h i g h l i g h t i n g   k e y   r e q u i r e m e n t s   a n d   d e a d l i n e s :   { { s e l e c t i o n } } 
 
 # # #   3 . 6   C o n f i g u r e   R a p i d   A I 
 
 1 .   G o   t o   S e t t i n g s   >   R a p i d   A I 
 2 .   C l i c k   " A d d   N e w   P r o v i d e r " 
 3 .   S e t   u p   O p e n R o u t e r   a s   a   p r o v i d e r : 
         -   N a m e :   O p e n R o u t e r 
         -   A P I   U R L :  [ h t t p s : / / o p e n r o u t e r . a i / a p i / v 1 / c h a t / c o m p l e t i o n s ] ( h t t p s : / / o p e n r o u t e r . a i / a p i / v 1 / c h a t / c o m p l e t i o n s ) 
         -   A P I   K e y :   y o u r _ o p e n r o u t e r _ a p i _ k e y 
         -   H e a d e r s : 
                 
                 ` ` ` 
                 H T T P - R e f e r e r :   h t t p s : / / o b s i d i a n . m d 
                 X - T i t l e :   G r a n t   M a n a g e m e n t   S y s t e m 
                 ` ` ` 
                 
 4 .   A d d   t h e   f o l l o w i n g   t e m p l a t e s : 
         -   I m p a c t :   G e n e r a t e   a n   i m p a c t   s t a t e m e n t   f o r   t h i s   g r a n t   a p p l i c a t i o n 
         -   B u d g e t :   C r e a t e   a   b u d g e t   j u s t i f i c a t i o n   f o r   t h i s   g r a n t 
         -   T i m e l i n e :   D e v e l o p   a   p r o j e c t   t i m e l i n e   f o r   t h i s   g r a n t 
         -   S u m m a r y :   S u m m a r i z e   t h i s   g r a n t   o p p o r t u n i t y 
         -   I m p r o v e :   I m p r o v e   t h e   w r i t i n g   a n d   c l a r i t y   o f   t h i s   t e x t 
 
 # # #   3 . 7   C o n f i g u r e   D a t a   F e t c h e r 
 
 1 .   G o   t o   S e t t i n g s   >   D a t a   F e t c h e r 
 2 .   C l i c k   " A d d   N e w   F e t c h e r " 
 3 .   S e t   u p   t h e   f o l l o w i n g   f e t c h e r s : 
 
 # # # #   G r a n t s . g o v   F e t c h e r 
 
 -   N a m e :   G r a n t s . g o v 
 -   U R L :  [ h t t p s : / / w w w . g r a n t s . g o v / g r a n t s w s / r e s t / o p p o r t u n i t i e s / s e a r c h ] ( h t t p s : / / w w w . g r a n t s . g o v / g r a n t s w s / r e s t / o p p o r t u n i t i e s / s e a r c h ) 
 -   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 : 
         
         ` ` ` 
         { 
             " k e y w o r d " :   " s m a l l   b u s i n e s s " , 
             " o p p S t a t u s " :   " p o s t e d " , 
             " s o r t B y " :   " o p e n D a t e " , 
             " s o r t O r d e r " :   " d e s c " , 
             " p a g e S i z e " :   2 5 
         } 
         ` ` ` 
         
 -   S c h e d u l e :   W e e k l y 
 -   T e m p l a t e :   _ t e m p l a t e s / g r a n t _ f r o m _ a p i . m d 
 
 # # # #   S B A   G r a n t s   F e t c h e r 
 
 -   N a m e :   S B A   G r a n t s 
 -   U R L :  [ h t t p s : / / a p i . d a t a . g o v / s b a / g r a n t s ] ( h t t p s : / / a p i . d a t a . g o v / s b a / g r a n t s ) 
 -   M e t h o d :   G E T 
 -   H e a d e r s : 
         
         ` ` ` 
         X - A p i - K e y :   y o u r _ d a t a _ g o v _ a p i _ k e y 
         ` ` ` 
         
 -   S c h e d u l e :   W e e k l y 
 -   T e m p l a t e :   _ t e m p l a t e s / g r a n t _ f r o m _ a p i . m d 
 
 # # #   3 . 8   C o n f i g u r e   S m a r t   C o n n e c t i o n s 
 
 1 .   G o   t o   S e t t i n g s   >   S m a r t   C o n n e c t i o n s 
 2 .   E n a b l e   " A u t o - s u g g e s t   o n   t y p i n g " 
 3 .   S e t   " M i n i m u m   s i m i l a r i t y   s c o r e "   t o   0 . 7 5 
 4 .   E n a b l e   " E x c l u d e   p a t h s "   a n d   a d d : 
         
         ` ` ` 
         _ t e m p l a t e s / 
         _ c o n f i g / 
         ` ` ` 
         
 
 # # #   3 . 9   C o n f i g u r e   O b s i d i a n   G i t 
 
 1 .   G o   t o   S e t t i n g s   >   O b s i d i a n   G i t 
 2 .   E n a b l e   " A u t o   p u l l   o n   s t a r t u p " 
 3 .   E n a b l e   " A u t o   b a c k u p   a f t e r   f i l e   c h a n g e " 
 4 .   S e t   " B a c k u p   i n t e r v a l "   t o   3 0 
 5 .   S e t   " C o m m i t   m e s s a g e "   t o   " A u t o   b a c k u p :   { { d a t e } } " 
 
 # #   4 .   T e m p l a t e   C r e a t i o n 
 
 # # #   4 . 1   C r e a t e   C o n f i g u r a t i o n   F i l e 
 
 C r e a t e   a   f i l e 
 
 ` ` ` 
 _ c o n f i g / o p e n r o u t e r _ a p i . m d 
 ` ` ` 
 
 : 
 
 ` ` ` 
 - - - 
 a p i _ k e y :   " y o u r _ o p e n r o u t e r _ a p i _ k e y " 
 d e f a u l t _ m o d e l :   " m i s t r a l a i / m i s t r a l - 7 b - i n s t r u c t " 
 f a l l b a c k _ m o d e l :   " m i c r o s o f t / p h i - 2 " 
 m o d e l s : 
     g e n e r a l :   " m i s t r a l a i / m i s t r a l - 7 b - i n s t r u c t " 
     i m p a c t :   " m e t a - l l a m a / l l a m a - 2 - 1 3 b - c h a t " 
     b u d g e t :   " g o o g l e / g e m m a - 7 b - i t " 
     s u m m a r y :   " m i c r o s o f t / p h i - 2 " 
     t i m e l i n e :   " m i s t r a l a i / m i s t r a l - 7 b - i n s t r u c t " 
     e x e c u t i v e :   " m e t a - l l a m a / l l a m a - 2 - 1 3 b - c h a t " 
     e v a l u a t i o n :   " g o o g l e / g e m m a - 7 b - i t " 
 t e m p e r a t u r e s : 
     g e n e r a l :   0 . 7 
     i m p a c t :   0 . 8 
     b u d g e t :   0 . 3 
     s u m m a r y :   0 . 5 
     t i m e l i n e :   0 . 6 
     e x e c u t i v e :   0 . 7 
     e v a l u a t i o n :   0 . 4 
 g r a n t _ a p i s : 
     -   n a m e :   " G r a n t s . g o v " 
         u r l :   " h t t p s : / / w w w . g r a n t s . g o v / g r a n t s w s / r e s t / o p p o r t u n i t i e s / s e a r c h " 
         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 : 
             k e y w o r d :   " s m a l l   b u s i n e s s " 
             o p p S t a t u s :   " p o s t e d " 
             s o r t B y :   " o p e n D a t e " 
             s o r t O r d e r :   " d e s c " 
             p a g e S i z e :   2 5 
     -   n a m e :   " S B A   G r a n t s " 
         u r l :   " h t t p s : / / a p i . d a t a . g o v / s b a / g r a n t s " 
         m e t h o d :   " G E T " 
         h e a d e r s : 
             X - A p i - K e y :   " y o u r _ d a t a _ g o v _ a p i _ k e y " 
     -   n a m e :   " U S D A   R u r a l   D e v e l o p m e n t " 
         u r l :   " h t t p s : / / w w w . r d . u s d a . g o v / p r o g r a m s - s e r v i c e s / a p i / o p p o r t u n i t i e s " 
         m e t h o d :   " G E T " 
 - - - 
 
 #   O p e n R o u t e r   A P I   C o n f i g u r a t i o n 
 
 T h i s   n o t e   c o n t a i n s   c o n f i g u r a t i o n   f o r   O p e n R o u t e r   A P I   i n t e g r a t i o n   a n d   g r a n t   d i s c o v e r y   A P I s . 
 ` ` ` 
 
 # # #   4 . 2   C r e a t e   B u s i n e s s   T e m p l a t e 
 
 C r e a t e   a   f i l e 
 
 ` ` ` 
 _ t e m p l a t e s / b u s i n e s s . m d 
 ` ` ` 
 
 : 
 
 ` ` ` ` 
 < % * 
 / /   G e t   v a r i a b l e s   f r o m   u s e r 
 c o n s t   n a m e   =   a w a i t   t p . s y s t e m . p r o m p t ( " B u s i n e s s   N a m e " ) ; 
 c o n s t   t y p e   =   a w a i t   t p . s y s t e m . s u g g e s t e r ( [ " T e c h n o l o g y   W e b s i t e " ,   " L P F M   R a d i o   S t a t i o n " ,   " T e n a n t   R i g h t s   A I " ,   " S u p e r f o o d   C o m p a n y " ,   " H a i r   R e c y c l i n g " ,   " D a t i n g   P l a t f o r m " ,   " L a n d   F l i p p i n g " ,   " P r e p p e r   N e t w o r k " ,   " M u l t i f a m i l y   I n v e s t i n g " ,   " C o a c h i n g   F i r m " ,   " S t u d e n t   S t o r a g e " ] ,   [ " T e c h n o l o g y   W e b s i t e " ,   " L P F M   R a d i o   S t a t i o n " ,   " T e n a n t   R i g h t s   A I " ,   " S u p e r f o o d   C o m p a n y " ,   " H a i r   R e c y c l i n g " ,   " D a t i n g   P l a t f o r m " ,   " L a n d   F l i p p i n g " ,   " P r e p p e r   N e t w o r k " ,   " M u l t i f a m i l y   I n v e s t i n g " ,   " C o a c h i n g   F i r m " ,   " S t u d e n t   S t o r a g e " ] ) ; 
 c o n s t   y e a r   =   a w a i t   t p . s y s t e m . p r o m p t ( " Y e a r   F o u n d e d " ,   " 2 0 2 0 " ) ; 
 c o n s t   r e v e n u e   =   a w a i t   t p . s y s t e m . p r o m p t ( " A n n u a l   R e v e n u e " ,   " 1 0 0 0 0 0 " ) ; 
 c o n s t   e m p l o y e e s   =   a w a i t   t p . s y s t e m . p r o m p t ( " E m p l o y e e   C o u n t " ,   " 5 " ) ; 
 c o n s t   d e m o g r a p h i c s   =   a w a i t   t p . s y s t e m . s u g g e s t e r ( [ " B l a c k " ,   " W o m a n " ,   " V e t e r a n " ,   " L G B T Q + " ,   " D i s a b l e d " ,   " R u r a l " ,   " B l a c k ,   W o m a n " ,   " B l a c k ,   W o m a n ,   V e t e r a n " ] ,   [ " B l a c k " ,   " W o m a n " ,   " V e t e r a n " ,   " L G B T Q + " ,   " D i s a b l e d " ,   " R u r a l " ,   " B l a c k ,   W o m a n " ,   " B l a c k ,   W o m a n ,   V e t e r a n " ] ) ; 
 c o n s t   c e r t i f i c a t i o n s   =   a w a i t   t p . s y s t e m . s u g g e s t e r ( [ " 8 ( a )   C e r t i f i e d " ,   " W B E   C e r t i f i e d " ,   " M B E   C e r t i f i e d " ,   " S D V O S B   C e r t i f i e d " ,   " H U B Z o n e   C e r t i f i e d " ,   " N o n e " ] ,   [ " 8 ( a )   C e r t i f i e d " ,   " W B E   C e r t i f i e d " ,   " M B E   C e r t i f i e d " ,   " S D V O S B   C e r t i f i e d " ,   " H U B Z o n e   C e r t i f i e d " ,   " N o n e " ] ) ; 
 c o n s t   w e b s i t e   =   a w a i t   t p . s y s t e m . p r o m p t ( " W e b s i t e " ,   " h t t p s : / / e x a m p l e . c o m " ) ; 
 c o n s t   a d d r e s s   =   a w a i t   t p . s y s t e m . p r o m p t ( " A d d r e s s " ,   " 1 2 3   M a i n   S t ,   L i n c o l n ,   N E   6 8 5 0 8 " ) ; 
 c o n s t   e m a i l   =   a w a i t   t p . s y s t e m . p r o m p t ( " C o n t a c t   E m a i l " ,   " c o n t a c t @ e x a m p l e . c o m " ) ; 
 c o n s t   p h o n e   =   a w a i t   t p . s y s t e m . p r o m p t ( " C o n t a c t   P h o n e " ,   " 5 5 5 - 1 2 3 - 4 5 6 7 " ) ; 
 c o n s t   d e s c r i p t i o n   =   a w a i t   t p . s y s t e m . p r o m p t ( " B u s i n e s s   D e s c r i p t i o n " ,   " B r i e f   d e s c r i p t i o n   o f   t h e   b u s i n e s s " ) ; 
 c o n s t   i m p a c t   =   a w a i t   t p . s y s t e m . p r o m p t ( " I m p a c t   S t a t e m e n t " ,   " H o w   t h e   b u s i n e s s   c r e a t e s   i m p a c t " ) ; 
 
 / /   S e t   t h e   f i l e   t i t l e 
 t p . f i l e . r e n a m e ( n a m e ) ; 
 - % > 
 - - - 
 t y p e :   b u s i n e s s 
 n a m e :   " < %   n a m e   % > " 
 b u s i n e s s _ t y p e :   " < %   t y p e   % > " 
 y e a r _ f o u n d e d :   < %   y e a r   % > 
 a n n u a l _ r e v e n u e :   < %   r e v e n u e   % > 
 e m p l o y e e _ c o u n t :   < %   e m p l o y e e s   % > 
 o w n e r _ d e m o g r a p h i c s :   
     -   < %   d e m o g r a p h i c s   % > 
 c e r t i f i c a t i o n s : 
     -   < %   c e r t i f i c a t i o n s   % > 
 w e b s i t e :   " < %   w e b s i t e   % > " 
 a d d r e s s :   " < %   a d d r e s s   % > " 
 c o n t a c t _ e m a i l :   " < %   e m a i l   % > " 
 c o n t a c t _ p h o n e :   " < %   p h o n e   % > " 
 c r e a t e d :   < %   t p . d a t e . n o w ( " Y Y Y Y - M M - D D " )   % > 
 l a s t _ m o d i f i e d :   < %   t p . d a t e . n o w ( " Y Y Y Y - M M - D D " )   % > 
 t a g s :   b u s i n e s s 
 - - - 
 
 #   < %   n a m e   % > 
 
 # #   B u s i n e s s   D e s c r i p t i o n 
 < %   d e s c r i p t i o n   % > 
 
 # #   I m p a c t   S t a t e m e n t 
 < %   i m p a c t   % > 
 
 # #   N o t e s 
 
 
 # #   R e l a t e d 
 # # #   G r a n t s 
 ` ` ` d a t a v i e w 
 T A B L E   g r a n t _ n a m e   a s   " G r a n t " ,   i s s u e r   a s   " I s s u e r " ,   a m o u n t   a s   " A m o u n t " ,   a p p l i c a t i o n _ d e a d l i n e   a s   " D e a d l i n e " ,   m a t c h _ s c o r e   a s   " M a t c h   S c o r e " 
 F R O M   # g r a n t 
 W H E R E   c o n t a i n s ( f i l e . o u t l i n k s ,   t h i s . f i l e . l i n k )   O R   m a t c h _ s c o r e   > =   7 0 
 S O R T   m a t c h _ s c o r e   D E S C 
 ` ` ` ` 
 
 # # #   A p p l i c a t i o n s 
 
 ` ` ` 
 T A B L E   g r a n t . g r a n t _ n a m e   a s   " G r a n t " ,   s t a t u s   a s   " S t a t u s " ,   c o m p l e t i o n _ p e r c e n t a g e   a s   " C o m p l e t i o n " ,   s u b m i s s i o n _ d a t e   a s   " S u b m i t t e d " 
 F R O M   # a p p l i c a t i o n 
 W H E R E   b u s i n e s s   =   t h i s . f i l e . l i n k 
 S O R T   s u b m i s s i o n _ d a t e   D E S C 
 ` ` ` 
 
 # #   A c t i o n s 
 
 ` ` ` 
 n a m e   F i n d   M a t c h i n g   G r a n t s 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   M a t c h   G r a n t s   t o   B u s i n e s s 
 ` ` ` 
 
 ` ` ` 
 n a m e   C r e a t e   N e w   A p p l i c a t i o n 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   C r e a t e   A p p l i c a t i o n 
 ` ` ` 
 
 ` ` ` ` 
 
 
 # # #   4 . 3   C r e a t e   G r a n t   T e m p l a t e 
 
 C r e a t e   a   f i l e   ` _ t e m p l a t e s / g r a n t . m d ` : 
 
 ` ` ` m a r k d o w n 
 < % * 
 / /   G e t   v a r i a b l e s   f r o m   u s e r 
 c o n s t   n a m e   =   a w a i t   t p . s y s t e m . p r o m p t ( " G r a n t   N a m e " ) ; 
 c o n s t   i s s u e r   =   a w a i t   t p . s y s t e m . p r o m p t ( " I s s u e r / G r a n t o r " ) ; 
 c o n s t   a m o u n t   =   a w a i t   t p . s y s t e m . p r o m p t ( " A m o u n t   ( n u m b e r s   o n l y ) " ,   " 1 0 0 0 0 0 " ) ; 
 c o n s t   d e a d l i n e   =   a w a i t   t p . s y s t e m . p r o m p t ( " A p p l i c a t i o n   D e a d l i n e   ( Y Y Y Y - M M - D D ) " ,   t p . d a t e . n o w ( " Y Y Y Y - M M - D D " ,   3 0 ) ) ; 
 c o n s t   f r e q u e n c y   =   a w a i t   t p . s y s t e m . s u g g e s t e r ( [ " O n e - t i m e " ,   " A n n u a l " ,   " Q u a r t e r l y " ,   " M o n t h l y " ,   " R o l l i n g " ] ,   [ " O n e - t i m e " ,   " A n n u a l " ,   " Q u a r t e r l y " ,   " M o n t h l y " ,   " R o l l i n g " ] ) ; 
 c o n s t   c a t e g o r i e s   =   a w a i t   t p . s y s t e m . p r o m p t ( " G r a n t   C a t e g o r i e s   ( c o m m a   s e p a r a t e d ) " ,   " S m a l l   B u s i n e s s ,   T e c h n o l o g y " ) ; 
 c o n s t   d e m o g r a p h i c s   =   a w a i t   t p . s y s t e m . p r o m p t ( " D e m o g r a p h i c   R e q u i r e m e n t s   ( c o m m a   s e p a r a t e d ) " ,   " " ) ; 
 c o n s t   u r l   =   a w a i t   t p . s y s t e m . p r o m p t ( " G r a n t   U R L " ,   " h t t p s : / / e x a m p l e . c o m " ) ; 
 c o n s t   e l i g i b i l i t y   =   a w a i t   t p . s y s t e m . p r o m p t ( " E l i g i b i l i t y " ,   " S m a l l   b u s i n e s s e s   w i t h   f e w e r   t h a n   5 0 0   e m p l o y e e s " ) ; 
 c o n s t   d e s c r i p t i o n   =   a w a i t   t p . s y s t e m . p r o m p t ( " D e s c r i p t i o n " ,   " " ) ; 
 c o n s t   n o t e s   =   a w a i t   t p . s y s t e m . p r o m p t ( " N o t e s " ,   " " ) ; 
 
 / /   S e t   t h e   f i l e   t i t l e 
 t p . f i l e . r e n a m e ( n a m e ) ; 
 - % > 
 - - - 
 t y p e :   g r a n t 
 g r a n t _ n a m e :   " < %   n a m e   % > " 
 i s s u e r :   " < %   i s s u e r   % > " 
 a m o u n t :   < %   a m o u n t   % > 
 a p p l i c a t i o n _ d e a d l i n e :   < %   d e a d l i n e   % > 
 f r e q u e n c y :   " < %   f r e q u e n c y   % > " 
 g r a n t _ c a t e g o r i e s :   " < %   c a t e g o r i e s   % > " 
 d e m o g r a p h i c _ r e q u i r e m e n t s :   " < %   d e m o g r a p h i c s   % > " 
 g r a n t _ u r l :   " < %   u r l   % > " 
 e l i g i b i l i t y :   " < %   e l i g i b i l i t y   % > " 
 m a t c h _ s c o r e :   0 
 c r e a t e d :   < %   t p . d a t e . n o w ( " Y Y Y Y - M M - D D " )   % > 
 l a s t _ m o d i f i e d :   < %   t p . d a t e . n o w ( " Y Y Y Y - M M - D D " )   % > 
 t a g s :   g r a n t 
 - - - 
 
 #   < %   n a m e   % > 
 
 # #   D e s c r i p t i o n 
 < %   d e s c r i p t i o n   % > 
 
 # #   E l i g i b i l i t y 
 < %   e l i g i b i l i t y   % > 
 
 # #   N o t e s 
 < %   n o t e s   % > 
 
 # #   D a y s   U n t i l   D e a d l i n e 
 ` ` ` d a t a v i e w j s 
 c o n s t   d e a d l i n e   =   d v . c u r r e n t ( ) . a p p l i c a t i o n _ d e a d l i n e ; 
 i f   ( d e a d l i n e )   { 
     c o n s t   t o d a y   =   n e w   D a t e ( ) ; 
     c o n s t   d e a d l i n e D a t e   =   n e w   D a t e ( d e a d l i n e ) ; 
     c o n s t   d a y s L e f t   =   M a t h . c e i l ( ( d e a d l i n e D a t e   -   t o d a y )   /   ( 1 0 0 0   *   6 0   *   6 0   *   2 4 ) ) ; 
     
     l e t   c o l o r   =   " g r e e n " ; 
     i f   ( d a y s L e f t   < =   3 )   c o l o r   =   " r e d " ; 
     e l s e   i f   ( d a y s L e f t   < =   1 4 )   c o l o r   =   " o r a n g e " ; 
     
     d v . p a r a g r a p h ( ` < s p a n   s t y l e = " c o l o r : < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > c o < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > o r < / s p a n > < / s p a n > < s p a n   c l a s s = " m p u n c t " > ; < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 1 6 6 7 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 7 6 4 e m ; " > f < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > o < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 2 2 2 e m ; " > < / s p a n > < s p a n   c l a s s = " m b i n " > "< / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 2 2 2 e m ; " > < / s p a n > < / s p a n > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 6 9 1 e m ; " > w < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 3 5 8 8 e m ; " > g < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > h < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 7 7 8 e m ; " > < / s p a n > < s p a n   c l a s s = " m r e l " > : < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 7 7 8 e m ; " > < / s p a n > < / s p a n > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > b < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > o < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > d < / s p a n > < s p a n   c l a s s = " m p u n c t " > ; < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 1 6 6 7 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > & q u o t ; < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 7 7 8 e m ; " > < / s p a n > < s p a n   c l a s s = " m r e l " > & g t ; < / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { d a y s L e f t }   d a y s   l e f t < / s p a n > ` ) ; 
 }   e l s e   { 
     d v . p a r a g r a p h ( " N o   d e a d l i n e   s p e c i f i e d " ) ; 
 } 
 ` ` ` ` 
 
 # #   M a t c h i n g   B u s i n e s s e s 
 
 ` ` ` 
 T A B L E   b u s i n e s s _ t y p e   a s   " B u s i n e s s   T y p e " ,   a n n u a l _ r e v e n u e   a s   " A n n u a l   R e v e n u e " ,   o w n e r _ d e m o g r a p h i c s   a s   " D e m o g r a p h i c s " 
 F R O M   # b u s i n e s s 
 W H E R E   c o n t a i n s ( t h i s . f i l e . o u t l i n k s ,   f i l e . l i n k )   O R   m a t c h _ s c o r e   > =   7 0 
 S O R T   m a t c h _ s c o r e   D E S C 
 ` ` ` 
 
 # #   A p p l i c a t i o n s 
 
 ` ` ` 
 T A B L E   b u s i n e s s . n a m e   a s   " B u s i n e s s " ,   s t a t u s   a s   " S t a t u s " ,   c o m p l e t i o n _ p e r c e n t a g e   a s   " C o m p l e t i o n " ,   s u b m i s s i o n _ d a t e   a s   " S u b m i t t e d " 
 F R O M   # a p p l i c a t i o n 
 W H E R E   g r a n t   =   t h i s . f i l e . l i n k 
 S O R T   s u b m i s s i o n _ d a t e   D E S C 
 ` ` ` 
 
 # #   A c t i o n s 
 
 ` ` ` 
 n a m e   C r e a t e   A p p l i c a t i o n 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   C r e a t e   A p p l i c a t i o n 
 ` ` ` 
 
 ` ` ` 
 n a m e   G e n e r a t e   S u m m a r y 
 t y p e   c o m m a n d 
 a c t i o n   A I   C o m m a n d e r :   S u m m a r i z e   G r a n t 
 ` ` ` 
 
 ` ` ` ` 
 
 # # #   4 . 4   C r e a t e   A p p l i c a t i o n   T e m p l a t e 
 
 C r e a t e   a   f i l e   ` _ t e m p l a t e s / a p p l i c a t i o n . m d ` : 
 
 ` ` ` m a r k d o w n 
 < % * 
 / /   G e t   v a r i a b l e s   f r o m   u s e r 
 c o n s t   b u s i n e s s e s   =   a w a i t   t p . s y s t e m . s u g g e s t e r ( 
     ( i t e m )   = >   i t e m . b a s e n a m e , 
     a p p . v a u l t . g e t M a r k d o w n F i l e s ( ) . f i l t e r ( f i l e   = >   
         f i l e . p a t h . s t a r t s W i t h ( " b u s i n e s s e s / " ) 
     ) , 
     f a l s e , 
     " S e l e c t   B u s i n e s s " 
 ) ; 
 
 c o n s t   g r a n t s   =   a w a i t   t p . s y s t e m . s u g g e s t e r ( 
     ( i t e m )   = >   i t e m . b a s e n a m e , 
     a p p . v a u l t . g e t M a r k d o w n F i l e s ( ) . f i l t e r ( f i l e   = >   
         f i l e . p a t h . s t a r t s W i t h ( " g r a n t s / " ) 
     ) , 
     f a l s e , 
     " S e l e c t   G r a n t " 
 ) ; 
 
 c o n s t   b u s i n e s s N a m e   =   b u s i n e s s e s . b a s e n a m e ; 
 c o n s t   g r a n t N a m e   =   g r a n t s . b a s e n a m e ; 
 c o n s t   u s e r   =   a w a i t   t p . s y s t e m . p r o m p t ( " A s s i g n e d   T o " ,   " Y o u " ) ; 
 
 / /   S e t   t h e   f i l e   t i t l e 
 t p . f i l e . r e n a m e ( ` < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 7 7 7 8 e m ; v e r t i c a l - a l i g n : - 0 . 0 8 3 3 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > b < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > u < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > s < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e s s < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 9 0 3 e m ; " > N < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a m < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d " > "< / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { g r a n t N a m e } ` ) ; 
 - % > 
 - - - 
 t y p e :   a p p l i c a t i o n 
 b u s i n e s s :   " [ [ < %   b u s i n e s s N a m e   % > ] ] " 
 g r a n t :   " [ [ < %   g r a n t N a m e   % > ] ] " 
 s t a t u s :   " r e s e a r c h i n g " 
 c o m p l e t i o n _ p e r c e n t a g e :   0 
 a s s i g n e d _ t o :   " < %   u s e r   % > " 
 s u b m i s s i o n _ d a t e :   
 c r e a t e d :   < %   t p . d a t e . n o w ( " Y Y Y Y - M M - D D " )   % > 
 l a s t _ m o d i f i e d :   < %   t p . d a t e . n o w ( " Y Y Y Y - M M - D D " )   % > 
 t a g s :   a p p l i c a t i o n 
 - - - 
 
 #   A p p l i c a t i o n :   < %   b u s i n e s s N a m e   % >   -   < %   g r a n t N a m e   % > 
 
 # #   S t a t u s :   R e s e a r c h i n g 
 # #   C o m p l e t i o n :   0 % 
 
 ` ` ` d a t a v i e w j s 
 c o n s t   p e r c e n t a g e   =   d v . c u r r e n t ( ) . c o m p l e t i o n _ p e r c e n t a g e ; 
 c o n s t   w i d t h   =   2 0 0 ; 
 c o n s t   f i l l e d W i d t h   =   ( p e r c e n t a g e   /   1 0 0 )   *   w i d t h ; 
 
 c o n s t   h t m l   =   ` < d i v   s t y l e = " w i d t h : $ { w i d t h } p x ; h e i g h t : 2 0 p x ; b a c k g r o u n d - c o l o r : # e e e ; b o r d e r - r a d i u s : 1 0 p x ; o v e r f l o w : h i d d e n ; " > 
     < d i v   s t y l e = " w i d t h : $ { f i l l e d W i d t h } p x ; h e i g h t : 2 0 p x ; b a c k g r o u n d - c o l o r : # 4 C A F 5 0 ; " > < / d i v > 
 < / d i v > ` ; 
 
 d v . p a r a g r a p h ( h t m l ) ; 
 ` ` ` ` 
 
 # #   S e c t i o n s 
 
 ` ` ` 
 T A B L E   s e c t i o n _ n a m e   a s   " S e c t i o n " ,   i s _ c o m p l e t e   a s   " C o m p l e t e " 
 F R O M   # s e c t i o n 
 W H E R E   a p p l i c a t i o n   =   t h i s . f i l e . l i n k 
 S O R T   s e c t i o n _ o r d e r   A S C 
 ` ` ` 
 
 # #   G r a n t   D e t a i l s 
 
 ` ` ` 
 T A B L E   i s s u e r   a s   " I s s u e r " ,   a m o u n t   a s   " A m o u n t " ,   a p p l i c a t i o n _ d e a d l i n e   a s   " D e a d l i n e " 
 F R O M   " < %   g r a n t N a m e   % > " 
 L I M I T   1 
 ` ` ` 
 
 # #   B u s i n e s s   D e t a i l s 
 
 ` ` ` 
 T A B L E   b u s i n e s s _ t y p e   a s   " T y p e " ,   o w n e r _ d e m o g r a p h i c s   a s   " D e m o g r a p h i c s " 
 F R O M   " < %   b u s i n e s s N a m e   % > " 
 L I M I T   1 
 ` ` ` 
 
 # #   A c t i o n s 
 
 ` ` ` 
 n a m e   A d d   S e c t i o n 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   A d d   S e c t i o n 
 ` ` ` 
 
 ` ` ` 
 n a m e   M a r k   R e a d y 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   M a r k   A p p l i c a t i o n   a s   R e a d y 
 ` ` ` 
 
 ` ` ` 
 n a m e   U p d a t e   S t a t u s 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   U p d a t e   A p p l i c a t i o n   S t a t u s 
 ` ` ` 
 
 ` ` ` ` 
 
 # # #   4 . 5   C r e a t e   S e c t i o n   T e m p l a t e 
 
 C r e a t e   a   f i l e   ` _ t e m p l a t e s / s e c t i o n . m d ` : 
 
 ` ` ` m a r k d o w n 
 < % * 
 / /   G e t   v a r i a b l e s   f r o m   u s e r 
 c o n s t   a p p l i c a t i o n s   =   a w a i t   t p . s y s t e m . s u g g e s t e r ( 
     ( i t e m )   = >   i t e m . b a s e n a m e , 
     a p p . v a u l t . g e t M a r k d o w n F i l e s ( ) . f i l t e r ( f i l e   = >   
         f i l e . p a t h . s t a r t s W i t h ( " a p p l i c a t i o n s / " ) 
     ) , 
     f a l s e , 
     " S e l e c t   A p p l i c a t i o n " 
 ) ; 
 
 c o n s t   a p p l i c a t i o n N a m e   =   a p p l i c a t i o n s . b a s e n a m e ; 
 c o n s t   s e c t i o n N a m e   =   a w a i t   t p . s y s t e m . s u g g e s t e r ( 
     [ " E x e c u t i v e   S u m m a r y " ,   " P r o j e c t   D e s c r i p t i o n " ,   " I m p a c t   S t a t e m e n t " ,   " B u d g e t   J u s t i f i c a t i o n " ,   " T i m e l i n e " ,   " E v a l u a t i o n   P l a n " ,   " O r g a n i z a t i o n   B a c k g r o u n d " ,   " S u s t a i n a b i l i t y   P l a n " ] , 
     [ " E x e c u t i v e   S u m m a r y " ,   " P r o j e c t   D e s c r i p t i o n " ,   " I m p a c t   S t a t e m e n t " ,   " B u d g e t   J u s t i f i c a t i o n " ,   " T i m e l i n e " ,   " E v a l u a t i o n   P l a n " ,   " O r g a n i z a t i o n   B a c k g r o u n d " ,   " S u s t a i n a b i l i t y   P l a n " ] , 
     f a l s e , 
     " S e l e c t   S e c t i o n   T y p e " 
 ) ; 
 c o n s t   o r d e r   =   a w a i t   t p . s y s t e m . p r o m p t ( " S e c t i o n   O r d e r " ,   " 1 " ) ; 
 c o n s t   c o n t e n t   =   a w a i t   t p . s y s t e m . p r o m p t ( " I n i t i a l   C o n t e n t " ,   " " ) ; 
 
 / /   S e t   t h e   f i l e   t i t l e 
 t p . f i l e . r e n a m e ( ` < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 7 6 6 7 e m ; v e r t i c a l - a l i g n : - 0 . 0 8 3 3 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > s e c < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > o < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 9 0 3 e m ; " > N < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a m < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d " > "< / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { a p p l i c a t i o n N a m e } ` ) ; 
 - % > 
 - - - 
 t y p e :   s e c t i o n 
 a p p l i c a t i o n :   " [ [ < %   a p p l i c a t i o n N a m e   % > ] ] " 
 s e c t i o n _ n a m e :   " < %   s e c t i o n N a m e   % > " 
 s e c t i o n _ o r d e r :   < %   o r d e r   % > 
 i s _ c o m p l e t e :   f a l s e 
 c r e a t e d :   < %   t p . d a t e . n o w ( " Y Y Y Y - M M - D D " )   % > 
 l a s t _ m o d i f i e d :   < %   t p . d a t e . n o w ( " Y Y Y Y - M M - D D " )   % > 
 t a g s :   s e c t i o n 
 - - - 
 
 #   < %   s e c t i o n N a m e   % >   -   < %   a p p l i c a t i o n N a m e   % > 
 
 # #   C o n t e n t 
 < %   c o n t e n t   % > 
 
 # #   A c t i o n s 
 ` ` ` b u t t o n 
 n a m e   G e n e r a t e   A I   C o n t e n t 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   G e n e r a t e   A I   C o n t e n t 
 ` ` ` ` 
 
 ` ` ` 
 n a m e   M a r k   C o m p l e t e 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   T o g g l e   S e c t i o n   C o m p l e t e 
 ` ` ` 
 
 ` ` ` 
 n a m e   I m p r o v e   W r i t i n g 
 t y p e   c o m m a n d 
 a c t i o n   A I   C o m m a n d e r :   I m p r o v e   W r i t i n g 
 ` ` ` 
 
 ` ` ` ` 
 
 # # #   4 . 6   C r e a t e   D a i l y   N o t e   T e m p l a t e 
 
 C r e a t e   a   f i l e   ` _ t e m p l a t e s / d a i l y _ n o t e . m d ` : 
 
 ` ` ` m a r k d o w n 
 - - - 
 t y p e :   d a i l y 
 d a t e :   < %   t p . d a t e . n o w ( " Y Y Y Y - M M - D D " )   % > 
 - - - 
 
 #   < %   t p . d a t e . n o w ( " Y Y Y Y - M M - D D " )   % >   -   D a i l y   N o t e s 
 
 # #   T a s k s 
 -   [   ]   C h e c k   u p c o m i n g   d e a d l i n e s 
 -   [   ]   R e v i e w   a c t i v e   a p p l i c a t i o n s 
 -   [   ]   U p d a t e   a p p l i c a t i o n   s e c t i o n s 
 
 # #   U p c o m i n g   D e a d l i n e s 
 ` ` ` d a t a v i e w 
 T A B L E   g r a n t _ n a m e   a s   " G r a n t " ,   i s s u e r   a s   " I s s u e r " ,   a p p l i c a t i o n _ d e a d l i n e   a s   " D e a d l i n e " ,   ( d a t e ( a p p l i c a t i o n _ d e a d l i n e )   -   d a t e ( t o d a y ) ) . d a y   a s   " D a y s   L e f t " 
 F R O M   # g r a n t 
 W H E R E   a p p l i c a t i o n _ d e a d l i n e   ! =   n u l l   A N D   a p p l i c a t i o n _ d e a d l i n e   > =   d a t e ( t o d a y )   A N D   a p p l i c a t i o n _ d e a d l i n e   < =   d a t e ( t o d a y )   +   d u r ( 1 4   d a y s ) 
 S O R T   a p p l i c a t i o n _ d e a d l i n e   A S C 
 ` ` ` ` 
 
 # #   M y   A p p l i c a t i o n s 
 
 ` ` ` 
 T A B L E   b u s i n e s s . n a m e   a s   " B u s i n e s s " ,   g r a n t . g r a n t _ n a m e   a s   " G r a n t " ,   s t a t u s   a s   " S t a t u s " ,   c o m p l e t i o n _ p e r c e n t a g e   a s   " C o m p l e t i o n " 
 F R O M   # a p p l i c a t i o n 
 W H E R E   a s s i g n e d _ t o   =   " Y o u " 
 S O R T   c o m p l e t i o n _ p e r c e n t a g e   D E S C 
 ` ` ` 
 
 # #   N o t e s 
 
 # #   A c t i o n s 
 
 ` ` ` 
 n a m e   D i s c o v e r   G r a n t s 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   D i s c o v e r   G r a n t s 
 ` ` ` 
 
 ` ` ` 
 n a m e   O p e n   D a s h b o a r d 
 t y p e   l i n k 
 a c t i o n   o b s i d i a n : / / o p e n ? v a u l t = G r a n t % 2 0 M a n a g e m e n t & f i l e = d a s h b o a r d s % 2 F m a i n _ d a s h b o a r d 
 ` ` ` 
 
 ` ` ` ` 
 
 # # #   4 . 7   C r e a t e   G r a n t   f r o m   A P I   T e m p l a t e 
 
 C r e a t e   a   f i l e   ` _ t e m p l a t e s / g r a n t _ f r o m _ a p i . m d ` : 
 
 ` ` ` m a r k d o w n 
 - - - 
 t y p e :   g r a n t 
 g r a n t _ n a m e :   " { { n a m e } } " 
 i s s u e r :   " { { i s s u e r } } " 
 a m o u n t :   { { a m o u n t } } 
 a p p l i c a t i o n _ d e a d l i n e :   { { d e a d l i n e } } 
 f r e q u e n c y :   " { { f r e q u e n c y } } " 
 g r a n t _ c a t e g o r i e s :   " { { c a t e g o r i e s } } " 
 d e m o g r a p h i c _ r e q u i r e m e n t s :   " { { d e m o g r a p h i c s } } " 
 g r a n t _ u r l :   " { { u r l } } " 
 e l i g i b i l i t y :   " { { e l i g i b i l i t y } } " 
 m a t c h _ s c o r e :   0 
 c r e a t e d :   { { d a t e } } 
 l a s t _ m o d i f i e d :   { { d a t e } } 
 t a g s :   g r a n t 
 - - - 
 
 #   { { n a m e } } 
 
 # #   D e s c r i p t i o n 
 { { d e s c r i p t i o n } } 
 
 # #   E l i g i b i l i t y 
 { { e l i g i b i l i t y } } 
 
 # #   N o t e s 
 D i s c o v e r e d   t h r o u g h   a u t o m a t e d   g r a n t   d i s c o v e r y   u s i n g   { { s o u r c e } }   A P I . 
 
 # #   D a y s   U n t i l   D e a d l i n e 
 ` ` ` d a t a v i e w j s 
 c o n s t   d e a d l i n e   =   d v . c u r r e n t ( ) . a p p l i c a t i o n _ d e a d l i n e ; 
 i f   ( d e a d l i n e )   { 
     c o n s t   t o d a y   =   n e w   D a t e ( ) ; 
     c o n s t   d e a d l i n e D a t e   =   n e w   D a t e ( d e a d l i n e ) ; 
     c o n s t   d a y s L e f t   =   M a t h . c e i l ( ( d e a d l i n e D a t e   -   t o d a y )   /   ( 1 0 0 0   *   6 0   *   6 0   *   2 4 ) ) ; 
     
     l e t   c o l o r   =   " g r e e n " ; 
     i f   ( d a y s L e f t   < =   3 )   c o l o r   =   " r e d " ; 
     e l s e   i f   ( d a y s L e f t   < =   1 4 )   c o l o r   =   " o r a n g e " ; 
     
     d v . p a r a g r a p h ( ` < s p a n   s t y l e = " c o l o r : < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > c o < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > o r < / s p a n > < / s p a n > < s p a n   c l a s s = " m p u n c t " > ; < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 1 6 6 7 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 7 6 4 e m ; " > f < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > o < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 2 2 2 e m ; " > < / s p a n > < s p a n   c l a s s = " m b i n " > "< / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 2 2 2 e m ; " > < / s p a n > < / s p a n > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 6 9 1 e m ; " > w < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 3 5 8 8 e m ; " > g < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > h < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 7 7 8 e m ; " > < / s p a n > < s p a n   c l a s s = " m r e l " > : < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 7 7 8 e m ; " > < / s p a n > < / s p a n > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > b < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > o < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > d < / s p a n > < s p a n   c l a s s = " m p u n c t " > ; < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 1 6 6 7 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > & q u o t ; < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 7 7 8 e m ; " > < / s p a n > < s p a n   c l a s s = " m r e l " > & g t ; < / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { d a y s L e f t }   d a y s   l e f t < / s p a n > ` ) ; 
 }   e l s e   { 
     d v . p a r a g r a p h ( " N o   d e a d l i n e   s p e c i f i e d " ) ; 
 } 
 ` ` ` ` 
 
 # #   M a t c h i n g   B u s i n e s s e s 
 
 ` ` ` 
 T A B L E   b u s i n e s s _ t y p e   a s   " B u s i n e s s   T y p e " ,   a n n u a l _ r e v e n u e   a s   " A n n u a l   R e v e n u e " ,   o w n e r _ d e m o g r a p h i c s   a s   " D e m o g r a p h i c s " 
 F R O M   # b u s i n e s s 
 W H E R E   c o n t a i n s ( t h i s . f i l e . o u t l i n k s ,   f i l e . l i n k )   O R   m a t c h _ s c o r e   > =   7 0 
 S O R T   m a t c h _ s c o r e   D E S C 
 ` ` ` 
 
 # #   A p p l i c a t i o n s 
 
 ` ` ` 
 T A B L E   b u s i n e s s . n a m e   a s   " B u s i n e s s " ,   s t a t u s   a s   " S t a t u s " ,   c o m p l e t i o n _ p e r c e n t a g e   a s   " C o m p l e t i o n " ,   s u b m i s s i o n _ d a t e   a s   " S u b m i t t e d " 
 F R O M   # a p p l i c a t i o n 
 W H E R E   g r a n t   =   t h i s . f i l e . l i n k 
 S O R T   s u b m i s s i o n _ d a t e   D E S C 
 ` ` ` 
 
 # #   A c t i o n s 
 
 ` ` ` 
 n a m e   C r e a t e   A p p l i c a t i o n 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   C r e a t e   A p p l i c a t i o n 
 ` ` ` 
 
 ` ` ` 
 n a m e   G e n e r a t e   S u m m a r y 
 t y p e   c o m m a n d 
 a c t i o n   A I   C o m m a n d e r :   S u m m a r i z e   G r a n t 
 ` ` ` 
 
 ` ` ` ` 
 
 
 # #   5 .   O p e n R o u t e r   A P I   I n t e g r a t i o n 
 
 # # #   5 . 1   C r e a t e   A I   C o n t e n t   G e n e r a t i o n   S c r i p t 
 
 C r e a t e   a   f i l e   ` _ t e m p l a t e s / g e n e r a t e _ c o n t e n t . j s ` : 
 
 ` ` ` j a v a s c r i p t 
 m o d u l e . e x p o r t s   =   a s y n c   f u n c t i o n ( t p )   { 
     / /   G e t   A P I   c o n f i g u r a t i o n 
     c o n s t   c o n f i g F i l e   =   a p p . v a u l t . g e t A b s t r a c t F i l e B y P a t h ( " _ c o n f i g / o p e n r o u t e r _ a p i . m d " ) ; 
     i f   ( ! c o n f i g F i l e )   { 
         n e w   N o t i c e ( " O p e n R o u t e r   A P I   c o n f i g u r a t i o n   n o t   f o u n d ! " ) ; 
         r e t u r n   " E r r o r :   C o n f i g u r a t i o n   n o t   f o u n d " ; 
     } 
     
     c o n s t   c o n f i g C o n t e n t   =   a w a i t   a p p . v a u l t . r e a d ( c o n f i g F i l e ) ; 
     c o n s t   c o n f i g F r o n t m a t t e r   =   a p p . m e t a d a t a C a c h e . g e t F i l e C a c h e ( c o n f i g F i l e ) . f r o n t m a t t e r ; 
     
     / /   G e t   c u r r e n t   s e c t i o n 
     c o n s t   c u r r e n t F i l e   =   t p . f i l e . f i n d _ t f i l e ( t p . f i l e . p a t h ( t r u e ) ) ; 
     c o n s t   c u r r e n t F r o n t m a t t e r   =   a p p . m e t a d a t a C a c h e . g e t F i l e C a c h e ( c u r r e n t F i l e ) . f r o n t m a t t e r ; 
     
     i f   ( ! c u r r e n t F r o n t m a t t e r   | |   ! c u r r e n t F r o n t m a t t e r . a p p l i c a t i o n )   { 
         n e w   N o t i c e ( " T h i s   i s   n o t   a   v a l i d   s e c t i o n   f i l e ! " ) ; 
         r e t u r n   " E r r o r :   N o t   a   v a l i d   s e c t i o n   f i l e " ; 
     } 
     
     / /   G e t   c o n t e n t   t y p e   f r o m   u s e r 
     c o n s t   c o n t e n t T y p e   =   a w a i t   t p . s y s t e m . s u g g e s t e r ( 
         [ " g e n e r a l " ,   " i m p a c t " ,   " b u d g e t " ,   " t i m e l i n e " ,   " e x e c u t i v e " ,   " e v a l u a t i o n " ] , 
         [ " G e n e r a l   C o n t e n t " ,   " I m p a c t   S t a t e m e n t " ,   " B u d g e t   J u s t i f i c a t i o n " ,   " P r o j e c t   T i m e l i n e " ,   " E x e c u t i v e   S u m m a r y " ,   " E v a l u a t i o n   P l a n " ] , 
         f a l s e , 
         " S e l e c t   c o n t e n t   t y p e " 
     ) ; 
     
     / /   G e t   s e c t i o n   i n f o r m a t i o n 
     c o n s t   s e c t i o n N a m e   =   c u r r e n t F r o n t m a t t e r . s e c t i o n _ n a m e ; 
     c o n s t   a p p l i c a t i o n L i n k   =   c u r r e n t F r o n t m a t t e r . a p p l i c a t i o n ; 
     
     / /   G e t   a p p l i c a t i o n   f i l e 
     c o n s t   a p p l i c a t i o n P a t h   =   a p p l i c a t i o n L i n k . r e p l a c e ( " [ [ " ,   " " ) . r e p l a c e ( " ] ] " ,   " " )   +   " . m d " ; 
     c o n s t   a p p l i c a t i o n F i l e   =   t p . f i l e . f i n d _ t f i l e ( a p p l i c a t i o n P a t h ) ; 
     
     i f   ( ! a p p l i c a t i o n F i l e )   { 
         n e w   N o t i c e ( " A p p l i c a t i o n   f i l e   n o t   f o u n d ! " ) ; 
         r e t u r n   " E r r o r :   A p p l i c a t i o n   n o t   f o u n d " ; 
     } 
     
     c o n s t   a p p l i c a t i o n C o n t e n t   =   a w a i t   a p p . v a u l t . r e a d ( a p p l i c a t i o n F i l e ) ; 
     c o n s t   a p p l i c a t i o n F r o n t m a t t e r   =   a p p . m e t a d a t a C a c h e . g e t F i l e C a c h e ( a p p l i c a t i o n F i l e ) . f r o n t m a t t e r ; 
     
     / /   G e t   b u s i n e s s   a n d   g r a n t   i n f o r m a t i o n 
     c o n s t   b u s i n e s s L i n k   =   a p p l i c a t i o n F r o n t m a t t e r . b u s i n e s s ; 
     c o n s t   g r a n t L i n k   =   a p p l i c a t i o n F r o n t m a t t e r . g r a n t ; 
     
     c o n s t   b u s i n e s s P a t h   =   b u s i n e s s L i n k . r e p l a c e ( " [ [ " ,   " " ) . r e p l a c e ( " ] ] " ,   " " )   +   " . m d " ; 
     c o n s t   g r a n t P a t h   =   g r a n t L i n k . r e p l a c e ( " [ [ " ,   " " ) . r e p l a c e ( " ] ] " ,   " " )   +   " . m d " ; 
     
     c o n s t   b u s i n e s s F i l e   =   t p . f i l e . f i n d _ t f i l e ( b u s i n e s s P a t h ) ; 
     c o n s t   g r a n t F i l e   =   t p . f i l e . f i n d _ t f i l e ( g r a n t P a t h ) ; 
     
     i f   ( ! b u s i n e s s F i l e   | |   ! g r a n t F i l e )   { 
         n e w   N o t i c e ( " B u s i n e s s   o r   g r a n t   f i l e   n o t   f o u n d ! " ) ; 
         r e t u r n   " E r r o r :   B u s i n e s s   o r   g r a n t   n o t   f o u n d " ; 
     } 
     
     c o n s t   b u s i n e s s C o n t e n t   =   a w a i t   a p p . v a u l t . r e a d ( b u s i n e s s F i l e ) ; 
     c o n s t   g r a n t C o n t e n t   =   a w a i t   a p p . v a u l t . r e a d ( g r a n t F i l e ) ; 
     
     c o n s t   b u s i n e s s F r o n t m a t t e r   =   a p p . m e t a d a t a C a c h e . g e t F i l e C a c h e ( b u s i n e s s F i l e ) . f r o n t m a t t e r ; 
     c o n s t   g r a n t F r o n t m a t t e r   =   a p p . m e t a d a t a C a c h e . g e t F i l e C a c h e ( g r a n t F i l e ) . f r o n t m a t t e r ; 
     
     / /   G e t   m o d e l   b a s e d   o n   c o n t e n t   t y p e 
     c o n s t   m o d e l   =   c o n f i g F r o n t m a t t e r . m o d e l s [ c o n t e n t T y p e ]   | |   c o n f i g F r o n t m a t t e r . d e f a u l t _ m o d e l ; 
     
     / /   G e t   t e m p e r a t u r e   b a s e d   o n   c o n t e n t   t y p e 
     c o n s t   t e m p e r a t u r e   =   c o n f i g F r o n t m a t t e r . t e m p e r a t u r e s [ c o n t e n t T y p e ]   | |   0 . 7 ; 
     
     / /   P r e p a r e   p r o m p t 
     c o n s t   p r o m p t   =   ` C r e a t e   c o n t e n t   f o r   t h e   ' $ { s e c t i o n N a m e } '   s e c t i o n   o f   a   g r a n t   a p p l i c a t i o n   w i t h   t h e   f o l l o w i n g   d e t a i l s : 
 
 B u s i n e s s :   $ { b u s i n e s s F r o n t m a t t e r . n a m e } 
 B u s i n e s s   T y p e :   $ { b u s i n e s s F r o n t m a t t e r . b u s i n e s s _ t y p e } 
 B u s i n e s s   D e s c r i p t i o n :   $ { b u s i n e s s F r o n t m a t t e r . b u s i n e s s _ d e s c r i p t i o n   | |   " N o t   p r o v i d e d " } 
 A n n u a l   R e v e n u e :   < d i v   c l a s s = " m y - 2   w - f u l l   f l e x   j u s t i f y - c e n t e r   t e x t - g r a y - 9 0 0   s c r o l l b a r - t h i n   d a r k : t e x t - g r a y - 1 0 0 " > 
                                 < d i v   s t y l e = " a l l :   r e v e r t ;   f o n t - s i z e :   1 r e m ;   t e x t - a l i g n :   c e n t e r ;   m a x - w i d t h :   1 0 0 % ;   o v e r f l o w - x :   a u t o ;   d i s p l a y :   i n l i n e - b l o c k ; " > 
                                     < d i v   c l a s s = " m a t h - f o r m u l a   s c r o l l b a r - t h i n "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   1 . 5 ;   p a d d i n g :   0 . 5 r e m   0 ;   m i n - w i d t h :   m i n - c o n t e n t ; " > 
                                         < s p a n   c l a s s = " k a t e x - e r r o r "   t i t l e = " P a r s e E r r o r :   K a T e X   p a r s e   e r r o r :   C a n & # x 2 7 ; t   u s e   f u n c t i o n   & # x 2 7 ; $ & # x 2 7 ;   i n   m a t h   m o d e   a t   p o s i t i o n   7 0 :   & 
 D e m o g r a p h i c s :   $ 2{ b u s i n e s s F r o n t m & "   s t y l e = " c o l o r : # c c 0 0 0 0 " > { b u s i n e s s F r o n t m a t t e r . a n n u a l _ r e v e n u e   | |   & q u o t ; N o t   p r o v i d e d & q u o t ; } 
 D e m o g r a p h i c s :   $ { b u s i n e s s F r o n t m a t t e r . o w n e r _ d e m o g r a p h i c s   | |   & q u o t ; N o t   p r o v i d e d & q u o t ; } 
 
 G r a n t :   $ { g r a n t F r o n t m a t t e r . g r a n t _ n a m e } 
 G r a n t   I s s u e r :   $ { g r a n t F r o n t m a t t e r . i s s u e r } 
 G r a n t   C a t e g o r i e s :   $ { g r a n t F r o n t m a t t e r . g r a n t _ c a t e g o r i e s } 
 G r a n t   A m o u n t : < / s p a n > 
                                     < / d i v > 
                                 < / d i v > 
                             < / d i v > { g r a n t F r o n t m a t t e r . a m o u n t   | |   " N o t   p r o v i d e d " } 
 G r a n t   D e s c r i p t i o n :   $ { g r a n t F r o n t m a t t e r . d e s c r i p t i o n   | |   " N o t   p r o v i d e d " } 
 E l i g i b i l i t y :   $ { g r a n t F r o n t m a t t e r . e l i g i b i l i t y   | |   " N o t   p r o v i d e d " } 
 
 $ { c o n t e n t T y p e   = = =   " i m p a c t "   ?   
     " C r e a t e   a   c o m p e l l i n g   i m p a c t   s t a t e m e n t   t h a t   h i g h l i g h t s   t h e   s o c i a l   a n d   e c o n o m i c   i m p a c t   o f   t h e   b u s i n e s s ,   a l i g n s   w i t h   t h e   g r a n t ' s   f o c u s   a r e a s ,   a n d   i n c l u d e s   m e a s u r a b l e   o u t c o m e s .   T h e   s t a t e m e n t   s h o u l d   b e   a p p r o x i m a t e l y   3 0 0 - 4 0 0   w o r d s . "   : 
     c o n t e n t T y p e   = = =   " b u d g e t "   ? 
     " C r e a t e   a   d e t a i l e d   b u d g e t   j u s t i f i c a t i o n   t h a t   e x p l a i n s   h o w   t h e   r e q u e s t e d   f u n d s   w i l l   b e   u s e d ,   d e m o n s t r a t e s   c o s t - e f f e c t i v e n e s s ,   a n d   a l i g n s   w i t h   t h e   g r a n t ' s   r e q u i r e m e n t s .   T h e   j u s t i f i c a t i o n   s h o u l d   b e   a p p r o x i m a t e l y   3 0 0 - 4 0 0   w o r d s . "   : 
     c o n t e n t T y p e   = = =   " t i m e l i n e "   ? 
     " C r e a t e   a   p r o j e c t   t i m e l i n e   t h a t   o u t l i n e s   k e y   m i l e s t o n e s ,   d e l i v e r a b l e s ,   a n d   d e a d l i n e s   f o r   t h e   g r a n t   p r o j e c t .   F o r m a t   i t   i n   a   c l e a r ,   s t r u c t u r e d   w a y   w i t h   s p e c i f i c   d a t e s   a n d   r e s p o n s i b i l i t i e s . "   : 
     c o n t e n t T y p e   = = =   " e x e c u t i v e "   ? 
     " C r e a t e   a n   e x e c u t i v e   s u m m a r y   t h a t   p r o v i d e s   a   c o n c i s e   o v e r v i e w   o f   t h e   g r a n t   a p p l i c a t i o n ,   h i g h l i g h t i n g   t h e   b u s i n e s s ' s   q u a l i f i c a t i o n s ,   t h e   p r o j e c t ' s   p u r p o s e ,   a n d   t h e   e x p e c t e d   o u t c o m e s .   T h e   s u m m a r y   s h o u l d   b e   a p p r o x i m a t e l y   2 5 0 - 3 0 0   w o r d s . "   : 
     c o n t e n t T y p e   = = =   " e v a l u a t i o n "   ? 
     " C r e a t e   a n   e v a l u a t i o n   p l a n   t h a t   d e s c r i b e s   h o w   t h e   p r o j e c t ' s   s u c c e s s   w i l l   b e   m e a s u r e d ,   i n c l u d i n g   s p e c i f i c   m e t r i c s ,   d a t a   c o l l e c t i o n   m e t h o d s ,   a n d   r e p o r t i n g   p r o c e d u r e s .   T h e   p l a n   s h o u l d   b e   a p p r o x i m a t e l y   3 0 0 - 4 0 0   w o r d s . "   : 
     " C r e a t e   c o m p e l l i n g   c o n t e n t   f o r   t h i s   s e c t i o n   t h a t   i s   t a i l o r e d   t o   t h e   b u s i n e s s   a n d   g r a n t .   T h e   c o n t e n t   s h o u l d   b e   w e l l - s t r u c t u r e d ,   p e r s u a s i v e ,   a n d   a p p r o x i m a t e l y   3 0 0 - 4 0 0   w o r d s . " 
 } ` ; 
 
     / /   G e t   s y s t e m   p r o m p t   b a s e d   o n   c o n t e n t   t y p e 
     c o n s t   s y s t e m P r o m p t   =   c o n t e n t T y p e   = = =   " i m p a c t "   ? 
         " Y o u   a r e   a n   e x p e r t   g r a n t   w r i t e r   s p e c i a l i z i n g   i n   i m p a c t   s t a t e m e n t s   f o r   g r a n t   a p p l i c a t i o n s . "   : 
         c o n t e n t T y p e   = = =   " b u d g e t "   ? 
         " Y o u   a r e   a n   e x p e r t   g r a n t   w r i t e r   s p e c i a l i z i n g   i n   b u d g e t   j u s t i f i c a t i o n s   f o r   g r a n t   a p p l i c a t i o n s . "   : 
         c o n t e n t T y p e   = = =   " t i m e l i n e "   ? 
         " Y o u   a r e   a n   e x p e r t   g r a n t   w r i t e r   s p e c i a l i z i n g   i n   p r o j e c t   t i m e l i n e s   f o r   g r a n t   a p p l i c a t i o n s . "   : 
         c o n t e n t T y p e   = = =   " e x e c u t i v e "   ? 
         " Y o u   a r e   a n   e x p e r t   g r a n t   w r i t e r   s p e c i a l i z i n g   i n   e x e c u t i v e   s u m m a r i e s   f o r   g r a n t   a p p l i c a t i o n s . "   : 
         c o n t e n t T y p e   = = =   " e v a l u a t i o n "   ? 
         " Y o u   a r e   a n   e x p e r t   g r a n t   w r i t e r   s p e c i a l i z i n g   i n   e v a l u a t i o n   p l a n s   f o r   g r a n t   a p p l i c a t i o n s . "   : 
         " Y o u   a r e   a n   e x p e r t   g r a n t   w r i t e r   s p e c i a l i z i n g   i n   c r e a t i n g   c o m p e l l i n g   c o n t e n t   f o r   g r a n t   a p p l i c a t i o n s . " ; 
     
     / /   S h o w   l o a d i n g   n o t i c e 
     n e w   N o t i c e ( " G e n e r a t i n g   c o n t e n t   w i t h   O p e n R o u t e r . . . " ) ; 
     
     t r y   { 
         / /   M a k e   A P I   r e q u e s t   u s i n g   A P I R e q u e s t   p l u g i n 
         c o n s t   r e s p o n s e   =   a w a i t   a p i R e q u e s t ( { 
             u r l :   ' h t t p s : / / o p e n r o u t e r . a i / a p i / v 1 / c h a t / c o m p l e t i o n s ' , 
             m e t h o d :   ' P O S T ' , 
             h e a d e r s :   { 
                 ' A u t h o r i z a t i o n ' :   ` B e a r e r   $ { c o n f i g F r o n t m a t t e r . a p i _ k e y } ` , 
                 ' 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 ' , 
                 ' H T T P - R e f e r e r ' :   ' h t t p s : / / o b s i d i a n . m d ' , 
                 ' X - T i t l e ' :   ' G r a n t   M a n a g e m e n t   S y s t e m ' 
             } , 
             b o d y :   { 
                 ' m o d e l ' :   m o d e l , 
                 ' m e s s a g e s ' :   [ 
                     { 
                         ' r o l e ' :   ' s y s t e m ' , 
                         ' c o n t e n t ' :   s y s t e m P r o m p t 
                     } , 
                     { 
                         ' r o l e ' :   ' u s e r ' , 
                         ' c o n t e n t ' :   p r o m p t 
                     } 
                 ] , 
                 ' t e m p e r a t u r e ' :   t e m p e r a t u r e , 
                 ' m a x _ t o k e n s ' :   1 0 0 0 
             } 
         } ) ; 
         
         / /   C h e c k   f o r   e r r o r s 
         i f   ( r e s p o n s e . e r r o r )   { 
             n e w   N o t i c e ( ` O p e n R o u t e r   A P I   E r r o r :   $ { r e s p o n s e . e r r o r . m e s s a g e } ` ) ; 
             
             / /   T r y   f a l l b a c k   m o d e l 
             n e w   N o t i c e ( " T r y i n g   f a l l b a c k   m o d e l . . . " ) ; 
             
             c o n s t   f a l l b a c k R e s p o n s e   =   a w a i t   a p i R e q u e s t ( { 
                 u r l :   ' h t t p s : / / o p e n r o u t e r . a i / a p i / v 1 / c h a t / c o m p l e t i o n s ' , 
                 m e t h o d :   ' P O S T ' , 
                 h e a d e r s :   { 
                     ' A u t h o r i z a t i o n ' :   ` B e a r e r   $ { c o n f i g F r o n t m a t t e r . a p i _ k e y } ` , 
                     ' 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 ' , 
                     ' H T T P - R e f e r e r ' :   ' h t t p s : / / o b s i d i a n . m d ' , 
                     ' X - T i t l e ' :   ' G r a n t   M a n a g e m e n t   S y s t e m ' 
                 } , 
                 b o d y :   { 
                     ' m o d e l ' :   c o n f i g F r o n t m a t t e r . f a l l b a c k _ m o d e l , 
                     ' m e s s a g e s ' :   [ 
                         { 
                             ' r o l e ' :   ' s y s t e m ' , 
                             ' c o n t e n t ' :   s y s t e m P r o m p t 
                         } , 
                         { 
                             ' r o l e ' :   ' u s e r ' , 
                             ' c o n t e n t ' :   p r o m p t 
                         } 
                     ] , 
                     ' t e m p e r a t u r e ' :   t e m p e r a t u r e , 
                     ' m a x _ t o k e n s ' :   1 0 0 0 
                 } 
             } ) ; 
             
             i f   ( f a l l b a c k R e s p o n s e . e r r o r )   { 
                 n e w   N o t i c e ( ` F a l l b a c k   m o d e l   e r r o r :   $ { f a l l b a c k R e s p o n s e . e r r o r . m e s s a g e } ` ) ; 
                 r e t u r n   " E r r o r   g e n e r a t i n g   c o n t e n t .   P l e a s e   t r y   a g a i n   l a t e r . " ; 
             } 
             
             / /   G e t   g e n e r a t e d   c o n t e n t   f r o m   f a l l b a c k 
             c o n s t   g e n e r a t e d C o n t e n t   =   f a l l b a c k R e s p o n s e . c h o i c e s [ 0 ] . m e s s a g e . c o n t e n t ; 
             
             / /   U p d a t e   s e c t i o n   c o n t e n t 
             a w a i t   a p p . v a u l t . m o d i f y ( c u r r e n t F i l e ,   c u r r e n t C o n t e n t   = >   { 
                 r e t u r n   c u r r e n t C o n t e n t . r e p l a c e ( / # #   C o n t e n t \ n [ \ s \ S ] * ? ( ? = \ n # #   A c t i o n s | < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x - e r r o r "   t i t l e = " P a r s e E r r o r :   K a T e X   p a r s e   e r r o r :   E x p e c t e d   & # x 2 7 ; E O F & # x 2 7 ; ,   g o t   & # x 2 7 ; # & # x 2 7 ;   a t   p o s i t i o n   6 :   ) / ,   ` # 2#   C o n t e n t \ n "   s t y l e = " c o l o r : # c c 0 0 0 0 " > ) / ,   ` # #   C o n t e n t \ n < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { g e n e r a t e d C o n t e n t } \ n \ n ` ) ; 
             } ) ; 
             
             n e w   N o t i c e ( " C o n t e n t   g e n e r a t e d   w i t h   f a l l b a c k   m o d e l ! " ) ; 
             r e t u r n   g e n e r a t e d C o n t e n t ; 
         } 
         
         / /   G e t   g e n e r a t e d   c o n t e n t 
         c o n s t   g e n e r a t e d C o n t e n t   =   r e s p o n s e . c h o i c e s [ 0 ] . m e s s a g e . c o n t e n t ; 
         
         / /   U p d a t e   s e c t i o n   c o n t e n t 
         c o n s t   c u r r e n t C o n t e n t   =   a w a i t   a p p . v a u l t . r e a d ( c u r r e n t F i l e ) ; 
         a w a i t   a p p . v a u l t . m o d i f y ( c u r r e n t F i l e ,   c u r r e n t C o n t e n t . r e p l a c e ( / # #   C o n t e n t \ n [ \ s \ S ] * ? ( ? = \ n # #   A c t i o n s | < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x - e r r o r "   t i t l e = " P a r s e E r r o r :   K a T e X   p a r s e   e r r o r :   E x p e c t e d   & # x 2 7 ; E O F & # x 2 7 ; ,   g o t   & # x 2 7 ; # & # x 2 7 ;   a t   p o s i t i o n   6 :   ) / ,   ` # 2#   C o n t e n t \ n "   s t y l e = " c o l o r : # c c 0 0 0 0 " > ) / ,   ` # #   C o n t e n t \ n < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { g e n e r a t e d C o n t e n t } \ n \ n ` ) ) ; 
         
         n e w   N o t i c e ( " C o n t e n t   g e n e r a t e d   s u c c e s s f u l l y ! " ) ; 
         r e t u r n   g e n e r a t e d C o n t e n t ; 
     }   c a t c h   ( e r r o r )   { 
         c o n s o l e . e r r o r ( " E r r o r   g e n e r a t i n g   c o n t e n t : " ,   e r r o r ) ; 
         n e w   N o t i c e ( ` E r r o r :   $ { e r r o r . m e s s a g e } ` ) ; 
         r e t u r n   " E r r o r   g e n e r a t i n g   c o n t e n t .   P l e a s e   t r y   a g a i n   l a t e r . " ; 
     } 
 } 
 ` ` ` ` 
 
 # # #   5 . 2   C r e a t e   T o g g l e   S e c t i o n   C o m p l e t e   S c r i p t 
 
 C r e a t e   a   f i l e 
 
 ` ` ` 
 _ t e m p l a t e s / t o g g l e _ s e c t i o n _ c o m p l e t e . j s 
 ` ` ` 
 
 : 
 
 ` ` ` 
 m o d u l e . e x p o r t s   =   a s y n c   f u n c t i o n ( t p )   { 
     / /   G e t   c u r r e n t   s e c t i o n 
     c o n s t   c u r r e n t F i l e   =   t p . f i l e . f i n d _ t f i l e ( t p . f i l e . p a t h ( t r u e ) ) ; 
     c o n s t   c u r r e n t F r o n t m a t t e r   =   a p p . m e t a d a t a C a c h e . g e t F i l e C a c h e ( c u r r e n t F i l e ) . f r o n t m a t t e r ; 
     
     i f   ( ! c u r r e n t F r o n t m a t t e r   | |   ! c u r r e n t F r o n t m a t t e r . a p p l i c a t i o n )   { 
         n e w   N o t i c e ( " T h i s   i s   n o t   a   v a l i d   s e c t i o n   f i l e ! " ) ; 
         r e t u r n   " E r r o r :   N o t   a   v a l i d   s e c t i o n   f i l e " ; 
     } 
     
     / /   T o g g l e   i s _ c o m p l e t e 
     c o n s t   i s C o m p l e t e   =   ! c u r r e n t F r o n t m a t t e r . i s _ c o m p l e t e ; 
     
     / /   U p d a t e   f r o n t m a t t e r 
     a w a i t   a p p . f i l e M a n a g e r . p r o c e s s F r o n t M a t t e r ( c u r r e n t F i l e ,   f m   = >   { 
         f m . i s _ c o m p l e t e   =   i s C o m p l e t e ; 
         f m . l a s t _ m o d i f i e d   =   t p . d a t e . n o w ( " Y Y Y Y - M M - D D " ) ; 
         r e t u r n   f m ; 
     } ) ; 
     
     / /   G e t   a p p l i c a t i o n   f i l e 
     c o n s t   a p p l i c a t i o n L i n k   =   c u r r e n t F r o n t m a t t e r . a p p l i c a t i o n ; 
     c o n s t   a p p l i c a t i o n P a t h   =   a p p l i c a t i o n L i n k . r e p l a c e ( " [ [ " ,   " " ) . r e p l a c e ( " ] ] " ,   " " )   +   " . m d " ; 
     c o n s t   a p p l i c a t i o n F i l e   =   t p . f i l e . f i n d _ t f i l e ( a p p l i c a t i o n P a t h ) ; 
     
     i f   ( ! a p p l i c a t i o n F i l e )   { 
         n e w   N o t i c e ( " A p p l i c a t i o n   f i l e   n o t   f o u n d ! " ) ; 
         r e t u r n   " E r r o r :   A p p l i c a t i o n   n o t   f o u n d " ; 
     } 
     
     / /   U p d a t e   a p p l i c a t i o n   c o m p l e t i o n   p e r c e n t a g e 
     c o n s t   s e c t i o n s   =   a p p . v a u l t . g e t M a r k d o w n F i l e s ( ) . f i l t e r ( f i l e   = >   { 
         c o n s t   f m   =   a p p . m e t a d a t a C a c h e . g e t F i l e C a c h e ( f i l e ) . f r o n t m a t t e r ; 
         r e t u r n   f m   & &   f m . t y p e   = = =   " s e c t i o n "   & &   f m . a p p l i c a t i o n   = = =   a p p l i c a t i o n L i n k ; 
     } ) ; 
     
     c o n s t   c o m p l e t e d S e c t i o n s   =   s e c t i o n s . f i l t e r ( f i l e   = >   { 
         c o n s t   f m   =   a p p . m e t a d a t a C a c h e . g e t F i l e C a c h e ( f i l e ) . f r o n t m a t t e r ; 
         r e t u r n   f m   & &   f m . i s _ c o m p l e t e   = = =   t r u e ; 
     } ) ; 
     
     c o n s t   c o m p l e t i o n P e r c e n t a g e   =   M a t h . r o u n d ( ( c o m p l e t e d S e c t i o n s . l e n g t h   /   s e c t i o n s . l e n g t h )   *   1 0 0 ) ; 
     
     a w a i t   a p p . f i l e M a n a g e r . p r o c e s s F r o n t M a t t e r ( a p p l i c a t i o n F i l e ,   f m   = >   { 
         f m . c o m p l e t i o n _ p e r c e n t a g e   =   c o m p l e t i o n P e r c e n t a g e ; 
         f m . l a s t _ m o d i f i e d   =   t p . d a t e . n o w ( " Y Y Y Y - M M - D D " ) ; 
         r e t u r n   f m ; 
     } ) ; 
     
     n e w   N o t i c e ( ` S e c t i o n   m a r k e d   a s   < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > s < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 7 1 5 3 e m ; " > C < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > o < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > m < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > p l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m c l o s e " > ? < / s p a n > < s p a n   c l a s s = " m o r d " > & q u o t ; < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > c o < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > m < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > p l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d " > & q u o t ; < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 7 7 8 e m ; " > < / s p a n > < s p a n   c l a s s = " m r e l " > : < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 7 7 8 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > & q u o t ; < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > c o < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > m < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > p l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d " > & q u o t ; < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > A < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > p p l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > c < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > o < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > c o < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > m < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > p l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > o < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > n < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 7 7 8 e m ; " > < / s p a n > < s p a n   c l a s s = " m r e l " > : < / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { c o m p l e t i o n P e r c e n t a g e } % ` ) ; 
     r e t u r n   ` S e c t i o n   m a r k e d   a s   $ { i s C o m p l e t e   ?   " c o m p l e t e "   :   " i n c o m p l e t e " } ` ; 
 } 
 ` ` ` 
 
 # # #   5 . 3   C r e a t e   U p d a t e   A p p l i c a t i o n   S t a t u s   S c r i p t 
 
 C r e a t e   a   f i l e 
 
 ` ` ` 
 _ t e m p l a t e s / u p d a t e _ a p p l i c a t i o n _ s t a t u s . j s 
 ` ` ` 
 
 : 
 
 ` ` ` 
 m o d u l e . e x p o r t s   =   a s y n c   f u n c t i o n ( t p )   { 
     / /   G e t   c u r r e n t   a p p l i c a t i o n 
     c o n s t   c u r r e n t F i l e   =   t p . f i l e . f i n d _ t f i l e ( t p . f i l e . p a t h ( t r u e ) ) ; 
     c o n s t   c u r r e n t F r o n t m a t t e r   =   a p p . m e t a d a t a C a c h e . g e t F i l e C a c h e ( c u r r e n t F i l e ) . f r o n t m a t t e r ; 
     
     i f   ( ! c u r r e n t F r o n t m a t t e r   | |   ! c u r r e n t F r o n t m a t t e r . t y p e   ! = =   " a p p l i c a t i o n " )   { 
         n e w   N o t i c e ( " T h i s   i s   n o t   a   v a l i d   a p p l i c a t i o n   f i l e ! " ) ; 
         r e t u r n   " E r r o r :   N o t   a   v a l i d   a p p l i c a t i o n   f i l e " ; 
     } 
     
     / /   G e t   c u r r e n t   s t a t u s 
     c o n s t   c u r r e n t S t a t u s   =   c u r r e n t F r o n t m a t t e r . s t a t u s   | |   " r e s e a r c h i n g " ; 
     
     / /   D e f i n e   s t a t u s   o p t i o n s 
     c o n s t   s t a t u s O p t i o n s   =   [ " r e s e a r c h i n g " ,   " d r a f t i n g " ,   " i n t e r n a l _ r e v i e w " ,   " r e a d y " ,   " s u b m i t t e d " ,   " w o n " ,   " d e c l i n e d " ] ; 
     
     / /   G e t   c u r r e n t   i n d e x 
     c o n s t   c u r r e n t I n d e x   =   s t a t u s O p t i o n s . i n d e x O f ( c u r r e n t S t a t u s ) ; 
     
     / /   G e t   n e x t   s t a t u s   o p t i o n s 
     c o n s t   n e x t O p t i o n s   =   s t a t u s O p t i o n s . s l i c e ( c u r r e n t I n d e x   +   1 ) ; 
     
     / /   P r o m p t   f o r   n e w   s t a t u s 
     c o n s t   n e w S t a t u s   =   a w a i t   t p . s y s t e m . s u g g e s t e r ( 
         n e x t O p t i o n s , 
         n e x t O p t i o n s , 
         f a l s e , 
         " S e l e c t   n e w   s t a t u s " 
     ) ; 
     
     / /   U p d a t e   f r o n t m a t t e r 
     a w a i t   a p p . f i l e M a n a g e r . p r o c e s s F r o n t M a t t e r ( c u r r e n t F i l e ,   f m   = >   { 
         f m . s t a t u s   =   n e w S t a t u s ; 
         f m . l a s t _ m o d i f i e d   =   t p . d a t e . n o w ( " Y Y Y Y - M M - D D " ) ; 
         
         / /   I f   s u b m i t t e d ,   a d d   s u b m i s s i o n   d a t e 
         i f   ( n e w S t a t u s   = = =   " s u b m i t t e d " )   { 
             f m . s u b m i s s i o n _ d a t e   =   t p . d a t e . n o w ( " Y Y Y Y - M M - D D " ) ; 
         } 
         
         r e t u r n   f m ; 
     } ) ; 
     
     n e w   N o t i c e ( ` A p p l i c a t i o n   s t a t u s   u p d a t e d   t o :   $ { n e w S t a t u s } ` ) ; 
     r e t u r n   ` S t a t u s   u p d a t e d   t o :   $ { n e w S t a t u s } ` ; 
 } 
 ` ` ` 
 
 # #   6 .   G r a n t   D i s c o v e r y   S y s t e m 
 
 # # #   6 . 1   C r e a t e   G r a n t   D i s c o v e r y   S c r i p t 
 
 C r e a t e   a   f i l e 
 
 ` ` ` 
 _ t e m p l a t e s / d i s c o v e r _ g r a n t s . m d 
 ` ` ` 
 
 : 
 
 ` ` ` 
 < % * 
 / /   G e t   A P I   c o n f i g u r a t i o n 
 c o n s t   c o n f i g F i l e   =   a p p . v a u l t . g e t A b s t r a c t F i l e B y P a t h ( " _ c o n f i g / o p e n r o u t e r _ a p i . m d " ) ; 
 c o n s t   c o n f i g C o n t e n t   =   a w a i t   a p p . v a u l t . r e a d ( c o n f i g F i l e ) ; 
 c o n s t   c o n f i g F r o n t m a t t e r   =   a p p . m e t a d a t a C a c h e . g e t F i l e C a c h e ( c o n f i g F i l e ) . f r o n t m a t t e r ; 
 
 / /   D e f i n e   k e y w o r d s 
 c o n s t   k e y w o r d s   =   [ " s m a l l   b u s i n e s s " ,   " m i n o r i t y " ,   " w o m e n " ,   " N e b r a s k a " ] ; 
 
 / /   I n i t i a l i z e   r e s u l t s 
 l e t   c r e a t e d G r a n t s   =   0 ; 
 l e t   d i s c o v e r e d G r a n t s   =   [ ] ; 
 
 / /   P r o c e s s   e a c h   A P I 
 f o r   ( c o n s t   a p i   o f   c o n f i g F r o n t m a t t e r . g r a n t _ a p i s )   { 
     t r y   { 
         / /   M a k e   A P I   r e q u e s t 
         l e t   r e s p o n s e ; 
         
         i f   ( a p i . m e t h o d   = = =   " P O S T " )   { 
             / /   F o r   P O S T   r e q u e s t s 
             r e s p o n s e   =   a w a i t   a p i R e q u e s t ( { 
                 u r l :   a p i . u r l , 
                 m e t h o d :   " P O S T " , 
                 h e a d e r s :   a p i . h e a d e r s , 
                 b o d y :   a p i . b o d y 
             } ) ; 
         }   e l s e   { 
             / /   F o r   G E T   r e q u e s t s 
             r e s p o n s e   =   a w a i t   a p i R e q u e s t ( { 
                 u r l :   a p i . u r l , 
                 m e t h o d :   " G E T " , 
                 h e a d e r s :   a p i . h e a d e r s 
             } ) ; 
         } 
         
         / /   P r o c e s s   r e s p o n s e   b a s e d   o n   A P I 
         l e t   g r a n t s   =   [ ] ; 
         
         i f   ( a p i . n a m e   = = =   " G r a n t s . g o v " )   { 
             / /   P r o c e s s   G r a n t s . g o v   r e s p o n s e 
             i f   ( r e s p o n s e . o p p H i t s )   { 
                 g r a n t s   =   r e s p o n s e . o p p H i t s . m a p ( g r a n t   = >   ( { 
                     n a m e :   g r a n t . o p p T i t l e , 
                     i s s u e r :   g r a n t . a g e n c y N a m e , 
                     a m o u n t :   g r a n t . a w a r d C e i l i n g , 
                     d e a d l i n e :   g r a n t . c l o s e D a t e   ?   m o m e n t ( g r a n t . c l o s e D a t e ) . f o r m a t ( " Y Y Y Y - M M - D D " )   :   n u l l , 
                     f r e q u e n c y :   " A n n u a l " , 
                     c a t e g o r i e s :   g r a n t . c a t e g o r y O f F u n d i n g A c t i v i t y   ?   g r a n t . c a t e g o r y O f F u n d i n g A c t i v i t y . j o i n ( " ,   " )   :   " " , 
                     d e m o g r a p h i c s :   " " , 
                     u r l :   ` h t t p s : / / w w w . g r a n t s . g o v / w e b / g r a n t s / v i e w - o p p o r t u n i t y . h t m l ? o p p I d = $ { g r a n t . o p p N u m b e r } ` , 
                     e l i g i b i l i t y :   g r a n t . e l i g i b l e A p p l i c a n t s   ?   g r a n t . e l i g i b l e A p p l i c a n t s . j o i n ( " ,   " )   :   " " , 
                     d e s c r i p t i o n :   g r a n t . d e s c r i p t i o n   | |   " " , 
                     s o u r c e :   " G r a n t s . g o v " 
                 } ) ) ; 
             } 
         }   e l s e   i f   ( a p i . n a m e   = = =   " S B A   G r a n t s " )   { 
             / /   P r o c e s s   S B A   G r a n t s   r e s p o n s e 
             i f   ( r e s p o n s e . g r a n t s )   { 
                 g r a n t s   =   r e s p o n s e . g r a n t s . m a p ( g r a n t   = >   ( { 
                     n a m e :   g r a n t . t i t l e , 
                     i s s u e r :   " S m a l l   B u s i n e s s   A d m i n i s t r a t i o n " , 
                     a m o u n t :   g r a n t . a m o u n t , 
                     d e a d l i n e :   g r a n t . d e a d l i n e   ?   m o m e n t ( g r a n t . d e a d l i n e ) . f o r m a t ( " Y Y Y Y - M M - D D " )   :   n u l l , 
                     f r e q u e n c y :   g r a n t . f r e q u e n c y   | |   " A n n u a l " , 
                     c a t e g o r i e s :   g r a n t . c a t e g o r i e s   | |   " S m a l l   B u s i n e s s " , 
                     d e m o g r a p h i c s :   g r a n t . d e m o g r a p h i c s   | |   " " , 
                     u r l :   g r a n t . u r l , 
                     e l i g i b i l i t y :   g r a n t . e l i g i b i l i t y   | |   " " , 
                     d e s c r i p t i o n :   g r a n t . d e s c r i p t i o n   | |   " " , 
                     s o u r c e :   " S B A   G r a n t s " 
                 } ) ) ; 
             } 
         }   e l s e   i f   ( a p i . n a m e   = = =   " U S D A   R u r a l   D e v e l o p m e n t " )   { 
             / /   P r o c e s s   U S D A   R u r a l   D e v e l o p m e n t   r e s p o n s e 
             i f   ( r e s p o n s e . o p p o r t u n i t i e s )   { 
                 g r a n t s   =   r e s p o n s e . o p p o r t u n i t i e s . m a p ( g r a n t   = >   ( { 
                     n a m e :   g r a n t . t i t l e , 
                     i s s u e r :   " U S D A   R u r a l   D e v e l o p m e n t " , 
                     a m o u n t :   g r a n t . a m o u n t , 
                     d e a d l i n e :   g r a n t . d e a d l i n e   ?   m o m e n t ( g r a n t . d e a d l i n e ) . f o r m a t ( " Y Y Y Y - M M - D D " )   :   n u l l , 
                     f r e q u e n c y :   g r a n t . f r e q u e n c y   | |   " A n n u a l " , 
                     c a t e g o r i e s :   g r a n t . c a t e g o r i e s   | |   " R u r a l   D e v e l o p m e n t " , 
                     d e m o g r a p h i c s :   g r a n t . d e m o g r a p h i c s   | |   " " , 
                     u r l :   g r a n t . u r l , 
                     e l i g i b i l i t y :   g r a n t . e l i g i b i l i t y   | |   " " , 
                     d e s c r i p t i o n :   g r a n t . d e s c r i p t i o n   | |   " " , 
                     s o u r c e :   " U S D A   R u r a l   D e v e l o p m e n t " 
                 } ) ) ; 
             } 
         } 
         
         / /   P r o c e s s   g r a n t s 
         f o r   ( c o n s t   g r a n t   o f   g r a n t s )   { 
             / /   C h e c k   i f   g r a n t   a l r e a d y   e x i s t s 
             c o n s t   g r a n t F i l e N a m e   =   ` g r a n t s / $ { g r a n t . n a m e . r e p l a c e ( / [ ^ a - z A - Z 0 - 9 ] / g ,   "   " ) . r e p l a c e ( / \ s + / g ,   " - " ) } . m d ` ; 
             c o n s t   e x i s t i n g F i l e   =   a p p . v a u l t . g e t A b s t r a c t F i l e B y P a t h ( g r a n t F i l e N a m e ) ; 
             
             i f   ( ! e x i s t i n g F i l e )   { 
                 / /   C r e a t e   g r a n t   f i l e 
                 c o n s t   g r a n t C o n t e n t   =   ` - - - 
 t y p e :   g r a n t 
 g r a n t _ n a m e :   " $ { g r a n t . n a m e } " 
 i s s u e r :   " $ { g r a n t . i s s u e r } " 
 a m o u n t :   $ { g r a n t . a m o u n t   | |   " n u l l " } 
 a p p l i c a t i o n _ d e a d l i n e :   $ { g r a n t . d e a d l i n e   | |   " n u l l " } 
 f r e q u e n c y :   " $ { g r a n t . f r e q u e n c y } " 
 g r a n t _ c a t e g o r i e s :   " $ { g r a n t . c a t e g o r i e s } " 
 d e m o g r a p h i c _ r e q u i r e m e n t s :   " $ { g r a n t . d e m o g r a p h i c s } " 
 g r a n t _ u r l :   " $ { g r a n t . u r l } " 
 e l i g i b i l i t y :   " $ { g r a n t . e l i g i b i l i t y } " 
 m a t c h _ s c o r e :   0 
 c r e a t e d :   $ { m o m e n t ( ) . f o r m a t ( " Y Y Y Y - M M - D D " ) } 
 l a s t _ m o d i f i e d :   $ { m o m e n t ( ) . f o r m a t ( " Y Y Y Y - M M - D D " ) } 
 t a g s :   g r a n t 
 - - - 
 
 #   $ { g r a n t . n a m e } 
 
 # #   D e s c r i p t i o n 
 $ { g r a n t . d e s c r i p t i o n   | |   " N o   d e s c r i p t i o n   a v a i l a b l e . " } 
 
 # #   E l i g i b i l i t y 
 $ { g r a n t . e l i g i b i l i t y   | |   " N o t   s p e c i f i e d " } 
 
 # #   N o t e s 
 D i s c o v e r e d   t h r o u g h   a u t o m a t e d   g r a n t   d i s c o v e r y   u s i n g   $ { g r a n t . s o u r c e }   A P I . 
 
 # #   D a y s   U n t i l   D e a d l i n e 
 \ ` \ ` \ ` d a t a v i e w j s 
 c o n s t   d e a d l i n e   =   d v . c u r r e n t ( ) . a p p l i c a t i o n _ d e a d l i n e ; 
 i f   ( d e a d l i n e )   { 
     c o n s t   t o d a y   =   n e w   D a t e ( ) ; 
     c o n s t   d e a d l i n e D a t e   =   n e w   D a t e ( d e a d l i n e ) ; 
     c o n s t   d a y s L e f t   =   M a t h . c e i l ( ( d e a d l i n e D a t e   -   t o d a y )   /   ( 1 0 0 0   *   6 0   *   6 0   *   2 4 ) ) ; 
     
     l e t   c o l o r   =   " g r e e n " ; 
     i f   ( d a y s L e f t   < =   3 )   c o l o r   =   " r e d " ; 
     e l s e   i f   ( d a y s L e f t   < =   1 4 )   c o l o r   =   " o r a n g e " ; 
     
     d v . p a r a g r a p h ( \ ` < s p a n   s t y l e = " c o l o r : \ < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x - e r r o r "   t i t l e = " P a r s e E r r o r :   K a T e X   p a r s e   e r r o r :   U n e x p e c t e d   c h a r a c t e r :   & # x 2 7 ; \ & # x 2 7 ;   a t   p o s i t i o n   2 8 :   & - w e i g h t : b o l d ; & q u o t ; & g t ; \ 2"   s t y l e = " c o l o r : # c c 0 0 0 0 " > { c o l o r } ; f o n t - w e i g h t : b o l d ; & q u o t ; & g t ; \ < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { d a y s L e f t }   d a y s   l e f t < / s p a n > \ ` ) ; 
 }   e l s e   { 
     d v . p a r a g r a p h ( " N o   d e a d l i n e   s p e c i f i e d " ) ; 
 } 
 \ ` \ ` \ ` 
 
 # #   M a t c h i n g   B u s i n e s s e s 
 \ ` \ ` \ ` d a t a v i e w 
 T A B L E   b u s i n e s s _ t y p e   a s   " B u s i n e s s   T y p e " ,   a n n u a l _ r e v e n u e   a s   " A n n u a l   R e v e n u e " ,   o w n e r _ d e m o g r a p h i c s   a s   " D e m o g r a p h i c s " 
 F R O M   # b u s i n e s s 
 W H E R E   m a t c h _ s c o r e   >   5 0 
 S O R T   m a t c h _ s c o r e   D E S C 
 \ ` \ ` \ ` 
 
 # #   A p p l i c a t i o n s 
 \ ` \ ` \ ` d a t a v i e w 
 T A B L E   b u s i n e s s . n a m e   a s   " B u s i n e s s " ,   s t a t u s   a s   " S t a t u s " ,   c o m p l e t i o n _ p e r c e n t a g e   a s   " C o m p l e t i o n " ,   s u b m i s s i o n _ d a t e   a s   " S u b m i t t e d " 
 F R O M   # a p p l i c a t i o n 
 W H E R E   g r a n t   =   t h i s . f i l e . l i n k 
 S O R T   s u b m i s s i o n _ d a t e   D E S C 
 \ ` \ ` \ ` 
 
 # #   A c t i o n s 
 \ ` \ ` \ ` b u t t o n 
 n a m e   C r e a t e   A p p l i c a t i o n 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   C r e a t e   A p p l i c a t i o n 
 \ ` \ ` \ ` 
 
 \ ` \ ` \ ` b u t t o n 
 n a m e   G e n e r a t e   S u m m a r y 
 t y p e   c o m m a n d 
 a c t i o n   A I   C o m m a n d e r :   S u m m a r i z e   G r a n t 
 \ ` \ ` \ ` 
 ` ; 
 
                 a w a i t   a p p . v a u l t . c r e a t e ( g r a n t F i l e N a m e ,   g r a n t C o n t e n t ) ; 
                 c r e a t e d G r a n t s + + ; 
                 d i s c o v e r e d G r a n t s . p u s h ( g r a n t . n a m e ) ; 
             } 
         } 
     }   c a t c h   ( e r r o r )   { 
         c o n s o l e . e r r o r ( ` E r r o r   w i t h   $ { a p i . n a m e }   A P I : ` ,   e r r o r ) ; 
     } 
 } 
 
 / /   G e n e r a t e   s u m m a r y   u s i n g   O p e n R o u t e r 
 c o n s t   s u m m a r y P r o m p t   =   ` I ' v e   d i s c o v e r e d   $ { c r e a t e d G r a n t s }   n e w   g r a n t s   f r o m   v a r i o u s   s o u r c e s   i n c l u d i n g   G r a n t s . g o v ,   S B A ,   a n d   U S D A   R u r a l   D e v e l o p m e n t .   P l e a s e   p r o v i d e   a   b r i e f   s u m m a r y   o f   t h e   t y p e s   o f   g r a n t s   t h a t   a r e   t y p i c a l l y   a v a i l a b l e   f o r   s m a l l   b u s i n e s s e s ,   m i n o r i t y - o w n e d   b u s i n e s s e s ,   a n d   w o m e n - o w n e d   b u s i n e s s e s   i n   N e b r a s k a . ` ; 
 
 l e t   s u m m a r y C o n t e n t   =   " " ; 
 
 t r y   { 
     c o n s t   s u m m a r y R e s p o n s e   =   a w a i t   a p i R e q u e s t ( { 
         u r l :   ' h t t p s : / / o p e n r o u t e r . a i / a p i / v 1 / c h a t / c o m p l e t i o n s ' , 
         m e t h o d :   ' P O S T ' , 
         h e a d e r s :   { 
 ` ` ` 
 
 c o n t i n u e 
 
 ! [ A I ] ( C : \ U s e r s \ H P \ N e x t c l o u d \ P o r t a b l e A p p s \ O b s i d i a n P o r t a b l e \ D a t a \ i m a g e s \ i m g . i c o n s 8 _ c l a u d e _ b r o w n . p n g ) C l a u d e   3 . 7   S o n n e t   ( T h i n k i n g ) 
 
 ` ` ` 
             ' A u t h o r i z a t i o n ' :   ` B e a r e r   $ { c o n f i g F r o n t m a t t e r . a p i _ k e y } ` , 
             ' 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 ' , 
             ' H T T P - R e f e r e r ' :   ' h t t p s : / / o b s i d i a n . m d ' , 
             ' X - T i t l e ' :   ' G r a n t   M a n a g e m e n t   S y s t e m ' 
         } , 
         b o d y :   { 
             ' m o d e l ' :   ' m i c r o s o f t / p h i - 2 ' , 
             ' m e s s a g e s ' :   [ 
                 { 
                     ' r o l e ' :   ' s y s t e m ' , 
                     ' c o n t e n t ' :   ' Y o u   a r e   a n   e x p e r t   o n   g r a n t   o p p o r t u n i t i e s   f o r   s m a l l   b u s i n e s s e s . ' 
                 } , 
                 { 
                     ' r o l e ' :   ' u s e r ' , 
                     ' c o n t e n t ' :   s u m m a r y P r o m p t 
                 } 
             ] , 
             ' t e m p e r a t u r e ' :   0 . 7 , 
             ' m a x _ t o k e n s ' :   5 0 0 
         } 
     } ) ; 
     
     s u m m a r y C o n t e n t   =   s u m m a r y R e s p o n s e . c h o i c e s [ 0 ] . m e s s a g e . c o n t e n t ; 
 }   c a t c h   ( e r r o r )   { 
     c o n s o l e . e r r o r ( " E r r o r   g e n e r a t i n g   s u m m a r y : " ,   e r r o r ) ; 
     s u m m a r y C o n t e n t   =   " U n a b l e   t o   g e n e r a t e   s u m m a r y   d u e   t o   a n   e r r o r . " ; 
 } 
 
 / /   M a t c h   g r a n t s   t o   b u s i n e s s e s 
 a w a i t   t p . u s e r . m a t c h _ g r a n t s _ t o _ b u s i n e s s e s ( ) ; 
 
 / /   R e t u r n   r e s u l t s 
 t R   + =   ` #   G r a n t   D i s c o v e r y   R e s u l t s   -   $ { t p . d a t e . n o w ( " Y Y Y Y - M M - D D " ) } \ n \ n ` ; 
 t R   + =   ` D i s c o v e r e d   $ { c r e a t e d G r a n t s }   n e w   g r a n t s   f r o m   v a r i o u s   s o u r c e s . \ n \ n ` ; 
 
 i f   ( d i s c o v e r e d G r a n t s . l e n g t h   >   0 )   { 
     t R   + =   ` # #   N e w l y   D i s c o v e r e d   G r a n t s \ n \ n ` ; 
     f o r   ( c o n s t   g r a n t   o f   d i s c o v e r e d G r a n t s )   { 
         t R   + =   ` -   [ [ $ { g r a n t } ] ] \ n ` ; 
     } 
     t R   + =   ` \ n ` ; 
 } 
 
 t R   + =   ` # #   G r a n t   S u m m a r y \ n \ n ` ; 
 t R   + =   s u m m a r y C o n t e n t ; 
 % > 
 ` ` ` 
 
 # # #   6 . 2   C r e a t e   G r a n t   M a t c h i n g   S c r i p t 
 
 C r e a t e   a   f i l e 
 
 ` ` ` 
 _ t e m p l a t e s / m a t c h _ g r a n t s _ t o _ b u s i n e s s e s . j s 
 ` ` ` 
 
 : 
 
 ` ` ` 
 m o d u l e . e x p o r t s   =   a s y n c   f u n c t i o n ( t p )   { 
     / /   G e t   a l l   b u s i n e s s e s 
     c o n s t   b u s i n e s s e s   =   a p p . v a u l t . g e t M a r k d o w n F i l e s ( ) . f i l t e r ( f i l e   = >   { 
         c o n s t   f m   =   a p p . m e t a d a t a C a c h e . g e t F i l e C a c h e ( f i l e ) . f r o n t m a t t e r ; 
         r e t u r n   f m   & &   f m . t y p e   = = =   " b u s i n e s s " ; 
     } ) ; 
     
     / /   G e t   a l l   g r a n t s 
     c o n s t   g r a n t s   =   a p p . v a u l t . g e t M a r k d o w n F i l e s ( ) . f i l t e r ( f i l e   = >   { 
         c o n s t   f m   =   a p p . m e t a d a t a C a c h e . g e t F i l e C a c h e ( f i l e ) . f r o n t m a t t e r ; 
         r e t u r n   f m   & &   f m . t y p e   = = =   " g r a n t " ; 
     } ) ; 
     
     / /   F u n c t i o n   t o   c a l c u l a t e   m a t c h   s c o r e 
     f u n c t i o n   c a l c u l a t e M a t c h S c o r e ( b u s i n e s s ,   g r a n t )   { 
         c o n s t   b u s i n e s s F m   =   a p p . m e t a d a t a C a c h e . g e t F i l e C a c h e ( b u s i n e s s ) . f r o n t m a t t e r ; 
         c o n s t   g r a n t F m   =   a p p . m e t a d a t a C a c h e . g e t F i l e C a c h e ( g r a n t ) . f r o n t m a t t e r ; 
         
         l e t   s c o r e   =   0 ; 
         
         / /   M a t c h   b y   b u s i n e s s   t y p e 
         i f   ( g r a n t F m . g r a n t _ c a t e g o r i e s   & &   b u s i n e s s F m . b u s i n e s s _ t y p e )   { 
             c o n s t   c a t e g o r i e s   =   g r a n t F m . g r a n t _ c a t e g o r i e s . s p l i t ( " , " ) . m a p ( c   = >   c . t r i m ( ) ) ; 
             
             / /   M a p   b u s i n e s s   t y p e s   t o   r e l e v a n t   c a t e g o r i e s 
             c o n s t   c a t e g o r y M a p   =   { 
                 " T e c h n o l o g y   W e b s i t e " :   [ " S c i e n c e   a n d   T e c h n o l o g y " ,   " I n f o r m a t i o n   a n d   S t a t i s t i c s " ,   " B u s i n e s s   a n d   C o m m e r c e " ] , 
                 " L P F M   R a d i o   S t a t i o n " :   [ " C o m m u n i t y   D e v e l o p m e n t " ,   " M e d i a " ,   " E d u c a t i o n " ] , 
                 " T e n a n t   R i g h t s   A I " :   [ " H o u s i n g " ,   " C o n s u m e r   P r o t e c t i o n " ,   " S c i e n c e   a n d   T e c h n o l o g y " ] , 
                 " S u p e r f o o d   C o m p a n y " :   [ " H e a l t h " ,   " F o o d   a n d   N u t r i t i o n " ] , 
                 " H a i r   R e c y c l i n g " :   [ " H e a l t h " ,   " N a t u r a l   R e s o u r c e s " ] , 
                 " D a t i n g   P l a t f o r m " :   [ " S c i e n c e   a n d   T e c h n o l o g y " ,   " B u s i n e s s   a n d   C o m m e r c e " ] , 
                 " L a n d   F l i p p i n g " :   [ " N a t u r a l   R e s o u r c e s " ,   " B u s i n e s s   a n d   C o m m e r c e " ] , 
                 " P r e p p e r   N e t w o r k " :   [ " C o m m u n i t y   D e v e l o p m e n t " ,   " E d u c a t i o n " ] , 
                 " M u l t i f a m i l y   I n v e s t i n g " :   [ " H o u s i n g " ,   " C o m m u n i t y   D e v e l o p m e n t " ] , 
                 " C o a c h i n g   F i r m " :   [ " E d u c a t i o n " ,   " B u s i n e s s   a n d   C o m m e r c e " ] , 
                 " S t u d e n t   S t o r a g e " :   [ " E d u c a t i o n " ,   " B u s i n e s s   a n d   C o m m e r c e " ] 
             } ; 
             
             c o n s t   r e l e v a n t C a t e g o r i e s   =   c a t e g o r y M a p [ b u s i n e s s F m . b u s i n e s s _ t y p e ]   | |   [ ] ; 
             
             f o r   ( c o n s t   c a t e g o r y   o f   c a t e g o r i e s )   { 
                 i f   ( r e l e v a n t C a t e g o r i e s . i n c l u d e s ( c a t e g o r y ) )   { 
                     s c o r e   + =   2 0 ; 
                 } 
             } 
             
             / /   B u s i n e s s   a n d   C o m m e r c e   i s   a   g e n e r a l   c a t e g o r y   t h a t   m a t c h e s   m o s t   b u s i n e s s e s 
             i f   ( c a t e g o r i e s . i n c l u d e s ( " B u s i n e s s   a n d   C o m m e r c e " ) )   { 
                 s c o r e   + =   1 0 ; 
             } 
         } 
         
         / /   M a t c h   b y   d e m o g r a p h i c s 
         i f   ( g r a n t F m . d e m o g r a p h i c _ r e q u i r e m e n t s   & &   b u s i n e s s F m . o w n e r _ d e m o g r a p h i c s )   { 
             c o n s t   d e m o g r a p h i c s   =   A r r a y . i s A r r a y ( b u s i n e s s F m . o w n e r _ d e m o g r a p h i c s )   ?   
                                                     b u s i n e s s F m . o w n e r _ d e m o g r a p h i c s   :   
                                                     [ b u s i n e s s F m . o w n e r _ d e m o g r a p h i c s ] ; 
             
             c o n s t   r e q u i r e m e n t s   =   g r a n t F m . d e m o g r a p h i c _ r e q u i r e m e n t s . s p l i t ( " , " ) . m a p ( d   = >   d . t r i m ( ) ) ; 
             
             f o r   ( c o n s t   d e m o   o f   d e m o g r a p h i c s )   { 
                 f o r   ( c o n s t   r e q   o f   r e q u i r e m e n t s )   { 
                     i f   ( d e m o . t o L o w e r C a s e ( ) . i n c l u d e s ( r e q . t o L o w e r C a s e ( ) )   | |   r e q . t o L o w e r C a s e ( ) . i n c l u d e s ( d e m o . t o L o w e r C a s e ( ) ) )   { 
                         s c o r e   + =   3 0 ; 
                     } 
                 } 
             } 
         } 
         
         / /   B a s e   s c o r e 
         s c o r e   + =   5 0 ; 
         
         / /   C a p   a t   1 0 0 
         r e t u r n   M a t h . m i n ( s c o r e ,   1 0 0 ) ; 
     } 
     
     / /   P r o c e s s   e a c h   b u s i n e s s 
     l e t   t o t a l M a t c h e s   =   0 ; 
     
     f o r   ( c o n s t   b u s i n e s s   o f   b u s i n e s s e s )   { 
         c o n s t   b u s i n e s s N a m e   =   b u s i n e s s . b a s e n a m e ; 
         l e t   b u s i n e s s M a t c h e s   =   0 ; 
         
         / /   C a l c u l a t e   m a t c h e s   f o r   e a c h   g r a n t 
         f o r   ( c o n s t   g r a n t   o f   g r a n t s )   { 
             c o n s t   g r a n t N a m e   =   g r a n t . b a s e n a m e ; 
             c o n s t   s c o r e   =   c a l c u l a t e M a t c h S c o r e ( b u s i n e s s ,   g r a n t ) ; 
             
             / /   U p d a t e   g r a n t   m a t c h   s c o r e   i f   i t ' s   h i g h   e n o u g h 
             i f   ( s c o r e   > =   7 0 )   { 
                 a w a i t   a p p . f i l e M a n a g e r . p r o c e s s F r o n t M a t t e r ( g r a n t ,   f m   = >   { 
                     f m . m a t c h _ s c o r e   =   s c o r e ; 
                     r e t u r n   f m ; 
                 } ) ; 
                 
                 b u s i n e s s M a t c h e s + + ; 
                 t o t a l M a t c h e s + + ; 
             } 
         } 
         
         n e w   N o t i c e ( ` F o u n d   < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > b < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > u < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > s < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e s s < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 9 0 3 e m ; " > M < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > c < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > h < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e s < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > m a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > c < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > h < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e s < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 7 6 4 e m ; " > f < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > o r < / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { b u s i n e s s N a m e } ` ) ; 
     } 
     
     n e w   N o t i c e ( ` G r a n t   m a t c h i n g   c o m p l e t e .   F o u n d   $ { t o t a l M a t c h e s }   t o t a l   m a t c h e s . ` ) ; 
     r e t u r n   ` G r a n t   m a t c h i n g   c o m p l e t e .   F o u n d   $ { t o t a l M a t c h e s }   t o t a l   m a t c h e s . ` ; 
 } 
 ` ` ` 
 
 # #   7 .   A I - P o w e r e d   C o n t e n t   G e n e r a t i o n 
 
 # # #   7 . 1   C r e a t e   I m p r o v e   W r i t i n g   S c r i p t 
 
 C r e a t e   a   f i l e 
 
 ` ` ` 
 _ t e m p l a t e s / i m p r o v e _ w r i t i n g . j s 
 ` ` ` 
 
 : 
 
 ` ` ` 
 m o d u l e . e x p o r t s   =   a s y n c   f u n c t i o n ( t p )   { 
     / /   G e t   A P I   c o n f i g u r a t i o n 
     c o n s t   c o n f i g F i l e   =   a p p . v a u l t . g e t A b s t r a c t F i l e B y P a t h ( " _ c o n f i g / o p e n r o u t e r _ a p i . m d " ) ; 
     i f   ( ! c o n f i g F i l e )   { 
         n e w   N o t i c e ( " O p e n R o u t e r   A P I   c o n f i g u r a t i o n   n o t   f o u n d ! " ) ; 
         r e t u r n   " E r r o r :   C o n f i g u r a t i o n   n o t   f o u n d " ; 
     } 
     
     c o n s t   c o n f i g C o n t e n t   =   a w a i t   a p p . v a u l t . r e a d ( c o n f i g F i l e ) ; 
     c o n s t   c o n f i g F r o n t m a t t e r   =   a p p . m e t a d a t a C a c h e . g e t F i l e C a c h e ( c o n f i g F i l e ) . f r o n t m a t t e r ; 
     
     / /   G e t   c u r r e n t   f i l e 
     c o n s t   c u r r e n t F i l e   =   t p . f i l e . f i n d _ t f i l e ( t p . f i l e . p a t h ( t r u e ) ) ; 
     c o n s t   c u r r e n t C o n t e n t   =   a w a i t   a p p . v a u l t . r e a d ( c u r r e n t F i l e ) ; 
     
     / /   G e t   s e l e c t e d   t e x t   o r   e x t r a c t   c o n t e n t   s e c t i o n 
     l e t   s e l e c t e d T e x t   =   w i n d o w . g e t S e l e c t i o n ( ) . t o S t r i n g ( ) ; 
     
     i f   ( ! s e l e c t e d T e x t )   { 
         / /   T r y   t o   e x t r a c t   c o n t e n t   s e c t i o n 
         c o n s t   c o n t e n t M a t c h   =   c u r r e n t C o n t e n t . m a t c h ( / # #   C o n t e n t \ n ( [ \ s \ S ] * ? ) ( ? = \ n # # | $ ) / ) ; 
         i f   ( c o n t e n t M a t c h   & &   c o n t e n t M a t c h [ 1 ] )   { 
             s e l e c t e d T e x t   =   c o n t e n t M a t c h [ 1 ] . t r i m ( ) ; 
         }   e l s e   { 
             n e w   N o t i c e ( " N o   t e x t   s e l e c t e d   a n d   c o u l d n ' t   f i n d   c o n t e n t   s e c t i o n ! " ) ; 
             r e t u r n   " E r r o r :   N o   t e x t   s e l e c t e d " ; 
         } 
     } 
     
     / /   P r e p a r e   p r o m p t 
     c o n s t   p r o m p t   =   ` P l e a s e   i m p r o v e   t h e   f o l l o w i n g   g r a n t   a p p l i c a t i o n   t e x t   t o   m a k e   i t   m o r e   c o m p e l l i n g ,   c l e a r ,   a n d   p e r s u a s i v e .   M a i n t a i n   t h e   s a m e   k e y   p o i n t s   b u t   e n h a n c e   t h e   w r i t i n g   q u a l i t y : 
 
 $ { s e l e c t e d T e x t } ` ; 
     
     / /   S h o w   l o a d i n g   n o t i c e 
     n e w   N o t i c e ( " I m p r o v i n g   w r i t i n g   w i t h   O p e n R o u t e r . . . " ) ; 
     
     t r y   { 
         / /   M a k e   A P I   r e q u e s t   u s i n g   A P I R e q u e s t   p l u g i n 
         c o n s t   r e s p o n s e   =   a w a i t   a p i R e q u e s t ( { 
             u r l :   ' h t t p s : / / o p e n r o u t e r . a i / a p i / v 1 / c h a t / c o m p l e t i o n s ' , 
             m e t h o d :   ' P O S T ' , 
             h e a d e r s :   { 
                 ' A u t h o r i z a t i o n ' :   ` B e a r e r   $ { c o n f i g F r o n t m a t t e r . a p i _ k e y } ` , 
                 ' 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 ' , 
                 ' H T T P - R e f e r e r ' :   ' h t t p s : / / o b s i d i a n . m d ' , 
                 ' X - T i t l e ' :   ' G r a n t   M a n a g e m e n t   S y s t e m ' 
             } , 
             b o d y :   { 
                 ' m o d e l ' :   c o n f i g F r o n t m a t t e r . m o d e l s . g e n e r a l , 
                 ' m e s s a g e s ' :   [ 
                     { 
                         ' r o l e ' :   ' s y s t e m ' , 
                         ' c o n t e n t ' :   ' Y o u   a r e   a n   e x p e r t   g r a n t   w r i t e r   w i t h   e x c e l l e n t   w r i t i n g   s k i l l s .   Y o u r   t a s k   i s   t o   i m p r o v e   t h e   c l a r i t y ,   p e r s u a s i v e n e s s ,   a n d   o v e r a l l   q u a l i t y   o f   g r a n t   a p p l i c a t i o n   t e x t   w h i l e   m a i n t a i n i n g   t h e   s a m e   k e y   p o i n t s   a n d   i n f o r m a t i o n . ' 
                     } , 
                     { 
                         ' r o l e ' :   ' u s e r ' , 
                         ' c o n t e n t ' :   p r o m p t 
                     } 
                 ] , 
                 ' t e m p e r a t u r e ' :   0 . 7 , 
                 ' m a x _ t o k e n s ' :   1 0 0 0 
             } 
         } ) ; 
         
         / /   C h e c k   f o r   e r r o r s 
         i f   ( r e s p o n s e . e r r o r )   { 
             n e w   N o t i c e ( ` O p e n R o u t e r   A P I   E r r o r :   $ { r e s p o n s e . e r r o r . m e s s a g e } ` ) ; 
             r e t u r n   " E r r o r   i m p r o v i n g   w r i t i n g .   P l e a s e   t r y   a g a i n   l a t e r . " ; 
         } 
         
         / /   G e t   i m p r o v e d   c o n t e n t 
         c o n s t   i m p r o v e d C o n t e n t   =   r e s p o n s e . c h o i c e s [ 0 ] . m e s s a g e . c o n t e n t ; 
         
         / /   C r e a t e   a   n e w   n o t e   w i t h   t h e   i m p r o v e d   c o n t e n t 
         c o n s t   i m p r o v e d N o t e P a t h   =   ` i m p r o v e d / $ { t p . f i l e . t i t l e }   -   I m p r o v e d . m d ` ; 
         
         / /   C r e a t e   i m p r o v e d   f o l d e r   i f   i t   d o e s n ' t   e x i s t 
         i f   ( ! a p p . v a u l t . g e t A b s t r a c t F i l e B y P a t h ( " i m p r o v e d " ) )   { 
             a w a i t   a p p . v a u l t . c r e a t e F o l d e r ( " i m p r o v e d " ) ; 
         } 
         
         / /   C r e a t e   i m p r o v e d   n o t e 
         a w a i t   a p p . v a u l t . c r e a t e ( i m p r o v e d N o t e P a t h ,   ` #   I m p r o v e d   V e r s i o n   o f   $ { t p . f i l e . t i t l e } 
 
 # #   O r i g i n a l   C o n t e n t 
 $ { s e l e c t e d T e x t } 
 
 # #   I m p r o v e d   C o n t e n t 
 $ { i m p r o v e d C o n t e n t } 
 
 # #   A c t i o n s 
 \ ` \ ` \ ` b u t t o n 
 n a m e   U s e   I m p r o v e d   V e r s i o n 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   U s e   I m p r o v e d   C o n t e n t 
 \ ` \ ` \ ` 
 ` ) ; 
         
         / /   O p e n   t h e   i m p r o v e d   n o t e 
         c o n s t   i m p r o v e d F i l e   =   a p p . v a u l t . g e t A b s t r a c t F i l e B y P a t h ( i m p r o v e d N o t e P a t h ) ; 
         a w a i t   a p p . w o r k s p a c e . g e t L e a f ( ) . o p e n F i l e ( i m p r o v e d F i l e ) ; 
         
         n e w   N o t i c e ( " W r i t i n g   i m p r o v e d   s u c c e s s f u l l y ! " ) ; 
         r e t u r n   " W r i t i n g   i m p r o v e d   s u c c e s s f u l l y ! " ; 
     }   c a t c h   ( e r r o r )   { 
         c o n s o l e . e r r o r ( " E r r o r   i m p r o v i n g   w r i t i n g : " ,   e r r o r ) ; 
         n e w   N o t i c e ( ` E r r o r :   $ { e r r o r . m e s s a g e } ` ) ; 
         r e t u r n   " E r r o r   i m p r o v i n g   w r i t i n g .   P l e a s e   t r y   a g a i n   l a t e r . " ; 
     } 
 } 
 ` ` ` 
 
 # # #   7 . 2   C r e a t e   U s e   I m p r o v e d   C o n t e n t   S c r i p t 
 
 C r e a t e   a   f i l e 
 
 ` ` ` 
 _ t e m p l a t e s / u s e _ i m p r o v e d _ c o n t e n t . j s 
 ` ` ` 
 
 : 
 
 ` ` ` 
 m o d u l e . e x p o r t s   =   a s y n c   f u n c t i o n ( t p )   { 
     / /   G e t   c u r r e n t   f i l e 
     c o n s t   c u r r e n t F i l e   =   t p . f i l e . f i n d _ t f i l e ( t p . f i l e . p a t h ( t r u e ) ) ; 
     c o n s t   c u r r e n t C o n t e n t   =   a w a i t   a p p . v a u l t . r e a d ( c u r r e n t F i l e ) ; 
     
     / /   E x t r a c t   i m p r o v e d   c o n t e n t 
     c o n s t   i m p r o v e d M a t c h   =   c u r r e n t C o n t e n t . m a t c h ( / # #   I m p r o v e d   C o n t e n t \ n ( [ \ s \ S ] * ? ) ( ? = \ n # # | $ ) / ) ; 
     i f   ( ! i m p r o v e d M a t c h   | |   ! i m p r o v e d M a t c h [ 1 ] )   { 
         n e w   N o t i c e ( " C o u l d n ' t   f i n d   i m p r o v e d   c o n t e n t   s e c t i o n ! " ) ; 
         r e t u r n   " E r r o r :   N o   i m p r o v e d   c o n t e n t   f o u n d " ; 
     } 
     
     c o n s t   i m p r o v e d C o n t e n t   =   i m p r o v e d M a t c h [ 1 ] . t r i m ( ) ; 
     
     / /   G e t   o r i g i n a l   f i l e   p a t h 
     c o n s t   t i t l e M a t c h   =   c u r r e n t C o n t e n t . m a t c h ( / #   I m p r o v e d   V e r s i o n   o f   ( . * ) / ) ; 
     i f   ( ! t i t l e M a t c h   | |   ! t i t l e M a t c h [ 1 ] )   { 
         n e w   N o t i c e ( " C o u l d n ' t   d e t e r m i n e   o r i g i n a l   f i l e ! " ) ; 
         r e t u r n   " E r r o r :   O r i g i n a l   f i l e   n o t   f o u n d " ; 
     } 
     
     c o n s t   o r i g i n a l T i t l e   =   t i t l e M a t c h [ 1 ] . t r i m ( ) ; 
     
     / /   F i n d   o r i g i n a l   f i l e 
     c o n s t   o r i g i n a l F i l e s   =   a p p . v a u l t . g e t M a r k d o w n F i l e s ( ) . f i l t e r ( f i l e   = >   f i l e . b a s e n a m e   = = =   o r i g i n a l T i t l e ) ; 
     
     i f   ( o r i g i n a l F i l e s . l e n g t h   = = =   0 )   { 
         n e w   N o t i c e ( " O r i g i n a l   f i l e   n o t   f o u n d ! " ) ; 
         r e t u r n   " E r r o r :   O r i g i n a l   f i l e   n o t   f o u n d " ; 
     } 
     
     c o n s t   o r i g i n a l F i l e   =   o r i g i n a l F i l e s [ 0 ] ; 
     c o n s t   o r i g i n a l C o n t e n t   =   a w a i t   a p p . v a u l t . r e a d ( o r i g i n a l F i l e ) ; 
     
     / /   U p d a t e   o r i g i n a l   f i l e 
     i f   ( o r i g i n a l F i l e . p a t h . s t a r t s W i t h ( " s e c t i o n s / " ) )   { 
         / /   F o r   s e c t i o n   f i l e s ,   u p d a t e   t h e   c o n t e n t   s e c t i o n 
         a w a i t   a p p . v a u l t . m o d i f y ( o r i g i n a l F i l e ,   o r i g i n a l C o n t e n t . r e p l a c e ( / # #   C o n t e n t \ n [ \ s \ S ] * ? ( ? = \ n # #   A c t i o n s | < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x - e r r o r "   t i t l e = " P a r s e E r r o r :   K a T e X   p a r s e   e r r o r :   E x p e c t e d   & # x 2 7 ; E O F & # x 2 7 ; ,   g o t   & # x 2 7 ; # & # x 2 7 ;   a t   p o s i t i o n   6 :   ) / ,   ` # 2#   C o n t e n t \ n "   s t y l e = " c o l o r : # c c 0 0 0 0 " > ) / ,   ` # #   C o n t e n t \ n < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { i m p r o v e d C o n t e n t } \ n \ n ` ) ) ; 
     }   e l s e   { 
         / /   F o r   o t h e r   f i l e s ,   j u s t   a p p e n d   t h e   i m p r o v e d   c o n t e n t 
         a w a i t   a p p . v a u l t . m o d i f y ( o r i g i n a l F i l e ,   o r i g i n a l C o n t e n t   +   " \ n \ n # #   I m p r o v e d   C o n t e n t   ( A d d e d   "   +   t p . d a t e . n o w ( " Y Y Y Y - M M - D D " )   +   " ) \ n "   +   i m p r o v e d C o n t e n t ) ; 
     } 
     
     / /   O p e n   t h e   o r i g i n a l   f i l e 
     a w a i t   a p p . w o r k s p a c e . g e t L e a f ( ) . o p e n F i l e ( o r i g i n a l F i l e ) ; 
     
     n e w   N o t i c e ( " I m p r o v e d   c o n t e n t   a p p l i e d   t o   o r i g i n a l   f i l e ! " ) ; 
     r e t u r n   " I m p r o v e d   c o n t e n t   a p p l i e d " ; 
 } 
 ` ` ` 
 
 # #   8 .   B u s i n e s s   a n d   G r a n t   M a t c h i n g 
 
 # # #   8 . 1   C r e a t e   G r a n t   M a t c h i n g   Q u e r y 
 
 C r e a t e   a   f i l e 
 
 ` ` ` 
 _ q u e r i e s / g r a n t _ m a t c h e s . m d 
 ` ` ` 
 
 : 
 
 ` ` ` ` 
 #   G r a n t   M a t c h e s   f o r   B u s i n e s s e s 
 
 ` ` ` d a t a v i e w j s 
 / /   G e t   a l l   b u s i n e s s e s 
 c o n s t   b u s i n e s s e s   =   d v . p a g e s ( " # b u s i n e s s " ) ; 
 
 / /   G e t   a l l   g r a n t s 
 c o n s t   g r a n t s   =   d v . p a g e s ( " # g r a n t " ) ; 
 
 / /   F u n c t i o n   t o   c a l c u l a t e   m a t c h   s c o r e 
 f u n c t i o n   c a l c u l a t e M a t c h S c o r e ( b u s i n e s s ,   g r a n t )   { 
     l e t   s c o r e   =   0 ; 
     
     / /   M a t c h   b y   b u s i n e s s   t y p e 
     i f   ( g r a n t . g r a n t _ c a t e g o r i e s   & &   b u s i n e s s . b u s i n e s s _ t y p e )   { 
         c o n s t   c a t e g o r i e s   =   t y p e o f   g r a n t . g r a n t _ c a t e g o r i e s   = = =   ' s t r i n g '   ?   
                                             g r a n t . g r a n t _ c a t e g o r i e s . s p l i t ( " , " ) . m a p ( c   = >   c . t r i m ( ) )   :   
                                             [ g r a n t . g r a n t _ c a t e g o r i e s ] ; 
         
         / /   M a p   b u s i n e s s   t y p e s   t o   r e l e v a n t   c a t e g o r i e s 
         c o n s t   c a t e g o r y M a p   =   { 
             " T e c h n o l o g y   W e b s i t e " :   [ " S c i e n c e   a n d   T e c h n o l o g y " ,   " I n f o r m a t i o n   a n d   S t a t i s t i c s " ,   " B u s i n e s s   a n d   C o m m e r c e " ] , 
             " L P F M   R a d i o   S t a t i o n " :   [ " C o m m u n i t y   D e v e l o p m e n t " ,   " M e d i a " ,   " E d u c a t i o n " ] , 
             " T e n a n t   R i g h t s   A I " :   [ " H o u s i n g " ,   " C o n s u m e r   P r o t e c t i o n " ,   " S c i e n c e   a n d   T e c h n o l o g y " ] , 
             " S u p e r f o o d   C o m p a n y " :   [ " H e a l t h " ,   " F o o d   a n d   N u t r i t i o n " ] , 
             " H a i r   R e c y c l i n g " :   [ " H e a l t h " ,   " N a t u r a l   R e s o u r c e s " ] , 
             " D a t i n g   P l a t f o r m " :   [ " S c i e n c e   a n d   T e c h n o l o g y " ,   " B u s i n e s s   a n d   C o m m e r c e " ] , 
             " L a n d   F l i p p i n g " :   [ " N a t u r a l   R e s o u r c e s " ,   " B u s i n e s s   a n d   C o m m e r c e " ] , 
             " P r e p p e r   N e t w o r k " :   [ " C o m m u n i t y   D e v e l o p m e n t " ,   " E d u c a t i o n " ] , 
             " M u l t i f a m i l y   I n v e s t i n g " :   [ " H o u s i n g " ,   " C o m m u n i t y   D e v e l o p m e n t " ] , 
             " C o a c h i n g   F i r m " :   [ " E d u c a t i o n " ,   " B u s i n e s s   a n d   C o m m e r c e " ] , 
             " S t u d e n t   S t o r a g e " :   [ " E d u c a t i o n " ,   " B u s i n e s s   a n d   C o m m e r c e " ] 
         } ; 
         
         c o n s t   r e l e v a n t C a t e g o r i e s   =   c a t e g o r y M a p [ b u s i n e s s . b u s i n e s s _ t y p e ]   | |   [ ] ; 
         
         f o r   ( c o n s t   c a t e g o r y   o f   c a t e g o r i e s )   { 
             i f   ( r e l e v a n t C a t e g o r i e s . i n c l u d e s ( c a t e g o r y ) )   { 
                 s c o r e   + =   2 0 ; 
             } 
         } 
         
         / /   B u s i n e s s   a n d   C o m m e r c e   i s   a   g e n e r a l   c a t e g o r y   t h a t   m a t c h e s   m o s t   b u s i n e s s e s 
         i f   ( c a t e g o r i e s . i n c l u d e s ( " B u s i n e s s   a n d   C o m m e r c e " ) )   { 
             s c o r e   + =   1 0 ; 
         } 
     } 
     
     / /   M a t c h   b y   d e m o g r a p h i c s 
     i f   ( g r a n t . d e m o g r a p h i c _ r e q u i r e m e n t s   & &   b u s i n e s s . o w n e r _ d e m o g r a p h i c s )   { 
         c o n s t   d e m o g r a p h i c s   =   A r r a y . i s A r r a y ( b u s i n e s s . o w n e r _ d e m o g r a p h i c s )   ?   
                                                 b u s i n e s s . o w n e r _ d e m o g r a p h i c s   :   
                                                 [ b u s i n e s s . o w n e r _ d e m o g r a p h i c s ] ; 
         
         c o n s t   r e q u i r e m e n t s   =   t y p e o f   g r a n t . d e m o g r a p h i c _ r e q u i r e m e n t s   = = =   ' s t r i n g '   ? 
                                                 g r a n t . d e m o g r a p h i c _ r e q u i r e m e n t s . s p l i t ( " , " ) . m a p ( d   = >   d . t r i m ( ) )   : 
                                                 A r r a y . i s A r r a y ( g r a n t . d e m o g r a p h i c _ r e q u i r e m e n t s )   ? 
                                                 g r a n t . d e m o g r a p h i c _ r e q u i r e m e n t s   : 
                                                 [ ] ; 
         
         f o r   ( c o n s t   d e m o   o f   d e m o g r a p h i c s )   { 
             f o r   ( c o n s t   r e q   o f   r e q u i r e m e n t s )   { 
                 i f   ( d e m o . t o L o w e r C a s e ( ) . i n c l u d e s ( r e q . t o L o w e r C a s e ( ) )   | |   r e q . t o L o w e r C a s e ( ) . i n c l u d e s ( d e m o . t o L o w e r C a s e ( ) ) )   { 
                     s c o r e   + =   3 0 ; 
                 } 
             } 
         } 
     } 
     
     / /   B a s e   s c o r e 
     s c o r e   + =   5 0 ; 
     
     / /   C a p   a t   1 0 0 
     r e t u r n   M a t h . m i n ( s c o r e ,   1 0 0 ) ; 
 } 
 
 / /   G e n e r a t e   m a t c h e s 
 l e t   m a t c h e s H t m l   =   " " ; 
 
 f o r   ( c o n s t   b u s i n e s s   o f   b u s i n e s s e s )   { 
     m a t c h e s H t m l   + =   ` < h 2 > $ { b u s i n e s s . n a m e } < / h 2 > ` ; 
     m a t c h e s H t m l   + =   ` < t a b l e > ` ; 
     m a t c h e s H t m l   + =   ` < t r > < t h > G r a n t < / t h > < t h > I s s u e r < / t h > < t h > A m o u n t < / t h > < t h > D e a d l i n e < / t h > < t h > M a t c h   S c o r e < / t h > < / t r > ` ; 
     
     / /   C a l c u l a t e   m a t c h e s   f o r   t h i s   b u s i n e s s 
     c o n s t   m a t c h e s   =   [ ] ; 
     
     f o r   ( c o n s t   g r a n t   o f   g r a n t s )   { 
         c o n s t   s c o r e   =   c a l c u l a t e M a t c h S c o r e ( b u s i n e s s ,   g r a n t ) ; 
         i f   ( s c o r e   > =   5 0 )   { 
             m a t c h e s . p u s h ( { 
                 g r a n t :   g r a n t , 
                 s c o r e :   s c o r e 
             } ) ; 
         } 
     } 
     
     / /   S o r t   b y   s c o r e 
     m a t c h e s . s o r t ( ( a ,   b )   = >   b . s c o r e   -   a . s c o r e ) ; 
     
     / /   D i s p l a y   t o p   5   m a t c h e s 
     f o r   ( c o n s t   m a t c h   o f   m a t c h e s . s l i c e ( 0 ,   5 ) )   { 
         c o n s t   g r a n t   =   m a t c h . g r a n t ; 
         m a t c h e s H t m l   + =   ` < t r > ` ; 
         m a t c h e s H t m l   + =   ` < t d > < a   h r e f = " < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 3 5 8 8 e m ; " > g < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > r < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 7 6 4 e m ; " > f < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > p < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > h < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d " > & q u o t ; < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 7 7 8 e m ; " > < / s p a n > < s p a n   c l a s s = " m r e l " > & g t ; < / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { g r a n t . g r a n t _ n a m e } < / a > < / t d > ` ; 
         m a t c h e s H t m l   + =   ` < t d > $ { g r a n t . i s s u e r } < / t d > ` ; 
         m a t c h e s H t m l   + =   ` < t d > < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x - e r r o r "   t i t l e = " P a r s e E r r o r :   K a T e X   p a r s e   e r r o r :   E x p e c t e d   & # x 2 7 ; } & # x 2 7 ; ,   g o t   & # x 2 7 ; E O F & # x 2 7 ;   a t   e n d   o f   i n p u t :   & r a n t . a m o u n t   ?   & q u o t ; "   s t y l e = " c o l o r : # c c 0 0 0 0 " > { g r a n t . a m o u n t   ?   & q u o t ; < / s p a n > 
                     < / s p a n > 
                 < / s p a n > "   +   g r a n t . a m o u n t . t o L o c a l e S t r i n g ( )   :   " N o t   s p e c i f i e d " } < / t d > ` ; 
         m a t c h e s H t m l   + =   ` < t d > $ { g r a n t . a p p l i c a t i o n _ d e a d l i n e   ?   g r a n t . a p p l i c a t i o n _ d e a d l i n e   :   " N o t   s p e c i f i e d " } < / t d > ` ; 
         m a t c h e s H t m l   + =   ` < t d > $ { m a t c h . s c o r e } < / t d > ` ; 
         m a t c h e s H t m l   + =   ` < / t r > ` ; 
     } 
     
     m a t c h e s H t m l   + =   ` < / t a b l e > ` ; 
 } 
 
 d v . p a r a g r a p h ( m a t c h e s H t m l ) ; 
 ` ` ` ` 
 
 # # #   8 . 2   C r e a t e   U p c o m i n g   D e a d l i n e s   Q u e r y 
 
 C r e a t e   a   f i l e 
 
 ` ` ` 
 _ q u e r i e s / u p c o m i n g _ d e a d l i n e s . m d 
 ` ` ` 
 
 : 
 
 ` ` ` ` 
 #   U p c o m i n g   G r a n t   D e a d l i n e s 
 
 ` ` ` d a t a v i e w j s 
 / /   G e t   c u r r e n t   d a t e 
 c o n s t   t o d a y   =   n e w   D a t e ( ) ; 
 
 / /   G e t   a l l   g r a n t s   w i t h   d e a d l i n e s 
 c o n s t   g r a n t s   =   d v . p a g e s ( " # g r a n t " ) 
     . w h e r e ( g   = >   g . a p p l i c a t i o n _ d e a d l i n e ) 
     . s o r t ( g   = >   g . a p p l i c a t i o n _ d e a d l i n e ) ; 
 
 / /   F u n c t i o n   t o   c a l c u l a t e   d a y s   l e f t 
 f u n c t i o n   d a y s L e f t ( d e a d l i n e )   { 
     c o n s t   d e a d l i n e D a t e   =   n e w   D a t e ( d e a d l i n e ) ; 
     r e t u r n   M a t h . c e i l ( ( d e a d l i n e D a t e   -   t o d a y )   /   ( 1 0 0 0   *   6 0   *   6 0   *   2 4 ) ) ; 
 } 
 
 / /   G r o u p   g r a n t s   b y   d e a d l i n e   u r g e n c y 
 c o n s t   c r i t i c a l   =   g r a n t s . f i l t e r ( g   = >   d a y s L e f t ( g . a p p l i c a t i o n _ d e a d l i n e )   < =   3   & &   d a y s L e f t ( g . a p p l i c a t i o n _ d e a d l i n e )   > =   0 ) ; 
 c o n s t   w a r n i n g   =   g r a n t s . f i l t e r ( g   = >   d a y s L e f t ( g . a p p l i c a t i o n _ d e a d l i n e )   >   3   & &   d a y s L e f t ( g . a p p l i c a t i o n _ d e a d l i n e )   < =   1 4 ) ; 
 c o n s t   u p c o m i n g   =   g r a n t s . f i l t e r ( g   = >   d a y s L e f t ( g . a p p l i c a t i o n _ d e a d l i n e )   >   1 4   & &   d a y s L e f t ( g . a p p l i c a t i o n _ d e a d l i n e )   < =   3 0 ) ; 
 c o n s t   f u t u r e   =   g r a n t s . f i l t e r ( g   = >   d a y s L e f t ( g . a p p l i c a t i o n _ d e a d l i n e )   >   3 0 ) ; 
 c o n s t   p a s t   =   g r a n t s . f i l t e r ( g   = >   d a y s L e f t ( g . a p p l i c a t i o n _ d e a d l i n e )   <   0 ) ; 
 
 / /   G e n e r a t e   H T M L 
 l e t   h t m l   =   " " ; 
 
 / /   C r i t i c a l   d e a d l i n e s 
 i f   ( c r i t i c a l . l e n g t h   >   0 )   { 
     h t m l   + =   ` < h 2   s t y l e = " c o l o r :   r e d ; " > C r i t i c a l   D e a d l i n e s   ( 0 - 3   d a y s ) < / h 2 > ` ; 
     h t m l   + =   ` < t a b l e > ` ; 
     h t m l   + =   ` < t r > < t h > G r a n t < / t h > < t h > I s s u e r < / t h > < t h > A m o u n t < / t h > < t h > D e a d l i n e < / t h > < t h > D a y s   L e f t < / t h > < t h > A p p l i c a t i o n s < / t h > < / t r > ` ; 
     
     f o r   ( c o n s t   g r a n t   o f   c r i t i c a l )   { 
         c o n s t   d a y s   =   d a y s L e f t ( g r a n t . a p p l i c a t i o n _ d e a d l i n e ) ; 
         c o n s t   a p p l i c a t i o n s   =   d v . p a g e s ( " # a p p l i c a t i o n " ) . w h e r e ( a   = >   a . g r a n t   & &   a . g r a n t . p a t h   = = =   g r a n t . f i l e . p a t h ) . l e n g t h ; 
         
         h t m l   + =   ` < t r > ` ; 
         h t m l   + =   ` < t d > < a   h r e f = " < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 3 5 8 8 e m ; " > g < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > r < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 7 6 4 e m ; " > f < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > p < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > h < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d " > & q u o t ; < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 7 7 8 e m ; " > < / s p a n > < s p a n   c l a s s = " m r e l " > & g t ; < / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { g r a n t . g r a n t _ n a m e } < / a > < / t d > ` ; 
         h t m l   + =   ` < t d > $ { g r a n t . i s s u e r } < / t d > ` ; 
         h t m l   + =   ` < t d > < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x - e r r o r "   t i t l e = " P a r s e E r r o r :   K a T e X   p a r s e   e r r o r :   E x p e c t e d   & # x 2 7 ; } & # x 2 7 ; ,   g o t   & # x 2 7 ; E O F & # x 2 7 ;   a t   e n d   o f   i n p u t :   & r a n t . a m o u n t   ?   & q u o t ; "   s t y l e = " c o l o r : # c c 0 0 0 0 " > { g r a n t . a m o u n t   ?   & q u o t ; < / s p a n > 
                     < / s p a n > 
                 < / s p a n > "   +   g r a n t . a m o u n t . t o L o c a l e S t r i n g ( )   :   " N o t   s p e c i f i e d " } < / t d > ` ; 
         h t m l   + =   ` < t d > $ { g r a n t . a p p l i c a t i o n _ d e a d l i n e } < / t d > ` ; 
         h t m l   + =   ` < t d   s t y l e = " c o l o r :   r e d ;   f o n t - w e i g h t :   b o l d ; " > $ { d a y s } < / t d > ` ; 
         h t m l   + =   ` < t d > $ { a p p l i c a t i o n s } < / t d > ` ; 
         h t m l   + =   ` < / t r > ` ; 
     } 
     
     h t m l   + =   ` < / t a b l e > ` ; 
 } 
 
 / /   W a r n i n g   d e a d l i n e s 
 i f   ( w a r n i n g . l e n g t h   >   0 )   { 
     h t m l   + =   ` < h 2   s t y l e = " c o l o r :   o r a n g e ; " > A p p r o a c h i n g   D e a d l i n e s   ( 4 - 1 4   d a y s ) < / h 2 > ` ; 
     h t m l   + =   ` < t a b l e > ` ; 
     h t m l   + =   ` < t r > < t h > G r a n t < / t h > < t h > I s s u e r < / t h > < t h > A m o u n t < / t h > < t h > D e a d l i n e < / t h > < t h > D a y s   L e f t < / t h > < t h > A p p l i c a t i o n s < / t h > < / t r > ` ; 
     
     f o r   ( c o n s t   g r a n t   o f   w a r n i n g )   { 
         c o n s t   d a y s   =   d a y s L e f t ( g r a n t . a p p l i c a t i o n _ d e a d l i n e ) ; 
         c o n s t   a p p l i c a t i o n s   =   d v . p a g e s ( " # a p p l i c a t i o n " ) . w h e r e ( a   = >   a . g r a n t   & &   a . g r a n t . p a t h   = = =   g r a n t . f i l e . p a t h ) . l e n g t h ; 
         
         h t m l   + =   ` < t r > ` ; 
         h t m l   + =   ` < t d > < a   h r e f = " < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 3 5 8 8 e m ; " > g < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > r < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 7 6 4 e m ; " > f < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > p < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > h < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d " > & q u o t ; < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 7 7 8 e m ; " > < / s p a n > < s p a n   c l a s s = " m r e l " > & g t ; < / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { g r a n t . g r a n t _ n a m e } < / a > < / t d > ` ; 
         h t m l   + =   ` < t d > $ { g r a n t . i s s u e r } < / t d > ` ; 
         h t m l   + =   ` < t d > < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x - e r r o r "   t i t l e = " P a r s e E r r o r :   K a T e X   p a r s e   e r r o r :   E x p e c t e d   & # x 2 7 ; } & # x 2 7 ; ,   g o t   & # x 2 7 ; E O F & # x 2 7 ;   a t   e n d   o f   i n p u t :   & r a n t . a m o u n t   ?   & q u o t ; "   s t y l e = " c o l o r : # c c 0 0 0 0 " > { g r a n t . a m o u n t   ?   & q u o t ; < / s p a n > 
                     < / s p a n > 
                 < / s p a n > "   +   g r a n t . a m o u n t . t o L o c a l e S t r i n g ( )   :   " N o t   s p e c i f i e d " } < / t d > ` ; 
         h t m l   + =   ` < t d > $ { g r a n t . a p p l i c a t i o n _ d e a d l i n e } < / t d > ` ; 
         h t m l   + =   ` < t d   s t y l e = " c o l o r :   o r a n g e ;   f o n t - w e i g h t :   b o l d ; " > $ { d a y s } < / t d > ` ; 
         h t m l   + =   ` < t d > $ { a p p l i c a t i o n s } < / t d > ` ; 
         h t m l   + =   ` < / t r > ` ; 
     } 
     
     h t m l   + =   ` < / t a b l e > ` ; 
 } 
 
 / /   U p c o m i n g   d e a d l i n e s 
 i f   ( u p c o m i n g . l e n g t h   >   0 )   { 
     h t m l   + =   ` < h 2 > U p c o m i n g   D e a d l i n e s   ( 1 5 - 3 0   d a y s ) < / h 2 > ` ; 
     h t m l   + =   ` < t a b l e > ` ; 
     h t m l   + =   ` < t r > < t h > G r a n t < / t h > < t h > I s s u e r < / t h > < t h > A m o u n t < / t h > < t h > D e a d l i n e < / t h > < t h > D a y s   L e f t < / t h > < t h > A p p l i c a t i o n s < / t h > < / t r > ` ; 
     
     f o r   ( c o n s t   g r a n t   o f   u p c o m i n g )   { 
         c o n s t   d a y s   =   d a y s L e f t ( g r a n t . a p p l i c a t i o n _ d e a d l i n e ) ; 
         c o n s t   a p p l i c a t i o n s   =   d v . p a g e s ( " # a p p l i c a t i o n " ) . w h e r e ( a   = >   a . g r a n t   & &   a . g r a n t . p a t h   = = =   g r a n t . f i l e . p a t h ) . l e n g t h ; 
         
         h t m l   + =   ` < t r > ` ; 
         h t m l   + =   ` < t d > < a   h r e f = " < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 3 5 8 8 e m ; " > g < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > r < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 7 6 4 e m ; " > f < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > p < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > h < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d " > & q u o t ; < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 7 7 8 e m ; " > < / s p a n > < s p a n   c l a s s = " m r e l " > & g t ; < / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { g r a n t . g r a n t _ n a m e } < / a > < / t d > ` ; 
         h t m l   + =   ` < t d > $ { g r a n t . i s s u e r } < / t d > ` ; 
         h t m l   + =   ` < t d > < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x - e r r o r "   t i t l e = " P a r s e E r r o r :   K a T e X   p a r s e   e r r o r :   E x p e c t e d   & # x 2 7 ; } & # x 2 7 ; ,   g o t   & # x 2 7 ; E O F & # x 2 7 ;   a t   e n d   o f   i n p u t :   & r a n t . a m o u n t   ?   & q u o t ; "   s t y l e = " c o l o r : # c c 0 0 0 0 " > { g r a n t . a m o u n t   ?   & q u o t ; < / s p a n > 
                     < / s p a n > 
                 < / s p a n > "   +   g r a n t . a m o u n t . t o L o c a l e S t r i n g ( )   :   " N o t   s p e c i f i e d " } < / t d > ` ; 
         h t m l   + =   ` < t d > $ { g r a n t . a p p l i c a t i o n _ d e a d l i n e } < / t d > ` ; 
         h t m l   + =   ` < t d > $ { d a y s } < / t d > ` ; 
         h t m l   + =   ` < t d > $ { a p p l i c a t i o n s } < / t d > ` ; 
         h t m l   + =   ` < / t r > ` ; 
     } 
     
     h t m l   + =   ` < / t a b l e > ` ; 
 } 
 
 / /   D i s p l a y   H T M L 
 d v . p a r a g r a p h ( h t m l ) ; 
 ` ` ` ` 
 
 # #   9 .   A p p l i c a t i o n   M a n a g e m e n t 
 
 # # #   9 . 1   C r e a t e   A p p l i c a t i o n s   K a n b a n   B o a r d 
 
 C r e a t e   a   f i l e 
 
 ` ` ` 
 k a n b a n / a p p l i c a t i o n s _ b o a r d . m d 
 ` ` ` 
 
 : 
 
 ` ` ` 
 - - - 
 k a n b a n - p l u g i n :   b a s i c 
 - - - 
 
 #   A p p l i c a t i o n s   B o a r d 
 
 # #   R e s e a r c h i n g 
 
 % %   k a n b a n : s e t t i n g s 
 ` ` ` 
 
 { " k a n b a n - p l u g i n " : " b a s i c " , " h i d e - t a g s - i n - t i t l e " : t r u e , " h i d e - t a g s - d i s p l a y " : t r u e , " l a n e - w i d t h " : 3 0 0 , " s h o w - c h e c k b o x e s " : f a l s e , " t a g - c o l o r s " : [ { " t a g K e y " : " # a p p l i c a t i o n " , " c o l o r " : " " , " b a c k g r o u n d C o l o r " : " r g b a ( 0 ,   0 ,   0 ,   0 . 1 ) " } ] , " d a t e - c o l o r s " : [ { " i s T o d a y " : f a l s e , " d i s t a n c e " : 7 , " d i r e c t i o n " : " a f t e r " , " c o l o r " : " r g b a ( 2 5 5 ,   0 ,   0 ,   1 ) " } , { " i s T o d a y " : f a l s e , " d i s t a n c e " : 1 4 , " d i r e c t i o n " : " a f t e r " , " c o l o r " : " r g b a ( 2 5 5 ,   1 5 0 ,   0 ,   1 ) " } ] , " h i d e - d a t e - i n - t i t l e " : t r u e , " h i d e - d a t e - d i s p l a y " : t r u e , " d a t e - t r i g g e r " : " a p p l i c a t i o n _ d e a d l i n e " , " d a t e - f o r m a t " : " Y Y Y Y - M M - D D " , " m e t a d a t a - k e y s " : [ { " m e t a d a t a K e y " : " b u s i n e s s " , " l a b e l " : " B u s i n e s s " , " s h o u l d H i d e L a b e l " : f a l s e , " c o n t a i n s M a r k d o w n " : t r u e } , { " m e t a d a t a K e y " : " g r a n t " , " l a b e l " : " G r a n t " , " s h o u l d H i d e L a b e l " : f a l s e , " c o n t a i n s M a r k d o w n " : t r u e } , { " m e t a d a t a K e y " : " c o m p l e t i o n _ p e r c e n t a g e " , " l a b e l " : " C o m p l e t i o n " , " s h o u l d H i d e L a b e l " : f a l s e , " c o n t a i n s M a r k d o w n " : f a l s e } , { " m e t a d a t a K e y " : " a p p l i c a t i o n _ d e a d l i n e " , " l a b e l " : " D e a d l i n e " , " s h o u l d H i d e L a b e l " : f a l s e , " c o n t a i n s M a r k d o w n " : f a l s e } ] , " l a n e - s o r t - m e t h o d " : " c u s t o m " , " l a n e - s o r t - d i r e c t i o n " : " a s c e n d i n g " , " c a r d - s o r t - m e t h o d " : " c u s t o m " , " c a r d - s o r t - d i r e c t i o n " : " a s c e n d i n g " , " p r e p e n d - a r c h i v e - f o r m a t " : " { { d a t e } } " , " p r e p e n d - a r c h i v e - s e p a r a t o r " : "   " , " p r e p e n d - a r c h i v e - d a t e - f o r m a t " : " Y Y Y Y - M M - D D " , " a r c h i v e - d a t e - s e p a r a t o r " : "   " , " a r c h i v e - d a t e - f o r m a t " : " Y Y Y Y - M M - D D " , " h i d e - c a r d - c o u n t " : f a l s e , " h i d e - t a g s - i n - t i t l e " : f a l s e , " h i d e - t a g s - d i s p l a y " : f a l s e , " s h o w - c h e c k b o x e s " : f a l s e , " l i n k - d a t e - t o - d a i l y - n o t e " : f a l s e , " d a t e - d i s p l a y - f o r m a t " : " Y Y Y Y - M M - D D " , " d a t e - t r i g g e r " : " d e a d l i n e " , " d a t e - f o r m a t " : " Y Y Y Y - M M - D D " , " h i d e - d a t e - i n - t i t l e " : f a l s e , " h i d e - d a t e - d i s p l a y " : f a l s e , " l a n e - w i d t h " : 3 0 0 , " t a g - c o l o r s " : [ { " t a g K e y " : " # a p p l i c a t i o n " , " c o l o r " : " " , " b a c k g r o u n d C o l o r " : " r g b a ( 0 ,   0 ,   0 ,   0 . 1 ) " } ] , " d a t e - c o l o r s " : [ { " i s T o d a y " : f a l s e , " d i s t a n c e " : 7 , " d i r e c t i o n " : " a f t e r " , " c o l o r " : " r g b a ( 2 5 5 ,   0 ,   0 ,   1 ) " } , { " i s T o d a y " : f a l s e , " d i s t a n c e " : 1 4 , " d i r e c t i o n " : " a f t e r " , " c o l o r " : " r g b a ( 2 5 5 ,   1 5 0 ,   0 ,   1 ) " } ] , " m e t a d a t a - k e y s " : [ { " m e t a d a t a K e y " : " b u s i n e s s " , " l a b e l " : " B u s i n e s s " , " s h o u l d H i d e L a b e l " : f a l s e , " c o n t a i n s M a r k d o w n " : t r u e } , { " m e t a d a t a K e y " : " g r a n t " , " l a b e l " : " G r a n t " , " s h o u l d H i d e L a b e l " : f a l s e , " c o n t a i n s M a r k d o w n " : t r u e } , { " m e t a d a t a K e y " : " c o m p l e t i o n _ p e r c e n t a g e " , " l a b e l " : " C o m p l e t i o n " , " s h o u l d H i d e L a b e l " : f a l s e , " c o n t a i n s M a r k d o w n " : f a l s e } , { " m e t a d a t a K e y " : " a p p l i c a t i o n _ d e a d l i n e " , " l a b e l " : " D e a d l i n e " , " s h o u l d H i d e L a b e l " : f a l s e , " c o n t a i n s M a r k d o w n " : f a l s e } ] , " l a n e s " : [ " R e s e a r c h i n g " , " D r a f t i n g " , " I n t e r n a l   R e v i e w " , " R e a d y " , " S u b m i t t e d " , " W o n " , " D e c l i n e d " ] } 
 
 ` ` ` 
 % % 
 
 # #   D r a f t i n g 
 
 # #   I n t e r n a l   R e v i e w 
 
 # #   R e a d y 
 
 # #   S u b m i t t e d 
 
 # #   W o n 
 
 # #   D e c l i n e d 
 ` ` ` 
 
 # # #   9 . 2   C r e a t e   M a r k   A p p l i c a t i o n   a s   R e a d y   S c r i p t 
 
 C r e a t e   a   f i l e 
 
 ` ` ` 
 _ t e m p l a t e s / m a r k _ a p p l i c a t i o n _ r e a d y . j s 
 ` ` ` 
 
 : 
 
 ` ` ` 
 m o d u l e . e x p o r t s   =   a s y n c   f u n c t i o n ( t p )   { 
     / /   G e t   c u r r e n t   a p p l i c a t i o n 
     c o n s t   c u r r e n t F i l e   =   t p . f i l e . f i n d _ t f i l e ( t p . f i l e . p a t h ( t r u e ) ) ; 
     c o n s t   c u r r e n t F r o n t m a t t e r   =   a p p . m e t a d a t a C a c h e . g e t F i l e C a c h e ( c u r r e n t F i l e ) . f r o n t m a t t e r ; 
     
     i f   ( ! c u r r e n t F r o n t m a t t e r   | |   c u r r e n t F r o n t m a t t e r . t y p e   ! = =   " a p p l i c a t i o n " )   { 
         n e w   N o t i c e ( " T h i s   i s   n o t   a   v a l i d   a p p l i c a t i o n   f i l e ! " ) ; 
         r e t u r n   " E r r o r :   N o t   a   v a l i d   a p p l i c a t i o n   f i l e " ; 
     } 
     
     / /   C h e c k   c o m p l e t i o n   p e r c e n t a g e 
     c o n s t   c o m p l e t i o n P e r c e n t a g e   =   c u r r e n t F r o n t m a t t e r . c o m p l e t i o n _ p e r c e n t a g e   | |   0 ; 
     
     i f   ( c o m p l e t i o n P e r c e n t a g e   <   1 0 0 )   { 
         c o n s t   p r o c e e d   =   a w a i t   t p . s y s t e m . s u g g e s t e r ( 
             [ " Y e s ,   m a r k   a s   r e a d y   a n y w a y " ,   " N o ,   I ' l l   c o m p l e t e   a l l   s e c t i o n s   f i r s t " ] , 
             [ " y e s " ,   " n o " ] , 
             f a l s e , 
             " A p p l i c a t i o n   i s   n o t   1 0 0 %   c o m p l e t e .   P r o c e e d   a n y w a y ? " 
         ) ; 
         
         i f   ( p r o c e e d   = = =   " n o " )   { 
             n e w   N o t i c e ( " O p e r a t i o n   c a n c e l l e d " ) ; 
             r e t u r n   " O p e r a t i o n   c a n c e l l e d " ; 
         } 
     } 
     
     / /   U p d a t e   f r o n t m a t t e r 
     a w a i t   a p p . f i l e M a n a g e r . p r o c e s s F r o n t M a t t e r ( c u r r e n t F i l e ,   f m   = >   { 
         f m . s t a t u s   =   " r e a d y " ; 
         f m . l a s t _ m o d i f i e d   =   t p . d a t e . n o w ( " Y Y Y Y - M M - D D " ) ; 
         r e t u r n   f m ; 
     } ) ; 
     
     n e w   N o t i c e ( " A p p l i c a t i o n   m a r k e d   a s   r e a d y   f o r   s u b m i s s i o n ! " ) ; 
     r e t u r n   " A p p l i c a t i o n   m a r k e d   a s   r e a d y " ; 
 } 
 ` ` ` 
 
 # #   1 0 .   D a s h b o a r d   a n d   R e p o r t i n g 
 
 # # #   1 0 . 1   C r e a t e   M a i n   D a s h b o a r d 
 
 C r e a t e   a   f i l e 
 
 ` ` ` 
 d a s h b o a r d s / m a i n _ d a s h b o a r d . m d 
 ` ` ` 
 
 : 
 
 ` ` ` ` 
 #   G r a n t   M a n a g e m e n t   D a s h b o a r d 
 
 # #   U p c o m i n g   D e a d l i n e s 
 ` ` ` d a t a v i e w 
 T A B L E   g r a n t _ n a m e   a s   " G r a n t " ,   i s s u e r   a s   " I s s u e r " ,   a p p l i c a t i o n _ d e a d l i n e   a s   " D e a d l i n e " ,   ( d a t e ( a p p l i c a t i o n _ d e a d l i n e )   -   d a t e ( t o d a y ) ) . d a y   a s   " D a y s   L e f t " 
 F R O M   # g r a n t 
 W H E R E   a p p l i c a t i o n _ d e a d l i n e   ! =   n u l l   A N D   a p p l i c a t i o n _ d e a d l i n e   > =   d a t e ( t o d a y )   A N D   a p p l i c a t i o n _ d e a d l i n e   < =   d a t e ( t o d a y )   +   d u r ( 1 4   d a y s ) 
 S O R T   a p p l i c a t i o n _ d e a d l i n e   A S C 
 ` ` ` ` 
 
 # #   M y   A p p l i c a t i o n s 
 
 ` ` ` 
 T A B L E   b u s i n e s s . n a m e   a s   " B u s i n e s s " ,   g r a n t . g r a n t _ n a m e   a s   " G r a n t " ,   s t a t u s   a s   " S t a t u s " ,   c o m p l e t i o n _ p e r c e n t a g e   a s   " C o m p l e t i o n " 
 F R O M   # a p p l i c a t i o n 
 W H E R E   a s s i g n e d _ t o   =   " Y o u " 
 S O R T   c o m p l e t i o n _ p e r c e n t a g e   D E S C 
 ` ` ` 
 
 # #   R e c e n t   G r a n t s 
 
 ` ` ` 
 T A B L E   g r a n t _ n a m e   a s   " G r a n t " ,   i s s u e r   a s   " I s s u e r " ,   a m o u n t   a s   " A m o u n t " ,   a p p l i c a t i o n _ d e a d l i n e   a s   " D e a d l i n e " 
 F R O M   # g r a n t 
 S O R T   f i l e . c t i m e   D E S C 
 L I M I T   5 
 ` ` ` 
 
 # #   S t a t i s t i c s 
 
 ` ` ` 
 / /   C o u n t   b u s i n e s s e s 
 c o n s t   b u s i n e s s e s   =   d v . p a g e s ( " # b u s i n e s s " ) . l e n g t h ; 
 
 / /   C o u n t   g r a n t s 
 c o n s t   g r a n t s   =   d v . p a g e s ( " # g r a n t " ) . l e n g t h ; 
 
 / /   C o u n t   a p p l i c a t i o n s 
 c o n s t   a p p l i c a t i o n s   =   d v . p a g e s ( " # a p p l i c a t i o n " ) . l e n g t h ; 
 
 / /   C o u n t   w o n   a p p l i c a t i o n s 
 c o n s t   w o n A p p l i c a t i o n s   =   d v . p a g e s ( " # a p p l i c a t i o n " ) . w h e r e ( p   = >   p . s t a t u s   = = =   " w o n " ) . l e n g t h ; 
 
 / /   C a l c u l a t e   s u c c e s s   r a t e 
 c o n s t   s u b m i t t e d A p p l i c a t i o n s   =   d v . p a g e s ( " # a p p l i c a t i o n " ) . w h e r e ( p   = >   [ " s u b m i t t e d " ,   " w o n " ,   " d e c l i n e d " ] . i n c l u d e s ( p . s t a t u s ) ) . l e n g t h ; 
 c o n s t   s u c c e s s R a t e   =   s u b m i t t e d A p p l i c a t i o n s   >   0   ?   M a t h . r o u n d ( ( w o n A p p l i c a t i o n s   /   s u b m i t t e d A p p l i c a t i o n s )   *   1 0 0 )   :   0 ; 
 
 / /   C r e a t e   H T M L   t a b l e 
 c o n s t   h t m l   =   ` 
 < d i v   s t y l e = " d i s p l a y : f l e x ; f l e x - w r a p : w r a p ; g a p : 1 0 p x ; " > 
     < d i v   s t y l e = " b a c k g r o u n d - c o l o r : # 4 2 8 7 f 5 ; c o l o r : w h i t e ; p a d d i n g : 1 5 p x ; b o r d e r - r a d i u s : 5 p x ; w i d t h : 2 0 0 p x ; " > 
         < h 3   s t y l e = " m a r g i n : 0 ; " > $ { b u s i n e s s e s } < / h 3 > 
         < p   s t y l e = " m a r g i n : 0 ; " > B u s i n e s s e s < / p > 
     < / d i v > 
     < d i v   s t y l e = " b a c k g r o u n d - c o l o r : # f 5 a 7 4 2 ; c o l o r : w h i t e ; p a d d i n g : 1 5 p x ; b o r d e r - r a d i u s : 5 p x ; w i d t h : 2 0 0 p x ; " > 
         < h 3   s t y l e = " m a r g i n : 0 ; " > $ { g r a n t s } < / h 3 > 
         < p   s t y l e = " m a r g i n : 0 ; " > G r a n t s < / p > 
     < / d i v > 
     < d i v   s t y l e = " b a c k g r o u n d - c o l o r : # 4 2 f 5 8 4 ; c o l o r : w h i t e ; p a d d i n g : 1 5 p x ; b o r d e r - r a d i u s : 5 p x ; w i d t h : 2 0 0 p x ; " > 
         < h 3   s t y l e = " m a r g i n : 0 ; " > $ { a p p l i c a t i o n s } < / h 3 > 
         < p   s t y l e = " m a r g i n : 0 ; " > A p p l i c a t i o n s < / p > 
     < / d i v > 
     < d i v   s t y l e = " b a c k g r o u n d - c o l o r : # f 5 4 2 4 2 ; c o l o r : w h i t e ; p a d d i n g : 1 5 p x ; b o r d e r - r a d i u s : 5 p x ; w i d t h : 2 0 0 p x ; " > 
         < h 3   s t y l e = " m a r g i n : 0 ; " > $ { s u c c e s s R a t e } % < / h 3 > 
         < p   s t y l e = " m a r g i n : 0 ; " > S u c c e s s   R a t e < / p > 
     < / d i v > 
 < / d i v > 
 ` ; 
 
 d v . p a r a g r a p h ( h t m l ) ; 
 ` ` ` 
 
 # #   Q u i c k   A c t i o n s 
 
 ` ` ` 
 n a m e   N e w   B u s i n e s s 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   C r e a t e   B u s i n e s s 
 ` ` ` 
 
 ` ` ` 
 n a m e   N e w   G r a n t 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   C r e a t e   G r a n t 
 ` ` ` 
 
 ` ` ` 
 n a m e   A p p l i c a t i o n s   B o a r d 
 t y p e   l i n k 
 a c t i o n   o b s i d i a n : / / o p e n ? v a u l t = G r a n t % 2 0 M a n a g e m e n t & f i l e = k a n b a n % 2 F a p p l i c a t i o n s _ b o a r d 
 ` ` ` 
 
 ` ` ` 
 n a m e   D i s c o v e r   G r a n t s 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   D i s c o v e r   G r a n t s 
 ` ` ` 
 
 ` ` ` ` 
 
 # # #   1 0 . 2   C r e a t e   B u s i n e s s   D a s h b o a r d 
 
 C r e a t e   a   f i l e   ` d a s h b o a r d s / b u s i n e s s _ d a s h b o a r d . m d ` : 
 
 ` ` ` m a r k d o w n 
 #   B u s i n e s s   D a s h b o a r d 
 
 # #   A l l   B u s i n e s s e s 
 ` ` ` d a t a v i e w 
 T A B L E   b u s i n e s s _ t y p e   a s   " T y p e " ,   o w n e r _ d e m o g r a p h i c s   a s   " D e m o g r a p h i c s " ,   a n n u a l _ r e v e n u e   a s   " R e v e n u e " 
 F R O M   # b u s i n e s s 
 S O R T   f i l e . c t i m e   D E S C 
 ` ` ` ` 
 
 # #   A p p l i c a t i o n s   b y   B u s i n e s s 
 
 ` ` ` 
 / /   G e t   a l l   b u s i n e s s e s 
 c o n s t   b u s i n e s s e s   =   d v . p a g e s ( " # b u s i n e s s " ) ; 
 
 / /   G e t   a l l   a p p l i c a t i o n s 
 c o n s t   a p p l i c a t i o n s   =   d v . p a g e s ( " # a p p l i c a t i o n " ) ; 
 
 / /   G e n e r a t e   H T M L 
 l e t   h t m l   =   " " ; 
 
 f o r   ( c o n s t   b u s i n e s s   o f   b u s i n e s s e s )   { 
     c o n s t   b u s i n e s s A p p s   =   a p p l i c a t i o n s . f i l t e r ( a   = >   a . b u s i n e s s   & &   a . b u s i n e s s . p a t h   = = =   b u s i n e s s . f i l e . p a t h ) ; 
     
     i f   ( b u s i n e s s A p p s . l e n g t h   >   0 )   { 
         h t m l   + =   ` < h 3 > $ { b u s i n e s s . n a m e } < / h 3 > ` ; 
         h t m l   + =   ` < t a b l e > ` ; 
         h t m l   + =   ` < t r > < t h > G r a n t < / t h > < t h > S t a t u s < / t h > < t h > C o m p l e t i o n < / t h > < t h > D e a d l i n e < / t h > < / t r > ` ; 
         
         f o r   ( c o n s t   a p p   o f   b u s i n e s s A p p s )   { 
             c o n s t   g r a n t   =   d v . p a g e ( a p p . g r a n t . p a t h ) ; 
             c o n s t   d e a d l i n e   =   g r a n t . a p p l i c a t i o n _ d e a d l i n e   ?   g r a n t . a p p l i c a t i o n _ d e a d l i n e   :   " N o t   s p e c i f i e d " ; 
             
             h t m l   + =   ` < t r > ` ; 
             h t m l   + =   ` < t d > < a   h r e f = " < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > p p < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 7 6 4 e m ; " > f < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > p < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > h < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d " > & q u o t ; < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 7 7 8 e m ; " > < / s p a n > < s p a n   c l a s s = " m r e l " > & g t ; < / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { g r a n t . g r a n t _ n a m e } < / a > < / t d > ` ; 
             h t m l   + =   ` < t d > $ { a p p . s t a t u s } < / t d > ` ; 
             h t m l   + =   ` < t d > $ { a p p . c o m p l e t i o n _ p e r c e n t a g e } % < / t d > ` ; 
             h t m l   + =   ` < t d > $ { d e a d l i n e } < / t d > ` ; 
             h t m l   + =   ` < / t r > ` ; 
         } 
         
         h t m l   + =   ` < / t a b l e > ` ; 
     } 
 } 
 
 d v . p a r a g r a p h ( h t m l ) ; 
 ` ` ` 
 
 # #   B u s i n e s s   S u c c e s s   M e t r i c s 
 
 ` ` ` 
 / /   G e t   a l l   b u s i n e s s e s 
 c o n s t   b u s i n e s s e s   =   d v . p a g e s ( " # b u s i n e s s " ) ; 
 
 / /   G e t   a l l   a p p l i c a t i o n s 
 c o n s t   a p p l i c a t i o n s   =   d v . p a g e s ( " # a p p l i c a t i o n " ) ; 
 
 / /   G e n e r a t e   H T M L 
 l e t   h t m l   =   ` < t a b l e > ` ; 
 h t m l   + =   ` < t r > < t h > B u s i n e s s < / t h > < t h > A p p l i c a t i o n s < / t h > < t h > S u b m i t t e d < / t h > < t h > W o n < / t h > < t h > S u c c e s s   R a t e < / t h > < t h > T o t a l   F u n d i n g < / t h > < / t r > ` ; 
 
 f o r   ( c o n s t   b u s i n e s s   o f   b u s i n e s s e s )   { 
     c o n s t   b u s i n e s s A p p s   =   a p p l i c a t i o n s . f i l t e r ( a   = >   a . b u s i n e s s   & &   a . b u s i n e s s . p a t h   = = =   b u s i n e s s . f i l e . p a t h ) ; 
     c o n s t   s u b m i t t e d   =   b u s i n e s s A p p s . f i l t e r ( a   = >   [ " s u b m i t t e d " ,   " w o n " ,   " d e c l i n e d " ] . i n c l u d e s ( a . s t a t u s ) ) . l e n g t h ; 
     c o n s t   w o n   =   b u s i n e s s A p p s . f i l t e r ( a   = >   a . s t a t u s   = = =   " w o n " ) . l e n g t h ; 
     c o n s t   s u c c e s s R a t e   =   s u b m i t t e d   >   0   ?   M a t h . r o u n d ( ( w o n   /   s u b m i t t e d )   *   1 0 0 )   :   0 ; 
     
     / /   C a l c u l a t e   t o t a l   f u n d i n g 
     l e t   t o t a l F u n d i n g   =   0 ; 
     f o r   ( c o n s t   a p p   o f   b u s i n e s s A p p s . f i l t e r ( a   = >   a . s t a t u s   = = =   " w o n " ) )   { 
         c o n s t   g r a n t   =   d v . p a g e ( a p p . g r a n t . p a t h ) ; 
         i f   ( g r a n t . a m o u n t )   { 
             t o t a l F u n d i n g   + =   g r a n t . a m o u n t ; 
         } 
     } 
     
     h t m l   + =   ` < t r > ` ; 
     h t m l   + =   ` < t d > < a   h r e f = " < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > b < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > u < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > s < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e s s < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 7 6 4 e m ; " > f < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > p < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > h < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d " > & q u o t ; < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 7 7 8 e m ; " > < / s p a n > < s p a n   c l a s s = " m r e l " > & g t ; < / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { b u s i n e s s . n a m e } < / a > < / t d > ` ; 
     h t m l   + =   ` < t d > $ { b u s i n e s s A p p s . l e n g t h } < / t d > ` ; 
     h t m l   + =   ` < t d > $ { s u b m i t t e d } < / t d > ` ; 
     h t m l   + =   ` < t d > $ { w o n } < / t d > ` ; 
     h t m l   + =   ` < t d > $ { s u c c e s s R a t e } % < / t d > ` ; 
     h t m l   + =   ` < t d > < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { t o t a l F u n d i n g . t o L o c a l e S t r i n g ( ) } < / t d > ` ; 
     h t m l   + =   ` < / t r > ` ; 
 } 
 
 h t m l   + =   ` < / t a b l e > ` ; 
 
 d v . p a r a g r a p h ( h t m l ) ; 
 ` ` ` 
 
 # #   A c t i o n s 
 
 ` ` ` 
 n a m e   N e w   B u s i n e s s 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   C r e a t e   B u s i n e s s 
 ` ` ` 
 
 ` ` ` 
 n a m e   M a t c h   G r a n t s   t o   B u s i n e s s e s 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   M a t c h   G r a n t s   t o   B u s i n e s s e s 
 ` ` ` 
 
 ` ` ` ` 
 
 # # #   1 0 . 3   C r e a t e   G r a n t   D a s h b o a r d 
 
 C r e a t e   a   f i l e   ` d a s h b o a r d s / g r a n t _ d a s h b o a r d . m d ` : 
 
 ` ` ` m a r k d o w n 
 #   G r a n t   D a s h b o a r d 
 
 # #   G r a n t s   b y   D e a d l i n e 
 ` ` ` d a t a v i e w j s 
 / /   G e t   c u r r e n t   d a t e 
 c o n s t   t o d a y   =   n e w   D a t e ( ) ; 
 
 / /   G e t   a l l   g r a n t s   w i t h   d e a d l i n e s 
 c o n s t   g r a n t s   =   d v . p a g e s ( " # g r a n t " ) 
     . w h e r e ( g   = >   g . a p p l i c a t i o n _ d e a d l i n e ) 
     . s o r t ( g   = >   g . a p p l i c a t i o n _ d e a d l i n e ) ; 
 
 / /   F u n c t i o n   t o   c a l c u l a t e   d a y s   l e f t 
 f u n c t i o n   d a y s L e f t ( d e a d l i n e )   { 
     c o n s t   d e a d l i n e D a t e   =   n e w   D a t e ( d e a d l i n e ) ; 
     r e t u r n   M a t h . c e i l ( ( d e a d l i n e D a t e   -   t o d a y )   /   ( 1 0 0 0   *   6 0   *   6 0   *   2 4 ) ) ; 
 } 
 
 / /   G r o u p   g r a n t s   b y   d e a d l i n e   u r g e n c y 
 c o n s t   c r i t i c a l   =   g r a n t s . f i l t e r ( g   = >   d a y s L e f t ( g . a p p l i c a t i o n _ d e a d l i n e )   < =   3   & &   d a y s L e f t ( g . a p p l i c a t i o n _ d e a d l i n e )   > =   0 ) ; 
 c o n s t   w a r n i n g   =   g r a n t s . f i l t e r ( g   = >   d a y s L e f t ( g . a p p l i c a t i o n _ d e a d l i n e )   >   3   & &   d a y s L e f t ( g . a p p l i c a t i o n _ d e a d l i n e )   < =   1 4 ) ; 
 c o n s t   u p c o m i n g   =   g r a n t s . f i l t e r ( g   = >   d a y s L e f t ( g . a p p l i c a t i o n _ d e a d l i n e )   >   1 4   & &   d a y s L e f t ( g . a p p l i c a t i o n _ d e a d l i n e )   < =   3 0 ) ; 
 c o n s t   f u t u r e   =   g r a n t s . f i l t e r ( g   = >   d a y s L e f t ( g . a p p l i c a t i o n _ d e a d l i n e )   >   3 0 ) ; 
 c o n s t   p a s t   =   g r a n t s . f i l t e r ( g   = >   d a y s L e f t ( g . a p p l i c a t i o n _ d e a d l i n e )   <   0 ) ; 
 
 / /   G e n e r a t e   H T M L 
 l e t   h t m l   =   " " ; 
 
 / /   C r i t i c a l   d e a d l i n e s 
 i f   ( c r i t i c a l . l e n g t h   >   0 )   { 
     h t m l   + =   ` < h 2   s t y l e = " c o l o r :   r e d ; " > C r i t i c a l   D e a d l i n e s   ( 0 - 3   d a y s ) < / h 2 > ` ; 
     h t m l   + =   ` < t a b l e > ` ; 
     h t m l   + =   ` < t r > < t h > G r a n t < / t h > < t h > I s s u e r < / t h > < t h > A m o u n t < / t h > < t h > D e a d l i n e < / t h > < t h > D a y s   L e f t < / t h > < t h > A p p l i c a t i o n s < / t h > < / t r > ` ; 
     
     f o r   ( c o n s t   g r a n t   o f   c r i t i c a l )   { 
         c o n s t   d a y s   =   d a y s L e f t ( g r a n t . a p p l i c a t i o n _ d e a d l i n e ) ; 
         c o n s t   a p p l i c a t i o n s   =   d v . p a g e s ( " # a p p l i c a t i o n " ) . w h e r e ( a   = >   a . g r a n t   & &   a . g r a n t . p a t h   = = =   g r a n t . f i l e . p a t h ) . l e n g t h ; 
         
         h t m l   + =   ` < t r > ` ; 
         h t m l   + =   ` < t d > < a   h r e f = " < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 3 5 8 8 e m ; " > g < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > r < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 7 6 4 e m ; " > f < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > p < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > h < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d " > & q u o t ; < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 7 7 8 e m ; " > < / s p a n > < s p a n   c l a s s = " m r e l " > & g t ; < / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { g r a n t . g r a n t _ n a m e } < / a > < / t d > ` ; 
         h t m l   + =   ` < t d > $ { g r a n t . i s s u e r } < / t d > ` ; 
         h t m l   + =   ` < t d > < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x - e r r o r "   t i t l e = " P a r s e E r r o r :   K a T e X   p a r s e   e r r o r :   E x p e c t e d   & # x 2 7 ; } & # x 2 7 ; ,   g o t   & # x 2 7 ; E O F & # x 2 7 ;   a t   e n d   o f   i n p u t :   & r a n t . a m o u n t   ?   & q u o t ; "   s t y l e = " c o l o r : # c c 0 0 0 0 " > { g r a n t . a m o u n t   ?   & q u o t ; < / s p a n > 
                     < / s p a n > 
                 < / s p a n > "   +   g r a n t . a m o u n t . t o L o c a l e S t r i n g ( )   :   " N o t   s p e c i f i e d " } < / t d > ` ; 
         h t m l   + =   ` < t d > $ { g r a n t . a p p l i c a t i o n _ d e a d l i n e } < / t d > ` ; 
         h t m l   + =   ` < t d   s t y l e = " c o l o r :   r e d ;   f o n t - w e i g h t :   b o l d ; " > $ { d a y s } < / t d > ` ; 
         h t m l   + =   ` < t d > $ { a p p l i c a t i o n s } < / t d > ` ; 
         h t m l   + =   ` < / t r > ` ; 
     } 
     
     h t m l   + =   ` < / t a b l e > ` ; 
 } 
 
 / /   W a r n i n g   d e a d l i n e s 
 i f   ( w a r n i n g . l e n g t h   >   0 )   { 
     h t m l   + =   ` < h 2   s t y l e = " c o l o r :   o r a n g e ; " > A p p r o a c h i n g   D e a d l i n e s   ( 4 - 1 4   d a y s ) < / h 2 > ` ; 
     h t m l   + =   ` < t a b l e > ` ; 
     h t m l   + =   ` < t r > < t h > G r a n t < / t h > < t h > I s s u e r < / t h > < t h > A m o u n t < / t h > < t h > D e a d l i n e < / t h > < t h > D a y s   L e f t < / t h > < t h > A p p l i c a t i o n s < / t h > < / t r > ` ; 
     
     f o r   ( c o n s t   g r a n t   o f   w a r n i n g )   { 
         c o n s t   d a y s   =   d a y s L e f t ( g r a n t . a p p l i c a t i o n _ d e a d l i n e ) ; 
         c o n s t   a p p l i c a t i o n s   =   d v . p a g e s ( " # a p p l i c a t i o n " ) . w h e r e ( a   = >   a . g r a n t   & &   a . g r a n t . p a t h   = = =   g r a n t . f i l e . p a t h ) . l e n g t h ; 
         
         h t m l   + =   ` < t r > ` ; 
         h t m l   + =   ` < t d > < a   h r e f = " < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 3 5 8 8 e m ; " > g < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > r < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 7 6 4 e m ; " > f < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > p < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > h < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d " > & q u o t ; < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 7 7 8 e m ; " > < / s p a n > < s p a n   c l a s s = " m r e l " > & g t ; < / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { g r a n t . g r a n t _ n a m e } < / a > < / t d > ` ; 
         h t m l   + =   ` < t d > $ { g r a n t . i s s u e r } < / t d > ` ; 
         h t m l   + =   ` < t d > < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x - e r r o r "   t i t l e = " P a r s e E r r o r :   K a T e X   p a r s e   e r r o r :   E x p e c t e d   & # x 2 7 ; } & # x 2 7 ; ,   g o t   & # x 2 7 ; E O F & # x 2 7 ;   a t   e n d   o f   i n p u t :   & r a n t . a m o u n t   ?   & q u o t ; "   s t y l e = " c o l o r : # c c 0 0 0 0 " > { g r a n t . a m o u n t   ?   & q u o t ; < / s p a n > 
                     < / s p a n > 
                 < / s p a n > "   +   g r a n t . a m o u n t . t o L o c a l e S t r i n g ( )   :   " N o t   s p e c i f i e d " } < / t d > ` ; 
         h t m l   + =   ` < t d > $ { g r a n t . a p p l i c a t i o n _ d e a d l i n e } < / t d > ` ; 
         h t m l   + =   ` < t d   s t y l e = " c o l o r :   o r a n g e ;   f o n t - w e i g h t :   b o l d ; " > $ { d a y s } < / t d > ` ; 
         h t m l   + =   ` < t d > $ { a p p l i c a t i o n s } < / t d > ` ; 
         h t m l   + =   ` < / t r > ` ; 
     } 
     
     h t m l   + =   ` < / t a b l e > ` ; 
 } 
 
 / /   U p c o m i n g   d e a d l i n e s 
 i f   ( u p c o m i n g . l e n g t h   >   0 )   { 
     h t m l   + =   ` < h 2 > U p c o m i n g   D e a d l i n e s   ( 1 5 - 3 0   d a y s ) < / h 2 > ` ; 
     h t m l   + =   ` < t a b l e > ` ; 
     h t m l   + =   ` < t r > < t h > G r a n t < / t h > < t h > I s s u e r < / t h > < t h > A m o u n t < / t h > < t h > D e a d l i n e < / t h > < t h > D a y s   L e f t < / t h > < t h > A p p l i c a t i o n s < / t h > < / t r > ` ; 
     
     f o r   ( c o n s t   g r a n t   o f   u p c o m i n g )   { 
         c o n s t   d a y s   =   d a y s L e f t ( g r a n t . a p p l i c a t i o n _ d e a d l i n e ) ; 
         c o n s t   a p p l i c a t i o n s   =   d v . p a g e s ( " # a p p l i c a t i o n " ) . w h e r e ( a   = >   a . g r a n t   & &   a . g r a n t . p a t h   = = =   g r a n t . f i l e . p a t h ) . l e n g t h ; 
         
         h t m l   + =   ` < t r > ` ; 
         h t m l   + =   ` < t d > < a   h r e f = " < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 3 5 8 8 e m ; " > g < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > r < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 7 6 4 e m ; " > f < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > p < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > h < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d " > & q u o t ; < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 7 7 8 e m ; " > < / s p a n > < s p a n   c l a s s = " m r e l " > & g t ; < / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { g r a n t . g r a n t _ n a m e } < / a > < / t d > ` ; 
         h t m l   + =   ` < t d > $ { g r a n t . i s s u e r } < / t d > ` ; 
         h t m l   + =   ` < t d > < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x - e r r o r "   t i t l e = " P a r s e E r r o r :   K a T e X   p a r s e   e r r o r :   E x p e c t e d   & # x 2 7 ; } & # x 2 7 ; ,   g o t   & # x 2 7 ; E O F & # x 2 7 ;   a t   e n d   o f   i n p u t :   & r a n t . a m o u n t   ?   & q u o t ; "   s t y l e = " c o l o r : # c c 0 0 0 0 " > { g r a n t . a m o u n t   ?   & q u o t ; < / s p a n > 
                     < / s p a n > 
                 < / s p a n > "   +   g r a n t . a m o u n t . t o L o c a l e S t r i n g ( )   :   " N o t   s p e c i f i e d " } < / t d > ` ; 
         h t m l   + =   ` < t d > $ { g r a n t . a p p l i c a t i o n _ d e a d l i n e } < / t d > ` ; 
         h t m l   + =   ` < t d > $ { d a y s } < / t d > ` ; 
         h t m l   + =   ` < t d > $ { a p p l i c a t i o n s } < / t d > ` ; 
         h t m l   + =   ` < / t r > ` ; 
     } 
     
     h t m l   + =   ` < / t a b l e > ` ; 
 } 
 
 / /   D i s p l a y   H T M L 
 d v . p a r a g r a p h ( h t m l ) ; 
 ` ` ` ` 
 
 # #   G r a n t s   b y   C a t e g o r y 
 
 ` ` ` 
 / /   G e t   a l l   g r a n t s 
 c o n s t   g r a n t s   =   d v . p a g e s ( " # g r a n t " ) ; 
 
 / /   E x t r a c t   c a t e g o r i e s 
 c o n s t   c a t e g o r y M a p   =   { } ; 
 
 f o r   ( c o n s t   g r a n t   o f   g r a n t s )   { 
     i f   ( g r a n t . g r a n t _ c a t e g o r i e s )   { 
         c o n s t   c a t e g o r i e s   =   t y p e o f   g r a n t . g r a n t _ c a t e g o r i e s   = = =   ' s t r i n g '   ?   
                                             g r a n t . g r a n t _ c a t e g o r i e s . s p l i t ( " , " ) . m a p ( c   = >   c . t r i m ( ) )   :   
                                             [ g r a n t . g r a n t _ c a t e g o r i e s ] ; 
         
         f o r   ( c o n s t   c a t e g o r y   o f   c a t e g o r i e s )   { 
             i f   ( ! c a t e g o r y M a p [ c a t e g o r y ] )   { 
                 c a t e g o r y M a p [ c a t e g o r y ]   =   [ ] ; 
             } 
             
             c a t e g o r y M a p [ c a t e g o r y ] . p u s h ( g r a n t ) ; 
         } 
     } 
 } 
 
 / /   G e n e r a t e   H T M L 
 l e t   h t m l   =   " " ; 
 
 f o r   ( c o n s t   c a t e g o r y   i n   c a t e g o r y M a p )   { 
     h t m l   + =   ` < h 3 > < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 1 e m ; v e r t i c a l - a l i g n : - 0 . 2 5 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > c < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 3 5 8 8 e m ; " > g < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 3 5 8 8 e m ; " > o r y < / s p a n > < / s p a n > < s p a n   c l a s s = " m o p e n " > ( < / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { c a t e g o r y M a p [ c a t e g o r y ] . l e n g t h } ) < / h 3 > ` ; 
     h t m l   + =   ` < t a b l e > ` ; 
     h t m l   + =   ` < t r > < t h > G r a n t < / t h > < t h > I s s u e r < / t h > < t h > A m o u n t < / t h > < t h > D e a d l i n e < / t h > < / t r > ` ; 
     
     f o r   ( c o n s t   g r a n t   o f   c a t e g o r y M a p [ c a t e g o r y ] )   { 
         h t m l   + =   ` < t r > ` ; 
         h t m l   + =   ` < t d > < a   h r e f = " < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 3 5 8 8 e m ; " > g < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > r < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 7 6 4 e m ; " > f < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > p < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > h < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d " > & q u o t ; < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 7 7 8 e m ; " > < / s p a n > < s p a n   c l a s s = " m r e l " > & g t ; < / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { g r a n t . g r a n t _ n a m e } < / a > < / t d > ` ; 
         h t m l   + =   ` < t d > $ { g r a n t . i s s u e r } < / t d > ` ; 
         h t m l   + =   ` < t d > < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x - e r r o r "   t i t l e = " P a r s e E r r o r :   K a T e X   p a r s e   e r r o r :   E x p e c t e d   & # x 2 7 ; } & # x 2 7 ; ,   g o t   & # x 2 7 ; E O F & # x 2 7 ;   a t   e n d   o f   i n p u t :   & r a n t . a m o u n t   ?   & q u o t ; "   s t y l e = " c o l o r : # c c 0 0 0 0 " > { g r a n t . a m o u n t   ?   & q u o t ; < / s p a n > 
                     < / s p a n > 
                 < / s p a n > "   +   g r a n t . a m o u n t . t o L o c a l e S t r i n g ( )   :   " N o t   s p e c i f i e d " } < / t d > ` ; 
         h t m l   + =   ` < t d > $ { g r a n t . a p p l i c a t i o n _ d e a d l i n e   | |   " N o t   s p e c i f i e d " } < / t d > ` ; 
         h t m l   + =   ` < / t r > ` ; 
     } 
     
     h t m l   + =   ` < / t a b l e > ` ; 
 } 
 
 d v . p a r a g r a p h ( h t m l ) ; 
 ` ` ` 
 
 # #   A c t i o n s 
 
 ` ` ` 
 n a m e   N e w   G r a n t 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   C r e a t e   G r a n t 
 ` ` ` 
 
 ` ` ` 
 n a m e   D i s c o v e r   G r a n t s 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   D i s c o v e r   G r a n t s 
 ` ` ` 
 
 ` ` ` ` 
 
 # #   1 1 .   A u t o m a t i o n   a n d   W o r k f l o w s 
 
 # # #   1 1 . 1   C r e a t e   C h e c k   D e a d l i n e s   S c r i p t 
 
 C r e a t e   a   f i l e   ` _ t e m p l a t e s / c h e c k _ d e a d l i n e s . j s ` : 
 
 ` ` ` j a v a s c r i p t 
 m o d u l e . e x p o r t s   =   a s y n c   f u n c t i o n ( t p )   { 
     / /   G e t   a l l   g r a n t s   w i t h   d e a d l i n e s 
     c o n s t   g r a n t s   =   a p p . v a u l t . g e t M a r k d o w n F i l e s ( ) . f i l t e r ( f i l e   = >   { 
         c o n s t   f m   =   a p p . m e t a d a t a C a c h e . g e t F i l e C a c h e ( f i l e ) . f r o n t m a t t e r ; 
         r e t u r n   f m   & &   f m . t y p e   = = =   " g r a n t "   & &   f m . a p p l i c a t i o n _ d e a d l i n e ; 
     } ) ; 
     
     / /   G e t   c u r r e n t   d a t e 
     c o n s t   t o d a y   =   n e w   D a t e ( ) ; 
     
     / /   F u n c t i o n   t o   c a l c u l a t e   d a y s   l e f t 
     f u n c t i o n   d a y s L e f t ( d e a d l i n e )   { 
         c o n s t   d e a d l i n e D a t e   =   n e w   D a t e ( d e a d l i n e ) ; 
         r e t u r n   M a t h . c e i l ( ( d e a d l i n e D a t e   -   t o d a y )   /   ( 1 0 0 0   *   6 0   *   6 0   *   2 4 ) ) ; 
     } 
     
     / /   C h e c k   f o r   a p p r o a c h i n g   d e a d l i n e s 
     l e t   c r i t i c a l C o u n t   =   0 ; 
     l e t   w a r n i n g C o u n t   =   0 ; 
     
     f o r   ( c o n s t   g r a n t   o f   g r a n t s )   { 
         c o n s t   f m   =   a p p . m e t a d a t a C a c h e . g e t F i l e C a c h e ( g r a n t ) . f r o n t m a t t e r ; 
         c o n s t   d a y s   =   d a y s L e f t ( f m . a p p l i c a t i o n _ d e a d l i n e ) ; 
         
         / /   G e t   a p p l i c a t i o n s   f o r   t h i s   g r a n t 
         c o n s t   a p p l i c a t i o n s   =   a p p . v a u l t . g e t M a r k d o w n F i l e s ( ) . f i l t e r ( f i l e   = >   { 
             c o n s t   a p p F m   =   a p p . m e t a d a t a C a c h e . g e t F i l e C a c h e ( f i l e ) . f r o n t m a t t e r ; 
             r e t u r n   a p p F m   & &   a p p F m . t y p e   = = =   " a p p l i c a t i o n "   & &   a p p F m . g r a n t   = = =   ` [ [ $ { g r a n t . b a s e n a m e } ] ] ` ; 
         } ) ; 
         
         / /   C h e c k   i f   d e a d l i n e   i s   a p p r o a c h i n g 
         i f   ( d a y s   > =   0   & &   d a y s   < =   3 )   { 
             c r i t i c a l C o u n t + + ; 
             
             / /   C r e a t e   n o t i f i c a t i o n   f o r   e a c h   a p p l i c a t i o n 
             f o r   ( c o n s t   a p p   o f   a p p l i c a t i o n s )   { 
                 c o n s t   a p p F m   =   a p p . m e t a d a t a C a c h e . g e t F i l e C a c h e ( a p p ) . f r o n t m a t t e r ; 
                 
                 / /   C r e a t e   n o t i f i c a t i o n 
                 a w a i t   t p . u s e r . c r e a t e _ n o t i f i c a t i o n ( 
                     a p p F m . a s s i g n e d _ t o , 
                     ` C R I T I C A L :   < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 7 6 4 e m ; " > f < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > m < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 3 5 8 8 e m ; " > g < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > r < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a n < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m s u p s u b " > < s p a n   c l a s s = " v l i s t - t   v l i s t - t 2 " > < s p a n   c l a s s = " v l i s t - r " > < s p a n   c l a s s = " v l i s t "   s t y l e = " h e i g h t : 0 . 1 5 1 4 e m ; " > < s p a n   s t y l e = " t o p : - 2 . 5 5 e m ; m a r g i n - l e f t : 0 e m ; m a r g i n - r i g h t : 0 . 0 5 e m ; " > < s p a n   c l a s s = " p s t r u t "   s t y l e = " h e i g h t : 2 . 7 e m ; " > < / s p a n > < s p a n   c l a s s = " s i z i n g   r e s e t - s i z e 6   s i z e 3   m t i g h t " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l   m t i g h t " > n < / s p a n > < / s p a n > < / s p a n > < / s p a n > < s p a n   c l a s s = " v l i s t - s " >  < / s p a n > < / s p a n > < s p a n   c l a s s = " v l i s t - r " > < s p a n   c l a s s = " v l i s t "   s t y l e = " h e i g h t : 0 . 1 5 e m ; " > < s p a n > < / s p a n > < / s p a n > < / s p a n > < / s p a n > < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a m < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > d < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > d < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i n < / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { d a y s }   d a y s ` , 
                     ` T h e   g r a n t   a p p l i c a t i o n   f o r   < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 7 6 4 e m ; " > f < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > m < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 3 5 8 8 e m ; " > g < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > r < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a n < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m s u p s u b " > < s p a n   c l a s s = " v l i s t - t   v l i s t - t 2 " > < s p a n   c l a s s = " v l i s t - r " > < s p a n   c l a s s = " v l i s t "   s t y l e = " h e i g h t : 0 . 1 5 1 4 e m ; " > < s p a n   s t y l e = " t o p : - 2 . 5 5 e m ; m a r g i n - l e f t : 0 e m ; m a r g i n - r i g h t : 0 . 0 5 e m ; " > < s p a n   c l a s s = " p s t r u t "   s t y l e = " h e i g h t : 2 . 7 e m ; " > < / s p a n > < s p a n   c l a s s = " s i z i n g   r e s e t - s i z e 6   s i z e 3   m t i g h t " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l   m t i g h t " > n < / s p a n > < / s p a n > < / s p a n > < / s p a n > < s p a n   c l a s s = " v l i s t - s " >  < / s p a n > < / s p a n > < s p a n   c l a s s = " v l i s t - r " > < s p a n   c l a s s = " v l i s t "   s t y l e = " h e i g h t : 0 . 1 5 e m ; " > < s p a n > < / s p a n > < / s p a n > < / s p a n > < / s p a n > < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a m < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > s < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > d < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > u < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i n < / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { d a y s }   d a y s .   C u r r e n t   s t a t u s :   < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 3 8 8 9 e m ; " > p p F < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > m < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > s < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > u < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > s < / s p a n > < / s p a n > < s p a n   c l a s s = " m p u n c t " > , < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 1 6 6 7 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 7 1 5 3 e m ; " > C < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > o < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > m < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > p l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > o < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > n < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 7 7 8 e m ; " > < / s p a n > < s p a n   c l a s s = " m r e l " > : < / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { a p p F m . c o m p l e t i o n _ p e r c e n t a g e } % ` , 
                     " c r i t i c a l " 
                 ) ; 
             } 
             
             / /   I f   n o   a p p l i c a t i o n s ,   c r e a t e   g e n e r a l   n o t i f i c a t i o n 
             i f   ( a p p l i c a t i o n s . l e n g t h   = = =   0 )   { 
                 a w a i t   t p . u s e r . c r e a t e _ n o t i f i c a t i o n ( 
                     " Y o u " , 
                     ` C R I T I C A L :   < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 7 6 4 e m ; " > f < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > m < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 3 5 8 8 e m ; " > g < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > r < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a n < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m s u p s u b " > < s p a n   c l a s s = " v l i s t - t   v l i s t - t 2 " > < s p a n   c l a s s = " v l i s t - r " > < s p a n   c l a s s = " v l i s t "   s t y l e = " h e i g h t : 0 . 1 5 1 4 e m ; " > < s p a n   s t y l e = " t o p : - 2 . 5 5 e m ; m a r g i n - l e f t : 0 e m ; m a r g i n - r i g h t : 0 . 0 5 e m ; " > < s p a n   c l a s s = " p s t r u t "   s t y l e = " h e i g h t : 2 . 7 e m ; " > < / s p a n > < s p a n   c l a s s = " s i z i n g   r e s e t - s i z e 6   s i z e 3   m t i g h t " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l   m t i g h t " > n < / s p a n > < / s p a n > < / s p a n > < / s p a n > < s p a n   c l a s s = " v l i s t - s " >  < / s p a n > < / s p a n > < s p a n   c l a s s = " v l i s t - r " > < s p a n   c l a s s = " v l i s t "   s t y l e = " h e i g h t : 0 . 1 5 e m ; " > < s p a n > < / s p a n > < / s p a n > < / s p a n > < / s p a n > < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a m < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > d < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > d < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i n < / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { d a y s }   d a y s ` , 
                     ` T h e   g r a n t   < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 7 6 4 e m ; " > f < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > m < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 3 5 8 8 e m ; " > g < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > r < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a n < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m s u p s u b " > < s p a n   c l a s s = " v l i s t - t   v l i s t - t 2 " > < s p a n   c l a s s = " v l i s t - r " > < s p a n   c l a s s = " v l i s t "   s t y l e = " h e i g h t : 0 . 1 5 1 4 e m ; " > < s p a n   s t y l e = " t o p : - 2 . 5 5 e m ; m a r g i n - l e f t : 0 e m ; m a r g i n - r i g h t : 0 . 0 5 e m ; " > < s p a n   c l a s s = " p s t r u t "   s t y l e = " h e i g h t : 2 . 7 e m ; " > < / s p a n > < s p a n   c l a s s = " s i z i n g   r e s e t - s i z e 6   s i z e 3   m t i g h t " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l   m t i g h t " > n < / s p a n > < / s p a n > < / s p a n > < / s p a n > < s p a n   c l a s s = " v l i s t - s " >  < / s p a n > < / s p a n > < s p a n   c l a s s = " v l i s t - r " > < s p a n   c l a s s = " v l i s t "   s t y l e = " h e i g h t : 0 . 1 5 e m ; " > < s p a n > < / s p a n > < / s p a n > < / s p a n > < / s p a n > < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a m < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > s < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > d < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > u < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i n < / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { d a y s }   d a y s   a n d   h a s   n o   a p p l i c a t i o n s   y e t . ` , 
                     " c r i t i c a l " 
                 ) ; 
             } 
         }   e l s e   i f   ( d a y s   >   3   & &   d a y s   < =   1 4 )   { 
             w a r n i n g C o u n t + + ; 
             
             / /   C r e a t e   n o t i f i c a t i o n   f o r   e a c h   a p p l i c a t i o n 
             f o r   ( c o n s t   a p p   o f   a p p l i c a t i o n s )   { 
                 c o n s t   a p p F m   =   a p p . m e t a d a t a C a c h e . g e t F i l e C a c h e ( a p p ) . f r o n t m a t t e r ; 
                 
                 / /   C r e a t e   n o t i f i c a t i o n 
                 a w a i t   t p . u s e r . c r e a t e _ n o t i f i c a t i o n ( 
                     a p p F m . a s s i g n e d _ t o , 
                     ` W A R N I N G :   < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 7 6 4 e m ; " > f < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > m < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 3 5 8 8 e m ; " > g < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > r < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a n < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m s u p s u b " > < s p a n   c l a s s = " v l i s t - t   v l i s t - t 2 " > < s p a n   c l a s s = " v l i s t - r " > < s p a n   c l a s s = " v l i s t "   s t y l e = " h e i g h t : 0 . 1 5 1 4 e m ; " > < s p a n   s t y l e = " t o p : - 2 . 5 5 e m ; m a r g i n - l e f t : 0 e m ; m a r g i n - r i g h t : 0 . 0 5 e m ; " > < s p a n   c l a s s = " p s t r u t "   s t y l e = " h e i g h t : 2 . 7 e m ; " > < / s p a n > < s p a n   c l a s s = " s i z i n g   r e s e t - s i z e 6   s i z e 3   m t i g h t " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l   m t i g h t " > n < / s p a n > < / s p a n > < / s p a n > < / s p a n > < s p a n   c l a s s = " v l i s t - s " >  < / s p a n > < / s p a n > < s p a n   c l a s s = " v l i s t - r " > < s p a n   c l a s s = " v l i s t "   s t y l e = " h e i g h t : 0 . 1 5 e m ; " > < s p a n > < / s p a n > < / s p a n > < / s p a n > < / s p a n > < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a m < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > d < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > d < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i n < / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { d a y s }   d a y s ` , 
                     ` T h e   g r a n t   a p p l i c a t i o n   f o r   < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 0 7 6 4 e m ; " > f < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > m < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 3 5 8 8 e m ; " > g < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > r < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a n < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m s u p s u b " > < s p a n   c l a s s = " v l i s t - t   v l i s t - t 2 " > < s p a n   c l a s s = " v l i s t - r " > < s p a n   c l a s s = " v l i s t "   s t y l e = " h e i g h t : 0 . 1 5 1 4 e m ; " > < s p a n   s t y l e = " t o p : - 2 . 5 5 e m ; m a r g i n - l e f t : 0 e m ; m a r g i n - r i g h t : 0 . 0 5 e m ; " > < s p a n   c l a s s = " p s t r u t "   s t y l e = " h e i g h t : 2 . 7 e m ; " > < / s p a n > < s p a n   c l a s s = " s i z i n g   r e s e t - s i z e 6   s i z e 3   m t i g h t " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l   m t i g h t " > n < / s p a n > < / s p a n > < / s p a n > < / s p a n > < s p a n   c l a s s = " v l i s t - s " >  < / s p a n > < / s p a n > < s p a n   c l a s s = " v l i s t - r " > < s p a n   c l a s s = " v l i s t "   s t y l e = " h e i g h t : 0 . 1 5 e m ; " > < s p a n > < / s p a n > < / s p a n > < / s p a n > < / s p a n > < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a m < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > s < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > d < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > u < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i n < / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { d a y s }   d a y s .   C u r r e n t   s t a t u s :   < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 1 3 8 8 9 e m ; " > p p F < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > m < / s p a n > < s p a n   c l a s s = " m o r d " > . < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > s < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > u < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > s < / s p a n > < / s p a n > < s p a n   c l a s s = " m p u n c t " > , < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 1 6 6 7 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 7 1 5 3 e m ; " > C < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > o < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > m < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > p l < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > e < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > o < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > n < / s p a n > < s p a n   c l a s s = " m s p a c e "   s t y l e = " m a r g i n - r i g h t : 0 . 2 7 7 8 e m ; " > < / s p a n > < s p a n   c l a s s = " m r e l " > : < / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { a p p F m . c o m p l e t i o n _ p e r c e n t a g e } % ` , 
                     " w a r n i n g " 
                 ) ; 
             } 
         } 
     } 
     
     n e w   N o t i c e ( ` D e a d l i n e   c h e c k   c o m p l e t e :   < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > c r < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > c < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 7 1 5 3 e m ; " > l C < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > o < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > u < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > c r < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > c < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > l < / s p a n > < s p a n   c l a s s = " m p u n c t " > , < / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { w a r n i n g C o u n t }   w a r n i n g ` ) ; 
     r e t u r n   ` D e a d l i n e   c h e c k   c o m p l e t e :   < s p a n   c l a s s = " m a t h - i n l i n e - w r a p p e r "   s t y l e = " d i s p l a y :   i n l i n e - b l o c k ;   v e r t i c a l - a l i g n :   b a s e l i n e ;   m a r g i n :   0   0 . 2 5 e m ; " > 
                     < s p a n   c l a s s = " m a t h - f o r m u l a "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   i n h e r i t ; " > 
                         < s p a n   c l a s s = " k a t e x " > < s p a n   c l a s s = " k a t e x - h t m l "   a r i a - h i d d e n = " t r u e " > < s p a n   c l a s s = " b a s e " > < s p a n   c l a s s = " s t r u t "   s t y l e = " h e i g h t : 0 . 8 8 8 9 e m ; v e r t i c a l - a l i g n : - 0 . 1 9 4 4 e m ; " > < / s p a n > < s p a n   c l a s s = " m o r d " > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > c r < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > c < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 7 1 5 3 e m ; " > l C < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > o < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > u < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > n < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 2 7 7 8 e m ; " > c r < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > t < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > i < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > c < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l " > a < / s p a n > < s p a n   c l a s s = " m o r d   m a t h n o r m a l "   s t y l e = " m a r g i n - r i g h t : 0 . 0 1 9 6 8 e m ; " > l < / s p a n > < s p a n   c l a s s = " m p u n c t " > , < / s p a n > < / s p a n > < / s p a n > < / s p a n > 
                     < / s p a n > 
                 < / s p a n > { w a r n i n g C o u n t }   w a r n i n g ` ; 
 } 
 ` ` ` ` 
 
 # # #   1 1 . 2   C r e a t e   N o t i f i c a t i o n   S c r i p t 
 
 C r e a t e   a   f i l e 
 
 ` ` ` 
 _ t e m p l a t e s / c r e a t e _ n o t i f i c a t i o n . j s 
 ` ` ` 
 
 : 
 
 ` ` ` 
 m o d u l e . e x p o r t s   =   a s y n c   f u n c t i o n ( t p ,   u s e r ,   t i t l e ,   m e s s a g e ,   t y p e   =   " i n f o " )   { 
     / /   C r e a t e   n o t i f i c a t i o n s   f o l d e r   i f   i t   d o e s n ' t   e x i s t 
     i f   ( ! a p p . v a u l t . g e t A b s t r a c t F i l e B y P a t h ( " n o t i f i c a t i o n s " ) )   { 
         a w a i t   a p p . v a u l t . c r e a t e F o l d e r ( " n o t i f i c a t i o n s " ) ; 
     } 
     
     / /   C r e a t e   n o t i f i c a t i o n   f i l e 
     c o n s t   n o t i f i c a t i o n I d   =   D a t e . n o w ( ) ; 
     c o n s t   n o t i f i c a t i o n P a t h   =   ` n o t i f i c a t i o n s / $ { n o t i f i c a t i o n I d } . m d ` ; 
     
     c o n s t   n o t i f i c a t i o n C o n t e n t   =   ` - - - 
 t y p e :   n o t i f i c a t i o n 
 u s e r :   " $ { u s e r } " 
 t i t l e :   " $ { t i t l e } " 
 m e s s a g e :   " $ { m e s s a g e } " 
 n o t i f i c a t i o n _ t y p e :   " $ { t y p e } " 
 c r e a t e d :   $ { t p . d a t e . n o w ( " Y Y Y Y - M M - D D   H H : m m : s s " ) } 
 r e a d :   f a l s e 
 - - - 
 
 #   $ { t i t l e } 
 
 $ { m e s s a g e } 
 
 # #   A c t i o n s 
 \ ` \ ` \ ` b u t t o n 
 n a m e   M a r k   a s   R e a d 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   M a r k   N o t i f i c a t i o n   a s   R e a d 
 \ ` \ ` \ ` 
 ` ; 
 
     a w a i t   a p p . v a u l t . c r e a t e ( n o t i f i c a t i o n P a t h ,   n o t i f i c a t i o n C o n t e n t ) ; 
     
     / /   S h o w   n o t i f i c a t i o n 
     n e w   N o t i c e ( ` N e w   n o t i f i c a t i o n :   $ { t i t l e } ` ) ; 
     
     r e t u r n   n o t i f i c a t i o n I d ; 
 } 
 ` ` ` 
 
 # # #   1 1 . 3   C r e a t e   M a r k   N o t i f i c a t i o n   a s   R e a d   S c r i p t 
 
 C r e a t e   a   f i l e 
 
 ` ` ` 
 _ t e m p l a t e s / m a r k _ n o t i f i c a t i o n _ r e a d . j s 
 ` ` ` 
 
 : 
 
 ` ` ` 
 m o d u l e . e x p o r t s   =   a s y n c   f u n c t i o n ( t p )   { 
     / /   G e t   c u r r e n t   n o t i f i c a t i o n 
     c o n s t   c u r r e n t F i l e   =   t p . f i l e . f i n d _ t f i l e ( t p . f i l e . p a t h ( t r u e ) ) ; 
     c o n s t   c u r r e n t F r o n t m a t t e r   =   a p p . m e t a d a t a C a c h e . g e t F i l e C a c h e ( c u r r e n t F i l e ) . f r o n t m a t t e r ; 
     
     i f   ( ! c u r r e n t F r o n t m a t t e r   | |   c u r r e n t F r o n t m a t t e r . t y p e   ! = =   " n o t i f i c a t i o n " )   { 
         n e w   N o t i c e ( " T h i s   i s   n o t   a   v a l i d   n o t i f i c a t i o n   f i l e ! " ) ; 
         r e t u r n   " E r r o r :   N o t   a   v a l i d   n o t i f i c a t i o n   f i l e " ; 
     } 
     
     / /   U p d a t e   f r o n t m a t t e r 
     a w a i t   a p p . f i l e M a n a g e r . p r o c e s s F r o n t M a t t e r ( c u r r e n t F i l e ,   f m   = >   { 
         f m . r e a d   =   t r u e ; 
         r e t u r n   f m ; 
     } ) ; 
     
     n e w   N o t i c e ( " N o t i f i c a t i o n   m a r k e d   a s   r e a d " ) ; 
     r e t u r n   " N o t i f i c a t i o n   m a r k e d   a s   r e a d " ; 
 } 
 ` ` ` 
 
 # #   1 2 .   A d v a n c e d   F e a t u r e s 
 
 # # #   1 2 . 1   C r e a t e   W e e k l y   R e v i e w   T e m p l a t e 
 
 C r e a t e   a   f i l e 
 
 ` ` ` 
 _ t e m p l a t e s / w e e k l y _ r e v i e w . m d 
 ` ` ` 
 
 : 
 
 ` ` ` ` 
 < % * 
 / /   G e t   w e e k   n u m b e r   a n d   d a t e s 
 c o n s t   w e e k N u m b e r   =   t p . d a t e . n o w ( " Y Y Y Y - [ W ] w w " ) ; 
 c o n s t   w e e k S t a r t   =   m o m e n t ( ) . s t a r t O f ( ' w e e k ' ) . f o r m a t ( " Y Y Y Y - M M - D D " ) ; 
 c o n s t   w e e k E n d   =   m o m e n t ( ) . e n d O f ( ' w e e k ' ) . f o r m a t ( " Y Y Y Y - M M - D D " ) ; 
 - % > 
 - - - 
 t y p e :   w e e k l y _ r e v i e w 
 w e e k :   " < %   w e e k N u m b e r   % > " 
 s t a r t _ d a t e :   < %   w e e k S t a r t   % > 
 e n d _ d a t e :   < %   w e e k E n d   % > 
 - - - 
 
 #   W e e k l y   R e v i e w :   < %   w e e k N u m b e r   % > 
 
 # #   G r a n t   D i s c o v e r y 
 
 # # #   N e w   G r a n t s   T h i s   W e e k 
 ` ` ` d a t a v i e w 
 T A B L E   g r a n t _ n a m e   a s   " G r a n t " ,   i s s u e r   a s   " I s s u e r " ,   a m o u n t   a s   " A m o u n t " ,   a p p l i c a t i o n _ d e a d l i n e   a s   " D e a d l i n e " 
 F R O M   # g r a n t 
 W H E R E   f i l e . c t i m e   > =   d a t e ( < %   w e e k S t a r t   % > )   A N D   f i l e . c t i m e   < =   d a t e ( < %   w e e k E n d   % > ) 
 S O R T   f i l e . c t i m e   D E S C 
 ` ` ` ` 
 
 # # #   U p c o m i n g   D e a d l i n e s 
 
 ` ` ` 
 T A B L E   g r a n t _ n a m e   a s   " G r a n t " ,   i s s u e r   a s   " I s s u e r " ,   a p p l i c a t i o n _ d e a d l i n e   a s   " D e a d l i n e " ,   ( d a t e ( a p p l i c a t i o n _ d e a d l i n e )   -   d a t e ( t o d a y ) ) . d a y   a s   " D a y s   L e f t " 
 F R O M   # g r a n t 
 W H E R E   a p p l i c a t i o n _ d e a d l i n e   ! =   n u l l   A N D   a p p l i c a t i o n _ d e a d l i n e   > =   d a t e ( t o d a y )   A N D   a p p l i c a t i o n _ d e a d l i n e   < =   d a t e ( t o d a y )   +   d u r ( 1 4   d a y s ) 
 S O R T   a p p l i c a t i o n _ d e a d l i n e   A S C 
 ` ` ` 
 
 # #   A p p l i c a t i o n   P r o g r e s s 
 
 # # #   A p p l i c a t i o n s   U p d a t e d   T h i s   W e e k 
 
 ` ` ` 
 T A B L E   b u s i n e s s . n a m e   a s   " B u s i n e s s " ,   g r a n t . g r a n t _ n a m e   a s   " G r a n t " ,   s t a t u s   a s   " S t a t u s " ,   c o m p l e t i o n _ p e r c e n t a g e   a s   " C o m p l e t i o n " 
 F R O M   # a p p l i c a t i o n 
 W H E R E   f i l e . m t i m e   > =   d a t e ( < %   w e e k S t a r t   % > )   A N D   f i l e . m t i m e   < =   d a t e ( < %   w e e k E n d   % > ) 
 S O R T   f i l e . m t i m e   D E S C 
 ` ` ` 
 
 # # #   A p p l i c a t i o n s   b y   S t a t u s 
 
 ` ` ` 
 / /   G e t   a l l   a p p l i c a t i o n s 
 c o n s t   a p p l i c a t i o n s   =   d v . p a g e s ( " # a p p l i c a t i o n " ) ; 
 
 / /   C o u n t   b y   s t a t u s 
 c o n s t   s t a t u s C o u n t s   =   { } ; 
 c o n s t   s t a t u s e s   =   [ " r e s e a r c h i n g " ,   " d r a f t i n g " ,   " i n t e r n a l _ r e v i e w " ,   " r e a d y " ,   " s u b m i t t e d " ,   " w o n " ,   " d e c l i n e d " ] ; 
 
 f o r   ( c o n s t   s t a t u s   o f   s t a t u s e s )   { 
     s t a t u s C o u n t s [ s t a t u s ]   =   a p p l i c a t i o n s . f i l t e r ( a   = >   a . s t a t u s   = = =   s t a t u s ) . l e n g t h ; 
 } 
 
 / /   G e n e r a t e   H T M L 
 l e t   h t m l   =   ` < t a b l e > ` ; 
 h t m l   + =   ` < t r > < t h > S t a t u s < / t h > < t h > C o u n t < / t h > < / t r > ` ; 
 
 f o r   ( c o n s t   s t a t u s   o f   s t a t u s e s )   { 
     h t m l   + =   ` < t r > ` ; 
     h t m l   + =   ` < t d > $ { s t a t u s . c h a r A t ( 0 ) . t o U p p e r C a s e ( )   +   s t a t u s . s l i c e ( 1 ) } < / t d > ` ; 
     h t m l   + =   ` < t d > $ { s t a t u s C o u n t s [ s t a t u s ] } < / t d > ` ; 
     h t m l   + =   ` < / t r > ` ; 
 } 
 
 h t m l   + =   ` < / t a b l e > ` ; 
 
 d v . p a r a g r a p h ( h t m l ) ; 
 ` ` ` 
 
 # #   A c t i o n   I t e m s 
 
 -   [   ]    R e v i e w   n e w   g r a n t s   a n d   m a t c h   w i t h   b u s i n e s s e s 
 -   [   ]    C h e c k   a p p r o a c h i n g   d e a d l i n e s   a n d   p r i o r i t i z e   a p p l i c a t i o n s 
 -   [   ]    U p d a t e   a p p l i c a t i o n   s t a t u s e s 
 -   [   ]    P l a n   n e x t   w e e k ' s   g r a n t   d i s c o v e r y   a c t i v i t i e s 
 
 # #   N o t e s 
 
 # #   A c t i o n s 
 
 ` ` ` 
 n a m e   D i s c o v e r   G r a n t s 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   D i s c o v e r   G r a n t s 
 ` ` ` 
 
 ` ` ` 
 n a m e   M a t c h   G r a n t s   t o   B u s i n e s s e s 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   M a t c h   G r a n t s   t o   B u s i n e s s e s 
 ` ` ` 
 
 ` ` ` 
 n a m e   C h e c k   D e a d l i n e s 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   C h e c k   D e a d l i n e s 
 ` ` ` 
 
 ` ` ` ` 
 
 # # #   1 2 . 2   C r e a t e   G r a n t   S u c c e s s   A n a l y s i s   T e m p l a t e 
 
 C r e a t e   a   f i l e   ` _ t e m p l a t e s / g r a n t _ s u c c e s s _ a n a l y s i s . m d ` : 
 
 ` ` ` m a r k d o w n 
 < % * 
 / /   G e t   d a t e 
 c o n s t   a n a l y s i s D a t e   =   t p . d a t e . n o w ( " Y Y Y Y - M M - D D " ) ; 
 - % > 
 - - - 
 t y p e :   g r a n t _ a n a l y s i s 
 d a t e :   < %   a n a l y s i s D a t e   % > 
 - - - 
 
 #   G r a n t   S u c c e s s   A n a l y s i s   -   < %   a n a l y s i s D a t e   % > 
 
 # #   O v e r a l l   S u c c e s s   M e t r i c s 
 ` ` ` d a t a v i e w j s 
 / /   G e t   a l l   a p p l i c a t i o n s 
 c o n s t   a p p l i c a t i o n s   =   d v . p a g e s ( " # a p p l i c a t i o n " ) ; 
 
 / /   C o u n t   b y   s t a t u s 
 c o n s t   t o t a l   =   a p p l i c a t i o n s . l e n g t h ; 
 c o n s t   s u b m i t t e d   =   a p p l i c a t i o n s . f i l t e r ( a   = >   [ " s u b m i t t e d " ,   " w o n " ,   " d e c l i n e d " ] . i n c l u d e s ( a . s t a t u s ) ) . l e n g t h ; 
 c o n s t   w o n   =   a p p l i c a t i o n s . f i l t e r ( a   = >   a . s t a t u s   = = =   " w o n " ) . l e n g t h ; 
 c o n s t   d e c l i n e d   =   a p p l i c a t i o n s . f i l t e r ( a   = >   a . s t a t u s   = = =   " d e c l i n e d " ) . l e n g t h ; 
 c o n s t   p e n d i n g   =   a p p l i c a t i o n s . f i l t e r ( a   = >   a . s t a t u s   = = =   " s u b m i t t e d " ) . l e n g t h ; 
 
 / /   C a l c u l a t e   s u c c e s s   r a t e 
 c o n s t   s u c c e s s R a t e   =   s u b m i t t e d   >   0   ?   M a t h . r o u n d ( ( w o n   /   s u b m i t t e d )   *   1 0 0 )   :   0 ; 
 
 / /   C a l c u l a t e   t o t a l   f u n d i n g 
 l e t   t o t a l F u n d i n g   =   0 ; 
 f o r   ( c o n s t   a p p   o f   a p p l i c a t i o n s . f i l t e r ( a   = >   a . s t a t u s   = = =   " w o n " ) )   { 
     c o n s t   g r a n t   =   d v . p a g e ( a p p . g r a n t . p a t h ) ; 
     i f   ( g r a n t . a m o u n t )   { 
         t o t a l F u n d i n g   + =   g r a n t . a m o u n t ; 
     } 
 } 
 
 / /   G e n e r a t e   H T M L 
 l e t   h t m l   =   ` < d i v   s t y l e = " d i s p l a y : f l e x ; f l e x - w r a p : w r a p ; g a p : 1 0 p x ; " > ` ; 
 
 h t m l   + =   ` < d i v   s t y l e = " b a c k g r o u n d - c o l o r : # 4 2 8 7 f 5 ; c o l o r : w h i t e ; p a d d i n g : 1 5 p x ; b o r d e r - r a d i u s : 5 p x ; w i d t h : 2 0 0 p x ; " > 
     < h 3   
 ` ` ` ` 
 
 c o n t i n u e 
 
 ! [ A I ] ( C : \ U s e r s \ H P \ N e x t c l o u d \ P o r t a b l e A p p s \ O b s i d i a n P o r t a b l e \ D a t a \ i m a g e s \ i m g . i c o n s 8 _ c l a u d e _ b r o w n . p n g ) C l a u d e   3 . 7   S o n n e t   ( T h i n k i n g ) 
 
 ` ` ` 
     < h 3   s t y l e = " m a r g i n : 0 ; " > $ { t o t a l } < / h 3 > 
     < p   s t y l e = " m a r g i n : 0 ; " > T o t a l   A p p l i c a t i o n s < / p > 
 < / d i v > ` ; 
 
 h t m l   + =   ` < d i v   s t y l e = " b a c k g r o u n d - c o l o r : # f 5 a 7 4 2 ; c o l o r : w h i t e ; p a d d i n g : 1 5 p x ; b o r d e r - r a d i u s : 5 p x ; w i d t h : 2 0 0 p x ; " > 
     < h 3   s t y l e = " m a r g i n : 0 ; " > $ { s u b m i t t e d } < / h 3 > 
     < p   s t y l e = " m a r g i n : 0 ; " > S u b m i t t e d < / p > 
 < / d i v > ` ; 
 
 h t m l   + =   ` < d i v   s t y l e = " b a c k g r o u n d - c o l o r : # 4 2 f 5 8 4 ; c o l o r : w h i t e ; p a d d i n g : 1 5 p x ; b o r d e r - r a d i u s : 5 p x ; w i d t h : 2 0 0 p x ; " > 
     < h 3   s t y l e = " m a r g i n : 0 ; " > $ { w o n } < / h 3 > 
     < p   s t y l e = " m a r g i n : 0 ; " > W o n < / p > 
 < / d i v > ` ; 
 
 h t m l   + =   ` < d i v   s t y l e = " b a c k g r o u n d - c o l o r : # f 5 4 2 4 2 ; c o l o r : w h i t e ; p a d d i n g : 1 5 p x ; b o r d e r - r a d i u s : 5 p x ; w i d t h : 2 0 0 p x ; " > 
     < h 3   s t y l e = " m a r g i n : 0 ; " > $ { s u c c e s s R a t e } % < / h 3 > 
     < p   s t y l e = " m a r g i n : 0 ; " > S u c c e s s   R a t e < / p > 
 < / d i v > ` ; 
 
 h t m l   + =   ` < d i v   s t y l e = " b a c k g r o u n d - c o l o r : # 4 2 b 0 f 5 ; c o l o r : w h i t e ; p a d d i n g : 1 5 p x ; b o r d e r - r a d i u s : 5 p x ; w i d t h : 2 0 0 p x ; " > 
     < h 3   s t y l e = " m a r g i n : 0 ; " > < d i v   c l a s s = " m y - 2   w - f u l l   f l e x   j u s t i f y - c e n t e r   t e x t - g r a y - 9 0 0   s c r o l l b a r - t h i n   d a r k : t e x t - g r a y - 1 0 0 " > 
                                 < d i v   s t y l e = " a l l :   r e v e r t ;   f o n t - s i z e :   1 r e m ;   t e x t - a l i g n :   c e n t e r ;   m a x - w i d t h :   1 0 0 % ;   o v e r f l o w - x :   a u t o ;   d i s p l a y :   i n l i n e - b l o c k ; " > 
                                     < d i v   c l a s s = " m a t h - f o r m u l a   s c r o l l b a r - t h i n "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   1 . 5 ;   p a d d i n g :   0 . 5 r e m   0 ;   m i n - w i d t h :   m i n - c o n t e n t ; " > 
                                         < s p a n   c l a s s = " k a t e x - e r r o r "   t i t l e = " P a r s e E r r o r :   K a T e X   p a r s e   e r r o r :   E x p e c t e d   & # x 2 7 ; E O F & # x 2 7 ; ,   g o t   & # x 2 7 ; # & # x 2 7 ;   a t   p o s i t i o n   1 3 3 :   & p h ( h t m l ) ; 
 ` ` ` 
 
 # 2#   S u c c e s s   b y   B u & "   s t y l e = " c o l o r : # c c 0 0 0 0 " > { t o t a l F u n d i n g . t o L o c a l e S t r i n g ( ) } < / h 3 >   < p   s t y l e = " m a r g i n : 0 ; " > T o t a l   F u n d i n g < / p >   < / d i v > ` ; 
 
 h t m l   + = 
 
 ` ` ` 
 & l t ; / d i v & g t ; 
 ` ` ` 
 
 ; 
 
 d v . p a r a g r a p h ( h t m l ) ; 
 
 ` ` ` ` 
 
 # #   S u c c e s s   b y   B u s i n e s s   T y p e 
 ` ` ` d a t a v i e w j s 
 / /   G e t   a l l   a p p l i c a t i o n s 
 c o n s t   a p p l i c a t i o n s   =   d v . p a g e s ( & q u o t ; # a p p l i c a t i o n & q u o t ; ) ; 
 
 / /   G r o u p   b y   b u s i n e s s   t y p e 
 c o n s t   b u s i n e s s T y p e M a p   =   { } ; 
 
 f o r   ( c o n s t   a p p   o f   a p p l i c a t i o n s . f i l t e r ( a   = & g t ;   [ & q u o t ; s u b m i t t e d & q u o t ; ,   & q u o t ; w o n & q u o t ; ,   & q u o t ; d e c l i n e d & q u o t ; ] . i n c l u d e s ( a . s t a t u s ) ) )   { 
     c o n s t   b u s i n e s s   =   d v . p a g e ( a p p . b u s i n e s s . p a t h ) ; 
     c o n s t   b u s i n e s s T y p e   =   b u s i n e s s . b u s i n e s s _ t y p e ; 
     
     i f   ( ! b u s i n e s s T y p e M a p [ b u s i n e s s T y p e ] )   { 
         b u s i n e s s T y p e M a p [ b u s i n e s s T y p e ]   =   { 
             s u b m i t t e d :   0 , 
             w o n :   0 , 
             f u n d i n g :   0 
         } ; 
     } 
     
     b u s i n e s s T y p e M a p [ b u s i n e s s T y p e ] . s u b m i t t e d + + ; 
     
     i f   ( a p p . s t a t u s   = = =   & q u o t ; w o n & q u o t ; )   { 
         b u s i n e s s T y p e M a p [ b u s i n e s s T y p e ] . w o n + + ; 
         
         c o n s t   g r a n t   =   d v . p a g e ( a p p . g r a n t . p a t h ) ; 
         i f   ( g r a n t . a m o u n t )   { 
             b u s i n e s s T y p e M a p [ b u s i n e s s T y p e ] . f u n d i n g   + =   g r a n t . a m o u n t ; 
         } 
     } 
 } 
 
 / /   G e n e r a t e   H T M L 
 l e t   h t m l   =   ` & l t ; t a b l e & g t ; ` ; 
 h t m l   + =   ` & l t ; t r & g t ; & l t ; t h & g t ; B u s i n e s s   T y p e & l t ; / t h & g t ; & l t ; t h & g t ; S u b m i t t e d & l t ; / t h & g t ; & l t ; t h & g t ; W o n & l t ; / t h & g t ; & l t ; t h & g t ; S u c c e s s   R a t e & l t ; / t h & g t ; & l t ; t h & g t ; T o t a l   F u n d i n g & l t ; / t h & g t ; & l t ; / t r & g t ; ` ; 
 
 f o r   ( c o n s t   b u s i n e s s T y p e   i n   b u s i n e s s T y p e M a p )   { 
     c o n s t   d a t a   =   b u s i n e s s T y p e M a p [ b u s i n e s s T y p e ] ; 
     c o n s t   s u c c e s s R a t e   =   d a t a . s u b m i t t e d   & g t ;   0   ?   M a t h . r o u n d ( ( d a t a . w o n   /   d a t a . s u b m i t t e d )   *   1 0 0 )   :   0 ; 
     
     h t m l   + =   ` & l t ; t r & g t ; ` ; 
     h t m l   + =   ` & l t ; t d & g t ; $ { b u s i n e s s T y p e } & l t ; / t d & g t ; ` ; 
     h t m l   + =   ` & l t ; t d & g t ; $ { d a t a . s u b m i t t e d } & l t ; / t d & g t ; ` ; 
     h t m l   + =   ` & l t ; t d & g t ; $ { d a t a . w o n } & l t ; / t d & g t ; ` ; 
     h t m l   + =   ` & l t ; t d & g t ; $ { s u c c e s s R a t e } % & l t ; / t d & g t ; ` ; 
     h t m l   + =   ` & l t ; t d & g t ; < / s p a n > 
                                     < / d i v > 
                                 < / d i v > 
                             < / d i v > { d a t a . f u n d i n g . t o L o c a l e S t r i n g ( ) } < / t d > ` ; 
     h t m l   + =   ` < / t r > ` ; 
 } 
 
 h t m l   + =   ` < / t a b l e > ` ; 
 
 d v . p a r a g r a p h ( h t m l ) ; 
 ` ` ` ` 
 
 # #   S u c c e s s   b y   G r a n t   C a t e g o r y 
 
 ` ` ` 
 / /   G e t   a l l   a p p l i c a t i o n s 
 c o n s t   a p p l i c a t i o n s   =   d v . p a g e s ( " # a p p l i c a t i o n " ) ; 
 
 / /   G r o u p   b y   g r a n t   c a t e g o r y 
 c o n s t   c a t e g o r y M a p   =   { } ; 
 
 f o r   ( c o n s t   a p p   o f   a p p l i c a t i o n s . f i l t e r ( a   = >   [ " s u b m i t t e d " ,   " w o n " ,   " d e c l i n e d " ] . i n c l u d e s ( a . s t a t u s ) ) )   { 
     c o n s t   g r a n t   =   d v . p a g e ( a p p . g r a n t . p a t h ) ; 
     c o n s t   c a t e g o r i e s   =   t y p e o f   g r a n t . g r a n t _ c a t e g o r i e s   = = =   ' s t r i n g '   ?   
                                         g r a n t . g r a n t _ c a t e g o r i e s . s p l i t ( " , " ) . m a p ( c   = >   c . t r i m ( ) )   :   
                                         [ g r a n t . g r a n t _ c a t e g o r i e s ] ; 
     
     f o r   ( c o n s t   c a t e g o r y   o f   c a t e g o r i e s )   { 
         i f   ( ! c a t e g o r y M a p [ c a t e g o r y ] )   { 
             c a t e g o r y M a p [ c a t e g o r y ]   =   { 
                 s u b m i t t e d :   0 , 
                 w o n :   0 , 
                 f u n d i n g :   0 
             } ; 
         } 
         
         c a t e g o r y M a p [ c a t e g o r y ] . s u b m i t t e d + + ; 
         
         i f   ( a p p . s t a t u s   = = =   " w o n " )   { 
             c a t e g o r y M a p [ c a t e g o r y ] . w o n + + ; 
             
             i f   ( g r a n t . a m o u n t )   { 
                 c a t e g o r y M a p [ c a t e g o r y ] . f u n d i n g   + =   g r a n t . a m o u n t ; 
             } 
         } 
     } 
 } 
 
 / /   G e n e r a t e   H T M L 
 l e t   h t m l   =   ` < t a b l e > ` ; 
 h t m l   + =   ` < t r > < t h > G r a n t   C a t e g o r y < / t h > < t h > S u b m i t t e d < / t h > < t h > W o n < / t h > < t h > S u c c e s s   R a t e < / t h > < t h > T o t a l   F u n d i n g < / t h > < / t r > ` ; 
 
 f o r   ( c o n s t   c a t e g o r y   i n   c a t e g o r y M a p )   { 
     c o n s t   d a t a   =   c a t e g o r y M a p [ c a t e g o r y ] ; 
     c o n s t   s u c c e s s R a t e   =   d a t a . s u b m i t t e d   >   0   ?   M a t h . r o u n d ( ( d a t a . w o n   /   d a t a . s u b m i t t e d )   *   1 0 0 )   :   0 ; 
     
     h t m l   + =   ` < t r > ` ; 
     h t m l   + =   ` < t d > $ { c a t e g o r y } < / t d > ` ; 
     h t m l   + =   ` < t d > $ { d a t a . s u b m i t t e d } < / t d > ` ; 
     h t m l   + =   ` < t d > $ { d a t a . w o n } < / t d > ` ; 
     h t m l   + =   ` < t d > $ { s u c c e s s R a t e } % < / t d > ` ; 
     h t m l   + =   ` < t d > < d i v   c l a s s = " m y - 2   w - f u l l   f l e x   j u s t i f y - c e n t e r   t e x t - g r a y - 9 0 0   s c r o l l b a r - t h i n   d a r k : t e x t - g r a y - 1 0 0 " > 
                                 < d i v   s t y l e = " a l l :   r e v e r t ;   f o n t - s i z e :   1 r e m ;   t e x t - a l i g n :   c e n t e r ;   m a x - w i d t h :   1 0 0 % ;   o v e r f l o w - x :   a u t o ;   d i s p l a y :   i n l i n e - b l o c k ; " > 
                                     < d i v   c l a s s = " m a t h - f o r m u l a   s c r o l l b a r - t h i n "   s t y l e = " f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;   l i n e - h e i g h t :   1 . 5 ;   p a d d i n g :   0 . 5 r e m   0 ;   m i n - w i d t h :   m i n - c o n t e n t ; " > 
                                         < s p a n   c l a s s = " k a t e x - e r r o r "   t i t l e = " P a r s e E r r o r :   K a T e X   p a r s e   e r r o r :   E x p e c t e d   & # x 2 7 ; E O F & # x 2 7 ; ,   g o t   & # x 2 7 ; } & # x 2 7 ;   a t   p o s i t i o n   5 9 :   & m l   + =   ` & l t ; / t r & g t ; ` ; 
 } 2
 
 h t m l   + =   ` & l t ; / t a & "   s t y l e = " c o l o r : # c c 0 0 0 0 " > { d a t a . f u n d i n g . t o L o c a l e S t r i n g ( ) } & l t ; / t d & g t ; ` ; 
     h t m l   + =   ` & l t ; / t r & g t ; ` ; 
 } 
 
 h t m l   + =   ` & l t ; / t a b l e & g t ; ` ; 
 
 d v . p a r a g r a p h ( h t m l ) ; 
 ` ` ` 
 
 # #   S u c c e s s   b y   D e m o g r a p h i c s 
 
 ` ` ` 
 / /   G e t   a l l   a p p l i c a t i o n s 
 c o n s t   a p p l i c a t i o n s   =   d v . p a g e s ( & q u o t ; # a p p l i c a t i o n & q u o t ; ) ; 
 
 / /   G r o u p   b y   d e m o g r a p h i c s 
 c o n s t   d e m o g r a p h i c s M a p   =   { } ; 
 
 f o r   ( c o n s t   a p p   o f   a p p l i c a t i o n s . f i l t e r ( a   = & g t ;   [ & q u o t ; s u b m i t t e d & q u o t ; ,   & q u o t ; w o n & q u o t ; ,   & q u o t ; d e c l i n e d & q u o t ; ] . i n c l u d e s ( a . s t a t u s ) ) )   { 
     c o n s t   b u s i n e s s   =   d v . p a g e ( a p p . b u s i n e s s . p a t h ) ; 
     c o n s t   d e m o g r a p h i c s   =   A r r a y . i s A r r a y ( b u s i n e s s . o w n e r _ d e m o g r a p h i c s )   ?   
                                             b u s i n e s s . o w n e r _ d e m o g r a p h i c s   :   
                                             [ b u s i n e s s . o w n e r _ d e m o g r a p h i c s ] ; 
     
     f o r   ( c o n s t   d e m o   o f   d e m o g r a p h i c s )   { 
         i f   ( ! d e m o g r a p h i c s M a p [ d e m o ] )   { 
             d e m o g r a p h i c s M a p [ d e m o ]   =   { 
                 s u b m i t t e d :   0 , 
                 w o n :   0 , 
                 f u n d i n g :   0 
             } ; 
         } 
         
         d e m o g r a p h i c s M a p [ d e m o ] . s u b m i t t e d + + ; 
         
         i f   ( a p p . s t a t u s   = = =   & q u o t ; w o n & q u o t ; )   { 
             d e m o g r a p h i c s M a p [ d e m o ] . w o n + + ; 
             
             c o n s t   g r a n t   =   d v . p a g e ( a p p . g r a n t . p a t h ) ; 
             i f   ( g r a n t . a m o u n t )   { 
                 d e m o g r a p h i c s M a p [ d e m o ] . f u n d i n g   + =   g r a n t . a m o u n t ; 
             } 
         } 
     } 
 } 
 
 / /   G e n e r a t e   H T M L 
 l e t   h t m l   =   ` & l t ; t a b l e & g t ; ` ; 
 h t m l   + =   ` & l t ; t r & g t ; & l t ; t h & g t ; D e m o g r a p h i c s & l t ; / t h & g t ; & l t ; t h & g t ; S u b m i t t e d & l t ; / t h & g t ; & l t ; t h & g t ; W o n & l t ; / t h & g t ; & l t ; t h & g t ; S u c c e s s   R a t e & l t ; / t h & g t ; & l t ; t h & g t ; T o t a l   F u n d i n g & l t ; / t h & g t ; & l t ; / t r & g t ; ` ; 
 
 f o r   ( c o n s t   d e m o   i n   d e m o g r a p h i c s M a p )   { 
     c o n s t   d a t a   =   d e m o g r a p h i c s M a p [ d e m o ] ; 
     c o n s t   s u c c e s s R a t e   =   d a t a . s u b m i t t e d   & g t ;   0   ?   M a t h . r o u n d ( ( d a t a . w o n   /   d a t a . s u b m i t t e d )   *   1 0 0 )   :   0 ; 
     
     h t m l   + =   ` & l t ; t r & g t ; ` ; 
     h t m l   + =   ` & l t ; t d & g t ; $ { d e m o } & l t ; / t d & g t ; ` ; 
     h t m l   + =   ` & l t ; t d & g t ; $ { d a t a . s u b m i t t e d } & l t ; / t d & g t ; ` ; 
     h t m l   + =   ` & l t ; t d & g t ; $ { d a t a . w o n } & l t ; / t d & g t ; ` ; 
     h t m l   + =   ` & l t ; t d & g t ; $ { s u c c e s s R a t e } % & l t ; / t d & g t ; ` ; 
     h t m l   + =   ` & l t ; t d & g t ; < / s p a n > 
                                     < / d i v > 
                                 < / d i v > 
                             < / d i v > { d a t a . f u n d i n g . t o L o c a l e S t r i n g ( ) } < / t d > ` ; 
     h t m l   + =   ` < / t r > ` ; 
 } 
 
 h t m l   + =   ` < / t a b l e > ` ; 
 
 d v . p a r a g r a p h ( h t m l ) ; 
 ` ` ` 
 
 # #   R e c o m m e n d a t i o n s 
 
 ` ` ` 
 / /   G e t   A P I   c o n f i g u r a t i o n 
 c o n s t   c o n f i g F i l e   =   d v . p a g e ( " _ c o n f i g / o p e n r o u t e r _ a p i . m d " ) ; 
 c o n s t   a p i K e y   =   c o n f i g F i l e . a p i _ k e y ; 
 
 / /   P r e p a r e   p r o m p t 
 c o n s t   p r o m p t   =   ` B a s e d   o n   t h e   g r a n t   s u c c e s s   a n a l y s i s   a b o v e ,   p l e a s e   p r o v i d e   3 - 5   s t r a t e g i c   r e c o m m e n d a t i o n s   f o r   i m p r o v i n g   g r a n t   s u c c e s s   r a t e s .   C o n s i d e r   t h e   b u s i n e s s   t y p e s ,   g r a n t   c a t e g o r i e s ,   a n d   d e m o g r a p h i c s   t h a t   h a v e   s h o w n   t h e   h i g h e s t   s u c c e s s   r a t e s . ` ; 
 
 / /   M a k e   A P I   r e q u e s t 
 c o n s t   r e s p o n s e   =   a w a i t   a p i R e q u e s t ( { 
     u r l :   ' h t t p s : / / o p e n r o u t e r . a i / a p i / v 1 / c h a t / c o m p l e t i o n s ' , 
     m e t h o d :   ' P O S T ' , 
     h e a d e r s :   { 
         ' A u t h o r i z a t i o n ' :   ` B e a r e r   $ { a p i K e y } ` , 
         ' 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 ' , 
         ' H T T P - R e f e r e r ' :   ' h t t p s : / / o b s i d i a n . m d ' , 
         ' X - T i t l e ' :   ' G r a n t   M a n a g e m e n t   S y s t e m ' 
     } , 
     b o d y :   { 
         ' m o d e l ' :   ' m i s t r a l a i / m i s t r a l - 7 b - i n s t r u c t ' , 
         ' m e s s a g e s ' :   [ 
             { 
                 ' r o l e ' :   ' s y s t e m ' , 
                 ' c o n t e n t ' :   ' Y o u   a r e   a n   e x p e r t   g r a n t   c o n s u l t a n t   w h o   p r o v i d e s   s t r a t e g i c   r e c o m m e n d a t i o n s   b a s e d   o n   g r a n t   s u c c e s s   d a t a . ' 
             } , 
             { 
                 ' r o l e ' :   ' u s e r ' , 
                 ' c o n t e n t ' :   p r o m p t 
             } 
         ] , 
         ' t e m p e r a t u r e ' :   0 . 7 , 
         ' m a x _ t o k e n s ' :   5 0 0 
     } 
 } ) ; 
 
 / /   D i s p l a y   r e c o m m e n d a t i o n s 
 i f   ( r e s p o n s e   & &   r e s p o n s e . c h o i c e s   & &   r e s p o n s e . c h o i c e s [ 0 ] )   { 
     d v . p a r a g r a p h ( r e s p o n s e . c h o i c e s [ 0 ] . m e s s a g e . c o n t e n t ) ; 
 }   e l s e   { 
     d v . p a r a g r a p h ( " U n a b l e   t o   g e n e r a t e   r e c o m m e n d a t i o n s .   P l e a s e   t r y   a g a i n   l a t e r . " ) ; 
 } 
 ` ` ` 
 
 # #   A c t i o n s 
 
 ` ` ` 
 n a m e   G e n e r a t e   N e w   A n a l y s i s 
 t y p e   c o m m a n d 
 a c t i o n   Q u i c k A d d :   G e n e r a t e   G r a n t   S u c c e s s   A n a l y s i s 
 ` ` ` 
 
 ` ` ` ` 
 
 # #   1 3 .   B a c k u p   a n d   S y n c h r o n i z a t i o n 
 
 # # #   1 3 . 1   C o n f i g u r e   O b s i d i a n   G i t 
 
 1 .   G o   t o   S e t t i n g s   >   O b s i d i a n   G i t 
 2 .   E n a b l e   " A u t o   b a c k u p   a f t e r   f i l e   c h a n g e " 
 3 .   S e t   " B a c k u p   i n t e r v a l "   t o   3 0   m i n u t e s 
 4 .   S e t   " C o m m i t   m e s s a g e "   t o   " A u t o   b a c k u p :   { { d a t e } } " 
 5 .   E n a b l e   " P u s h   o n   b a c k u p " 
 6 .   E n a b l e   " P u l l   o n   s t a r t u p " 
 
 # # #   1 3 . 2   C r e a t e   B a c k u p   S c r i p t 
 
 C r e a t e   a   f i l e   ` _ t e m p l a t e s / b a c k u p _ v a u l t . j s ` : 
 
 ` ` ` j a v a s c r i p t 
 m o d u l e . e x p o r t s   =   a s y n c   f u n c t i o n ( t p )   { 
     / /   G e t   c u r r e n t   d a t e   a n d   t i m e 
     c o n s t   t i m e s t a m p   =   t p . d a t e . n o w ( " Y Y Y Y - M M - D D   H H : m m : s s " ) ; 
     
     / /   C r e a t e   b a c k u p   m e s s a g e 
     c o n s t   m e s s a g e   =   ` M a n u a l   b a c k u p :   $ { t i m e s t a m p } ` ; 
     
     / /   E x e c u t e   g i t   c o m m a n d s 
     t r y   { 
         / /   C h e c k   i f   O b s i d i a n G i t   p l u g i n   i s   a v a i l a b l e 
         i f   ( ! a p p . p l u g i n s . p l u g i n s . o b s i d i a n - g i t )   { 
             n e w   N o t i c e ( " O b s i d i a n   G i t   p l u g i n   n o t   f o u n d ! " ) ; 
             r e t u r n   " E r r o r :   O b s i d i a n   G i t   p l u g i n   n o t   f o u n d " ; 
         } 
         
         / /   G e t   p l u g i n   i n s t a n c e 
         c o n s t   g i t P l u g i n   =   a p p . p l u g i n s . p l u g i n s [ " o b s i d i a n - g i t " ] ; 
         
         / /   S t a g e   a l l   c h a n g e s 
         a w a i t   g i t P l u g i n . g i t M a n a g e r . s t a g e ( ) ; 
         
         / /   C o m m i t   c h a n g e s 
         a w a i t   g i t P l u g i n . g i t M a n a g e r . c o m m i t ( m e s s a g e ) ; 
         
         / /   P u s h   c h a n g e s 
         a w a i t   g i t P l u g i n . g i t M a n a g e r . p u s h ( ) ; 
         
         n e w   N o t i c e ( " B a c k u p   c o m p l e t e d   s u c c e s s f u l l y ! " ) ; 
         r e t u r n   " B a c k u p   c o m p l e t e d   s u c c e s s f u l l y " ; 
     }   c a t c h   ( e r r o r )   { 
         c o n s o l e . e r r o r ( " B a c k u p   e r r o r : " ,   e r r o r ) ; 
         n e w   N o t i c e ( ` B a c k u p   e r r o r :   $ { e r r o r . m e s s a g e } ` ) ; 
         r e t u r n   ` B a c k u p   e r r o r :   $ { e r r o r . m e s s a g e } ` ; 
     } 
 } 
 ` ` ` ` 
 
 # #   1 4 .   D a i l y   U s a g e   G u i d e 
 
 # # #   1 4 . 1   M o r n i n g   R o u t i n e 
 
 1 .   O p e n   O b s i d i a n  a n d   n a v i g a t e   t o   y o u r   G r a n t   M a n a g e m e n t   v a u l t 
 2 .   C h e c k   D a i l y   N o t e  b y   c l i c k i n g   o n   t h e   C a l e n d a r   i c o n   i n   t h e   l e f t   s i d e b a r   a n d   s e l e c t i n g   t o d a y ' s   d a t e 
 3 .   R e v i e w   U p c o m i n g   D e a d l i n e s  o n   t h e   d a i l y   n o t e   t o   i d e n t i f y   c r i t i c a l   a n d   a p p r o a c h i n g   d e a d l i n e s 
 4 .   C h e c k   N o t i f i c a t i o n s  b y   o p e n i n g   t h e   n o t i f i c a t i o n s   f o l d e r   a n d   r e v i e w i n g   a n y   u n r e a d   n o t i f i c a t i o n s 
 5 .   P l a n   Y o u r   D a y  b a s e d   o n   d e a d l i n e s   a n d   p r i o r i t i e s 
 
 # # #   1 4 . 2   G r a n t   D i s c o v e r y 
 
 1 .   R u n   G r a n t   D i s c o v e r y  b y   c l i c k i n g   t h e   " D i s c o v e r   G r a n t s "   b u t t o n   o n   t h e   m a i n   d a s h b o a r d 
 2 .   R e v i e w   N e w   G r a n t s  i n   t h e   d i s c o v e r y   r e s u l t s 
 3 .   M a t c h   G r a n t s   t o   B u s i n e s s e s  b y   c l i c k i n g   t h e   " M a t c h   G r a n t s   t o   B u s i n e s s e s "   b u t t o n 
 4 .   R e v i e w   M a t c h e s  i n   t h e   g r a n t   m a t c h e s   q u e r y 
 
 # # #   1 4 . 3   A p p l i c a t i o n   W o r k 
 
 1 .   S e l e c t   a n   A p p l i c a t i o n  f r o m   t h e   A p p l i c a t i o n s   B o a r d   o r   f r o m   t h e   M y   A p p l i c a t i o n s   s e c t i o n   o n   t h e   d a s h b o a r d 
 2 .   U p d a t e   A p p l i c a t i o n   S e c t i o n s  b y : 
         -   O p e n i n g   a   s e c t i o n 
         -   U s i n g   t h e   " G e n e r a t e   A I   C o n t e n t "   b u t t o n   t o   c r e a t e   c o n t e n t   w i t h   O p e n R o u t e r 
         -   E d i t i n g   t h e   c o n t e n t   a s   n e e d e d 
         -   U s i n g   t h e   " I m p r o v e   W r i t i n g "   b u t t o n   t o   e n h a n c e   t h e   c o n t e n t 
         -   M a r k i n g   t h e   s e c t i o n   a s   c o m p l e t e   w h e n   f i n i s h e d 
 3 .   T r a c k   P r o g r e s s  o n   t h e   a p p l i c a t i o n   p a g e ,   w h i c h   s h o w s   c o m p l e t i o n   p e r c e n t a g e 
 4 .   U p d a t e   A p p l i c a t i o n   S t a t u s  w h e n   r e a d y   t o   m o v e   t o   t h e   n e x t   s t a g e 
 
 # # #   1 4 . 4   E n d   o f   D a y 
 
 1 .   U p d a t e   A p p l i c a t i o n   S t a t u s e s  f o r   a n y   a p p l i c a t i o n s   y o u ' v e   w o r k e d   o n 
 2 .   C h e c k   D e a d l i n e s  a g a i n   t o   e n s u r e   n o t h i n g   i s   m i s s e d 
 3 .   B a c k u p   Y o u r   V a u l t  b y   r u n n i n g   t h e   b a c k u p   s c r i p t   o r   l e t t i n g   t h e   a u t o m a t i c   b a c k u p   h a n d l e   i t 
 
 # # #   1 4 . 5   W e e k l y   R e v i e w 
 
 1 .   G e n e r a t e   W e e k l y   R e v i e w  a t   t h e   e n d   o f   e a c h   w e e k 
 2 .   A n a l y z e   G r a n t   S u c c e s s  p e r i o d i c a l l y   t o   i d e n t i f y   t r e n d s   a n d   o p p o r t u n i t i e s 
 3 .   R e f i n e   S t r a t e g y  b a s e d   o n   s u c c e s s   m e t r i c s   a n d   r e c o m m e n d a t i o n s 
 
 # #   C o n c l u s i o n 
 
 T h i s   c o m p r e h e n s i v e   g u i d e   p r o v i d e s   e v e r y t h i n g   y o u   n e e d   t o   b u i l d   a   p o w e r f u l   g r a n t   m a n a g e m e n t   s y s t e m   i n   O b s i d i a n   w i t h   O p e n R o u t e r   A P I   i n t e g r a t i o n .   B y   f o l l o w i n g   t h e s e   s t e p s ,   y o u ' l l   c r e a t e   a   s y s t e m   t h a t   c a n : 
 
 1 .   D i s c o v e r   G r a n t s  a u t o m a t i c a l l y   f r o m   m u l t i p l e   s o u r c e s 
 2 .   M a t c h   G r a n t s   t o   B u s i n e s s e s  b a s e d   o n   b u s i n e s s   t y p e ,   d e m o g r a p h i c s ,   a n d   o t h e r   f a c t o r s 
 3 .   G e n e r a t e   A I   C o n t e n t  f o r   g r a n t   a p p l i c a t i o n s   u s i n g   d i f f e r e n t   O p e n R o u t e r   m o d e l s   o p t i m i z e d   f o r   s p e c i f i c   c o n t e n t   t y p e s 
 4 .   T r a c k   A p p l i c a t i o n   P r o g r e s s  t h r o u g h   a   v i s u a l   k a n b a n   b o a r d   a n d   c o m p l e t i o n   p e r c e n t a g e s 
 5 .   M o n i t o r   D e a d l i n e s  a n d   r e c e i v e   n o t i f i c a t i o n s   f o r   a p p r o a c h i n g   d e a d l i n e s 
 6 .   A n a l y z e   S u c c e s s   M e t r i c s  t o   i m p r o v e   y o u r   g r a n t   a p p l i c a t i o n   s t r a t e g y 
 
 T h e   s y s t e m   i s   h i g h l y   c u s t o m i z a b l e   a n d   c a n   b e   e x t e n d e d   w i t h   a d d i t i o n a l   f e a t u r e s   a s   n e e d e d .   T h e   i n t e g r a t i o n   w i t h   O p e n R o u t e r   A P I s   p r o v i d e s   p o w e r f u l   A I   c a p a b i l i t i e s   t h a t   c a n   s i g n i f i c a n t l y   i m p r o v e   t h e   q u a l i t y   a n d   e f f i c i e n c y   o f   y o u r   g r a n t   w r i t i n g   p r o c e s s . {