00000047
 L    import re


SPLIT_RE = re.compile(r'[\.\[\]]+')


class JsonSchemaException(ValueError):
    """
    Base exception of ``fastjsonschema`` library.
    """


class JsonSchemaValueException(JsonSchemaException):
    """
    Exception raised by validation function. Available properties:

     * ``message`` containing human-readable information what is wrong (e.g. ``data.property[index] must be smaller than or equal to 42``),
     * invalid ``value`` (e.g. ``60``),
     * ``name`` of a path in the data structure (e.g. ``data.property[index]``),
     * ``path`` as an array in the data structure (e.g. ``['data', 'property', 'index']``),
     * the whole ``definition`` which the ``value`` has to fulfil (e.g. ``{'type': 'number', 'maximum': 42}``),
     * ``rule`` which the ``value`` is breaking (e.g. ``maximum``)
     * and ``rule_definition`` (e.g. ``42``).

    .. versionchanged:: 2.14.0
        Added all extra properties.
    """

    def __init__(self, message, value=None, name=None, definition=None, rule=None):
        super().__init__(message)
        self.message = message
        self.value = value
        self.name = name
        self.definition = definition
        self.rule = rule

    @property
    def path(self):
        return [item for item in SPLIT_RE.split(self.name) if item != '']

    @property
    def rule_definition(self):
        if not self.rule or not self.definition:
            return None
        return self.definition.get(self.rule)


class JsonSchemaDefinitionException(JsonSchemaException):
    """
    Exception raised by generator of validation function.
    """
  /   ˆ{‹„„-i[D<†ªoZƒ›Ù«Ä533_‘I|¥‰ÓMdœv ©ƒ†ü+=ÄÃ     ‹      Õ•]oÓ0†ï÷+Œ/¸kOÒnEtŽÑh*QÑµUW„B“;�µ$Ž§¡üzœ&¥eZaHLŒ+Ÿ¿çã9IlòÂŸ�VŸcônu=E‹o§“Â€�ý€¿ò›�ó®ãŒgáØ˜|PUU·êw•^Ãj	±I“s(Œ–¡érÃ1=#µ�ž!ÆíŠˆ‘&t’qñ©�*M!¹°qÛ¸ØÈPµmD
©H•Þ¶‹Û¿€Lqá@˜—ˆ¤N+¦Åmíƒ¢šM[Úš$P|[·â>eY›}‡Ç‚]õÚÔ”˜mX"×™‡�Ê1%2]£B‡ª¬€ aÙ]w-#ŒXb<üy2š±:0qM	C±‘‡ßŒ¼ÙåÜó1�±T`k®­æ
Ó)+J—‘ü¤ø¦ßÈo§ú�ÆE¨en¤ÊR°ˆÇ¨¡JŠœYÖKëcU#á¿›Æâj9ž­üÉ²	¯SºûK/Ó…µ3ƒ|©Eh¬¼%lÊ½Ì‚"¿Ü?¢¶-×±Á¡zPùÐ‘J¸ÐÇØ§€÷ˆ˜î­ãNïµÖszƒŽëvÜ×È}5t=-7BïZë¹0”Ù]¦ªìÂ~Û¿‚¸e¥M¥U ~Ð\�Àêõ�ãÝÓXöÄ}ÿ°î!ý¯8¥ØØßÓf}z€Gž„ÐÞv�æŽü›¼¨“†       ˆÀ¿Å580¾ÄÃ D    ‹      Õ–ßoÚ0ÇßûWx~Ø�®ZÛ�©#•†FQ¦iš&dbC,;²/0ö×Ï!™ 4¦ýPyòùòµï>wNbÿE8èŒ?ïÉ»ñC�?¼íu;„Ö >¶: á8,\ÖÀ}Ÿ#f7 «Õª¾jÕµ™Ãx1¦É%X42Â:GNƒ¿ðÄ�ãn$>JLDÐU\|%zF@çh%nÝÚK	[Ø(RHEªÍº®[ 4�jêy-ÈôJÊ-]¨¢øSÍ×EpïïrûmØt¯0MàcL–,‘sÕ¦¨3ø2�k¢6ieaš0µ¨ÏåŒ–`›~îv_œ0.V>#±³6}Ói÷oí�}–
ØaÍƒÓÜÑ Ç,’Ts9“‚?–âGùíø†a©	…�ŒÌPjµ•‚CÜE�tb3æX_9‚ØìªJ	ÿU5Xô¤Ã»Ñ}vGeIx±Å6»?j†Ì…$”FDè¼Wä¥šÚìöÇ”TY9�‘„ÔÈAåo æj¡ôJíÒºJädv­"l†Ý$÷²j6šW5Ï«5›¤Ñ¸i\rDèÞÕ÷ÿ3ýµÍm&Ÿp‘°õ$µŽæ€÷d8ïê¹À9=�Ð 2NïÏëç‚`r…2¡\ŠÉBr×žÎ3ìÎEaÿ„VØgŒ&TñÇá[¬ÊqÆHæ;g°œŸ3Pù�|ï>õŸ1`nÙ|‡k3ý÷8'Þ< º“ù°¹úùPÞ;¿„xz“Ú
       	ˆÀ¿Å603¾ÄÃ [    	‹      Õ–moÚ0Çß÷Sx~±wp	}4xêH¥¡µQ¦iš¦ÊÄ†XMìÈ60úéçà”¦SÑ˜TªõÕù’îîçœ¢wñuoü}x�>�¯.Ñðë§Ë~áÀ·Ã@<Žý‹£f\0Â©µE`¹\6—‡M¥g0AjóìŒÕ"±Mf&QùŒ (å”9‹"+lÆI_2þ©)5·F0î¾[`|!nÊ±å9ä<WzU™°Õ©6þÑ¿}�îÒA•/š(¶*Ë÷•ÒE^cÑÉ:s9Ô$²)ZÐLÌd[U`‰|†ŒNºD¢¤�IFå]s&¦ÑÌvñ�~ïú§Ó�MË¯IDQªù´‹?öºƒ³ënŒÉ€æ<ú¼æÊiÎ1¹¤Æ¢\11œmßxñ�¸ß0öš˜›D‹Â
%¥àë¨‰ÊLAë±#Hu]å%ìo³A“'“1<]Æqä§„•!«{‰ˆÉ�j.-Š…æ‰uï*<Ÿë½œ˜âìÁEUñZÌR‹	Bô¬òˆ§*c\×™·Ñ>Ôëm½Ê?Êj­“F6Â6
O;Á	B{¬.ï¤ZÊ:€kˆg”Ì„ä˜x»@«…‚ ´·¸�èË+éÊÜú6Ã¤æ¼UQî„Éz¼HˆZ‡�ã{Ù}QjÉµ[Þ¾Ä�xåE¡Ý~´(ÏL6Ã7ØOÆRëÖæ)÷.2óIuj8„Íøn±s¾pg&Þ¾À+÷QˆÝÞ+É&5gÿ=µã5ª^ëeþbûj™õ;    5   ˆl–ßi~” TÂXÔ%ŒŠà¦-ÿ�þ_d+7#’Œ‘…ÉDÐ?ŸÇƒ-³ÆÅÄ 	1    #!/usr/bin/python3
__doc__ = """Query a fast-import stream displaying selected commands.

To specify standard input as the input stream, use a source name
of '-'. If the source name ends in '.gz', it is assumed to be
compressed in gzip format.

To specify a commit to display, give its mark using the
--commit-mark option. The commit will be displayed with
file-commands included but with inline blobs hidden.

To specify the commands to display, use the -C option one or
more times. To specify just some fields for a command, use the
syntax::

  comma