Ë
    ��h=$  ã                  óv   — d Z ddlmZ ddlZddlmZmZ ddlmZ ddl	m
Z
 e
rddlmZ ddl	mZ  G d	„ d
e«      Zy)z	Base API.é    )ÚannotationsN)ÚABCÚabstractmethod)ÚPath)ÚTYPE_CHECKING)ÚIterator)ÚLiteralc                  ó~  — e Zd ZdZ	 	 	 	 	 	 	 d/	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d0d„Zd1d„Zd2d„Zd3d„Zee	d4d„«       «       Z
ee	d4d„«       «       Zee	d4d	„«       «       Zee	d4d
„«       «       Zee	d4d„«       «       Zee	d4d„«       «       Zee	d4d„«       «       Zee	d4d„«       «       Zee	d4d„«       «       Zee	d4d„«       «       Zee	d4d„«       «       Zee	d4d„«       «       Zee	d4d„«       «       Zee	d4d„«       «       Zee	d4d„«       «       Zee	d4d„«       «       Zed5d„«       Zed5d„«       Zed5d„«       Zed5d„«       Zed5d„«       Zed5d„«       Zed5d„«       Z ed5d„«       Z!ed5d„«       Z"ed5d „«       Z#ed5d!„«       Z$ed5d"„«       Z%ed5d#„«       Z&ed5d$„«       Z'ed5d%„«       Z(ed5d&„«       Z)d6d'„Z*d6d(„Z+d6d)„Z,d6d*„Z-d7d+„Z.d7d,„Z/d7d-„Z0d7d.„Z1y)8ÚPlatformDirsABCz-Abstract base class for platform directories.Nc                ón   — || _         || _        	 || _        	 || _        	 || _        	 || _        || _        y)aY  
        Create a new platform directory.

        :param appname: See `appname`.
        :param appauthor: See `appauthor`.
        :param version: See `version`.
        :param roaming: See `roaming`.
        :param multipath: See `multipath`.
        :param opinion: See `opinion`.
        :param ensure_exists: See `ensure_exists`.

        N)ÚappnameÚ	appauthorÚversionÚroamingÚ	multipathÚopinionÚensure_exists)Úselfr   r   r   r   r   r   r   s           úZ/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/pip/_vendor/platformdirs/api.pyÚ__init__zPlatformDirsABC.__init__   sW   € ð, ˆŒØ"ˆŒð	ð ˆŒð	ð ˆŒð	ð #ˆŒð	ð ˆŒØ*ˆÔð	ó    c                ó&  — t        |dd  «      }| j                  rB|j                  | j                  «       | j                  r|j                  | j                  «       t	        j
                  j                  |d   g|¢­Ž }| j                  |«       |S )Né   r   )Úlistr   Úappendr   ÚosÚpathÚjoinÚ_optionally_create_directory)r   ÚbaseÚparamsr   s       r   Ú_append_app_name_and_versionz,PlatformDirsABC._append_app_name_and_versionQ   sm   € Ü�d˜1˜2�h“ˆØ�<Š<Ø�M‰M˜$Ÿ,™,Ô'Ø�|Š|Ø—‘˜dŸl™lÔ+Ü�w‰w�|‰|˜D ™GÐ- fÒ-ˆØ×)Ñ)¨$Ô/Øˆr   c                óV   — | j                   rt        |«      j                  dd¬«       y y )NT)ÚparentsÚexist_ok)r   r   Úmkdir©r   r   s     r   r   z,PlatformDirsABC._optionally_create_directory[   s'   € Ø×ÒÜ�‹J×Ñ T°DÐÕ9ð r   c                ót   — | j                   r"|j                  t        j                  «      d   }t	        |«      S )Nr   )r   Úsplitr   Úpathsepr   )r   Ú	directorys     r   Ú _first_item_as_path_if_multipathz0PlatformDirsABC._first_item_as_path_if_multipath_   s*   € Ø�>Š>à!Ÿ™¬¯
©
Ó3°AÑ6ˆIÜ�I‹Ðr   c                 ó   — y)z(:return: data directory tied to the userN© ©r   s    r   Úuser_data_dirzPlatformDirsABC.user_data_dire   ó   � r   c                 ó   — y)z':return: data directory shared by usersNr.   r/   s    r   Úsite_data_dirzPlatformDirsABC.site_data_dirj   r1   r   c                 ó   — y)z*:return: config directory tied to the userNr.   r/   s    r   Úuser_config_dirzPlatformDirsABC.user_config_diro   r1   r   c                 ó   — y)z-:return: config directory shared by the usersNr.   r/   s    r   Úsite_config_dirzPlatformDirsABC.site_config_dirt   r1   r   c                 ó   — y)z):return: cache directory tied to the userNr.   r/   s    r   Úuser_cache_dirzPlatformDirsABC.user_cache_diry   r1   r   c                 ó   — y)z(:return: cache directory shared by usersNr.   r/   s    r   Úsite_cache_dirzPlatformDirsABC.site_cache_dir~   r1   r   c                 ó   — y)z):return: state directory tied to the userNr.   r/   s    r   Úuser_state_dirzPlatformDirsABC.user_state_dirƒ   r1   r   c                 ó   — y)z':return: log directory tied to the userNr.   r/   s    r   Úuser_log_dirzPlatformDirsABC.user_log_dirˆ   r1   r   c                 ó   — y)z-:return: documents directory tied to the userNr.   r/   s    r   Úuser_documents_dirz"PlatformDirsABC.user_documents_dir�   r1   r   c                 ó   — y)z-:return: downloads directory tied to the userNr.   r/   s    r   Úuser_downloads_dirz"PlatformDirsABC.user_downloads_dir’   r1   r   c                 ó   — y)z,:return: pictures directory tied to the userNr.   r/   s    r   Úuser_pictures_dirz!PlatformDirsABC.user_pictures_dir—   r1   r   c                 ó   — y)z*:return: videos directory tied to the userNr.   r/   s    r   Úuser_videos_dirzPlatformDirsABC.user_videos_dirœ   r1   r   c                 ó   — y)z):return: music directory tied to the userNr.   r/   s    r   Úuser_music_dirzPlatformDirsABC.user_music_dir¡   r1   r   c                 ó   — y)z+:return: desktop directory tied to the userNr.   r/   s    r   Úuser_desktop_dirz PlatformDirsABC.user_desktop_dir¦   r1   r   c                 ó   — y)z+:return: runtime directory tied to the userNr.   r/   s    r   Úuser_runtime_dirz PlatformDirsABC.user_runtime_dir«   r1   r   c                 ó   — y)z*:return: runtime directory shared by usersNr.   r/   s    r   Úsite_runtime_dirz PlatformDirsABC.site_runtime_dir°   r1   r   c                ó,   — t        | j                  «      S )z#:return: data path tied to the user)r   r0   r/   s    r   Úuser_data_pathzPlatformDirsABC.user_data_pathµ   ó   € ô �D×&Ñ&Ó'Ð'r   c                ó,   — t        | j                  «      S )z":return: data path shared by users)r   r3   r/   s    r   Úsite_data_pathzPlatformDirsABC.site_data_pathº   rR   r   c                ó,   — t        | j                  «      S )z%:return: config path tied to the user)r   r5   r/   s    r   Úuser_config_pathz PlatformDirsABC.user_config_path¿   ó   € ô �D×(Ñ(Ó)Ð)r   c                ó,   — t        | j                  «      S )z(:return: config path shared by the users)r   r7   r/   s    r   Úsite_config_pathz PlatformDirsABC.site_config_pathÄ   rW   r   c                ó,   — t        | j                  «      S )z$:return: cache path tied to the user)r   r9   r/   s    r   Úuser_cache_pathzPlatformDirsABC.user_cache_pathÉ   ó   € ô �D×'Ñ'Ó(Ð(r   c                ó,   — t        | j                  «      S )z#:return: cache path shared by users)r   r;   r/   s    r   Úsite_cache_pathzPlatformDirsABC.site_cache_pathÎ   r\   r   c                ó,   — t        | j                  «      S )z$:return: state path tied to the user)r   r=   r/   s    r   Úuser_state_pathzPlatformDirsABC.user_state_pathÓ   r\   r   c                ó,   — t        | j                  «      S )z":return: log path tied to the user)r   r?   r/   s    r   Úuser_log_pathzPlatformDirsABC.user_log_pathØ   s   € ô �D×%Ñ%Ó&Ð&r   c                ó,   — t        | j                  «      S )z*:return: documents a path tied to the user)r   rA   r/   s    r   Úuser_documents_pathz#PlatformDirsABC.user_documents_pathÝ   ó   € ô �D×+Ñ+Ó,Ð,r   c                ó,   — t        | j                  «      S )z(:return: downloads path tied to the user)r   rC   r/   s    r   Úuser_downloads_pathz#PlatformDirsABC.user_downloads_pathâ   re   r   c                ó,   — t        | j                  «      S )z':return: pictures path tied to the user)r   rE   r/   s    r   Úuser_pictures_pathz"PlatformDirsABC.user_pictures_pathç   s   € ô �D×*Ñ*Ó+Ð+r   c                ó,   — t        | j                  «      S )z%:return: videos path tied to the user)r   rG   r/   s    r   Úuser_videos_pathz PlatformDirsABC.user_videos_pathì   rW   r   c                ó,   — t        | j                  «      S )z$:return: music path tied to the user)r   rI   r/   s    r   Úuser_music_pathzPlatformDirsABC.user_music_pathñ   r\   r   c                ó,   — t        | j                  «      S )z&:return: desktop path tied to the user)r   rK   r/   s    r   Úuser_desktop_pathz!PlatformDirsABC.user_desktop_pathö   ó   € ô �D×)Ñ)Ó*Ð*r   c                ó,   — t        | j                  «      S )z&:return: runtime path tied to the user)r   rM   r/   s    r   Úuser_runtime_pathz!PlatformDirsABC.user_runtime_pathû   rp   r   c                ó,   — t        | j                  «      S )z%:return: runtime path shared by users)r   rO   r/   s    r   Úsite_runtime_pathz!PlatformDirsABC.site_runtime_path   rp   r   c              #  óD   K  — | j                   –— | j                  –— y­w)z4:yield: all user and site configuration directories.N)r5   r7   r/   s    r   Úiter_config_dirsz PlatformDirsABC.iter_config_dirs  s   è ø€ à×"Ñ"Ò"Ø×"Ñ"Ó"ùó   ‚ c              #  óD   K  — | j                   –— | j                  –— y­w)z+:yield: all user and site data directories.N)r0   r3   r/   s    r   Úiter_data_dirszPlatformDirsABC.iter_data_dirs
  s   è ø€ à× Ñ Ò Ø× Ñ Ó ùrw   c              #  óD   K  — | j                   –— | j                  –— y­w)z,:yield: all user and site cache directories.N)r9   r;   r/   s    r   Úiter_cache_dirszPlatformDirsABC.iter_cache_dirs  s   è ø€ à×!Ñ!Ò!Ø×!Ñ!Ó!ùrw   c              #  óD   K  — | j                   –— | j                  –— y­w)z.:yield: all user and site runtime directories.N)rM   rO   r/   s    r   Úiter_runtime_dirsz!PlatformDirsABC.iter_runtime_dirs  s   è ø€ à×#Ñ#Ò#Ø×#Ñ#Ó#ùrw   c              #  óP   K  — | j                  «       D ]  }t        |«      –— Œ y­w)z.:yield: all user and site configuration paths.N)rv   r   r'   s     r   Úiter_config_pathsz!PlatformDirsABC.iter_config_paths  s(   è ø€ à×)Ñ)Ó+ò 	ˆDÜ�t“*Óñ	ùó   ‚$&c              #  óP   K  — | j                  «       D ]  }t        |«      –— Œ y­w)z%:yield: all user and site data paths.N)ry   r   r'   s     r   Úiter_data_pathszPlatformDirsABC.iter_data_paths  s(   è ø€ à×'Ñ'Ó)ò 	ˆDÜ�t“*Óñ	ùr€   c              #  óP   K  — | j                  «       D ]  }t        |«      –— Œ y­w)z&:yield: all user and site cache paths.N)r{   r   r'   s     r   Úiter_cache_pathsz PlatformDirsABC.iter_cache_paths#  s(   è ø€ à×(Ñ(Ó*ò 	ˆDÜ�t“*Óñ	ùr€   c              #  óP   K  — | j                  «       D ]  }t        |«      –— Œ y­w)z(:yield: all user and site runtime paths.N)r}   r   r'   s     r   Úiter_runtime_pathsz"PlatformDirsABC.iter_runtime_paths(  s(   è ø€ à×*Ñ*Ó,ò 	ˆDÜ�t“*Óñ	ùr€   )NNNFFTF)r   ú
str | Noner   zstr | Literal[False] | Noner   r‡   r   Úboolr   rˆ   r   rˆ   r   rˆ   ÚreturnÚNone)r    Ústrr‰   r‹   )r   r‹   r‰   rŠ   )r+   r‹   r‰   r   )r‰   r‹   )r‰   r   )r‰   zIterator[str])r‰   zIterator[Path])2Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r"   r   r,   Úpropertyr   r0   r3   r5   r7   r9   r;   r=   r?   rA   rC   rE   rG   rI   rK   rM   rO   rQ   rT   rV   rY   r[   r^   r`   rb   rd   rg   ri   rk   rm   ro   rr   rt   rv   ry   r{   r}   r   r‚   r„   r†   r.   r   r   r   r      s§  „ Ù7ð #Ø15Ø"ØØØØ#ð=àð=ð /ð=ð ð	=ð
 ð=ð ð=ð ð=ð ð=ð 
ó=ó~ó:óð Øò7ó ó ð7ð Øò6ó ó ð6ð Øò9ó ó ð9ð Øò<ó ó ð<ð Øò8ó ó ð8ð Øò7ó ó ð7ð Øò8ó ó ð8ð Øò6ó ó ð6ð Øò<ó ó ð<ð Øò<ó ó ð<ð Øò;ó ó ð;ð Øò9ó ó ð9ð Øò8ó ó ð8ð Øò:ó ó ð:ð Øò:ó ó ð:ð Øò9ó ó ð9ð ò(ó ð(ð ò(ó ð(ð ò*ó ð*ð ò*ó ð*ð ò)ó ð)ð ò)ó ð)ð ò)ó ð)ð ò'ó ð'ð ò-ó ð-ð ò-ó ð-ð ò,ó ð,ð ò*ó ð*ð ò)ó ð)ð ò+ó ð+ð ò+ó ð+ð ò+ó ð+ó#ó
!ó
"ó
$ó
ó
ó
ô
r   r   )r�   Ú
__future__r   r   Úabcr   r   Úpathlibr   Útypingr   Úcollections.abcr   r	   r   r.   r   r   ú<module>r–      s.   ðÙ å "ã 	ß #Ý Ý  áÝ(Ýô\�cõ \r   