§
    ¤	ÊjØ  ã                  óÎ   — U d Z ddlmZ ddlZddlZddlmZ ddlmZm	Z	 ddl
mZ  G d„ d	e¦  «        Z G d
„ dee¦  «        Z ej        dej        ¦  «        Zded<   dd„ZdgZdS )zmacOS.é    )ÚannotationsN)ÚFinalé   )ÚXDGMixinÚ_expand_user)ÚPlatformDirsABCc                  óÂ  — e Zd ZdZd$d„Zd%d„Zed$d„¦   «         Zed%d„¦   «         Zed$d	„¦   «         Z	ed%d
„¦   «         Z
ed$d„¦   «         Zed%d„¦   «         Zed$d„¦   «         Zed$d„¦   «         Zed$d„¦   «         Zed$d„¦   «         Zed$d„¦   «         Zed$d„¦   «         Zed$d„¦   «         Zed$d„¦   «         Zed$d„¦   «         Zed$d„¦   «         Zed$d„¦   «         Zed$d„¦   «         Zed$d„¦   «         Zed$d„¦   «         Zed$d„¦   «         Zed$d„¦   «         Zed$d„¦   «         Zed$d„¦   «         Zed$d„¦   «         Zed%d „¦   «         Z ed$d!„¦   «         Z!ed$d"„¦   «         Z"d#S )&Ú_MacOSDefaultsaˆ  Default platform directories for macOS without XDG environment variable overrides.

    Follows the guidance from `Apple's File System Programming Guide
    <https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/MacOSXDirectories/MacOSXDirectories.html>`_.
    The XDG env var handling is in :class:`~platformdirs._xdg.XDGMixin`.

    ÚreturnÚstrc                óJ   — |                       t          d¦  «        d¬¦  «        S )Nz~/Library/Application SupportT©Úprivate©Ú_append_app_name_and_versionr   ©Úselfs    úBC:\Projects\Muse2API\.venv\Lib\site-packages\platformdirs/macos.pyÚ_base_user_app_support_dirz)_MacOSDefaults._base_user_app_support_dir   s%   € Ø×0Ò0µÐ>]Ñ1^Ô1^ÐhlÐ0ÑmÔmÐmó    ú	list[str]c                ó¬   — t          ¦   «         x}r|                      |› d�¦  «        gng }|                     |                      d¦  «        ¦  «         |S )Nz/sharez/Library/Application Support©Ú_homebrew_prefixÚ_join_app_name_and_versionÚappend©r   ÚprefixÚ	path_lists      r   Ú_base_site_dirsz_MacOSDefaults._base_site_dirs   s`   € ÝWgÑWiÔWiÐMiÈVÐr�T×4Ò4¸Ð5FÐ5FÐ5FÑGÔGÐHÐHÐprˆ	Ø×Ò˜×8Ò8Ð9WÑXÔXÑYÔYÐYØÐr   c                ó*   — |                       ¦   «         S )zZData directory tied to the user, e.g. ``~/Library/Application Support/$appname/$version``.©r   r   s    r   Úuser_data_dirz_MacOSDefaults.user_data_dir   ó   € ð ×.Ò.Ñ0Ô0Ð0r   c                ó*   — |                       ¦   «         S ©N©r    r   s    r   Ú_site_data_dirsz_MacOSDefaults._site_data_dirs#   ó   € à×#Ò#Ñ%Ô%Ð%r   c                ó*   — |                       ¦   «         S )z;Config directory tied to the user, same as `user_data_dir`.r"   r   s    r   Úuser_config_dirz_MacOSDefaults.user_config_dir'   r$   r   c                ó*   — |                       ¦   «         S r&   r'   r   s    r   Ú_site_config_dirsz _MacOSDefaults._site_config_dirs,   r)   r   c                óJ   — |                       t          d¦  «        d¬¦  «        S )zNCache directory tied to the user, e.g. ``~/Library/Caches/$appname/$version``.z~/Library/CachesTr   r   r   s    r   Úuser_cache_dirz_MacOSDefaults.user_cache_dir0   s'   € ð ×0Ò0µÐ>PÑ1QÔ1QÐ[_Ð0Ñ`Ô`Ð`r   c                ó¬   — t          ¦   «         x}r|                      |› d�¦  «        gng }|                     |                      d¦  «        ¦  «         |S )Nz
/var/cachez/Library/Cachesr   r   s      r   Ú_site_cache_dirsz_MacOSDefaults._site_cache_dirs5   sa   € å[kÑ[mÔ[mÐQmÐQWÐv�T×4Ò4¸Ð5JÐ5JÐ5JÑKÔKÐLÐLÐtvˆ	Ø×Ò˜×8Ò8Ð9JÑKÔKÑLÔLÐLØÐr   c                ó6   — |                       | j        ¦  «        S )aë  Cache directory shared by users, e.g. ``/Library/Caches/$appname/$version``. If we're using a Python binary managed by `Homebrew <https://brew.sh>`_, the directory will be under the Homebrew prefix, e.g. ``$homebrew_prefix/var/cache/$appname/$version``. If `multipath <platformdirs.api.PlatformDirsABC.multipath>` is enabled, and we're in Homebrew, the response is a multi-path string separated by ":", e.g. ``$homebrew_prefix/var/cache/$appname/$version:/Library/Caches/$appname/$version``.)Ú_select_site_dirsr1   r   s    r   Úsite_cache_dirz_MacOSDefaults.site_cache_dir;   s   € ð ×%Ò% dÔ&;Ñ<Ô<Ð<r   c                ó*   — |                       ¦   «         S )z�State directory tied to the user, same as `user_data_dir` without ``$XDG_DATA_HOME``, e.g. ``~/Library/Application Support/$appname/$version``.r"   r   s    r   Úuser_state_dirz_MacOSDefaults.user_state_dir@   r$   r   c                óh   — |                       ¦   «         d         }|                      |d¬¦  «         |S )z¢State directory shared by users, the first entry of `site_data_dir` without ``$XDG_DATA_DIRS``, ignoring `multipath <platformdirs.api.PlatformDirsABC.multipath>`.r   Fr   )r    Ú_optionally_create_directory)r   Úpaths     r   Úsite_state_dirz_MacOSDefaults.site_state_dirE   s8   € ð ×#Ò#Ñ%Ô% aÔ(ˆØ×)Ò)¨$¸Ð)Ñ>Ô>Ð>Øˆr   c                óJ   — |                       t          d¦  «        d¬¦  «        S )zJLog directory tied to the user, e.g. ``~/Library/Logs/$appname/$version``.z~/Library/LogsTr   r   r   s    r   Úuser_log_dirz_MacOSDefaults.user_log_dirL   s'   € ð ×0Ò0µÐ>NÑ1OÔ1OÐY]Ð0Ñ^Ô^Ð^r   c                ó0   — |                       dd¬¦  «        S )zHLog directory shared by users, e.g. ``/Library/Logs/$appname/$version``.z/Library/LogsFr   )r   r   s    r   Úsite_log_dirz_MacOSDefaults.site_log_dirQ   s   € ð ×0Ò0°È%Ð0ÑPÔPÐPr   c                ó    — t          d¦  «        S )z;Documents directory tied to the user, e.g. ``~/Documents``.z~/Documents©r   r   s    r   Úuser_documents_dirz!_MacOSDefaults.user_documents_dirV   ó   € õ ˜MÑ*Ô*Ð*r   c                ó    — t          d¦  «        S )z;Downloads directory tied to the user, e.g. ``~/Downloads``.z~/Downloadsr@   r   s    r   Úuser_downloads_dirz!_MacOSDefaults.user_downloads_dir[   rB   r   c                ó    — t          d¦  «        S )z9Pictures directory tied to the user, e.g. ``~/Pictures``.z
~/Picturesr@   r   s    r   Úuser_pictures_dirz _MacOSDefaults.user_pictures_dir`   ó   € õ ˜LÑ)Ô)Ð)r   c                ó    — t          d¦  «        S )z5Videos directory tied to the user, e.g. ``~/Movies``.z~/Moviesr@   r   s    r   Úuser_videos_dirz_MacOSDefaults.user_videos_dire   ó   € õ ˜JÑ'Ô'Ð'r   c                ó    — t          d¦  «        S )z3Music directory tied to the user, e.g. ``~/Music``.z~/Musicr@   r   s    r   Úuser_music_dirz_MacOSDefaults.user_music_dirj   s   € õ ˜IÑ&Ô&Ð&r   c                ó    — t          d¦  «        S )z7Desktop directory tied to the user, e.g. ``~/Desktop``.z	~/Desktopr@   r   s    r   Úuser_desktop_dirz_MacOSDefaults.user_desktop_diro   s   € õ ˜KÑ(Ô(Ð(r   c                ó    — t          d¦  «        S )z9Projects directory tied to the user, e.g. ``~/Projects``.z
~/Projectsr@   r   s    r   Úuser_projects_dirz _MacOSDefaults.user_projects_dirt   rG   r   c                ó    — t          d¦  «        S )z;Public share directory tied to the user, e.g. ``~/Public``.z~/Publicr@   r   s    r   Úuser_publicshare_dirz#_MacOSDefaults.user_publicshare_diry   rJ   r   c                ó    — t          d¦  «        S )z;Templates directory tied to the user, e.g. ``~/Templates``.z~/Templatesr@   r   s    r   Úuser_templates_dirz!_MacOSDefaults.user_templates_dir~   rB   r   c                ó    — t          d¦  «        S )z;Fonts directory tied to the user, e.g. ``~/Library/Fonts``.z~/Library/Fontsr@   r   s    r   Úuser_fonts_dirz_MacOSDefaults.user_fonts_dirƒ   s   € õ Ð-Ñ.Ô.Ð.r   c                óJ   — |                       t          d¦  «        d¬¦  «        S )zNPreference directory tied to the user, e.g. ``~/Library/Preferences/AppName``.z~/Library/PreferencesTr   r   r   s    r   Úuser_preference_dirz"_MacOSDefaults.user_preference_dirˆ   s'   € ð ×0Ò0µÐ>UÑ1VÔ1VÐ`dÐ0ÑeÔeÐer   c                ó    — t          d¦  «        S )z6Bin directory tied to the user, e.g. ``~/.local/bin``.z~/.local/binr@   r   s    r   Úuser_bin_dirz_MacOSDefaults.user_bin_dir�   s   € õ ˜NÑ+Ô+Ð+r   c                ó   — dS )z7Bin directory shared by users, e.g. ``/usr/local/bin``.z/usr/local/bin© r   s    r   Úsite_bin_dirz_MacOSDefaults.site_bin_dir’   s
   € ð  Ðr   c                ó    — t          d¦  «        S )zAApplications directory tied to the user, e.g. ``~/Applications``.z~/Applicationsr@   r   s    r   Úuser_applications_dirz$_MacOSDefaults.user_applications_dir—   s   € õ Ð,Ñ-Ô-Ð-r   c                ó   — dgS )Nz/Applicationsr\   r   s    r   Ú_site_applications_dirsz&_MacOSDefaults._site_applications_dirsœ   s   € àÐ Ð r   c                óJ   — |                       t          d¦  «        d¬¦  «        S )z_Runtime directory tied to the user, e.g. ``~/Library/Caches/TemporaryItems/$appname/$version``.z~/Library/Caches/TemporaryItemsTr   r   r   s    r   Úuser_runtime_dirz_MacOSDefaults.user_runtime_dir    s'   € ð ×0Ò0µÐ>_Ñ1`Ô1`ÐjnÐ0ÑoÔoÐor   c                ó   — | j         S )z>Runtime directory shared by users, same as `user_runtime_dir`.)rc   r   s    r   Úsite_runtime_dirz_MacOSDefaults.site_runtime_dir¥   s   € ð Ô$Ð$r   N)r   r   )r   r   )#Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r    Úpropertyr#   r(   r+   r-   r/   r1   r4   r6   r:   r<   r>   rA   rD   rF   rI   rL   rN   rP   rR   rT   rV   rX   rZ   r]   r_   ra   rc   re   r\   r   r   r
   r
      sÞ  € € € € € ðð ðnð nð nð nðð ð ð ð
 ð1ð 1ð 1ñ „Xð1ð ð&ð &ð &ñ „Xð&ð ð1ð 1ð 1ñ „Xð1ð ð&ð &ð &ñ „Xð&ð ðað að añ „Xðað ðð ð ñ „Xðð
 ð=ð =ð =ñ „Xð=ð ð1ð 1ð 1ñ „Xð1ð ðð ð ñ „Xðð ð_ð _ð _ñ „Xð_ð ðQð Qð Qñ „XðQð ð+ð +ð +ñ „Xð+ð ð+ð +ð +ñ „Xð+ð ð*ð *ð *ñ „Xð*ð ð(ð (ð (ñ „Xð(ð ð'ð 'ð 'ñ „Xð'ð ð)ð )ð )ñ „Xð)ð ð*ð *ð *ñ „Xð*ð ð(ð (ð (ñ „Xð(ð ð+ð +ð +ñ „Xð+ð ð/ð /ð /ñ „Xð/ð ðfð fð fñ „Xðfð ð,ð ,ð ,ñ „Xð,ð ð ð  ð  ñ „Xð ð ð.ð .ð .ñ „Xð.ð ð!ð !ð !ñ „Xð!ð ðpð pð pñ „Xðpð ð%ð %ð %ñ „Xð%ð %ð %r   r
   c                  ó   — e Zd ZdZdS )ÚMacOSaF  Platform directories for the macOS operating system.

    Follows the guidance from `Apple documentation
    <https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/MacOSXDirectories/MacOSXDirectories.html>`_.
    Makes use of the `appname <platformdirs.api.PlatformDirsABC.appname>`, `version
    <platformdirs.api.PlatformDirsABC.version>`, `ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.

    XDG environment variables (e.g. ``$XDG_DATA_HOME``) are supported and take precedence over macOS defaults.

    N)rf   rg   rh   ri   r\   r   r   rl   rl   «   s   € € € € € ð	ð 	ð 	ð 	r   rl   a.  
    (?P<prefix>.+)                 # $HOMEBREW_PREFIX, such as /opt/homebrew or /usr/local
    /opt/python[^/]*               # formula link: python, python3 or python@3.13
    /Frameworks/Python\.framework  # framework build
    /Versions/[^/]+                # interpreter version, such as 3.13
    r   Ú_HOMEBREW_PYTHONr   ú
str | Nonec                 ób   — t                                t          j        ¦  «        x} r| d         S d S )Nr   )rm   Ú	fullmatchÚsysÚbase_prefix)Úmatchs    r   r   r   Ä   s.   € Ý ×*Ò*­3¬?Ñ;Ô;Ð;€uð Ø�XŒÐØˆ4r   )r   rn   )ri   Ú
__future__r   Úrerq   Útypingr   Ú_xdgr   r   Úapir   r
   rl   ÚcompileÚVERBOSErm   Ú__annotations__r   Ú__all__r\   r   r   ú<module>r}      s%  ðØ €€à "Ð "Ð "Ð "Ð "Ð "à 	€	€	€	Ø 
€
€
€
Ø Ð Ð Ð Ð Ð à (Ð (Ð (Ð (Ð (Ð (Ð (Ð (Ø  Ð  Ð  Ð  Ð  Ð  ð[%ð [%ð [%ð [%ð [%�_ñ [%ô [%ð [%ð|
ð 
ð 
ð 
ð 
ˆH�nñ 
ô 
ð 
ð %˜"œ*ðð „Jñô Ð ð ð ð ñ ðð ð ð ð ð€€€r   