a
    yfFq                  	   @   st  d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl	Z	d dl
mZ d dlmZ d dlmZ d dlZd dlZd dlZd dlZd dlmZmZmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/ e"j0d dfdd	Z1dRe2dddZ3e4dddZ5dSddZ6dTe7e7e7e4e4e7e4dddZ8dUddZ9dd Z:e( dVd d!Z;dWe7e4e4d$d%d&Z<e) e"j0d d'd#dfd(d)Z=d*d+ Z>dXd.d/Z?dYe7e4d0d1d2Z@dZd4d5ZAd[d7d8ZBd\d:d;ZCd<d= ZDd]d>d?ZEd^d@dAZFdBdC ZGdDdE ZHe"fdFdGZId_eeJ dHdIdJZKeLddKdLZMe4ddMdNZNe<dOddPZOe!PdQZQdS )`    N)metadata)Path)Optional)ASSETSAUTOINSTALLIS_COLAB
IS_GIT_DIR
IS_JUPYTER	IS_KAGGLEIS_PIP_PACKAGELINUXLOGGERMACOSONLINEPYTHON_VERSIONROOTTORCHVISION_VERSIONUSER_CONFIG_DIRWINDOWSRetrySimpleNamespaceThreadingLocked	TryExcept	clean_urlcolorstr	downloadsemojisis_github_action_runningurl2filezrequirements.txt c                 C   s   |rdd t |jD }nt|   }g }|D ]f}| }|r4|ds4|dd  }t	
d|}|r4|t|d |d r|d  ndd	 q4|S )
a;  
    Parse a requirements.txt file, ignoring lines that start with '#' and any text after '#'.

    Args:
        file_path (Path): Path to the requirements.txt file.
        package (str, optional): Python package to use instead of requirements.txt file, i.e. package='ultralytics'.

    Returns:
        (List[Dict[str, str]]): List of parsed requirements as dictionaries with `name` and `specifier` keys.

    Example:
        ```python
        from ultralytics.utils.checks import parse_requirements

        parse_requirements(package="ultralytics")
        ```
    c                 S   s   g | ]}d |vr|qS )z	extra ==  .0xr    r    T/var/www/html/django/DPS/env/lib/python3.9/site-packages/ultralytics/utils/checks.py
<listcomp>G       z&parse_requirements.<locals>.<listcomp>#r   z ([a-zA-Z0-9-_]+)\s*([<>!=~]+.*)?      r   name	specifier)r   distributionrequiresr   	read_text
splitlinesstrip
startswithsplitrematchappendr   )	file_pathpackager.   requirementsliner5   r    r    r$   parse_requirements4   s    ,r;   0.0.0)returnc              
   C   sb   z t tttd| dd W S  ty\ } z$td|  d|  W Y d}~dS d}~0 0 dS )a  
    Convert a version string to a tuple of integers, ignoring any extra non-numeric string attached to the version. This
    function replaces deprecated 'pkg_resources.parse_version(v)'.

    Args:
        version (str): Version string, i.e. '2.0.1+cpu'

    Returns:
        (tuple): Tuple of integers representing the numeric part of the version and the extra string, i.e. (2, 0, 1)
    z\d+N   u)   WARNING ⚠️ failure for parse_version(z), returning (0, 0, 0): )r   r   r   )tuplemapintr4   findall	Exceptionr   warning)versioner    r    r$   parse_versionW   s
     rG   c                 C   s   t | } tdd | D S )z
    Check if a string is composed of only ASCII characters.

    Args:
        s (str): String to be checked.

    Returns:
        (bool): True if the string is composed only of ASCII characters, False otherwise.
    c                 s   s   | ]}t |d k V  qdS )   N)ord)r"   cr    r    r$   	<genexpr>w   r&   zis_ascii.<locals>.<genexpr>)strall)sr    r    r$   is_asciii   s    rO       r(   r)   c                    sb  t ttjr nt| t r.| g} nZt| ttfrFt| } nBt| trl|  rbt | gnt	| } nt
d|  dt| j dt| |krd}|dkrtd|  d| tdt|  d	|  t| g}  fd
d| D }|| krtd|  d d|  |dkr:t|dkr:|d |d gn"|dkrZt|dkrZ|d n|}|S )a(  
    Verify image size is a multiple of the given stride in each dimension. If the image size is not a multiple of the
    stride, update it to the nearest multiple of the stride that is greater than or equal to the given floor value.

    Args:
        imgsz (int | cList[int]): Image size.
        stride (int): Stride value.
        min_dim (int): Minimum number of dimensions.
        max_dim (int): Maximum number of dimensions.
        floor (int): Minimum allowed value for image size.

    Returns:
        (List[int]): Updated image size.
    z'imgsz=z' is of invalid type zK. Valid imgsz types are int i.e. 'imgsz=640' or list i.e. 'imgsz=[640,640]'z'train' and 'val' imgsz must be an integer, while 'predict' and 'export' imgsz may be a [h, w] list or an integer, i.e. 'yolo export imgsz=640,480' or 'yolo export imgsz=640'r(   zimgsz=z is not a valid image size. u"   WARNING ⚠️ updating to 'imgsz=z'. c                    s$   g | ]}t t|   qS r    )maxmathceilr!   floorstrider    r$   r%      r&   zcheck_imgsz.<locals>.<listcomp>u   WARNING ⚠️ imgsz=z  must be multiple of max stride z, updating to r)   r   )rA   
isinstancetorchZTensorrQ   listr?   rL   	isnumericeval	TypeErrortype__name__len
ValueErrorr   rD   )imgszrV   Zmin_dimZmax_dimrU   msgszr    rT   r$   check_imgszz   s,    




Lrd   rE   F)currentrequiredr+   hardverboserb   r=   c              
   C   s  | s t d|  d| d dS | d  sz| }t| } W nP tjy } z6|rlttd|  d|nW Y d}~d	S W Y d}~n
d}~0 0 |sdS d
|v rtrd|vst	rd|vst
rd|vrd|vrdS d}d}d}	t| }
|ddD ]}td| \}}t|}|dkr.|
|kr.d	}	q|dkrH|
|krHd	}	q|dv rb|
|ksbd	}	q|dkr||
|ks|d	}	q|dkr|
|ksd	}	q|dkr|
|k sd	}	q|	sd| | | d| d|  d| 
}|rtt||rt | |	S )a  
    Check current version against the required version or range.

    Args:
        current (str): Current version or package name to get version from.
        required (str): Required version or range (in pip-style format).
        name (str, optional): Name to be used in warning message.
        hard (bool, optional): If True, raise an AssertionError if the requirement is not met.
        verbose (bool, optional): If True, print warning message if requirement is not met.
        msg (str, optional): Extra message to display if verbose.

    Returns:
        (bool): True if requirement is met, False otherwise.

    Example:
        ```python
        # Check if current version is exactly 22.04
        check_version(current="22.04", required="==22.04")

        # Check if current version is greater than or equal to 22.04
        check_version(current="22.10", required="22.04")  # assumes '>=' inequality if none passed

        # Check if current version is less than or equal to 22.04
        check_version(current="22.04", required="<=22.04")

        # Check if current version is between 20.04 (inclusive) and 22.04 (exclusive)
        check_version(current="21.10", required=">20.04,<22.04")
        ```
    u%   WARNING ⚠️ invalid check_version(, z!) requested, please check values.Tr   u   WARNING ⚠️ z& package is required but not installedNFsys_platformwin32linuxZmacosdarwinr   ,z([^0-9]*)([\d.]+)z==z!=>   r   z>=z<=><z is required, but z is currently installed )r   rD   isdigitr   rE   PackageNotFoundErrorModuleNotFoundErrorr   r   r   r   rG   r1   r3   r4   r5   groups)re   rf   r+   rg   rh   rb   rF   oprE   resultrJ   rvrD   r    r    r$   check_version   sn    %$$
ry   ultralyticsc                 C   sx   t tZ tjj  tjd|  ddd}|jdkrV|	 d d W  d   S W d   n1 sj0    Y  dS )	z
    Returns the latest version of a PyPI package without downloading or installing it.

    Args:
        package_name (str): The name of the package to find the latest version for.

    Returns:
        (str): The latest version of the package.
    zhttps://pypi.org/pypi/z/jsonr>   )timeout   inforE   N)

contextlibsuppressrC   requestspackagesurllib3disable_warningsgetstatus_codejson)package_nameresponser    r    r$   check_latest_pypi_version  s
    

r   c                  C   sz   t rvtrvttT ddlm}  t }t| d| rXt	
d| d W d   dS W d   n1 sl0    Y  dS )	z
    Checks if a new version of the ultralytics package is available on PyPI.

    Returns:
        (bool): True if an update is available, False otherwise.
    r   )__version__rp   z)New https://pypi.org/project/ultralytics/u8    available 😃 Update with 'pip install -U ultralytics'NTF)r   r   r~   r   rC   rz   r   r   ry   r   r}   )r   Zlatestr    r    r$   check_pip_update_available  s    
.r   	Arial.ttfc                    s~   ddl m} t j}t| }| r*|S  fdd| D }t|rP|d S d| }tj	|ddrztj
||d |S d	S )
z
    Find font locally or download to user's configuration directory if it does not already exist.

    Args:
        font (str): Path or name of font.

    Returns:
        file (Path): Resolved font file path.
    r   )font_managerc                    s   g | ]} |v r|qS r    r    )r"   rN   fontr    r$   r%   B  r&   zcheck_font.<locals>.<listcomp>z?https://github.com/ultralytics/assets/releases/download/v0.0.0/T)check)urlfileN)Z
matplotlibr   r   r+   r   existsZfindSystemFontsanyr   is_urlsafe_download)r   r   r+   r   matchesr   r    r   r$   
check_font.  s    

r   3.8.0T)minimumrg   r=   c                 C   s   t t| d|dS )aS  
    Check current python version against the required minimum version.

    Args:
        minimum (str): Required minimum version of python.
        hard (bool, optional): If True, raise an AssertionError if the requirement is not met.

    Returns:
        (bool): Whether the installed Python version meets the minimum constraints.
    Python)r+   rg   )ry   r   )r   rg   r    r    r$   check_pythonM  s    r   r    c                    s$  t ddd}t  t  t| tr^|  }| sFJ | d| d fddt|D } nt| trn| g} g }| D ]}|	dd	 
d
d}td|}	|	d |	d r|	d  nd }
}ztt|
|sJ W qv ttjfy   || Y qv0 qvtddddd }ddd |D }|r |rtrt|}t| dd|dk  d| d zzt }tszJ dt||| t | }t| d|dd| dd|dk  d| d| dt dd d W n< ty } z"t| d |  W Y d!}~d"S d!}~0 0 nd"S d#S )$a  
    Check if installed dependencies meet YOLOv8 requirements and attempt to auto-update if needed.

    Args:
        requirements (Union[Path, str, List[str]]): Path to a requirements.txt file, a single package requirement as a
            string, or a list of package requirements as strings.
        exclude (Tuple[str]): Tuple of package names to exclude from checking.
        install (bool): If True, attempt to auto-update packages that don't meet requirements.
        cmds (str): Additional commands to pass to the pip install command when auto-updating.

    Example:
        ```python
        from ultralytics.utils.checks import check_requirements

        # Check a requirements.txt file
        check_requirements("path/to/requirements.txt")

        # Check a single package
        check_requirements("ultralytics>=8.0.0")

        # Check multiple packages
        check_requirements(["numpy", "ultralytics>=8.0.0"])
        ```
    redboldzrequirements: z not found, check failed.c                    s&   g | ]}|j  vr|j  |j qS r    r*   r!   excluder    r$   r%   {  r&   z&check_requirements.<locals>.<listcomp>/z.gitr   z([a-zA-Z0-9-_]+)([<>!=~]+.*)?r(   r)   )timesdelayc                 S   s   t jd|  d| dd S )z4Attempt pip install command with retries on failure.zpip install --no-cache-dir r   Tshell)
subprocesscheck_outputdecode)r   commandsr    r    r$   attempt_install  s    z+check_requirements.<locals>.attempt_installc                 s   s   | ]}d | d V  qdS )"Nr    r!   r    r    r$   rK     r&   z%check_requirements.<locals>.<genexpr>z Ultralytics requirementrN   z$ not found, attempting AutoUpdate...zAutoUpdate skipped (offline)u    AutoUpdate success ✅ .1fzs, installed z package: 
u    ⚠️ z;Restart runtime or rerun command for updates to take effectu    ❌ NFT)r   r   check_torchvisionrW   r   resolver   r;   rL   r3   replacer4   r5   r1   ry   r   rE   AssertionErrorrr   r6   r   joinr   r_   r   r}   timer   rC   rD   )r9   r   installZcmdsprefixr   pkgsrw   Z
r_strippedr5   r+   rf   r   rN   ntdtrF   r    r   r$   check_requirements[  sT    

"

$(r   c                     s   dgdgdgdgdgdgdgd} d	 tjd
d d	dd }|| v r| | }d	 td
d d	dd  t fdd|D rtd  d| d|d  d dS )a  
    Checks the installed versions of PyTorch and Torchvision to ensure they're compatible.

    This function checks the installed versions of PyTorch and Torchvision, and warns if they're incompatible according
    to the provided compatibility table based on:
    https://github.com/pytorch/vision#installation.

    The compatibility table is a dictionary where the keys are PyTorch versions and the values are lists of compatible
    Torchvision versions.
    z0.19z0.18z0.17z0.16z0.15z0.14z0.13)z2.4z2.3z2.2z2.1z2.0z1.13z1.12.+r   Nr)   c                 3   s   | ]} |kV  qd S )Nr    )r"   rx   Zv_torchvisionr    r$   rK     r&   z$check_torchvision.<locals>.<genexpr>u   WARNING ⚠️ torchvision==z is incompatible with torch==z .
Run 'pip install torchvision==z' to fix torchvision or 'pip install -U torch torchvision' to update both.
For a full compatibility table see https://github.com/pytorch/vision#installation)r   rX   r   r3   r   rM   print)Zcompatibility_tableZv_torchZcompatible_versionsr    r   r$   r     s$    $"r   
yolov8n.pt.ptc                 C   sx   | rt|rtt |tr|f}t | ttfr*| n| gD ]B}t|j  }t|r0||v s0J | | d| d| q0dS )z$Check file(s) for acceptable suffix.z acceptable suffix is z, not N)	rW   rL   rY   r?   r   suffixlowerr1   r_   )r   r   rb   frN   r    r    r$   check_suffix  s    
r   )r   rh   c                 C   s   d| v sd| v rd| v r&|  dd} nbd| v rd| vr| }tdd| } td	d| } td
d| } | |kr|rtd| d|  d | S )z?Replace legacy YOLOv5 filenames with updated YOLOv5u filenames.Zyolov3Zyolov5zu.yaml.yamlr   uz(.*yolov5([nsmlx]))\.ptz\1u.ptz(.*yolov5([nsmlx])6)\.ptz(.*yolov3(|-tiny|-spp))\.ptu   PRO TIP 💡 Replace 'model=z' with new 'model=z'.
YOLOv5 'u' models are trained with https://github.com/ultralytics/ultralytics and feature improved performance vs standard YOLOv5 models trained with https://github.com/ultralytics/yolov5.
)r   r4   subr   r}   )r   rh   Zoriginal_filer    r    r$   check_yolov5u_filename  s    r   yolov8nc                 C   s4   | r,t | js,t | jtjv r,t | dS | S dS )z0Return a model filename from a valid model stem.r   N)r   r   stemr   ZGITHUB_ASSETS_STEMSwith_suffix)modelr    r    r$   check_model_file_from_stem  s    r   r   c                 C   s4  t | | t|  } t| } | rDd| vr6t|  sD|  drH| S |r|  dr| }t|t|  } |  rt	
dt| d|   ntj|| dd t| S tjttd |  d	d
ptttj|  }|s|rtd|  dn(t|dkr|rtd|  d| t|r,|d S g S dS )z4Search/download file (if necessary) and return path.z://zgrpc://)zhttps://zhttp://zrtsp://zrtmp://ztcp://zFound z locally at F)r   r   Zunzipz**T)	recursive'z' does not existr(   zMultiple files match 'z', specify exact path: r   N)r   rL   r1   r   r   r   r   r2   r   r   r}   r   r   r   globr   parentFileNotFoundErrorr_   )r   r   downloaddownload_dirrg   r   filesr    r    r$   
check_file  s2    

.r   r   z.ymlc                 C   s   t | ||dS )zJSearch/download YAML file (if necessary) and return path, checking suffix.rg   )r   )r   r   rg   r    r    r$   
check_yaml  s    r   c                 C   s:   t |  }t | }| o8|jdt|j |jkS )a  
    Check if the resolved path is under the intended directory to prevent path traversal.

    Args:
        basedir (Path | str): The intended directory.
        path (Path | str): The path to check.

    Returns:
        (bool): True if the path is safe, False otherwise.
    N)r   r   r   partsr_   )ZbasedirpathZbase_dir_resolvedZpath_resolvedr    r    r$   check_is_path_safe  s    r   c              
   C   s   z\t r$tstrJ dtjv s$J dtdtjdtj	d t
d t  t
d W dS  ty } z"| rtd|  W Y d	}~d
S d	}~0 0 d	S )z-Check if environment supports image displays.ZDISPLAYz+The DISPLAY environment variable isn't set.test)   r   r>   )Zdtyper(   TuM   WARNING ⚠️ Environment does not support cv2.imshow() or PIL Image.show()
NF)r   r   r
   osenvironcv2ZimshownpZzerosZuint8ZwaitKeyZdestroyAllWindowsrC   r   rD   )warnrF   r    r    r$   check_imshow!  s    

r   c              	   C   s   ddl }ddlm} tr@tdddr.td tr@tj	dd	d
 | rd}|
 j}td\}}}dt  d|| dd|| | dd|| dd	}	tt$ ddlm}
 |
  W d   q1 s0    Y  nd}	||dd td|	  dS )z;Return a human-readable YOLO software and hardware summary.r   N)select_deviceZwandbF)r   zpip uninstall -y wandbZsample_dataT)ignore_errors   @r   (z CPUs, r   z	 GB RAM, z	 GB disk))displayr   )devicenewlineu   Setup complete ✅ )psutilultralytics.utils.torch_utilsr   r	   r   r   systemr   shutilrmtreevirtual_memorytotal
disk_usage	cpu_countr~   r   rC   ZIPythonr   clear_outputr   r}   )rh   r   r   r   Zgibramr   usedfreerN   r   r    r    r$   
check_yolo2  s$    

8(r   c                  C   s  ddl } ddlm} ddlm} |  jd }t  t	dddt

  dd	d| dd
dt dddtrpdn
trxdnd ddd|dddd|  dddtrtj rtjjnd d tddD ]p}z,t|j}t|t|jddrdnd}W n tjy   d}d}Y n0 t	|jd| | |j  qt rt	dtd dtd dtd  d!td" d#td$ d%td& d dS )'zWCollect and print relevant system information including OS, Python, RAM, CPU, and CUDA.r   N)ENVIRONMENT)get_cpu_infor   r   ZOSz<20Environmentr   ZInstallgitpipotherZRAMz.2fz GB
ZCPUCUDArz   )r8   Tr   u   ✅ u   ❌ z(not installed)z
RUNNER_OS: Z	RUNNER_OSz
GITHUB_EVENT_NAME: ZGITHUB_EVENT_NAMEz
GITHUB_WORKFLOW: ZGITHUB_WORKFLOWz
GITHUB_ACTOR: ZGITHUB_ACTORz
GITHUB_REPOSITORY: ZGITHUB_REPOSITORYz
GITHUB_REPOSITORY_OWNER: ZGITHUB_REPOSITORY_OWNER)r   ultralytics.utilsr   r   r   r   r   r   r   r}   platformr   r   r   rX   cudaZis_availablerE   r;   r   r+   ry   rL   r,   rr   r   r   getenv)r   r   r   Zram_inforw   re   Zis_metr    r    r$   collect_system_infoO  sl    
 
"r  c              	      s  ddl m  t jjdv r(dS  fdd}td }td}t	| d	 d
}z2ddl
m} ||d|s|J t	| d W nr ty   t| d|  Y nN ttfy   t| d|  Y n& ty    t| d Y dS 0 dS )a  
    Checks the PyTorch Automatic Mixed Precision (AMP) functionality of a YOLO11 model. If the checks fail, it means
    there are anomalies with AMP on the system that may cause NaN losses or zero-mAP results, so AMP will be disabled
    during training.

    Args:
        model (nn.Module): A YOLO11 model instance.

    Example:
        ```python
        from ultralytics import YOLO
        from ultralytics.utils.checks import check_amp

        model = YOLO("yolo11n.pt").model.cuda()
        check_amp(model)
        ```

    Returns:
        (bool): Returns True if the AMP functionality works correctly with YOLO11 model, else False.
    r   )autocast>   cpuZmpsFc                    s   |gd }t dtj  d }| ||ddd jj} dd( | ||ddd jj}W d	   n1 sr0    Y  ~ |j|jkotj|| d
dS )zAll close FP32 vs AMP results.r         F)ra   r   rh   r   T)enabledNg      ?)Zatol)	rQ   rA   rV   ZboxesdatashaperX   Zallclosefloat)mimbatchra   abr	  r   r   r    r$   amp_allclose  s    
6zcheck_amp.<locals>.amp_allclosezbus.jpgzAMP: z>running Automatic Mixed Precision (AMP) checks with YOLO11n...z`Setting 'amp=True'. If you experience zero-mAP or NaN losses you can disable AMP with amp=False.)YOLOz
yolo11n.ptu   checks passed ✅u?   checks skipped ⚠️, offline and unable to download YOLO11n. ua   checks skipped ⚠️. Unable to load YOLO11n due to possible Ultralytics package modifications. u   checks failed ❌. Anomalies were detected with AMP on your system that may lead to NaN losses or zero-mAP results, so AMP will be disabled during training.T)r   r	  next
parametersr   r]   r   r   r   r}   rz   r  ConnectionErrorrD   AttributeErrorrs   r   )r   r  r  r   Zwarning_msgr  r    r  r$   	check_ampv  s6    

r  c                 C   sP   t t2 tjd|  ddd dd W  d   S 1 sB0    Y  dS )zbReturn human-readable git description, i.e. v5.0-5-g3e25f1e https://git-scm.com/docs/git-describe.zgit -C z  describe --tags --long --alwaysTr   Nr   r   )r~   r   rC   r   r   r   )r   r    r    r$   git_describe  s    @r  argsc           	         s   dd t  j}t |\}}}}} du rVt |\ }}} fdd| D  zt| t	
d}W n ty   t|j}Y n0 |r| dnd|r| dnd }tt|dfd	d
  D   dS )z.Print function arguments (optional args dict).c                 S   s,   t | tr(| dr(t| dkr(t| S | S )zTClean longer Ultralytics HUB URLs by stripping potential authentication information.httpd   )rW   rL   r2   r_   r   )rx   r    r    r$   
strip_auth  s    zprint_args.<locals>.strip_authNc                    s   i | ]\}}| v r||qS r    r    r"   krx   r  r    r$   
<dictcomp>  r&   zprint_args.<locals>.<dictcomp>r   r   ri   c                 3   s$   | ]\}}| d  | V  qdS )=Nr    r$  )r#  r    r$   rK     r&   zprint_args.<locals>.<genexpr>)inspectcurrentframef_backgetframeinfogetargvaluesitemsr   r   relative_tor   r   r`   r   r   r}   r   r   )	r   Z	show_fileZ	show_funcr#   r   _funcfrmrN   r    )r   r#  r$   
print_args  s    
$r2  c               
   C   sP   z.t jg ddd} |  dd }t|W S  t jttfyJ   Y dS 0 dS )z
    Get the number of NVIDIA GPUs available in the environment.

    Returns:
        (int): The number of NVIDIA GPUs available.
    )z
nvidia-smiz--query-gpu=countz--format=csv,noheader,nounitszutf-8)encodingr   r   N)r   r   r1   r3   rA   CalledProcessErrorr   r`   )output
first_liner    r    r$   cuda_device_count  s    
r7  c                   C   s
   t  dkS )z
    Check if CUDA is available in the environment.

    Returns:
        (bool): True if one or more NVIDIA GPUs are available, False otherwise.
    r   )r7  r    r    r    r$   cuda_is_available  s    r8  z3.10r   z3.12)r<   )rP   r(   r)   r   )r<   r<   rE   FFr   )rz   )r   )r   T)r   r   r   )T)r   )r   Tr   T)r   T)F)Tr   )NTF)Rr~   r   r(  rR   r   r  r4   r   r   r   	importlibr   pathlibr   typingr   r   numpyr   r   rX   r  r   r   r   r   r	   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r;   r?   rG   boolrO   rd   rL   ry   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  dictr2  rA   r7  r8  ZIS_PYTHON_MINIMUM_3_10r2   ZIS_PYTHON_3_12r    r    r    r$   <module>   sx   p#
7      X
I$





'>