OwlCyberSecurity - MANAGER
Edit File: _utils.cpython-311.pyc
� �������h0�����������������������������d�dl�Z�d�dlZd�dlZd�dlZd�dlmZmZmZ��G�d��de������������Z�G�d��de ������������Z d��Zdd �Zd ��Z d��Zd��Zd ��Zd��Zd��Zd��Z�e ���������������e ��������������fd�Zd��ZdS�)�����N)�MutableMapping� str_types�urlsplitc��������������������B�����e�Zd�ZdZd��Zd��Zd��Zd��Zd��Zd��Z d��Z d ��Zd S�)�URIDictz8 Dictionary which uses normalized URIs as keys. c������������������D�����t����������|�����������������������������������������������S��N)r����geturl��self�uris��� �q/builddir/build/BUILD/imunify360-venv-2.5.2/opt/imunify360/venv/lib/python3.11/site-packages/jsonschema/_utils.py� normalizezURIDict.normalize���s��������}�}�#�#�%�%�%�����c������������������P�����t������������������������|�_���������|�j��������j��������|i�|���d�S�r ���)�dict�store�update)r����args�kwargss��� r����__init__zURIDict.__init__���s-�������V�V�� ��� ��4�*�6�*�*�*�*�*r���c������������������B�����|�j���������|����������������������|���������������������S�r ����r���r���r���s��� r����__getitem__zURIDict.__getitem__���s�������z�$�.�.��-�-�.�.r���c������������������@�����||�j���������|����������������������|������������<���d�S�r ���r���)r���r ����values��� r����__setitem__zURIDict.__setitem__���s ������*/�� �4�>�>�#�&�&�'�'�'r���c������������������<�����|�j���������|����������������������|������������=�d�S�r ���r���r���s��� r����__delitem__zURIDict.__delitem__���s�������J�t�~�~�c�*�*�+�+�+r���c������������������*�����t����������|�j��������������������S�r ���)�iterr����r���s��� r����__iter__zURIDict.__iter__�����������D�J���r���c������������������*�����t����������|�j��������������������S�r ���)�lenr���r"���s��� r����__len__zURIDict.__len__!���s�������4�:���r���c������������������*�����t����������|�j��������������������S�r ���)�reprr���r"���s��� r����__repr__zURIDict.__repr__$���r$���r���N)�__name__� __module__�__qualname__�__doc__r���r���r���r���r���r#���r'���r*�����r���r���r���r��� ���s������������������&��&��&�+��+��+�/��/��/�0��0��0�,��,��,� �� �� ������ �� �� �� �� r���r���c�������������������������e�Zd�ZdZd��ZdS�)�UnsetzG An as-of-yet unset attribute or unprovided default parameter. c�����������������������dS�)Nz<unset>r/���r"���s��� r���r*���zUnset.__repr__-���s�������yr���N)r+���r,���r-���r.���r*���r/���r���r���r1���r1���(���s-�������������������������r���r1���c�����������������������t����������j��������dd���������������������|�������������������������}t����������j��������|���������������������d������������������������S�)zC Load a schema from ./schemas/``name``.json and return it. � jsonschemazschemas/{0}.jsonzutf-8)�pkgutil�get_data�format�json�loads�decode)�name�datas��� r����load_schemar=���1���sA������ ���L�*<�*C�*C�D�*I�*I�J�J�D��:�d�k�k�'�*�*�+�+�+r�������c������������������j������d�����������������������fd�|������������������������������������D���������������������������S�)z> A dumb version of `textwrap.indent` from Python 3.3. � c��������������3����.����K����|�]}d�d�z��z��|z���V����dS�)� ����Nr/���)�.0�line�timess��� �r���� <genexpr>zindent.<locals>.<genexpr>?���s1�����������N�N�$�S�A��I�&��-�N�N�N�N�N�Nr���)�join� splitlines)�stringrF���s��� `r����indentrK���:���s8������� ��9�9�N�N�N�N�&�:K�:K�:M�:M�N�N�N�N�N�Nr���c������������������N�����|�sdS�dd����������������������d��|�D���������������������������z��S�)z� Construct a single string containing indexing operations for the indices. For example, [1, 2, "foo"] -> [1][2]["foo"] Arguments: indices (sequence): The indices to format. ��z[%s]z][c��������������3����4���K����|�]}t����������|������������V����d�S�r ����r)���)rD����indexs��� r���rG���z"format_as_index.<locals>.<genexpr>Q���s(����������?�?�e�d�5�k�k�?�?�?�?�?�?r���)rH���)�indicess��� r����format_as_indexrR���B���s7�����������r��D�I�I�?�?�w�?�?�?�?�?�?�?r���c��������������#��������K����|����������������������di�������������}d���������������������|����������������������di�������������������������}|�D�]"}||vr|rt����������j��������||������������r�|V����#dS�)z� Return the set of additional properties for the given ``instance``. Weeds out properties that should have been validated by ``properties`` and / or ``patternProperties``. Assumes ``instance`` is dict-like already. � properties�|�patternPropertiesN)�getrH����re�search)�instance�schemarT����patterns�propertys��� r����find_additional_propertiesr^���T���s���������������L�"�-�-�J��x�x�� � �#6��;�;�<�<�H��������:�%�%��� �B�I�h��9�9�� ���N�N�N�� ��r���c������������������t�����t����������|�������������dk����rd}nd}d���������������������d��|�D���������������������������|fS�)z@ Create an error message for extra items or properties. r>����was�were�, c��������������3����4���K����|�]}t����������|������������V����d�S�r ���rO���)rD����extras��� r���rG���zextras_msg.<locals>.<genexpr>p���s(����������5�5�U�T�%�[�[�5�5�5�5�5�5r���)r&���rH���)�extras�verbs��� r���� extras_msgrg���g���sG������ ��6�{�{�a���������9�9�5�5�f�5�5�5�5�5�t�;�;r���c�����������������������g�}|D�]]} �|����������������������t����������|d�����������������������������������,#�t����������$�r%�|����������������������t����������|�������������������������Y��Zw�xY�w|��dd���������������������|��������������S�)a+�� Create an error message for a failure to match the given types. If the ``instance`` is an object and contains a ``name`` property, it will be considered to be a description of that object and used as its type. Otherwise the message is simply the reprs of the given ``types``. r;���z is not of type rb���)�appendr)���� ExceptionrH���)rZ����types�reprs�types��� r���� types_msgrn���s���s�������� �E���%��%�� %��L�L��d�6�l�+�+�,�,�,�,���� %�� %�� %��L�L��d���$�$�$�$�$� %����%-�X�X�t�y�y��/?�/?�/?�@�@s����(1�,A �A c����������������������t������������������������}t����������|�t����������������������s|�f}�|�D�]O}t����������|t����������������������r#|���������������������t ����������|��������������������������:|���������������������|��������������Pt����������|������������S�)z� isinstance() can accept a bunch of really annoying different types: * a single type * a tuple of types * an arbitrary nested tree of tuples Return a flattened tuple of the given argument. )�set� isinstance�tupler����flatten�add)�suitable_for_isinstancerk����things��� r���rs���rs�������s�������� �E�E�E��-�u�5�5��=�#:�"<��(�������e�U�#�#�� ��L�L�����(�(�(�(��I�I�e�������<�<�r���c������������������6�����t����������|�t����������������������r|�gS�|�S�)z] Wrap ``thing`` in a list if it's a single str. Otherwise, return it unchanged. )rq���r���)rv���s��� r����ensure_listrx�������s"��������%��#�#����w���Lr���c������������������B�����t����������|�������������t����������|������������k����S�)zQ Check if two things are equal, but evade booleans and ints being equal. ��unbool)�one�twos��� r����equalr~�������s��������#�;�;�&��+�+�%�%r���c�����������������������|�du�r|S�|�du�r|S�|�S�)zH A hack to make True and 1 and False and 0 unique for ``uniq``. TFr/���)�element�true�falses��� r���r{���r{�������s'������ ��$����� �E� � ����Nr���c����������������������� �t����������t����������d��|�D���������������������������������������t����������|�������������k����S�#�t����������$�r�� �t����������d��|�D���������������������������}t ����������j��������|dd������������}t ����������||������������D�]\��}}||k����r�Y�dS��nK#�t����������t����������f$�r7�g�}|�D�]/}t����������|������������}||v�r�Y�Y�dS�|� ��������������������|��������������0Y�nw�xY�wY�nw�xY�wdS�)z� Check if all of a container's elements are unique. Successively tries first to rely that the elements are hashable, then falls back on them being sortable, and finally falls back on brute force. c��������������3����4���K����|�]}t����������|������������V����d�S�r ���rz����rD����is��� r���rG���zuniq.<locals>.<genexpr>����s(����������4�4�Q�v�a�y�y�4�4�4�4�4�4r���c��������������3����4���K����|�]}t����������|������������V����d�S�r ���rz���r����s��� r���rG���zuniq.<locals>.<genexpr>����s(����������7�7��&��)�)�7�7�7�7�7�7r���r>���NFT) r&���rp���� TypeError�sorted� itertools�islice�zip�NotImplementedErrorr{���ri���)� container�sort�slicedr�����j�seen�es��� r����uniqr��������s9�������3�4�4�)�4�4�4�4�4�5�5��Y���G�G���� �� �� � ��7�7�Y�7�7�7�7�7�D��%�d�A�t�4�4�F��D�&�)�)�� !�� !���1���6�6� �5�5�5��� !���$�Y�/�� �� �� ��D��� �� ���1�I�I����9�9� �5�5�5�5����A����� �� � ������ ������4sF����69�� C"�AB�B�C"�+C�?C"�C�C"�C�C"�!C")r>���)r����r8���r5���rX����jsonschema.compatr���r���r���r����objectr1���r=���rK���rR���r^���rg���rn���rs���rx���r~���r{���r����r/���r���r����<module>r�������st����������������������� � � � ��A��A��A��A��A��A��A��A��A��A� �� �� �� �� �n�� �� �� �>���������F�������,��,��,�O��O��O��O�@��@��@�$�����& <�� <�� <�A��A��A�&�����, �� �� �&��&��&�� ��������� �� �� �� ���������r���