Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /opt/alt/python311/lib64/python3.11/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python311/lib64/python3.11/__pycache__/pydoc.cpython-311.opt-2.pyc
�

�,d1�����	dgZdZdZdZddlZddlZddlZddlZddl	Zddl
ZddlZddlZddl
Z
ddlZddlZddlZddlZddlZddlZddlZddlZddlZddlmZddlmZddlmZd	�Zd
�Zd�Z d�Z!d
�Z"d�Z#d�Z$d�Z%d�Z&d�Z'd�Z(ej)dej*��Z+d�Z,d�Z-d�Z.d�Z/e0ej1��Z2dQd�Z3d�Z4d�Z5d�Z6d�Z7ifd�Z8Gd�d e9��Z:d!�Z;difd"�Z<Gd#�d$��Z=Gd%�d&e��Z>Gd'�d(e=��Z?Gd)�d*e��Z@Gd+�d,e=��ZAGd-�d.eA��ZBd/�aCd0�ZDd1�ZEd2�ZFd3�ZGd4�ZHd5�ZId6�ZJd7�ZKdRd8�ZLeA��ZMeB��ZNe?��ZOdRd9�ZP		dSd;�ZQ		dSd<�ZRdRd=�ZSdTd?�ZTGd@�dA��ZUeU��ZVGdB�dC��ZWdD�ZXdE�ZYdUdG�ZZdRdHdIdJ�dK�Z[dL�Z\dM�Z]dN�Z^dO�Z_e`dPkre_��dSdS)V�helpzKa-Ping Yee <ping@lfw.org>z26 February 2001z�Guido van Rossum, for an excellent programming language.
Tommy Burnette, the original creator of manpy.
Paul Prescod, for all his work on onlinehelp.
Richard Chamberlain, for the first implementation of textdoc.
�N)�deque)�Repr)�format_exception_onlyc�H�	g}g}tjD]�}tj�|pd��}tj�|��}||vrItj�|��r*|�|��|�|����|S�N�.)�sys�path�os�abspath�normcase�isdir�append)�dirs�normdirs�dir�normdirs    �,/opt/alt/python311/lib64/python3.11/pydoc.py�pathdirsrRs���K�
�D��H��x�%�%���g�o�o�c�j�S�)�)���'�"�"�3�'�'���(�"�"�r�w�}�}�S�'9�'9�"��K�K������O�O�G�$�$�$���K�c���tj�|j��}|�dS|j�d��dd�D]}t
||��}�tj|��sdS|S)Nr	���)	r
�modules�get�
__module__�__qualname__�split�getattr�inspect�isclass)�func�cls�names   r�
_findclassr%^sw��

�+�/�/�$�/�
*�
*�C�
�{��t��!�'�'��,�,�S�b�S�1�!�!���c�4� � ����?�3�����t��Jrc�J�tj|��rZ|jj}|j}tj|��r*t
t
||d��d��|jur|}�n~|j}�nutj|��r.|j}t|��}|�t
||��|urdS�n3tj
|��rC|j}|j}tj|��r|jdz|z|jkr|}n�|j}n�t|t��r4|j}|j}t|��}|�t
||��|urdSn�tj|��stj|��ri|j}|j}t
||��|urdStj|��r2t
|dd��}t|t&��r||vr||SndS|jD]7}	t+t
||����}n#t,$rY�-wxYw|�|cS�8dS)N�__func__r	�	__slots__)r �ismethodr'�__name__�__self__r!r�	__class__�
isfunctionr%�	isbuiltinr�
isinstance�property�fget�ismethoddescriptor�isdatadescriptor�__objclass__�ismemberdescriptor�dict�__mro__�
_getowndoc�AttributeError)�objr$�selfr#r"�slots�base�docs        r�_finddocr?hsd�������(��|�$���|���O�D�!�!�	!��G�D�$��-�-�z�:�:�c�l�J�J��C�C��.�C�C�	�	�C�	 �	 ���|����o�o���;�'�#�t�,�,�C�7�7��4�8�	�	�3�	�	���|���|���O�D�!�!�	!����#�d�*�c�.>�>�>��C�C��.�C�C�	�C��	"�	"���x���}��������;�'�#�t�,�,�C�7�7��4�8�	�	#�C�	(�	(�
�G�,D�S�,I�,I�
��|������3����S�(�(��4��%�c�*�*�	#��C��d�3�3�E��%��&�&�
#�4�5�=�=��T�{�"���t������	��W�T�4�0�0�1�1�C�C���	�	�	��H�	�����?��J�J�J���4s�.H�
H�Hc���		t�|d��}|�dS|tur1t|��j}t	|t
��r||krdS|S#t$rYdSwxYw)N�__doc__)�object�__getattribute__�typerAr/�strr9)r:r>�typedocs   rr8r8�s���!�
��%�%�c�9�5�5���;��4��d�?�?��3�i�i�'�G��'�3�'�'�
�G�s�N�N��t��
�������t�t����s�A�8A�A�
A,�+A,c���	t|��}|�)	t|��}n#ttf$rYdSwxYwt	|t
��sdSt
j|��S�N)r8r?r9�	TypeErrorr/rEr �cleandoc)rBr>s  r�_getdocrK�s��B�
�V�
�
�C�
�{�	��6�"�"�C�C���	�*�	�	�	��4�4�	�����c�3�����t���C� � � s�$�9�9c��	t|��ptj|��}|r(tjdd|�����pdS)Nz^ *
�)rKr �getcomments�re�sub�rstrip)rB�results  r�getdocrS�sF��7�
�V�_�_�
;�� 3�F� ;� ;�F��:�b�f�W�b�&�-�-�/�/�:�:�@�b�@rc�^�	|����d��}t|��dkr
|ddfSt|��dkr?|d���s%|dd�|dd���fSdd�|��fS)N�
�rrM�)�stripr�lenrQ�join)r>�liness  r�splitdocr\�s���H��I�I�K�K���d�#�#�E�
�5�z�z�Q����Q�x��|��	�U���q����q����!2�!2���Q�x����5����9�-�-�-�-�
�t�y�y�����rc�F�	|j}|j|kr
|jdz|z}|Sr)r*r)rB�modnamer$s   r�	classnamer_�s1��J��?�D�
��G�#�#�� �3�&��-���Krc��	tj|��pctj|��pOtj|��p;tj|��p'tj|��ptj|��SrH)r �ismoduler!�	isroutine�isframe�istraceback�iscode)rBs r�isdatarf�s��H�� ��(�(�F�G�O�F�,C�,C�F��!�&�)�)�F�-4�_�V�-D�-D�F��#�F�+�+�F�/6�~�f�/E�/E�G�Grc��	|r@|d�|�|d����}|dd�}|�@|S)NrVrrW)rZr)�text�pairss  r�replacerj�sP��9�
���Q�x�}�}�T�Z�Z��a��1�1�2�2���a�b�b�	�����Krc���	t|��|krTtd|dz
dz��}td|dz
|z
��}|d|�dz|t|��|z
d�zS|S)Nr�rW�...)rY�max)rh�maxlen�pre�posts    r�cramrr�st��M�
�4�y�y�6����!�f�Q�h��]�#�#���1�f�Q�h�s�l�#�#���D�S�D�z�E�!�D��T���4����$9�9�9��Krz at 0x[0-9a-f]{6,16}(>+)$c�:�	t�d|��S)Nz\1)�_re_stripidrP�rhs r�stripidrv�s��H��?�?�5�$�'�'�'rc��	tj|��rdStj|��r*t|dd��}tj|��p|duSdS)NTr+F)r r)r.rra)�fnr;s  r�_is_bound_methodry�sg����������t������>��r�:�t�,�,���$�T�*�*�<�t�t�|�=�=��5rc�
�i}tj|tj��D]
\}}d||<�|jD]$}|�t|�����%|���D]}t||��||<�|S�NrV)r �
getmembersrb�	__bases__�update�
allmethods�keysr)�cl�methods�key�valuer=s     rrr�s����G��(��W�->�?�?���
��U��������)�)�����z�$�'�'�(�(�(�(��|�|�~�~�(�(���r�3�'�'������Nrc��	g}g}|D]8}||��r|�|���#|�|���9||fSrH�r)�s�	predicate�yes�no�xs     r�_split_listr�s]���
�C�	�B�
�����9�Q�<�<�	��J�J�q�M�M�M�M��I�I�a�L�L�L�L���7�Nrc�h�	|dvrdS|�d��r|�d��rdS|�d��rt|d��rdS|tur4|tvr+tt
||d��tj��rdS|�||vS|�d��S)	N>rA�__date__�__file__r*�__path__�__spec__r(�
__author__�
__cached__�
__loader__r�__credits__�__package__�__version__�__builtins__rr�__rV�_�_fieldsTF)�
startswith�endswith�hasattr�
__future__�_future_feature_namesr/r�_Feature)r$�allr:s   r�visiblenamer�s���=��H�H�H��q����t���>����t�!4�!4�>�Q�Q����s������Y� 7� 7���t�
�*����)>�!>�!>��g�c�4��.�.�
�0C�D�D�	��5�
���s�{���?�?�3�'�'�'�'rc���	g}tj|��D]T\}}}}tj|��r d}t|t��r	|j�d}|�||||f���U|S)N�data descriptor�readonly property)r �classify_class_attrsr3r/r0�fsetr)rB�resultsr$�kindr#r�s      rr�r�,s���M��G�$+�$@��$H�$H�1�1� ��t�S�%��#�E�*�*�	+�$�D��%��*�*�
+�u�z�/A�*������d�C��/�0�0�0�0��Nrc�����	t|dg���	�fd�t���D���n#t$ri�YnwxYw�fd�}|�|���dS)Nr�c�<��i|]\}}||t���z
��S�)rY)�.0�ir$�fieldss   �r�
<dictcomp>z#sort_attributes.<locals>.<dictcomp>=s)���O�O�O�	��D�t�a��F���m�O�O�Orc�L����|dd��|dfS�Nr)r)�attr�field_orders �r�<lambda>z!sort_attributes.<locals>.<lambda>@s"���K�O�O�D��G�Q�7�7��a��A�r�r�)r�	enumeraterI�sort)�attrsrB�keyfuncr�r�s   @@r�sort_attributesr�7s�����M��V�Y��
+�
+�F��O�O�O�O�Y�v�=N�=N�O�O�O����������������A�A�A�A�G�	�J�J�7�J�����s�2�A�Ac���	tj�|��rHdD]E}tj�tj�|d|z����rdS�FdS)N)z.pyz.pyc�__init__TF)rrr�isfilerZ)r�exts  r�	ispackager�Esf��=�	�w�}�}�T����"�	�	�C��w�~�~�b�g�l�l�4��c�1A�B�B�C�C�
��t�t�
��5rc�z�|���}|dd�dks|���s9|���}|sn"|dd�dk�%|����9|���}|dd�dkr
|dd�}|dd�dkr�|dd�}|dd�dkr
|dd�}|���s+|���}|sn|����+|�d��d	���}nd}|S)
NrV�#�zr"""rl�"""r�\r)�readlinerXr)�file�linerRs   r�source_synopsisr�Ms4���=�=�?�?�D�
�r��r�(�c�/�/������/��}�}������U��r��r�(�c�/�/������/��:�:�<�<�D��B�Q�B�x�6���$�q�r�r�(�4��B�Q�B�x�5����A�B�B�x������9����T�#�2�#�Y�d��*�*�,�,�	��=�=�?�?�D�����*�*�,�,�	����E�"�"�1�%�+�+�-�-����&��Mrc�Z�	tj|��j}|�|d��\}}|�||k�rn|�ttjj����rtjj	}nE|�ttjj
����rtjj}nd}|�Q	tj
|��}n#t$rYdSwxYw|5t|��}ddd��n#1swxYwYn�|d|��}tj�d||���}	tj�|��}	n#YdSxYwt(jd=|	jr|	j���dnd}||f||<|S)N�NN�__temp__��loaderr)r�stat�st_mtimerr��tuple�	importlib�	machinery�BYTECODE_SUFFIXES�SourcelessFileLoader�EXTENSION_SUFFIXES�ExtensionFileLoader�tokenize�open�OSErrorr��util�spec_from_file_location�
_bootstrap�_loadr
rrA�
splitlines)
�filename�cache�mtime�
lastupdaterR�
loader_clsr�r��spec�modules
          r�synopsisr�^s���8��G�H���&�E����8�\�:�:��J����Z�%�/�/����U�9�#6�#H�I�I�J�J�	�"�,�A�J�J�
�
�
�u�Y�%8�%K�L�L�
M�
M�	�"�,�@�J�J��J���
��}�X�.�.�����
�
�
��t�t�
�����
/�
/�(��.�.��
/�
/�
/�
/�
/�
/�
/�
/�
/�
/�
/����
/�
/�
/�
/�� �Z�
�H�5�5�F��>�9�9�*�h�AG�:�I�I�D�
�"�-�3�3�D�9�9����
��t�t������J�'�7=�~�O�V�^�.�.�0�0��3�3�4�F� �&�/��h���Ms0�C�
C+�*C+�0D�D�D�E'�'E,c��eZdZ	d�Zd�ZdS)�ErrorDuringImportc�>�||_|\|_|_|_dSrH)r��excr��tb)r;r��exc_infos   rr�zErrorDuringImport.__init__�s�� ��
�(0�%���$�*�d�g�g�grc�D�|jj}d|j�d|�d|j��S)Nzproblem in � - z: )r�r*r�r�)r;r�s  r�__str__zErrorDuringImport.__str__�s)���h����+/�=�=�=�#�#�#�t�z�z�J�JrN)r*rrr�r�r�rrr�r��s:������O�1�1�1�K�K�K�K�Krr�c��	tjj}t|d��5}||�t|����k}ddd��n#1swxYwYtj�|��}tj�	|��\}}|r!tj
�||��}n tj
�||��}tj�
|||���}	tj�|��S#t!|t#j�����xYw)N�rbr�)r�r��MAGIC_NUMBERr��readrYrr�basename�splitext�_bootstrap_externalr��SourceFileLoaderr�r�r�r�r
r�)	r�magicr��is_bytecoder�r$r�r�r�s	         r�
importfiler��sM��F��N�'�E�	
�d�D�	�	�5�T��t�y�y��U���4�4�4��5�5�5�5�5�5�5�5�5�5�5����5�5�5�5��w����%�%�H��� � ��*�*�I�D�#��L��.�C�C�D�$�O�O����.�?�?��d�K�K���>�1�1�$��V�1�L�L�D�6��#�)�)�$�/�/�/��6���c�l�n�n�5�5�5���s�'A�A�A�D'�'#E
c����		|r_�tjvrQ�tjvrC�fd�tjD��}�g|zD]$}tj|||<tj|=�%t���}n�#tj��x\}}}}	�tjvr%ttj�j|	���|turt|j|	���t|t��r|j�krYdSt�tj�����xYw��d��dd�D]$}
t||
��}�#t$rYdSwxYw|S)Nc�D��g|]}|��dz���|��S)r	)r�)r��mrs  �r�
<listcomp>zsafeimport.<locals>.<listcomp>�s.���K�K�K�a�!�,�,�t�c�z�2J�2J�K��K�K�Krr	rV)r
r�builtin_module_names�
__import__r�r�r��SyntaxErrorr��
issubclass�ImportErrorr$rrr9)r�	forceloadr��subsr�r�r�r�r��info�parts`          r�
safeimportr
�s����O� :�
�	)����,�,��3�3�3�3�L�K�K�K�3�;�K�K�K�� �6�D�=�)�)�C�!$��S�!1�E�#�J���C�(�(��D�!�!����:�"%�,�.�.�0���e�R�4��3�;���#�C�K��$5�$>��E�E�E�
�K�
�
�#�E�N�D�9�9�9�
��[�
)�
)�	:�e�j�D�.@�.@��4�4�$�D�#�,�.�.�9�9�9�����
�
�3������#�+�+���f�d�+�+�V�V���*�*�*�d�d�d�d�*�����Ms%�A0A5�5BD%�!D%�E�
E'�&E'c��eZdZej�ddejdd�z��Zd	d�Z	d	d�Z
e
xZxZxZ
xZxZZejd��fd�ZdS)
�Doc�
PYTHONDOCSz%https://docs.python.org/%d.%d/libraryNrWc�:�	||f|z}	tj|��r
|j|�Stj|��r
|j|�Stj|��r
|j|�Sn#t$rYnwxYwtj|��r
|j	|�S|j
|�SrH)r ra�	docmoduler!�docclassrb�
docroutiner9r3�docdata�docother)r;rBr$�argss    r�documentzDoc.document�s���3���~��$��
	����'�'�E�����0E�)E���v�&�&�C�}�t�}�d�/C�(C�� ��(�(�G����$�1G�*G�G���	�	�	��D�	�����#�F�+�+�G�L�D�L�$�4G�-G��t�}�d�#�#s�A%�A%�A%�%
A2�1A2c�x�d|odt|��z�dt|��j��}t|���)Nz!don't know how to document object� z	 of type )�reprrDr*rI)r;rBr$r�messages     r�failzDoc.fail�sA��9��%�S�4��:�:�%�%�%�t�F�|�|�'<�'<�>���� � � r�stdlibc��		tj|��}n#t$rd}YnwxYwtj�d|j��}tj�|��}t|tt����r�|jdvsH|�|��r�|�tj�
|d����s�|jdvr�|�d��rAd�|�d��|j�����}n=tj�
||j���d	z��}nd}|S)
N�
(built-in)r
)
�errno�
exceptions�gc�imp�marshal�posix�signalr
�_thread�	zipimportz
site-packages)z	xml.etreeztest.pydoc_mod)zhttp://zhttps://z
{}/{}.html�/�.html)r �
getabsfilerIr�environrr
rrr/rDr*r�rZ�formatrQ�lower)r;rB�basedirr��doclocs     r�	getdoclocz
Doc.getdocloc�sc��8�	 ��%�f�-�-�D�D���	 �	 �	 ��D�D�D�	 ���������d�o�>�>���'�"�"�7�+�+���v�t�B�x�x�(�(�	�
�_�!9�9�9��o�o�g�&�&�9��/�/�"�'�,�,�w��"H�"H�I�I�	9�

�O�#B�B�B�� � �!8�9�9�
Q�%�,�,�V�]�]�3�-?�-?���AV�AV�AX�AX�Y�Y�������f�f�o�.C�.C�.E�.E��.O�P�P����F��
s��'�'rH)r*rrrr*rr
�version_infor
rrrrrr�docpropertyr�	sysconfig�get_pathr/r�rrrr�s������������ G�"%�"2�2�A�2�"6�!7�8�8�J�$�$�$�$� !�!�!�!�LP�O�I�O��O�:�O��O�;��(:�	�(:�8�(D�(D������rrc�<�eZdZ	d�Zd�Zd�Zd�Zd�ZeZd�Z	eZ
dS)�HTMLReprc�t�tj|��dx|_|_d|_dx|_|_dS�N��
�d�rr��maxlist�maxtuple�maxdict�	maxstring�maxother�r;s rr�zHTMLRepr.__init__
�9���
�d����')�)���t�}����),�,������rc	�,�t|dddddd��S)N�&z&amp;�<z&lt;�>z&gt;)rj�r;rhs  r�escapezHTMLRepr.escapes���t�S�'�3���V�D�D�Drc�,�tj||��SrH)rr�r;rBs  rrz
HTMLRepr.reprs���y��v�&�&�&rc	��tt|��d��rfdd�t|��j�����z}t||��rt||��||��S|�ttt|����|j
����S�Nr*�repr_r�)r�rDrZr*rrrHrrrvrr@�r;r��level�
methodnames    r�repr1zHTMLRepr.repr1s����4��7�7�J�'�'�	;� �3�8�8�D��G�G�,<�,B�,B�,D�,D�#E�#E�E�J��t�Z�(�(�
;�0�w�t�Z�0�0��E�:�:�:��{�{�4���Q��� 0� 0�$�-�@�@�A�A�Arc��t||j��}t|��}d|vr=dt|dd��vr*d|dz|�|��z|dzStjdd|�|����S)Nr��\\rM�rrz-((\\[\\abfnrtv\'"]|\\[0-9]..|\\x..|\\u....)+)z<span class="repr">\1</span>)rrr?rrjrHrOrP�r;r�rO�test�testreprs     r�repr_stringzHTMLRepr.repr_string s����A�t�~�&�&����:�:���4�<�<�D���%��(D�(D�D�D���!��$�t�{�{�4�'8�'8�8�8�A�;�F�F��v�F�5��k�k�(�+�+�-�-�	-rc	���	|�ttt|����|j����S#|�d|jjz��cYSxYw�Nz
<%s instance>)rHrrrvrr?r,r*�r;r�rOs   r�
repr_instancezHTMLRepr.repr_instance-s`��	G��;�;�t�G�D��G�G�$4�$4�d�n�E�E�F�F�F��	G��;�;����1E�E�F�F�F�F�F���s�AA�$A*N)r*rrr�rHrrQrX�repr_strr\�repr_unicoder�rrr5r5s�������L�-�-�-�E�E�E�'�'�'�B�B�B�	-�	-�	-��H�G�G�G��L�L�Lrr5c��eZdZ	e��ZejZejZd�Zdd�Z		dd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zdiiifd�Zdd�Zdd�Zddiifd�Zd�Zddiiidfd�Zdd�ZeZdd�Zdd�ZdS)�HTMLDocc��d|�d|�d�S)NzN<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Python: z</title>
</head><body>
z
</body></html>r�)r;�title�contentss   r�pagezHTMLDoc.page>s��"��U�U�H�H�H�&�	&rrMc��d|�d|pd�d�S)NzU
<table class="heading">
<tr class="heading-text decor">
<td class="title">&nbsp;<br>z</td>
<td class="extra">�&nbsp;z</td></tr></table>
    r�)r;rb�extrass   r�headingzHTMLDoc.headingJs%��$��5�5�&�$�H�$�$�&�	&r�Nrfc��	|�dd|zzdz}d|�d|�d�}|r|d|�d|�d	|�d
|�d|�d�z}n|d|�d
|�d|�d�z}|d|zzS)Nz<span class="code">rfz</span>z-<p>
<table class="section">
<tr class="decor zD-decor heading-text">
<td class="section-title" colspan=3>&nbsp;<br>z</td></tr>
    z
<tr><td class="decor z-decor" rowspan=2>z</td>
<td class="decor z-decor" colspan=2>z</td></tr>
<tr><td>�</td>z-decor">z	</td><td>z.
<td class="singlecolumn">%s</td></tr></table>r�)	r;rbr#rc�width�prelude�
marginalia�gaprRs	         r�sectionzHTMLDoc.sectionSs���.���.��E�1A�A�I�M�J��
�3�3����	��
�	N��V��c�c�:�:�:�s�s�s�G�G�G�S�S�S�:�:�F�F�
�V�8;���Z�Z�Z����N�N�F��I�H�T�T�Trc�*�	d|z}|j|g|�R�S)Nz&<strong class="bigsection">%s</strong>)rp)r;rbrs   r�
bigsectionzHTMLDoc.bigsectionhs)��2�8�5�@���t�|�E�)�D�)�)�)�)rc��	|�|�����}t|dddddddd�	�	S)N�

z
 
rrfrU�<br>
)rH�
expandtabsrjrGs  r�	preformatzHTMLDoc.preformatmsE��/��{�{�4�?�?�,�,�-�-���t�V�W�f�g� �(�D�(�<�<�	<rc��	d}t|��dzdz}td��D]R}|dz}t||z||z|z��D],}|t|��kr||||��zdz}�-|dz}�Sd|zS)NrMrlr�z<td class="multicolumn">rurkz<table><tr>%s</tr></table>)rY�range)r;�listr+rR�rows�colr�s       r�multicolumnzHTMLDoc.multicolumnss���>����D�	�	�A�
�!�#����8�8�	&�	&�C��8�8�F��4��8�T�#�X�d�]�3�3�
A�
A���s�4�y�y�=�=�#�f�f�T�!�W�o�o�5��@�F���g�%�F�F�+�f�4�4rc��d|zS)Nz<span class="grey">%s</span>r�rGs  r�greyzHTMLDoc.greys
��!?�$�!F�Frc�<�	|D]}||vrd||�d|�d�cS�|S)N�	<a href="�">�</a>r�)r;r$�dictsr6s    r�namelinkzHTMLDoc.namelink�sH��H��	B�	B�D��t�|�|�|�04�T�
�
�
�D�D�D�A�A�A�A���rc	��	|jtj�|j��}}t||��r1t
||��|urd|j�d|�dt||���d�St||��S)Nr��.html#r�r�)r*r
rrrr�rr_)r;rBr^r$r�s     r�	classlinkzHTMLDoc.classlink�s���&��������8I�(J�(J�f���6�4� � �	C�W�V�T�%:�%:�f�%D�%D�%D��������y���'A�'A�'A�'A�C�
C����)�)�)rc�(�d|j�d|j�d�S�Nr�z.html">r�)r*rJs  r�
modulelinkzHTMLDoc.modulelink�s��'�-3�_�_�_�f�o�o�o�N�Nrc��	|\}}}}|r|�|��S|r	|�d|�d�}nd|z}|rd|z}n|}d|�d|�d�S)Nr	r(z%s.htmlz"<strong>%s</strong>&nbsp;(package)r�r�r�)r)r;�
modpkginfor$rr��shadowed�urlrhs        r�
modpkglinkzHTMLDoc.modpkglink�s~��I�*4�'��d�I�x��	#��9�9�T�?�?�"��	#�"&�$�$����-�C�C��d�"�C��	�7�$�>�D�D��D��(+���T�T�T�2�2rc��d|�d|�d�S)Nz<a href="file:r�r�r�)r;r�rs   r�filelinkzHTMLDoc.filelink�s��)�-0�S�S�$�$�$�7�7rc��	|p|j}g}d}tjd��}	|�||��}	|	s�n�|	���\}
}|�||||
�����|	���\}}
}}}}|
r=||���dd��}|�d|�d|�d����n3|r8d	t|��z}|�d|�d||���d���n�|r8d
t|��z}|�d|�d||���d���n�|rW|||dz�dkr-|�d
|�	||��z��n|�d|z��nf|||dz�dkr,|�|�	||||����n)|�|�	||����|}���|�|||d�����d�
|��S)NrzJ\b((http|https|ftp)://\S+[\w/]|RFC[- ]?(\d+)|PEP[- ]?(\d+)|(self\.)?(\w+))T�"z&quot;r�r�r�z(https://www.rfc-editor.org/rfc/rfc%d.txtz!https://peps.python.org/pep-%04d/rV�(zself.zself.<strong>%s</strong>rM)rHrO�compile�search�spanr�groupsrj�intr�rZ)r;rhrH�funcs�classesr�r��here�pattern�match�start�endr��scheme�rfc�pep�selfdotr$r�s                   r�markupzHTMLDoc.markup�sy��	F��&�4�;�������*�3�4�4��	��N�N�4��.�.�E���%������J�E�3��N�N�6�6�$�t�E�z�"2�3�3�4�4�4�38�<�<�>�>�0�C���c�7�D��
=��f�S�k�k�)�)�#�x�8�8���������S�S�S�A�B�B�B�B��
=�@�3�s�8�8�K���������V�V�C�[�[�[�[�I�J�J�J�J��

=�9�C��H�H�D���������V�V�C�[�[�[�[�I�J�J�J�J��

=���C��E�	�?�c�)�)��N�N�7�T�]�]�4��-I�-I�#I�J�J�J�J��N�N�#=��#D�E�E�E�E��c�#�a�%�i��C�'�'����t�}�}�T�7�E�7�K�K�L�L�L�L����t�}�}�T�7�;�;�<�<�<��D�7	�8	���v�v�d�4�5�5�k�*�*�+�+�+��w�w�w���rc���	d}|D]�}t|��td��ur�|\}}|dz}||�||��z}|rU||fkrNg}|D]+}	|�|�|	|�����,|dzd�|��zdz}|dz}��t|��tg��ur|d|�|||��zz}��d	|zS)
NrMr�z<dt class="heading-text">r��, �)z
</dt>z
<dd>
%s</dd>
z
<dl>
%s</dl>
)rDr�rrZ�
formattree)
r;�treer^�parentrR�entry�c�bases�parentsr=s
          rr�zHTMLDoc.formattree�s!��O����
	'�
	'�E��E�{�{�d�2�h�h�&�&� ���5��"=�=���$�.�.��G�"<�"<�<���E�U�v�i�/�/� �G� %�F�F�����t�~�~�d�G�'D�'D�E�E�E�E�#�c�\�D�I�I�g�,>�,>�>��D�F��)�+����e����R���(�(��"3�d�o�o��7�A�7'�7'�#'�'��� �6�)�)rc
����	|j}	|j}n#t$rd}YnwxYw|�d��}g}t	t|��dz
��D]B}|�dd�|d|dz����d||�d����Cd�||dd�z��}	d|	z}
	tj	|��}tj�|��}��
||��}
n#t$rd}
YnwxYwg}t|d	��rwt!|j��}|dd
�dkr*|dd�dkr|d
d����}|�d
��|��z��t|d��r:|���t!|j������|r|
dd�|��zz}
��|��}|�dt-��z}nd}��|
d|
z|z��}tj|tj��}gi}}tj|tj��D]T\}}|�tj|��p||ur5t9|||��r$|�||f��d|zx||<||<�U|D]z\}}|jD]m}|j|j}}t>j �!|��}||kr8|r6t||��r&tE||��|ur||vr|dz|zx||<||<�n�{gi}}tj|tj#��D]�\}}|�*tj$|��stj|��|urOt9|||��r>|�||f��d|z||<tj%|��r||||<��g}tj|tL��D]-\}}t9|||��r|�||f���.��'tQ|���j)||��}|od|z}|d|zz}t|d��r�g}tUj+|j,��D]\}}} |�||| df��� |�-����.|�j/��}!|��0dd|!��z}n5|r3��.|�fd���}!|��0dd|!��z}|r�d�|D��}"��1tj2|"d��|��g}!|D]1\}}|!���3|||||�����2|��0d d!d"�|!����z}|rcg}!|D]1\}}|!���3|||||�����2|��0d#d$d"�|!����z}|r`g}!|D].\}}|!���3||�����/|��0d%d&d'�|!����z}t|d(��rG��'t!|j4���j)��}!|��0d)d*|!��z}t|d+��rG��'t!|j5���j)��}!|��0d,d-|!��z}|S).Nr	rVr�z.html" class="white">r�r�!<strong class="title">%s</strong>rr���$Revision: �$z
version %sr�z (%s)r�z-<br><a href="%(docloc)s">Module Reference</a>rMz<a href=".">index</a><br>r�r�z#-z<span class="code">%s</span>z
<p>%s</p>
r�rzPackage Contentszpkg-contentc�:����|d��Sr{)r�)�tr;s �rr�z#HTMLDoc.docmodule.<locals>.<lambda>9s���4�?�?�1�Q�4�#8�#8�r�Modulesc��g|]\}}|��Sr�r��r�r�r�s   rrz%HTMLDoc.docmodule.<locals>.<listcomp>>s��;�;�;�<�C���;�;�;r�Classes�indexr�	Functions�	functions�Data�datarur��Author�authorr��Credits�credits)6r*�__all__r9rryrYrrZr r)�urllib�parse�quoter�rIr�rEr�rXrHr�r/�localsrhr|rar!�	getmoduler�r}rr
rrrrbr.r-rfr�rSrw�pkgutil�iter_modulesr�r�r}r�rrr��getclasstreerr�r�)#r;rBr$�mod�ignoredr��parts�linksr��
linkedname�headrr�r�r�versionr.rRrr��cdictr�r�r=r^r�r��fdictr�r>�modpkgs�importer�ispkgrc�	classlists#`                                  rrzHTMLDoc.docmodule�s$���=����	��.�C�C���	�	�	��C�C�C�	�����
�
�3�������s�5�z�z�!�|�$�$�	3�	3�A��L�L�L����%���1���+�&�&�&�&��a����2�
3�
3�
3�
3��X�X�e�e�B�C�C�j�0�1�1�
�2�Z�?��	$��%�f�-�-�D��,�$�$�T�*�*�C��}�}�S�$�/�/�H�H���	$�	$�	$�#�H�H�H�	$�������6�=�)�)�	=��&�,�-�-�G��s��s�|�1�1�1�g�b�c�c�l�c�6I�6I�!�"�R�%�.�.�.�0�0���K�K��t�{�{�7�';�';�;�<�<�<��6�:�&�&�	;��K�K����C���$8�$8�9�9�:�:�:��	4��'�D�I�I�d�O�O�3�3�D�����'�'����D�v�x�x�O�F�F��F����d�$?�(�$J�V�$S�T�T���$�V�W�-=�>�>���R���!�,�V�W�_�E�E�	:�	:�J�C�����"�5�)�)�3�V��>�>��s�C��0�0�:��N�N�C��<�0�0�0�03�c�	�9�E�#�J��u���!�	P�	P�J�C����
P�
P��#�}�d�o�W�������1�1���d�?�?�v�?�'�&�#�2F�2F�?��v�s�+�+�t�3�3�"�e�|�|�7>��7I�C�7O�O�E�#�J��t���

P��2�u��!�,�V�W�5F�G�G�	L�	L�J�C�����!�%�(�(� �,3�,=�e�,D�,D��,N�,N��s�C��0�0�L��L�L�#�u��.�.�.�!%���E�#�J��)�%�0�0�K��s��%��,����!�,�V�V�<�<�	*�	*�J�C���3��V�,�,�
*����S�%�L�)�)�)���k�k�&��.�.�$�.�%��G�G���:�4�s�:���-�#�-�-���6�:�&�&�	4��G�,3�,@���,Q�,Q�
:�
:�(��'�5������u�a�8�9�9�9�9��L�L�N�N�N��'�'����A�A�H��d�o�o�"�M�8�=�=�=�F�F�
�	4��'�'��8�8�8�8�:�:�H��d�o�o��=�(�4�4�4�F��	8�;�;�7�;�;�;�I����� 4�Y�� B� B�D�I�I�K�H�%�
O�
O�
��U�����
�
�e�S�$��u� M� M�N�N�N�N��d�o�o��7�C�H�H�X�$6�$6�8�8�8�F��	>��H�#�
O�
O�
��U�����
�
�e�S�$��u� M� M�N�N�N�N��d�o�o��[�#�(�(�8�*<�*<�>�>�>�F��	9��H�"�
;�
;�
��U�����
�
�e�S� 9� 9�:�:�:�:��d�o�o����
�
�h� 7� 7�9�9�9�F��6�<�(�(�	L��{�{�3�v�'8�#9�#9�4�>�J�J�H��d�o�o�h��(�K�K�K�F��6�=�)�)�	N��{�{�3�v�'9�#:�#:�D�N�K�K�H��d�o�o�i��H�M�M�M�F��
s��"�"�A	D�D�Dc�,�������� �!�	�j}|p|}�j}g}	|	j� G� fd�d��}
|
���tt	j�����}t
|��dkrV����� d��|D])}� d��|�j	��z���*� d��������� �fd�}
��� �fd�}������� �fd	�}�fd
�t���D��}i�|D]O\}}}}d|zdz|zx�|<}	t�|��}n#t$rYnwxYw	|�|<�@#t$rY�LwxYw|r�|r|����!n|d
d�!t|�!fd���\}}�t jur�!t jur|}�\�!�urd}nd���!�j	��z}|dz
}t%|���|
d|z|d���}|
d|z|d���}|
d|z|d���}|d|z|d���}|d|z|d���}|d|z|d���}|}|��d�|	��}	||kr
d|�d |�d!�}nd"|�d#|�d$|�d%�}|rPg}|D]0}|���|�j	�����1|d&d'�|��zz}d}	t	j���}n#t*tf$rd}YnwxYw|r2t-|��}|r!|d(kr|��|��zd)z}t1���}|r||pdz}��|�j�����}|od*|z}��|d+|	d,|��S)-Nc� ��eZdZd�Z�fd�ZdS)�(HTMLDoc.docclass.<locals>.HorizontalRulec��d|_dSr���needonerAs rr�z1HTMLDoc.docclass.<locals>.HorizontalRule.__init__f�
�� ����rc�:��|jr�d��d|_dS)Nz<hr>
rVr��r;�pushs �r�maybez.HTMLDoc.docclass.<locals>.HorizontalRule.maybeh�%����<�#��D��N�N�N� ����rN�r*rrr�r��r�s�r�HorizontalRuler�e�=�������
!�
!�
!�
!�
!�
!�
!�
!�
!�
!rr�rWz&<dl><dt>Method resolution order:</dt>
z<dd>%s</dd>
�</dl>
c�f��t||��\}}|r��
����|��|D]x\}}}}	t�
|��}���||��	���
����n0#t$r#���||�����YnwxYw�d���y|S)NrU�r�r�rr�	Exceptionr)�msgr�r��okr$r��homeclsr�r�r��hr�mdictr�rBr�r;s        ��������r�spillzHTMLDoc.docclass.<locals>.spillxs���#�E�9�5�5�I�B���

����
�
�
���S�	�	�	�24�
�
�.�D�$���H� '��� 5� 5����T�]�]�5�$��(-�w��v�G�G�H�H�H�H��%�=�=�=���T�\�\�%��s�;�;�<�<�<�<�<�=�����D��J�J�J�J��Ls�A5�5*B"�!B"c����t||��\}}|rI�����
|��|D]'\}}}}�
��||�	�����(|SrH�r�r�r�r�r�r�r�r$r�r�r�r�r�r�r;s        ����r�spilldescriptorsz*HTMLDoc.docclass.<locals>.spilldescriptors��x���#�E�9�5�5�I�B���
9����
�
�
���S�	�	�	�24�9�9�.�D�$����D����e�T�3�7�7�8�8�8�8��Lrc���t||��\}}|r������|��|D]�\}}}}��t�|��|���}t	|��}	|	s�d|z��nA��t	|���j��
�
��}	d|	z}	�d|�|	�d����d����|S)Nz<dl><dt>%s</dl>
z <dd><span class="code">%s</span>�<dl><dt>r�rU)r�r�rrrSr�rw)r�r�r�r�r$r�r�r�r=r>r�r�r�r�r�rBr�r;s          ��������r�	spilldataz#HTMLDoc.docclass.<locals>.spilldata�s����#�E�9�5�5�I�B���

����
�
�
���S�	�	�	�24�
�
�.�D�$����=�=����)>�)>��c�J�J�D� ��-�-�C��B���0�4�7�8�8�8�8�"�k�k�&��-�-���*/��%�A�A��@�3�F�����d�d�C�C�C�@�A�A�A��D��J�J�J�J��Lrc�H��g|]\}}}}t|�����||||f��S�)r:�r��r�r$r�r#r�rBs     �rrz$HTMLDoc.docclass.<locals>.<listcomp>��L���3�3�3�+�T�4��e���&�1�1�1�3�$��c�5�)�3�3�3rr��-rc���|d�uS�NrWr��r��	thisclasss �rr�z"HTMLDoc.docclass.<locals>.<lambda>�����A�a�D�I�<M�r�defined here�inherited from %sz:<br>
z
Methods %sc��|ddkS�NrV�methodr��r�s rr�z"HTMLDoc.docclass.<locals>.<lambda>����A�a�D�H�$4�rzClass methods %sc��|ddkS�NrVzclass methodr�r
s rr�z"HTMLDoc.docclass.<locals>.<lambda>����A�a�D�N�$:�rzStatic methods %sc��|ddkS�NrVz
static methodr�r
s rr�z"HTMLDoc.docclass.<locals>.<lambda>����A�a�D�O�$;�rzReadonly properties %sc��|ddkS�NrVr�r�r
s rr�z"HTMLDoc.docclass.<locals>.<lambda>����q��t�7J�/J�rzData descriptors %sc��|ddkS�NrVr�r�r
s rr�z"HTMLDoc.docclass.<locals>.<lambda>����q��t�7H�/H�rzData and other attributes %sc��|ddkS�NrVr�r�r
s rr�z"HTMLDoc.docclass.<locals>.<lambda>�����!����rrM�	<a name="z">class <strong>�
</strong></a>z<strong>z</strong> = <a name="z">class r��(%s)r��()rtz&<span class="code">%s<br>&nbsp;</span>rbrl)r*r}rrr �getmrorYr�r�rr�rr�rI�popleftr��builtinsrBr�rZ�	signature�
ValueErrorrErHrSr�rwrp)"r;rBr$r�r�r�r��realnamer�rcr��mror=r�r�r�r�r�r�r�r��anchor�	inherited�tagrbr��declr%�argspecr>r�r�r�rs"`` ```                        @@@@rrzHTMLDoc.docclassZs������������<��?����x��� �������	!�	!�	!�	!�	!�	!�	!�	!�	!�	!��^�
�
���G�N�6�*�*�+�+���s�8�8�a�<�<��H�H�J�J�J��D�:�;�;�;��
J�
J����_�t�~�~�d�6<�6G�(I�(I�I�J�J�J�J��D��O�O�O�	�	�	�	�	�	�	�	�	�	�	�	�$	�	�	�	�	�	�	�	�	�	�	�	�	�	�	�	�	�	�	�	�$3�3�3�3�/C�F�/K�/K�3�3�3����).�
	�
	�%�C��w��"%��*�s�"2�S�"8�8�E�#�J��
����-�-�����
�
�
���
����
� &��e�����
�
�
���
�����!	��
(��K�K�M�M�	�	�!�!�H�Q�K�	�*�5�2M�2M�2M�2M�N�N��E�9��X�_�,�,��h�o�1M�1M�!����f�$�$�$���)�D�N�N�9�;A�;L�-N�-N�N���9��C��E�6�*�*�*��E�,��,�e�4�4�6�6�E��E�,�s�2�E�:�:�<�<�E��E�-��3�U�;�;�=�=�E�$�$�%=��%C�U�%J�%J�L�L�E�$�$�%:�S�%@�%�%H�%H�J�J�E��I�<�s�B�E�6�6�8�8�E��E�C�!	�F�7�7�8�$�$���8�������h�h�h� �E�E��
���d�d�d�H�H�H�&�E��	8��G��
H�
H�����t�~�~�d�F�4E�F�F�G�G�G�G��F�T�Y�Y�w�%7�%7�7�7�E���	��)�&�1�1�I�I���I�&�	�	�	��I�I�I�	�����	<��)�n�n�G��
<�7�d�?�?��d�k�k�'�2�2�2�V�;���V�n�n���	%��#�)��$�C��k�k�#�t�~�u�g�u�E�E���D�>��D���|�|�E�7�H�a��=�=�=s6� D1�1
D>�=D>�E�
E�E�K3�3L	�L	c�Z�	|�d|�|��z��S�N�=)rrrJs  r�formatvaluezHTMLDoc.formatvalue�s(��7��y�y��t�y�y��0�0�0�1�1�1rc��	|j}|p|}|r|jpddz|z}	d}
d}t|��rp|jj}|r||urd|�||��z}
nD|j�$d|�|jj|��z}
nd|�||��z}
tj|��stj|��rd}
nd}
||kr
d|	�d	|�d
�}n>|r/tj||g��|urd|jdz|z�d|�d
�}d}n|}d|	�d	|�d|��}d}tj	|��rU	tj
|��}n#ttf$rd}YnwxYw|r$t|��}|dkrd|z}|dd�}|sd}|
|z|�|��z|
o|�d|
z��z}|rd|zS|�t#|��|j|||��}|od|z}d|�d|�d�S)NrMrr� from � method of %s instance� unbound %s method�async rz
"><strong>rz
<a href="#r�r�rVz</strong></a> = �<lambda>z$<strong>%s</strong> <em>lambda</em> r�(...)z$<span class="heading-text">%s</span>z<dl><dt>%s</dt></dl>
z%<dd><span class="code">%s</span></dd>r�z</dt>r�)r*ryr+r,r�r �iscoroutinefunction�isasyncgenfunction�getattr_staticrbr%r&rIrErHrr�rSrw)r;rBr$r�r�r�r�r�r'r)�note�skipdocs�imclass�asyncqualifierrb�reallinkr-r%r,r>s                    rrzHTMLDoc.docroutines���I��?����x���$���*��c�1�D�8�������F�#�#�
	N��o�/�G��
N��"�$�$�#�d�n�n�W�c�&B�&B�B�D���?�.�3�d�n�n���1�3�78�78�8�D�D�0�$�.�.���2M�2M�M�D��'��/�/�	 ��*�6�2�2�	 �%�N�N��N��8����>D�f�f�h�h�h�O�E�E��
$�g�,�R��2�>�>�&�H�H�H��K�#�%��0�0�0�(�(�(�<�����#���������h�h�(�E�����V�$�$�	,�
!�#�-�f�5�5�	�	���	�*�
!�
!�
!� �	�	�	�
!�����
,��i�.�.���z�)�)�B�T�I�E�&�a��d�m�G��	��G���%����G�(<�(<�<��AH��y�y�?�$�F�G�G�I���	<�+�d�2�2��+�+��v������w��I�I�C��G�A�C�G�C�C�15���s�s�s�;�;s�3E�E�Ec���	g}|j}|r|d|z��|�t|��|j��}|r|d|z��|d��d�|��S)Nz!<dl><dt><strong>%s</strong></dt>
z&<dd><span class="code">%s</span></dd>
r�rM)rr�rSrwrZ�r;rBr$r�r�r�r�r>s        rrzHTMLDoc.docdataAs���?����~���	>��D�5��<�=�=�=��k�k�&��.�.�$�.�9�9���	B��D�:�S�@�A�A�A���Y�����w�w�w���rc�F�	|rd|zpd}||�|��zS)Nz<strong>%s</strong> = rM�r)r;rBr$r�r��lhss      rrzHTMLDoc.docotherQs1��;��6�/�$�6�<�"���T�Y�Y�v�&�&�&�&rc�H�	g}|�i}tj|g��D]@\}}}td�|D����r� |�|d|||vf��d||<�A|���|�||j��}|�|d|��S)Nc3�PK�|]!}dt|��cxkodkncV��"dS)i�i��N)�ord�r��chs  r�	<genexpr>z HTMLDoc.index.<locals>.<genexpr>[sD����@�@�R�F�c�"�g�g�/�/�/�/��/�/�/�/�@�@�@�@�@�@rrMrVr�)r�r��anyrr�r}r�rr)r;rr�r�r�r$r�rcs        rr�z
HTMLDoc.indexVs���@������X�%,�%9�3�%�%@�%@�	�	�!�H�d�E��@�@�4�@�@�@�@�@�
���N�N�D�"�e�T�X�-=�>�?�?�?��H�T�N�N��������#�#�G�T�_�=�=�����s�G�X�6�6�6r�rM)rirMNrfrHr��NNN)r*rrr5�_repr_instancerrHrdrhrprrrwr}rr�r�r�r�r�r�r�rrr1rrr1rr�r�rrr`r`5s�������1��X�Z�Z�N���D�
�
"�F�
&�
&�
&�&�&�&�&�34�19�U�U�U�U�**�*�*�
<�<�<�
5�
5�
5�G�F�F����*�*�*�O�O�O�
3�
3�
3�8�8�8�#'�b�"�b�' �' �' �' �V*�*�*�*�&s�s�s�s�j%)�d�"�b�`>�`>�`>�`>�D2�2�2�'+���R���?<�?<�?<�?<�B � � � ��K�'�'�'�'�

7�
7�
7�
7�
7�
7rr`c�,�eZdZ	d�Zd�Zd�ZeZd�ZdS)�TextReprc�t�tj|��dx|_|_d|_dx|_|_dSr7r;rAs rr�zTextRepr.__init__irBrc�f�tt|��d��rfdd�t|��j�����z}t||��rt||��||��St
tt|����|j	��SrL)
r�rDrZr*rrrrrvrr@rNs    rrQzTextRepr.repr1os����4��7�7�J�'�'�	;� �3�8�8�D��G�G�,<�,B�,B�,D�,D�#E�#E�E�J��t�Z�(�(�
;�0�w�t�Z�0�0��E�:�:�:��G�D��G�G�$�$�d�m�4�4�4rc��t||j��}t|��}d|vr*dt|dd��vrd|dz|z|dzS|S)Nr�rSrMrTr)rrr?rrjrUs     rrXzTextRepr.repr_stringvsa���A�t�~�&�&����:�:���4�<�<�D���%��(D�(D�D�D���!��$�t�+�h�q�k�9�9��rc��	ttt|����|j��S#d|jjzcYSxYwrZ)rrrvrr?r,r*r[s   rr\zTextRepr.repr_instance�sF��	:����Q���(�(�$�.�9�9�9��	:�"�Q�[�%9�9�9�9�9���s	�.1�AN)r*rrr�rQrXr]r\r�rrrQrQgsZ������K�-�-�-�5�5�5�����H�:�:�:�:�:rrQc��eZdZ	e��ZejZd�Zdd�Zd�Zdd�Z	dd�Z
dd	�Zd
�Zdd�Z
dd�ZeZdd
�ZdS)�TextDocc�B�	d�d�|D����S)NrMc3�&K�|]}|dz|zV��
dS)�Nr�rIs  rrKzTextDoc.bold.<locals>.<genexpr>�s*����5�5�"�r�D�y�2�~�5�5�5�5�5�5r)rZrGs  r�boldzTextDoc.bold�s&��6��w�w�5�5��5�5�5�5�5�5r�    c���	|sdS�fd�|�d��D��}|r|d���|d<d�|��S)NrMc���g|]}�|z��Sr�r�)r�r��prefixs  �rrz"TextDoc.indent.<locals>.<listcomp>�s���<�<�<�4��$��<�<�<rrUr)rrQrZ)r;rhr_r[s  ` r�indentzTextDoc.indent�se���D���B�B�<�<�<�<�4�:�:�d�+;�+;�<�<�<���0�e�B�i�.�.�0�0�%��)��y�y����rc��	|�|�����}|�|��dz|zdzS)NrUrt)r`rQr[)r;rbrc�clean_contentss    rrpzTextDoc.section�sC��4����X�.�.�5�5�7�7���y�y����$�&��7�&�@�@rNrMc	�r��	d}|D]�}t|��td��urS|\}}||zt|���z}|r0||fkr)�fd�|D��}	|dd�|	��zz}|dz}�st|��tg��ur||�|�||dz��z}��|S)NrMr�c3�8�K�|]}t|���V��dSrH�r_)r�r�r^s  �rrKz%TextDoc.formattree.<locals>.<genexpr>�s-�����D�D��y��G�4�4�D�D�D�D�D�Drr r�rUr\)rDr_rZr�)
r;r�r^r�r_rRr�r�r�r�s
  `       rr�zTextDoc.formattree�s����P����
	8�
	8�E��E�{�{�d�2�h�h�&�&� ���5��&��9�Q��+@�+@�@���B�U�v�i�/�/�D�D�D�D�e�D�D�D�G�#�f�t�y�y��/A�/A�&A�A�F��$�����e����R���(�(��$�/�/��7�A�v���#8�#8�8����
rc	��	|j}tt|����\}}|�d||od|zz��}t	|dd��}|�|��}|�||�d|dz��z}|r||�d|��z}g}	t
j|tj��D]G\}
}|�t
j	|��p||ur(t|
||��r|	�|
|f���Hg}t
j|tj��D]Y\}
}|�*t
j
|��st
j	|��|ur(t|
||��r|�|
|f���Zg}
t
j|t��D]-\}
}t|
||��r|
�|
|f���.g}t��}t!|d��r�t#j|j��D]K\}}}|�|��|r|�|dz���6|�|���L|���||�d	d
�|����z}g}t
j|tj��D];\}
}|j�|dz��r|
|vr|�|
���<|r@|���||�dd
�|����z}|	r�d
�|	D��}|�t
j|d��|��g}|	D]/\}
}|�|�||
|�����0||�dd
�|����z}|r`g}|D]/\}
}|�|�||
|�����0||�dd
�|����z}|
rbg}|
D]1\}
}|�|�||
|d������2||�dd
�|����z}t!|d��ret;|j��}|dd�dkr*|dd�dkr|dd����}||�d|��z}t!|d��r+||�dt;|j ����z}t!|d��r+||�dt;|j!����z}t!|d��r+||�dt;|j"����z}	t
j#|��}n#tH$rd }YnwxYw||�d!|��z}|S)"N�NAMEr�r�zMODULE REFERENCEa.

The following documentation is automatically generated from the Python
source files.  It may be incomplete, incorrect or include features that
are considered implementation detail and may vary between Python
implementations.  When in doubt, consult the module reference at the
location listed above.
�DESCRIPTIONr��
 (package)zPACKAGE CONTENTSrUr	�
SUBMODULESc��g|]\}}|��Sr�r�r�s   rrz%TextDoc.docmodule.<locals>.<listcomp>�s��9�9�9�:�3���9�9�9rrV�CLASSES�	FUNCTIONS�F)ro�DATAr�r�r�rr��VERSIONr��DATEr��AUTHORr��CREDITSr�FILE)%r*r\rSrprr/r r|r!r�r�rrbr.rf�setr�r�r�r��addr�rZrar�r�r�rrrEr�rXr�r�r�r)rI)r;rBr$r��synop�descrRr�r.r�r�r�r�r�r��
modpkgs_namesr�r^r��
submodulesr�rcr�r�s                        rrzTextDoc.docmodule�s_��C�����v�f�~�~�.�.���t����f�d�e�.E���
�&F�G�G���f�i��.�.������'�'�����d�l�l�+=�v�I�@����F��	@��d�l�l�=�$�?�?�?�F���!�,�V�W�_�E�E�	1�	1�J�C�����%�e�,�,�6��6�A�A��s�C��0�0�1��N�N�C��<�0�0�0����!�,�V�W�5F�G�G�	/�	/�J�C�����!�%�(�(� �,3�,=�e�,D�,D��,N�,N��s�C��0�0�/��L�L�#�u��.�.�.����!�,�V�V�<�<�	*�	*�J�C���3��V�,�,�
*����S�%�L�)�)�)�������
��6�:�&�&�
	8�,3�,@���,Q�,Q�
,�
,�(��'�5��!�!�'�*�*�*��,��N�N�7�\�#9�:�:�:�:��N�N�7�+�+�+�+��L�L�N�N�N��d�l�l�"�D�I�I�g�$6�$6�8�8�8�F��
�!�,�V�W�5E�F�F�	'�	'�J�C���~�(�(����4�4�
'��M�9Q�9Q��!�!�#�&�&�&���	5��O�O�����d�l�l��d�i�i�
�3�3�5�5�5�F��	K�9�9��9�9�9�I�����$�Y��2�2�D�:�:�;�H�%�
A�
A�
��U�����
�
�e�S�$� ?� ?�@�@�@�@��d�l�l�9�d�i�i��6I�6I�J�J�J�F��	M��H�#�
A�
A�
��U�����
�
�e�S�$� ?� ?�@�@�@�@��d�l�l�;��	�	�(�8K�8K�L�L�L�F��	H��H�"�
L�
L�
��U�����
�
�e�S�$�r�
� J� J�K�K�K�K��d�l�l�6�4�9�9�X�3F�3F�G�G�G�F��6�=�)�)�	?��&�,�-�-�G��s��s�|�1�1�1�g�b�c�c�l�c�6I�6I�!�"�R�%�.�.�.�0�0���d�l�l�9�g�>�>�>�F��6�:�&�&�	I��d�l�l�6�3�v��3G�3G�H�H�H�F��6�<�(�(�	M��d�l�l�8�S��9J�5K�5K�L�L�L�F��6�=�)�)�	O��d�l�l�9�c�&�:L�6M�6M�N�N�N�F�	 ��%�f�-�-�D�D���	 �	 �	 ��D�D�D�	 �����$�,�,�v�t�4�4�4���
s�:W�W�Wc�T�������	�j}|p|}�j}�jfd�}||krd��|��z}n��|��dz|z}|r+t	||��}	|dd�|	��zz}g}
|
j�	tj���}n#ttf$rd}YnwxYw|r(t|��}|r|dkr�||zdz��t���}
|
r�|
dz��ttj�����}t|��dkr2�d	��|D]}�d
||��z����d��t!d�t"����D��tj�
��}t|��}d}|rX�d��|d|�D]}�d
|z���||kr!�dt||z
��zdz���d��G�fd�d��}|��������fd�}����fd�}�����fd�}�fd�t)���D��}|r�|r|����n|dd�t-|�fd���\}}�t.jur�t.jur|}�\��urd}ndt3��j��z}t5|���|d|z|d���}|d|z|d���}|d |z|d!���}|d"|z|d#���}|d$|z|d%���}|d&|z|d'���}|}|��d�|
��}
|
s|dzS|dz��|
���d(��zdzS))Nc�"�t||��SrHre)r�r�s  r�makenamez"TextDoc.docclass.<locals>.makenames���Q��?�?�"r�class z	 = class r r�r!rUrWzMethod resolution order:r\rMc3�K�|]=}|j�d��s!|jdk�'t|j��V��>dS)r�r$N)r*r�rrE)r�r#s  rrKz#TextDoc.docclass.<locals>.<genexpr>Asa����
S�
S�3��L�+�+�C�0�0�
S�58�^�z�5Q�5Q����
�
�5Q�5Q�5Q�5Q�
S�
Srr�r�zBuilt-in subclasses:z    ... and z other subclassesc� ��eZdZd�Z�fd�ZdS)�(TextDoc.docclass.<locals>.HorizontalRulec��d|_dSr�r�rAs rr�z1TextDoc.docclass.<locals>.HorizontalRule.__init__Sr�rc�:��|jr�d��d|_dS)NzF----------------------------------------------------------------------rVr�r�s �rr�z.TextDoc.docclass.<locals>.HorizontalRule.maybeUr�rNr�r�s�rr�r�Rr�rr�c	�H��t||��\}}|r������|��|D]i\}}}}	t�
|��}���||�	�
�����:#t$r#���||�	����Y�fwxYw|SrHr�)
r�r�r�r�r$r�r�r�r�r�rBr�r;s
        �����rr�zTextDoc.docclass.<locals>.spill[s����#�E�9�5�5�I�B���
<����
�
�
���S�	�	�	�24�	<�	<�.�D�$���<� '��� 5� 5����T�]�]�5�(,�c�6�;�;�<�<�<�<��%�=�=�=���T�\�\�%��s�;�;�<�<�<�<�<�=�����Ls�A2�2*B�Bc����t||��\}}|rI�����
|��|D]'\}}}}�
��||�	�����(|SrHr�r�s        ����rr�z*TextDoc.docclass.<locals>.spilldescriptorslr�rc
�L��t||��\}}|r��
����
|��|D]k\}}}}t|��}	t�|��}	n#t$r|j|}	YnwxYw�
��|	|�d|���dz���l|S)Nrn)ror>rU)r�r�rSrr9�__dict__r)r�r�r�r�r$r�r�r�r>r:r�r�rBr�r;s          �����rr�z#TextDoc.docclass.<locals>.spilldataus����#�E�9�5�5�I�B���

����
�
�
���S�	�	�	�24���.�D�$��� ��-�-�C�5�%�f�d�3�3����)�5�5�5�%�.�t�4����5�����D����s�D�#�b�c��J�J��������Ls�A � A:�9A:c�H��g|]\}}}}t|�����||||f��Sr�r�rs     �rrz$TextDoc.docclass.<locals>.<listcomp>�rrrc���|d�uSrr�rs �rr�z"TextDoc.docclass.<locals>.<lambda>�rrrr	zMethods %s:
c��|ddkSrr�r
s rr�z"TextDoc.docclass.<locals>.<lambda>�rrzClass methods %s:
c��|ddkSrr�r
s rr�z"TextDoc.docclass.<locals>.<lambda>�rrzStatic methods %s:
c��|ddkSrr�r
s rr�z"TextDoc.docclass.<locals>.<lambda>�rrzReadonly properties %s:
c��|ddkSrr�r
s rr�z"TextDoc.docclass.<locals>.<lambda>�rrzData descriptors %s:
c��|ddkSrr�r
s rr�z"TextDoc.docclass.<locals>.<lambda>�rrzData and other attributes %s:
c��|ddkSrr�r
s rr�z"TextDoc.docclass.<locals>.<lambda>�rrz |  )r*r}rr[�maprZrr r%r&rIrErSrr"rY�sortedrD�__subclasses__r,r�r#r�r$rBr_r�r`rQ)r;rBr$r�r�r'r�r}rbr�rcr%r-r>r(r=�
subclasses�no_of_subclasses�MAX_SUBCLASSES_TO_DISPLAY�subclassnamer�r�r�r�r�r*r+r�r�rs`` `                       @@@rrzTextDoc.docclasss���������B��?����x��� �� �+�	#�	#�	#�	#��8����t�y�y��2�2�2�E�E��I�I�d�O�O�k�1�H�<�E��	8��(�E�*�*�G��F�T�Y�Y�w�%7�%7�7�7�E������	��)�&�1�1�I�I���I�&�	�	�	��I�I�I�	�����	,��)�n�n�G��
,�7�d�?�?���T�G�^�d�*�+�+�+��V�n�n���	��D��t������G�N�6�*�*�+�+���s�8�8�a�<�<��D�+�,�,�,��
.�
.����V�h�h�t�n�n�,�-�-�-�-��D��H�H�H��
S�
S�$�*=�*=�f�*E�*E�
S�
S�
S��	�
�
�
�
�
�z�?�?��$%�!��	��D�'�(�(�(� *�+E�,E�+E� F�
,�
,����V�l�*�+�+�+�+��";�;�;���^��)�,E�E�F�F�G�(�)�*�*�*�
�D��H�H�H�	!�	!�	!�	!�	!�	!�	!�	!�	!�	!��^�
�
��	�	�	�	�	�	�	�	�	�"	�	�	�	�	�	�	�	�
	�
	�
	�
	�
	�
	�
	�
	�
	�3�3�3�3�/C�F�/K�/K�3�3�3���!	��
(��K�K�M�M�	�	�!�!�H�Q�K�	�*�5�2M�2M�2M�2M�N�N��E�9��X�_�,�,��h�o�1M�1M�!����f�$�$�$���)�I�i�6<�6G�-I�-I�I��
�E�6�*�*�*��E�/�C�/��4�4�6�6�E��E�/�#�5�u�:�:�<�<�E��E�0�3�6��;�;�=�=�E�$�$�%@�3�%F��%J�%J�L�L�E�$�$�%=��%C�U�%H�%H�J�J�E��I�?�#�E�u�6�6�8�8�E��E�C�!	�F�9�9�X�&�&���	 ��4�<���t�|�d�k�k�(�/�/�*;�*;�V�D�D�D�t�K�Ks�B*�*C�?Cc�4�	d|�|��zSr/rDrJs  rr1zTextDoc.formatvalue�s��7��T�Y�Y�v�&�&�&�&rc��	|j}|p|}d}d}t|��r^|jj}|r||urdt	||��z}n8|j�dt	|jj|��z}ndt	||��z}tj|��stj|��rd}	nd}	||kr|�|��}
n7|rtj	||g��|urd}|�|��dz|z}
d}tj
|��rh	tj|��}n#ttf$rd}YnwxYw|r7t|��}|d	kr"|�|��d
z}
|dd�}|sd}|	|
z|z|z}
|r|
d
zSt|��pd}|
d
z|o)|�|�����d
zzS)NrMrr3r4r5r6rV� = r7z lambda rr8rU)r*ryr+r,r_r r9r:r[r;rbr%r&rIrErSr`rQ)r;rBr$r�r�r'r<r=r>r?rbr-r%r,r>s               rrzTextDoc.docroutine�sA��I��?����x�������F�#�#�
	I��o�/�G��
I��"�$�$�#�i���&=�&=�=�D���?�.�3�i���1�3�78�78�8�D�D�0�)�G�C�2H�2H�H�D��'��/�/�	 ��*�6�2�2�	 �%�N�N��N��8����I�I�h�'�'�E�E��
�g�,�R��2�>�>�&�H�H����I�I�d�O�O�e�+�h�6�E�����V�$�$�	,�
!�#�-�f�5�5�	�	���	�*�
!�
!�
!� �	�	�	�
!�����
,��i�.�.���z�)�)� �I�I�d�O�O�j�8�E�&�a��d�m�G��	��G���%��/�$�6���	L��$�;����.�.�&�B�C��$�;�#�"J�$�+�+�c�*:�*:�*A�*A�*C�*C�d�*J�K�Ks�D*�*E�?Ec��	g}|j}|r)||�|����|d��t|��pd}|r)||�|����|d��d�|��S)NrUrM)rr[rSr`rZrBs        rrzTextDoc.docdata�s���?����~���	��D����4���!�!�!��D��J�J�J��V�n�n�"����	��D����S�!�!�"�"�"��D��J�J�J��w�w�w���rc�R�	|�|��}|r1|r|dzpd|z}|t|��z
}	|	dkr
|d|	�dz}|r|�|��dzpd|z}|st|��}|r+|d|�t|����zdzz
}|S)Nr�rMrrmrU)rrYr[rSr`rE)
r;rBr$r�r�ror>rr��chops
          rrzTextDoc.docother�s���;��y�y�� � ���	4��)�T�E�\�/�R�4�7�D��C��I�I�%�D��a�x�x��U�d�U��e� 3���0����4���5�0�6�B�$�>���	!���.�.�C��	8��D�4�;�;�s�3�x�x�0�0�0�4�7�7�D��r)r\)NrMr�rN)NNNNN)r*rrrQrOrr[r`rpr�rrr1rrr1rr�rrrWrW�s������1��X�Z�Z�N���D�6�6�6� � � � �A�A�A����� c�c�c�c�JXL�XL�XL�XL�t'�'�'�5L�5L�5L�5L�n � � � ��K������rrWc��eZdZ	d�ZdS)�
_PlainTextDocc��|SrHr�rGs  rr[z_PlainTextDoc.bolds���rN)r*rrr[r�rrr�r�	s&������<�����rr�c�B�	t��at|��dSrH)�getpager�pagerrus rr�r�s��M��J�J�E�	�$�K�K�K�K�Krc�j��	ttjd��stSttjd��stStj���rtj���stStjdkrtStj�	d��ptj�	d����r@tjdkr�fd�Stj�	d��dvr�fd	�S�fd
�Stj�	d��dvrtStjdkrd�Sttd��rtj
d
��dkrd�Sddl}|���\}}tj
|��	ttd��r2tj
d|z��dkrd�tj|��Sttj|��S#tj|��wxYw)N�isatty�
emscripten�MANPAGER�PAGER�win32c�>��tt|�����SrH��
tempfilepager�plain�rh�	use_pagers �rr�zgetpager.<locals>.<lambda>#s���
�e�D�k�k�9� E� E�r�TERM)�dumb�emacsc�>��tt|�����SrH)�	pipepagerr�r�s �rr�zgetpager.<locals>.<lambda>%s���	�%��+�+�y� A� A�rc�$��t|���SrH�r�r�s �rr�zgetpager.<locals>.<lambda>'s���	�$�	� :� :�rc�<�tt|��d��S)Nzmore <r�rus rr�zgetpager.<locals>.<lambda>+s��M�%��+�+�x�@�@�r�systemz(less) 2>/dev/nullrc�"�t|d��S)N�lessr�rus rr�zgetpager.<locals>.<lambda>-s��I�d�F�3�3�rz	more "%s"c�"�t|d��S)N�morer�rus rr�zgetpager.<locals>.<lambda>4s��	�$�� 7� 7�r)r�r
�stdin�
plainpager�stdoutr��platformrr*rr��tempfile�mkstemp�close�unlink�ttypager)r��fdr�r�s   @rr�r�s
���<��3�9�h�'�'�����3�:�x�(�(�����9������S�Z�%6�%6�%8�%8����
�|�|�#�#����
���z�*�*�E�b�j�n�n�W�.E�.E�I��;��<�7�"�"�E�E�E�E�E�
�Z�^�^�F�
#�
#�'8�
8�
8�A�A�A�A�A�:�:�:�:�:�	�z�~�~�f���!2�2�2���
�|�w���@�@�@��r�8���4���+?�!@�!@�A�!E�!E�3�3�3��O�O�O��%�%�'�'�N�R���H�R�L�L�L���2�x� � �	�R�Y�{�X�/E�%F�%F�!�%K�%K�7�7�	�	�(������
�	�(�������	�(�������s�:2H�H�H2c�0�	tjdd|��S)Nz.rM)rOrPrus rr�r�:s��/�
�6�%��T�"�"�"rc�J�	ddl}|�|d|jd���}	|j5}	|�|��n#t
$rYnwxYwddd��n#1swxYwYn#t$rYnwxYw		|���dS#t
$rYnwxYw�()NrT�backslashreplace)�shellr��errors)�
subprocess�Popen�PIPEr��write�KeyboardInterruptr��wait)rh�cmdr��proc�pipes     rr�r�>s7��=��������C�t�:�?�#5��7�7�D�	
�
�Z�	�4�
��
�
�4� � � � ��$�
�
�
���
����	�	�	�	�	�	�	�	�	�	�	����	�	�	�	����
�
�
���
�����	��I�I�K�K�K��E�� �	�	�	�
�D�	����	si�A,�A �A�A �
A�A �A�A �A,� A$�$A,�'A$�(A,�,
A9�8A9�>B�
B!� B!c	��	ddl}|���5}tj�|d��}t|ddtjdkrtjd��nd���5}|�	|��ddd��n#1swxYwYtj
|dz|zdz��ddd��dS#1swxYwYdS)	Nrz	pydoc.out�wr�r�)r��encodingz "r�)r��TemporaryDirectoryrrrZr�r
r��device_encodingr�r�)rhr�r��tempdirr�r�s      rr�r�Vs\��F��O�O�O�	�	$�	$�	&�	&�/�'��7�<�<���5�5��
�(�C�(:��,�'�)�)��-�a�0�0�0�/3����	���J�J�t����		�	�	�	�	�	�	�	�	�	�	����	�	�	�	�
	�	�#��*�x�'�#�-�.�.�.�/�/�/�/�/�/�/�/�/�/�/�/����/�/�/�/�/�/s6�AC	�2B�C	�B	�C	�B	� C	�	C
�C
c��ttjdd��pd}|�|d���|��S)Nr��utf-8r�)rr
r��encode�decode)rhr�s  r�_escape_stdoutr�bs=���s�z�:�t�4�4�?��H��;�;�x�!3�4�4�;�;�H�E�E�Erc	��	tt|�����d��}	ddl}tj���}|�|��}|�|��d�}n'#tttjf$rd}d�}YnwxYw		ttj�dd����}n#t"$rd}YnwxYw|dkrd}|dz
x}}tj�d�|d|���dz��||d��rtj�d��tj���|��}	|	d	vr tj�d
��n�|	dvr1tj�d
||zdz��|dz}��|	dvr||z
|z
}|dkrd}tj�dd�||||z���zdz��||z}||d���|r|�||j|��dSdS#|r|�||j|��wwxYw)
NrUrc�@�tj�d��Sr{)r
r�r�r�rrr�zttypager.<locals>.<lambda>os��#�)�.�.��+�+�rc�^�tj���dd�dd�S)NrrV)r
r�r�r�rrr�zttypager.<locals>.<lambda>rs&��#�)�,�,�.�.�s��s�3�B�Q�B�7�r�LINESrV�z
-- more --)�q�Qz
          
)�
rU)�b�B�)r�r�r�ttyr
r��fileno�	tcgetattr�	setcbreakrr9�io�UnsupportedOperationr�rr*rr&r�r�rZ�flush�	tcsetattr�	TCSAFLUSH)
rhr[r�r��old�getchar�hrT�incr�s
          rr�r�gs���/��.��&�&�'�'�-�-�d�3�3�E�8��
�
�
�
�Y�
�
�
�
���m�m�B�����
�
�b����+�+�������)@�A�8�8�8���7�7����8����2�	��B�J�N�N�7�A�.�.�/�/�A�A���	�	�	��A�A�A�	������6�6��A��a�%���C��
������5��#��;�/�/�$�6�7�7�7��A�B�B�i�	��J���\�*�*�*��J��������	�	�A��J����
� � �!1�2�2�2���l�"�"��
� � �!1�E�!�H�!<�t�!C�D�D�D���E����&�&�&���G�c�M���q�5�5�a�!��J���T�D�I�I�e�A�a��e�G�n�$=�$=�=��D�E�E�E��C��A�!�A�B�B�i�	�&�	2��M�M�"�c�m�S�1�1�1�1�1�	2�	2��3�	2��M�M�"�c�m�S�1�1�1�1�	2���s=�AB�!B&�%B&�+-C�I+�C(�%I+�'C(�(E!I+�+!Jc�z�	tj�tt	|������dSrH)r
r�r�r�r�rus rr�r��s1��H��J���U�>�$�/�/�0�0�1�1�1�1�1rc��	tj|��rA|jtjvr
d|jzSt|d��r
d|jzSd|jzStj|��r
d|jzStj|��r$d|jj	�d|jj�d|j��Stj
|��r$d|jj	�d|jj�d|j��Stj|��r
d	|jzStj|��r
d
|jzStj
|��r
d|jzSt|��jS)Nzbuilt-in module r�zpackage zmodule zbuilt-in function zgetset descriptor r	zmember descriptor r~z	function zmethod )r rar*r
rr�r.�isgetsetdescriptorr4rr5r!r-r)rD)�things r�describer��s��9������.��>�S�5�5�5�%���6�6��5�*�%�%�	.����.�.��u�~�-�-������5�#�e�n�4�4��!�%�(�(�����)�)�)�5�+=�+F�+F�+F��N�N��	��!�%�(�(�����)�)�)�5�+=�+F�+F�+F��N�N��	���u���)��%�.�(�(���%� � �,��U�^�+�+������*��5�>�)�)���;�;��rc��	d�|�d��D��}d\}}|t|��krLtd�|d|dz���|��}|r||dz}}nn|t|��k�L|r|}nt}||d�D]%}	t||��}�#t$rYdSwxYw|S)Nc��g|]}|�|��Sr�r�)r�r	s  rrzlocate.<locals>.<listcomp>�s��6�6�6�d��6�T�6�6�6rr	r�rV)rrYr
rZr$rr9)rrr�r��n�
nextmodulerBr	s        r�locater�s���J�6�6�d�j�j��o�o�6�6�6�E��I�F�A�
�c�%�j�j�.�.������t��!��t�� 5� 5�y�A�A�
��	�:�q�1�u�q�v�v���c�%�j�j�.�.���������a�b�b�	����	��V�T�*�*�F�F���	�	�	��4�4�4�	�����Ms�B/�/
B>�=B>c���	t|t��r(t||��}|�td|z���||fSt	|dd��}|t|t��r|ndfS)Nz~No Python documentation found for %r.
Use help() to get the interactive help utility.
Use help(str) for help on the str class.r*)r/rErrr)r�rrBr$s    r�resolver�s���N��%����
>���y�)�)���>��,�/4�4�5�5�
5��u�}���u�j�$�/�/���j��s�3�3�=�d�d��=�=r� Python Library Documentation: %sc�P�	|�t}t||��\}}t|��}tj|��}|r(d|vr$|d|d|�d���zz
}n|r||ur
|d|jzz
}tj|��swtj|��sctj	|��sOtj
|��s;t|��s,t|d��r|j
}nt|��}|dz
}||zdz|�||��zS)Nr	z in z in module �
__origin__z objectrt)rhrr�r r��rfindr*rar!rbr3rKr�rrDr)r�rbr�rendererrBr$rxr�s        r�
render_docr�sM��L������5�)�,�,�L�F�D��F���D�
�
�v�
&�
&�F��0��t������.�t�z�z�#���.�/�/�/���	�0�F�&�(�(��
���/�/����V�$�$���o�f�%�%�����'�'���&�v�.�.���f�o�o�	��6�<�(�(�	��&�F�F��&�\�\�F��I��D��4�<�&� �8�#4�#4�V�T�#B�#B�B�Brc��	|� tt|||����dS|�t|||t����dSrH)r�rr��	plaintext)r�rbr�outputs    rr>r>�sP��M�
�~�
�j���y�1�1�2�2�2�2�2����Z��u�i��C�C�D�D�D�D�Drc�Z�	t||��\}}t�t|��t�||����}t|dzdd���5}|�|��ddd��n#1swxYwYtd|dz��dS)Nr(r�r�)r��wrote)r�htmlrdr�rr�r��print)r�rrBr$rdr�s      r�writedocr�s���F��5�)�,�,�L�F�D��9�9�X�f�%�%�t�}�}�V�T�'B�'B�C�C�D�	
�d�W�n�c�G�	4�	4�	4����
�
�4����������������������	�'�4�'�>�"�"�"�"�"s�+B
�
B�BrMc�h�	|�i}tj|g|��D]\}}}t|���dSrH)r��
walk_packagesr)r�pkgpath�doner�r^r�s      r�	writedocsrsI��K��|�B�T�$+�$9�3�%��$I�$I��� ��'�5�������
�Frc�<�eZdZidd�dd�dd�dd�dd�d	d
�dd�d
d�dd�dd�dd�dd�dd�dd�dd�dd�dd�id d!�d"d#�d$d%�dd&�d#d'�d(d)�d*d+�d,d-�d.d/�d0d�d1d�d2d3�d4d5�d6d7�dd8�d9d:�dd;��d<d=i�Zd>�d?D��Zd@dAdBdCge�RdDdEdFdGdHdIdJ�ZdKdLdMdNdOdPdQdRdSdTdUdVdVdWdWdX�Ze���D]1\ZZ	e	D])Z
e�e
e��ZeevredYzezZeee
<�*�2[[	[
[idZd[�dRd\�d]d^�d_d`�dadb�dcdd�dedf�dgdh�didj�dkdl�dmdn�dodp�dqdr�dsdt�dudv�dwdZ�dxdZ�idydz�dOd{�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���id�d��d�d��d�d��d�d��d�d��d�d��d�d��d�d��d�d��dSd��d�d��d�dk�d�d��d�d��d�d��dnd��d�d���id�d��d�d��d�d��d�d��dLd��d�d��d�d��d�d“d�dēd+dœddƓd�d	�d�dɓd�d˓d�d�d�d6�d�d#��dd�d�d�d�dӜ�Zd�dՄZ
edք��Zedׄ��Zd؄Ze��ZefdلZdڄZdۄZd܄Zd݄Zd�d�Zd�Zd�Zd�Zd�d�Zd�d�Zd�Zd�d�Z d�S)��Helper�FalserM�None�True�and�BOOLEAN�as�with�assert)rrM�async)r rM�await)r!rM�break)r"�	while for�class)r$zCLASSES SPECIALMETHODS�continue)r%r#�def)�functionrM�del)r(�BASICMETHODS�elif�if�else)r,r#�except�try�finally�for)r0zbreak continue while�from�import�global)r3znonlocal NAMESPACES)r+�
TRUTHVALUE)r2�MODULES�in)r6�SEQUENCEMETHODS�is�
COMPARISON�lambda)r:rm�nonlocal)r;zglobal NAMESPACES�not�or�pass)r>rM�raise)r?�
EXCEPTIONS�return)rArm)r.r@�while)rBzbreak continue if TRUTHVALUE)rz CONTEXTMANAGERS EXCEPTIONS yield�yield)rCrMc�"�g|]}dD]}||z���
S)��'r�r�)r��pr�s   rrzHelper.<listcomp>?s)��L�L�L�a��L�L�A�A��E�L�L�L�Lr)r��frT�urFz'''r�r�)�+r�*�**r'z//�%�<<�>>rD�|�^�~rErF�<=�>=�==�!=�<>)rErFrSrTrUrVrW)rrR)z+=z-=z*=z/=z%=z&=z|=z^=z<<=z>>=z**=z//=)rNrOrDrPrQrR)�j�J)�STRINGS�	OPERATORSr9�UNARY�AUGMENTEDASSIGNMENT�BITWISE�COMPLEXzOPERATORS FORMATTING�POWERzTUPLES LISTS FUNCTIONSz ATTRIBUTES FLOAT MODULES OBJECTS�ELLIPSISzSLICINGS DICTIONARYLITERALSz	def classrZ�PRIVATENAMESzPRIVATENAMES SPECIALMETHODS�
BACKQUOTESzTUPLES FUNCTIONS CALLSzLISTS SUBSCRIPTS SLICINGS)rMrL�,r	rm�:�@r�r�r��`r�r��[�]r�TYPES)�typeszRSTRINGS UNICODE NUMBERS SEQUENCES MAPPINGS FUNCTIONS CLASSES MODULES FILES inspect)�stringsz4str UNICODE SEQUENCES STRINGMETHODS FORMATTING TYPES�
STRINGMETHODS)zstring-methodszSTRINGS FORMATTING�
FORMATTING)�
formatstringsr[�UNICODE)rlz:encodings unicode SEQUENCES STRINGMETHODS FORMATTING TYPES�NUMBERS)�numberszINTEGER FLOAT COMPLEX TYPES�INTEGER)�integersz	int range�FLOAT)�floatingz
float mathr_)�	imaginaryz
complex cmath�	SEQUENCES)�typesseqz$STRINGMETHODS FORMATTING range LISTS�MAPPINGS�DICTIONARIESrm)�typesfunctionsz	def TYPES�METHODS)�typesmethodszclass def CLASSES TYPES�CODEOBJECTS)zbltin-code-objectszcompile FUNCTIONS TYPES�TYPEOBJECTS)zbltin-type-objectsztypes TYPES�FRAMEOBJECTS�
TRACEBACKS�NONE)zbltin-null-objectrM)zbltin-ellipsis-object�SLICINGS�SPECIALATTRIBUTES)�specialattrsrMrl)rkz!class SPECIALMETHODS PRIVATENAMESr5)�typesmodulesr2�PACKAGES�EXPRESSIONS)zoperator-summaryz�lambda or and not in is BOOLEAN COMPARISON BITWISE SHIFTING BINARY FORMATTING POWER UNARY ATTRIBUTES SUBSCRIPTS SLICINGS CALLS TUPLES LISTS DICTIONARIESr[�
PRECEDENCE�OBJECTS)�objectsrj�SPECIALMETHODS)�specialnameszbBASICMETHODS ATTRIBUTEMETHODS CALLABLEMETHODS SEQUENCEMETHODS MAPPINGMETHODS NUMBERMETHODS CLASSESr))�
customizationzhash repr str SPECIALMETHODS�ATTRIBUTEMETHODS)zattribute-accesszATTRIBUTES SPECIALMETHODS�CALLABLEMETHODS)zcallable-typeszCALLS SPECIALMETHODSr7)�sequence-typesz(SEQUENCES SEQUENCEMETHODS SPECIALMETHODS�MAPPINGMETHODS)r�zMAPPINGS SPECIALMETHODS�
NUMBERMETHODS)z
numeric-typesz*NUMBERS AUGMENTEDASSIGNMENT SPECIALMETHODS�	EXECUTION)�	execmodelz%NAMESPACES DYNAMICFEATURES EXCEPTIONS�
NAMESPACES)�namingz3global nonlocal ASSIGNMENT DELETION DYNAMICFEATURES�DYNAMICFEATURES)zdynamic-featuresrM�SCOPING�FRAMESr@)rztry except finally raise�CONVERSIONS)�conversionsrM�IDENTIFIERS)�identifierszkeywords SPECIALIDENTIFIERS�SPECIALIDENTIFIERS)z
id-classesrM)zatom-identifiersrM�LITERALS)z
atom-literalsz=STRINGS NUMBERS TUPLELITERALS LISTLITERALS DICTIONARYLITERALS�TUPLES�
TUPLELITERALS)�	exprlistszTUPLES LITERALS�LISTS)ztypesseq-mutable�LISTLITERALSr�)�listszLISTS LITERALS)�typesmapping�DICTIONARYLITERALSr�)r6zDICTIONARIES LITERALS�
ATTRIBUTES)zattribute-referencesz(getattr hasattr setattr ATTRIBUTEMETHODS�
SUBSCRIPTS)�
subscriptionsr7r�)�slicingsr7�CALLS)�callsr�)�powerr�r\)�unaryr��BINARY)�binaryr��SHIFTING)�shiftingr�r^)�bitwiser�)�comparisonszEXPRESSIONS BASICMETHODS)�booleanszEXPRESSIONS TRUTHVALUE�	ASSERTION�
ASSIGNMENT)�
assignmentr]r])�	augassignr��DELETION�	RETURNING�	IMPORTING)�compoundzfor while break continue)�truthz if while and or not BASICMETHODS)�debugger�pdb)zcontext-managersr)�CONDITIONAL�LOOPINGr4�	DEBUGGING�CONTEXTMANAGERSNc�"�||_||_dSrH)�_input�_output)r;�inputrs   rr�zHelper.__init__�s���������rc�(�|jptjSrH)r�r
r�rAs rr�zHelper.input�s���{�'�c�i�'rc�(�|jptjSrH)r�r
r�rAs rrz
Helper.output�s���|�)�s�z�)rc��tj��dddkr|��dSd|jj�d|jj�d�S)NrVrl�?rMrEr	z
 instance>)r �stackr,rrrAs r�__repr__zHelper.__repr__�s\���=�?�?�1��a� �C�'�'��D�F�F�F��2�(�&*�^�%>�%>�%>�%)�^�%@�%@�%@�B�	Brc�6�||jurM	|�|��dS#t$r(}|j�|�d���Yd}~dSd}~wwxYw|���|���|j�d��dS)NrUa
You are now leaving help and returning to the Python interpreter.
If you want to ask for help on a particular object directly from the
interpreter, you can type "help(object)".  Executing "help('string')"
has the same effect as typing a particular string at the help> prompt.
)�_GoInteractiverrrr��intro�interact)r;�request�es   r�__call__zHelper.__call__�s����$�-�-�-�
,��	�	�'�"�"�"�"�"���
,�
,�
,���!�!�Q�(�(�(�+�+�+�+�+�+�+�+�+�����
,����
�J�J�L�L�L��M�M�O�O�O��K����
�
�
�
�
s�"�
A�A�Ac���|j�d��		|�d��}|sdSn#ttf$rYdSwxYw|���}t
|��dkr6|d|dcxkrdvrnn|d|dd�vr
|dd�}|���d	vrdS|d
kr|���n|�	|����)NrUTzhelp> rWrrrErV)r��quitr)
rr��getliner��EOFErrorrXrYr,r�r�r;r�s  rr�zHelper.interact�s������$����	#�
��,�,�x�0�0���%���%��%�x�0�
�
�
����
�����m�m�o�o�G��G���q� � �W�Q�Z�7�2�;�%L�%L�%L�%L�*�%L�%L�%L�%L�%L���
�'�!�B�$�-�7�7�!�!�B�$�-���}�}���-�/�/����&� � ��
�
������	�	�'�"�"�"�#	#s�7�A�Ac���	|jtjurt|��S|j�|��|j���|j���SrH)r�r
r�rr�r�r�)r;�prompts  rr�zHelper.getline�s^��<��:���"�"���=�=� ��K���f�%�%�%��K�������:�&�&�(�(�(rc���t|��td��u�rv|���}|dkr|����n}|dkr|����na|dkr|����nE|dkr|����n)|dd�dkr.|�|���d��n�||jvr|�|��n�|d	vrtt|��d
��n�||jvr|�|��n�||j
vr|�|��nn|rt|d
|j���nTttd
|j���n7t!|t"��r|��nt|d
|j���|j�d��dS)
NrM�keywords�symbols�topicsr�zmodules rV)rrrzHelp on %s:)rrU)rDrX�listkeywords�listsymbols�
listtopics�listmodulesrr��
showsymbolr>�evalr��	showtopicr�r�rEr/rrr�r�s  rrzHelper.help�s�����=�=�D��H�H�$�$��m�m�o�o�G��*�$�$�d�&7�&7�&9�&9�&9�&9��I�%�%�t�'7�'7�'9�'9�'9�'9��H�$�$�d�o�o�&7�&7�&7�&7��I�%�%�t�'7�'7�'9�'9�'9�'9���!���
�*�*�� � �������!3�4�4�4�4��D�L�(�(�$�/�/�'�*B�*B�*B�*B��5�5�5��D��M�M�=�1�1�1�1��D�M�)�)�4�>�>�'�+B�+B�+B�+B��D�K�'�'�����)@�)@�)@�)@��
?�#�g�}�T�\�J�J�J�J�J��c�=���>�>�>�>�>�
���
(�
(�	?�$�$�&�&�&�&��'�=���>�>�>�>�����$�����rc��|j�d�dtjdd�z����dS)Na�
Welcome to Python {0}'s help utility!

If this is your first time using Python, you should definitely check out
the tutorial on the internet at https://docs.python.org/{0}/tutorial/.

Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules.  To quit this help utility and
return to the interpreter, just type "quit".

To get a list of available modules, keywords, symbols, or topics, type
"modules", "keywords", "symbols", or "topics".  Each module also comes
with a one-line summary of what it does; to list the modules whose name
or summary contain a given string such as "spam", type "modules spam".
z%d.%drW)rr�r+r
r0rAs rr�zHelper.introsK��������F�7�S�%�b�q�b�)�)�*�*�	,�	,�	,�	,�	,rr��Pc���tt|����}||z}t|��|zdz
|z}t|��D]�}t|��D]}||z|z}|t|��krb|j�||��||dz
kr9|j�dd|dz
t||��z
zz����|j�d����dS)NrVrrU)rzr�rYryrr�)	r;�items�columnsrl�colwr{�rowr|r�s	         rrzzHelper.list#s���V�E�]�]�#�#�������E�
�
�W�$�q�(�W�4����;�;�	$�	$�C��W�~�~�
R�
R���$�J��$���s�5�z�z�>�>��K�%�%�e�A�h�/�/�/��W�q�[�(�(���)�)�#��t�a�x�#�e�A�h�-�-�7O�0P�*P�Q�Q�Q���K���d�#�#�#�#�	$�	$rc��|j�d��|�|j�����dS)NzN
Here is a list of the Python keywords.  Enter any keyword to get more help.

)rr�rzr�r�rAs rr�zHelper.listkeywords0sI�������	�	�	�	
�	�	�$�-�$�$�&�&�'�'�'�'�'rc��|j�d��|�|j�����dS)Nzx
Here is a list of the punctuation symbols which Python assigns special meaning
to. Enter any symbol to get more help.

)rr�rzr�r�rAs rr�zHelper.listsymbols7sI�������	�	�	�
	
�	�	�$�,�#�#�%�%�&�&�&�&�&rc��|j�d��|�|j�����dS)NzN
Here is a list of available topics.  Enter any topic name to get more help.

)rr�rzr�r�rAs rr�zHelper.listtopics?sI�������	�	�	�	
�	�	�$�+�"�"�$�$�%�%�%�%�%rc�f�	ddl}n+#t$r|j�d��YdSwxYw|j�||j�|����}|s,|j�dt|��z��dSt|��td��ur|�	||��S|\}}	|jj|}n;#t$r.|j�dt|��z��YdSwxYw|���dz}|r
|pddz|z}|rbddl}dd�
|�����zdz}	|�|	d	��}
|d
d�
|
��zz
}t!|��dS)Nr�t
Sorry, topic and keyword documentation is not available because the
module "pydoc_data.topics" could not be found.
zno documentation found for %s
rMrUr�Related help topics: r��Hz
%s
)�pydoc_data.topicsrrr�r�rr�rrDr��KeyErrorrX�textwraprZr�wrapr�)r;�topic�
more_xrefs�
pydoc_data�target�label�xrefsr>r�rh�wrapped_texts           rr�zHelper.showtopicFs���	�$�$�$�$�$���	�	�	��K����
�
�
�
�F�F�	����������
�(9�(9�%�(@�(@�A�A���	��K���?�$�u�+�+�M�N�N�N��F���<�<�4��8�8�#�#��>�>�&�*�5�5�5����u�	��#�*�5�1�C�C���	�	�	��K���?�$�u�+�+�M�N�N�N��F�F�	�����i�i�k�k�D� ���	5��[�b�C�'�*�4�E��	6��O�O�O�*�T�Y�Y�u�{�{�}�}�-E�-E�E��L�D�#�=�=��r�2�2�L��8�d�i�i��5�5�5�5�C�
�c�
�
�
�
�
s��$/�/�
C � 4D�Dc�^�		ddl}n#t$rYdSwxYw|j�||j�|����}|std���t
|t��r|�||��S|\}}|jj|}|r
|pddz|z}||fS)Nr)r�rMzcould not find topicrMr)	r�rr�rr�r&r/rE�	_gettopic)r;r�r�rrrrr>s        rrzHelper._gettopicfs���	�	
�$�$�$�$�$���	
�	
�	
�
�
�
�	
����
������
�(9�(9�%�(@�(@�A�A���	5��3�4�4�4��f�c�"�"�	6��>�>�&�*�5�5�5����u���&�u�-���	5��[�b�C�'�*�4�E��E�z�s��
�c�~�|j|}|�d��\}}}|�||��dS)Nr)r��	partitionr�)r;�symbolrr�r�rs      rr�zHelper.showsymbol�sA����f�%�� �*�*�3�/�/���q�%����u�e�$�$�$�$�$rc���|r>|j�d�|����t|��dS|j�d��i}|fd���fd�}t	����|���|�|�����|j�d��dS)Nzy
Here is a list of modules whose name or summary contains '{}'.
If there are any, enter a module name to get more help.

zI
Please wait a moment while I gather a list of all available modules...

c��|r|dd�dkr
|dd�dz}|�d��dkrd||<dSdS)N����	.__init__rir	rrV)�find)rr^rxrs    r�callbackz$Helper.listmodules.<locals>.callback�s]���:�w�r�s�s�|�{�:�:�%�c�r�c�l�\�9�G��<�<��$�$�q�(�(�'(�G�G�$�$�$�)�(rc�"���d|d��dSrHr�)r^rs �r�onerrorz#Helper.listmodules.<locals>.onerror�s������w��-�-�-�-�-r�rz�
Enter any module name to get more help.  Or, type "modules spam" to search
for modules whose name or summary contain the string "spam".
)rr�r+�apropos�
ModuleScanner�runrzr�)r;r�rrrs    @rr�zHelper.listmodules�s�����	��K�����F�3�K�K�	
�
�
�

�C�L�L�L�L�L��K����
�
�
��G�6=�
)�
)�
)�
)�

.�
.�
.�
.�
.��O�O����'��:�:�:��I�I�g�l�l�n�n�%�%�%��K����
�
�
�
�
rr�)r�r�rM)!r*rrr��_strprefixes�_symbols_inverser�r�r��symbols_r	rr�r�r0r�rr�rBr�r�r�r�rr�rzr�r�r�r�rr�r�r�rrrrs�������$���$���$�	��$�	�y�	$�
	
�f�$�	�.�
$�	��$�	��$�	�'�$�	�4�$�	�-�$�	��$�	�&�$�	��$�	�%�$� 	�%�!$�"	�5�#$�$�$	�.�%$�&	��'$�(	�3�)$�*	
�"�+$�,	�'�-$�.	
�'�/$�0	
�l�1$�2	�)�3$�4	�5�5$�6	�y�7$�8	
�i�9$�:	��;$�<	�(�=$�>	�)�?$�@	�$�A$�B	�:�C$�D	�<�E$�$�F	��G$�$�H�NM�L�#7�L�L�L�L��%��e�;�l�;�;�N�?��!B�4��
�
��$��
%�
/��
*�
��
�+�
�
%�
%�
(�
(���G�",�1�1�3�3�%�%���x��	%�	%�F��[�[���/�/�F��F�"�"��#���-��$�G�F�O�O�		%�
	�x���U��=�U�	�(�U�
	�A�U�	�4�
U�	�(�U�	�=�U�	�,�U�	�+�U�	�1�U�	�I�U�	�N�U�	�4�U� 	�>�!U�"	�H�#U�$	�<�%U�&	��'U�(	�g�)U�U�*	�)�+U�,	�9�-U�.	�1�/U�0	�A�1U�2	�-�3U�4	�H�5U�6	�.�7U�>	�]�?U�@	�m�AU�B	�'�CU�D	�4�EU�J	�I�KU�L	�M�MU�N	�E�OU�P	�/�QU�T	�G�UU�V	�,�WU�U�U�Z	�K�[U�\	�W�]U�^	�3�_U�`	�<�aU�b	�,�cU�d	�@�eU�f	�*�gU�h	�E�iU�j	�0�kU�l	�0�mU�n	�8�oU�r	�+�sU�t	�9�uU�v	�5�wU�x	�3�yU�z	�>�{U�|	�?�}U�U�U�~	�Z�U�@	�:�AU�B	�3�CU�D	�)�EU�F	�)�GU�H	�)�IU�J	�+�KU�L	�/�MU�N	�-�OU�P	�A�QU�R	�9�SU�T	�X�UU�V	�;�WU�X	�=�YU�Z	�E�[U�\	�X�]U�^	�X�_U�U�`�;�C�(�7�iU�U�U�F�n�����(�(��X�(��*�*��X�*�B�B�B��V�X�X�N�-����� #�#�#�*)�)�)� � � �*,�,�,�"$�$�$�$�(�(�(�'�'�'�&�&�&�����@����6%�%�%�
�����rrc��eZdZ	dd�ZdS)rNc���|r|���}d|_i}tjD]�}|dkr�d||<|�|d|d���t	|��jpd}|�d��d}|dz|z}|����|��dkr
|d||����tj	|���D�]�\}	}}
|jr�n�|�|d|d���!	tj
|	|��}n#t$rY�DwxYw|j}t|d	��r�	|�|��}
n#t$r|r||��Y��wxYwt!t#j|
����pd}t|d
��r|�|��}n{d}nx	t(j�|��}n#t.$r|r||��Y��wxYw|jr|j���dnd}t3|dd��}|dz|z}|����|��dkr
||||�����|r|��dSdS)NF�__main__rVrMrUrr�r�
get_source�get_filenamer�)r,r�r
rrrArrr�r�	_get_specrr�r�rr�r�r��StringIOrr�r�r�rr�r)r;rr��	completerr�seenr^r$rxr�r�r�r��sourcerr�s                rrzModuleScanner.run�s���!�c�i�i�k�k����	����/�
	6�
	6�G��*�$�$� !��W�
��;��H�T�7�B�/�/�/�/�%�g�.�.�6�<�"�D��:�:�d�+�+�A�.�D�"�U�?�T�1�D��z�z�|�|�(�(��-�-��2�2� ���w��5�5�5��(/�(=�g�(N�(N�(N�$	2�$	2�$�H�g�u��y�
����{����w��+�+�+�+��"�,�X�w�?�?�D�D��"�����H���������6�<�0�0�;�!�!'�!2�!2�7�!;�!;����$�!�!�!�"�-�#�G�G�,�,�,� ��!����+�2�;�v�+>�+>�?�?�E�2�D��v�~�6�6�$�%�2�2�7�;�;���#���!�!*�!5�!;�!;�D�!A�!A����&�!�!�!�"�-�#�G�G�,�,�,� ��!����>D�^�S�6�>�4�4�6�6�q�9�9�QS�D�"�6�*�T�:�:�D�����-���:�:�<�<�$�$�S�)�)�Q�.�.��H�T�7�D�1�1�1���	��I�K�K�K�K�K�	�	s6�2D�
D�D�0E�E �E �0G�G+�*G+rN)r*rrrr�rrrr�s+������A�8�8�8�8�8�8rrc���	d�}d�}tj��5tjd��t���|||���ddd��dS#1swxYwYdS)Nc�f�|dd�dkr
|dd�dz}t||od|z��dS�Nrr
riz- )r)rr^rxs   rrzapropos.<locals>.callback�sF���2�3�3�<�;�&�&��c�r�c�l�\�1�G�
�g�t�+��t��,�,�,�,�,rc��dSrHr��r^s rrzapropos.<locals>.onerror�s���r�ignorer)�warnings�catch_warnings�filterwarningsrr)r�rrs   rrr�s���K�-�-�-�
�
�
�	�	 �	"�	"�<�<����)�)�)������H�c�7��;�;�;�<�<�<�<�<�<�<�<�<�<�<�<����<�<�<�<�<�<s�9A!�!A%�(A%c�l�����	�
�	ddl�ddl�ddl�	ddl�
Gd�d�jj���G�	fd�d�jj���G�����
fd�d�
j��}||||��}|���|j	s)|j
s"tjd��|j	s|j
�"|S)	Nrc��eZdZd�Zd�ZdS)�!_start_server.<locals>.DocHandlerc�V�	|j�d��rd}nd}|�d��|�dd|z��|���|j�|�|j|���d����dS)Nz.css�text/css�	text/html��zContent-Typez%s; charset=UTF-8r�)	rr��
send_response�send_header�end_headers�wfiler��
urlhandlerr�)r;�content_types  r�do_GETz(_start_server.<locals>.DocHandler.do_GET.	s���
�
�y�!�!�&�)�)�
+�)���*�����s�#�#�#����^�-@�<�-O�P�P�P��������J���T�_�_��	�<�)�)�)/�����
:�
:�
:�
:�
:rc��dSrHr�)r;rs  r�log_messagez-_start_server.<locals>.DocHandler.log_message>	s���DrN)r*rrr9r;r�rr�
DocHandlerr.,	s2������	:�	:�	:� 	�	�	�	�	rr<c�&��eZdZd�Z�fd�Zd�ZdS)� _start_server.<locals>.DocServerc��||_|j|f|_||_|j�||j|j��d|_dS�NF)�host�addressrr=r��handlerr�)r;rA�portrs    rr�z)_start_server.<locals>.DocServer.__init__D	sG���D�I� �I�t�,�D�L�$�D�M��I���t�T�\�4�<�@�@�@��D�I�I�Irc����|jsQ��|j���gggd��\}}}|r|���|j�Q|���dSr{)r��select�socketr��handle_request�server_close)r;�rd�wr�exrFs    �r�serve_until_quitz1_start_server.<locals>.DocServer.serve_until_quitK	s{����i�
*�#�]�]�D�K�,>�,>�,@�,@�+A�2�r�1�M�M�
��B���*��'�'�)�)�)��i�
*�
�������rc�v�|j�|��|jr|�|��dSdSrH)r=�server_activaterrAs rrOz0_start_server.<locals>.DocServer.server_activateR	sD���I�%�%�d�+�+�+��}�
$��
�
�d�#�#�#�#�#�
$�
$rN)r*rrr�rMrO)rFs�r�	DocServerr>B	sL�������	�	�	�	 �	 �	 �	 �	 �	$�	$�	$�	$�	$rrPc�6��eZdZ�fd�Z����fd�Zd�Zd�ZdS)�#_start_server.<locals>.ServerThreadc���||_||_t|��|_�j�|��d|_d|_dSr@)r7rAr�rD�Threadr��serving�error)r;r7rArD�	threadings    �rr�z,_start_server.<locals>.ServerThread.__init__Y	sG���(�D�O��D�I��D�	�	�D�I���%�%�d�+�+�+� �D�L��D�J�J�Jrc�<��		�jj�_��_�jj�_t|j���_�|j	|j
|j��}||_|�
��dS#t$r}||_Yd}~dSd}~wwxYwrH)�server�
HTTPServerr=rCr�Message�MessageClass�staticmethodr7rArD�ready�	docserverrMr�rV)r;�docsvrr�r<rP�email�https   ����rrz'_start_server.<locals>.ServerThread.runa	s����#�	
�!%��!7�	��$.�	�!�*/�-�*?�
�'�(4�T�_�(E�(E�
�%�"��4�9�d�i���D�D��!'����'�'�)�)�)�)�)���
�
�
���
�
�
�
�
�
�
�����
���s�A9A?�?
B�	B�Bc�p�d|_|j|_|j|_d|j|jfz|_dS)NTz
http://%s:%d/)rUrA�server_portrDr�)r;rYs  rr^z)_start_server.<locals>.ServerThread.readyn	s5���D�L���D�I��*�D�I�&�$�)�T�Y�)?�?�D�H�H�Hrc�r�	d|j_|���d|_d|_d|_dS)NTF)r_r�rZrUr�rAs r�stopz(_start_server.<locals>.ServerThread.stopt	s7��8�"&�D�N���I�I�K�K�K�"�D�N� �D�L��D�H�H�HrN)r*rrr�rr^rf)r<rPrarbrWs�����r�ServerThreadrRW	sw�������	�	�	�	�	�	�	�	�	�	�	�	�	�	@�	@�	@�	�	�	�	�	rrgg{�G�z�?)
�http.server�
email.messagerFrWrY�BaseHTTPRequestHandlerrZrTr�rVrU�time�sleep)r7�hostnamerDrg�threadr<rPrarbrFrWs     @@@@@@r�
_start_serverro�sO��������6�n���������M�M�M����������T�[�7����,$�$�$�$�$�$�$�D�K�*�$�$�$�*%�%�%�%�%�%�%�%�%�%�%�y�'�%�%�%�N�\�*�h��
5�
5�F�
�L�L�N�N�N��l��6�>���
�3�����l��6�>���Mrr1c����	�
���
���	G�fd�dt��}|����fd���fd��
�fd��
�fd���fd���fd���fd	��	�fd
�����	�
��
��fd�}|�d��r
|d
d�}|dkr�tj�tj�t����}tj�||��}t|��5}d�|�	����cddd��S#1swxYwYn|dkr||��Std|�d|�����)Nc���eZdZ�fd�ZdS)�_url_handler.<locals>._HTMLDocc	�B��	d}d|z}d|�d|�d����d|�d�	S)Nzpydoc_data/_pydoc.cssz1<link rel="stylesheet" type="text/css" href="%s">zH<!DOCTYPE>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Pydoc: z	</title>
z
</head><body>z*<div style="clear:both;padding-top:.5em;">z</div>
</body></html>r�)r;rbrc�css_path�css_link�html_navbars     �rrdz#_url_handler.<locals>._HTMLDoc.page�	sH���&�.�H�C���
�H��U�U�H�H�H�k�k�m�m�m�m�X�X�X�?�
?rN)r*rrrd)rvs�r�_HTMLDocrr�	s.�������
	?�
	?�
	?�
	?�
	?�
	?�
	?rrwc�����tj���dtj��d�dtj���d���}d|�d��tjd������d	�S)
Nz [rr�riz=
            <div style='float:left'>
                Python �<br>T)�tersea
            </div>
            <div style='float:right'>
                <div style='text-align:center'>
                  <a href="index.html">Module Index</a>
                  : <a href="topics.html">Topics</a>
                  : <a href="keywords.html">Keywords</a>
                </div>
                <div>
                    <form action="get" style='display:inline;'>
                      <input type=text name=key size=15>
                      <input type=submit value="Get">
                    </form>&nbsp;
                    <form action="search" style='display:inline;'>
                      <input type=text name=key size=15>
                      <input type=submit value="Search">
                    </form>
                </div>
            </div>
            )rHr��python_version�python_build�python_compiler)r�rs �rrvz!_url_handler.<locals>.html_navbar�	s�����+�+�x�/F�/H�/H�/H�/H�/7�/D�/F�/F�q�/I�/I�/I�/7�/G�/I�/I�/I�/I�K�L�L���0�7�7�D�K�K��(9��(E�(E�(E�F�F�F�F�+H�	Hrc���	d�}��d��}d�tjD��}��||��}|d��dd|��zg}i}tjD]+}|���||�����,|�d��dd	�|��fS)
Nc��d|�d|�d�Sr�r��r$s r�	bltinlinkz3_url_handler.<locals>.html_index.<locals>.bltinlink�	����15���t�t�t�<�<rz/<strong class="title">Index of Modules</strong>c��g|]
}|dk�|��S)rr�)r�r$s  rrz4_url_handler.<locals>.html_index.<locals>.<listcomp>�	s,��(�(�(�$��J�&�&��&�&�&rz<p>zBuilt-in Modulesr�zf<p align=right class="heading-text grey"><strong>pydoc</strong> by Ka-Ping Yee&lt;ping@lfw.org&gt;</p>zIndex of ModulesrM)	rhr
rr}rrrrr�rZ)r�rh�namesrcr!rrs      �r�
html_indexz _url_handler.<locals>.html_index�	s���� �	=�	=�	=��,�,�=�
�
��(�(�#�":�(�(�(���#�#�E�9�5�5���U�T�_�_����&3�&3�3�4�����8�	3�	3�C��O�O�D�J�J�s�D�1�1�2�2�2�2����
'�	(�	(�	(�"�2�7�7�8�#4�#4�4�4rc����	�	g�	�	fd�}tj��5tjd��d�}t���|||���ddd��n#1swxYwYd�}g}�
�d��}�	D]&\}}|�||��|z���'|�
�d|zdd	�|����z}d
|fS)Nc�v��|dd�dkr
|dd�dz}��||od|zf��dSr%r�)rr^rx�
search_results   �rrz3_url_handler.<locals>.html_search.<locals>.callback�	sP����r�s�s�|�{�*�*�!�#�2�#�,��5��� � �'�4�+?�D�4�K�!@�A�A�A�A�Arr(c��dSrHr�r's rrz2_url_handler.<locals>.html_search.<locals>.onerror�	s���rrc��d|�d|�d�Sr�r�r�s rr�z4_url_handler.<locals>.html_search.<locals>.bltinlink�	r�rz-<strong class="title">Search Results</strong>zkey = %sr�ryzSearch Results)	r)r*r+rrrhrrrrZ)r�rrr�r�rhr$rxrcr�rs         @�r�html_searchz!_url_handler.<locals>.html_search�	s�����"��
�	B�	B�	B�	B�	B�
�
$�
&�
&�	@�	@��#�H�-�-�-�
�
�
��O�O����#�w��?�?�?�		@�	@�	@�	@�	@�	@�	@�	@�	@�	@�	@����	@�	@�	@�	@�	=�	=�	=����,�,�;�
�
��(�	3�	3�J�D�$��N�N�9�9�T�?�?�T�1�2�2�2�2��T�_�_����g�v�{�{�7�';�';�=�=�=����)�)s�<A&�&A*�-A*c����	d�}��d��}ttj�����}��||��}|��dd|��z}d|fS)Nc��d|�d|�d�S�Nz<a href="topic?key=r�r�r�r�s rr�z4_url_handler.<locals>.html_topics.<locals>.bltinlink�	����6:�d�d�D�D�D�A�Ar�$<strong class="title">INDEX</strong>�Topicsr�)rhr�rr�r�r}rr)r�rhr�rcrs    �r�html_topicsz!_url_handler.<locals>.html_topics�	s����-�	B�	B�	B��,�,�2�
�
���v�}�)�)�+�+�,�,���#�#�E�9�5�5���T�_�_��g�x�)�)�)����!�!rc����	��d��}ttj�����}d�}��||��}|��dd|��z}d|fS)Nr�c��d|�d|�d�Sr�r�r�s rr�z6_url_handler.<locals>.html_keywords.<locals>.bltinlink
r�r�Keywordsr�)rhr�rr�r�r}rr)rhr�r�rcrs    �r�
html_keywordsz#_url_handler.<locals>.html_keywords
s���� ��,�,�2�
�
���v��+�+�-�-�.�.��	B�	B�	B��#�#�E�9�5�5���T�_�_����+�+�+���8�#�#rc�
��	tj��}t||��}|�|��\}}||jvrd}nd}��d|z��}d��|��z}��|d|��}|rQt|�	����}d�}��
||��}��dd|��}|�d|��d	�|||f��fS)
N�KEYWORD�TOPICr�z
<pre>%s</pre>r�c��d|�d|�d�Sr�r�r�s rr�z7_url_handler.<locals>.html_topicpage.<locals>.bltinlink%
s���:>�$�$����E�Err�rrM)
r�rrrr�rhr�rrr�rr}rprZ)	r��buf�htmlhelprcrrbrhr�rs	        �r�html_topicpagez$_url_handler.<locals>.html_topicpage
s$���)��k�m�m���#�s�#�#��"�,�,�U�3�3���%��H�%�%�%��E�E��E��,�,�/�%�7�
�
��#�T�[�[��%:�%:�:���?�?�5�7�H�=�=���	J��5�;�;�=�=�)�)�E�
F�
F�
F��$�$�U�I�6�6�E��L�L�!8�'�5�I�I�E� �5�5�%�%�(�����(�E�2�3�3�5�	5rc���t|d���}|�|dkrtd���t|��}��||��}||fS)NrV)rrzcould not find object)rr&r�r)r�r:rb�contentrs    �r�html_getobjz!_url_handler.<locals>.html_getobj-
sY����S�A�&�&�&���;�3�&�=�=��4�5�5�5���
�
���-�-��S�)�)���g�~�rc������d��}d��fd�tt|��|��D����}|��|d|��z}d|z|fS)Nz$<strong class="title">Error</strong>ryc3�B�K�|]}��|��V��dSrH)rH)r�r�rs  �rrKz3_url_handler.<locals>.html_error.<locals>.<genexpr>9
sG�����F�F�T�t�{�{�4�0�0�F�F�F�F�F�FrrVz
Error - %s)rhrZrrDrr)r�r�rhrcrs    �r�
html_errorz _url_handler.<locals>.html_error5
s�����,�,�2�
�
���;�;�F�F�F�F�4�T�#�Y�Y��D�D�F�F�F�F�F���T�_�_�S�'�8�D�D�D���c�!�8�+�+rc����	|}|�d��r
|dd�}	|dvr�
��\}}n�|dkr���\}}n�|dkr���\}}n�d|vr�|�d��\}}}|dkr�|��\}}n�|dkr.	�
|��\}}n�#t$r�	|��\}}YngwxYw|d	kr@|dvr�
��\}}nK	�	|��\}}n;#t$r�
|��\}}Yn!wxYwtd
����	|��\}}n&#t$r}�||��\}}Yd}~nd}~wwxYw��||��S)Nr(���)rMr�r�r�r0z
search?keyz	topic?keyzget?keyz
bad pydoc url)r�rr&r�rd)r��complete_urlrbr��opr�r�rr�r�r�r�r�r�r�s       ��������r�
get_html_pagez#_url_handler.<locals>.get_html_page>
s���,����<�<�� � �	��c�r�c�(�C� 	;��m�#�#�!+������w�w�����!,������w�w��
�"�"�!.������w�w����� �]�]�3�/�/�
��A�s���%�%�%0�[��%5�%5�N�E�7�7��;�&�&�:�)7���)<�)<���w�w��%�:�:�:�)4��S�)9�)9���w�w�w�:�����9�_�_��m�+�+�)3������w�w�A�-8�[��-=�-=�N�E�7�7��)�A�A�A�-;�^�C�-@�-@�N�E�7�7�7�A����%�_�5�5�5�!,��S�!1�!1���w����	;�	;�	;�'�Z��c�:�:�N�E�7�7�7�7�7�7�����	;�����y�y���(�(�(s`�A2D)�B'�&D)�'C�?D)�C�D)�C-�,D)�-D�D)�D� D)�)
E�3E�Er'rVr0rMr1zunknown content type z	 for url )r`r�rr�dirname�realpathr�rZr��	readlinesrI)r�r8rwr��	path_herert�fprr�r�r�r�rvr�r�r�s       @@@@@@@@@r�_url_handlerr��	sv������������?�?�?�?�?�?�?�7�?�?�?�$�8�:�:�D�H�H�H�H�H�65�5�5�5�5�0*�*�*�*�*�<"�"�"�"�"� 
$�
$�
$�
$�
$�5�5�5�5�5�2�����,�,�,�,�,�&)�&)�&)�&)�&)�&)�&)�&)�&)�&)�&)�&)�P�~�~�c�����!�"�"�g���z�!�!��G�O�O�B�G�$4�$4�X�$>�$>�?�?�	��7�<�<�	�3�/�/��
�(�^�^�	+�r��7�7�2�<�<�>�>�*�*�	+�	+�	+�	+�	+�	+�	+�	+�	+�	+�	+�	+����	+�	+�	+�	+�	+�	��	$�	$��}�S�!�!�!�
�)�L�L�L�#�#�N�
O�
O�Os�3'D'�'D+�.D+T�	localhost)�open_browserrmc���	ddl}tt||��}|jrt	|j��dS|j�r/d}|r|�|j��	t	d|j��t	|��|jratd��}|�	��}|dkrn7|dkr|�|j��nt	|��|j�an%#ttf$rt	��YnwxYw|jr%|���t	d��dSdS#|jr$|���t	d��wwxYwdS)Nrz"Server commands: [b]rowser, [q]uitzServer ready atzserver> r�r�zServer stopped)
�
webbrowserror�rVrrUr�r�r�r,r�r�rf)rDr�rmr��serverthread�server_help_msgr�s       r�browser�s
s����
���� ��x��>�>�L����
�l� �!�!�!�����(�>���	.��O�O�L�,�-�-�-�	(��#�\�%5�6�6�6��/�"�"�"��&�
+��J�'�'���i�i�k�k���#�:�:���C�Z�Z��O�O�L�$4�5�5�5�5��/�*�*�*��&�
+���"�8�,�	�	�	��G�G�G�G�G�	�����#�
(��!�!�#�#�#��&�'�'�'�'�'�
(�
(��|�#�
(��!�!�#�#�#��&�'�'�'�'�
(����'(�(s+� BC-�,E�-D�E�D�E�-E-c�r�t|t��o"|�tj��dkSr�)r/rErr�sep)r�s r�ispathr��
s(���a����5�!�&�&���.�.�A�"5�5rc���	d|vs#tj|vstj��|vrdStj�t
��}tj�|��}|���}||vr5tj�||��s|�|��|�	dtj����|S)NrMr)
r�curdir�getcwdrr�r��copy�samefile�remove�insert)�
given_path�argv0�
stdlib_dir�
script_dir�revised_paths     r�_get_revised_pathr��
s����
�Z���2�9�
�2�2�b�i�k�k�Z�6O�6O��t������*�*�J������'�'�J��?�?�$�$�L��Z�����(8�(8��Z�(P�(P�����J�'�'�'�����2�9�;�;�'�'�'��rc��	ttjtjd��}|�|tjdd�<dSdSr�)r�r
r�argv)r�s r�_adjust_cli_sys_pathr��
sA���%�S�X�s�x��{�;�;�L���"��������� �rc�.�	ddl}Gd�dt��}t��	|�tjdd�d��\}}d}d}d}d}d}|D]C\}	}
|	dkrd	}d	}|	d
krt|
��dS|	dkrd	}|
}|	dkrd	}|	d
krd	}|
}�D|rt
|||���dS|s|�|D�]A}t|��rEtj	�
|��s&td|z��tjd��	t|��r.tj	�
|��rt|��}|rNt|��r/tj	�|��rt!|��n*t#|��nt$�|����#t&t(f$r.}t|��tjd��Yd}~��;d}~wwxYwdS#|j|f$r�tj	�tj	�tjd����d}
td�|
tj�����YdSwxYw)Nrc��eZdZdS)�cli.<locals>.BadUsageN)r*rrr�rr�BadUsager��
s�������rr�rVzbk:n:p:wFr�z-bTz-kz-pz-wz-n)rmr�zfile %r does not exista�pydoc - the Python documentation tool

{cmd} <name> ...
    Show text documentation on something.  <name> may be the name of a
    Python keyword, topic, function, module, or package, or a dotted
    reference to a class or function within a module or module in a
    package.  If <name> contains a '{sep}', it is used as the path to a
    Python source file to document. If name is 'keywords', 'topics',
    or 'modules', a listing of these things is displayed.

{cmd} -k <keyword>
    Search for a keyword in the synopsis lines of all available modules.

{cmd} -n <hostname>
    Start an HTTP server with the given hostname (default: localhost).

{cmd} -p <port>
    Start an HTTP server on the given port on the local machine.  Port
    number 0 can be used to get an arbitrary unused port.

{cmd} -b
    Start an HTTP server on an arbitrary unused port and open a web browser
    to interactively browse documentation.  This option can be used in
    combination with -n and/or -p.

{cmd} -w <name> ...
    Write out the HTML documentation for a module to a file in the current
    directory.  If <name> contains a '{sep}', it is treated as a filename; if
    it names a directory, documentation is written for all the contents.
)r�r�)�getoptr�r�r
r�rr�r�rr�existsr�exitr�r�rrrrrr�rVr�r�r+r�)r�r��optsr�writing�start_serverr�rDrm�opt�val�argr�r�s              r�clir��
s���J��M�M�M�#�#�#�#�#�9�#�#�#�����M!��]�]�3�8�A�B�B�<��<�<�
��d������������	�	�H�C���d�{�{�#��#���d�{�{����������d�{�{�#�����d�{�{����d�{�{�#������	��4�(��F�F�F�F��F��#�8�^��	�	�C��c�{�{�
�2�7�>�>�#�#6�#6�
��.��4�5�5�5�������
��#�;�;�*�2�7�>�>�#�#6�#6�*�$�S�/�/�C��#��c�{�{�&�r�w�}�}�S�'9�'9�&�!�#����� ��
�
�
�
��I�I�c�N�N�N����!2�3�
�
�
��e�������������������
����	�	��$
�L�(�#�!�!�!��g���r�w�/�/�����<�<�=�=�a�@��
��:�F�s���F���;	!�	!�	!�	!�	!�	!�!���sK�AH�1H�9AH�B'G�>H�G?�#G:�4H�:G?�?H�BJ�Jrr�)r)rrN)rMN)r1)ar�r�r�r�r�r$�importlib._bootstrapr��importlib._bootstrap_external�importlib.machinery�importlib.utilr r�rr�r�rOr
r2rkr��urllib.parser�r)�collectionsr�reprlibr�	tracebackrrr%r?r8rKrSr\r_rfrjrrr��
IGNORECASErtrvryrr�ru�all_feature_namesr�r�r�r�r�r�r�r�r�r�r
rr5r`rQrWr�r�r�r�r�r�r�r�r�r�rrhr
rrrr>rrrrrrror�r�r�r�r�r�r*r�rr�<module>r�so��%�L�(��
)�
�����������������$�$�$�$�������������	�	�	�	�	�	�	�	���������	�	�	�	�
�
�
�
���������������������������������+�+�+�+�+�+�

�
�
����1�1�1�f
�
�
�!�!�!� A�A�A�
 � � ����G�G�G��������b�j�5�r�}�E�E��(�(�(�

�
�
�������"��J�8�9�9��(�(�(�(�0	�	�	�
�
�
�������" �%�%�%�%�NK�K�K�K�K�	�K�K�K�6�6�6�$ !��,�,�,�,�`6�6�6�6�6�6�6�6�t(�(�(�(�(�t�(�(�(�Tn7�n7�n7�n7�n7�c�n7�n7�n7�d:�:�:�:�:�t�:�:�:�@@�@�@�@�@�c�@�@�@�D�����G�������"�"�"�H#�#�#����0
/�
/�
/�F�F�F�
*2�*2�*2�X2�2�2� � � �6����*�w�y�y���M�O�O�	��w�y�y��>�>�>�>�KL��C�C�C�C�6DE��E�E�E�E�#�#�#�#�����U�U�U�U�U�U�U�U�n�v�x�x��;�;�;�;�;�;�;�;�z
<�
<�
<�U�U�U�piP�iP�iP�iP�X (�4�+� (� (� (� (� (�J6�6�6����8#�#�#�T!�T!�T!�l�z����C�E�E�E�E�E��r

ZeroDay Forums Mini