a
    “˜ëjéS  ã                ”   @   sÐ  d Z ddlZddlZddlmZmZ ddlmZmZm	Z	m
Z
mZ ddlmZmZmZ ddlmZ ddlmZ dd	lmZ dd
lmZ ddlmZ e
eeeef eeeeef f Ze
eef Z e
eeeef eeeeef f Z!G dd„ dƒZ"dZ#dZ$dZ%dZ&dZ'dZ(dZ)de#› e$› e#› e$› e#› de$› e%› d�
Z*de&› e$› e'› e$› e'› de$› e%› d�
Z+de#› de#› de#› de%› d�	Z,de&› de'› de'› de%› d�	Z-dd„ dD ƒZ.dej/ Z0eded �G d!d"„ d"ej1ƒƒZ2eed#f e"d$œd%d&„Z3ee"d$œd'd(„Z4dÅe
eef e
eef e
eef e	e e"d)œd*d+„Z5dÆe
eef eed-œd.d/„Z6e
deeef e	e d$œd0d1„Z7dÇeeeee	e e"d2œd3d4„Z8eed5œd6d7„Z9d8d9d:d;d<d=d>d?d@dAdBdCdDdEdFdGdHdIdJdKd:dLdMdNdOdPdOdQdRdSdTdUdVdWdXdYdZdZd[d\d]d^d_d_d`dadbdcdddedfdgdhdidjdkdidldmdndodpdqdrdsdtdudvdwdxdydzd{dzd|d}d~dd€d€d�d‚dƒd„d…ddd†d‡dˆd‰dŠd‹dŒd�dŽd�d�d‘d’d“d”d•d–d—d˜d™dšd›dœd�dždŸd d¡d¢d£d¤d¥d¦d§d¨d©dªd«d¬d­d®d¯d°d±d²d³d³d´dµd¶d·d¸d¹dºd»d¼d½d¾d¿dÀdÁdÂœ“Z:dÃdÄ„ e: ;¡ D ƒZ<dS )ÈaZ  Color definitions are used as per the CSS3
[CSS Color Module Level 3](http://www.w3.org/TR/css3-color/#svg-color) specification.

A few colors have multiple names referring to the sames colors, eg. `grey` and `gray` or `aqua` and `cyan`.

In these cases the _last_ color when sorted alphabetically takes preferences,
eg. `Color((0, 255, 255)).as_named() == 'cyan'` because "cyan" comes after "aqua".

Warning: Deprecated
    The `Color` class is deprecated, use `pydantic_extra_types` instead.
    See [`pydantic-extra-types.Color`](../usage/types/extra_types/color_types.md)
    for more information.
é    N)Ú
hls_to_rgbÚ
rgb_to_hls)ÚAnyÚCallableÚOptionalÚUnionÚcast)Ú
CoreSchemaÚPydanticCustomErrorÚcore_schema)Ú
deprecatedé   )Ú_repr)ÚGetJsonSchemaHandler)ÚJsonSchemaValue)ÚPydanticDeprecatedSince20c                   @   s<   e Zd ZdZdZeeeee dœdd„Zeedœdd„Z	d	S )
ÚRGBAz1Internal use only as a representation of a color.©ÚrÚgÚbÚalphaÚ_tuple©r   r   r   r   c                 C   s*   || _ || _|| _|| _||||f| _d S ©Nr   )Úselfr   r   r   r   © r   úM/mnt/bigstor/www/usecases/.venv/lib/python3.9/site-packages/pydantic/color.pyÚ__init__&   s
    zRGBA.__init__)ÚitemÚreturnc                 C   s
   | j | S r   )r   )r   r   r   r   r   Ú__getitem__.   s    zRGBA.__getitem__N)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__Úfloatr   r   r   r!   r   r   r   r   r   !   s   r   z(\d{1,3}(?:\.\d+)?)z\s*,\s*z(\d(?:\.\d+)?|\.\d+|\d{1,2}%)z((-?\d+(?:\.\d+)?|-?\.\d+)(deg|rad|turn)?z(\d{1,3}(?:\.\d+)?)%z8\s*(?:#|0x)?([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])?\s*zD\s*(?:#|0x)?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})?\s*z\s*rgba?\(\s*z(?:z
)?\s*\)\s*z\s*hsla?\(\s*z\s+z
(?:\s*/\s*c                 C   s   h | ]}t |d  dƒ’qS )é   é   ©Úint©Ú.0Úcr   r   r   Ú	<setcomp>D   ó    r/   Ú0123456789abcdefr(   zŠThe `Color` class is deprecated, use `pydantic_extra_types` instead. See https://docs.pydantic.dev/latest/api/pydantic_extra_types_color/.)Úcategoryc                   @   sB  e Zd ZdZdZeddœdd„Zeej	e
edœdd	„ƒZed
œdd„Zddœeedœdd„Zed
œdd„Zed
œdd„Zddœee edœdd„Zed
œdd„Zddœee edœdd„Zed
œdd„Zeee eege	f ej	d œd!d"„ƒZeeed d#œd$d%„ƒZed
œd&d'„Z d(d
œd)d*„Z!eed+œd,d-„Z"e#d
œd.d/„Z$dS )0ÚColorzRepresents a color.)Ú	_originalÚ_rgbaN©Úvaluer    c                 C   sf   |  |  t |ttfƒr"t|ƒ| _n:t |tƒr8t|ƒ| _n$t |tƒrR|j| _|j}n
t	ddƒ‚|| _d S )NÚcolor_errorzAvalue is not a valid color: value must be a tuple, list or string)
Ú
isinstanceÚtupleÚlistÚparse_tupler5   ÚstrÚ	parse_strr3   r4   r
   )r   r7   r   r   r   r   R   s    

ÿzColor.__init__)r   Úhandlerr    c                 C   s   i }|j ddd� |S )NÚstringÚcolor)ÚtypeÚformat)Úupdate)Úclsr   r?   Zfield_schemar   r   r   Ú__get_pydantic_json_schema__d   s    z"Color.__get_pydantic_json_schema__)r    c                 C   s   | j S )z!Original value passed to `Color`.)r4   ©r   r   r   r   Úoriginall   s    zColor.originalF©Úfallback)rJ   r    c             
   C   s„   | j jdu rxtttttf |  ¡ ƒ}z
t| W S  tyt } z.|rV|  ¡ W  Y d}~S t	dƒ|‚W Y d}~q€d}~0 0 n|  ¡ S dS )a<  Returns the name of the color if it can be found in `COLORS_BY_VALUE` dictionary,
        otherwise returns the hexadecimal representation of the color or raises `ValueError`.

        Args:
            fallback: If True, falls back to returning the hexadecimal representation of
                the color instead of raising a ValueError when no named color is found.

        Returns:
            The name of the color, or the hexadecimal representation of the color.

        Raises:
            ValueError: When no named color is found and fallback is `False`.
        Nz=no named color found, use fallback=True, as_hex() or as_rgb())
r5   r   r   r:   r+   Úas_rgb_tupleÚCOLORS_BY_VALUEÚKeyErrorÚas_hexÚ
ValueError)r   rJ   ÚrgbÚer   r   r   Úas_namedp   s    
"zColor.as_namedc                    sˆ   dd„ | j dd… D ƒ}| j jdur6| t| j jƒ¡ d dd„ |D ƒ¡‰ tdd„ |D ƒƒr€d ‡ fd	d„td
tˆ ƒdƒD ƒ¡‰ dˆ  S )aS  Returns the hexadecimal representation of the color.

        Hex string representing the color can be 3, 4, 6, or 8 characters depending on whether the string
        a "short" representation of the color is possible and whether there's an alpha channel.

        Returns:
            The hexadecimal representation of the color.
        c                 S   s   g | ]}t |ƒ‘qS r   ©Úfloat_to_255r,   r   r   r   Ú
<listcomp>“   r0   z Color.as_hex.<locals>.<listcomp>Né   Ú c                 s   s   | ]}|d ›V  qdS )Z02xNr   ©r-   Úvr   r   r   Ú	<genexpr>—   r0   zColor.as_hex.<locals>.<genexpr>c                 s   s   | ]}|t v V  qd S r   )Úrepeat_colorsr,   r   r   r   rZ   ˜   r0   c                 3   s   | ]}ˆ | V  qd S r   r   r,   ©rN   r   r   rZ   ™   r0   r   r(   ú#)r5   r   ÚappendrT   ÚjoinÚallÚrangeÚlen)r   Úvaluesr   r\   r   rN   Š   s    	$zColor.as_hexc              
   C   s€   | j jdu r<dt| j jƒ› dt| j jƒ› dt| j jƒ› d�S dt| j jƒ› dt| j jƒ› dt| j jƒ› dt|  ¡ dƒ› d�	S dS )zFColor as an `rgb(<r>, <g>, <b>)` or `rgba(<r>, <g>, <b>, <a>)` string.Nzrgb(ú, ú)zrgba(r(   )r5   r   rT   r   r   r   ÚroundÚ_alpha_floatrG   r   r   r   Úas_rgbœ   s    0,ÿÿzColor.as_rgb©r   )r   r    c                C   sp   dd„ | j dd… D ƒ\}}}|du rN| j jdu r<|||fS ||||  ¡ fS n|rb||||  ¡ fS |||fS dS )a  Returns the color as an RGB or RGBA tuple.

        Args:
            alpha: Whether to include the alpha channel. There are three options for this input:

                - `None` (default): Include alpha only if it's set. (e.g. not `None`)
                - `True`: Always include alpha.
                - `False`: Always omit alpha.

        Returns:
            A tuple that contains the values of the red, green, and blue channels in the range 0 to 255.
                If alpha is included, it is in the range 0 to 1.
        c                 s   s   | ]}t |ƒV  qd S r   rS   r,   r   r   r   rZ   ´   r0   z%Color.as_rgb_tuple.<locals>.<genexpr>NrV   )r5   r   rg   )r   r   r   r   r   r   r   r   rK   ¦   s    
zColor.as_rgb_tuplec              
   C   s†   | j jdu r@| jdd�\}}}d|d d›d|d›d|d›d	�S | jd
d�\}}}}d|d d›d|d›d|d›dt|dƒ› d	�	S dS )zEColor as an `hsl(<h>, <s>, <l>)` or `hsl(<h>, <s>, <l>, <a>)` string.NFri   zhsl(éh  z0.0frd   z0.0%re   Tr(   )r5   r   Úas_hsl_tuplerf   )r   ÚhÚsÚliÚar   r   r   Úas_hslÀ   s
    "zColor.as_hslc                C   sn   t | jj| jj| jjƒ\}}}|du rL| jjdu r<|||fS ||||  ¡ fS |r`||||  ¡ fS |||fS dS )aS  Returns the color as an HSL or HSLA tuple.

        Args:
            alpha: Whether to include the alpha channel.

                - `None` (default): Include the alpha channel only if it's set (e.g. not `None`).
                - `True`: Always include alpha.
                - `False`: Always omit alpha.

        Returns:
            The color as a tuple of hue, saturation, lightness, and alpha (if included).
                All elements are in the range 0 to 1.

        Note:
            This is HSL as used in HTML and most other places, not HLS as used in Python's `colorsys`.
        N)r   r5   r   r   r   r   rg   )r   r   rl   Úlrm   r   r   r   rk   É   s    
zColor.as_hsl_tuplec                 C   s   | j jd u rdS | j jS )Nr   )r5   r   rG   r   r   r   rg   æ   s    zColor._alpha_float)Úsourcer?   r    c                 C   s   t j| jt  ¡ d�S )N)Zserialization)r   Z"with_info_plain_validator_functionÚ	_validateZto_string_ser_schema)rE   rr   r?   r   r   r   Ú__get_pydantic_core_schema__é   s    
ÿz"Color.__get_pydantic_core_schema__)Ú_Color__input_valueÚ_r    c                 C   s   | |ƒS r   r   )rE   ru   rv   r   r   r   rs   ñ   s    zColor._validatec                 C   s   | j dd�S )NTrI   )rR   rG   r   r   r   Ú__str__õ   s    zColor.__str__z_repr.ReprArgsc                 C   s    d | j dd�fgd|  ¡ fg S )NTrI   rP   )rR   rK   rG   r   r   r   Ú__repr_args__ø   s    zColor.__repr_args__)Úotherr    c                 C   s   t |tƒo|  ¡ | ¡ kS r   )r9   r3   rK   )r   ry   r   r   r   Ú__eq__û   s    zColor.__eq__c                 C   s   t |  ¡ ƒS r   )ÚhashrK   rG   r   r   r   Ú__hash__þ   s    zColor.__hash__)%r"   r#   r$   r%   r&   Ú	ColorTyper   Úclassmethodr   r	   Ú_GetJsonSchemaHandlerr   rF   rH   Úboolr=   rR   rN   rh   r   Ú
ColorTuplerK   rp   ÚHslColorTuplerk   r'   rg   rB   r   r   rt   rs   rw   rx   rz   r+   r|   r   r   r   r   r3   H   s2   þ
	þr3   .r6   c                 C   sz   t | ƒdkr.dd„ | D ƒ\}}}t|||dƒS t | ƒdkrldd„ | dd… D ƒ\}}}t|||t| d ƒƒS tddƒ‚dS )	zÝParse a tuple or list to get RGBA values.

    Args:
        value: A tuple or list.

    Returns:
        An `RGBA` tuple parsed from the input tuple.

    Raises:
        PydanticCustomError: If tuple is not valid.
    rV   c                 s   s   | ]}t |ƒV  qd S r   ©Úparse_color_valuerX   r   r   r   rZ     r0   zparse_tuple.<locals>.<genexpr>Né   c                 s   s   | ]}t |ƒV  qd S r   rƒ   rX   r   r   r   rZ     r0   r8   z:value is not a valid color: tuples must have length 3 or 4)rb   r   Úparse_float_alphar
   )r7   r   r   r   r   r   r   r<     s    r<   c           	      C   sV  |   ¡ }zt| \}}}W n ty,   Y n0 t|||dƒS t t|¡}|r˜| ¡ �^ }}dd„ |D ƒ\}}}|r†t|d dƒd }nd}t||||ƒS t t	|¡}|rð| ¡ �^ }}dd„ |D ƒ\}}}|rÞt|dƒd }nd}t||||ƒS t t
|¡�pt t|¡}|�rt| ¡ Ž S t t|¡�p4t t|¡}|�rHt| ¡ Ž S tdd	ƒ‚dS )
a8  Parse a string representing a color to an RGBA tuple.

    Possible formats for the input string include:

    * named color, see `COLORS_BY_NAME`
    * hex short eg. `<prefix>fff` (prefix can be `#`, `0x` or nothing)
    * hex long eg. `<prefix>ffffff` (prefix can be `#`, `0x` or nothing)
    * `rgb(<r>, <g>, <b>)`
    * `rgba(<r>, <g>, <b>, <a>)`

    Args:
        value: A string representing a color.

    Returns:
        An `RGBA` tuple parsed from the input string.

    Raises:
        ValueError: If the input string cannot be parsed to an RGBA tuple.
    Nc                 s   s   | ]}t |d  dƒV  qdS )r(   r)   Nr*   rX   r   r   r   rZ   7  r0   zparse_str.<locals>.<genexpr>r(   r)   éÿ   c                 s   s   | ]}t |d ƒV  qdS )r)   Nr*   rX   r   r   r   rZ   A  r0   r8   zBvalue is not a valid color: string not recognised as a valid color)ÚlowerÚCOLORS_BY_NAMErM   Úints_to_rgbaÚreÚ	fullmatchÚr_hex_shortÚgroupsr+   Ú
r_hex_longÚr_rgbÚr_rgb_v4_styleÚr_hslÚr_hsl_v4_styleÚ	parse_hslr
   )	r7   Zvalue_lowerr   r   r   ÚmrP   ro   r   r   r   r   r>     s:    r>   )r   r   r   r   r    c                 C   s   t t| ƒt|ƒt|ƒt|ƒƒS )aå  Converts integer or string values for RGB color and an optional alpha value to an `RGBA` object.

    Args:
        r: An integer or string representing the red color value.
        g: An integer or string representing the green color value.
        b: An integer or string representing the blue color value.
        alpha: A float representing the alpha value. Defaults to None.

    Returns:
        An instance of the `RGBA` class with the corresponding color and alpha values.
    )r   r„   r†   r   r   r   r   rŠ   S  s    rŠ   r‡   )r7   Úmax_valr    c                 C   s^   zt | ƒ}W n ty(   tddƒ‚Y n0 d|  kr>|krJn n|| S tddd|iƒ‚dS )a8  Parse the color value provided and return a number between 0 and 1.

    Args:
        value: An integer or string color value.
        max_val: Maximum range value. Defaults to 255.

    Raises:
        PydanticCustomError: If the value is not a valid color.

    Returns:
        A number between 0 and 1.
    r8   z?value is not a valid color: color values must be a valid numberr   zLvalue is not a valid color: color values must be in the range 0 to {max_val}r–   N)r'   rO   r
   )r7   r–   rA   r   r   r   r„   b  s    ýr„   c                 C   sš   | du rdS z6t | tƒr8|  d¡r8t| dd… ƒd }nt| ƒ}W n ty^   tddƒ‚Y n0 t |d¡rpdS d|  kr„dkrŒn n|S tdd	ƒ‚dS )
aZ  Parse an alpha value checking it's a valid float in the range 0 to 1.

    Args:
        value: The input value to parse.

    Returns:
        The parsed value as a float, or `None` if the value was None or equal 1.

    Raises:
        PydanticCustomError: If the input value cannot be successfully parsed as a float in the expected range.
    Nú%éÿÿÿÿéd   r8   z>value is not a valid color: alpha values must be a valid floatr   r   zDvalue is not a valid color: alpha values must be in the range 0 to 1)r9   r=   Úendswithr'   rO   r
   ÚmathÚisclose)r7   r   r   r   r   r†   }  s    r†   )rl   Úh_unitsÚsatÚlightr   r    c                 C   sv   t |dƒt |dƒ }}t| ƒ}|dv r4|d d }n|dkrJ|t t }n|d }t|||ƒ\}}	}
t||	|
t|ƒƒS )a.  Parse raw hue, saturation, lightness, and alpha values and convert to RGBA.

    Args:
        h: The hue value.
        h_units: The unit for hue value.
        sat: The saturation value.
        light: The lightness value.
        alpha: Alpha value.

    Returns:
        An instance of `RGBA`.
    r™   >   ÚdegNrj   Zradr   )r„   r'   Úradsr   r   r†   )rl   r�   rž   rŸ   r   Zs_valueZl_valueZh_valuer   r   r   r   r   r   r”   ›  s    r”   )r.   r    c                 C   s   t t| d ƒƒS )aœ  Converts a float value between 0 and 1 (inclusive) to an integer between 0 and 255 (inclusive).

    Args:
        c: The float value to be converted. Must be between 0 and 1 (inclusive).

    Returns:
        The integer equivalent of the given float value rounded to the nearest whole number.

    Raises:
        ValueError: If the given float value is outside the acceptable range of 0 to 1 (inclusive).
    r‡   )r+   rf   )r.   r   r   r   rT   ·  s    rT   )éð   éø   r‡   )éú   éë   é×   )r   r‡   r‡   )é   r‡   éÔ   )r¢   r‡   r‡   )éõ   r©   éÜ   )r‡   éä   éÄ   )r   r   r   )r‡   r¥   éÍ   )r   r   r‡   )éŠ   é+   éâ   )é¥   é*   r²   )éÞ   é¸   é‡   )é_   éž   é    )r§   r‡   r   )éÒ   éi   é   )r‡   r§   éP   )r™   é•   éí   )r‡   r£   rª   )rª   é   é<   )r   r   é‹   )r   rÁ   rÁ   )r´   é†   é   )é©   rÄ   rÄ   )r   r™   r   )é½   é·   ék   )rÁ   r   rÁ   )éU   rÇ   é/   )r‡   éŒ   r   )é™   é2   éÌ   )rÁ   r   r   )éé   é–   éz   )é�   é¼   rÑ   )éH   é=   rÁ   )rÉ   éO   rÕ   )r   éÎ   éÑ   )é”   r   éÓ   )r‡   r¿   é“   )r   é¿   r‡   )rº   rº   rº   )r»   é�   r‡   )é²   é"   rÞ   )r‡   r¤   r¢   )rÞ   rÁ   rÞ   )r‡   r   r‡   )rª   rª   rª   )r£   r£   r‡   )r‡   r¦   r   )éÚ   r±   é    )é€   rá   rá   )r   rá   r   )é­   r‡   rÉ   )r¢   r‡   r¢   )r‡   rº   é´   )r­   é\   rä   )éK   r   é‚   )r‡   r‡   r¢   )r¢   éæ   rÊ   )rç   rç   r¤   )r‡   r¢   r©   )é|   éü   r   )r‡   r¤   r­   )râ   éØ   rç   )r¢   rá   rá   )éà   r‡   r‡   )r¤   r¤   r¹   )rÙ   rÙ   rÙ   )rÜ   éî   rÜ   )r‡   é¶   éÁ   )r‡   r¸   rÐ   )rà   rÝ   éª   )rµ   rÖ   r¤   )éw   éˆ   rË   )é°   r¬   r³   )r‡   r‡   rë   )r   r‡   r   )rÌ   r­   rÌ   )r¤   r¢   rç   )rá   r   r   )éf   r­   rï   )r   r   r­   )éº   rÈ   rÙ   )rÚ   ép   éÛ   )rÀ   é³   éq   )é{   éh   rì   )r   r¤   éš   )rÓ   r×   rÍ   )éÇ   é   é…   )é   rÿ   rõ   )r©   r‡   r¤   )r‡   r«   éá   )r‡   r«   éµ   )r‡   r³   râ   )r   r   rá   )éý   r©   rç   )rá   rá   r   )rÇ   éŽ   é#   )r‡   r±   r   )r‡   éE   r   )rß   rõ   éÖ   )rì   éè   rï   )é˜   éû   r  )é¯   rì   rì   )rö   rõ   rÚ   )r‡   éï   éÕ   )r‡   rß   é¹   )r­   rþ   é?   )r‡   éÀ   éË   )éÝ   r¸   r  )rò   rë   rç   )rá   r   rá   )r‡   r   r   )rÒ   rÑ   rÑ   )éA   rº   r   )rÁ   r  é   )r¤   rá   ér   )éô   é¤   é`   )é.   rÁ   éW   )r‡   r©   rì   )r¸   éR   é-   )r  r  r  )rµ   rÖ   r¥   )éj   éZ   r­   )rõ   rá   rÜ   )r‡   r¤   r¤   )r   r‡   r§   )éF   ræ   rã   )r¹   rã   rÊ   )r   rá   rá   )rê   rÛ   rê   )r‡   éc   éG   )é@   rë   éÐ   )rì   ræ   rì   )r©   r³   r÷   )r‡   r‡   r‡   )r©   r©   r©   )r‡   r‡   r   )rû   r­   rÌ   )“Z	aliceblueZantiquewhiteZaquaZ
aquamarineZazureZbeigeZbisqueZblackZblanchedalmondZblueZ
bluevioletZbrownZ	burlywoodZ	cadetblueZ
chartreuseZ	chocolateZcoralZcornflowerblueZcornsilkZcrimsonZcyanZdarkblueZdarkcyanZdarkgoldenrodZdarkgrayZ	darkgreenZdarkgreyZ	darkkhakiZdarkmagentaZdarkolivegreenZ
darkorangeZ
darkorchidZdarkredZ
darksalmonZdarkseagreenZdarkslateblueZdarkslategrayZdarkslategreyZdarkturquoiseZ
darkvioletZdeeppinkZdeepskyblueZdimgrayZdimgreyZ
dodgerblueZ	firebrickZfloralwhiteZforestgreenZfuchsiaZ	gainsboroZ
ghostwhiteZgoldZ	goldenrodZgrayZgreenZgreenyellowZgreyZhoneydewZhotpinkZ	indianredZindigoZivoryZkhakiZlavenderZlavenderblushZ	lawngreenZlemonchiffonZ	lightblueZ
lightcoralZ	lightcyanZlightgoldenrodyellowZ	lightgrayZ
lightgreenZ	lightgreyZ	lightpinkZlightsalmonZlightseagreenZlightskyblueZlightslategrayZlightslategreyZlightsteelblueZlightyellowZlimeZ	limegreenZlinenZmagentaZmaroonZmediumaquamarineZ
mediumblueZmediumorchidZmediumpurpleZmediumseagreenZmediumslateblueZmediumspringgreenZmediumturquoiseZmediumvioletredZmidnightblueZ	mintcreamZ	mistyroseZmoccasinZnavajowhiteZnavyZoldlaceZoliveZ	olivedrabZorangeZ	orangeredZorchidZpalegoldenrodZ	palegreenZpaleturquoiseZpalevioletredZ
papayawhipZ	peachpuffZperuZpinkZplumZ
powderblueZpurpleZredZ	rosybrownZ	royalblueZsaddlebrownZsalmonZ
sandybrownZseagreenZseashellZsiennaZsilverZskyblueZ	slateblueZ	slategrayZ	slategreyZsnowZspringgreenZ	steelblueÚtanZtealZthistleZtomatoZ	turquoiseZvioletZwheatZwhiteZ
whitesmokeZyellowZyellowgreenc                 C   s   i | ]\}}||“qS r   r   )r-   ÚkrY   r   r   r   Ú
<dictcomp>\  r0   r%  )N)r‡   )N)=r%   r›   r‹   Zcolorsysr   r   Útypingr   r   r   r   r   Zpydantic_corer	   r
   r   Ztyping_extensionsr   Ú	_internalr   Z#_internal._schema_generation_sharedr   r   Zjson_schemar   Úwarningsr   r:   r+   r'   r�   r=   r}   r‚   r   Z_r_255Z_r_commaZ_r_alphaZ_r_hZ_r_slr�   r�   r�   r’   r‘   r“   r[   Úpir¡   ZRepresentationr3   r<   r>   rŠ   r„   r†   r”   rT   r‰   ÚitemsrL   r   r   r   r   Ú<module>   s~  ""&&
ý 6;4 € í 