ó
    Ãu„j»  ã                   ó‚   • S SK r \ R                  " S5      R                  r " S S\5      r " S S\5      rS\S\4S	 jr	g)
é    Nz^(-?\d+\.?\d*)(s|ms)$c                   ó   • \ rS rSrSrSrg)ÚDurationErroré   z;
Exception indicating a general issue with a CSS duration.
© N©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__static_attributes__r   ó    ÚŸC:\Users\johnn\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\textual/_duration.pyr   r      ó   † ôr   r   c                   ó   • \ rS rSrSrSrg)ÚDurationParseErroré   zA
Indicates a malformed duration string that could not be parsed.
r   Nr   r   r   r   r   r      r   r   r   ÚdurationÚreturnc                 óÜ   • [        U 5      nU(       a/  UR                  5       u  p#[        U5      nUS:X  a  US-  nU$ Un U$  [        U 5      nU$ ! [         a    [	        U < S35      Sef = f)a]  
Args:
    duration: A string of the form `"2s"` or `"300ms"`, representing 2 seconds and
        300 milliseconds respectively. If no unit is supplied, e.g. `"2"`, then the duration is
        assumed to be in seconds.
Raises:
    DurationParseError: If the argument `duration` is not a valid duration string.
Returns:
    The duration in seconds.
Úmsiè  z is not a valid duration.N)Ú_match_durationÚgroupsÚfloatÚ
ValueErrorr   )r   ÚmatchÚvalueÚ	unit_nameÚduration_secss        r   Ú_duration_as_secondsr       s�   € ô ˜HÓ%€EæØ Ÿ<™<›>ÑˆÜ�e“ˆØ˜ÓØ! D™LˆMð Ðð "‰Mð Ðð	YÜ! (›OˆMð Ðøô ó 	YÜ$¨¡|Ð3LÐ%MÓNÐTXÐXð	Yús   ÁA ÁA+)
ÚreÚcompiler   r   Ú	Exceptionr   r   Ústrr   r    r   r   r   Ú<module>r%      sH   ðÛ 	à—*’*Ð5Ó6×<Ñ<€ô�Iô ô˜ô ð 3ð ¨5õ r   