+
    Brhlg                         R t  ^ RIHt  ^ RIt. ROt. ROtRsRs	 ! R R4      t
RR ltRR/R	 ltRR
 ltRR ltRR ltRR ltR tR t]! 4        R tRR lt]R8X  d   ]! ]! 4       4       R# R#   ] d    Rt Lsi ; i  ] d    Rt L}i ; i)a  Guess the MIME type of a file.

This module defines two useful functions:

guess_type(url, strict=True) -- guess the MIME type and encoding of a URL.

guess_extension(type, strict=True) -- guess the extension for a given MIME type.

It also contains the following, for tuning the behavior:

Data:

knownfiles -- list of files to parse
inited -- flag set when init() has been called
suffix_map -- dictionary mapping suffixes to suffixes
encodings_map -- dictionary mapping suffixes to encodings
types_map -- dictionary mapping suffixes to types

Functions:

init([files]) -- parse a list of files, default knownfiles (on Windows, the
  default values are taken from the registry)
read_mime_types(file) -- parse one file, return a dictionary or None
) _mimetypes_read_windows_registryN	MimeTypesFc                      a  ] tR t^;t o RtRR ltRR ltRR ltRR/R ltR t	RR	 lt
RR
 ltRR ltRR ltRR lt]R 4       tRtV tR# )r   zMIME-types datastore.

This datastore can handle information from mime.types-style files
and supports basic determination of MIME type from a filename or
URL, and can guess a reasonable extension given a MIME type.
Tc                   \         '       g   \        4        \        P                  4       V n        \
        P                  4       V n        / / 3V n        / / 3V n        \        P                  4        F  w  r4V P                  WCR 4       K  	  \        P                  4        F  w  r4V P                  WCR4       K  	  V F  pV P                  WR4       K  	  R# )TFN)initedinit_encodings_map_defaultcopyencodings_map_suffix_map_default
suffix_map	types_maptypes_map_inv_types_map_defaultitemsadd_type_common_types_defaultread)self	filenamesstrictexttypenames   &&&   &/usr/local/lib/python3.14/mimetypes.py__init__MimeTypes.__init__C   s    vF388:-224b "X-335KSMM$T* 60668KSMM$U+ 9DIId#     c                   V'       d)   VP                  R4      '       g   ^ RIHp V! RRRR7       V'       g   R# WP                  V,          V&   V P                  V,          P                  V. 4      pW%9  d   VP                  V4       R# R# )az  Add a mapping between a type and an extension.

When the extension is already known, the new
type will replace the old one. When the type
is already known the extension will be added
to the list of known extensions.

If strict is true, information will be added to
list of standard types, else to the list of non-standard
types.

Valid extensions are empty or start with a '.'.
.)_deprecatedzUndotted extensionszVUsing undotted extensions is deprecated and will raise a ValueError in Python {remove})removeN)      )
startswithwarningsr    r   r   
setdefaultappend)r   r   r   r   r    extss   &&&&  r   r   MimeTypes.add_typeQ   sw     s~~c**,%=	 &*vs#!!&)44T2>?KK r   c                   ^ RI p^ RIpVP                  V4      pVP                  P	                  V4      pVP
                  '       d4   \        VP
                  4      ^8  d   VP
                  pVP                  pMV P                  WR7      # VR8X  dT   VP                  R4      pV^ 8  d   R	# VP                  R^ V4      pV^ 8  d   VRV p	MVRV p	RV	9   g   RV	9  d   Rp	V	R3# ^ RI
p
V P                  WV
P                  4      # )
a  Guess the type of a file which is either a URL or a path-like object.

Return value is a tuple (type, encoding) where type is None if
the type can't be guessed (no or unknown suffix) or a string
of the form type/subtype, usable for a MIME Content-type
header; and encoding is None for no encoding or the name of
the program used to encode (e.g. compress or gzip).  The
mappings are table driven.  Encoding suffixes are case
sensitive; type suffixes are first tried case sensitive, then
case insensitive.

The suffixes .tgz, .taz and .tz (case sensitive!) are all
mapped to '.tar.gz'.  (This is table-driven too, using the
dictionary suffix_map.)

Optional 'strict' argument when False adds a bunch of commonly found,
but non-standard types.
Nr   data,;=/
text/plain)NN)osurllib.parsefspathparseurlparseschemelenpathguess_file_typefind	posixpath_guess_file_typesplitext)r   urlr   r2   urllibpr7   commasemir   r<   s   &&&        r   
guess_typeMimeTypes.guess_typep   s    ( 	 iinLL!!#&888AHH)XXF&&C''';;V HHSMEqy!!88CE*Dqy5Dz6E{d{co#: 	$$S)2D2DEEr   r   c                   ^ RI pVP                  V4      pVP                  P                  V4      ^,          pV P	                  WVP                  P
                  4      # )jGuess the type of a file based on its path.

Similar to guess_type(), but takes file path instead of URL.
N)r2   fsdecoder9   
splitdriver=   r>   )r   r9   r   r2   s   &&$ r   r:   MimeTypes.guess_file_type   sK     	{{4 ww!!$'*$$T2773C3CDDr   c                   V! V4      w  rEVP                  4       ;q`P                  9   d$   V! W@P                  V,          ,           4      w  rEKC  WPP                  9   d   V P                  V,          pV! V4      w  rEMR pVP                  4       pV P                  R,          pWX9   d   W,          V3# V'       d   R V3# V P                  R,          pWX9   d   W,          V3# R V3# )NTF)lowerr   r
   r   )	r   r9   r   r>   baser   	ext_lowerencodingr   s	   &&&&     r   r=   MimeTypes._guess_file_type   s    TN	IIK'yOO; 	(B!BCID#$$$))#.H ID#HiikNN4(	>8++>!NN5)	>8++>!r   c                   VP                  4       p\        V P                  R,          P                  V. 4      4      pV'       gD   V P                  R,          P                  V. 4       F  pWC9  g   K  VP	                  V4       K  	  V# )a  Guess the extensions for a file based on its MIME type.

Return value is a list of strings giving the possible filename
extensions, including the leading dot ('.').  The extension is not
guaranteed to have been associated with any particular data stream,
but would be mapped to the MIME type 'type' by guess_type().

Optional 'strict' argument when false adds a bunch of commonly found,
but non-standard types.
TF)rL   listr   getr'   )r   r   r   
extensionsr   s   &&&  r   guess_all_extensionsMimeTypes.guess_all_extensions   sr     zz|$,,T266tR@A
))%044T2>(%%c* ? r   c                J    V P                  W4      pV'       g   R# V^ ,          # )a  Guess the extension for a file based on its MIME type.

Return value is a string giving a filename extension,
including the leading dot ('.').  The extension is not
guaranteed to have been associated with any particular data
stream, but would be mapped to the MIME type 'type' by
guess_type().  If no extension can be guessed for 'type', None
is returned.

Optional 'strict' argument when false adds a bunch of commonly found,
but non-standard types.
N)rU   )r   r   r   rT   s   &&& r   guess_extensionMimeTypes.guess_extension   s$     ..t<
!}r   c                    \        VRR7      ;_uu_ 4       pV P                  W24       RRR4       R#   + '       g   i     R# ; i)z
Read a single mime.types-format file, specified by pathname.

If strict is true, information will be added to
list of standard types, else to the list of non-standard
types.
utf-8rO   N)openreadfp)r   filenamer   fps   &&& r   r   MimeTypes.read   s.     (W--KK# .---s	   2A	c                @   VP                  4       ;p'       d   VP                  4       p\        \        V4      4       F  pWE,          ^ ,          R8X  g   K  WER1  M	  V'       g   Kg  V^ ,          VR,          rvV F  pV P	                  VRV,           V4       K  	  K  R# )z
Read a single mime.types-format file.

If strict is true, information will be added to
list of standard types, else to the list of non-standard
types.
#N:   NNr   )readlinesplitranger8   r   )	r   r`   r   linewordsir   suffixessuffs	   &&&      r   r^   MimeTypes.readfp   s     kkm#d#JJLE3u:&8A;#%b	 ' "1XuRy( dC$J7 ! $r   c                   a  \         '       g   \        '       g   R# S P                  pV'       d   V 3R lp\         '       d   \        V4       R# \        '       d   S P                  V4       R# R# )z
Load the MIME types database from Windows registry.

If strict is true, information will be added to
list of standard types, else to the list of non-standard
types.
Nc                 (   < SP                  WR 4      # T)r   )r   r   r   s   &&r   <lambda>1MimeTypes.read_windows_registry.<locals>.<lambda>  s    t$)Gr   )r   _winregr   _read_windows_registry)r   r   r   s   f& r   read_windows_registryMimeTypes.read_windows_registry  sK     0/==GH ,+,X6W''1 r   c           
         R  p\         P                  ! \         P                  R4      ;_uu_ 4       pV! V4       F  p \         P                  ! W44      ;_uu_ 4       pVP                  R4      '       g    RRR4       KE  \         P                  ! VR4      w  rgV\         P
                  8w  d    RRR4       K~  V! Wd4       RRR4       K  	  RRR4       R#   + '       g   i     K  ; i  \         d     K  i ; i  + '       g   i     R# ; i)c              3      "   ^ p  \         P                  ! W4      pRV9  d   Vx  T^,          pK.    \         d     R# i ; i5i)     N)rs   EnumKeyOSError)mimedbrj   ctypes   &  r   
enum_types4MimeTypes._read_windows_registry.<locals>.enum_types&  sK     A$#OOF6E 5(#Q  s$   A3 AAAAA r   NzContent Type)rs   OpenKeyHKEY_CLASSES_ROOTr$   QueryValueExREG_SZr|   )clsr   r   hkcr
subkeynamesubkeymimetypedatatypes   &&      r   rt    MimeTypes._read_windows_registry$  s    
	 __W66;;t(.
 ::f)44S99$ ;:
 .5-A-A"N.4*#w~~5$ ;: !6 ;: / <; ;::   <;;sv   C<C*C5C*=C<?/C.C*6C<8C C*C<C'!C*%C<'C**C9	5C<8C9	9C<<D	)r
   r   r   r   N) Trp   )__name__
__module____qualname____firstlineno____doc__r   r   rD   r:   r=   rU   rX   r   r^   ru   classmethodrt   __static_attributes____classdictcell__)__classdict__s   @r   r   r   ;   s[     $>6Fp
Ed 
E",&$	$8(2,  r   Tc                P    \         f   \        4        \         P                  W4      # )a  Guess the type of a file based on its URL.

Return value is a tuple (type, encoding) where type is None if the
type can't be guessed (no or unknown suffix) or a string of the
form type/subtype, usable for a MIME Content-type header; and
encoding is None for no encoding or the name of the program used
to encode (e.g. compress or gzip).  The mappings are table
driven.  Encoding suffixes are case sensitive; type suffixes are
first tried case sensitive, then case insensitive.

The suffixes .tgz, .taz and .tz (case sensitive!) are all mapped
to ".tar.gz".  (This is table-driven too, using the dictionary
suffix_map).

Optional 'strict' argument when false adds a bunch of commonly found, but
non-standard types.
)_dbr   rD   )r?   r   s   &&r   rD   rD   B  s    $ {>>#&&r   r   c               R    \         f   \        4        \         P                  WR7      # )rG   r+   )r   r   r:   )r9   r   s   &$r   r:   r:   Y  s"    
 {t33r   c                P    \         f   \        4        \         P                  W4      # )a  Guess the extensions for a file based on its MIME type.

Return value is a list of strings giving the possible filename
extensions, including the leading dot ('.').  The extension is not
guaranteed to have been associated with any particular data
stream, but would be mapped to the MIME type 'type' by
guess_type().  If no extension can be guessed for 'type', None
is returned.

Optional 'strict' argument when false adds a bunch of commonly found,
but non-standard types.
)r   r   rU   r   r   s   &&r   rU   rU   c  s     {##D11r   c                P    \         f   \        4        \         P                  W4      # )a  Guess the extension for a file based on its MIME type.

Return value is a string giving a filename extension, including the
leading dot ('.').  The extension is not guaranteed to have been
associated with any particular data stream, but would be mapped to the
MIME type 'type' by guess_type().  If no extension can be guessed for
'type', None is returned.

Optional 'strict' argument when false adds a bunch of commonly found,
but non-standard types.
)r   r   rX   r   s   &&r   rX   rX   t  s     {t,,r   c                R    \         f   \        4        \         P                  WV4      # )aI  Add a mapping between a type and an extension.

When the extension is already known, the new
type will replace the old one. When the type
is already known the extension will be added
to the list of known extensions.

If strict is true, information will be added to
list of standard types, else to the list of non-standard
types.
)r   r   r   )r   r   r   s   &&&r   r   r     s     {<<6**r   c                    R s V e	   \        f=   \        4       pVP                  4        V f   \        p M\        \        V 4      ,           p M\        p^ RIpV  F7  pVP                  P                  V4      '       g   K&  VP                  V4       K9  	  VP                  s
VP                  sVP                  R ,          sVP                  R,          sVsR# )TNF)r   r   r   ru   
knownfilesrR   r2   r9   isfiler   r
   r   r   common_types)filesdbr2   files   &   r   r   r     s     F}[
  "=Ee,E 77>>$GGDM  $$MJT"I<<&L
Cr   c                      \        V R R7      pT;_uu_ 4        \        4       pTP                  TR4       TP                  R,          uuRRR4       #   \         d     R# i ; i  + '       g   i     R# ; i)r[   r\   NT)r]   r|   r   r^   r   )r   fr   s   &  r   read_mime_typesr     s^    ( 
[
		!T||D! 
  	
s   A /A%A"!A"%A6	c                  D   R RRRRRRRRRRR	/;s sR
RRRRRRRRR/;ss/ RRbRRbRRbR
RbRRbRRbRRbR RbR!RbR"R#bR$R%bR&R'bR(R'bR)R'bR*R'bR+R'bR,R'b/ R-R'bR.R/bR0R1bR2R3bR4R5bR6R7bR8R7bR9R7bR:R;bR<R=bR>R=bR?R@bRAR@bRBRCbRDREbRFREbRGREbC/ RHREbRIREbRJRKbRLRMbRNRObRPRQbRRRSbRTRUbRVRWbRXRYbRZR[bR\R]bR^R_bR`RabRbRcbRdRebRfRgbC/ RhRibRjRkbRlRmbRnRobRpRqbRrRsbRtRsbRuRvbRwRxbRyRvbRzR{bR|R}bR~R}bRRbRRbRRbRRbC/ RRbRRbRRbRRbRRbRRbRRbRRbRRbRRbRRbRRbRRbRRbRRbRRbRRbC/ RRbRRbRRbRRbRRbRRbRRbRRbRRbRRbRRbRRbRRbRRbRRbRRbRRbC/ RRbRRbRRbRRbRRbRRbRRbRRbRRbRRbRRbRRbRRbRRbRRbRRbRRbC/ RRbRRbRRbRRbRRbRRbRRbRRbRRbRRbRRbRRbRRbRRbRRbRRbRRbC/ RRbRRbER ERbERERbERERbERERbERER	bER
ERbERERbERERbERERbERERbERERbERERbERERbERERbERERbC/ ERERbERERbERER bER!ER"bER#ER$bER%ER&bER'ER(bER)ER(bER*ER+bER,ER+bER-ER.bER/ER0bER1ER0bER2ER0bER3ER0bER4ER0bER5ER0bC/ ER6ER0bER7ER8bER9ER:bER;ER<bER=ER>bER?ER@bERAERBbERCERDbEREERFbERGERFbERHERIbERJERKbERLERMbERNERObERPERQbERRERSbERTERSbCERUERSERVERSERWERSERXERYERZER[ER\ER[ER]ER^ER_ER`ERaERbERcERdEReERf/C;ssER9ERgERhERiERjERkERlERkRERmERnERoERpERoERqERoERrERs/	;ssERt# (u  z.svgzz.svg.gzz.tgzz.tar.gzz.tazz.tzz.tbz2z.tar.bz2z.txzz.tar.xzz.gzgzipz.Zcompressz.bz2bzip2z.xzxzz.brbrz.jsztext/javascriptz.mjsz.epubzapplication/epub+zipzapplication/gzipz.jsonzapplication/jsonz.webmanifestzapplication/manifest+jsonz.doczapplication/mswordz.dotz.wizz.nqzapplication/n-quadsz.ntzapplication/n-triplesz.binzapplication/octet-streamz.az.dllz.exez.oz.objz.soz.odazapplication/odaz.ogxzapplication/oggz.pdfzapplication/pdfz.p7czapplication/pkcs7-mimez.pszapplication/postscriptz.aiz.epsz.trigzapplication/trigz.m3uzapplication/vnd.apple.mpegurlz.m3u8z.xlszapplication/vnd.ms-excelz.xlbz.eotzapplication/vnd.ms-fontobjectz.pptzapplication/vnd.ms-powerpointz.potz.ppaz.ppsz.pwzz.odgz+application/vnd.oasis.opendocument.graphicsz.odpz/application/vnd.oasis.opendocument.presentationz.odsz.application/vnd.oasis.opendocument.spreadsheetz.odtz'application/vnd.oasis.opendocument.textz.pptxzIapplication/vnd.openxmlformats-officedocument.presentationml.presentationz.xlsxzAapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheetz.docxzGapplication/vnd.openxmlformats-officedocument.wordprocessingml.documentz.rarzapplication/vnd.rarz.wasmzapplication/wasmz.7zzapplication/x-7z-compressedz.bcpiozapplication/x-bcpioz.cpiozapplication/x-cpioz.cshzapplication/x-cshz.debzapplication/x-debian-packagez.dvizapplication/x-dviz.gtarzapplication/x-gtarz.hdfzapplication/x-hdfz.h5zapplication/x-hdf5z.latexzapplication/x-latexz.mifzapplication/x-mifz.cdfzapplication/x-netcdfz.ncz.p12zapplication/x-pkcs12z.phpzapplication/x-httpd-phpz.pfxz.ramzapplication/x-pn-realaudioz.pyczapplication/x-python-codez.pyoz.rpmzapplication/x-rpmz.shzapplication/x-shz.sharzapplication/x-sharz.swfzapplication/x-shockwave-flashz.sv4cpiozapplication/x-sv4cpioz.sv4crczapplication/x-sv4crcz.tarzapplication/x-tarz.tclzapplication/x-tclz.texzapplication/x-texz.texizapplication/x-texinfoz.texinfoz.roffzapplication/x-troffz.tz.trz.manzapplication/x-troff-manz.mezapplication/x-troff-mez.mszapplication/x-troff-msz.ustarzapplication/x-ustarz.srczapplication/x-wais-sourcez.xslzapplication/xmlz.rdfz.wsdlz.xpdlz.yamlzapplication/yamlz.ymlz.zipzapplication/zipz.3gpz
audio/3gppz.3gppz.3g2zaudio/3gpp2z.3gpp2z.aacz	audio/aacz.adtsz.loasz.assz.auzaudio/basicz.sndz.flacz
audio/flacz.mkazaudio/matroskaz.m4az	audio/mp4z.mp3z
audio/mpegz.mp2z.oggz	audio/oggz.opusz
audio/opusz.aifzaudio/x-aiffz.aifcz.aiffz.razaudio/x-pn-realaudioz.wavzaudio/vnd.wavez.otfzfont/otfz.ttfzfont/ttfz.webaz
audio/webmz.woffz	font/woffz.woff2z
font/woff2z.avifz
image/avifz.bmpz	image/bmpz.emfz	image/emfz.fitsz
image/fitsz.g3zimage/g3faxz.gifz	image/gifz.iefz	image/iefz.jp2z	image/jp2z.jpgz
image/jpegz.jpez.jpegz.jpmz	image/jpmz.jpxz	image/jpxz.heicz
image/heicz.heifz
image/heifz.pngz	image/pngz.svgzimage/svg+xmlz.t38z	image/t38z.tiffz
image/tiffz.tifz.tfxzimage/tiff-fxz.icozimage/vnd.microsoft.iconz.webpz
image/webpz.wmfz	image/wmfz.raszimage/x-cmu-rasterz.pnmzimage/x-portable-anymapz.pbmzimage/x-portable-bitmapz.pgmzimage/x-portable-graymapz.ppmzimage/x-portable-pixmapz.rgbzimage/x-rgbz.xbmzimage/x-xbitmapz.xpmzimage/x-xpixmapz.xwdzimage/x-xwindowdumpz.emlzmessage/rfc822z.mhtz.mhtmlz.nwsz.gltfzmodel/gltf+jsonz.glbzmodel/gltf-binaryz.stlz	model/stlz.cssztext/cssz.csvztext/csvz.htmlz	text/htmlz.htmz.mdztext/markdownz	.markdownz.n3ztext/n3z.txtr1   z.batz.cz.hz.kshz.plz.srtz.rtxztext/richtextz.rtfztext/rtfz.tsvztext/tab-separated-valuesz.vttztext/vttz.pyztext/x-pythonz.rstz
text/x-rstz.etxztext/x-setextz.sgmztext/x-sgmlz.sgmlz.vcfztext/x-vcardz.xmlztext/xmlz.mkvzvideo/matroskaz.mk3dzvideo/matroska-3dz.mp4z	video/mp4z.mpegz
video/mpegz.m1vz.mpaz.mpez.mpgz.ogvz	video/oggz.movzvideo/quicktimez.qtz.webmz
video/webmz.avizvideo/vnd.aviz.m4vzvideo/x-m4vz.wmvzvideo/x-ms-wmvz.moviezvideo/x-sgi-moviezapplication/rtfz.apkz'application/vnd.android.package-archivez.midiz
audio/midiz.midz	image/jpgz.pictz
image/pictz.pctz.picz.xulztext/xulN)r   r   r
   r   r   r   r   r   r   r   r   _default_mime_typesr     s    			y	(
 
J$ 	vjtt.
 
M*G&
%G&
%G&
 	*G&
 	&	G&

 	&G&
 	3G&
 	(G&
 	(G&
 	(G&
 	)G&
 	+G&
 	.G&
 	.G&
 	.G&
 	.G&
  	.!G&
" 	.#G&
$ 	.%G&
& 	%'G&
( 	%)G&
* 	%+G&
, 	,-G&
. 	,/G&
0 	,1G&
2 	,3G&
4 	&5G&
6 	37G&
8 	39G&
: 	.;G&
< 	.=G&
> 	3?G&
@ 	3AG&
B 	3CG&
D 	3EG&
F 	3GG&
H 	3IG&
J 	AKG&
L 	EMG&
N 	DOG&
P 	=QG&
R 	_SG&
T 	WUG&
V 	]WG&
X 	)YG&
Z 	&[G&
\ 	1]G&
^ 	)_G&
` 	(aG&
b 	'cG&
d 	2eG&
f 	'gG&
h 	(iG&
j 	'kG&
l 	(mG&
n 	)oG&
p 	'qG&
r 	*sG&
t 	*uG&
v 	*wG&
x 	-yG&
z 	*{G&
| 	0}G&
~ 	/G&
@ 	/AG&
B 	'CG&
D 	&EG&
F 	(GG&
H 	3IG&
J 	+KG&
L 	*MG&
N 	'OG&
P 	'QG&
R 	'SG&
T 	+UG&
V 	+WG&
X 	)YG&
Z 	)[G&
\ 	)]G&
^ 	-_G&
` 	,aG&
b 	,cG&
d 	)eG&
f 	/gG&
h 	%iG&
j 	%kG&
l 	%mG&
n 	%oG&
p 	&qG&
r 	&sG&
t 	%uG&
v 	LwG&
x 	LyG&
z 	M{G&
| 	M}G&
~ 	KG&
@ 	KAG&
B 	KCG&
D 	KEG&
F 	MGG&
H 	MIG&
J 	LKG&
L 	$MG&
N 	KOG&
P 	LQG&
R 	LSG&
T 	KUG&
V 	LWG&
X 	NYG&
Z 	N[G&
\ 	N]G&
^ 	*_G&
` 	$aG&
b 	JcG&
d 	JeG&
f 	LgG&
h 	KiG&
j 	LkG&
l 	LmG&
n 	KoG&
p 	KqG&
r 	LsG&
t 	MuG&
v 	KwG&
x 	KyG&
z 	K{G&
| 	L}G&
~ 	LG&
@ 	LAG&
B 	KCG&
D 	KEG&
F 	LGG&
H 	LIG&
J 	KKG&
L 	OMG&
N 	KOG&
P 	LQG&
R 	LSG&
T 	OUG&
V 	.WG&
X 	LYG&
Z 	K[G&
\ 	(]G&
^ 	-_G&
` 	-aG&
b 	.cG&
d 	-eG&
f 	MgG&
h 	%iG&
j 	%kG&
l 	)mG&
n 	$oG&
p 	$qG&
r 	$sG&
t 	$uG&
v 	%wG&
x 	'yG&
z 	K{G&
| 	J}G&
~ 	JG&
@ 	KAG&
B 	KCG&
D 	OEG&
F 	_GG&
H 	IIG&
J 	LKG&
L 	LMG&
N 	LOG&
P 	LQG&
R 	LSG&
T 	LUG&
V 	LWG&
X 	OYG&
Z 	J[G&
\ 	/]G&
^ 	J_G&
` 	OaG&
b 	LcG&
d 	OeG&
f 	MgG&
h 	MiG&
j 	NkG&
l 	JmG&
n 	$oG&
p 	'qG&
r 	KsG&
t 	LuG&
v 	LwG&
x 	LLLK%%LOM$'MG&
 G
I"\ 	":
,
 

L(r   c                     ^ RI Hp V! RRR7      pVP                  RRRRR	7       VP                  R
RRRR	7       VP                  RRRR7       VP                  V 4      p WP	                  4       3# )ry   )ArgumentParserz%map filename extensions to MIME typesT)descriptioncolorz-ez--extension
store_truezguess extension instead of type)actionhelpz-lz	--lenientz5additionally search for common but non-standard typesr   +za type to search)nargsr   )argparser   add_argument
parse_argsformat_help)argsr   parsers   &  r   _parse_argsr     s    ';4F m.  
 kD  
 c0BCT"D##%%%r   c                   ^ RI p\        V 4      w  rV P                  '       dY   V P                   FF  p\	        W0P
                  '       * 4      pV'       d   \        V4      u # VP                  RV 24       KH  	  V# V P                   FE  p\        W0P
                  '       * 4      w  rEV'       d   RV RV 2u # VP                  RV 24       KG  	  V# )zDRun the mimetypes command-line interface and return a text to print.Nzerror: unknown type ztype: z encoding: zerror: media type unknown for )	sysr   	extensionr   rX   lenientstrexitrD   )r   r   	help_textgtypeguessrO   s   &     r   _mainr     s    !$'OD~~~YYE#E||+;<E5z!HH+E734	   YYE(LL0@AOEwk(<<HH5eW=>	 
 r   __main__)r   r   r   rD   r:   rU   rX   r   r   r   r   r
   r   r   )	z/etc/mime.typesz/etc/httpd/mime.typesz/etc/httpd/conf/mime.typesz/etc/apache/mime.typesz/etc/apache2/mime.types$/usr/local/etc/httpd/conf/mime.typesz"/usr/local/lib/netscape/mime.typesr   z/usr/local/etc/mime.typesrp   )N)r   _winapir   ImportErrorwinregrs   __all__r   r   r   r   rD   r:   rU   rX   r   r   r   r   r   r   r   printr   r   r   <module>r      s   2,8

 

E EN'.4D 42"- +">"u
p  &** z	%'N Q  ,'+$,
  Gs"   A2 B 2	A>=A>	BB