
    -PhX                         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	                       dS dS )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                    t          j        t          j                            }t          t          j                  }d                    |d d                   dz   |d         z   }|	                    ddd	d
ddt          t          j                  dd|z   dz   	  	         |	                    ddddddd           |	                    ddddd           |	                    dd ddd!           |	                    d"d#ddd$           |	                    d%d&ddd'           |	                    d(d)d*dd+,           |	                    d-d.d)d/d0d1,           |	                    d2d3dd4d5d67           |	                    d8ddd9:           |	                    d;t           j
        <           |                    | d=d                    \  }}t          j        t          |                                d>z   |?          }|s"|                    |            |d@           dAS t#          |          dAk    r"|                    |            |dB           dAS |dC         }|j        r5t#          |          dAk     r"|                    |            |dD           dAS |j        rt)          j        dEt,                     	 |j        rc|j        p
|d=         dFz   }	t          j        ||j        |j        |	|j        |j        |j        |j        |d=         |j        |j         G          \  }
}n1d }	d }t          j        ||j        |j        |j        |j         H          }
t#          |          dAk     rt          |
|?           nFtC          |d=         dIdJdKL          5 }|"                    |
           d d d            n# 1 swxY w Y   |	r@tC          |	dIdJdKL          5 }|"                    |           d d d            n# 1 swxY w Y   nF# tF          $ r} ||           Y d }~dMS d }~wt          j$        $ r} ||           Y d }~d=S d }~ww xY wdCS )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                 G/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/pysassc.pymainrU   c   s   "8,33d2
 
  F +,,MIImCRC011G;mB>OOM
i/tD$677B34	     dMU&     !2F'     %:U1    
 "4U1    
 %:U6    
 EwK    
 X%     mG%A     L%+     +(2HIII%%d122h//MGT+  E
  6"""!"""q	TQ6""""###qAwH c$ii!mm6"""	
 	
 	
 q  
 	
 	
 	
*$ 	")"9"MT!Wv=M"l!$] ' 7$7$+$?!(!9$+$? ' 7%)!W%3!+  OC #'J,!$] ' 7%3!+  C t99q==#F#####d1gsWbAAA Q               	$#S7B   $
###$ $ $ $ $ $ $ $ $ $ $ $ $ $ $    aqqqqq   aqqqqq 1sI   BP# 3OOO5PPP#
Q&-P>>Q&Q!!Q&__main__)__doc__r9   r-   sysr@   r0   rI   rJ   rK   rU   __name__exit     rT   <module>r]      s   X Xr      



   hsz#* I I I IX zCHTTVV r\   