
    !g'              	           d dl m Z d dlmZ d dlmZmZmZmZm	Z	m
Z
mZmZmZmZmZ d dlmZmZ d dlmZmZmZmZ d dlmZ  G d deeeee      Z G d	 d
e      Z G d de      Z G d de      Z G d d      Zy)    )gettext)_CustomIslamicHolidays)JANMARAPRMAYJUNJULAUGSEPOCTNOVDEC)BANKPUBLIC)ChristianHolidaysInternationalHolidaysIslamicHolidaysStaticHolidays)HolidayBasec                   V     e Zd ZdZdZeefZdZ e	d      Z
dZdZ fdZd Zd	 Z xZS )
Tanzaniaa  
    References:
    - https://old.tanzlii.org/tz/legislation/act/1962/48/  # 1962
    - https://old.tanzlii.org/tz/legislation/act/1964/52/  # 1964
    - https://old.tanzlii.org/tz/legislation/act/1966/39/  # 1966
    - 1993: https://www.parliament.go.tz/polis/uploads/bills/acts/1566639469-The%20Written%20Laws%20(Miscellaneous%20Amendments)%20Act,%201993.pdf
    - 1994: https://www.parliament.go.tz/polis/uploads/bills/acts/1566638051-The%20Written%20Laws%20(Miscellaneous%20Amendments)%20(No.%202)%20Act,%201994.pdf
    - 2002: http://parliament.go.tz/polis/uploads/bills/acts/1454076376-ActNo-25-2002.pdf
    - https://en.wikipedia.org/wiki/Public_holidays_in_Tanzania
    - http://mytanzaniatimes.blogspot.com/2014/08/holiday-nane-nane-farmers-day-in.html
    - https://www.theeastafrican.co.ke/tea/business/tanzania-declares-public-holiday-on-census-day-3918836
    - https://www.dw.com/en/samia-suluhu-hassan-who-is-tanzanias-new-president/a-56932264

    Checked With:
    - 2023: https://www.bot.go.tz/webdocs/Other/2023%20public%20holidays.pdf
    - 2022: https://www.bot.go.tz/webdocs/Other/PUBLIC%20HOLIDAYS%202022.pdf
    - 2021: https://www.bot.go.tz/webdocs/Other/PUBLIC%20HOLIDAYS%202021.pdf
    - 2020: https://www.bot.go.tz/webdocs/Other/PUBLIC%20HOLIDAYS%202020.pdf
    - 2018: https://issamichuzi.blogspot.com/2017/11/sikukuu-za-kitaifa-zenye-mapumziko-kwa.html
    - from 2013 onwards: https://www.timeanddate.com/holidays/tanzania/

    Limitations:

    - Only works from 1994 onwards due to the lack of sources for certain legislation:
        Government Notices No. 79 of 1977
        Government Notices No. 300 of 1985
        Government Notices No. 296 of 1994

    - Exact Islamic holidays dates are only available for 2013-2023; the rest are estimates.
    TZswz%s (makisio))en_USr   i  c                     t        j                  |        t        j                  |        t        j                  | t               t        j                  | t               t        |   |i | y )N)cls)r   __init__r   r   TanzaniaIslamicHolidaysr   TanzaniaStaticHolidayssuper)selfargskwargs	__class__s      X/var/www/dash_apps/app1/venv/lib/python3.12/site-packages/holidays/countries/tanzania.pyr   zTanzania.__init__F   sS    ""4(&&t,  +BC&<=$)&)    c                 8    | j                  t        d             y )NzSikukuu ya Pasaka)_add_easter_sundaytrr"   s    r&   _populate_bank_holidaysz Tanzania._populate_bank_holidaysM   s     	#6 78r'   c                 b   | j                  t        d             | j                  t        d             | j                  t        d             | j	                  t        d             | j                  t        d             | j                  t        d             | j                  t        d             | j                  dk\  r| j                  t        d	             | j                  t        d
             | j                  t        d             | j                  t        d             | j                  t        d             | j                  t        d             | j                  t        d             | j!                  t        d             | j#                  t        d             y )Nz
Mwaka MpyazMapinduzi ya Zanzibarz`Siku ya kumbukumbu ya Rais wa Kwanza wa Serikali ya Mapinduzi Zanzibar Sheikh Abeid Amani Karumez"Muungano wa Tanganyika na ZanzibarzSikukuu ya WafanyakaziSabasabazSiku ya Wakulimai  zKumbukumbu ya Mwalimu NyererezUhuru na JamhurizKuzaliwa KristozSiku ya Kupeana Zawadiz
Ijumaa KuuzJumatatu ya PasakazEid El-FitryzEid El-HajjMaulidi)_add_new_years_dayr*   _add_holiday_jan_12_add_holiday_apr_7_add_holiday_apr_26_add_labor_day_add_holiday_jul_7_add_holiday_aug_8_year_add_holiday_oct_14_add_holiday_dec_9_add_christmas_day_add_christmas_day_two_add_good_friday_add_easter_monday_add_eid_al_fitr_day_add_eid_al_adha_day_add_mawlid_dayr+   s    r&   _populate_public_holidaysz"Tanzania._populate_public_holidaysU   sm    	< 01 	  $;!<= 	,	
 	  $H!IJ 	B789 	:/ 	#5 67 ::$$R(G%HI 	#5 67 	#4 56 	##B'?$@A 	b./ 	#7 89 	!!"^"45 	!!"]"34 	R	]+r'   )__name__
__module____qualname____doc__countryr   r   supported_categoriesdefault_languager*   estimated_labelsupported_languages
start_yearr   r,   rA   __classcell__)r%   s   @r&   r   r      sD    > G &>(O)J*9D,r'   r   c                       e Zd Zy)r   NrB   rC   rD    r'   r&   r   r          r'   r   c                       e Zd Zy)TZANrN   rO   r'   r&   rR   rR      rP   r'   rR   c                       e Zd Zedfedfedfedfedfedfedfedfed	fed
fedfdZedfedfedfedfedfedfedfe	dfe	dfe	dfe
dfe
d
fdZedfedfedfedffedfedfed	fed
fedfedfedfedfdZy)r                              
      )                                           )r_   r`   ra   rb   rc   rd   re   rf   rg   rh   ri   i           	      N)rB   rC   rD   r   r   r   r
   r	   EID_AL_ADHA_DATESr   r   EID_AL_FITR_DATESr   r   r   MAWLID_DATESrO   r'   r&   r   r      s   BiAhBiBiAhBiBiBiBiBiBi AhBiBiAhBiBiAhBiBiAhBiBi  BiBiQx#r#BiAhBiBiBiBiAhBiLr'   r   c                       e Zd Z ed      Z ed      Z ed      Z ed      Zedefe	defe
defedefedeffed	efd
Zy)r    z,Sikukuu ya Kuapishwa kwa John Pombe Magufuliz$Sikukuu ya Uchaguzi Mkuu wa Tanzaniaz*Siku ya Sensa ya Kitaifa ya Watu na MakazizMazishi cha John Pombe Magufuli   rU   ru   rY   rV   )i  ra   rf   rg   rh   N)rB   rC   rD   r*   john_magufuli_inaugurationtz_election_dayphc_census_dayjohn_magufuli_funeralr   r   r   r   special_public_holidaysrO   r'   r&   r    r      s     "$$R!S ?@O DEN @A B'A12B("+,"+,
 B'	r'   r    N)r   r*   holidays.calendarsr   holidays.calendars.gregorianr   r   r   r   r	   r
   r   r   r   r   r   holidays.constantsr   r   holidays.groupsr   r   r   r   holidays.holiday_baser   r   r   rR   r   r    rO   r'   r&   <module>r      su    " 5 ^ ^ ^ ^ +  .~,"$9?N~,N	 		( 	*4 *Z r'   