L i #dZ dZedejdDZddlZddlZeZejjdrFddl Z e jddZ e jdrd Z n#e jd rd Z nd Z n ejZ dd ZdZdZdZdZe d k(r ddlZeZyy#e$r0 ddlmZeZYy#e$r ddlZeZn#e$reZYnwxYwYYyYYywxYwwxYw)a  This file is directly from https://github.com/ActiveState/appdirs/blob/3fe6a83776843a46f20c2e5587afcffe05e03b39/appdirs.py The license of https://github.com/ActiveState/appdirs copied below: # This is the MIT license Copyright (c) 2010 ActiveState Software Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. z1.4.4c#2K|]}t|yw)N)int).0segments ^/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/seaborn/external/appdirs.py r1sL'WLs.NjavaWindowswin32Macdarwinlinux2ctdk(r||}tjjt d}|r |dur"tjj |||}n tjj ||}|rtjj |d}ntdk(rBtjj d}|rvtjj ||}nUtjdtjj d}|r tjj ||}|r"|r tjj ||}|S) aReturn full path to the user-specific cache dir for this application. "appname" is the name of application. If None, just the system directory is returned. "appauthor" (only used on Windows) is the name of the appauthor or distributing body for this application. Typically it is the owning company name. This falls back to appname. You may pass False to disable it. "version" is an optional version path element to append to the path. You might want to use this if you want multiple versions of your app to be able to run independently. If used, this would typically be ".". Only applied when appname is present. "opinion" (boolean) can be False to disable the appending of "Cache" to the base app data dir for Windows. See discussion below. Typical user cache directories are: Mac OS X: ~/Library/Caches/ Unix: ~/.cache/ (XDG default) Win XP: C:\Documents and Settings\\Local Settings\Application Data\\\Cache Vista: C:\Users\\AppData\Local\\\Cache On Windows the only suggestion in the MSDN docs is that local settings go in the `CSIDL_LOCAL_APPDATA` directory. This is identical to the non-roaming app data dir (the default returned by `user_data_dir` above). Apps typically put cache data somewhere *under* the given dir here. Some examples: ...\Mozilla\Firefox\Profiles\\Cache ...\Acme\SuperApp\Cache\1.0 OPINION: This function appends "Cache" to the `CSIDL_LOCAL_APPDATA` value. This can be disabled with the `opinion=False` option. r CSIDL_LOCAL_APPDATAFCacherz~/Library/CachesXDG_CACHE_HOMEz~/.cache)systemospathnormpath_get_win_folderjoin expandusergetenv)appname appauthorversionopinionrs ruser_cache_dirr!IsB  Iww0E FG %ww||D)W=ww||D'2ww||D'2 8 ww!!"45 77<<g.Dyy)277+=+=j+IJ 77<<g.D7ww||D'* Kcddl}dddd|}|j|jd}|j||\}}|S)zThis is a fallback technique at best. I'm not sure if using the registry for this guarantees us the correct answer for all CSIDL_* names. r NAppDatazCommon AppDataz Local AppData CSIDL_APPDATACSIDL_COMMON_APPDATArz@Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders)winregOpenKeyHKEY_CURRENT_USER QueryValueEx) csidl_name_winregshell_folder_namekeydirtypes r_get_win_folder_from_registryr2s^ # 0.  //!!K C$$S*;rGrI com.sun.jnacomr"rrxs9> L[5F5Fs5KLL <<6"h!!$Q'G)$   E "  \\F6v*644 W @6  @ @ %9O @ @"": @"? @  @ @sT1B99C.?C  C*CC*C C*C  C*#C.&C.)C**C.