Ë
    £ehF  ã                   óF   — d Z ddlZddlZ ej                  d«      Z	 dd„Zy)zHCollection of utilities for command-line interfaces and console scripts.é    Nz#\d+$c                 óT  — t         j                  j                  | «      \  }}t         j                  j                  |«      \  }}|r|}t        j                  |«      d   }|€"t         j                  j                  | «      d   }t         j                  j                  |||z   |z   «      }d}	|syt         j                  j                  |«      rZt         j                  j                  |||z   dz   t        |	«      z   |z   «      }|	dz  }	t         j                  j                  |«      rŒZ|S )a%  Generates a suitable file name for writing output.

    Often tools will want to take a file, do some kind of transformation to it,
    and write it out again. This function determines an appropriate name for the
    output file, through one or more of the following steps:

    - changing the output directory
    - appending suffix before file extension
    - replacing the file extension
    - suffixing the filename with a number (``#1``, ``#2``, etc.) to avoid
      overwriting an existing file.

    Args:
        input: Name of input file.
        outputDir: Optionally, a new directory to write the file into.
        suffix: Optionally, a string suffix is appended to file name before
            the extension.
        extension: Optionally, a replacement for the current file extension.
        overWrite: Overwriting an existing file is permitted if true; if false
            and the proposed filename exists, a new name will be generated by
            adding an appropriate number suffix.

    Returns:
        str: Suitable output filename
    r   é   ú#)ÚosÚpathÚsplitÚsplitextÚnumberAddedREÚjoinÚexistsÚrepr)
ÚinputÚ	outputDirÚ	extensionÚ	overWriteÚsuffixÚdirNameÚfileNameÚextÚoutputÚns
             úU/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/fontTools/misc/cliTools.pyÚmakeOutputFileNamer   
   sø   € ô8 Ÿ™Ÿ™ eÓ,Ñ€GˆXÜ—G‘G×$Ñ$ XÓ.�M€HˆcÙØˆÜ×"Ñ" 8Ó,¨QÑ/€HØÐÜ—G‘G×$Ñ$ UÓ+¨AÑ.ˆ	Ü�W‰W�\‰\˜' 8¨fÑ#4°yÑ#@ÓA€FØ	€AÙÜ�g‰g�n‰n˜VÔ$Ü—W‘W—\‘\Ø˜ FÑ*¨SÑ0´4¸³7Ñ:¸YÑFóˆFð �‰FˆAô	 �g‰g�n‰n˜VÕ$ð
 €Mó    )NNFÚ )Ú__doc__r   ÚreÚcompiler
   r   © r   r   ú<module>r       s,   ðÙ Nã 	Û 	ð �—
‘
˜8Ó$€ð DFô+r   