+
    ¾¾j—  ã                  óp   € R t ^ RIHt ^ RIHt ^ RIHt ^ RIHt ]'       d   ^ RI	H
t
  ! R R4      tR.tR# )	z2This contains the IMAGE property from :rfc:`7986`.)Úannotations)ÚTYPE_CHECKING)ÚvBinary)ÚvUri)ÚvTextc                  óV   € ] tR t^tRt]R R l4       tR
R R llt]R R l4       t	R	t
R# )ÚImagea   An image as URI or BINARY according to :rfc:`7986`.

Value Type:
    URI or BINARY -- no default.  The value MUST be data
    with a media type of "image" or refer to such data.

Description:
    This property specifies an image for an iCalendar
    object or a calendar component via a URI or directly with inline
    data that can be used by calendar user agents when presenting the
    calendar data to a user.  Multiple properties MAY be used to
    specify alternative sets of images with, for example, varying
    media subtypes, resolutions, or sizes.  When multiple properties
    are present, calendar user agents SHOULD display only one of them,
    picking one that provides the most appropriate image quality, or
    display none.  The "DISPLAY" parameter is used to indicate the
    intended display mode for the image.  The "ALTREP" parameter,
    defined in :rfc:`5545`, can be used to provide a "clickable" image
    where the URI in the parameter value can be "launched" by a click
    on the image in the calendar user agent.

Parameters:
    uri: The URI of the image.
    b64data: The data of the image, base64 encoded.
    fmttype: The format type, e.g. ``"image/png"``.
    altrep: Link target of the image.
    display: The display mode, e.g. ``"BADGE"``.

c               ó    € V ^8„  d   QhRRRR/# )é   ÚvaluezvUri | vBinary | vTextÚreturnr   © )Úformats   "ÚS/home/ralf/ical-fahrzeuge/venv/lib/python3.14/site-packages/icalendar/prop/image.pyÚ__annotate__ÚImage.__annotate__.   s   € ÷ ñ Ð(>ð À5ñ ó    c           
     ó¤  € / p\        VR4      '       g   \        R4      h VP                  P                  RR4      P	                  4       pTR8X  g   \        T\        4      '       d   \        T4      TR&   ML\        T\        4      '       d   TP                  TR	&   M&TR
8X  d   \        T4      TR	&   M\        RT: R24      hTP                  RTP                  P                  R4      RTP                  P                  R4      RTP                  P                  R4      /4       T ! R/ TB #   \
        \        3 d   p\        R4      ThRp?ii ; i)z&Create an Image from a property value.ÚparamszValue must be URI or BINARY.ÚVALUEÚ z)Value must have a valid params attribute.NÚURIÚuriÚb64dataÚBINARYz/The VALUE parameter must be URI or BINARY, not Ú.ÚfmttypeÚFMTTYPEÚaltrepÚALTREPÚdisplayÚDISPLAYr   )ÚhasattrÚ	TypeErrorr   ÚgetÚupperÚAttributeErrorÚ
isinstancer   Ústrr   Ú
base64dataÚupdate)Úclsr   r   Ú
value_typeÚerrs   &&   r   Úfrom_property_valueÚImage.from_property_value-   s:  € ð "$ˆÜ�u˜h×'Ò'ÜÐ:Ó;Ð;ð	RØŸ™×)Ñ)¨'°2Ó6×<Ñ<Ó>ˆJð ˜Ô¤*¨U´D×"9Ò"9Ü ›JˆF�5ŠMÜ˜œw×'Ò'Ø %× 0Ñ 0ˆF�9ÒØ˜8Ô#Ü # E£
ˆF�9ÒäØAÀ*ÁÈqÐQóð ð 	�‰à˜5Ÿ<™<×+Ñ+¨IÓ6Ø˜%Ÿ,™,×*Ñ*¨8Ó4Ø˜5Ÿ<™<×+Ñ+¨IÓ6ðô	
ñ ‰}�V‰}Ðøô' ¤	Ð*ô 	RÜÐGÓHÈcÐQûð	Rús   ¡*D- Ä-EÄ>E
Å
ENc               ó0   € V ^8„  d   QhRRRRRRRRRRRR/# )	r
   r   z
str | Noner   r   r   r    r   ÚNoner   )r   s   "r   r   r   J   sF   € ÷ ñ àðð ðð ð	ð
 ðð ðð 
ñr   c                óŽ   € Ve   Ve   \        R4      hVf   Vf   \        R4      hWn        W n        W0n        W@n        WPn        R# )z,Create a new image according to :rfc:`7986`.Nz5Image cannot have both URI and binary data (RFC 7986)z)Image must have either URI or binary data)Ú
ValueErrorr   r   r   r   r    )Úselfr   r   r   r   r    s   &&&&&&r   Ú__init__ÚImage.__init__J   sH   € ð Š?˜wÒ2ÜÐTÓUÐUØŠ;˜7š?ÜÐHÓIÐIØŒØŒØŒØŒØŽr   c               ó   € V ^8„  d   QhRR/# )r
   r   zbytes | Noner   )r   s   "r   r   r   ^   s   € ÷ /ñ /�lñ /r   c                ób   € V P                   f   R# \        P                  ! V P                   4      # )z%Return the binary data, if available.N)r   r   Ú	from_ical)r4   s   &r   ÚdataÚ
Image.data]   s&   € ð �<‰<ÒÙÜ× Ò  §¡Ó.Ð.r   )r   r   r    r   r   )NNNNN)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Úclassmethodr.   r5   Úpropertyr:   Ú__static_attributes__r   r   r   r   r      s4   † ñð< ôó ð÷8ð& ô/ó ô/r   r   N)r@   Ú
__future__r   Útypingr   Úicalendar.prop.binaryr   Úicalendar.prop.urir   Úicalendar.prop.textr   r   Ú__all__r   r   r   Ú<module>rJ      s0   ðÙ 8å "å  å )Ý #çÝ)÷T/ñ T/ðn ˆ)‚r   