
    <i                         d Z ddlmZ ddlmZmZ ddlmZmZ ddl	m
Z
 dedefd	Zdedefd
ZdedefdZdedefdZdS )zA
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
    )ArgumentTypeError   )sanitize_filenamevalidate_filename)sanitize_filepathvalidate_filepath)ValidationErrorvaluereturnc                 r    | sdS 	 t          |            n!# t          $ r}t          |          d }~ww xY w| S N )r   r	   r   r
   es     /Users/kimhansen/Desktop/03 Workspace/ceo-agents/chl-effectiveness/mcp-servers/whoop/.venv/lib/python3.11/site-packages/pathvalidate/argparse.pyvalidate_filename_argr      sY     r#%     # # #"""# Ls    
4/4c                 v    | sdS 	 t          | d           n!# t          $ r}t          |          d }~ww xY w| S Nr   auto)platform)r   r	   r   r   s     r   validate_filepath_argr      s^     r#%&11111 # # #"""# Ls    
616c                 (    | sdS t          |           S r   )r   r
   s    r   sanitize_filename_argr   $   s     rU###    c                 ,    | sdS t          | d          S r   )r   r   s    r   sanitize_filepath_argr   +   s"     rUV4444r   N)__doc__argparser   	_filenamer   r   	_filepathr   r   errorr	   strr   r   r   r    r   r   <module>r%      s     ' & & & & & ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; " " " " " "	 	 	 	 	 		 	 	 	 	 	$ $ $ $ $ $5 5 5 5 5 5 5 5r   