ó
    Eñiº  ã                   óx   • S SK rS SKJs  Jr  S SKJrJr  S SK	J
r
  SSKJr  SSKJr  SSKJrJr   " S	 S
\5      rg)é    N)ÚListÚTuple)ÚRegistrantRuleé   )ÚBaseProvideré   )ÚRULES)ÚSBNÚSBN9c            	       ór   • \ rS rSrSrS\\   4S jr\S\S\\	   S\
\\4   4S j5       rSS\S\4S	 jjrS
rg)ÚProvideré
   zßGenerates fake SBNs. These are the precursor to the ISBN and are
largely similar to ISBN-10.

See https://www.isbn-international.org/content/what-isbn for the
format of ISBNs. SBNs have no EAN prefix or Registration Group.
Úreturnc                 óˆ   • [         R                  S-
  nU R                  SU-  5      n[        nU R	                  X#5      u  pEXE/$ )z2Generate the information required to create an SBNr   Ú#)r
   Ú
MAX_LENGTHÚnumerifyr	   Ú_registrant_publication)ÚselfÚreg_pub_lenÚreg_pubÚrulesÚ
registrantÚpublications         ÚY/home/mande/repo/quber/.venv/lib/python3.13/site-packages/faker/providers/sbn/__init__.pyÚ_bodyÚProvider._body   sJ   € ô Ÿ>™>¨AÑ-ˆð —}‘} S¨;Ñ%6Ó7ˆô ',ˆØ"&×">Ñ">¸wÓ"NÑˆ
ØÐ(Ð(ó    r   r   c                 ó¬   • U H9  nUR                   U SS s=::  a  UR                  ::  d  M)  O  M-  UR                  n  O   [        S5      eU SU XS pTXE4$ )a6  Separate the registration from the publication in a given
string.
:param reg_pub: A string of digits representing a registration
    and publication.
:param rules: A list of RegistrantRules which designate where
    to separate the values in the string.
:returns: A (registrant, publication) tuple of strings.
Néÿÿÿÿz9Registrant/Publication not found in registrant rule list.)ÚminÚmaxÚregistrant_lengthÚ	Exception)r   r   ÚruleÚreg_lenr   r   s         r   r   Ú Provider._registrant_publication   sd   € ó ˆDØ�x‰x˜7 3 B˜<Õ3¨4¯8©8×3Ñ3Ø×0Ñ0�Ùñ ô
 ÐWÓXÐXØ")¨(¨7Ð"3°W¸XÐ5F�KØÐ&Ð&r   Ú	separatorc                 ó^   • U R                  5       u  p#[        X#5      nUR                  U5      $ )N)r   r   Úformat)r   r(   r   r   Úsbns        r   Úsbn9ÚProvider.sbn92   s)   € Ø"&§*¡*£,Ñˆ
Ü�:Ó+ˆØ�z‰z˜)Ó$Ð$r   © N)Ú-)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   Ústrr   Ústaticmethodr   r   r   r,   Ú__static_attributes__r.   r   r   r   r   
   sh   † ñð)�t˜C‘yô )ð ð'¨ð '°T¸.Ñ5Ið 'ÈeÐTWÐY\ÐT\Éoó 'ó ð'ñ$%˜cð %¨C÷ %ð %r   r   )ÚbuiltinsÚ@py_builtinsÚ_pytest.assertion.rewriteÚ	assertionÚrewriteÚ
@pytest_arÚtypingr   r   Úfaker.providers.sbn.rulesr   Ú r   r   r	   r+   r
   r   r   r.   r   r   Ú<module>rA      s%   ðß  „ × å 4å Ý ß ô+%ˆ|õ +%r   