
    x7#h                     X    d dl mZ d dlmZ d dlmZmZ d dlmZ d dl	m
Z
  G d d      Zy)	    )Iterable)date)OptionalUnion)_HebrewLunisolar)
_timedeltac            
          e Zd ZdZddZ	 ddededeee	e   f   de
e   fdZ	 ddedeee	e   f   de
ee      fd	Zddedeee	e   f   de
e   fd
Zddedeee	e   f   de
e   fdZdede
e   fdZ	 ddedeee	e   f   de
e   fdZdede
e   fdZddedeee	e   f   de
e   fdZddedeee	e   f   de
e   fdZy)HebrewCalendarHolidaysz-
    Hebrew lunisolar calendar holidays.
    returnNc                 "    t               | _        y N)r   _hebrew_calendar)selfs    V/var/www/api/v1/venv_getwork_v1/lib/python3.12/site-packages/holidays/groups/hebrew.py__init__zHebrewCalendarHolidays.__init__   s     0 2    namehol_date
days_deltac                     t               }t        |t              r|fn|D ]2  }| j                  |t	        ||            x}s"|j                  |       4 |S r   )set
isinstanceint_add_holidayr   add)r   r   r   r   added_datesdeltadts          r   _add_hebrew_calendar_holidayz3HebrewCalendarHolidays._add_hebrew_calendar_holiday   sY     e&0S&Aj]zQE&&tZ%-HIIrI# R r   c                     | j                   j                  | j                        }|D ]  }| j                  |||        |S )a  
        Add Hanukkah.
        In some Gregorian years, there may be two Hanukkah dates.

        Hanukkah is a Jewish festival commemorating the recovery of Jerusalem
        and subsequent rededication of the Second Temple.
        https://en.wikipedia.org/wiki/Hanukkah
        )r   hanukkah_date_yearr   )r   r   r   dtsr   s        r   _add_hanukkahz$HebrewCalendarHolidays._add_hanukkah&   s?     ##11$**=B--dB
C 
r   c                 n    | j                  || j                  j                  | j                        |      S )a&  
        Add Lag BaOmer.

        Lag BaOmer, also Lag B'Omer or Lag LaOmer, is a Jewish religious holiday celebrated
        on the 33rd day of the Counting of the Omer, which occurs on the 18th day of
        the Hebrew month of Iyar.
        https://en.wikipedia.org/wiki/Lag_BaOmer
        )r   r   lag_baomer_dater"   r   r   r   s      r   _add_lag_baomerz&HebrewCalendarHolidays._add_lag_baomer6   s5     00!!11$**=
 	
r   c                 n    | j                  || j                  j                  | j                        |      S )a  
        Add Passover.

        Passover, also called Pesach, is a major Jewish holiday and one of the Three Pilgrimage
        Festivals. It celebrates the Exodus of the Israelites from slavery in Egypt.
        https://en.wikipedia.org/wiki/Passover
        )r   r   passover_dater"   r'   s      r   _add_passoverz$HebrewCalendarHolidays._add_passoverE   s5     00!!//

;
 	
r   c                 l    | j                  || j                  j                  | j                              S )a+  
        Add Purim.

        Purim is a Jewish holiday that commemorates the saving of the Jewish people
        from annihilation at the hands of an official of the Achaemenid Empire named Haman,
        as it is recounted in the Book of Esther.
        https://en.wikipedia.org/wiki/Purim
        )r   r   
purim_dater"   r   r   s     r   
_add_purimz!HebrewCalendarHolidays._add_purimS   s2     00!!,,TZZ8
 	
r   c                 n    | j                  || j                  j                  | j                        |      S )z
        Add Rosh Hashanah.

        Rosh Hashanah is the New Year in Judaism.
        https://en.wikipedia.org/wiki/Rosh_Hashanah
        )r   r   rosh_hashanah_dater"   r'   s      r   _add_rosh_hashanahz)HebrewCalendarHolidays._add_rosh_hashanaha   s5     00!!44TZZ@
 	
r   c                 l    | j                  || j                  j                  | j                              S )z
        Add Shavuot.

        Shavuot, or Shvues, is a Jewish holiday, one of the biblically ordained
        Three Pilgrimage Festivals. It occurs on the sixth day of the Hebrew month of Sivan.
        https://en.wikipedia.org/wiki/Shavuot
        )r   r   shavuot_dater"   r.   s     r   _add_shavuotz#HebrewCalendarHolidays._add_shavuotp   s2     00!!..tzz:
 	
r   c                 n    | j                  || j                  j                  | j                        |      S )a	  
        Add Sukkot.

        Sukkot, also known as the Feast of Tabernacles or Feast of Booths, is a Torah-commanded
        holiday celebrated for seven days, beginning on the 15th day of the month of Tishrei.
        https://en.wikipedia.org/wiki/Sukkot
        )r   r   sukkot_dater"   r'   s      r   _add_sukkotz"HebrewCalendarHolidays._add_sukkot}   s5     00!!--djj9
 	
r   c                 n    | j                  || j                  j                  | j                        |      S )z
        Add Yom Kippur.

        Yom Kippur (Day of Atonement) is the holiest day of the year in Judaism.
        It occurs annually on the 10th of Tishrei.
        https://en.wikipedia.org/wiki/Yom_Kippur
        )r   r   yom_kippur_dater"   r'   s      r   _add_yom_kippurz&HebrewCalendarHolidays._add_yom_kippur   s5     00!!11$**=
 	
r   )r   N)r   )__name__
__module____qualname____doc__r   strr   r   r   r   r   r   r   r$   r(   r+   r/   r2   r5   r8   r;    r   r   r
   r
      s   3 RS#'5:3;M5N	T BC%*3+=%>	Xd^	 
C 
U3;M5N 
WZ[_W` 

# 
5hsm9K3L 
UXY]U^ 

s 
s4y 
 BC

%*3+=%>
	T

 
T 

 
sHSM7I1J 
SVW[S\ 

C 
U3;M5N 
WZ[_W` 
r   r
   N)collections.abcr   datetimer   typingr   r   holidays.calendarsr   holidays.calendars.gregorianr   r
   rA   r   r   <module>rG      s"    %  " / 3B
 B
r   