
    x7#h                         d dl mZmZ d dlmZmZmZ d dlmZm	Z	m
Z
 d dlmZmZmZ  G d deee	      Z G d de      Z G d	 d
e      Z G d d      Zy)    )SEPNOV)ARMED_FORCESHALF_DAYPUBLIC)ChristianHolidaysInternationalHolidaysStaticHolidays)ObservedHolidayBaseSAT_TO_PREV_FRISUN_TO_NEXT_MONc                   >     e Zd ZdZdZeeefZdZ	dZ
 fdZd Z xZS )Palaua  Palau holidays.

    References:
        * [Chapter 7, Holidays](http://www.paclii.org/pw/legis/consol_act/gpt1262/)
        * <https://www.palaugov.pw/wp-content/uploads/2017/11/RPPL-No.-10-15-re.-Family-Day-Holiday.pdf>
        * [EO336 Memorial Day repealed](https://www.facebook.com/PalauPresident/posts/195883107230463)
        * [Earliest source for President's Day](https://www.taiwanembassy.org/pal_en/post/792.html)

    If any of the holidays enumerated in section 701 of this chapter falls on Sunday, the
    following Monday shall be observed as a holiday. If any of the holidays enumerated in
    section 701 of this chapter falls on Saturday, the preceding Friday shall be observed
    as a holiday.

    As there's no record of President's Day (Jun 1) and Independence Day (Oct 1) being
    legal holiday before 2017, as seen in RPRL 10-15, they shall be assumed to start in 2018
    for our current implementation.
    PWz%s (observed)i  c                     t        j                  |        t        j                  |        t        j                  | t               |j                  dt        t        z          t        |   |i | y )Nobserved_rule)	r   __init__r	   r
   PalauStaticHolidays
setdefaultr   r   super)selfargskwargs	__class__s      X/var/www/api/v1/venv_getwork_v1/lib/python3.12/site-packages/holidays/countries/palau.pyr   zPalau.__init__/   sW    ""4(&&t,&9:/?_+LM$)&)    c                 J   d}| j                  | j                  |             | j                  | j                  |t               | j                  | j	                  d             | j                  | j                  d             | j                  dv r| j                  d       | j                  dk\  r | j                  | j                  d             | j                  | j                  d	             | j                  d
       | j                  dk\  r | j                  | j                  d             | j                  | j                  d             | j                  d       | j                  dk\  r| j                  d       | j                  | j                  d             y )NzNew Year's Day)namerulez	Youth DayzSenior Citizens Day>       zMemorial Dayi  zPresident's DayzConstitution Dayz	Labor DayzIndependence DayzUnited Nations DayzThanksgiving Dayi  z
Family DayzChristmas Day)_add_observed_add_new_years_day_next_year_new_years_dayr   _add_holiday_mar_15_add_holiday_may_5_year_add_holiday_last_mon_of_may_add_holiday_jun_1_add_holiday_jul_9_add_holiday_1st_mon_of_sep_add_holiday_oct_1_add_united_nations_day_add_holiday_4th_thu_of_nov_add_holiday_4th_fri_of_nov_add_christmas_day)r   r   s     r   _populate_public_holidayszPalau._populate_public_holidays6   sh     422489488t/Z 	433K@A 	4223HIJ::%--n=::t667HIJ 	4223EFG 	((5::t667IJK 	4778LMN 	(();<::,,\: 	422?CDr   )__name__
__module____qualname____doc__countryr   r   r   supported_categoriesobserved_label
start_yearr   r1   __classcell__)r   s   @r   r   r      s3    $ G((F;$N
 J*+Er   r   c                       e Zd Zy)r   Nr2   r3   r4    r   r   r   r   d       r   r   c                       e Zd Zy)PLWNr<   r=   r   r   r@   r@   h   r>   r   r@   c                   :    e Zd ZdZdeddfiZdeddfiZdedd	fiZy
)r   a4  Palau special holidays.

    References:
        * <https://www.facebook.com/photo?fbid=1774513196034105&set=a.175933635892077>
        * <https://www.facebook.com/photo/?fbid=1794692910682800&set=a.175933635892077>
        * <https://www.facebook.com/photo/?fbid=1408133829338712&set=a.175933635892077>
    i     zVeterans Dayi     zBPreparation for the 25th Independence Day of the Republic of Palau   zNational Day of DemocracyN)	r2   r3   r4   r5   r   special_armed_forces_holidaysr   special_half_day_holidaysspecial_public_holidaysr=   r   r   r   r   l   sK     	sB'%!
 	sB\]!
 	sA23r   r   N)holidays.calendars.gregorianr   r   holidays.constantsr   r   r   holidays.groupsr   r	   r
   holidays.observed_holiday_baser   r   r   r   r   r@   r   r=   r   r   <module>rL      sV    2 = = T T ` `NE!24I NEb	 		% 	 r   