
    ޺i                    X    % S r SSKJr  SSKJr  SrS\S'   \" SS15      rS	\S
'   SS jr	g)z*Stage 1a: BOM (Byte Order Mark) detection.    )annotations)DetectionResult))     z	utf-32-be)     z	utf-32-le)s   ﻿z	utf-8-sig)s   z	utf-16-be)s   z	utf-16-leztuple[tuple[bytes, str], ...]_BOMSr   r   zfrozenset[bytes]_UTF32_BOMSc                    [          HT  u  pU R                  U5      (       d  M  U[        ;   a"  [        U 5      [        U5      -
  nUS-  S:w  a  MI  [	        USSS9s  $    g)zCheck for a byte order mark at the start of *data*.

:param data: The raw byte data to examine.
:returns: A :class:`DetectionResult` with confidence 1.0, or ``None``.
   r   g      ?N)encoding
confidencelanguage)r   
startswithr   lenr   )data	bom_bytesr   payload_lens       S/var/www/piano.thomer.com/venv/lib/python3.13/site-packages/chardet/pipeline/bom.py
detect_bomr      s_      %	??9%%
 K'!$i#i.8?a'"HtTT  %     N)r   bytesreturnzDetectionResult | None)
__doc__
__future__r   chardet.pipeliner   r   __annotations__	frozensetr   r    r   r   <module>r      s;    0 " ,($  !*+>@S*T U Ur   