ó
^\kdc           @` s‘  d  d l  m Z m Z m Z d  d l m Z d  d l Z d d l m Z d d l m	 Z	 d d l m
 Z
 d d l m Z d d	 l m Z d d
 l m Z d d l m Z m Z d d l m Z d d l m Z d d l m Z m Z d d l m Z m Z m Z d d l m Z m Z d e e d „ Z d d e e d „ Z d „  Z d e f d „  ƒ  YZ  d „  Z! d e e" d „ Z# d e$ f d „  ƒ  YZ% d S(   i    (   t   absolute_importt   divisiont   unicode_literals(   t   with_metaclassNi   (   t   inputstream(   t	   tokenizer(   t   treebuilders(   t   Marker(   t   utils(   t	   constants(   t   spaceCharacterst   asciiUpper2Lower(   t   specialElements(   t   headingElements(   t   cdataElementst   rcdataElements(   t
   tokenTypest   ReparseExceptiont
   namespaces(   t   htmlIntegrationPointElementst"   mathmlTextIntegrationPointElementsu   etreec         C` s4   t  j | ƒ } t | d | ƒ} | j |  d | ƒS(   u.   Parse a string or file-like object into a treet   namespaceHTMLElementst   encoding(   R   t   getTreeBuildert
   HTMLParsert   parse(   t   doct   treebuilderR   R   t   tbt   p(    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR      s    u   divc         C` s:   t  j | ƒ } t | d | ƒ} | j |  d | d | ƒS(   NR   t	   containerR   (   R   R   R   t   parseFragment(   R   R   R   R   R   R   R   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR      s    c         ` s    d t  f ‡  f d †  ƒ  Y} | S(   Nt	   Decoratedc           ` s   e  Z ‡  f d  †  Z RS(   c         ` s^   xE | j  ƒ  D]7 \ } } t | t j ƒ r: ˆ  | ƒ } n  | | | <q Wt j |  | | | ƒ S(   N(   t   itemst
   isinstancet   typest   FunctionTypet   typet   __new__(   t   metat	   classnamet   basest	   classDictt   attributeNamet	   attribute(   t   function(    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR&   '   s
    (   t   __name__t
   __module__R&   (    (   R-   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR    &   s   (   R%   (   R-   R    (    (   R-   sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyt   method_decorator_metaclass%   s    R   c           B` sã   e  Z d  Z d e j e e e d „ Z e d d e e d „ Z	 d „  Z
 d „  Z d „  Z d „  Z d „  Z d e e d	 „ Z d d e e d
 „ Z d i  d „ Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   uZ   HTML parser. Generates a tree structure from a stream of (possibly
        malformed) HTMLc         C` s’   | |  _  | d k r' t j d ƒ } n  | | ƒ |  _ | |  _ g  |  _ t g  t | ƒ j	 ƒ  D]$ \ } } | | |  |  j ƒ f ^ q^ ƒ |  _
 d S(   uÁ  
        strict - raise an exception when a parse error is encountered

        tree - a treebuilder class controlling the type of tree that will be
        returned. Built in treebuilders can be accessed through
        html5lib.treebuilders.getTreeBuilder(treeType)

        tokenizer - a class that provides a stream of tokens to the treebuilder.
        This may be replaced for e.g. a sanitizer which converts some tags to
        text
        u   etreeN(   t   strictt   NoneR   R   t   treet   tokenizer_classt   errorst   dictt	   getPhasesR!   t   phases(   t   selfR3   R   R1   R   t   debugt   namet   cls(    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyt   __init__5   s    			u   divc         K` s‡   | |  _  | |  _ |  j | d | d | d | d |  | �|  _ |  j ƒ  x7 t r‚ y |  j ƒ  PWqL t k
 r~ |  j ƒ  qL XqL Wd  S(   NR   t	   parseMetat
   useChardett   parser(   t   innerHTMLModeR   R4   R   t   resett   Truet   mainLoopR   (   R9   t   streamt	   innerHTMLR   R   R>   R?   t   kwargs(    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyt   _parseO   s    		
	
c         C` s  |  j  j ƒ  t |  _ g  |  _ g  |  _ d |  _ |  j râ |  j j	 ƒ  |  _
 |  j
 t k rp |  j j |  j _ nH |  j
 t k r” |  j j |  j _ n$ |  j
 d k r¸ |  j j |  j _ n  |  j d |  _ |  j j ƒ  |  j ƒ  n t |  _
 |  j d |  _ d  |  _ d  |  _ t |  _ d  S(   Nu	   no quirksu	   plaintextu
   beforeHtmlu   initial(   R3   RB   t   Falset   firstStartTagR5   t   logt
   compatModeRA   R   t   lowerRF   R   R   t   rcdataStatet   stateR   t   rawtextStatet   plaintextStateR8   t   phaset   insertHtmlElementt   resetInsertionModeR2   t	   lastPhaset   beforeRCDataPhaseRC   t
   framesetOK(   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRB   a   s*    								c         C` se   | j  d k rK | j t d k rK d | j k oJ | j d j t ƒ d k S| j | j  f t k Sd  S(   Nu   annotation-xmlu   mathmlu   encodingu	   text/htmlu   application/xhtml+xml(   u	   text/htmlu   application/xhtml+xml(   R;   t	   namespaceR   t
   attributest	   translateR   R   (   R9   t   element(    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyt   isHTMLIntegrationPointƒ   s    c         C` s   | j  | j f t k S(   N(   RX   R;   R   (   R9   R[   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyt   isMathMLTextIntegrationPoint�   s    c         C` s*  t  d } t  d } t  d } t  d } t  d } t  d } t  d } x‡|  j ƒ  D]y} | }	 x+|	 d  k	 rŒ|  j j rŠ |  j j d n d  }
 |
 rŸ |
 j n d  } |
 r´ |
 j n d  } |	 d	 } | | k rù |  j |	 d
 |	 j d i  ƒ ƒ d  }	 qb t	 |  j j ƒ d k s¼| |  j j
 k s¼|  j |
 ƒ rl| | k rZ| d t d d g ƒ k s¼| | | f k s¼| t d k r˜| d k r˜| d d k s¼|  j |
 ƒ rÈ| | | | f k rÈ|  j } n |  j d } | | k ró| j |	 ƒ }	 qb | | k r| j |	 ƒ }	 qb | | k r/| j |	 ƒ }	 qb | | k rM| j |	 ƒ }	 qb | | k rk| j |	 ƒ }	 qb | | k rb | j |	 ƒ }	 qb qb W| | k rS | d rS | d rS |  j d i | d d 6ƒ qS qS Wt } g  } xG | r%| j |  j ƒ |  j j ƒ  } | rß|  j | k s"t ‚ qßqßWd  S(   Nu
   Charactersu   SpaceCharactersu   StartTagu   EndTagu   Commentu   Doctypeu
   ParseErroriÿÿÿÿu   typeu   datau   datavarsi    u   nameu   mglyphu
   malignmarku   mathmlu   annotation-xmlu   svgu   inForeignContentu   selfClosingu   selfClosingAcknowledgedu&   non-void-element-with-trailing-solidus(   R   t   normalizedTokensR2   R3   t   openElementsRX   R;   t
   parseErrort   gett   lent   defaultNamespaceR]   t	   frozensetR   R\   RR   R8   t   processCharacterst   processSpaceCharacterst   processStartTagt   processEndTagt   processCommentt   processDoctypeRC   t   appendt
   processEOFt   AssertionError(   R9   t   CharactersTokent   SpaceCharactersTokent   StartTagTokent   EndTagTokent   CommentTokent   DoctypeTokent   ParseErrorTokent   tokent	   new_tokent   currentNodet   currentNodeNamespacet   currentNodeNameR%   RR   t	   reprocessR8   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRD   �   sj    






"
 			c         c` s&   x |  j  D] } |  j | ƒ Vq
 Wd  S(   N(   R   t   normalizeToken(   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR^   Ð   s    c      
   C` s2   |  j  | d t d | d | d | ƒ|  j j ƒ  S(   uf  Parse a HTML document into a well-formed tree

        stream - a filelike object or string containing the HTML to be parsed

        The optional encoding parameter must be a string that indicates
        the encoding.  If specified, that encoding will be used,
        regardless of any BOM or later declaration (such as in a meta
        element)
        RF   R   R>   R?   (   RH   RI   R3   t   getDocument(   R9   RE   R   R>   R?   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR   Ô   s    
c         C` s)   |  j  | t d | d | ƒ|  j j ƒ  S(   uæ  Parse a HTML fragment into a well-formed tree fragment

        container - name of the element we're setting the innerHTML property
        if set to None, default to 'div'

        stream - a filelike object or string containing the HTML to be parsed

        The optional encoding parameter must be a string that indicates
        the encoding.  If specified, that encoding will be used,
        regardless of any BOM or later declaration (such as in a meta
        element)
        R   R   (   RH   RC   R3   t   getFragment(   R9   RE   R   R   R>   R?   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR   â   s    u   XXX-undefined-errorc         C` s;   |  j  j |  j j j ƒ  | | f ƒ |  j r7 t ‚ n  d  S(   N(   R5   Rk   R   RE   t   positionR1   t
   ParseError(   R9   t	   errorcodet   datavars(    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR`   ó   s    %	c         C` s<   | d t  d k r8 t | d d d d … ƒ | d <n  | S(   u3    HTML5 specific normalizations to the token stream u   typeu   StartTagu   dataNiÿÿÿÿ(   R   R6   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR{   ù   s    $c         C` sb   i d d 6} xN | j  ƒ  D]@ \ } } | | d k r | d | | d | <| d | =q q Wd  S(   Nu   definitionURLu   definitionurlu   data(   R!   (   R9   Ru   t   replacementst   kt   v(    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyt   adjustMathMLAttributes  s
    c         C` s  i> d d 6d d 6d d 6d d 6d	 d
 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d  6d! d" 6d# d$ 6d% d& 6d' d( 6d) d* 6d+ d, 6d- d. 6d/ d0 6d1 d2 6d3 d4 6d5 d6 6d7 d8 6d9 d: 6d; d< 6d= d> 6d? d@ 6dA dB 6dC dD 6dE dF 6dG dH 6dI dJ 6dK dL 6dM dN 6dO dP 6dQ dR 6dS dT 6dU dV 6dW dX 6dY dZ 6d[ d\ 6d] d^ 6d_ d` 6da db 6dc dd 6de df 6dg dh 6di dj 6dk dl 6dm dn 6do dp 6dq dr 6ds dt 6du dv 6dw dx 6dy dz 6d{ d| 6} xX t  | d} j ƒ  ƒ D]@ } | | k rÏ| | } | d} | | d} | <| d} | =qÏqÏWd  S(~   Nu   attributeNameu   attributenameu   attributeTypeu   attributetypeu   baseFrequencyu   basefrequencyu   baseProfileu   baseprofileu   calcModeu   calcmodeu   clipPathUnitsu   clippathunitsu   contentScriptTypeu   contentscripttypeu   contentStyleTypeu   contentstyletypeu   diffuseConstantu   diffuseconstantu   edgeModeu   edgemodeu   externalResourcesRequiredu   externalresourcesrequiredu	   filterResu	   filterresu   filterUnitsu   filterunitsu   glyphRefu   glyphrefu   gradientTransformu   gradienttransformu   gradientUnitsu   gradientunitsu   kernelMatrixu   kernelmatrixu   kernelUnitLengthu   kernelunitlengthu	   keyPointsu	   keypointsu
   keySplinesu
   keysplinesu   keyTimesu   keytimesu   lengthAdjustu   lengthadjustu   limitingConeAngleu   limitingconeangleu   markerHeightu   markerheightu   markerUnitsu   markerunitsu   markerWidthu   markerwidthu   maskContentUnitsu   maskcontentunitsu	   maskUnitsu	   maskunitsu
   numOctavesu
   numoctavesu
   pathLengthu
   pathlengthu   patternContentUnitsu   patterncontentunitsu   patternTransformu   patterntransformu   patternUnitsu   patternunitsu	   pointsAtXu	   pointsatxu	   pointsAtYu	   pointsatyu	   pointsAtZu	   pointsatzu   preserveAlphau   preservealphau   preserveAspectRatiou   preserveaspectratiou   primitiveUnitsu   primitiveunitsu   refXu   refxu   refYu   refyu   repeatCountu   repeatcountu	   repeatDuru	   repeatduru   requiredExtensionsu   requiredextensionsu   requiredFeaturesu   requiredfeaturesu   specularConstantu   specularconstantu   specularExponentu   specularexponentu   spreadMethodu   spreadmethodu   startOffsetu   startoffsetu   stdDeviationu   stddeviationu   stitchTilesu   stitchtilesu   surfaceScaleu   surfacescaleu   systemLanguageu   systemlanguageu   tableValuesu   tablevaluesu   targetXu   targetxu   targetYu   targetyu
   textLengthu
   textlengthu   viewBoxu   viewboxu
   viewTargetu
   viewtargetu   xChannelSelectoru   xchannelselectoru   yChannelSelectoru   ychannelselectoru
   zoomAndPanu
   zoomandpanu   data(   t   listt   keys(   R9   Ru   R‚   t   originalNamet   svgName(    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyt   adjustSVGAttributes  sˆ    

c         C` sO  i d d t  d f d 6d d t  d f d 6d d t  d f d 6d d t  d f d	 6d d
 t  d f d 6d d t  d f d 6d d t  d f d 6d d t  d f d 6d d t  d f d 6d d t  d f d 6d  d t  d f d 6d d t  d f d 6} xR | d j ƒ  D]@ } | | k r| | } | d | | d | <| d | =qqWd  S(   Nu   xlinku   actuateu   xlink:actuateu   arcroleu   xlink:arcroleu   hrefu
   xlink:hrefu   roleu
   xlink:roleu   showu
   xlink:showu   titleu   xlink:titleu   typeu
   xlink:typeu   xmlu   baseu   xml:baseu   langu   xml:langu   spaceu	   xml:spaceu   xmlnsu   xmlns:xlinku   data(   R   R2   R‡   (   R9   Ru   R‚   Rˆ   t   foreignName(    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyt   adjustForeignAttributesO  s$    
c         C` s   |  j  j ƒ  d  S(   N(   R@   RR   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyt   reparseTokenNormale  s    c         C` s]  t  } i d d 6d d 6d d 6d d 6d d	 6d d
 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6} xß |  j j d  d  d … D]Ä } | j } d  } | |  j j d k rÔ |  j sÂ t ‚ t } |  j } n  | d k rò |  j sò t ‚ n  | r| j |  j j	 k rqˆ n  | | k r5|  j
 | | } Pqˆ | rˆ |  j
 d } Pqˆ qˆ W| |  _ d  S(   Nu   inSelectu   selectu   inCellu   tdu   thu   inRowu   tru   inTableBodyu   tbodyu   theadu   tfootu	   inCaptionu   captionu   inColumnGroupu   colgroupu   inTableu   tableu   inBodyu   headu   bodyu
   inFramesetu   framesetu
   beforeHeadu   htmliÿÿÿÿi    (   u   selectu   colgroupu   headu   html(   RI   R3   R_   R;   R2   RF   Rm   RC   RX   Rc   R8   RR   (   R9   t   lastt   newModest   nodet   nodeNamet	   new_phase(    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRT   h  sD    
 	c         C` su   | d k s t  ‚ |  j j | ƒ | d k rC |  j j |  j _ n |  j j |  j _ |  j |  _ |  j	 d |  _ d S(   uY   Generic RCDATA/RAWTEXT Parsing algorithm
        contentType - RCDATA or RAWTEXT
        u   RAWTEXTu   RCDATAu   textN(   u   RAWTEXTu   RCDATA(
   Rm   R3   t   insertElementR   RP   RO   RN   RR   t   originalPhaseR8   (   R9   Ru   t   contentType(    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyt   parseRCDataRawtext”  s    N(   R.   R/   t   __doc__R2   R   t   HTMLTokenizerRI   RC   R=   RH   RB   R\   R]   RD   R^   R   R   R`   R{   R…   RŠ   RŒ   R�   RT   R–   (    (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR   1   s*   		"	
		@				G			,c         ` s1  d „  } d „  } d t  | |  | ƒ ƒ f d „  ƒ  Y‰  d ˆ  f d „  ƒ  Y} d ˆ  f d „  ƒ  Y} d	 ˆ  f ‡  f d
 †  ƒ  Y} d ˆ  f ‡  f d †  ƒ  Y} d ˆ  f ‡  f d †  ƒ  Y} d ˆ  f ‡  f d †  ƒ  Y} d ˆ  f ‡  f d †  ƒ  Y}	 d ˆ  f ‡  f d †  ƒ  Y}
 d ˆ  f ‡  f d †  ƒ  Y} d ˆ  f ‡  f d †  ƒ  Y} d ˆ  f ‡  f d †  ƒ  Y} d ˆ  f ‡  f d †  ƒ  Y} d ˆ  f ‡  f d †  ƒ  Y} d ˆ  f ‡  f d  †  ƒ  Y} d! ˆ  f ‡  f d" †  ƒ  Y} d# ˆ  f ‡  f d$ †  ƒ  Y} d% ˆ  f ‡  f d& †  ƒ  Y} d' ˆ  f ‡  f d( †  ƒ  Y} d) ˆ  f ‡  f d* †  ƒ  Y} d+ ˆ  f ‡  f d, †  ƒ  Y} d- ˆ  f ‡  f d. †  ƒ  Y} d/ ˆ  f ‡  f d0 †  ƒ  Y} i | d1 6| d2 6| d3 6| d4 6| d5 6| d6 6|	 d7 6|
 d8 6| d9 6| d: 6| d; 6| d< 6| d= 6| d> 6| d? 6| d@ 6| dA 6| dB 6| dC 6| dD 6| dE 6| dF 6S(G   Nc         ` s5   t  d „  t j j ƒ  Dƒ ƒ ‰ ‡  ‡ f d †  } | S(   u4   Logger that records which phase processes each tokenc         s` s!   |  ] \ } } | | f Vq d  S(   N(    (   t   .0t   keyt   value(    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pys	   <genexpr>©  s    c         ` sß   ˆ  j  j d ƒ rË t | ƒ d k rË | d } y i ˆ | d d 6} Wn
 ‚  n X| d t j k rx | d | d <n  |  j j j |  j j j	 j  |  j j
 j j  |  j j  ˆ  j  | f ƒ ˆ  |  | | Ž Sˆ  |  | | Ž Sd  S(   Nu   processi    u   typeu   name(   R.   t
   startswithRb   R	   t   tagTokenTypesR@   RK   Rk   R   RO   RR   t	   __class__(   R9   t   argsRG   Ru   t   info(   R-   t
   type_names(    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyt   wrapped¬  s    $
	
(   R6   R	   R   R!   (   R-   R¢   (    (   R-   R¡   sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRK   §  s    	c         S` s   |  r t  | ƒ St Sd  S(   N(   R0   R%   (   t   use_metaclasst   metaclass_func(    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyt   getMetaclassÀ  s    
t   Phasec           B` s_   e  Z d  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z RS(
   uN   Base class for helper object that implements each phase of processing
        c         S` s   | |  _  | |  _ d  S(   N(   R@   R3   (   R9   R@   R3   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR=   Ê  s    	c         S` s
   t  ‚ d  S(   N(   t   NotImplementedError(   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRl   Î  s    c         S` s!   |  j  j | |  j  j d ƒ d  S(   Niÿÿÿÿ(   R3   t   insertCommentR_   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRi   Ñ  s    c         S` s   |  j  j d ƒ d  S(   Nu   unexpected-doctype(   R@   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRj   Ö  s    c         S` s   |  j  j | d ƒ d  S(   Nu   data(   R3   t
   insertText(   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRe   Ù  s    c         S` s   |  j  j | d ƒ d  S(   Nu   data(   R3   R©   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRf   Ü  s    c         S` s   |  j  | d | ƒ S(   Nu   name(   t   startTagHandler(   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRg   ß  s    c         S` s”   |  j  j r0 | d d k r0 |  j  j d ƒ n  xQ | d j ƒ  D]? \ } } | |  j j d j k rA | |  j j d j | <qA qA Wt |  j  _ d  S(   Nu   nameu   htmlu   non-html-rootu   datai    (   R@   RJ   R`   R!   R3   R_   RY   RI   (   R9   Ru   t   attrR›   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyt   startTagHtmlâ  s    c         S` s   |  j  | d | ƒ S(   Nu   name(   t   endTagHandler(   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRh   ì  s    (   R.   R/   R—   R=   Rl   Ri   Rj   Re   Rf   Rg   R¬   Rh   (    (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR¦   Æ  s   								
t   InitialPhasec           B` sP   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 RS(   c         S` s   d  S(   N(    (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRf   ð  s    c         S` s   |  j  j | |  j  j ƒ d  S(   N(   R3   R¨   t   document(   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRi   ó  s    c      =   S` su  | d } | d } | d } | d } | d k sX | d  k	 sX | d  k	 rk | d k rk |  j j d ƒ n  | d  k r€ d } n  |  j j | ƒ | d k r® | j t ƒ } n  | s| d d k s| j dJ ƒ s| dK k s| j dL ƒ rû | d  k s| r"| j ƒ  dD k r"dE |  j _	 n9 | j dM ƒ sL| j dN ƒ r[| d  k	 r[dH |  j _	 n  |  j j
 dI |  j _ d  S(O   Nu   nameu   publicIdu   systemIdu   correctu   htmlu   about:legacy-compatu   unknown-doctypeu    u*   +//silmaril//dtd html pro v0r11 19970101//u4   -//advasoft ltd//dtd html 3.0 aswedit + extensions//u*   -//as//dtd html 3.0 aswedit + extensions//u   -//ietf//dtd html 2.0 level 1//u   -//ietf//dtd html 2.0 level 2//u&   -//ietf//dtd html 2.0 strict level 1//u&   -//ietf//dtd html 2.0 strict level 2//u   -//ietf//dtd html 2.0 strict//u   -//ietf//dtd html 2.0//u   -//ietf//dtd html 2.1e//u   -//ietf//dtd html 3.0//u   -//ietf//dtd html 3.2 final//u   -//ietf//dtd html 3.2//u   -//ietf//dtd html 3//u   -//ietf//dtd html level 0//u   -//ietf//dtd html level 1//u   -//ietf//dtd html level 2//u   -//ietf//dtd html level 3//u"   -//ietf//dtd html strict level 0//u"   -//ietf//dtd html strict level 1//u"   -//ietf//dtd html strict level 2//u"   -//ietf//dtd html strict level 3//u   -//ietf//dtd html strict//u   -//ietf//dtd html//u(   -//metrius//dtd metrius presentational//u5   -//microsoft//dtd internet explorer 2.0 html strict//u.   -//microsoft//dtd internet explorer 2.0 html//u0   -//microsoft//dtd internet explorer 2.0 tables//u5   -//microsoft//dtd internet explorer 3.0 html strict//u.   -//microsoft//dtd internet explorer 3.0 html//u0   -//microsoft//dtd internet explorer 3.0 tables//u#   -//netscape comm. corp.//dtd html//u*   -//netscape comm. corp.//dtd strict html//u*   -//o'reilly and associates//dtd html 2.0//u3   -//o'reilly and associates//dtd html extended 1.0//u;   -//o'reilly and associates//dtd html extended relaxed 1.0//uN   -//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//uE   -//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//u$   -//spyglass//dtd html 2.0 extended//u+   -//sq//dtd html 2.0 hotmetal + extensions//u-   -//sun microsystems corp.//dtd hotjava html//u4   -//sun microsystems corp.//dtd hotjava strict html//u   -//w3c//dtd html 3 1995-03-24//u   -//w3c//dtd html 3.2 draft//u   -//w3c//dtd html 3.2 final//u   -//w3c//dtd html 3.2//u   -//w3c//dtd html 3.2s draft//u   -//w3c//dtd html 4.0 frameset//u#   -//w3c//dtd html 4.0 transitional//u(   -//w3c//dtd html experimental 19960712//u&   -//w3c//dtd html experimental 970421//u   -//w3c//dtd w3 html//u   -//w3o//dtd w3 html 3.0//u#   -//webtechs//dtd mozilla html 2.0//u   -//webtechs//dtd mozilla html//u$   -//w3o//dtd w3 html strict 3.0//en//u"   -/w3c/dtd html 4.0 transitional/enu    -//w3c//dtd html 4.01 frameset//u$   -//w3c//dtd html 4.01 transitional//u:   http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtdu   quirksu    -//w3c//dtd xhtml 1.0 frameset//u$   -//w3c//dtd xhtml 1.0 transitional//u   limited quirksu
   beforeHtml(7   u*   +//silmaril//dtd html pro v0r11 19970101//u4   -//advasoft ltd//dtd html 3.0 aswedit + extensions//u*   -//as//dtd html 3.0 aswedit + extensions//u   -//ietf//dtd html 2.0 level 1//u   -//ietf//dtd html 2.0 level 2//u&   -//ietf//dtd html 2.0 strict level 1//u&   -//ietf//dtd html 2.0 strict level 2//u   -//ietf//dtd html 2.0 strict//u   -//ietf//dtd html 2.0//u   -//ietf//dtd html 2.1e//u   -//ietf//dtd html 3.0//u   -//ietf//dtd html 3.2 final//u   -//ietf//dtd html 3.2//u   -//ietf//dtd html 3//u   -//ietf//dtd html level 0//u   -//ietf//dtd html level 1//u   -//ietf//dtd html level 2//u   -//ietf//dtd html level 3//u"   -//ietf//dtd html strict level 0//u"   -//ietf//dtd html strict level 1//u"   -//ietf//dtd html strict level 2//u"   -//ietf//dtd html strict level 3//u   -//ietf//dtd html strict//u   -//ietf//dtd html//u(   -//metrius//dtd metrius presentational//u5   -//microsoft//dtd internet explorer 2.0 html strict//u.   -//microsoft//dtd internet explorer 2.0 html//u0   -//microsoft//dtd internet explorer 2.0 tables//u5   -//microsoft//dtd internet explorer 3.0 html strict//u.   -//microsoft//dtd internet explorer 3.0 html//u0   -//microsoft//dtd internet explorer 3.0 tables//u#   -//netscape comm. corp.//dtd html//u*   -//netscape comm. corp.//dtd strict html//u*   -//o'reilly and associates//dtd html 2.0//u3   -//o'reilly and associates//dtd html extended 1.0//u;   -//o'reilly and associates//dtd html extended relaxed 1.0//uN   -//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//uE   -//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//u$   -//spyglass//dtd html 2.0 extended//u+   -//sq//dtd html 2.0 hotmetal + extensions//u-   -//sun microsystems corp.//dtd hotjava html//u4   -//sun microsystems corp.//dtd hotjava strict html//u   -//w3c//dtd html 3 1995-03-24//u   -//w3c//dtd html 3.2 draft//u   -//w3c//dtd html 3.2 final//u   -//w3c//dtd html 3.2//u   -//w3c//dtd html 3.2s draft//u   -//w3c//dtd html 4.0 frameset//u#   -//w3c//dtd html 4.0 transitional//u(   -//w3c//dtd html experimental 19960712//u&   -//w3c//dtd html experimental 970421//u   -//w3c//dtd w3 html//u   -//w3o//dtd w3 html 3.0//u#   -//webtechs//dtd mozilla html 2.0//u   -//webtechs//dtd mozilla html//(   u$   -//w3o//dtd w3 html strict 3.0//en//u"   -/w3c/dtd html 4.0 transitional/enu   html(   u    -//w3c//dtd html 4.01 frameset//u$   -//w3c//dtd html 4.01 transitional//(   u    -//w3c//dtd xhtml 1.0 frameset//u$   -//w3c//dtd xhtml 1.0 transitional//(   u    -//w3c//dtd html 4.01 frameset//u$   -//w3c//dtd html 4.01 transitional//(   R2   R@   R`   R3   t   insertDoctypeRZ   R   Rœ   RM   RL   R8   RR   (   R9   Ru   R;   t   publicIdt   systemIdt   correct(    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRj   ö  s°    



	                                                      	  	 	 	 	c         S` s&   d |  j  _ |  j  j d |  j  _ d  S(   Nu   quirksu
   beforeHtml(   R@   RL   R8   RR   (   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyt   anythingElseV  s    c         S` s   |  j  j d ƒ |  j ƒ  | S(   Nu   expected-doctype-but-got-chars(   R@   R`   R´   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRe   Z  s    
c         S` s,   |  j  j d i | d d 6ƒ |  j ƒ  | S(   Nu"   expected-doctype-but-got-start-tagu   name(   R@   R`   R´   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRg   _  s    
c         S` s,   |  j  j d i | d d 6ƒ |  j ƒ  | S(   Nu    expected-doctype-but-got-end-tagu   name(   R@   R`   R´   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRh   e  s    
c         S` s   |  j  j d ƒ |  j ƒ  t S(   Nu   expected-doctype-but-got-eof(   R@   R`   R´   RC   (   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRl   k  s    
(
   R.   R/   Rf   Ri   Rj   R´   Re   Rg   Rh   Rl   (    (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR®   ï  s   			`				t   BeforeHtmlPhasec           B` sG   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         S` s3   |  j  j t d d ƒ ƒ |  j j d |  j _ d  S(   Nu   htmlu   StartTagu
   beforeHead(   R3   t
   insertRoott   impliedTagTokenR@   R8   RR   (   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRS   r  s    c         S` s   |  j  ƒ  t S(   N(   RS   RC   (   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRl   w  s    
c         S` s   |  j  j | |  j  j ƒ d  S(   N(   R3   R¨   R¯   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRi   {  s    c         S` s   d  S(   N(    (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRf   ~  s    c         S` s   |  j  ƒ  | S(   N(   RS   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRe   �  s    
c         S` s-   | d d k r t  |  j _ n  |  j ƒ  | S(   Nu   nameu   html(   RC   R@   RJ   RS   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRg   …  s    
c         S` sC   | d d k r1 |  j  j d i | d d 6ƒ n |  j ƒ  | Sd  S(   Nu   nameu   headu   bodyu   htmlu   bru   unexpected-end-tag-before-html(   u   headu   bodyu   htmlu   br(   R@   R`   RS   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRh   ‹  s
    
(	   R.   R/   RS   Rl   Ri   Rf   Re   Rg   Rh   (    (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRµ   p  s   						t   BeforeHeadPhasec           ` s_   e  Z ‡  f d  †  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 RS(	   c         ` s}   ˆ  j  |  | | ƒ t j d |  j f d |  j f g ƒ |  _ |  j |  j _ t j d |  j f g ƒ |  _	 |  j
 |  j	 _ d  S(   Nu   htmlu   headu   bodyu   br(   u   headu   bodyu   htmlu   br(   R=   R   t   MethodDispatcherR¬   t   startTagHeadRª   t   startTagOthert   defaultt   endTagImplyHeadR­   t   endTagOther(   R9   R@   R3   (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR=   ”  s    c         S` s   |  j  t d d ƒ ƒ t S(   Nu   headu   StartTag(   Rº   R·   RC   (   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRl   ¢  s    c         S` s   d  S(   N(    (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRf   ¦  s    c         S` s   |  j  t d d ƒ ƒ | S(   Nu   headu   StartTag(   Rº   R·   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRe   ©  s    c         S` s   |  j  j d j | ƒ S(   Nu   inBody(   R@   R8   Rg   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR¬   ­  s    c         S` s@   |  j  j | ƒ |  j  j d |  j  _ |  j j d |  j _ d  S(   Niÿÿÿÿu   inHead(   R3   R“   R_   t   headPointerR@   R8   RR   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRº   °  s    c         S` s   |  j  t d d ƒ ƒ | S(   Nu   headu   StartTag(   Rº   R·   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR»   µ  s    c         S` s   |  j  t d d ƒ ƒ | S(   Nu   headu   StartTag(   Rº   R·   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR½   ¹  s    c         S` s"   |  j  j d i | d d 6ƒ d  S(   Nu   end-tag-after-implied-rootu   name(   R@   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR¾   ½  s    (   R.   R/   R=   Rl   Rf   Re   R¬   Rº   R»   R½   R¾   (    (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR¸   “  s   							t   InHeadPhasec           ` s•   e  Z ‡  f d  †  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z RS(   c      
   ` sÅ   ˆ  j  |  | | ƒ t j d |  j f d |  j f d |  j f d |  j f d |  j f d |  j f d |  j	 f g ƒ |  _
 |  j |  j
 _ t j d |  j f d |  j f g ƒ |  _ |  j |  j _ d  S(   Nu   htmlu   titleu   noscriptu   noframesu   styleu   scriptu   baseu   basefontu   bgsoundu   commandu   linku   metau   headu   bru   body(   u   noscriptu   noframesu   style(   u   baseu   basefontu   bgsoundu   commandu   link(   u   bru   htmlu   body(   R=   R   R¹   R¬   t   startTagTitlet   startTagNoScriptNoFramesStylet   startTagScriptt   startTagBaseLinkCommandt   startTagMetaRº   Rª   R»   R¼   t
   endTagHeadt   endTagHtmlBodyBrR­   R¾   (   R9   R@   R3   (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR=   Â  s    	c         S` s   |  j  ƒ  t S(   N(   R´   RC   (   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRl   Ø  s    
c         S` s   |  j  ƒ  | S(   N(   R´   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRe   Ü  s    
c         S` s   |  j  j d j | ƒ S(   Nu   inBody(   R@   R8   Rg   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR¬   à  s    c         S` s   |  j  j d ƒ d  S(   Nu!   two-heads-are-not-better-than-one(   R@   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRº   ã  s    c         S` s.   |  j  j | ƒ |  j  j j ƒ  t | d <d  S(   Nu   selfClosingAcknowledged(   R3   R“   R_   t   popRC   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRÄ   æ  s    c         S` sþ   |  j  j | ƒ |  j  j j ƒ  t | d <| d } |  j j j j d d k rú d | k ry |  j j j j	 | d ƒ qú d | k rú d | k rú | d j
 ƒ  d k rú t j | d j d	 ƒ ƒ } t j | ƒ } | j ƒ  } |  j j j j	 | ƒ qú n  d  S(
   Nu   selfClosingAcknowledgedu   datai   u	   tentativeu   charsetu   contentu
   http-equivu   content-typeu   utf-8(   R3   R“   R_   RÈ   RC   R@   R   RE   t   charEncodingt   changeEncodingRM   R   t   EncodingBytest   encodet   ContentAttrParserR   (   R9   Ru   RY   t   dataR@   t   codec(    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRÅ   ë  s    

c         S` s   |  j  j | d ƒ d  S(   Nu   RCDATA(   R@   R–   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRÁ      s    c         S` s   |  j  j | d ƒ d  S(   Nu   RAWTEXT(   R@   R–   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRÂ     s    c         S` sT   |  j  j | ƒ |  j j j |  j j _ |  j j |  j _ |  j j d |  j _ d  S(   Nu   text(	   R3   R“   R@   R   t   scriptDataStateRO   RR   R”   R8   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRÃ     s    c         S` s   |  j  ƒ  | S(   N(   R´   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR»     s    
c         S` sQ   |  j  j j j ƒ  } | j d k s7 t d | j ƒ ‚ |  j  j d |  j  _ d  S(   Nu   headu   Expected head got %su	   afterHead(   R@   R3   R_   RÈ   R;   Rm   R8   RR   (   R9   Ru   R�   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRÆ     s    "c         S` s   |  j  ƒ  | S(   N(   R´   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRÇ     s    
c         S` s"   |  j  j d i | d d 6ƒ d  S(   Nu   unexpected-end-tagu   name(   R@   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR¾     s    c         S` s   |  j  t d ƒ ƒ d  S(   Nu   head(   RÆ   R·   (   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR´     s    (   R.   R/   R=   Rl   Re   R¬   Rº   RÄ   RÅ   RÁ   RÂ   RÃ   R»   RÆ   RÇ   R¾   R´   (    (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRÀ   Á  s   													t   AfterHeadPhasec           ` sz   e  Z ‡  f d  †  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z RS(   c         ` s¡   ˆ  j  |  | | ƒ t j d |  j f d |  j f d |  j f d |  j f d |  j f g ƒ |  _ |  j	 |  j _
 t j d |  j f g ƒ |  _ |  j |  j _
 d  S(   Nu   htmlu   bodyu   framesetu   baseu   basefontu   bgsoundu   linku   metau   noframesu   scriptu   styleu   titleu   headu   br(	   u   baseu   basefontu   bgsoundu   linku   metau   noframesu   scriptu   styleu   title(   u   bodyu   htmlu   br(   R=   R   R¹   R¬   t   startTagBodyt   startTagFramesett   startTagFromHeadRº   Rª   R»   R¼   RÇ   R­   R¾   (   R9   R@   R3   (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR=   %  s     		c         S` s   |  j  ƒ  t S(   N(   R´   RC   (   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRl   6  s    
c         S` s   |  j  ƒ  | S(   N(   R´   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRe   :  s    
c         S` s   |  j  j d j | ƒ S(   Nu   inBody(   R@   R8   Rg   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR¬   >  s    c         S` s6   t  |  j _ |  j j | ƒ |  j j d |  j _ d  S(   Nu   inBody(   RI   R@   RW   R3   R“   R8   RR   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRÒ   A  s    c         S` s*   |  j  j | ƒ |  j j d |  j _ d  S(   Nu
   inFrameset(   R3   R“   R@   R8   RR   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRÓ   F  s    c         S` sœ   |  j  j d i | d d 6ƒ |  j j j |  j j ƒ |  j  j d j | ƒ xG |  j j d  d  d … D], } | j d k rh |  j j j	 | ƒ Pqh qh Wd  S(   Nu#   unexpected-start-tag-out-of-my-headu   nameu   inHeadiÿÿÿÿu   head(
   R@   R`   R3   R_   Rk   R¿   R8   Rg   R;   t   remove(   R9   Ru   R�   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRÔ   J  s     c         S` s"   |  j  j d i | d d 6ƒ d  S(   Nu   unexpected-start-tagu   name(   R@   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRº   T  s    c         S` s   |  j  ƒ  | S(   N(   R´   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR»   W  s    
c         S` s   |  j  ƒ  | S(   N(   R´   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRÇ   [  s    
c         S` s"   |  j  j d i | d d 6ƒ d  S(   Nu   unexpected-end-tagu   name(   R@   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR¾   _  s    c         S` s?   |  j  j t d d ƒ ƒ |  j j d |  j _ t |  j _ d  S(   Nu   bodyu   StartTagu   inBody(   R3   R“   R·   R@   R8   RR   RC   RW   (   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR´   b  s    (   R.   R/   R=   Rl   Re   R¬   RÒ   RÓ   RÔ   Rº   R»   RÇ   R¾   R´   (    (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRÑ   $  s   						
				t   InBodyPhasec           ` sÐ  e  Z ‡  f d  †  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z  d „  Z! d  „  Z" d! „  Z# d" „  Z$ d# „  Z% d$ „  Z& d% „  Z' d& „  Z( d' „  Z) d( „  Z* d) „  Z+ d* „  Z, d+ „  Z- d, „  Z. d- „  Z/ d. „  Z0 d/ „  Z1 d0 „  Z2 d1 „  Z3 RS(2   c      +   ` s]  ˆ  j  |  | | ƒ |  j |  _ t j d |  j f dd |  j f d |  j f d |  j f de |  j	 f t
 |  j f df |  j f d' |  j f dg |  j f d+ |  j f d, |  j f dh |  j f d9 |  j f d: |  j f di |  j f d> |  j f d? |  j f dj |  j f dk |  j f dI |  j f dJ |  j f dK |  j f dL |  j f dM |  j f dN |  j f dl |  j f dQ |  j  f dm |  j! f dn |  j" f dV |  j# f dW |  j$ f do |  j% f g  ƒ |  _& |  j' |  j& _( t j d |  j) f d |  j* f dp |  j+ f d' |  j, f d! |  j- f dq |  j. f t
 |  j/ f dr |  j0 f ds |  j1 f dA |  j2 f g
 ƒ |  _3 |  j4 |  j3 _( d  S(t   Nu   htmlu   baseu   basefontu   bgsoundu   commandu   linku   metau   noframesu   scriptu   styleu   titleu   bodyu   framesetu   addressu   articleu   asideu
   blockquoteu   centeru   detailsu   diru   divu   dlu   fieldsetu
   figcaptionu   figureu   footeru   headeru   hgroupu   mainu   menuu   navu   olu   pu   sectionu   summaryu   ulu   preu   listingu   formu   liu   ddu   dtu	   plaintextu   au   bu   bigu   codeu   emu   fontu   iu   su   smallu   strikeu   strongu   ttu   uu   nobru   buttonu   appletu   marqueeu   objectu   xmpu   tableu   areau   bru   embedu   imgu   keygenu   wbru   paramu   sourceu   tracku   inputu   hru   imageu   isindexu   textareau   iframeu   noembedu   noscriptu   selectu   rpu   rtu   optionu   optgroupu   mathu   svgu   captionu   colu   colgroupu   frameu   headu   tbodyu   tdu   tfootu   thu   theadu   tru   dialog(
   u   baseu   basefontu   bgsoundu   commandu   linku   metau   noframesu   scriptu   styleu   title(   u   addressu   articleu   asideu
   blockquoteu   centeru   detailsu   detailsu   diru   divu   dlu   fieldsetu
   figcaptionu   figureu   footeru   headeru   hgroupu   mainu   menuu   navu   olu   pu   sectionu   summaryu   ul(   u   preu   listing(   u   liu   ddu   dt(   u   bu   bigu   codeu   emu   fontu   iu   su   smallu   strikeu   strongu   ttu   u(   u   appletu   marqueeu   object(   u   areau   bru   embedu   imgu   keygenu   wbr(   u   paramu   sourceu   track(   u   noembedu   noframesu   noscript(   u   rpu   rt(   u   optionu   optgroup(   u   captionu   colu   colgroupu   frameu   headu   tbodyu   tdu   tfootu   thu   theadu   tr(   u   addressu   articleu   asideu
   blockquoteu   buttonu   centeru   detailsu   dialogu   diru   divu   dlu   fieldsetu
   figcaptionu   figureu   footeru   headeru   hgroupu   listingu   mainu   menuu   navu   olu   preu   sectionu   summaryu   ul(   u   ddu   dtu   li(   u   au   bu   bigu   codeu   emu   fontu   iu   nobru   su   smallu   strikeu   strongu   ttu   u(   u   appletu   marqueeu   object(5   R=   Rf   t   processSpaceCharactersNonPreR   R¹   R¬   t   startTagProcessInHeadRÒ   RÓ   t   startTagClosePR   t   startTagHeadingt   startTagPreListingt   startTagFormt   startTagListItemt   startTagPlaintextt	   startTagAt   startTagFormattingt   startTagNobrt   startTagButtont   startTagAppletMarqueeObjectt   startTagXmpt   startTagTablet   startTagVoidFormattingt   startTagParamSourcet   startTagInputt
   startTagHrt   startTagImaget   startTagIsIndext   startTagTextareat   startTagIFramet   startTagRawtextt   startTagSelectt   startTagRpRtt   startTagOptt   startTagMatht   startTagSvgt   startTagMisplacedRª   R»   R¼   t
   endTagBodyt
   endTagHtmlt   endTagBlockt
   endTagFormt   endTagPt   endTagListItemt   endTagHeadingt   endTagFormattingt   endTagAppletMarqueeObjectt   endTagBrR­   R¾   (   R9   R@   R3   (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR=   j  s|     	   	 	      c         S` s¨   | j  | j  k s$ | j | j k r( t St | j ƒ t | j ƒ k rJ t St | j j ƒ  ƒ } t | j j ƒ  ƒ } x- t | | ƒ D] \ } } | | k r„ t Sq„ Wt S(   N(	   R;   RX   RI   Rb   RY   t   sortedR!   t   zipRC   (   R9   t   node1t   node2t   attributes1t   attributes2t   attr1t   attr2(    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyt   isMatchingFormattingElement°  s    $c         S` s×   |  j  j | ƒ |  j  j d } g  } xS |  j  j d  d  d … D]8 } | t k rV Pq@ |  j | | ƒ r@ | j | ƒ q@ q@ Wt | ƒ d k s” t ‚ t | ƒ d k rÀ |  j  j j	 | d ƒ n  |  j  j j | ƒ d  S(   Niÿÿÿÿi   (
   R3   R“   R_   t   activeFormattingElementsR   R  Rk   Rb   Rm   RÕ   (   R9   Ru   R[   t   matchingElementsR�   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyt   addFormattingElement¾  s     c         S` sW   t  d ƒ } xD |  j j d  d  d … D]) } | j | k r& |  j j d ƒ Pq& q& Wd  S(   Nu   ddu   dtu   liu   pu   tbodyu   tdu   tfootu   thu   theadu   tru   bodyu   htmliÿÿÿÿu    expected-closing-tag-but-got-eof(   u   ddu   dtu   liu   pu   tbodyu   tdu   tfootu   thu   theadu   tru   bodyu   html(   Rd   R3   R_   R;   R@   R`   (   R9   t   allowed_elementsR�   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRl   Ï  s     	 c         S` sŒ   | d } |  j  |  _ | j d ƒ rb |  j j d j d k rb |  j j d j ƒ  rb | d } n  | rˆ |  j j ƒ  |  j j | ƒ n  d  S(	   Nu   datau   
iÿÿÿÿu   preu   listingu   textareai   (   u   preu   listingu   textarea(	   R×   Rf   Rœ   R3   R_   R;   t
   hasContentt#   reconstructActiveFormattingElementsR©   (   R9   Ru   RÎ   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyt!   processSpaceCharactersDropNewlineÙ  s    
c         S` s}   | d d k r d  S|  j  j ƒ  |  j  j | d ƒ |  j j ry t g  | d D] } | t k ^ qO ƒ ry t |  j _ n  d  S(   Nu   datau    (   R3   R  R©   R@   RW   t   anyR
   RI   (   R9   Ru   t   char(    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRe   æ  s    #c         S` s%   |  j  j ƒ  |  j  j | d ƒ d  S(   Nu   data(   R3   R  R©   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRf   ò  s    c         S` s   |  j  j d j | ƒ S(   Nu   inHead(   R@   R8   Rg   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRØ   ö  s    c         S` sÄ   |  j  j d i d d 6ƒ t |  j j ƒ d k sK |  j j d j d k r` |  j  j sÀ t ‚ n` t |  j  _	 xQ | d j
 ƒ  D]? \ } } | |  j j d j k r} | |  j j d j | <q} q} Wd  S(   Nu   unexpected-start-tagu   bodyu   namei   u   data(   R@   R`   Rb   R3   R_   R;   RF   Rm   RI   RW   R!   RY   (   R9   Ru   R«   R›   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRÒ   ù  s    c         S` s  |  j  j d i d d 6ƒ t |  j j ƒ d k sK |  j j d j d k r` |  j  j sÿ t ‚ nŸ |  j  j so n� |  j j d j	 r© |  j j d j	 j
 |  j j d ƒ n  x- |  j j d j d k rØ |  j j j ƒ  q¬ W|  j j | ƒ |  j  j d |  j  _ d  S(	   Nu   unexpected-start-tagu   framesetu   namei   u   bodyiÿÿÿÿu   htmlu
   inFrameset(   R@   R`   Rb   R3   R_   R;   RF   Rm   RW   t   parentt   removeChildRÈ   R“   R8   RR   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRÓ     s    1'c         S` sB   |  j  j d d d ƒr. |  j t d ƒ ƒ n  |  j  j | ƒ d  S(   Nu   pt   variantu   button(   R3   t   elementInScopeRù   R·   R“   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRÙ     s    c         S` sZ   |  j  j d d d ƒr. |  j t d ƒ ƒ n  |  j  j | ƒ t |  j _ |  j |  _	 d  S(   Nu   pR  u   button(
   R3   R  Rù   R·   R“   RI   R@   RW   R  Rf   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRÛ     s
    c         S` s�   |  j  j r) |  j j d i d d 6ƒ nT |  j  j d d d ƒrW |  j t d ƒ ƒ n  |  j  j | ƒ |  j  j d |  j  _ d  S(   Nu   unexpected-start-tagu   formu   nameu   pR  u   buttoniÿÿÿÿ(	   R3   t   formPointerR@   R`   R  Rù   R·   R“   R_   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRÜ     s    c         S` s   t  |  j _ i d g d 6d d g d 6d d g d 6} | | d } xn t |  j j ƒ D]Z } | j | k r� |  j j j t	 | j d ƒ ƒ Pn  | j
 t k rW | j d k rW PqW qW W|  j j d d	 d
 ƒrì |  j j j t	 d d ƒ ƒ n  |  j j | ƒ d  S(   Nu   liu   dtu   ddu   nameu   EndTagu   addressu   divu   pR  u   button(   u   addressu   divu   p(   RI   R@   RW   t   reversedR3   R_   R;   RR   Rh   R·   t	   nameTupleR   R  R“   (   R9   Ru   t   stopNamesMapt	   stopNamesR�   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRÝ   '  s"    c         S` sZ   |  j  j d d d ƒr. |  j t d ƒ ƒ n  |  j  j | ƒ |  j j j |  j j _ d  S(   Nu   pR  u   button(	   R3   R  Rù   R·   R“   R@   R   RQ   RO   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRÞ   =  s    c         S` sŒ   |  j  j d d d ƒr. |  j t d ƒ ƒ n  |  j  j d j t k rx |  j j d i | d d 6ƒ |  j  j j	 ƒ  n  |  j  j
 | ƒ d  S(   Nu   pR  u   buttoniÿÿÿÿu   unexpected-start-tagu   name(   R3   R  Rù   R·   R_   R;   R   R@   R`   RÈ   R“   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRÚ   C  s    c         S` s½   |  j  j d ƒ } | rŸ |  j j d i d d 6d d 6ƒ |  j t d ƒ ƒ | |  j  j k rt |  j  j j | ƒ n  | |  j  j k rŸ |  j  j j | ƒ qŸ n  |  j  j	 ƒ  |  j
 | ƒ d  S(   Nu   au$   unexpected-start-tag-implies-end-tagu	   startNameu   endName(   R3   t!   elementInActiveFormattingElementsR@   R`   Rü   R·   R_   RÕ   R  R  R
  (   R9   Ru   t   afeAElement(    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRß   K  s    c         S` s   |  j  j ƒ  |  j | ƒ d  S(   N(   R3   R  R
  (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRà   X  s    c         S` st   |  j  j ƒ  |  j  j d ƒ rc |  j j d i d d 6d d 6ƒ |  j t d ƒ ƒ |  j  j ƒ  n  |  j | ƒ d  S(   Nu   nobru$   unexpected-start-tag-implies-end-tagu	   startNameu   endName(   R3   R  R  R@   R`   Rh   R·   R
  (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRá   \  s    c         S` sw   |  j  j d ƒ rJ |  j j d i d d 6d d 6ƒ |  j t d ƒ ƒ | S|  j  j ƒ  |  j  j | ƒ t |  j _	 d  S(   Nu   buttonu$   unexpected-start-tag-implies-end-tagu	   startNameu   endName(
   R3   R  R@   R`   Rh   R·   R  R“   RI   RW   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRâ   f  s    c         S` s@   |  j  j ƒ  |  j  j | ƒ |  j  j j t ƒ t |  j _ d  S(   N(	   R3   R  R“   R  Rk   R   RI   R@   RW   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRã   q  s    c         S` s^   |  j  j d d d ƒr. |  j t d ƒ ƒ n  |  j  j ƒ  t |  j _ |  j j | d ƒ d  S(   Nu   pR  u   buttonu   RAWTEXT(	   R3   R  Rù   R·   R  RI   R@   RW   R–   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRä   w  s
    c         S` sy   |  j  j d k rC |  j j d d d ƒrC |  j t d ƒ ƒ qC n  |  j j | ƒ t |  j  _ |  j  j	 d |  j  _
 d  S(   Nu   quirksu   pR  u   buttonu   inTable(   R@   RL   R3   R  Rh   R·   R“   RI   RW   R8   RR   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRå   ~  s    c         S` sG   |  j  j ƒ  |  j  j | ƒ |  j  j j ƒ  t | d <t |  j _ d  S(   Nu   selfClosingAcknowledged(	   R3   R  R“   R_   RÈ   RC   RI   R@   RW   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRæ   †  s
    
c         S` sY   |  j  j } |  j | ƒ d | d k rU | d d j t ƒ d k rU | |  j  _ n  d  S(   Nu   typeu   datau   hidden(   R@   RW   Ræ   RZ   R   (   R9   Ru   RW   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRè   �  s
    c         S` s.   |  j  j | ƒ |  j  j j ƒ  t | d <d  S(   Nu   selfClosingAcknowledged(   R3   R“   R_   RÈ   RC   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRç   •  s    c         S` sh   |  j  j d d d ƒr. |  j t d ƒ ƒ n  |  j  j | ƒ |  j  j j ƒ  t | d <t |  j	 _
 d  S(   Nu   pR  u   buttonu   selfClosingAcknowledged(   R3   R  Rù   R·   R“   R_   RÈ   RC   RI   R@   RW   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRé   š  s    
c      	   S` sO   |  j  j d i d d 6d d 6ƒ |  j t d d d | d d	 | d
 ƒƒ d  S(   Nu   unexpected-start-tag-treated-asu   imageu   originalNameu   imgu   newNameu   StartTagRY   u   datat   selfClosingu   selfClosing(   R@   R`   Rg   R·   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRê   ¢  s
    
c      	   S` s�  |  j  j d i d d 6ƒ |  j j r* d  Si  } d | d k rU | d d | d <n  |  j t d d d | ƒƒ |  j t d	 d ƒ ƒ |  j t d
 d ƒ ƒ d | d k r¾ | d d } n d } |  j i t d d 6| d 6ƒ | d j ƒ  } d | k r	| d =n  d | k r| d =n  d | d <|  j t d d d | d | d ƒƒ |  j	 t d
 ƒ ƒ |  j t d	 d ƒ ƒ |  j	 t d ƒ ƒ d  S(   Nu   deprecated-tagu   isindexu   nameu   actionu   datau   formu   StartTagRY   u   hru   labelu   promptu3   This is a searchable index. Enter search keywords: u
   Charactersu   typeu   inputR  u   selfClosing(
   R@   R`   R3   R  Rg   R·   Re   R   t   copyRh   (   R9   Ru   t
   form_attrst   promptRY   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRë   ª  s6    



c         S` sD   |  j  j | ƒ |  j j j |  j j _ |  j |  _ t |  j _	 d  S(   N(
   R3   R“   R@   R   RN   RO   R  Rf   RI   RW   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRì   Ê  s    c         S` s   t  |  j _ |  j | ƒ d  S(   N(   RI   R@   RW   Rî   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRí   Ð  s    c         S` s   |  j  j | d ƒ d S(   u8   iframe, noembed noframes, noscript(if scripting enabled)u   RAWTEXTN(   R@   R–   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRî   Ô  s    c         S` sY   |  j  j d j d k r5 |  j j j t d ƒ ƒ n  |  j  j ƒ  |  j j  j | ƒ d  S(   Niÿÿÿÿu   option(	   R3   R_   R;   R@   RR   Rh   R·   R  R“   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRñ   Ø  s    c         S` s¼   |  j  j ƒ  |  j  j | ƒ t |  j _ |  j j |  j j d |  j j d |  j j d |  j j d |  j j d |  j j d f k r¢ |  j j d |  j _ n |  j j d |  j _ d  S(	   Nu   inTableu	   inCaptionu   inColumnGroupu   inTableBodyu   inRowu   inCellu   inSelectInTableu   inSelect(   R3   R  R“   RI   R@   RW   RR   R8   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRï   Þ  s    c         S` s_   |  j  j d ƒ rK |  j  j ƒ  |  j  j d j d k rK |  j j ƒ  qK n  |  j  j | ƒ d  S(   Nu   rubyiÿÿÿÿ(   R3   R  t   generateImpliedEndTagsR_   R;   R@   R`   R“   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRð   ì  s
    c         S` sv   |  j  j ƒ  |  j j | ƒ |  j j | ƒ t d | d <|  j  j | ƒ | d rr |  j  j j ƒ  t	 | d <n  d  S(   Nu   mathmlu	   namespaceu   selfClosingu   selfClosingAcknowledged(
   R3   R  R@   R…   RŒ   R   R“   R_   RÈ   RC   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRò   ó  s    
c         S` sv   |  j  j ƒ  |  j j | ƒ |  j j | ƒ t d | d <|  j  j | ƒ | d rr |  j  j j ƒ  t	 | d <n  d  S(   Nu   svgu	   namespaceu   selfClosingu   selfClosingAcknowledged(
   R3   R  R@   RŠ   RŒ   R   R“   R_   RÈ   RC   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRó   ÿ  s    
c         S` s"   |  j  j d i | d d 6ƒ d S(   u5   Elements that should be children of other elements that have a
            different insertion mode; here they are ignored
            "caption", "col", "colgroup", "frame", "frameset", "head",
            "option", "optgroup", "tbody", "td", "tfoot", "th", "thead",
            "tr", "noscript"
            u   unexpected-start-tag-ignoredu   nameN(   R@   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRô     s    c         S` s!   |  j  j ƒ  |  j  j | ƒ d  S(   N(   R3   R  R“   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR»     s    c         S` så   |  j  j d d d ƒsa |  j t d d ƒ ƒ |  j j d i d d 6ƒ |  j t d d ƒ ƒ n€ |  j  j d ƒ |  j  j d j	 d k r§ |  j j d i d d 6ƒ n  |  j  j j
 ƒ  } x% | j	 d k rà |  j  j j
 ƒ  } q¼ Wd  S(	   Nu   pR  u   buttonu   StartTagu   unexpected-end-tagu   nameu   EndTagiÿÿÿÿ(   R3   R  RÙ   R·   R@   R`   Rù   R   R_   R;   RÈ   (   R9   Ru   R�   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRù     s    c         S` s±   |  j  j d ƒ s# |  j j ƒ  d  S|  j  j d j d k r— xX |  j  j d D]C } | j t d ƒ k rM |  j j d i d d 6| j d 6ƒ PqM qM Wn  |  j j d |  j _ d  S(   Nu   bodyiÿÿÿÿi   u   ddu   dtu   liu   optgroupu   optionu   pu   rpu   rtu   tbodyu   tdu   tfootu   thu   theadu   tru   htmlu$   expected-one-end-tag-but-got-anotheru   expectedNameu   gotNameu	   afterBody(   u   ddu   dtu   liu   optgroupu   optionu   pu   rpu   rtu   tbodyu   tdu   tfootu   thu   theadu   tru   bodyu   html(	   R3   R  R@   R`   R_   R;   Rd   R8   RR   (   R9   Ru   R�   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRõ   %  s    	   	c         S` s-   |  j  j d ƒ r) |  j t d ƒ ƒ | Sd  S(   Nu   body(   R3   R  Rõ   R·   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRö   7  s    c         S` sÔ   | d d k r |  j  |  _ n  |  j j | d ƒ } | rK |  j j ƒ  n  |  j j d j | d k r‰ |  j j d i | d d 6ƒ n  | rÐ |  j j j	 ƒ  } x, | j | d k rÌ |  j j j	 ƒ  } q¤ Wn  d  S(   Nu   nameu   preiÿÿÿÿu   end-tag-too-early(
   R×   Rf   R3   R  R   R_   R;   R@   R`   RÈ   (   R9   Ru   t   inScopeR�   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR÷   =  s    !c         S` s«   |  j  j } d  |  j  _ | d  k s7 |  j  j | ƒ rT |  j j d i d d 6ƒ nS |  j  j ƒ  |  j  j d | k r” |  j j d i d d 6ƒ n  |  j  j j | ƒ d  S(   Nu   unexpected-end-tagu   formu   nameiÿÿÿÿu   end-tag-too-early-ignored(	   R3   R  R2   R  R@   R`   R   R_   RÕ   (   R9   Ru   R�   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRø   K  s    c         S` só   | d d k r d } n d  } |  j j | d d | ƒs\ |  j j d i | d d 6ƒ n“ |  j j d | d ƒ |  j j d j | d k r± |  j j d i | d d 6ƒ n  |  j j j ƒ  } x) | j | d k rî |  j j j ƒ  } qÆ Wd  S(	   Nu   nameu   liu   listR  u   unexpected-end-tagt   excludeiÿÿÿÿu   end-tag-too-early(	   R2   R3   R  R@   R`   R   R_   R;   RÈ   (   R9   Ru   R  R�   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRú   X  s    	!	c         S` s×   x1 t  D]) } |  j j | ƒ r |  j j ƒ  Pq q W|  j j d j | d k rr |  j j d i | d d 6ƒ n  x^ t  D]V } |  j j | ƒ ry |  j j j ƒ  } x% | j t  k rÊ |  j j j ƒ  } q¦ WPqy qy Wd  S(   Niÿÿÿÿu   nameu   end-tag-too-early(	   R   R3   R  R   R_   R;   R@   R`   RÈ   (   R9   Ru   t   item(    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRû   i  s    !c      	   S` s3  d } x&| d k  r.| d 7} |  j  j | d ƒ } | sd | |  j  j k ru |  j  j | j ƒ ru |  j | ƒ d S| |  j  j k r¼ |  j j d i | d d 6ƒ |  j  j j	 | ƒ d S|  j  j | j ƒ só |  j j d i | d d 6ƒ d S| |  j  j d k r*|  j j d	 i | d d 6ƒ n  |  j  j j
 | ƒ } d } x1 |  j  j | D] } | j t k rV| } PqVqVW| d k rÓ|  j  j j ƒ  } x" | | k r»|  j  j j ƒ  } qšW|  j  j j	 | ƒ d S|  j  j | d } |  j  j j
 | ƒ } | }	 }
 d } |  j  j j
 |
 ƒ } x| d
 k  r9| d 7} | d 8} |  j  j | }
 |
 |  j  j k r|  j  j j	 |
 ƒ q$n  |
 | k r�Pn  |	 | k r·|  j  j j
 |
 ƒ d } n  |
 j ƒ  } | |  j  j |  j  j j
 |
 ƒ <| |  j  j |  j  j j
 |
 ƒ <| }
 |	 j r#|	 j j |	 ƒ n  |
 j |	 ƒ |
 }	 q$W|	 j rV|	 j j |	 ƒ n  | j t d ƒ k r“|  j  j ƒ  \ } } | j |	 | ƒ n | j |	 ƒ | j ƒ  } | j | ƒ | j | ƒ |  j  j j	 | ƒ |  j  j j | | ƒ |  j  j j	 | ƒ |  j  j j |  j  j j
 | ƒ d | ƒ q	 Wd S(   u)   The much-feared adoption agency algorithmi    i   i   u   nameNu   adoption-agency-1.2u   adoption-agency-4.4iÿÿÿÿu   adoption-agency-1.3i   u   tableu   tbodyu   tfootu   theadu   tr(   u   tableu   tbodyu   tfootu   theadu   tr(   R3   R  R_   R  R;   R¾   R@   R`   R  RÕ   t   indexR2   R  R   RÈ   t	   cloneNodeR  R  t   appendChildRd   t   getTableMisnestedNodePositiont   insertBeforet   reparentChildrent   insert(   R9   Ru   t   outerLoopCountert   formattingElementt   afeIndext   furthestBlockR[   t   commonAncestort   bookmarkt   lastNodeR�   t   innerLoopCounterR$  t   cloneR  R(  (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRü   x  sŠ    

	!



	
	c         S` sÌ   |  j  j | d ƒ r& |  j  j ƒ  n  |  j  j d j | d k rd |  j j d i | d d 6ƒ n  |  j  j | d ƒ rÈ |  j  j j ƒ  } x) | j | d k r· |  j  j j ƒ  } q� W|  j  j ƒ  n  d  S(   Nu   nameiÿÿÿÿu   end-tag-too-early(	   R3   R  R   R_   R;   R@   R`   RÈ   t   clearActiveFormattingElements(   R9   Ru   R[   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRý     s    !c         S` s[   |  j  j d i d d 6d d 6ƒ |  j j ƒ  |  j j t d d ƒ ƒ |  j j j ƒ  d  S(   Nu   unexpected-end-tag-treated-asu   bru   originalNameu
   br elementu   newNameu   StartTag(   R@   R`   R3   R  R“   R·   R_   RÈ   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRþ   '  s
    c         S` sä   xÝ |  j  j d  d  d … D]Â } | j | d k r« |  j  j d | d ƒ |  j  j d j | d k rˆ |  j j d i | d d 6ƒ n  x |  j  j j ƒ  | k r¦ q‹ WPq | j t k r |  j j d i | d d 6ƒ Pq q Wd  S(   Niÿÿÿÿu   nameR"  u   unexpected-end-tag(	   R3   R_   R;   R   R@   R`   RÈ   R  R   (   R9   Ru   R�   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR¾   .  s     !(4   R.   R/   R=   R  R
  Rl   R  Re   Rf   RØ   RÒ   RÓ   RÙ   RÛ   RÜ   RÝ   RÞ   RÚ   Rß   Rà   Rá   Râ   Rã   Rä   Rå   Ræ   Rè   Rç   Ré   Rê   Rë   Rì   Rí   Rî   Rñ   Rï   Rð   Rò   Ró   Rô   R»   Rù   Rõ   Rö   R÷   Rø   Rú   Rû   Rü   Rý   Rþ   R¾   (    (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRÖ   g  sd   F			
																
										 																			£		t	   TextPhasec           ` sD   e  Z ‡  f d  †  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         ` se   ˆ  j  |  | | ƒ t j g  ƒ |  _ |  j |  j _ t j d |  j f g ƒ |  _ |  j |  j _ d  S(   Nu   script(	   R=   R   R¹   Rª   R»   R¼   t   endTagScriptR­   R¾   (   R9   R@   R3   (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR=   =  s    c         S` s   |  j  j | d ƒ d  S(   Nu   data(   R3   R©   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRe   E  s    c         S` sM   |  j  j d i |  j j d j d 6ƒ |  j j j ƒ  |  j  j |  j  _ t S(   Nu&   expected-named-closing-tag-but-got-eofiÿÿÿÿu   name(	   R@   R`   R3   R_   R;   RÈ   R”   RR   RC   (   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRl   H  s
    c         S` s   t  s t d | d ƒ ‚ d  S(   Nu4   Tried to process start tag %s in RCDATA/RAWTEXT modeu   name(   RI   Rm   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR»   O  s    c         S` s=   |  j  j j ƒ  } | j d k s' t ‚ |  j j |  j _ d  S(   Nu   script(   R3   R_   RÈ   R;   Rm   R@   R”   RR   (   R9   Ru   R�   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR6  R  s    c         S` s&   |  j  j j ƒ  |  j j |  j _ d  S(   N(   R3   R_   RÈ   R@   R”   RR   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR¾   Y  s    (   R.   R/   R=   Re   Rl   R»   R6  R¾   (    (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR5  <  s   				t   InTablePhasec           ` s¹   e  Z ‡  f d  †  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         ` sé   ˆ  j  |  | | ƒ t j d |  j f d |  j f d |  j f d |  j f d |  j f d |  j f d |  j	 f d |  j
 f d |  j f d |  j f g
 ƒ |  _ |  j |  j _ t j d |  j f d |  j f g ƒ |  _ |  j |  j _ d  S(   Nu   htmlu   captionu   colgroupu   colu   tbodyu   tfootu   theadu   tdu   thu   tru   tableu   styleu   scriptu   inputu   formu   body(   u   tbodyu   tfootu   thead(   u   tdu   thu   tr(   u   styleu   script(   u   bodyu   captionu   colu   colgroupu   htmlu   tbodyu   tdu   tfootu   thu   theadu   tr(   R=   R   R¹   R¬   t   startTagCaptiont   startTagColgroupt   startTagColt   startTagRowGroupt   startTagImplyTbodyRå   t   startTagStyleScriptRè   RÜ   Rª   R»   R¼   t   endTagTablet   endTagIgnoreR­   R¾   (   R9   R@   R3   (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR=   _  s$     c         S` s4   x- |  j  j d j d k r/ |  j  j j ƒ  q Wd  S(   Niÿÿÿÿu   tableu   html(   u   tableu   html(   R3   R_   R;   RÈ   (   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyt   clearStackToTableContextw  s    c         S` sB   |  j  j d j d k r, |  j j d ƒ n |  j j s> t ‚ d  S(   Niÿÿÿÿu   htmlu   eof-in-table(   R3   R_   R;   R@   R`   RF   Rm   (   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRl   €  s    c         S` sH   |  j  j } |  j  j d |  j  _ | |  j  j _ |  j  j j | ƒ d  S(   Nu   inTableText(   R@   RR   R8   R”   Rf   (   R9   Ru   R”   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRf   ‡  s    c         S` sH   |  j  j } |  j  j d |  j  _ | |  j  j _ |  j  j j | ƒ d  S(   Nu   inTableText(   R@   RR   R8   R”   Re   (   R9   Ru   R”   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRe   �  s    c         S` s3   t  |  j _ |  j j d j | ƒ t |  j _ d  S(   Nu   inBody(   RC   R3   t   insertFromTableR@   R8   Re   RI   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR©   “  s    c         S` sG   |  j  ƒ  |  j j j t ƒ |  j j | ƒ |  j j d |  j _ d  S(   Nu	   inCaption(	   R@  R3   R  Rk   R   R“   R@   R8   RR   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR8  š  s    
c         S` s4   |  j  ƒ  |  j j | ƒ |  j j d |  j _ d  S(   Nu   inColumnGroup(   R@  R3   R“   R@   R8   RR   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR9     s    
c         S` s   |  j  t d d ƒ ƒ | S(   Nu   colgroupu   StartTag(   R9  R·   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR:  ¥  s    c         S` s4   |  j  ƒ  |  j j | ƒ |  j j d |  j _ d  S(   Nu   inTableBody(   R@  R3   R“   R@   R8   RR   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR;  ©  s    
c         S` s   |  j  t d d ƒ ƒ | S(   Nu   tbodyu   StartTag(   R;  R·   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR<  ®  s    c         S` sN   |  j  j d i d d 6d d 6ƒ |  j  j j t d ƒ ƒ |  j  j sJ | Sd  S(   Nu$   unexpected-start-tag-implies-end-tagu   tableu	   startNameu   endName(   R@   R`   RR   Rh   R·   RF   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRå   ²  s
    c         S` s   |  j  j d j | ƒ S(   Nu   inHead(   R@   R8   Rg   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR=  ¹  s    c         S` sq   d | d k r` | d d j  t ƒ d k r` |  j j d ƒ |  j j | ƒ |  j j j ƒ  n |  j | ƒ d  S(   Nu   typeu   datau   hiddenu    unexpected-hidden-input-in-table(	   RZ   R   R@   R`   R3   R“   R_   RÈ   R»   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRè   ¼  s    c         S` s_   |  j  j d ƒ |  j j d  k r[ |  j j | ƒ |  j j d |  j _ |  j j j ƒ  n  d  S(   Nu   unexpected-form-in-tableiÿÿÿÿ(   R@   R`   R3   R  R2   R“   R_   RÈ   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRÜ   Æ  s
    c         S` sQ   |  j  j d i | d d 6ƒ t |  j _ |  j  j d j | ƒ t |  j _ d  S(   Nu)   unexpected-start-tag-implies-table-voodoou   nameu   inBody(   R@   R`   RC   R3   RA  R8   Rg   RI   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR»   Í  s    c         S` sâ   |  j  j d d d ƒr¿ |  j  j ƒ  |  j  j d j d k ro |  j j d i d d 6|  j  j d j d 6ƒ n  x- |  j  j d j d k rž |  j  j j ƒ  qr W|  j  j j ƒ  |  j j ƒ  n |  j j	 sÑ t
 ‚ |  j j ƒ  d  S(   Nu   tableR  iÿÿÿÿu   end-tag-too-early-namedu   gotNameu   expectedName(   R3   R  R   R_   R;   R@   R`   RÈ   RT   RF   Rm   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR>  Ô  s    
c         S` s"   |  j  j d i | d d 6ƒ d  S(   Nu   unexpected-end-tagu   name(   R@   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR?  ä  s    c         S` sQ   |  j  j d i | d d 6ƒ t |  j _ |  j  j d j | ƒ t |  j _ d  S(   Nu'   unexpected-end-tag-implies-table-voodoou   nameu   inBody(   R@   R`   RC   R3   RA  R8   Rh   RI   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR¾   ç  s    (   R.   R/   R=   R@  Rl   Rf   Re   R©   R8  R9  R:  R;  R<  Rå   R=  Rè   RÜ   R»   R>  R?  R¾   (    (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR7  ]  s&   														
				t   InTableTextPhasec           ` sV   e  Z ‡  f d  †  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 RS(   c         ` s)   ˆ  j  |  | | ƒ d  |  _ g  |  _ d  S(   N(   R=   R2   R”   t   characterTokens(   R9   R@   R3   (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR=   ï  s    	c         S` s¦   d j  g  |  j D] } | d ^ q ƒ } t g  | D] } | t k ^ q3 ƒ r€ i t d d 6| d 6} |  j j d j | ƒ n | r™ |  j j | ƒ n  g  |  _ d  S(   Nu    u   datau
   Charactersu   typeu   inTable(	   t   joinRC  R  R
   R   R@   R8   R©   R3   (   R9   R#  RÎ   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyt   flushCharactersô  s    )%c         S` s   |  j  ƒ  |  j |  j _ | S(   N(   RE  R”   R@   RR   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRi   ý  s    
c         S` s   |  j  ƒ  |  j |  j _ t S(   N(   RE  R”   R@   RR   RC   (   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRl     s    
c         S` s(   | d d k r d  S|  j  j | ƒ d  S(   Nu   datau    (   RC  Rk   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRe     s    c         S` s   |  j  j | ƒ d  S(   N(   RC  Rk   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRf     s    c         S` s   |  j  ƒ  |  j |  j _ | S(   N(   RE  R”   R@   RR   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRg     s    
c         S` s   |  j  ƒ  |  j |  j _ | S(   N(   RE  R”   R@   RR   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRh     s    
(
   R.   R/   R=   RE  Ri   Rl   Re   Rf   Rg   Rh   (    (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRB  î  s   							t   InCaptionPhasec           ` sh   e  Z ‡  f d  †  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z RS(
   c         ` s•   ˆ  j  |  | | ƒ t j d |  j f d |  j f g ƒ |  _ |  j |  j _ t j d |  j f d |  j	 f d |  j
 f g ƒ |  _ |  j |  j _ d  S(   Nu   htmlu   captionu   colu   colgroupu   tbodyu   tdu   tfootu   thu   theadu   tru   tableu   body(	   u   captionu   colu   colgroupu   tbodyu   tdu   tfootu   thu   theadu   tr(
   u   bodyu   colu   colgroupu   htmlu   tbodyu   tdu   tfootu   thu   theadu   tr(   R=   R   R¹   R¬   t   startTagTableElementRª   R»   R¼   t   endTagCaptionR>  R?  R­   R¾   (   R9   R@   R3   (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR=     s      c         S` s   |  j  j d d d ƒS(   Nu   captionR  u   table(   R3   R  (   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyt   ignoreEndTagCaption/  s    c         S` s   |  j  j d j ƒ  d  S(   Nu   inBody(   R@   R8   Rl   (   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRl   2  s    c         S` s   |  j  j d j | ƒ S(   Nu   inBody(   R@   R8   Re   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRe   5  s    c         S` s@   |  j  j ƒ  |  j ƒ  } |  j  j j t d ƒ ƒ | s< | Sd  S(   Nu   caption(   R@   R`   RI  RR   Rh   R·   (   R9   Ru   t   ignoreEndTag(    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRG  8  s
    c         S` s   |  j  j d j | ƒ S(   Nu   inBody(   R@   R8   Rg   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR»   @  s    c         S` sì   |  j  ƒ  sÉ |  j j ƒ  |  j j d j d k rc |  j j d i d d 6|  j j d j d 6ƒ n  x- |  j j d j d k r’ |  j j j ƒ  qf W|  j j j ƒ  |  j j ƒ  |  j j	 d |  j _
 n |  j j sÛ t ‚ |  j j ƒ  d  S(   Niÿÿÿÿu   captionu$   expected-one-end-tag-but-got-anotheru   gotNameu   expectedNameu   inTable(   RI  R3   R   R_   R;   R@   R`   RÈ   R4  R8   RR   RF   Rm   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRH  C  s    
c         S` s@   |  j  j ƒ  |  j ƒ  } |  j  j j t d ƒ ƒ | s< | Sd  S(   Nu   caption(   R@   R`   RI  RR   Rh   R·   (   R9   Ru   RJ  (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR>  U  s
    c         S` s"   |  j  j d i | d d 6ƒ d  S(   Nu   unexpected-end-tagu   name(   R@   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR?  \  s    c         S` s   |  j  j d j | ƒ S(   Nu   inBody(   R@   R8   Rh   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR¾   _  s    (   R.   R/   R=   RI  Rl   Re   RG  R»   RH  R>  R?  R¾   (    (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRF    s   								t   InColumnGroupPhasec           ` s_   e  Z ‡  f d  †  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 RS(	   c         ` s‰   ˆ  j  |  | | ƒ t j d |  j f d |  j f g ƒ |  _ |  j |  j _ t j d |  j f d |  j	 f g ƒ |  _
 |  j |  j
 _ d  S(   Nu   htmlu   colu   colgroup(   R=   R   R¹   R¬   R:  Rª   R»   R¼   t   endTagColgroupt	   endTagColR­   R¾   (   R9   R@   R3   (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR=   e  s    c         S` s   |  j  j d j d k S(   Niÿÿÿÿu   html(   R3   R_   R;   (   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyt   ignoreEndTagColgroupt  s    c         S` s\   |  j  j d j d k r/ |  j j s+ t ‚ d  S|  j ƒ  } |  j t d ƒ ƒ | sX t	 Sd  S(   Niÿÿÿÿu   htmlu   colgroup(
   R3   R_   R;   R@   RF   Rm   RN  RL  R·   RC   (   R9   RJ  (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRl   w  s    c         S` s-   |  j  ƒ  } |  j t d ƒ ƒ | s) | Sd  S(   Nu   colgroup(   RN  RL  R·   (   R9   Ru   RJ  (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRe   �  s    c         S` s$   |  j  j | ƒ |  j  j j ƒ  d  S(   N(   R3   R“   R_   RÈ   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR:  ‡  s    c         S` s-   |  j  ƒ  } |  j t d ƒ ƒ | s) | Sd  S(   Nu   colgroup(   RN  RL  R·   (   R9   Ru   RJ  (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR»   ‹  s    c         S` sX   |  j  ƒ  r. |  j j s t ‚ |  j j ƒ  n& |  j j j ƒ  |  j j d |  j _	 d  S(   Nu   inTable(
   RN  R@   RF   Rm   R`   R3   R_   RÈ   R8   RR   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRL  ‘  s
    c         S` s   |  j  j d i d d 6ƒ d  S(   Nu
   no-end-tagu   colu   name(   R@   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRM  š  s    c         S` s-   |  j  ƒ  } |  j t d ƒ ƒ | s) | Sd  S(   Nu   colgroup(   RN  RL  R·   (   R9   Ru   RJ  (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR¾   �  s    (   R.   R/   R=   RN  Rl   Re   R:  R»   RL  RM  R¾   (    (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRK  b  s   		
						t   InTableBodyPhasec           ` sƒ   e  Z ‡  f d  †  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d „  Z RS(   c         ` s­   ˆ  j  |  | | ƒ t j d |  j f d |  j f d |  j f d |  j f g ƒ |  _ |  j |  j _	 t j d |  j
 f d |  j f d |  j f g ƒ |  _ |  j |  j _	 d  S(   Nu   htmlu   tru   tdu   thu   captionu   colu   colgroupu   tbodyu   tfootu   theadu   tableu   body(   u   tdu   th(   u   captionu   colu   colgroupu   tbodyu   tfootu   thead(   u   tbodyu   tfootu   thead(   u   bodyu   captionu   colu   colgroupu   htmlu   tdu   thu   tr(   R=   R   R¹   R¬   t
   startTagTrt   startTagTableCellt   startTagTableOtherRª   R»   R¼   t   endTagTableRowGroupR>  R?  R­   R¾   (   R9   R@   R3   (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR=   ¥  s     c         S` sb   x- |  j  j d j d k r/ |  j  j j ƒ  q W|  j  j d j d k r^ |  j j s^ t ‚ n  d  S(   Niÿÿÿÿu   tbodyu   tfootu   theadu   html(   u   tbodyu   tfootu   theadu   html(   R3   R_   R;   RÈ   R@   RF   Rm   (   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyt   clearStackToTableBodyContext¹  s
    	c         S` s   |  j  j d j ƒ  d  S(   Nu   inTable(   R@   R8   Rl   (   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRl   Ã  s    c         S` s   |  j  j d j | ƒ S(   Nu   inTable(   R@   R8   Rf   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRf   Æ  s    c         S` s   |  j  j d j | ƒ S(   Nu   inTable(   R@   R8   Re   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRe   É  s    c         S` s4   |  j  ƒ  |  j j | ƒ |  j j d |  j _ d  S(   Nu   inRow(   RT  R3   R“   R@   R8   RR   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRP  Ì  s    
c         S` s8   |  j  j d i | d d 6ƒ |  j t d d ƒ ƒ | S(   Nu   unexpected-cell-in-table-bodyu   nameu   tru   StartTag(   R@   R`   RP  R·   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRQ  Ñ  s    c         S` s™   |  j  j d d d ƒsH |  j  j d d d ƒsH |  j  j d d d ƒrv |  j ƒ  |  j t |  j  j d j ƒ ƒ | S|  j j sˆ t	 ‚ |  j j
 ƒ  d  S(   Nu   tbodyR  u   tableu   theadu   tfootiÿÿÿÿ(   R3   R  RT  RS  R·   R_   R;   R@   RF   Rm   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRR  ×  s    
c         S` s   |  j  j d j | ƒ S(   Nu   inTable(   R@   R8   Rg   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR»   å  s    c         S` sq   |  j  j | d d d ƒrO |  j ƒ  |  j  j j ƒ  |  j j d |  j _ n |  j j d i | d d 6ƒ d  S(   Nu   nameR  u   tableu   inTableu    unexpected-end-tag-in-table-body(	   R3   R  RT  R_   RÈ   R@   R8   RR   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRS  è  s    
c         S` s™   |  j  j d d d ƒsH |  j  j d d d ƒsH |  j  j d d d ƒrv |  j ƒ  |  j t |  j  j d j ƒ ƒ | S|  j j sˆ t	 ‚ |  j j
 ƒ  d  S(   Nu   tbodyR  u   tableu   theadu   tfootiÿÿÿÿ(   R3   R  RT  RS  R·   R_   R;   R@   RF   Rm   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR>  ñ  s    
c         S` s"   |  j  j d i | d d 6ƒ d  S(   Nu    unexpected-end-tag-in-table-bodyu   name(   R@   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR?  þ  s    c         S` s   |  j  j d j | ƒ S(   Nu   inTable(   R@   R8   Rh   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR¾     s    (   R.   R/   R=   RT  Rl   Rf   Re   RP  RQ  RR  R»   RS  R>  R?  R¾   (    (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRO  £  s   	
											t
   InRowPhasec           ` sŒ   e  Z ‡  f d  †  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d „  Z d „  Z RS(   c         ` s­   ˆ  j  |  | | ƒ t j d |  j f d |  j f d |  j f g ƒ |  _ |  j |  j _ t j d
 |  j	 f d |  j
 f d |  j f d |  j f g ƒ |  _ |  j |  j _ d  S(   Nu   htmlu   tdu   thu   captionu   colu   colgroupu   tbodyu   tfootu   theadu   tru   tableu   body(   u   tdu   th(   u   captionu   colu   colgroupu   tbodyu   tfootu   theadu   tr(   u   tbodyu   tfootu   thead(   u   bodyu   captionu   colu   colgroupu   htmlu   tdu   th(   R=   R   R¹   R¬   RQ  RR  Rª   R»   R¼   t   endTagTrR>  RS  R?  R­   R¾   (   R9   R@   R3   (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR=     s     c         S` s[   xT |  j  j d j d k rV |  j j d i |  j  j d j d 6ƒ |  j  j j ƒ  q Wd  S(   Niÿÿÿÿu   tru   htmlu'   unexpected-implied-end-tag-in-table-rowu   name(   u   tru   html(   R3   R_   R;   R@   R`   RÈ   (   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyt   clearStackToTableRowContext  s    c         S` s   |  j  j d d d ƒS(   Nu   trR  u   table(   R3   R  (   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyt   ignoreEndTagTr!  s    c         S` s   |  j  j d j ƒ  d  S(   Nu   inTable(   R@   R8   Rl   (   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRl   %  s    c         S` s   |  j  j d j | ƒ S(   Nu   inTable(   R@   R8   Rf   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRf   (  s    c         S` s   |  j  j d j | ƒ S(   Nu   inTable(   R@   R8   Re   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRe   +  s    c         S` sG   |  j  ƒ  |  j j | ƒ |  j j d |  j _ |  j j j t ƒ d  S(   Nu   inCell(	   RW  R3   R“   R@   R8   RR   R  Rk   R   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRQ  .  s    
c         S` s-   |  j  ƒ  } |  j t d ƒ ƒ | s) | Sd  S(   Nu   tr(   RX  RV  R·   (   R9   Ru   RJ  (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRR  4  s    c         S` s   |  j  j d j | ƒ S(   Nu   inTable(   R@   R8   Rg   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR»   ;  s    c         S` sb   |  j  ƒ  s? |  j ƒ  |  j j j ƒ  |  j j d |  j _ n |  j j sQ t	 ‚ |  j j
 ƒ  d  S(   Nu   inTableBody(   RX  RW  R3   R_   RÈ   R@   R8   RR   RF   Rm   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRV  >  s    
c         S` s-   |  j  ƒ  } |  j t d ƒ ƒ | s) | Sd  S(   Nu   tr(   RX  RV  R·   (   R9   Ru   RJ  (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR>  H  s    c         S` sD   |  j  j | d d d ƒr3 |  j t d ƒ ƒ | S|  j j ƒ  d  S(   Nu   nameR  u   tableu   tr(   R3   R  RV  R·   R@   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRS  P  s    c         S` s"   |  j  j d i | d d 6ƒ d  S(   Nu   unexpected-end-tag-in-table-rowu   name(   R@   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR?  W  s    c         S` s   |  j  j d j | ƒ S(   Nu   inTable(   R@   R8   Rh   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR¾   [  s    (   R.   R/   R=   RW  RX  Rl   Rf   Re   RQ  RR  R»   RV  R>  RS  R?  R¾   (    (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRU    s   									
			t   InCellPhasec           ` sh   e  Z ‡  f d  †  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z RS(
   c         ` s•   ˆ  j  |  | | ƒ t j d |  j f d |  j f g ƒ |  _ |  j |  j _ t j d |  j f d |  j	 f d |  j
 f g ƒ |  _ |  j |  j _ d  S(   Nu   htmlu   captionu   colu   colgroupu   tbodyu   tdu   tfootu   thu   theadu   tru   bodyu   table(	   u   captionu   colu   colgroupu   tbodyu   tdu   tfootu   thu   theadu   tr(   u   tdu   th(   u   bodyu   captionu   colu   colgroupu   html(   u   tableu   tbodyu   tfootu   theadu   tr(   R=   R   R¹   R¬   RR  Rª   R»   R¼   t   endTagTableCellR?  t   endTagImplyR­   R¾   (   R9   R@   R3   (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR=   `  s     c         S` s`   |  j  j d d d ƒr. |  j t d ƒ ƒ n. |  j  j d d d ƒr\ |  j t d ƒ ƒ n  d  S(   Nu   tdR  u   tableu   th(   R3   R  RZ  R·   (   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyt	   closeCellq  s    c         S` s   |  j  j d j ƒ  d  S(   Nu   inBody(   R@   R8   Rl   (   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRl   x  s    c         S` s   |  j  j d j | ƒ S(   Nu   inBody(   R@   R8   Re   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRe   {  s    c         S` sa   |  j  j d d d ƒs0 |  j  j d d d ƒr> |  j ƒ  | S|  j j sP t ‚ |  j j ƒ  d  S(   Nu   tdR  u   tableu   th(   R3   R  R\  R@   RF   Rm   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRR  ~  s    
c         S` s   |  j  j d j | ƒ S(   Nu   inBody(   R@   R8   Rg   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR»   ˆ  s    c         S` sü   |  j  j | d d d ƒrÚ |  j  j | d ƒ |  j  j d j | d k r¤ |  j j d i | d d 6ƒ xF t r  |  j  j j ƒ  } | j | d k rn Pqn qn Wn |  j  j j ƒ  |  j  j	 ƒ  |  j j
 d |  j _ n |  j j d i | d d 6ƒ d  S(   Nu   nameR  u   tableiÿÿÿÿu   unexpected-cell-end-tagu   inRowu   unexpected-end-tag(   R3   R  R   R_   R;   R@   R`   RC   RÈ   R4  R8   RR   (   R9   Ru   R�   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRZ  ‹  s    	c         S` s"   |  j  j d i | d d 6ƒ d  S(   Nu   unexpected-end-tagu   name(   R@   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR?  œ  s    c         S` s;   |  j  j | d d d ƒr* |  j ƒ  | S|  j j ƒ  d  S(   Nu   nameR  u   table(   R3   R  R\  R@   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR[  Ÿ  s    
c         S` s   |  j  j d j | ƒ S(   Nu   inBody(   R@   R8   Rh   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR¾   §  s    (   R.   R/   R=   R\  Rl   Re   RR  R»   RZ  R?  R[  R¾   (    (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRY  ^  s   				
				t   InSelectPhasec           ` sƒ   e  Z ‡  f d  †  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d „  Z RS(   c         ` sÅ   ˆ  j  |  | | ƒ t j d |  j f d |  j f d |  j f d |  j f d	 |  j f d |  j f g ƒ |  _	 |  j
 |  j	 _ t j d |  j f d |  j f d |  j f g ƒ |  _ |  j |  j _ d  S(
   Nu   htmlu   optionu   optgroupu   selectu   inputu   keygenu   textareau   script(   u   inputu   keygenu   textarea(   R=   R   R¹   R¬   t   startTagOptiont   startTagOptgroupRï   Rè   RÃ   Rª   R»   R¼   t   endTagOptiont   endTagOptgroupt   endTagSelectR­   R¾   (   R9   R@   R3   (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR=   «  s    c         S` sB   |  j  j d j d k r, |  j j d ƒ n |  j j s> t ‚ d  S(   Niÿÿÿÿu   htmlu   eof-in-select(   R3   R_   R;   R@   R`   RF   Rm   (   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRl   À  s    c         S` s,   | d d k r d  S|  j  j | d ƒ d  S(   Nu   datau    (   R3   R©   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRe   Æ  s    c         S` s@   |  j  j d j d k r, |  j  j j ƒ  n  |  j  j | ƒ d  S(   Niÿÿÿÿu   option(   R3   R_   R;   RÈ   R“   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR^  Ë  s    c         S` sl   |  j  j d j d k r, |  j  j j ƒ  n  |  j  j d j d k rX |  j  j j ƒ  n  |  j  j | ƒ d  S(   Niÿÿÿÿu   optionu   optgroup(   R3   R_   R;   RÈ   R“   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR_  Ñ  s
    c         S` s'   |  j  j d ƒ |  j t d ƒ ƒ d  S(   Nu   unexpected-select-in-selectu   select(   R@   R`   Rb  R·   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRï   Ø  s    c         S` sU   |  j  j d ƒ |  j j d d d ƒr? |  j t d ƒ ƒ | S|  j  j sQ t ‚ d  S(   Nu   unexpected-input-in-selectu   selectR  (   R@   R`   R3   R  Rb  R·   RF   Rm   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRè   Ü  s
    c         S` s   |  j  j d j | ƒ S(   Nu   inHead(   R@   R8   Rg   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRÃ   ä  s    c         S` s"   |  j  j d i | d d 6ƒ d  S(   Nu   unexpected-start-tag-in-selectu   name(   R@   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR»   ç  s    c         S` sJ   |  j  j d j d k r, |  j  j j ƒ  n |  j j d i d d 6ƒ d  S(   Niÿÿÿÿu   optionu   unexpected-end-tag-in-selectu   name(   R3   R_   R;   RÈ   R@   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR`  ë  s    c         S` s�   |  j  j d j d k rE |  j  j d j d k rE |  j  j j ƒ  n  |  j  j d j d k rq |  j  j j ƒ  n |  j j d i d d 6ƒ d  S(   Niÿÿÿÿu   optioniþÿÿÿu   optgroupu   unexpected-end-tag-in-selectu   name(   R3   R_   R;   RÈ   R@   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRa  ò  s    c         S` s…   |  j  j d d d ƒrb |  j  j j ƒ  } x% | j d k rQ |  j  j j ƒ  } q- W|  j j ƒ  n |  j j st t ‚ |  j j	 ƒ  d  S(   Nu   selectR  (
   R3   R  R_   RÈ   R;   R@   RT   RF   Rm   R`   (   R9   Ru   R�   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRb  ÿ  s    c         S` s"   |  j  j d i | d d 6ƒ d  S(   Nu   unexpected-end-tag-in-selectu   name(   R@   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR¾   
	  s    (   R.   R/   R=   Rl   Re   R^  R_  Rï   Rè   RÃ   R»   R`  Ra  Rb  R¾   (    (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR]  ª  s   											t   InSelectInTablePhasec           ` sM   e  Z ‡  f d  †  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c      	   ` sq   ˆ  j  |  | | ƒ t j d	 |  j f g ƒ |  _ |  j |  j _ t j d
 |  j f g ƒ |  _ |  j	 |  j _ d  S(   Nu   captionu   tableu   tbodyu   tfootu   theadu   tru   tdu   th(   u   captionu   tableu   tbodyu   tfootu   theadu   tru   tdu   th(   u   captionu   tableu   tbodyu   tfootu   theadu   tru   tdu   th(
   R=   R   R¹   Rå   Rª   R»   R¼   R>  R­   R¾   (   R9   R@   R3   (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR=   	  s    c         S` s   |  j  j d j ƒ  d  S(   Nu   inSelect(   R@   R8   Rl   (   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRl   	  s    c         S` s   |  j  j d j | ƒ S(   Nu   inSelect(   R@   R8   Re   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRe   !	  s    c         S` s5   |  j  j d i | d d 6ƒ |  j t d ƒ ƒ | S(   Nu5   unexpected-table-element-start-tag-in-select-in-tableu   nameu   select(   R@   R`   R¾   R·   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRå   $	  s    c         S` s   |  j  j d j | ƒ S(   Nu   inSelect(   R@   R8   Rg   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR»   )	  s    c         S` sU   |  j  j d i | d d 6ƒ |  j j | d d d ƒrQ |  j t d ƒ ƒ | Sd  S(   Nu3   unexpected-table-element-end-tag-in-select-in-tableu   nameR  u   tableu   select(   R@   R`   R3   R  R¾   R·   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR>  ,	  s    c         S` s   |  j  j d j | ƒ S(   Nu   inSelect(   R@   R8   Rh   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR¾   2	  s    (	   R.   R/   R=   Rl   Re   Rå   R»   R>  R¾   (    (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRc  	  s   					t   InForeignContentPhasec        -   ` sÑ   e  Z e 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# d$ d% d& d' d( d) d* d+ g, ƒ Z ‡  f d, †  Z d- „  Z ‡  f d. †  Z d/ „  Z d0 „  Z RS(1   u   bu   bigu
   blockquoteu   bodyu   bru   centeru   codeu   ddu   divu   dlu   dtu   emu   embedu   h1u   h2u   h3u   h4u   h5u   h6u   headu   hru   iu   imgu   liu   listingu   menuu   metau   nobru   olu   pu   preu   rubyu   su   smallu   spanu   strongu   strikeu   subu   supu   tableu   ttu   uu   ulu   varc         ` s   ˆ  j  |  | | ƒ d  S(   N(   R=   (   R9   R@   R3   (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR=   ?	  s    c         S` s+  i$ d d 6d d 6d d 6d d 6d	 d
 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d  6d! d" 6d# d$ 6d% d& 6d' d( 6d) d* 6d+ d, 6d- d. 6d/ d0 6d1 d2 6d3 d4 6d5 d6 6d7 d8 6d9 d: 6d; d< 6d= d> 6d? d@ 6dA dB 6dC dD 6dE dF 6dG dH 6} | dI | k r'| | dI | dI <n  d  S(J   Nu   altGlyphu   altglyphu   altGlyphDefu   altglyphdefu   altGlyphItemu   altglyphitemu   animateColoru   animatecoloru   animateMotionu   animatemotionu   animateTransformu   animatetransformu   clipPathu   clippathu   feBlendu   feblendu   feColorMatrixu   fecolormatrixu   feComponentTransferu   fecomponenttransferu   feCompositeu   fecompositeu   feConvolveMatrixu   feconvolvematrixu   feDiffuseLightingu   fediffuselightingu   feDisplacementMapu   fedisplacementmapu   feDistantLightu   fedistantlightu   feFloodu   fefloodu   feFuncAu   fefuncau   feFuncBu   fefuncbu   feFuncGu   fefuncgu   feFuncRu   fefuncru   feGaussianBluru   fegaussianbluru   feImageu   feimageu   feMergeu   femergeu   feMergeNodeu   femergenodeu   feMorphologyu   femorphologyu   feOffsetu   feoffsetu   fePointLightu   fepointlightu   feSpecularLightingu   fespecularlightingu   feSpotLightu   fespotlightu   feTileu   fetileu   feTurbulenceu   feturbulenceu   foreignObjectu   foreignobjectu   glyphRefu   glyphrefu   linearGradientu   lineargradientu   radialGradientu   radialgradientu   textPathu   textpathu   name(    (   R9   Ru   R‚   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyt   adjustSVGTagNamesB	  sL    

c         ` sf   | d d k r d | d <n5 |  j  j rR t d „  | d Dƒ ƒ rR t |  j  _ n  ˆ  j |  | ƒ d  S(   Nu   datau    u   ï¿½c         s` s   |  ] } | t  k Vq d  S(   N(   R
   (   R™   R  (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pys	   <genexpr>o	  s    (   R@   RW   R  RI   Re   (   R9   Ru   (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRe   k	  s    c         S` sŸ  |  j  j d } | d |  j k s\ | d d k rî t | d j ƒ  ƒ t d d d g ƒ @rî |  j j d i | d d 6ƒ xm |  j  j d j |  j  j k ré |  j j	 |  j  j d ƒ ré |  j j
 |  j  j d ƒ ré |  j  j j ƒ  q} W| S| j t d	 k r|  j j | ƒ n3 | j t d
 k rG|  j | ƒ |  j j | ƒ n  |  j j | ƒ | j | d <|  j  j | ƒ | d r›|  j  j j ƒ  t | d <n  d  S(   Niÿÿÿÿu   nameu   fontu   datau   coloru   faceu   sizeu*   unexpected-html-element-in-foreign-contentu   mathmlu   svgu	   namespaceu   selfClosingu   selfClosingAcknowledged(   R3   R_   t   breakoutElementst   setR‡   R@   R`   RX   Rc   R\   R]   RÈ   R   R…   Re  RŠ   RŒ   R“   RC   (   R9   Ru   Rw   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRg   s	  s.    )
c         S` sQ  t  |  j j ƒ d } |  j j d } | j | d k rZ |  j j d i | d d 6ƒ n  xð t rL| j j t ƒ | d k rþ |  j j	 |  j j
 d k rÃ |  j j	 j ƒ  |  j j	 j |  j _	 n  x. |  j j j ƒ  | k ró |  j j sÆ t ‚ qÆ Wd  } Pn  | d 8} |  j j | } | j |  j j k r3q] q] |  j j	 j | ƒ } Pq] W| S(   Ni   iÿÿÿÿu   nameu   unexpected-end-tagu   inTableText(   Rb   R3   R_   R;   R@   R`   RC   RZ   R   RR   R8   RE  R”   RÈ   Rm   R2   RX   Rc   Rh   (   R9   Ru   t	   nodeIndexR�   Rv   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRh   Ž	  s(    !	
(	   R.   R/   Rd   Rf  R=   Re  Re   Rg   Rh   (    (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRd  5	  s   	)	t   AfterBodyPhasec           ` sV   e  Z ‡  f d  †  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 RS(   c         ` sq   ˆ  j  |  | | ƒ t j d |  j f g ƒ |  _ |  j |  j _ t j d |  j f g ƒ |  _ |  j	 |  j _ d  S(   Nu   html(
   R=   R   R¹   R¬   Rª   R»   R¼   Rö   R­   R¾   (   R9   R@   R3   (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR=   ©	  s    c         S` s   d  S(   N(    (   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRl   ´	  s    c         S` s!   |  j  j | |  j  j d ƒ d  S(   Ni    (   R3   R¨   R_   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRi   ¸	  s    c         S` s*   |  j  j d ƒ |  j  j d |  j  _ | S(   Nu   unexpected-char-after-bodyu   inBody(   R@   R`   R8   RR   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRe   ½	  s    c         S` s   |  j  j d j | ƒ S(   Nu   inBody(   R@   R8   Rg   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR¬   Â	  s    c         S` s8   |  j  j d i | d d 6ƒ |  j  j d |  j  _ | S(   Nu   unexpected-start-tag-after-bodyu   nameu   inBody(   R@   R`   R8   RR   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR»   Å	  s    c         S` s9   |  j  j r |  j  j d ƒ n |  j  j d |  j  _ d  S(   Nu'   unexpected-end-tag-after-body-innerhtmlu   afterAfterBody(   R@   RF   R`   R8   RR   (   R9   R;   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRö   Ë	  s    c         S` s8   |  j  j d i | d d 6ƒ |  j  j d |  j  _ | S(   Nu   unexpected-end-tag-after-bodyu   nameu   inBody(   R@   R`   R8   RR   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR¾   Ñ	  s    (
   R.   R/   R=   Rl   Ri   Re   R¬   R»   Rö   R¾   (    (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRi  ¨	  s   						t   InFramesetPhasec           ` s_   e  Z ‡  f d  †  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 RS(	   c         ` s•   ˆ  j  |  | | ƒ t j d |  j f d |  j f d |  j f d |  j f g ƒ |  _ |  j |  j _	 t j d |  j
 f g ƒ |  _ |  j |  j _	 d  S(   Nu   htmlu   framesetu   frameu   noframes(   R=   R   R¹   R¬   RÓ   t   startTagFramet   startTagNoframesRª   R»   R¼   t   endTagFramesetR­   R¾   (   R9   R@   R3   (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR=   Ù	  s    c         S` sB   |  j  j d j d k r, |  j j d ƒ n |  j j s> t ‚ d  S(   Niÿÿÿÿu   htmlu   eof-in-frameset(   R3   R_   R;   R@   R`   RF   Rm   (   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRl   é	  s    c         S` s   |  j  j d ƒ d  S(   Nu   unexpected-char-in-frameset(   R@   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRe   ï	  s    c         S` s   |  j  j | ƒ d  S(   N(   R3   R“   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRÓ   ò	  s    c         S` s$   |  j  j | ƒ |  j  j j ƒ  d  S(   N(   R3   R“   R_   RÈ   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRk  õ	  s    c         S` s   |  j  j d j | ƒ S(   Nu   inBody(   R@   R8   Rg   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRl  ù	  s    c         S` s"   |  j  j d i | d d 6ƒ d  S(   Nu    unexpected-start-tag-in-framesetu   name(   R@   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR»   ü	  s    c         S` s   |  j  j d j d k r, |  j j d ƒ n |  j  j j ƒ  |  j j r{ |  j  j d j d k r{ |  j j d |  j _ n  d  S(   Niÿÿÿÿu   htmlu)   unexpected-frameset-in-frameset-innerhtmlu   framesetu   afterFrameset(	   R3   R_   R;   R@   R`   RÈ   RF   R8   RR   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRm   
  s    c         S` s"   |  j  j d i | d d 6ƒ d  S(   Nu   unexpected-end-tag-in-framesetu   name(   R@   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR¾   
  s    (   R.   R/   R=   Rl   Re   RÓ   Rk  Rl  R»   Rm  R¾   (    (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRj  ×	  s   							t   AfterFramesetPhasec           ` sM   e  Z ‡  f d  †  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         ` s}   ˆ  j  |  | | ƒ t j d |  j f d |  j f g ƒ |  _ |  j |  j _ t j d |  j f g ƒ |  _	 |  j
 |  j	 _ d  S(   Nu   htmlu   noframes(   R=   R   R¹   R¬   Rl  Rª   R»   R¼   Rö   R­   R¾   (   R9   R@   R3   (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR=   
  s    c         S` s   d  S(   N(    (   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRl    
  s    c         S` s   |  j  j d ƒ d  S(   Nu   unexpected-char-after-frameset(   R@   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRe   $
  s    c         S` s   |  j  j d j | ƒ S(   Nu   inHead(   R@   R8   Rg   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRl  '
  s    c         S` s"   |  j  j d i | d d 6ƒ d  S(   Nu#   unexpected-start-tag-after-framesetu   name(   R@   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR»   *
  s    c         S` s   |  j  j d |  j  _ d  S(   Nu   afterAfterFrameset(   R@   R8   RR   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRö   .
  s    c         S` s"   |  j  j d i | d d 6ƒ d  S(   Nu!   unexpected-end-tag-after-framesetu   name(   R@   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR¾   1
  s    (	   R.   R/   R=   Rl   Re   Rl  R»   Rö   R¾   (    (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRn  
  s   					t   AfterAfterBodyPhasec           ` sV   e  Z ‡  f d  †  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 RS(   c         ` sD   ˆ  j  |  | | ƒ t j d |  j f g ƒ |  _ |  j |  j _ d  S(   Nu   html(   R=   R   R¹   R¬   Rª   R»   R¼   (   R9   R@   R3   (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR=   6
  s    c         S` s   d  S(   N(    (   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRl   >
  s    c         S` s   |  j  j | |  j  j ƒ d  S(   N(   R3   R¨   R¯   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRi   A
  s    c         S` s   |  j  j d j | ƒ S(   Nu   inBody(   R@   R8   Rf   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRf   D
  s    c         S` s*   |  j  j d ƒ |  j  j d |  j  _ | S(   Nu   expected-eof-but-got-charu   inBody(   R@   R`   R8   RR   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRe   G
  s    c         S` s   |  j  j d j | ƒ S(   Nu   inBody(   R@   R8   Rg   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR¬   L
  s    c         S` s8   |  j  j d i | d d 6ƒ |  j  j d |  j  _ | S(   Nu   expected-eof-but-got-start-tagu   nameu   inBody(   R@   R`   R8   RR   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR»   O
  s    c         S` s8   |  j  j d i | d d 6ƒ |  j  j d |  j  _ | S(   Nu   expected-eof-but-got-end-tagu   nameu   inBody(   R@   R`   R8   RR   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRh   U
  s    (
   R.   R/   R=   Rl   Ri   Rf   Re   R¬   R»   Rh   (    (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRo  5
  s   						t   AfterAfterFramesetPhasec           ` s_   e  Z ‡  f d  †  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 RS(	   c         ` sP   ˆ  j  |  | | ƒ t j d |  j f d |  j f g ƒ |  _ |  j |  j _ d  S(   Nu   htmlu   noframes(   R=   R   R¹   R¬   t   startTagNoFramesRª   R»   R¼   (   R9   R@   R3   (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR=   \
  s
    c         S` s   d  S(   N(    (   R9   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRl   e
  s    c         S` s   |  j  j | |  j  j ƒ d  S(   N(   R3   R¨   R¯   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRi   h
  s    c         S` s   |  j  j d j | ƒ S(   Nu   inBody(   R@   R8   Rf   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRf   k
  s    c         S` s   |  j  j d ƒ d  S(   Nu   expected-eof-but-got-char(   R@   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRe   n
  s    c         S` s   |  j  j d j | ƒ S(   Nu   inBody(   R@   R8   Rg   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR¬   q
  s    c         S` s   |  j  j d j | ƒ S(   Nu   inHead(   R@   R8   Rg   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRq  t
  s    c         S` s"   |  j  j d i | d d 6ƒ d  S(   Nu   expected-eof-but-got-start-tagu   name(   R@   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR»   w
  s    c         S` s"   |  j  j d i | d d 6ƒ d  S(   Nu   expected-eof-but-got-end-tagu   name(   R@   R`   (   R9   Ru   (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRh   {
  s    (   R.   R/   R=   Rl   Ri   Rf   Re   R¬   Rq  R»   Rh   (    (   R¦   (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyRp  [
  s   								u   initialu
   beforeHtmlu
   beforeHeadu   inHeadu	   afterHeadu   inBodyu   textu   inTableu   inTableTextu	   inCaptionu   inColumnGroupu   inTableBodyu   inRowu   inCellu   inSelectu   inSelectInTableu   inForeignContentu	   afterBodyu
   inFramesetu   afterFramesetu   afterAfterBodyu   afterAfterFrameset(   R   (   R:   RK   R¥   R®   Rµ   R¸   RÀ   RÑ   RÖ   R5  R7  RB  RF  RK  RO  RU  RY  R]  Rc  Rd  Ri  Rj  Rn  Ro  Rp  (    (   R¦   sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR7   ¦  sd    		%)�#.cCÿ ÿ ×!‘-GAbYLd's/9%&$u   EndTagc         C` s9   | d  k r i  } n  i t | d 6|  d 6| d 6| d 6S(   Nu   typeu   nameu   datau   selfClosing(   R2   R   (   R;   R%   RY   R  (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR·   ›
  s    	R   c           B` s   e  Z d  Z RS(   u   Error in parsed document(   R.   R/   R—   (    (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyR   £
  s   (&   t
   __future__R    R   R   t   pip._vendor.sixR   R#   t    R   R   R   t   treebuilders._baseR   R   R	   R
   R   R   R   R   R   R   R   R   R   R   R2   RC   R   R   R0   t   objectR   R7   RI   R·   t	   ExceptionR   (    (    (    sG   /var/www/testScraper/venv/build/pip/pip/_vendor/html5lib/html5parser.pyt   <module>   sB   		ÿ v	ÿ ÿ ÿ ÿ ÿ ÿ ÿ ÿ ý