
    Mi@                     V   S SK rS SKrS SKrS SKrS SKrS SKrS SKrS SKJrJ	r	J
r
JrJrJr  \R                  S:  a  S SKJr  O\R                   (       a  S SKJr  O S SKJr   " S S\S	S
9r1 Skr1 SkrS\S\	\   4S jrS\	\   S\\\4   4S jrS\R2                  R4                  S\\\4   S\4S jr0 SS_SS_SS_SS_SS_SS_SS_SS _S!S!_S"S"_S#S#_S$S%_S&S'_S(S(_S)S)_S*S+_S,S-_S.S/S0S1S2S3S4S5S6S7S8S9.ErS\\\4   S\\\\\	\   4   4   4S: jrg! \ a     " S S5      r Nf = f);    N)DictListOptionalTupleUnioncast)      )	TypedDictc                       \ rS rSrS rSrg)r      c                      g )N )_args_kwargss     d/var/www/html/backend/Backoffice_Marketplace/venv/lib/python3.13/site-packages/packaging/metadata.py__init_subclass__TypedDict.__init_subclass__   s        r   N)__name__
__module____qualname____firstlineno__r   __static_attributes__r   r   r   r   r      s    r   r   c                      \ rS rSr% Sr\\S'   \\S'   \\S'   \\   \S'   \\S'   \\S'   \\   \S	'   \\S
'   \\S'   \\S'   \\S'   \\   \S'   \\S'   \\   \S'   \\   \S'   \\   \S'   \\   \S'   \\S'   \\S'   \\   \S'   \\   \S'   \\   \S'   \\S'   \\   \S'   \\\4   \S'   \\S'   \\   \S'   \\   \S'   Sr	g )!RawMetadata   aM  A dictionary of raw core metadata.

Each field in core metadata maps to a key of this dictionary (when data is
provided). The key is lower-case and underscores are used instead of dashes
compared to the equivalent core metadata field. Any core metadata field that
can be specified multiple times or can hold multiple values in a single
field have a key with a plural name.

Core metadata fields that can be specified multiple times are stored as a
list or dict depending on which is appropriate for the field. Any fields
which hold multiple values in a single field are stored as a list.

metadata_versionnameversion	platformssummarydescriptionkeywords	home_pageauthorauthor_emaillicensesupported_platformsdownload_urlclassifiersrequiresprovides	obsoletes
maintainermaintainer_emailrequires_distprovides_distobsoletes_distrequires_pythonrequires_externalproject_urlsdescription_content_typeprovides_extradynamicr   N)
r   r   r   r   __doc__str__annotations__r   r   r   r   r   r   r   r      s     
ILCyL3iNKL c"c3i3iCy O99ICy sCx.  "!I #Yr   r   F)total>   r   r&   r(   r"   r    r%   r/   r#   r'   r*   r4   r0   r   r7   >   r9   r-   r,   r.   r!   r+   r2   r1   r3   r8   r5   r)   datareturnc                 j    U R                  S5       Vs/ s H  oR                  5       PM     sn$ s  snf )zCSplit a string of comma-separate keyboards into a list of keywords.,)splitstrip)r>   ks     r   _parse_keywordsrE      s&    #zz#/!GGI///s   0c                 
   0 nU  Hu  nUR                  SS5       Vs/ s H  o3R                  5       PM     nnUR                  S/[        SS[	        U5      -
  5      -  5        Uu  pVXQ;   a  [        S5      eXaU'   Mw     U$ s  snf )z?Parse a list of label/URL string pairings separated by a comma.rA       r      z duplicate labels in project urls)rB   rC   extendmaxlenKeyError)r>   urlspairppartslabelurls          r   _parse_project_urlsrT      s    D$ %)JJsA$67$6q$67bTSAE
N345 
= =>>UA D K! 8s   B msgsourcec                     [        U[        5      (       a  U R                  5       nU$ U R                  SS9n UR                  SS5      $ ! [         a    [        S5      ef = f)zGet the body of the message.Tdecodeutf8strictzpayload in an invalid encoding)
isinstancer;   get_payloadrY   UnicodeDecodeError
ValueError)rU   rV   payloadbpayloads       r   _get_payloadrb      se     &#( ///6	???6844! 	?=>>	?s   A
 
A r&   zauthor-emailr'   
classifierr+   r#   zdescription-content-typer7   zdownload-urlr*   r9   z	home-pager%   r$   r(   r/   zmaintainer-emailr0   zmetadata-versionr   r   r.   zobsoletes-distr3   platformr!   r6   r-   r2   r8   r,   r1   r5   r4   r"   r)   r    )zproject-urlr-   zprovides-distzprovides-extrar,   zrequires-distzrequires-externalzrequires-pythonr"   zsupported-platformr    c           	         0 n0 n[        U [        5      (       aE  [        R                  R	                  [        R
                  R                  S9R                  U 5      nOD[        R                  R                  [        R
                  R                  S9R                  U 5      n[        UR                  5       5       GH  nUR                  5       nUR                  U5      n/ nSnU H  n[        U[        R                  R                  [        45      (       d   e[        U[        R                  R                  5      (       a  / n	[        R                  R!                  U5       H,  u  p U
R#                  SS5        SnU	R'                  X45        M.     UR'                  [        [        R                  R)                  U	5      5      5        M  UR'                  U5        M     U(       d  XbU'   GM5  [*        R-                  U5      nUc  XbU'   GMT  U[.        ;   a  [1        U5      S:X  a
  US   X'   GMw  U[2        ;   a  XaU'   GM  US	:X  a"  [1        U5      S:X  a  [5        US   5      X'   GM  US
:X  a   [7        U5      X'   GM  XbU'   GM      [;        X05      nU(       ag  SU;   aB  [=        [        UR?                  S5      5      nURA                  S/ 5      RC                  X/5        OSU;   a  US   R'                  U5        OXS'   [=        [J        U5      U4$ ! [$         a    SnSn GNf = f! [8         a	    XbU'    GM  f = f! [D         a?    URA                  S/ 5      R'                  URG                  [        U [H        5      S95         Nf = f)a  Parse a distribution's metadata.

This function returns a two-item tuple of dicts. The first dict is of
recognized fields from the core metadata specification. Fields that can be
parsed and translated into Python's built-in types are converted
appropriately. All other fields are left as-is. Fields that are allowed to
appear multiple times are stored as lists.

The second dict contains all other fields from the metadata. This includes
any unrecognized fields. It also includes any fields which are expected to
be parsed into a built-in type but were not formatted appropriately. Finally,
any fields that are expected to appear only once but are repeated are
included in this dict.

)policyTrZ   r[   latin1FrG   r   r$   r6   r#   rX   )&r\   r;   emailparserParserrf   compat32parsestrBytesParser
parsebytes	frozensetkeyslowerget_allheaderHeaderdecode_headerrY   r^   appendmake_header_EMAIL_TO_RAW_MAPPINGget_STRING_FIELDSrL   _LIST_STRING_FIELDSrE   rT   rM   rb   r   pop
setdefaultrJ   r_   r]   bytesr   )r>   rawunparsedparsedr   headersvaluevalid_encodinghchunksbinencodingraw_namer`   description_headers                  r   parse_emailr      s*     =?C%'H$$$ELL,A,A$BKKDQ))1F1F)GRRSWX
 &++-( zz|
 ..&  A a%,,"5"5s!;<<<< !U\\0011 =?%*\\%?%?%BMC*

684 $*MM3/2 &C S!9!9&!ABC QG P "TN(,,T2 #TN ~%#e*/!!HCM ,,!M #E
a+E!H5CM '' 3E : #TNi )t-v,  #%)#sww}/E%F"##M26=='1 (*'..w7%,M" S!8++Q . /#+)./J  '!&'  
M2.55ju&=>	

s7   +L3L-M L*	)L*	-M ?M ANN)email.feedparserrh   email.headeremail.messageemail.parseremail.policysystypingr   r   r   r   r   r   version_infor   TYPE_CHECKINGtyping_extensionsImportErrorr   rz   r{   r;   rE   rT   messageMessager~   rb   rx   r   r   r   r   <module>r      s        
  ; ;v /	3<)5 <F"  0# 0$s) 0
%d3i %DcN %P?emm++ ?U5#:5F ?3 ?:hN - =	
  : N y  
 y , * * F   &!" #$ "$&$,(/9 @m,eE3J' m,E+tCcN?S2S,T m,s  	 	s   D D('D(