
    x7#h                     @    d dl mZ d dlmZ d dlmZmZ  G d d      Zy)    )date)Optional)THAI_CALENDAR_ThaiLunisolarc                       e Zd ZdZefd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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dee   fdZy)ThaiCalendarHolidaysz
    Thai lunisolar calendar holidays.

    For more info, see class `_ThaiLunisolar`.
    Calendar-type checking are done by `_ThaiLunisolar`.
    returnNc                 2    || _         t        |      | _        y N)_ThaiCalendarHolidays__calendarr   _thai_calendar)selfcalendars     T/var/www/api/v1/venv_getwork_v1/lib/python3.12/site-packages/holidays/groups/thai.py__init__zThaiCalendarHolidays.__init__   s    ",X6    c                 l    | j                  || j                  j                  | j                              S )u   
        Add Asarnha Bucha.

        Asalha Pūjā (also written as Asarnha Bucha Day) is a Buddhist festival
        celebrated on the 15th Waxing Day (Full Moon) of Month 8.

        https://en.wikipedia.org/wiki/Asalha_Puja
        )_add_thai_calendar_holidayr   asarnha_bucha_date_yearr   names     r   _add_asarnha_buchaz'ThaiCalendarHolidays._add_asarnha_bucha   s1     ..$%%88D
 	
r   c                 l    | j                  || j                  j                  | j                              S )z
        Add Boun Haw Khao Padapdin.

        Boun Haw Khao Padapdin (also known as Rice Growing Festival)
        is a Buddhist festival celebrated on the 14th Waning Day of Month 9.

        https://www.timsthailand.com/boon-khao-pradap-din/
        )r   r   boun_haw_khao_padapdin_dater   r   s     r   _add_boun_haw_khao_padapdinz0ThaiCalendarHolidays._add_boun_haw_khao_padapdin-   s1     ..$%%AA$**M
 	
r   c                 l    | j                  || j                  j                  | j                              S )z
        Add Boun Haw Khao Salark.

        Boun Haw Khao Salark (also known as Ancestor Festival)
        is a Buddhist festival celebrated on the 15th Waxing Day of Month 10.

        https://www.timsthailand.com/boon-khao-sak/
        )r   r   boun_haw_khao_salark_dater   r   s     r   _add_boun_haw_khao_salarkz.ThaiCalendarHolidays._add_boun_haw_khao_salark;   s1     ..$%%??

K
 	
r   c                 l    | j                  || j                  j                  | j                              S )a  
        Add Boun Suang Huea.

        Boun Suang Huea Nakhone Luang Prabang (also known as Vientiane Boat Racing Festival)
        is a Buddhist festival celebrated on the 1st Waning Day of Month 11.

        https://sonasia-holiday.com/sonabee/laos-boat-racing-festival
        )r   r   boun_suang_heua_dater   r   s     r   _add_boun_suang_heuaz)ThaiCalendarHolidays._add_boun_suang_heuaI   1     ..$%%::4::F
 	
r   c                 l    | j                  || j                  j                  | j                              S )z
        Add Khao Phansa.

        Start of Buddhist Lent (also written as Khao Phansa Day) is a Buddhist
        festival celebrated on the 1st Waning Day of Month 8.

        https://en.wikipedia.org/wiki/Vassa
        )r   r   khao_phansa_dater   r   s     r   _add_khao_phansaz%ThaiCalendarHolidays._add_khao_phansaW   s1     ..$%%66tzzB
 	
r   c                 l    | j                  || j                  j                  | j                              S )a-  
        Add Loy Krathong.

        Also known as "Boun That Louang" and "Bon Om Touk".
        This concides with the 15th Waxing Day (Full Moon) of Month 12
        in Thai Lunar Calendar.

        https://en.wikipedia.org/wiki/Loy_Krathong
        https://en.wikipedia.org/wiki/Bon_Om_Touk
        )r   r   loy_krathong_dater   r   s     r   _add_loy_krathongz&ThaiCalendarHolidays._add_loy_krathonge   s1     ..$%%77

C
 	
r   c                     |xs | j                   }| j                  || j                  j                  | j                  |            S )un  
        Add Makha Bucha.

        Māgha Pūjā (also written as Makha Bousa and Meak Bochea Day) is a Buddhist
        festival celebrated on the 15th Waxing Day (Full Moon) of Month 3.

        Khmer variant: always fall on Month 3.
        Thai variant:  will use Month 4 instead for Athikamat years.

        https://en.wikipedia.org/wiki/Māgha_Pūjā
        )r   r   r   makha_bucha_dater   r   r   r   s      r   _add_makha_buchaz%ThaiCalendarHolidays._add_makha_buchau   sA     .t..$%%66tzz8L
 	
r   c                 l    | j                  || j                  j                  | j                              S )z
        Add Ok Phansa.

        End of Buddhist Lent (also written as Ok Phansa Day) is a Buddhist
        festival celebrated on the 15th Waxing Day of Month 11.

        https://en.wikipedia.org/wiki/Pavarana
        )r   r   ok_phansa_dater   r   s     r   _add_ok_phansaz#ThaiCalendarHolidays._add_ok_phansa   s1     ..$%%44TZZ@
 	
r   c                 l    | j                  || j                  j                  | j                              S )z
        Add Pchum Ben.

        Also known as "Prachum Bandar".
        This concides with the 15th Waning Day (New Moon) of Month 10 in
        Thai Lunar Calendar.

        https://en.wikipedia.org/wiki/Pchum_Ben
        )r   r   pchum_ben_dater   r   s     r   _add_pchum_benz#ThaiCalendarHolidays._add_pchum_ben   s1     ..$%%44TZZ@
 	
r   c                 l    | j                  || j                  j                  | j                              S )a  
        Add Preah Reach Pithi Chrat Preah Neangkoal.

        Also known as "Cambodian Royal Ploughing Ceremony". This always
        concides with the 4th Waning Day of Month 6 in Khmer Lunar Calendar.

        https://en.wikipedia.org/wiki/Royal_Ploughing_Ceremony
        )r   r   preah_neangkoal_dater   r   s     r   _add_preah_neangkoalz)ThaiCalendarHolidays._add_preah_neangkoal   r#   r   c                 ,    |y| j                  ||      S )zy
        Add Thai calendar holiday.

        If the result from `_ThaiLunisolar` is none then no holidays added.
        N)_add_holiday)r   r   dts      r   r   z/ThaiCalendarHolidays._add_thai_calendar_holiday   s     :  r**r   c                     |xs | j                   }| j                  || j                  j                  | j                  |            S )ap  
        Add Visakha Bucha.

        Vesak (also written as Visakha Bousa Day and Visaka Bochea Day) is a
        Buddhist festival celebrated on the 15th Waxing Day (Full Moon)
        of Month 6.

        Khmer variant: always fall on Month 6.
        Thai variant:  will use Month 7 instead for Athikamat years.

        https://en.wikipedia.org/wiki/Vesak
        )r   r   r   visakha_bucha_dater   r,   s      r   _add_visakha_buchaz'ThaiCalendarHolidays._add_visakha_bucha   sA     .t..$%%88XN
 	
r   )r	   Nr   )__name__
__module____qualname____doc__r   r   r   r   r   r   r   r"   r&   r)   r-   r0   r3   r6   r   r<    r   r   r   r      s     !. 7
(4. 

8D> 

$ 

HTN 

 

$ 
 
x~ 
$
htn 

htn 

HTN 
	+htn 	+
$ 
r   r   N)datetimer   typingr   holidays.calendars.thair   r   r   rA   r   r   <module>rE      s      A{
 {
r   