
    x7#hO6                     V    d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z	  G d de	      Z
y)	    )Iterable)date)Optional)_HinduLunisolar)EasternCalendarHolidaysc            
       @   e Zd ZdZd$d%dZ	 d&dedeee   e	f   de
dee   fdZ	 d&ded	eeee	f      de
dee   fd
Zdee   fdZdee   fdZdee   fdZdee   fdZdee   fdZdee   fdZdee   fdZdee   fdZdee   fdZdee   fdZdee   fdZdee   fdZdee   fdZdee   fdZdee   fdZdee   fdZdee   fdZdee   fdZ dee   fdZ!dee   fdZ"dee   fdZ#dee   fd Z$dee   fd!Z%dee   fd"Z&dee   fd#Z'y)'HinduCalendarHolidaysz,
    Hindu lunisolar calendar holidays.
    Nreturnc                 B    |r |       n	t               | _        || _        y N)r   _hindu_calendar_hindu_calendar_show_estimated)selfclsshow_estimateds      U/var/www/api/v1/venv_getwork_v1/lib/python3.12/site-packages/holidays/groups/hindu.py__init__zHinduCalendarHolidays.__init__   s    (+su1B.<+    namedt_estimated
days_deltac                 >    | j                  ||| j                  |      S )z
        Add Hindu calendar holiday.

        Adds customizable estimation label to holiday name if holiday date
        is an estimation.
        )_add_eastern_calendar_holidayr   )r   r   r   r   s       r   _add_hindu_calendar_holidayz1HinduCalendarHolidays._add_hindu_calendar_holiday   s&     11, C CZ
 	
r   dts_estimatedc                     t               }|D ]5  }| j                  ||| j                  |      x}s%|j                  |       7 |S )z
        Add Hindu calendar holidays.

        Adds customizable estimation label to holiday name if holiday date
        is an estimation.
        r   )setr   r   add)r   r   r   r   added_datesr   dts          r   _add_hindu_calendar_holiday_setz5HinduCalendarHolidays._add_hindu_calendar_holiday_set,   sZ     e)L77lD$G$GT^ 8  r  #	 * r   c                 l    | j                  || j                  j                  | j                              S )a  
        Add Buddha Purnima.

        Buddha Purnima, also known as Vesak, commemorates the birth, enlightenment,
        and passing of Gautama Buddha. It falls on the full moon day of the
        Hindu month of Vaisakha (April-May).
        https://en.wikipedia.org/wiki/Vesak
        )r   r   buddha_purnima_date_yearr   r   s     r   _add_buddha_purnimaz)HinduCalendarHolidays._add_buddha_purnima>   1     //$&&::4::F
 	
r   c                 l    | j                  || j                  j                  | j                              S )z
        Add Chhath Puja.

        Chhath Puja is a Hindu festival dedicated to the Sun God (Surya).
        It is observed six days after Diwali in the month of Kartika (October-November).
        https://en.wikipedia.org/wiki/Chhath
        )r   r   chhath_puja_dater%   r&   s     r   _add_chhath_pujaz&HinduCalendarHolidays._add_chhath_pujaK   1     //$&&77

C
 	
r   c                 l    | j                  || j                  j                  | j                              S )aH  
        Add Diwali Festival.

        Diwali (Deepavali, Festival of Lights) is one of the most important
        festivals in Indian religions. It is celebrated during the Hindu
        lunisolar months of Ashvin and Kartika (between mid-October and
        mid-November).
        https://en.wikipedia.org/wiki/Diwali
        )r   r   diwali_dater%   r&   s     r   _add_diwaliz!HinduCalendarHolidays._add_diwaliW   /     //d6J6J6V6VW[WaWa6bccr   c                 l    | j                  || j                  j                  | j                              S r   )r   r   diwali_india_dater%   r&   s     r   _add_diwali_indiaz'HinduCalendarHolidays._add_diwali_indiac   s/    //$&&88D
 	
r   c                 l    | j                  || j                  j                  | j                              S )a%  
        Add Dussehra Festival.

        Dussehra (Vijayadashami) is a major Hindu festival that marks the end
        of Navratri. It is celebrated on the 10th day of the Hindu lunisolar
        month of Ashvin (September-October).
        https://en.wikipedia.org/wiki/Vijayadashami
        )r   r   dussehra_dater%   r&   s     r   _add_dussehraz#HinduCalendarHolidays._add_dussehrah   s1     //$&&44TZZ@
 	
r   c                 l    | j                  || j                  j                  | j                              S )a  
        Add Ganesh Chaturthi.

        Ganesh Chaturthi is a Hindu festival celebrating the birth of Lord Ganesha.
        It falls on the fourth day of the Hindu month of Bhadrapada (August/September).
        https://en.wikipedia.org/wiki/Ganesh_Chaturthi
        )r   r   ganesh_chaturthi_dater%   r&   s     r   _add_ganesh_chaturthiz+HinduCalendarHolidays._add_ganesh_chaturthiu   s1     //$&&<<TZZH
 	
r   c                 l    | j                  || j                  j                  | j                              S )a  
        Add Govardhan Puja.

        Govardhan Puja, also known as Annakut, is celebrated the day after Diwali
        to honor Lord Krishna. It falls on the first lunar day of the Hindu month of Kartika.
        https://en.wikipedia.org/wiki/Govardhan_Puja
        )r   r   govardhan_puja_dater%   r&   s     r   _add_govardhan_pujaz)HinduCalendarHolidays._add_govardhan_puja   s1     //$&&::4::F
 	
r   c                 l    | j                  || j                  j                  | j                              S )z
        Add Gudi Padwa.

        Gudi Padwa is the traditional New Year festival for Maharashtrians.
        It falls on the first day of Chaitra (March-April).
        https://en.wikipedia.org/wiki/Gudi_Padwa
        )r   r   gudi_padwa_dater%   r&   s     r   _add_gudi_padwaz%HinduCalendarHolidays._add_gudi_padwa   1     //$&&66tzzB
 	
r   c                 l    | j                  || j                  j                  | j                              S )a  
        Add Guru Gobind Singh Jayanti.

        Guru Gobind Singh Jayanti commemorates the birth anniversary of
        Guru Gobind Singh, the tenth Sikh Guru. It follows the Nanakshahi calendar.
        https://en.wikipedia.org/wiki/Guru_Gobind_Singh
        )r"   r   guru_gobind_singh_jayanti_dater%   r&   s     r   _add_guru_gobind_singh_jayantiz4HinduCalendarHolidays._add_guru_gobind_singh_jayanti   s1     33$&&EEdjjQ
 	
r   c                 l    | j                  || j                  j                  | j                              S )a  
        Add Guru Nanak Jayanti.

        Guru Nanak Jayanti celebrates the birth anniversary of Guru Nanak,
        the founder of Sikhism. It is observed on the full moon day of
        Kartik (October-November).
        https://en.wikipedia.org/wiki/Guru_Nanak_Gurpurab
        )r   r   guru_nanak_jayanti_dater%   r&   s     r   _add_guru_nanak_jayantiz-HinduCalendarHolidays._add_guru_nanak_jayanti   s1     //$&&>>tzzJ
 	
r   c                 l    | j                  || j                  j                  | j                              S )a  
        Add Holi Festival.

        Holi, known as the Festival of Colors, is a Hindu festival that marks
        the arrival of spring. It is celebrated on the full moon day of the
        Hindu month of Phalguna (February/March).
        https://en.wikipedia.org/wiki/Holi
        )r   r   	holi_dater%   r&   s     r   	_add_holizHinduCalendarHolidays._add_holi   s/     //d6J6J6T6TUYU_U_6`aar   c                 l    | j                  || j                  j                  | j                              S )a  
        Add Janmashtami.

        Janmashtami is a Hindu festival that celebrates the birth of Lord Krishna.
        It falls on the eighth day of the Hindu month of Bhadrapada (August/September).
        https://en.wikipedia.org/wiki/Krishna_Janmashtami
        )r   r   janmashtami_dater%   r&   s     r   _add_janmashtamiz&HinduCalendarHolidays._add_janmashtami   r,   r   c                 l    | j                  || j                  j                  | j                              S )z
        Add Maha Navami.

        Maha Navami is the ninth day of Navratri, dedicated to Goddess Durga.
        It is observed in Ashvin (September-October).
        https://en.wikipedia.org/wiki/Navaratri
        )r   r   maha_navami_dater%   r&   s     r   _add_maha_navamiz&HinduCalendarHolidays._add_maha_navami   r,   r   c                 l    | j                  || j                  j                  | j                              S )z
        Add Maha Shivaratri.

        Maha Shivaratri is a Hindu festival dedicated to Lord Shiva. It is celebrated
        on the 14th night of the Hindu month of Phalguna (February/March).
        https://en.wikipedia.org/wiki/Maha_Shivaratri
        )r   r   maha_shivaratri_dater%   r&   s     r   _add_maha_shivaratriz*HinduCalendarHolidays._add_maha_shivaratri   1     //$&&;;DJJG
 	
r   c                 l    | j                  || j                  j                  | j                              S )z
        Add Mahavir Jayanti.

        Mahavir Jayanti celebrates the birth of Lord Mahavira, the 24th
        Tirthankara of Jainism. It falls on the 13th day of Chaitra (March-April).
        https://en.wikipedia.org/wiki/Mahavir_Jayanti
        )r   r   mahavir_jayanti_dater%   r&   s     r   _add_mahavir_jayantiz*HinduCalendarHolidays._add_mahavir_jayanti   rS   r   c                 l    | j                  || j                  j                  | j                              S )a  
        Add Makar Sankranti.

        Makar Sankranti is a Hindu festival that marks the transition of the Sun
        into Capricorn (Makar). It is celebrated on January 14th or 15th every year.
        https://en.wikipedia.org/wiki/Makar_Sankranti
        )r   r   makar_sankranti_dater%   r&   s     r   _add_makar_sankrantiz*HinduCalendarHolidays._add_makar_sankranti   rS   r   c                 l    | j                  || j                  j                  | j                              S )z
        Add Onam.

        Onam is a major festival in Kerala, celebrating the homecoming of
        King Mahabali. It falls in the month of Chingam (August-September).
        https://en.wikipedia.org/wiki/Onam
        )r   r   	onam_dater%   r&   s     r   	_add_onamzHinduCalendarHolidays._add_onam   s/     //d6J6J6T6TUYU_U_6`aar   c                 l    | j                  || j                  j                  | j                              S )a  
        Add Pongal.

        Pongal is a major harvest festival celebrated in Tamil Nadu, India, marking the
        beginning of the sun's northward journey (Uttarayana). It is usually observed
        on January 14th or 15th every year, coinciding with the Tamil month of Thai.
        The festival is dedicated to the Sun God and marks a season of prosperity and abundance.
        https://en.wikipedia.org/wiki/Pongal_(festival)
        r   r   pongal_dater%   r&   s     r   _add_pongalz!HinduCalendarHolidays._add_pongal  r0   r   c                 l    | j                  || j                  j                  | j                              S )a  
        Add Raksha Bandhan.

        Raksha Bandhan is a Hindu festival that celebrates the bond between
        brothers and sisters. It falls on the full moon day of the Hindu month
        of Shravana (July/August).
        https://en.wikipedia.org/wiki/Raksha_Bandhan
        )r   r   raksha_bandhan_dater%   r&   s     r   _add_raksha_bandhanz)HinduCalendarHolidays._add_raksha_bandhan  r(   r   c                 l    | j                  || j                  j                  | j                              S )z
        Add Ram Navami.

        Ram Navami is a Hindu festival celebrating the birth of Lord Rama.
        It is observed on the ninth day of the Hindu month of Chaitra (March/April).
        https://en.wikipedia.org/wiki/Rama_Navami
        )r   r   ram_navami_dater%   r&   s     r   _add_ram_navamiz%HinduCalendarHolidays._add_ram_navami  r@   r   c                 l    | j                  || j                  j                  | j                              S )a   
        Add Navratri / Sharad Navratri.

        Navratri is a Hindu festival dedicated to the worship of Goddess Durga.
        It is celebrated over nine nights and occurs in the lunar month of Ashvin
        (September/October).
        https://en.wikipedia.org/wiki/Navratri
        )r   r   sharad_navratri_dater%   r&   s     r   _add_sharad_navratriz*HinduCalendarHolidays._add_sharad_navratri(  s1     //$&&;;DJJG
 	
r   c                 l    | j                  || j                  j                  | j                              S )z
        Add Thaipusam.

        Thaipusam is a Tamil Hindu festival celebrated on the full moon
        of the Tamil month of Thai (January/February).
        https://en.wikipedia.org/wiki/Thaipusam
        )r   r   thaipusam_dater%   r&   s     r   _add_thaipusamz$HinduCalendarHolidays._add_thaipusam5  s1     //$&&55djjA
 	
r   c                 p    | j                  || j                  j                  | j                        d      S )aK  
        Add Thiruvalluvar Day and Mattu Pongal.

        Thiruvalluvar Day and Mattu Pongal are celebrated in Tamil Nadu, India, as part
        of the Pongal festival. Thiruvalluvar Day honors the classical Tamil poet and
        philosopher Thiruvalluvar, while Mattu Pongal is dedicated to cattle, recognizing
        their importance in agriculture. Both events usually fall on January 15th or 16th
        each year during the Tamil month of Thai.
        https://en.wikipedia.org/wiki/Thiruvalluvar_Day
        https://en.wikipedia.org/wiki/Pongal_(festival)#Mattu_Pongal
           r   r^   r&   s     r   _add_thiruvalluvar_dayz,HinduCalendarHolidays._add_thiruvalluvar_dayA  s8     //$&&224::>2 0 
 	
r   c                 p    | j                  || j                  j                  | j                        d      S )a  
        Add Uzhavar Thirunal.

        Uzhavar Thirunal is a harvest festival celebrated in Tamil Nadu, India,
        as part of the Pongal festivities. It is dedicated to honoring farmers
        (uzhavar) and their contribution to agriculture. Uzhavar Thirunal usually
        falls on January 16th or 17th each year.
        https://en.wikipedia.org/wiki/Pongal_(festival)#Uzhavar_Thirunal
           r   r^   r&   s     r   _add_uzhavar_thirunalz+HinduCalendarHolidays._add_uzhavar_thirunalQ  s8     //$&&224::>2 0 
 	
r   c                 l    | j                  || j                  j                  | j                              S )z
        Add Vaisakhi.

        Vaisakhi is a major Sikh festival marking the Sikh New Year and the
        founding of the Khalsa. It falls on April 13 or 14.
        https://en.wikipedia.org/wiki/Vaisakhi
        )r   r   vaisakhi_dater%   r&   s     r   _add_vaisakhiz#HinduCalendarHolidays._add_vaisakhi_  s1     //$&&44TZZ@
 	
r   )NF)r
   N)r   )(__name__
__module____qualname____doc__r   strtupler   r   boolintr   r   r   r"   r'   r+   r/   r3   r6   r9   r<   r?   rC   rF   rI   rL   rO   rR   rV   rY   r\   r`   rc   rf   ri   rl   ro   rr   ru    r   r   r	   r	      s    =
 WX

',Xd^T-A'B
PS
	$
 XY(0tTz1B(CQT	T$
8D> 


 


d8D> 
d
$ 


Xd^ 


Xd^ 



8D> 



x~ 



c$i 


x~ 
	b$ 	b

 



 



HTN 



HTN 



HTN 

b$ b
d8D> 
d
8D> 


x~ 


HTN 


htn 


htn 
 
Xd^ 


Xd^ 

r   r	   N)collections.abcr   datetimer   typingr   holidays.calendarsr   holidays.groups.easternr   r	   r~   r   r   <module>r      s%    %   . ;T
3 T
r   