+
    ¿Ìj˜  ã                  ó  € ^ RI Ht R.t^ RIt^ RIt^ RIt^ RIt^ RIt^ RIH	t	H
t
 ^RIHt ^RIHt ^RIHtHt ^RIHtHt ^R	IHtHtHt ]
'       d   ^R
IHt ^RIHt ]P:                  P<                  t ! R R]4      t R# )é    )ÚannotationsÚCustomAttachmentN)ÚOptionalÚTYPE_CHECKING)Ú	constants)ÚAttachmentBase)ÚCustomAttachmentHandlerÚ
getHandler)ÚAttachmentTypeÚSaveType)ÚcreateZipOpenÚinputToStringÚprepareFilename)ÚMSGFile)ÚPropertiesStorec                  ó®   a € ] tR t^ tRtR V 3R lltR R ltR R ltR R	 lt]	R
 R l4       t
]	R R l4       t]	R R l4       t]	R R l4       tRtV ;t# )r   z.
The attachment entry for custom attachments.
c               ó$   € V ^8„  d   QhRRRRRR/# )é   Úmsgr   Údir_ÚstrÚ	propStorer   © )Úformats   "Ú|/home/l0st/web/w4ttz.lol/public_html/toolz/MsgDoxxer/venv/lib/python3.14/site-packages/extract_msg/attachments/custom_att.pyÚ__annotate__ÚCustomAttachment.__annotate__%   s!   € ÷ 0ñ 0˜Gð 0¨3ð 0¸?ñ 0ó    c                	ó~   <€ \         SV `  WV4       \        V 4      V n        V P                  P                  V n        R # ©N)ÚsuperÚ__init__r
   Ú _CustomAttachment__customHandlerÚdataÚ_CustomAttachment__data)Úselfr   r   r   Ú	__class__s   &&&&€r   r"   ÚCustomAttachment.__init__%   s2   ø€ Ü‰Ñ˜ IÔ.ä)¨$Ó/ˆÔØ×*Ñ*×/Ñ/ˆŽr   c               ó   € V ^8„  d   QhRR/# ©r   Úreturnr   r   )r   s   "r   r   r   +   s   € ÷ !ñ ! sñ !r   c                ó’  € RpVP                  R4      pV'       dJ   \        V4      p\        P                  P                  P                  V4      '       d   \        R4      hTpV# VP                  RR4      '       d   V P                  pV P                  P                  pV'       g   V P                  pV'       g   V P                  # V# )a  
Returns the filename to use for the attachment.

If the filename starts with "UnknownFilename" then there is no guarantee
that the files will have exactly the same filename.

:param contentId: Use the contentId, if available.
:param customFilename: A custom name to use for the file.
NÚcustomFilenamezfInvalid character found in customFilename. Must not contain any of the following characters: \/:*?"<>|Ú	contentIdF)Úgetr   r   ÚreÚINVALID_FILENAME_CHARSÚsearchÚ
ValueErrorÚcidÚcustomHandlerÚnameÚrandomFilename)r&   ÚkwargsÚfilenamer-   s   &,  r   ÚgetFilenameÚCustomAttachment.getFilename+   s°   € ð ˆØŸ™Ð$4Ó5ˆßÜ  Ó0ˆNô �|‰|×2Ñ2×9Ñ9¸.×IÒIÜ ð  "Kó  Lð  LØ%ˆHð ˆð �z‰z˜+ u×-Ò-ØŸ8™8�à×)Ñ)×.Ñ.ˆHçØŸ9™9�çØ×*Ñ*Ð*àˆr   c               ó   € V ^8„  d   QhRR/# r*   r   )r   s   "r   r   r   N   s   € ÷ 7ñ 7 cñ 7r   c                ón   € RRP                  R \        ^4       4       4      ,           R,           V n        R# )z^
Used to regenerate the random filename used if the attachment cannot
find a usable filename.
zUnknownFilename Ú c              3  ó”   "  € T F>  p\         P                  ! \        P                  \        P                  ,           4      x € K@  	  R # 5ir    )ÚrandomÚchoiceÚstringÚascii_uppercaseÚdigits)Ú.0Ú_s   & r   Ú	<genexpr>Ú8CustomAttachment.regenerateRandomName.<locals>.<genexpr>T   s2   é € ð .Ù$,˜qô "Ÿ=š=¬×)?Ñ)?Ä&Ç-Á-Õ)O×PÐPÛ$,ùs   ‚AAz.binN)ÚjoinÚrangeÚ_CustomAttachment__randomName©r&   s   &r   ÚregenerateRandomNameÚ%CustomAttachment.regenerateRandomNameN   s6   € ð
 /Ø—7‘7ñ .Ü$)¨!¤Hó.ó .õ.à06õ7ˆÖr   c               ó   € V ^8„  d   QhRR/# )r   r+   zconstants.SAVE_TYPEr   )r   s   "r   r   r   W   s   € ÷ 5ñ 5Ð 3ñ 5r   c                	óÒ  € V P                   f   \        P                  R 3# V P                  ! R/ VB p\	        \        W P                  P                  4      4      pVP                  RR4      p\        V4      V8”  d>   \        P                  P                  V4      w  rEVR V\        V4      ,
           V,           pVP                  R4      pRp V'       d‘   \        V\        \        P                   34      '       d-   \"        P$                  ! VR\"        P&                  4      pWaR&   Rp\        P                   ! VP                  RR4      4      p\)        VP*                  4      p	R	p
M<\        P                   ! VP                  RR
4      4      P-                  4       pRp
\*        p	V P/                  WbW�4      pV	! \        V4      V
4      ;_uu_ 4       pVP1                  V P2                  4       R R R 4       \        P4                  \        V4      3V'       d   V'       d   VP7                  4        # # #   + '       g   i     LM; i  T'       d   T'       d   TP7                  4        i i i ; i)NÚmaxNameLengthé   ÚzipFÚaTÚ
customPathr>   ÚwÚ.Úwbr   )r$   r   ÚNONEr:   r   r   r   ÚstringEncodingr/   ÚlenÚosÚpathÚsplitextÚ
isinstancer   ÚpathlibÚPathÚzipfileÚZipFileÚZIP_DEFLATEDr   ÚopenÚabsoluteÚ
_handleFncÚwriter%   ÚFILEÚclose)r&   r8   r9   rQ   r6   ÚextÚ_zipÚ
createdZiprU   Ú_openÚmodeÚfullFilenameÚfs   &,           r   ÚsaveÚCustomAttachment.saveW   sÏ  € à�9‰9ÒÜ—M‘M 4Ð(Ð(ð ×#Ò#Ñ- fÑ-ˆô #¤=°¿8¹8×;RÑ;RÓ#SÓTˆð Ÿ
™
 ?°CÓ8ˆô ˆx‹=˜=Ô(ÜŸ™×(Ñ(¨Ó2‰IˆDØÐ5˜]¬S°«XÕ5Ð6¸Õ<ˆHð �z‰z˜%Ó ˆàˆ
ð	çä˜d¤S¬'¯,©,Ð$7×8Ò8ä"Ÿ?š?¨4°´g×6JÑ6JÓK�DØ$(˜5‘MØ!%�Jä$Ÿ\š\¨&¯*©*°\À2Ó*FÓG�
ä% d§i¡iÓ0�à‘ä$Ÿ\š\¨&¯*©*°\À3Ó*GÓH×QÑQÓS�
Ø�Ü�àŸ?™?¨4¸:ÓNˆLá”s˜<Ó(¨$×/Ô/°1Ø—‘˜Ÿ™Ô$÷ 0ô —M‘M¤3 |Ó#4Ð5÷ Ÿ
Ø—
‘
•ð #ˆt÷ 0×/û÷ Ÿ
Ø—
‘
•ð #ˆtús1   ÃI ÃC8I ÇH/Ç*"I È/H?	È:I ÉI&ÉI&c               ó   € V ^8„  d   QhRR/# )r   r+   z!Optional[CustomAttachmentHandler]r   )r   s   "r   r   r   �   s   € ÷ $ñ $Ð@ñ $r   c                ó   € V P                   # )zT
The instance of the custom handler associated with this attachment, if
it has one.
)r#   rL   s   &r   r5   ÚCustomAttachment.customHandler�   s   € ð ×#Ñ#Ð#r   c               ó   € V ^8„  d   QhRR/# )r   r+   zOptional[bytes]r   )r   s   "r   r   r   ˜   s   € ÷ ñ �oñ r   c                ó   € V P                   # )zM
The attachment data, if any.

Returns ``None`` if there is no data to save.
)r%   rL   s   &r   r$   ÚCustomAttachment.data—   s   € ð �{‰{Ðr   c               ó   € V ^8„  d   QhRR/# r*   r   )r   s   "r   r   r   ¡   s   € ÷ %ñ % ñ %r   c                óv   €  V P                   #   \         d     T P                  4        T P                   u # i ; i)z4
The random filename to be used by this attachment.
)rK   ÚAttributeErrorrM   rL   s   &r   r7   ÚCustomAttachment.randomFilename    s:   € ð
	%Ø×$Ñ$Ð$øÜô 	%Ø×%Ñ%Ô'Ø×$Ñ$Ò$ð	%ús   ‚ Ž'8·8c               ó   € V ^8„  d   QhRR/# )r   r+   r   r   )r   s   "r   r   r   ¬   s   € ÷ %ñ %�nñ %r   c                	ó"   € \         P                  # r    )r   ÚCUSTOMrL   s   &r   ÚtypeÚCustomAttachment.type«   s   € ä×$Ñ$Ð$r   )Ú__customHandlerÚ__dataÚ__randomName)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r"   r:   rM   rr   Úpropertyr5   r$   r7   r�   Ú__static_attributes__Ú__classcell__)r'   s   @r   r   r       ss   ø† ñ÷0ð 0õ!õF7õ5ðp ô$ó ð$ð ôó ðð ô%ó ð%ð ô%ó ö%r   )!Ú
__future__r   Ú__all__r\   r`   r@   rB   rb   Útypingr   r   r>   r   Úattachment_baser   Úcustom_att_handlerr	   r
   Úenumsr   r   Úutilsr   r   r   Úmsg_classesr   Ú
propertiesr   rr   rŠ   Ú_saveDocr   r   r   r   Ú<module>r˜      sf   ðÝ "ð ð€ó
 
Û Û Û Û ç *å Ý +ß Cß ,ß AÑ A÷ Ý%Ý,ð ×Ñ×&Ñ&€ôM%�~ö M%r   