o
    c&                     @   s  U d dl Z d dlZd dlZd dlZd dlZd dlZd dl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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" zd dl#Z$d
Z%W n e&y~   dZ%Y nw ddl'm(Z( ddl)m*Z* ddl+m,Z, ddl-m.Z. ddl/m0Z0 ddl1m2Z2 ddl3m4Z4m5Z5 ddl6m7Z7 ddl8m9Z9 erddl:m;Z;m<Z<m=Z=m>Z>m?Z?m@Z@ dhZAdedeBfddZCdeded fddZDdeEdeBfdd ZFeGd!g ZHdeEdeBfd"d#ZI		$						d}d%ed&ed' d(d)d*eBd+eBd,eeJ d-eeJ d.eeJ d/eBddfd0d1ZKdeEd2e eLeeLd3f f deBfd4d5ZM		$						d}d&ed' d(d)d*eBd+eBd,eeJ d-eeJ d.eeJ d/eBddfd6d7ZNG d8d9 d9e4ZOd:eeef deePePePf fd;d<ZQd:d=deePePePf fd>d?ZRejSd@dA eeRe
eQedBdA edCdA eTdDdA edEdA eUdFdA eVdGdA e	dHdA eWdIdA eXdJdA edKdA iZYeeLeegeePePePf f f eZdL< eXeY[ Z\eTejSeefZ]dedeBfdMdNZ^eG dOdP dPZ_eG dQdR dRZ`dedeBfdSdTZa			d~d:ed,eeJ d-eeJ d.eeJ de_f
dUdVZbdWdXdddddYd:edZeJd[eJd,eeJ d-eeJ d.eeJ d/eBdePfd\d]Zcdd
ddddd^d:ed&ed' d+eBd,eeJ d-eeJ d.eeJ d/eBddfd_d`ZdeedakrG dbdc dcZfd ddlmgZg G dedf dfegZhe
eJZidgeidh< ddidjdkdlh dmgeUh dne
eVdog dpieg dqdrehdsdtdudvdwdxgef dyZjejdh kej d dzllmmZm G d{d| d|ZnemeOen  dS dS )    N)array)CounterUserDictUserListdefaultdictdeque)	dataclassfieldsis_dataclass)isclass)islice)MappingProxyType)TYPE_CHECKINGAnyCallableDefaultDictDictIterableListOptionalSequenceSetTupleUnion)RichReprResultTF   get_console)	loop_last)	pick_bool)RichRenderablecell_len)ReprHighlighter)JupyterMixinJupyterRenderable)Measurement)Text)ConsoleConsoleOptionsHighlighterTypeJustifyMethodOverflowMethodRenderResultzmatplotlib.artist.Artistobjreturnc                 C   s   t ott| S )z1Check if an object was created with attrs module.)
_has_attrs_attr_modulehastyper.    r5   D/opt/certbot/lib/python3.10/site-packages/pip/_vendor/rich/pretty.py_is_attr_objectA   s   r7   z_attr_module.Attribute[Any]c                 C   s   t r	tt| S g S )zGet fields for an attrs object.)r0   r1   r	   r3   r4   r5   r5   r6   _get_attr_fieldsF   s   r8   c                 C   s(   z	| j jjtjkW S  ty   Y dS w )zCheck if an instance of a dataclass contains the default repr.

    Args:
        obj (object): A dataclass instance.

    Returns:
        bool: True if the default repr is used, False if there is a custom repr.
    F)__repr____code__co_filenamedataclasses__file__	Exceptionr4   r5   r5   r6   _is_dataclass_reprK   s
   r?   _dummy_namedtuplec              	   C   s@   d}zt | j}W n ttfy   Y nw t tj}||kS )zCheck if an instance of namedtuple contains the default repr

    Args:
        obj (object): A namedtuple

    Returns:
        bool: True if the default repr is used, False if there's a custom repr.
    N)inspectgetfiler9   OSError	TypeErrorr@   )r.   obj_filedefault_repr_filer5   r5   r6   _has_default_namedtuple_repr_   s   	rG   ignorevalueconsoler(   overflowr,   cropindent_guides
max_length
max_string	max_depth
expand_allc	                 C   s   ddl m}	 ddlm}
 t| ts| d u rd S |pt }|jrPg d}|D ]#}t| |d }t	
|rHz| }W n	 ty@   Y q%w |d urH d S q%|	| trPd S t| |
rY|  |jt| trb| nt| ||||||dd|dd d S )	Nr   )is_object_one_of_types)ConsoleRenderable)_repr_html__repr_markdown__repr_json__repr_latex__repr_jpeg_
_repr_png_
_repr_svg__repr_mimebundle_   )rK   rM   rN   rO   rP   rQ   marginT)rL   new_line_start)_inspectrR   rJ   rS   _safe_isinstancer%   r   
is_jupytergetattrrA   ismethodr>   JUPYTER_CLASSES_TO_NOT_RENDERlineprintr    Pretty)rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   ipython_repr_methodsrepr_methodmethodrepr_resultr5   r5   r6   _ipy_display_hooks   sL   







rl   class_or_tuple.c                 C   s"   zt | |W S  ty   Y dS w )zFisinstance can fail in rare cases, for example types with no __class__F)
isinstancer>   )r.   rm   r5   r5   r6   r`      s
   r`   c              	      s   ddl m  p
   dusJ dtddf fdd}z%t }	ddlm}
 G fd	d
d
|
}| }||	jjd< W dS  tyU   |t	_
Y dS w )a  Install automatic pretty printing in the Python REPL.

    Args:
        console (Console, optional): Console instance or ``None`` to use global console. Defaults to None.
        overflow (Optional[OverflowMethod], optional): Overflow method. Defaults to "ignore".
        crop (Optional[bool], optional): Enable cropping of long lines. Defaults to False.
        indent_guides (bool, optional): Enable indentation guides. Defaults to False.
        max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
            Defaults to None.
        max_string (int, optional): Maximum length of string before truncating, or None to disable. Defaults to None.
        max_depth (int, optional): Maximum depth of nested data structures, or None for no maximum. Defaults to None.
        expand_all (bool, optional): Expand all containers. Defaults to False.
        max_frames (int): Maximum number of frames to show in a traceback, 0 for no maximum. Defaults to 100.
    r   r   NrI   r/   c              
      sV   | dur) dus
J dt _ jt| tr| n
t| dd | t _dS dS )z?Replacement sys.displayhook which prettifies objects with Rich.N)rK   rM   rN   rO   rP   rQ   )rL   )builtins_rf   r`   r    rg   )rI   )rJ   rL   rQ   rM   rP   rN   rO   rK   r5   r6   display_hook   s&   	
zinstall.<locals>.display_hook)BaseFormatterc                       s<   e Zd ZU dZeed< dedef fddZdS )zinstall.<locals>.RichFormatterTpprintrI   r/   c              
      s(   | j rt|  dS t|S )N)rJ   rK   rM   rN   rO   rP   rQ   )rs   rl   repr)selfrI   rQ   r   rM   rP   rN   rO   rK   r5   r6   __call__  s   z'install.<locals>.RichFormatter.__call__N)__name__
__module____qualname__rs   bool__annotations__r   rw   r5   rv   r5   r6   RichFormatter   s   
 &r}   z
text/plain)pip._vendor.richr   r   get_ipythonIPython.core.formattersrr   display_formatter
formattersr>   sysdisplayhook)rJ   rK   rL   rM   rN   rO   rP   rQ   rq   iprr   r}   rich_formatterr5   )	rJ   rL   rQ   r   rM   rP   rN   rO   rK   r6   install   s   
$ r   c                   @   s   e Zd ZdZ	d$dddddddddddddeded	 d
eded ded dee dedee dee dee dedededdfddZ						d%dd Z							!d&d"d#Z
dS )'rg   ak  A rich renderable that pretty prints an object.

    Args:
        _object (Any): An object to pretty print.
        highlighter (HighlighterType, optional): Highlighter object to apply to result, or None for ReprHighlighter. Defaults to None.
        indent_size (int, optional): Number of spaces in indent. Defaults to 4.
        justify (JustifyMethod, optional): Justify method, or None for default. Defaults to None.
        overflow (OverflowMethod, optional): Overflow method, or None for default. Defaults to None.
        no_wrap (Optional[bool], optional): Disable word wrapping. Defaults to False.
        indent_guides (bool, optional): Enable indentation guides. Defaults to False.
        max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
            Defaults to None.
        max_string (int, optional): Maximum length of string before truncating, or None to disable. Defaults to None.
        max_depth (int, optional): Maximum depth of nested data structures, or None for no maximum. Defaults to None.
        expand_all (bool, optional): Expand all containers. Defaults to False.
        margin (int, optional): Subtrace a margin from width to force containers to expand earlier. Defaults to 0.
        insert_line (bool, optional): Insert a new line if the output has multiple new lines. Defaults to False.
    N   Fr   )indent_sizejustifyrK   no_wraprM   rN   rO   rP   rQ   r]   insert_line_objecthighlighterr*   r   r   r+   rK   r,   r   rM   rN   rO   rP   rQ   r]   r   r/   c                C   sX   || _ |pt | _|| _|| _|| _|| _|| _|| _|	| _	|
| _
|| _|| _|| _d S N)r   r#   r   r   r   rK   r   rM   rN   rO   rP   rQ   r]   r   )ru   r   r   r   r   rK   r   rM   rN   rO   rP   rQ   r]   r   r5   r5   r6   __init__+  s   
zPretty.__init__rJ   r(   optionsr)   r-   c              	   c   s    t | j|j| j | j| j| j| j| jd}t	j
|| jp|j| jp#|jt| j|jdd}|r4| |nt	t| j ddd}| jrN|jsN|j| jdd}| jrXd|v rXd	V  |V  d S )
N	max_widthr   rN   rO   rP   rQ   pretty)r   rK   r   stylez.__repr__ returned empty stringz
dim italic)r   zrepr.indent
 )pretty_reprr   r   r]   r   rN   rO   rP   rQ   r'   	from_ansir   rK   r   r   r   r3   rM   
ascii_onlywith_indent_guidesr   )ru   rJ   r   
pretty_strpretty_textr5   r5   r6   __rich_console__J  s>   
	

	
zPretty.__rich_console__r&   c                 C   sH   t | j|j| j| j| j| jd}|rtdd | D nd}t	||S )N)r   r   rN   rO   rQ   c                 s       | ]}t |V  qd S r   r!   .0re   r5   r5   r6   	<genexpr>y      z*Pretty.__rich_measure__.<locals>.<genexpr>r   )
r   r   r   r   rN   rO   rQ   max
splitlinesr&   )ru   rJ   r   r   
text_widthr5   r5   r6   __rich_measure__m  s   	
zPretty.__rich_measure__r   )rJ   r(   r   r)   r/   r-   )rJ   r(   r   r)   r/   r&   )rx   ry   rz   __doc__r   r   intr{   r   r   r   r5   r5   r5   r6   rg     st    	


#rg   r   c                 C      d| j ddd| j dfS )Nzdefaultdict(z, {})z, {}))default_factoryr   r5   r5   r6   _get_braces_for_defaultdict~  s   r   z
array[Any]c                 C   r   )Nzarray(z, [])))typecoder   r5   r5   r6   _get_braces_for_array  s   r   c                 C      dS )N)z	environ({r   zenviron({})r5   r   r5   r5   r6   <lambda>      r   c                 C   r   )N)z	Counter({r   z	Counter()r5   r   r5   r5   r6   r     r   c                 C   r   )N)zdeque([r   zdeque()r5   r   r5   r5   r6   r     r   c                 C   r   N){}z{}r5   r   r5   r5   r6   r     r   c                 C   r   r   r5   r   r5   r5   r6   r     r   c                 C   r   )N)zfrozenset({r   zfrozenset()r5   r   r5   r5   r6   r     r   c                 C   r   N)[]z[]r5   r   r5   r5   r6   r     r   c                 C   r   r   r5   r   r5   r5   r6   r     r   c                 C   r   )N)r   r   zset()r5   r   r5   r5   r6   r     r   c                 C   r   )N)(r   ()r5   r   r5   r5   r6   r     r   c                 C   r   )N)zmappingproxy({r   zmappingproxy({})r5   r   r5   r5   r6   r     r   _BRACESc                 C   s.   t | tpt| pt| dpt| ot|  S )z3Check if an object may be expanded by pretty print.__rich_repr__)r`   _CONTAINERSr
   hasattrr7   r   r4   r5   r5   r6   is_expandable  s   
r   c                	   @   s   e Zd ZU dZdZeed< dZeed< dZeed< dZ	eed< dZ
eed< dZeed	< dZeed
< dZeed< dZeed   ed< dZdZeed< dee fddZdededefddZdefddZ	d!dedededefdd ZdS )"Nodez4A node in a repr tree. May be atomic or a container.r   key_repr
value_repr
open_braceclose_braceemptyFlastis_tupleis_namedtupleNchildrenz: z, 	separatorr/   c                 c   s    | j r| j V  | jV  | jr| jV  dS | jdur\| jrV| jV  | jr<| js<t| jdkr<| jd  E dH  dV  n| jD ]}| E dH  |j	sO| j
V  q?| jV  dS | jV  dS dS )zGenerate tokens for this node.Nr   r   ,)r   key_separatorr   r   r   r   r   leniter_tokensr   r   r   r   )ru   childr5   r5   r6   r     s(   

zNode.iter_tokensstart_lengthrN   c                 C   s0   |}|   D ]}|t|7 }||kr dS qdS )a*  Check the length fits within a limit.

        Args:
            start_length (int): Starting length of the line (indent, prefix, suffix).
            max_length (int): Maximum length.

        Returns:
            bool: True if the node can be rendered within max length, otherwise False.
        FT)r   r"   )ru   r   rN   total_lengthtokenr5   r5   r6   check_length  s   
zNode.check_lengthc                 C   s   d |  }|S Nr   )joinr   )ru   	repr_textr5   r5   r6   __str__  s   zNode.__str__P   r   r   r   rQ   c                 C   s   t | ddg}d}|t|k r5|| }|jr+|js+|s ||s+|||||d < |d7 }|t|k sddd |D }|S )al  Render the node to a pretty repr.

        Args:
            max_width (int, optional): Maximum width of the repr. Defaults to 80.
            indent_size (int, optional): Size of indents. Defaults to 4.
            expand_all (bool, optional): Expand all levels. Defaults to False.

        Returns:
            str: A repr string of the original object.
        T)nodeis_rootr   r   r   c                 s   r   r   )strr   r5   r5   r6   r     r   zNode.render.<locals>.<genexpr>)_Liner   
expandableexpandedr   expandr   )ru   r   r   rQ   linesline_nore   repr_strr5   r5   r6   render  s   zNode.render)r   r   F)rx   ry   rz   r   r   r   r|   r   r   r   r   r   r{   r   r   r   r   r   r   r   r   r   r   r   r   r   r5   r5   r5   r6   r     s4   
 r   c                   @   s   e Zd ZU dZdZed  ed< dZeed< dZ	ee
 ed< dZeed< dZeed	< dZeed
< dZeed< dZeed< edefddZdedefddZdeded  fddZdefddZdS )r   zA line in repr output.NparentFr   r   r   textsuffix
whitespacer   r   r/   c                 C   s   t | jduo	| jjS )z"Check if the line may be expanded.N)r{   r   r   ru   r5   r5   r6   r   	  s   z_Line.expandablerN   c                 C   s:   t | jt| j t| j }| jdusJ | j||S )z4Check this line fits within a given number of cells.N)r   r   r"   r   r   r   r   )ru   rN   r   r5   r5   r6   r     s   z_Line.check_lengthr   c                 c   s    | j }|dus
J | j}|jsJ |jr&t|j |j |j |dV }nt|j|dV }| jd|  }|jo>t|jdk}t	|jD ]\}}|rLdn|j
}	t||||	|oX| d}
|
V  qDt|j|| j| jdV  dS )z6Expand this line by adding children on their own line.N)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   )ru   r   r   r   new_linechild_whitespacetuple_of_oner   r   r   re   r5   r5   r6   r     s:   

z_Line.expandc                 C   sD   | j r| j | j | jpd S | j | j | jpd | j  S r   )r   r   r   r   r   rstripr   r5   r5   r6   r   7  s   "z_Line.__str__)rx   ry   rz   r   r   r   r|   r   r{   r   r   r   r   r   r   r   r   propertyr   r   r   r   r   r   r5   r5   r5   r6   r     s   
 !r   c                 C   s:   zt | dd}W n
 ty   Y dS w t| tot|tS )aX  Checks if an object is most likely a namedtuple. It is possible
    to craft an object that passes this check and isn't a namedtuple, but
    there is only a minuscule chance of this happening unintentionally.

    Args:
        obj (Any): The object to test

    Returns:
        bool: True if the object is a namedtuple. False otherwise.
    _fieldsNF)rb   r>   rn   tuple)r.   r	   r5   r5   r6   _is_namedtuple@  s   r   c              	      sd   dt dtffddt jjddt dtdtdtf fd	d
  | dd}|S )a`  Traverse object and generate a tree.

    Args:
        _object (Any): Object to be traversed.
        max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
            Defaults to None.
        max_string (int, optional): Maximum length of string before truncating, or None to disable truncating.
            Defaults to None.
        max_depth (int, optional): Maximum depth of data structures, or None for no maximum.
            Defaults to None.

    Returns:
        Node: The root of a tree structure which can be used to render a pretty repr.
    r.   r/   c              
      s    dur$t | ttfr$t|  kr$t|   }| d  d| }|S zt| }W |S  tyF } zdt|d}W Y d}~|S d}~ww )z0Get repr string for an object, but catch errors.N+z<repr-error >)r`   bytesr   r   rt   r>   )r.   	truncatedobj_reprerror)rO   r5   r6   to_reprh  s"   

ztraverse.<locals>.to_reprFr   rootdepthc           #   	      s  t }|v rtddS t}tjjtjjf}duo |k}dtdtt	tt
ttf f  fdd}ztd}W n tyF   d	}Y nw d}	|sdztd
rYtsY }	W n	 tyc   Y nw |	dur| tjdd	}
t||	}jj}|rg }|j}|r|
rtd| dd}nnt| dd}ne|
rtd| dd||dd}nt| dd||d}t|D ]2\}}t|tr|\}}||d d}||_||_d|_|| q||d d}||_|| qnt|
rd| dn| dg |d}| n?tr|s| g }|j}t  r|r-tjj dd}nbtjj dd||d}dtt
tttttgtf  f  f fdd}t| D ]*\}\}}}|rktt||d}n||d d}||_||_d|_|| qWntjj dg |d}| ntrtts|st s|dkr| g }|j}|rtjj dd}n8tjj dd||d}tdd t!D D ]\}}t|j"|d d}|j"|_||_d|_|| q܈| nDt#r]t$r]| jj}|r t| dd}n8g }|j}t| dd|| dd}t% & D ]\}\}}||d d}||_||_d|_|| q;| ntt'r>t'D ]}t|rq|} nqe| t(| \}}}|rt| d| d}n|j)tj)krt|d }nr2g }t||||d}|j}t*}|d }tt+rt,& } durt-| } t.| D ]\}!\}}||d d}||_|!|k|_|| qn)t,}"durt-|"}"t.|"D ]\}!}||d d}|!|k|_|| qdur1|kr1|td!|  d"d  nt|g |d#}| nt|d }tt|_/t#|_0|S )$zWalk the object depth first.z...)r   N	rich_argsr/   c                 s   s    | D ]<}t |tr<t|dkr |\}}}||krq||fV  qt|dkr0|\}}||fV  qt|dkr;|d V  q|V  qd S )N      r   r   )r`   r   r   )r   argkeyr   defaultr5   r5   r6   iter_rich_args  s    


z3traverse.<locals>._traverse.<locals>.iter_rich_args,awehoi234_wdfjwljet234_234wdfoijsdfmmnxpi492Fr   angular<z...>z(...)r   r   )r   r   r   r   r   r   r   )r   r   r   r   r   )r   =r   )r   r   r   c                  3   sx     D ]6} | j r9zt| j}W n ty) } z| j|dfV  W Y d}~qd}~ww | j|t| j r5| j ndfV  qdS )z$Iterate over attr fields and values.N)rt   rb   namer>   callable)attrrI   r   attr_fieldsr.   r5   r6   
iter_attrs  s   z/traverse.<locals>._traverse.<locals>.iter_attrs)r      c                 s   s    | ]}|j r|V  qd S r   )rt   )r   fieldr5   r5   r6   r     s    
z.traverse.<locals>._traverse.<locals>.<genexpr>)r   r   r   r   )r   r   z... +T)r   r   r   )1idr   r3   r   version_infomajorminorr   r   r   r   r   r   r>   r   r   rb   list	__class__rx   appendr   r`   r   r   r   r   r7   r8   r   r   r
   r?   r	   r	  r   rG   _asdictitemsr   r   r9   r   _MAPPING_CONTAINERSiterr   	enumerater   r   )#r.   r   r   obj_idobj_type
py_versionreached_max_depthr  fake_attributesrich_repr_resultr  args
class_namer   r  r   r   r  r  r   
child_noder  r	  rI   repr_callabler  container_typer   r   r   	num_itemslast_item_index
iter_itemsindexiter_values)	_traverserP   rN   pop_visitedpush_visitedr   visited_idsr  r6   r-  |  s  
&















ztraverse.<locals>._traverseT)r   N)Fr   )r   r   setaddremover{   r   r   )r   rN   rO   rP   r   r5   )r-  rP   rN   rO   r.  r/  r   r0  r6   traverseS  s   , |r4  r   r   r   r   r   c          	      C   s4   t | tr| }nt| |||d}|j|||d}|S )a  Prettify repr string by expanding on to new lines to fit within a given width.

    Args:
        _object (Any): Object to repr.
        max_width (int, optional): Desired maximum width of repr string. Defaults to 80.
        indent_size (int, optional): Number of spaces to indent. Defaults to 4.
        max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
            Defaults to None.
        max_string (int, optional): Maximum length of string before truncating, or None to disable truncating.
            Defaults to None.
        max_depth (int, optional): Maximum depth of nested data structure, or None for no depth.
            Defaults to None.
        expand_all (bool, optional): Expand all containers regardless of available width. Defaults to False.

    Returns:
        str: A possibly multi-line representation of the object.
    )rN   rO   rP   )r   r   rQ   )r`   r   r4  r   )	r   r   r   rN   rO   rP   rQ   r   r   r5   r5   r6   r   {  s   
r   )rJ   rM   rN   rO   rP   rQ   c             
   C   s6   |du rt  n|}|jt| |||||dddd dS )a  A convenience function for pretty printing.

    Args:
        _object (Any): Object to pretty print.
        console (Console, optional): Console instance, or None to use default. Defaults to None.
        max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
            Defaults to None.
        max_string (int, optional): Maximum length of strings before truncating, or None to disable. Defaults to None.
        max_depth (int, optional): Maximum depth for nested data structures, or None for unlimited depth. Defaults to None.
        indent_guides (bool, optional): Enable indentation guides. Defaults to True.
        expand_all (bool, optional): Expand all containers. Defaults to False.
    NrH   )rN   rO   rP   rM   rQ   rK   T)	soft_wrap)r   rf   rg   )r   rJ   rM   rN   rO   rP   rQ   _consoler5   r5   r6   rs     s   	
rs   __main__c                   @      e Zd ZdefddZdS )
BrokenReprr/   c                 C   s   dd  dS )Nr   r   zthis will failr5   r   r5   r5   r6   r9     s   zBrokenRepr.__repr__Nrx   ry   rz   r   r9   r5   r5   r5   r6   r9        r9  )
NamedTuplec                   @   s:   e Zd ZU eed< eed< eed< eed< ee ed< dS )StockKeepingUnitr	  descriptionpricecategoryreviewsN)rx   ry   rz   r   r|   floatr   r5   r5   r5   r6   r=    s   
 r=     foozHello World!gZd;Y@gʡE3t@g    cA>   r   r   r   r   rC  r        >   r   r   r   crumble)applerhubarbbuttersugarflour)rI  orangepearkumquatrP  X  duriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurian)FTNzSparkling British Spring WaterzCarbonated spring waterg?waterzits amazing!zits terrible!)rD  barr   counteratomic
namedtupleBroken)rf   c                   @   r8  )Thingr/   c                 C   r   )NzHello[38;5;239m World!r5   r   r5   r5   r6   r9     s   zThing.__repr__Nr:  r5   r5   r5   r6   rX    r;  rX  )NrH   FFNNNF)NNN)oro   collectionsr<   rA   osr   r   r   r   r   r   r   r   r	   r
   r   	itertoolsr   typesr   typingr   r   r   r   r   r   r   r   r   r   r   r   pip._vendor.rich.reprr   r  r1   r0   ImportErrorr   r   _loopr   _pickr   abcr    cellsr"   r   r#   jupyterr$   r%   measurer&   r   r'   rJ   r(   r)   r*   r+   r,   r-   rd   r{   r7   r8   objectr?   rV  r@   rG   r   rl   r3   r`   r   rg   r   r   r   _Environdict	frozensetr  r1  r   r   r|   keysr   r  r   r   r   r   r4  r   rs   rx   r9  r<  r=  ddatar  r~   rf   rX  r5   r5   r5   r6   <module>   s  
 8 	

K
	
O$g
(
TC
  -	
+	

%

!