Ë
    ^ãjB	  ã                   ó>   — d Z ddlmZ ddlmZmZ dZdededz  fd„Zy)	zæStage 1c: Pure ASCII detection (with null-separator tolerance).

Note: ``from __future__ import annotations`` is intentionally omitted because
this module is compiled with mypyc, which does not support PEP 563 string
annotations.
é    )Úcount_deleted)ÚASCII_TEXT_BYTESÚDetectionResultgš™™™™™©?ÚdataÚreturnNc                 ó  — | sy| j                  «       syt        | «      t        | t        «      z
  }|dk(  rt	        ddd¬«      S | j                  d«      }||k7  ry|t        | «      z  }|t        k  rt	        ddd¬«      S y)al  Return an ASCII result if all bytes are printable ASCII plus common whitespace.

    Tolerates sparse null bytes (``\x00``) up to ``_MAX_NULL_FRACTION`` of
    the data, returning confidence 0.99 instead of 1.0 to distinguish from
    pure ASCII.

    :param data: The raw byte data to examine.
    :returns: A :class:`DetectionResult` for ASCII, or ``None``.
    Nr   Úasciig      ð?)ÚencodingÚ
confidenceÚlanguageg®Gáz®ï?)ÚisasciiÚlenr   r   r   ÚcountÚ_MAX_NULL_FRACTION)r   Ú
disallowedÚ
null_countÚnull_fractions       úX/var/www/html/metafoliadorv2/venv/lib/python3.12/site-packages/chardet/pipeline/ascii.pyÚdetect_asciir      s‡   € ñ Øð �<‰<Œ>Øô �T“œ]¨4Ô1AÓBÑB€JØ�Q‚Ü¨¸CÈ$ÔOÐOØ—‘˜A“€Jà�ZÒØà¤ T£Ñ*€MØÔ*Ò*Ü¨¸DÈ4ÔPÐPØó    )	Ú__doc__Úchardet._utilsr   Úchardet.pipeliner   r   r   Úbytesr   © r   r   ú<module>r      s2   ðñõ )ß >ð Ð ð!�uð ! °4Ñ!7ô !r   