§
    ¢”jF  ã                   óD   — d Z ddlZddlZ ej        d¦  «        Z	 dd„ZdS )zHCollection of utilities for command-line interfaces and console scripts.é    Nz#\d+$FÚ c                 óp  — t           j                             | ¦  «        \  }}t           j                             |¦  «        \  }}|r|}t                               |¦  «        d         }|€%t           j                             | ¦  «        d         }t           j                             |||z   |z   ¦  «        }d}	|s|t           j                             |¦  «        r]t           j                             |||z   dz   t          |	¦  «        z   |z   ¦  «        }|	dz  }	t           j                             |¦  «        °]|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   Né   ú#)ÚosÚpathÚsplitÚsplitextÚnumberAddedREÚjoinÚexistsÚrepr)
ÚinputÚ	outputDirÚ	extensionÚ	overWriteÚsuffixÚdirNameÚfileNameÚextÚoutputÚns
             úf/var/www/finuniver-perm.ru/html/portfolio/venv/lib/python3.11/site-packages/fontTools/misc/cliTools.pyÚmakeOutputFileNamer   
   s  € õ8 œŸš eÑ,Ô,Ñ€GˆXÝ”G×$Ò$ XÑ.Ô.�M€HˆcØð ØˆÝ×"Ò" 8Ñ,Ô,¨QÔ/€HØÐÝ”G×$Ò$ UÑ+Ô+¨AÔ.ˆ	ÝŒW�\Š\˜' 8¨fÑ#4°yÑ#@ÑAÔA€FØ	€AØð ÝŒg�nŠn˜VÑ$Ô$ð 	Ý”W—\’\Ø˜ FÑ*¨SÑ0µ4¸±7´7Ñ:¸YÑFñô ˆFð �‰FˆAõ	 Œg�nŠn˜VÑ$Ô$ð 	ð
 €Mó    )NNFr   )Ú__doc__r   ÚreÚcompiler   r   © r   r   ú<module>r       sU   ðØ NÐ Nà 	€	€	€	Ø 	€	€	€	ð �”
˜8Ñ$Ô$€ð DFð+ð +ð +ð +ð +ð +r   