
    -eH                        d Z ddlmZ ddlZ ej        e          ZddlmZ erddl	m	Z	 ddl
mZ ddlmZ d	ZddZ e            ZdS )a$   Calendar file of US Holidays from Mozilla provided by `icalendar`_.

License `CC BY-SA 3.0`_

Sourced from: https://www.mozilla.org/en-US/projects/calendar/holidays/

This module contains one list: ``us_holidays``.

.. rubric:: ``us_holidays``

.. code-block::

    [
        (datetime.date(1966, 12, 26), 'Kwanzaa'),
        (datetime.date(2000, 1, 1), "New Year's Day"),
        ...
        (datetime.date(2020, 12, 25), 'Christmas Day (US-OPM)')
    ]

.. bokeh-sampledata-xref:: us_holidays

.. _icalendar: https://pypi.org/project/icalendar/
    )annotationsN)TYPE_CHECKING)datetime   )import_required)package_path)us_holidaysreturnlist[tuple[datetime, str]]c                 8   t          dd          } t          t          d                    5 }| j                            |                                          }ddd           n# 1 swxY w Y   t          d |                                D                       S )z

    	icalendarzVus_holidays data requires icalendar (http://icalendar.readthedocs.org) to be installedzUSHolidays.icsNc              3     K   | ]K}|j         d k    |                    d          j        t          |                    d                    fV  LdS )VEVENTdtstartsummaryN)namegetdtstr).0comps     <lib/python3.11/site-packages/bokeh/sampledata/us_holidays.py	<genexpr>z_read_data.<locals>.<genexpr>R   sY      vv`d`imu`u`u488I&&)3txx	/B/B+C+CD`u`u`u`uvv    )r   openr   Calendar	from_icalreadsortedwalk)icfdatas      r   
_read_datar$   I   s     
&~		B	l+,,	-	- /{$$QVVXX../ / / / / / / / / / / / / / / vvQUQZQZQ\Q\vvvvvvs   -A&&A*-A*)r
   r   )__doc__
__future__r   logging	getLogger__name__logtypingr   r   util.dependenciesr   util.sampledatar   __all__r$   r	    r   r   <module>r0      s    6 # " " " " " g!! !           "!!!!!! 0 / / / / / * * * * * * 	w 	w 	w 	w jllr   