HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/gi/__pycache__/module.cpython-311.pyc
�

b�^M%����ddlZddlZddlmZmZmZmZmZmZm	Z	m
Z
mZmZm
Z
mZmZmZmZmZmZmZddlmZmZddlmZmZmZmZmZej��ZiZ d�Z!d�Z"Gd�d	e#��Z$d
�Z%dS)�N�)�
Repository�FunctionInfo�RegisteredTypeInfo�EnumInfo�
ObjectInfo�
InterfaceInfo�ConstantInfo�
StructInfo�	UnionInfo�CallbackInfo�Struct�Boxed�	CCallback�enum_add�enum_register_new_gtype_and_add�	flags_add� flags_register_new_gtype_and_add�
GInterface)�GObjectMeta�
StructMeta)�	TYPE_NONE�
TYPE_BOXED�TYPE_POINTER�	TYPE_ENUM�
TYPE_FLAGSc�"�|���}|s+|���}|r|jr|jStS|���}|���}t
jd|z��}t||��S�N�gi.repository.)	�
get_parent�
get_g_type�pytype�object�
get_namespace�get_name�	importlib�
import_module�getattr)�object_info�parent_object_info�gtype�	namespace�name�modules      �+/usr/lib/python3/dist-packages/gi/module.py�get_parent_for_objectr0@s���$�/�/�1�1�����&�&�(�(���	 �U�\�	 ��<���
�"�0�0�2�2�I��&�&�(�(�D�
�
$�%5�	�%A�
B�
B�F��6�4� � � �c��g}|���D]d}|���}|���}tjd|z��}|�t
||�����e|Sr)�get_interfacesr$r%r&r'�appendr()r)�
interfaces�interface_infor,r-r.s      r/�get_interfaces_for_objectr7Ws����J�%�4�4�6�6�1�1��"�0�0�2�2�	��&�&�(�(���(�)9�I�)E�F�F�����'�&�$�/�/�0�0�0�0��r1c�,�eZdZdZdd�Zd�Zd�Zd�ZdS)�IntrospectionModuleaUAn object which wraps an introspection typelib.

    This wrapping creates a python module like representation of the typelib
    using gi repository as a foundation. Accessing attributes of the module
    will dynamically pull them in and create wrappers for the members.
    These members are then cached on this introspection module.
    Nc��t�||��||_||_d|z|_t�|j��}|g|_|j�&t�|j��|_dSdS)z"Might raise gi._gi.RepositoryErrorrN)�
repository�require�
_namespace�_version�__name__�get_typelib_path�__path__�get_version)�selfr,�version�paths    r/�__init__zIntrospectionModule.__init__js}��	���9�g�.�.�.�#�����
�(�9�4��
��*�*�4�?�;�;�����
��=� �&�2�2�4�?�C�C�D�M�M�M�!� r1c	�x��t�|j|��}|st|j�d|�����t|t���r�|���}|j}|��q|�	��rG|�
t��rt|��}nc|tksJ�t|��}nF|�
t��rt!|��}n|tksJ�t#|��}||_d|���z|_d�dd��}|���D]U}|����|��}t3||||��������V|���D]}t3||j|���|tkr||_�n:t|t8���r�|���}t|t:��rFt=|���t?�fd�tA|��D����}	�f|	z}
tB}�nt|tD��rtFf}
tB}n�t|tH��rtJf}
tB}n�t|tLtNf��r�|�
tP��r	tRf}
nr|�
tT��s|tks|j+|kr	tXf}
n9t[d|����d|�.�������t^}nta|���|tkr|j}|�||
vr||j1|<|S|d|jz|d	�}
|||
|
��}|tkr||_nQt|td��r|}n9t|tf��r|���}nta|���||j1|<|S)
Nz object has no attribute r��abcdefgjhijklmnopqrstuvwxyz�ABCDEFGJHIJKLMNOPQRSTUVWXYZc3�<�K�|]}t�|���|V��dS�N)�
issubclass)�.0�	interface�parents  �r/�	<genexpr>z2IntrospectionModule.__getattr__.<locals>.<genexpr>�sN�����#I�#I��*4�V�Y�*G�*G�#I�9�#I�#I�#I�#I�#I�#Ir1zunable to create a wrapper for �.)�__info__�
__module__�	__gtype__)4r;�find_by_namer=�AttributeErrorr?�
isinstancerr!r"�is_flags�is_arrrrrrrrSr$rT�	maketrans�
get_values�get_name_unescaped�	translate�setattr�	get_value�get_methodsrrr0�tupler7rr
rr	rrrrrr�fundamentalr�	TypeErrorr%r�NotImplementedError�__dict__rr
)rCr-�info�g_type�wrapper�ascii_upper_trans�
value_info�
value_name�method_infor5�bases�	metaclass�type_�dict_rPs              @r/�__getattr__zIntrospectionModule.__getattr__xsi����&�&�t���=�=���	7� �!%������"6�7�7�
7��d�H�%�%�\	,��_�_�&�&�F��m�G����=�=�?�?�H��{�{�:�.�.�I�"+�F�"3�"3���%��2�2�2�2�"B�4�"H�"H����{�{�9�-�-�H�"*�6�"2�"2���%��2�2�2�2�"A�$�"G�"G��#'�� �%5��8J�8J�8L�8L�%L��"�
%'�L�L�1�1�%3�%3�!�#'�/�/�"3�"3�R�R�J�!+�!>�!>�!@�!@�!J�!J�K\�!]�!]�J��G�Z����9M�9M�9O�9O�1P�1P�Q�Q�Q�Q�#'�#3�#3�#5�#5�H�H�K��G�[�%9�;�G�G�G�G���"�"� '��
��
��0�
1�
1�8	,��_�_�&�&�F��$�
�+�+�
0�.�t�4�4��"�#I�#I�#I�#I�>W�X\�>]�>]�#I�#I�#I�I�I�
��	�J�.��'�	�	��D�,�/�/�
0�"���'�	�	��D�-�0�0�
0�#�
��'�	�	��D�:�y�"9�:�:�
0��;�;�z�*�*�v�"�H�E�E��k�k�,�/�/�v��	�)�)��(�F�2�2�#�I�E�E�#�)�d�N`�N`�Nb�Nb�Nb�Nb�dh�dq�dq�ds�ds�ds�$t�u�u�u�&�	�	�)�$�/�/�/���"�"��
���$��e�);�);�*/�D�M�$�'� �L�!�.���@�#���E�
 �i��e�U�3�3�G���"�"� '��
��
��l�
+�
+�	,��G�G�
��l�
+�
+�	,��n�n�&�&�G�G�%�d�+�+�+�
&��
�d���r1c�\�t�|j��}d|j�d|�d�S)Nz<IntrospectionModule z from �>)r;r@r=)rCrEs  r/�__repr__zIntrospectionModule.__repr__�s.���*�*�4�?�;�;���59�_�_�_�d�d�d�K�Kr1c�6�tt|j����}|�|j�����t�|j��}|�d�|D����t|��S)Nc3�hK�|]-}t|t���|���V��.dSrL)rXr
r%)rNrgs  r/rQz.IntrospectionModule.__dir__.<locals>.<genexpr>�sL����:�:�$�$�T�<�8�8�:�d�m�m�o�o�:�:�:�:�:�:r1)
�set�dir�	__class__�updaterf�keysr;�	get_infosr=�list)rC�result�namespace_infoss   r/�__dir__zIntrospectionModule.__dir__�s����S���(�(�)�)���
�
�d�m�(�(�*�*�+�+�+�%�.�.�t��?�?���
�
�:�:�/�:�:�:�	:�	:�	:��F�|�|�r1rL)r?rT�__qualname__�__doc__rFrrrur��r1r/r9r9bsj��������D�D�D�D�h�h�h�TL�L�L�
�
�
�
�
r1r9c��|tvr
t|Stj|��}t||��}|t|<|S)z�
    :Returns:
        An object directly wrapping the gi module without overrides.

    Might raise gi._gi.RepositoryError
    )�_introspection_modules�gi�get_required_versionr9)r,rDr.s   r/�get_introspection_moduler��sJ���*�*�*�%�i�0�0��%�i�0�0�G�
 ��G�
4�
4�F�(.��9�%��Mr1)&r&r��_girrrrrr	r
rrr
rrrrrrrr�typesrr�
_constantsrrrrr�get_defaultr;r�r0r7r#r9r�r�r1r/�<module>r�s���.����	�	�	�	�����������������������������������������&����������������������$�Z�
#�
%�
%�
���!�!�!�.���Q�Q�Q�Q�Q�&�Q�Q�Q�h
�
�
�
�
r1