
    ZocX                         d Z ddlZddlZddlZddlZddlZej                  ej                  ej                  fdZ	e
dk(  r ej                   e	              yy)a1  :mod:`pysassc` --- SassC compliant command line interface
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This provides SassC_ compliant CLI executable named :program:`pysassc`:

.. sourcecode:: console

   $ pysassc
   Usage: pysassc [options] SCSS_FILE [CSS_FILE]

There are options as well:

.. option:: -t <style>, --style <style>

   Coding style of the compiled result.  The same as :func:`sass.compile()`
   function's ``output_style`` keyword argument.  Default is ``nested``.

.. option:: -s <style>, --output-style <style>

    Alias for -t / --style.

    .. deprecated:: 0.11.0

.. option:: -I <dir>, --include-path <dir>

   Optional directory path to find ``@import``\ ed (S)CSS files.
   Can be multiply used.

.. option:: -m, -g, --sourcemap

   Emit source map.  Requires the second argument (output CSS filename).
   The filename of source map will be the output CSS filename followed by
   :file:`.map`.

   .. versionadded:: 0.4.0

.. option:: -p, --precision

   Set the precision for numbers. Default is 5.

   .. versionadded:: 0.7.0

.. option:: --source-comments

   Include debug info in output.

   .. versionadded:: 0.11.0

.. option:: --sourcemap-file

   Output file for source map

   .. versionadded:: 0.17.0

.. option:: --sourcemap-contents

   Embed sourcesContent in source map.

   .. versionadded:: 0.17.0

.. option:: --sourcemap-embed

   Embed sourceMappingUrl as data URI

   .. versionadded:: 0.17.0

.. option:: --omit-sourcemap-url

   Omit source map URL comment from output

   .. versionadded:: 0.17.0

.. option:: --sourcemap-root

   Base path, will be emitted to sourceRoot in source-map as is

   .. versionadded:: 0.17.0

.. option:: -v, --version

   Prints the program version.

.. option:: -h, --help

   Prints the help message.

.. _SassC: https://github.com/sass/sassc

    Nc                 `   t        j                  ddj                  t        j                  t        j
                              }t        t        j                        }dj                  |d d       dz   |d   z   }|j                  ddd	d
ddt        t        j                        dd|z   dz   	       |j                  ddddddd       |j                  ddddd       |j                  dd ddd!       |j                  d"d#ddd$       |j                  d%d&ddd'       |j                  d(d)d*dd+,       |j                  d-d.d)d/d0d1,       |j                  d2d3dd4d5d67       |j                  d8ddd9:       |j                  d;t         j                  <       |j                  | d=d        \  }}t        j                  t        |j                         d>z   |?      }|s|j!                  |        |d@       yAt#        |      dAkD  r|j!                  |        |dB       yA|dC   }|j$                  r(t#        |      dAk  r|j!                  |        |dD       yA|j&                  rt)        j*                  dEt,               	 |j$                  r|j.                  xs |d=   dFz   }	t        j0                  ||j2                  |j4                  |	|j6                  |j8                  |j:                  |j<                  |d=   |j>                  |j@                  G      \  }
}nFd }	d }t        j0                  ||j2                  |j4                  |j>                  |j@                  H      }
t#        |      dAk  rt        |
|?       n,tC        |d=   dIdJdKL      5 }|jE                  |
       d d d        |	r*tC        |	dIdJdKL      5 }|jE                  |       d d d        yCyC# 1 sw Y   6xY w# 1 sw Y   yCxY w# tF        $ r} ||       Y d }~yMd }~wt        jH                  $ r} ||       Y d }~y=d }~ww xY w)NNz(%prog [options] SCSS_FILE [OUT_CSS_FILE]z%prog {} (sass/libsass {}))usageversionz, z, or z-tz--stylez-sz--output-styleSTYLEchoicenestedz4Coding style of the compiled result.  Choose one of z. [default: %default])metavartypechoicesdefaulthelpz-mz-gz--sourcemap
source_map
store_trueFzEEmit source map.  Requires the second argument (output css filename).)destactionr   r   z--sourcemap-filesource_map_fileFILEstorezVOutput file for source map. If omitted, source map is based on the output css filename)r   r
   r   r   z--sourcemap-contentssource_map_contentsz"Embed sourcesContent in source mapz--sourcemap-embedsource_map_embedz"Embed sourceMappingUrl as data URIz--omit-sourcemap-urlomit_source_map_urlz'Omit source map URL comment from outputz--sourcemap-rootDIRsource_map_rootz<Base path, will be emitted to sourceRoot in source-map as is)r
   r   r   r   z-Iz--include-pathinclude_pathsappendzCPath to find "@import"ed (S)CSS source files. Can be multiply used.z-pz--precisionint   z2Set the precision for numbers. [default: %default])r   r   r   r   z--source-commentszInclude debug info in output)r   r   r   z--import-extensions)r      z: error:)fileztoo few arguments   ztoo many argumentsr   zH-m/-g/--sourcemap requires the second argument, the output css filename.zL`--import-extensions` has no effect and will be removed in a future version.z.map)filenameoutput_stylesource_commentssource_map_filenamer   r   r   r   output_filename_hintr   	precision)r"   r#   r$   r   r'   wzutf-8 )encodingnewline   )%optparseOptionParserformatsass__version__libsass_versionlistOUTPUT_STYLESjoin
add_optionSUPPRESS_HELP
parse_args	functoolspartialprintget_prog_nameprint_usagelenr   import_extensionswarningswarnFutureWarningr   compilestyler$   r   r   r   r   r   r'   openwriteOSErrorCompileError)argvstdoutstderrparseroutput_stylesoptionsargserrorr"   r%   cssr   fes                 )/usr/lib/python3/dist-packages/pysassc.pymainrU   c   sr   ""8,33d22
F ++,MIImCR01G;mB>OOM
i/tD$6$67B34	   dMU&   !2F'   %:U1  
 "4U1  
 %:U6  
 EwK  
 X%   mG%A   L%+   +(2H2HI%%d12h/MGT+E
 6"!"	TQ6""#AwHc$i!m6"	
    	
*$")"9"9"MT!Wv=M"ll!$]] ' 7 7$7$+$?$?!(!9!9$+$?$? ' 7 7%)!W%33!++OC #'J,,!$]] ' 7 7%33!++C t9q=#F#d1gsWbA Q#S7B $
#$  $ #  a as=   CO/ O;O#O #O,/	P-8PP-P((P-__main__)__doc__r9   r-   sysr@   r0   rI   rJ   rK   rU   __name__exit     rT   <module>r]      sX   Xr   
   hhszz#** IX zCHHTV r\   