+
     Bi>                        R t Rt^ RI5 ^ RIHtHt ^ RIHt ^ RIHtHt ^ RIH	t	 ^ RIH
t
Ht  ^ RIHt ]! ]R	4      '       g
   ]! R
R4      h ^ RIHtHtHt ]P*                  t]P,                  t ^ RIt^ RIt]P2                  tAA ! R R4      t ! R R]P8                  4      t ! R R]P<                  ]P8                  4      tR t ]!R8X  d{   ^ RI"t#] ! 4       t$]$PK                  ]#PL                  P&                  PO                  4       4       ]$PQ                  ]#PL                  PS                  4       4       ]$PU                  R4       R# R#   ] d    ]! R
R4      hi ; i  ] d    R t Li ; i)z]
SAX driver for the pyexpat C module.  This driver works with
pyexpat.__version__ == '2.22'.
z0.20)*)feature_validationfeature_namespaces)feature_namespace_prefixes)feature_external_gesfeature_external_pes)feature_string_interning)property_xml_stringproperty_interning_dict)expatParserCreatezexpat not supportedN)	xmlreadersaxutilshandlerc                     V # N )os   &*/usr/lib/python3.14/xml/sax/expatreader.py_mkproxyr   !   s        c                       ] tR t^(tRtR# )_ClosedParserr   N)__name__
__module____qualname____firstlineno____static_attributes__r   r   r   r   r   (   s    r   r   c                   B   a  ] tR t^-t o RtR tR tR tR tR t	Rt
V tR# )	ExpatLocatorzLocator for use with the ExpatParser class.

This uses a weak reference to the parser object to avoid creating
a circular reference between the parser and the content handler.
c                &    \        V4      V n        R # r   )r   _refselfparsers   &&r   __init__ExpatLocator.__init__3   s    V$	r   c                f    V P                   pVP                  f   R # VP                  P                  # r   )r!   _parserErrorColumnNumberr"   s   & r   getColumnNumberExpatLocator.getColumnNumber6   s(    >>!~~///r   c                f    V P                   pVP                  f   ^# VP                  P                  # r   )r!   r(   ErrorLineNumberr"   s   & r   getLineNumberExpatLocator.getLineNumber<   s(    >>!~~---r   c                Z    V P                   pVf   R # VP                  P                  4       # r   )r!   _sourcegetPublicIdr"   s   & r   r2   ExpatLocator.getPublicIdB   &    >~~))++r   c                Z    V P                   pVf   R # VP                  P                  4       # r   )r!   r1   getSystemIdr"   s   & r   r6   ExpatLocator.getSystemIdH   r4   r   )r!   N)r   r   r   r   __doc__r%   r*   r.   r2   r6   r   __classdictcell____classdict__s   @r   r   r   -   s(     
%0.,, ,r   r   c                      a  ] tR t^Qt o RtR$R ltR tR tR tR t	R t
R tR	 tR%R
 ltR tR tR tR tR tR tR tR tR tR tR tR tR tR tR tR tR tR tR t R t!R t"R  t#R! t$R"t%V t&R## )&ExpatParserz$SAX driver for the pyexpat C module.c                    \         P                  P                  W4       \         P                  ! 4       V n        R V n        Wn        R V n        RV n        . V n	        ^ V n
        R V n        R # )NF)r   IncrementalParserr%   InputSourcer1   r(   _namespaces_lex_handler_prop_parsing_entity_stack_external_ges
_interning)r#   namespaceHandlingbufsizes   &&&r   r%   ExpatParser.__init__T   sY    ##,,T; ,,.,!%r   c                   \         P                  ! V4      pWn         V P                  4        V P                  P                  \        V 4      4       \        P                  P                  W4       R#    T P                  4        h ; i)z3Parse an XML document from a URL or an InputSource.N)r   prepare_input_sourcer1   reset_cont_handlersetDocumentLocatorr   r   r?   parse_close_sourcer#   sources   &&r   rO   ExpatParser.parsea   sj    ..v6		JJL11,t2DE''--d;	  s   AA3 3Bc                    VP                  4       e,   V P                  P                  VP                  4       4       R # R # r   )r6   r(   SetBaserQ   s   &&r   prepareParserExpatParser.prepareParserq   s1    +LL  !3!3!56 ,r   c                    \         P                  P                  W4       V P                  '       d   V P	                  4        R # R # r   )r   r?   setContentHandlerrC   _reset_cont_handler)r#   r   s   &&r   rY   ExpatParser.setContentHandlerw   s0    ##55dD===$$& r   c                    V\         8X  d   V P                  # V\        8X  d   V P                  R J# V\        \
        \        39   d   ^ # V\        8X  d   V P                  # \        RV,          4      h)NFeature '%s' not recognized)
r   rA   r   rF   r   r   r   r   rE   SAXNotRecognizedExceptionr#   names   &&r   
getFeatureExpatParser.getFeature|   sn    %%###--??$..(*>02 2))%%%'(E(LMMr   c                   V P                   '       d   \        R 4      hV\        8X  d	   W n        R# V\        8X  d	   W n        R# V\        8X  d+   V'       d   V P                  f
   / V n        R# R# RV n        R# V\        8X  d   V'       d   \        R4      hR# V\        8X  d   V'       d   \        R4      hR# V\        8X  d   V'       d   \        R4      hR# \        RV,          4      h)z!Cannot set features while parsingNz!expat does not support validationz/expat does not read external parameter entitiesz(expat does not report namespace prefixesr]   )rC   SAXNotSupportedExceptionr   rA   r   rE   r   rF   r   r   r   r^   )r#   r`   states   &&&r   
setFeatureExpatParser.setFeature   s    ===*+NOO%%$))!&--??*&(DO + #'''.79 9  )).EG G  //.>@ @  ,-46 6r   c                h   V\         P                  8X  d   V P                  # V\        8X  d   V P                  # V\
        8X  d_   V P                  '       dB   \        V P                  R 4      '       d   V P                  P                  4       # \        R4      h\        R4      h\        RV,          4      h)GetInputContextz=This version of expat does not support getting the XML stringz.XML string cannot be returned when not parsingProperty '%s' not recognized)r   property_lexical_handlerrB   r
   rF   r	   r(   hasattrri   r^   rd   r_   s   &&r   getPropertyExpatParser.getProperty   s    7333))),,??"((|||4<<):;;<<77993*+ + /DF F'(F(MNNr   c                   V\         P                  8X  d-   W n        V P                  '       d   V P	                  4        R# R# V\
        8X  d	   W n        R# V\        8X  d   \        R V,          4      h\        RV,          4      h)zProperty '%s' cannot be setrj   N)
r   rk   rB   rC   _reset_lex_handler_propr
   rF   r	   rd   r^   )r#   r`   values   &&&r   setPropertyExpatParser.setProperty   sy    7333%*"}}},,. ,,#O((*+H+/,0 1 1 ,,J,0-1 2 2r   c                   V P                   '       g2   V P                  4        R V n         V P                  P                  4         V P                  P                  W4       R#   \        P                   dQ   p\        \        P                  ! TP                  4      Y04      pT P                  P                  T4        Rp?R# Rp?ii ; i)TN)rC   rL   rM   startDocumentr(   Parser   errorSAXParseExceptionErrorStringcode_err_handler
fatalError)r#   dataisFinaleexcs   &&&  r   feedExpatParser.feed   s    }}}JJL DM,,.		.
 LLt-{{ 	.#E$5$5aff$=qGC((--	.s   A" "C7ACCc                   V P                   f   R # V P                   P                  4       p V P                   P                  R4       V P                   P                  RR4       V P                   P                  V4       R #   \        P
                   dP   p\        \        P                  ! TP                  4      Y 4      pT P                  P                  T4        R p?L|R p?ii ; i  T P                   P                  T4       i ; i)NFr   )r(   GetReparseDeferralEnabledSetReparseDeferralEnabledrv   r   rw   rx   ry   rz   r{   r|   )r#   was_enabledr   r   s   &   r   flushExpatParser.flush   s    <<ll<<>	@LL2259LLsE*
 LL22;?	 {{ 	.#E$5$5aff$=qGC((--	. LL22;?s*   7B   C$ACC' C$$C' 'Dc                   V P                   p VP                  4       pVe   VP                  4        VP                  4       pVe   VP                  4        R # R #   TP                  4       pTe   TP                  4        i i ; ir   )r1   getCharacterStreamclosegetByteStream)r#   rR   files   &  r   rP   ExpatParser._close_source   su    	,,.D

'')D

   '')D

  s   $A 'Bc                   V P                   '       g/   V P                  e!   \        V P                  \        4      '       d   R #  V P	                  RRR7       V P
                  P                  4        RV n        R V n        RV n        V P                  eG   \        4       pV P                  P                  Vn        V P                  P                  Vn	        Wn        V P                  4        R #   RT n        T P                  eG   \        4       pT P                  P                  Tn        T P                  P                  Tn	        Yn        T P                  4        i ; i)Nr   T)r~   F)rD   r(   
isinstancer   r   rM   endDocumentrC   r)   r-   rP   r"   s   & r   r   ExpatParser.close   s    $,,"6t||]33	!IIc4I(**,!DMDL!DM||'&+/<<+I+I()-)E)E&%  "DM||'&+/<<+I+I()-)E)E&% s   ;C, ,A-Ec                    V P                   P                  V P                  n        V P                   P                  V P                  n        R # r   )rM   processingInstructionr(   ProcessingInstructionHandler
charactersCharacterDataHandlerr#   s   &r   rZ   ExpatParser._reset_cont_handler  s5    $($6$6$L$L 	1,0,>,>,I,I)r   c                2   V P                   pV P                  pVf&   R Vn        R Vn        R Vn        R Vn        R Vn        R # VP                  Vn        VP                  Vn        VP                  Vn        V P                  Vn        VP                  Vn        R # r   )rB   r(   CommentHandlerStartCdataSectionHandlerEndCdataSectionHandlerStartDoctypeDeclHandlerEndDoctypeDeclHandlercomment
startCDATAendCDATAstart_doctype_declendDTD)r#   lexr$   s   &  r   rp   #ExpatParser._reset_lex_handler_prop  s    $$;$(F!.2F+,0F)-1F*+/F($'KKF!.1nnF+,/LLF)-1-D-DF*+.::F(r   c                l   V P                   '       d   \        P                  ! V P                  P	                  4       R V P
                  R7      V n        ^V P                  n        V P                  V P                  n	        V P                  V P                  n        Mu\        P                  ! V P                  P	                  4       V P
                  R7      V n        V P                  V P                  n	        V P                  V P                  n        V P                  4        V P                  V P                  n        V P"                  V P                  n        V P&                  V P                  n        V P*                  V P                  n        RV n        V P0                  '       d   V P3                  4        V P4                  V P                  n         V P8                  V P                  n        V P                  P?                  \        P@                  4       RV n!        . V n"        R#   \<         d     LFi ; i) )internNF)#rA   r   r   r1   getEncodingrF   r(   namespace_prefixesstart_element_nsStartElementHandlerend_element_nsEndElementHandlerstart_elementend_elementrZ   unparsed_entity_declUnparsedEntityDeclHandlernotation_declNotationDeclHandlerstart_namespace_declStartNamespaceDeclHandlerend_namespace_declEndNamespaceDeclHandler_decl_handler_proprB   rp   external_entity_refExternalEntityRefHandlerskipped_entity_handlerSkippedEntityHandlerAttributeErrorSetParamEntityParsing*XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONErC   rD   r   s   &r   rL   ExpatParser.reset  s    --dll.F.F.H#59__FDL./DLL+/3/D/DDLL,-1-@-@DLL* --dll.F.F.H7;HDL/3/A/ADLL,-1-=-=DLL*  "151J1J.+/+=+=(151J1J./3/F/F,"&!!!((* 150H0H-	040K0KDLL- 	**<<	>   		s   H% %H32H3c                N    V P                   f   R # V P                   P                  # r   )r(   r)   r   s   &r   r*   ExpatParser.getColumnNumberC  s    <<||---r   c                N    V P                   f   ^# V P                   P                  # r   )r(   r-   r   s   &r   r.   ExpatParser.getLineNumberH  s    <<||+++r   c                6    V P                   P                  4       # r   )r1   r2   r   s   &r   r2   ExpatParser.getPublicIdM      ||''))r   c                6    V P                   P                  4       # r   )r1   r6   r   s   &r   r6   ExpatParser.getSystemIdP  r   r   c                P    V P                   P                  V\        V4      4       R # r   )rM   startElementAttributesImpl)r#   r`   attrss   &&&r   r   ExpatParser.start_elementT  s    ''nU.CDr   c                <    V P                   P                  V4       R # r   )rM   
endElementr_   s   &&r   r   ExpatParser.end_elementW      %%d+r   c                   VP                  4       p\        V4      ^8X  d   RV3pM.\        V4      ^8X  d   V^ ,          V^,          3pM\        V4      p/ p/ pVP                  4        F{  w  rgVP                  4       p\        V4      p	V	^8X  d   Tp
RV3pMEV	^8X  d+   V^,          : RV^,          : 2p
V^ ,          V^,          3pMV^,          p
\        V4      pWtV&   WV&   K}  	  V P                  P                  VR\        WE4      4       R# )   N:)splitlentupleitemsrM   startElementNSAttributesNSImpl)r#   r`   r   pairnewattrsqnamesanamerq   partslengthqnameapairs   &&&         r   r   ExpatParser.start_element_nsZ  s    zz|t9>$<DY!^7DG#D ;D#kkmNUKKMEZF{u1#(88U1X6a%(* ae#UO!5M! ,$ 	))$*:8*L	Nr   c                    VP                  4       p\        V4      ^8X  d   RV3pM.\        V4      ^8X  d   V^ ,          V^,          3pM\        V4      pV P                  P	                  VR4       R# )r   N)r   r   r   rM   endElementNS)r#   r`   r   s   && r   r   ExpatParser.end_element_ns|  s]    zz|t9>$<DY!^7DG#D;D''d3r   c                <    V P                   P                  W4       R # r   )rM   r   )r#   targetr}   s   &&&r   processing_instruction"ExpatParser.processing_instruction  s    00>r   c                <    V P                   P                  V4       R # r   )rM   r   )r#   r}   s   &&r   character_dataExpatParser.character_data  r   r   c                <    V P                   P                  W4       R # r   )rM   startPrefixMapping)r#   prefixuris   &&&r   r    ExpatParser.start_namespace_decl  s    --f:r   c                <    V P                   P                  V4       R # r   )rM   endPrefixMapping)r#   r   s   &&r   r   ExpatParser.end_namespace_decl  s    ++F3r   c                >    V P                   P                  WV4       R # r   )rB   startDTD)r#   r`   sysidpubidhas_internal_subsets   &&&&&r   r   ExpatParser.start_doctype_decl  s    ''U;r   c                >    V P                   P                  WW54       R # r   )_dtd_handlerunparsedEntityDecl)r#   r`   baser   r   notation_names   &&&&&&r   r    ExpatParser.unparsed_entity_decl  s    ,,T%Or   c                >    V P                   P                  WV4       R # r   )r   notationDecl)r#   r`   r  r   r   s   &&&&&r   r   ExpatParser.notation_decl  s    &&tE:r   c                .   V P                   '       g   ^# V P                  P                  WC4      p\        P                  ! TV P
                  P                  4       ;'       g    R4      pV P                  P                  V P                  V P
                  34       V P                  P                  V4      V n	        WPn         \        P                  P                  W4       T P                  R,          w  T n	        T n        T P                  R ^#     ^ # ; i)r    )rE   _ent_handlerresolveEntityr   rK   r1   r6   rD   appendr(   ExternalEntityParserCreater   r?   rO   )r#   contextr  r   r   rR   s   &&&&& r   r   ExpatParser.external_entity_ref  s    !!!""00>..v/3||/G/G/I 02 02/13 	!!4<<">?||>>wG	''--d; (,'9'9"'=$t|r"	s   D Dc                ^    V'       d
   R V,           pV P                   P                  V4       R# )%N)rM   skippedEntity)r#   r`   is_pes   &&&r   r   "ExpatParser.skipped_entity_handler  s"    t8D((.r   )	r   rD   rE   rF   rB   rA   r(   rC   r1   N)    i  )F)'r   r   r   r   r8   r%   rO   rV   rY   ra   rf   rm   rr   r   r   rP   r   rZ   rp   rL   r*   r.   r2   r6   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r9   r:   s   @r   r=   r=   Q   s     .	 7'

N6<O$2 ."@	!*J
6 # N.
,
**E, ND	4?,;4<P;,/ /r   r=   c                      \        V / VB # r   )r=   )argskwargss   *,r   create_parserr    s    '''r   __main__z:http://www.ibiblio.org/xml/examples/shakespeare/hamlet.xml)+r8   versionxml.sax._exceptionsxml.sax.handlerr   r   r   r   r   r   r	   r
   xml.parsersr   rl   SAXReaderNotAvailableImportErrorxml.saxr   r   r   r   r   _weakrefweakrefproxyr   r   Locatorr   r?   r=   r  r   xml.sax.saxutilsxmlprY   saxXMLGeneratorsetErrorHandlerErrorHandlerrO   r   r   r   <module>r.     s\  
  ! B 6 F 4 HA! 5.))#$94@@ * 0 0))-- 

 }}H	 	
,9$$ ,Hg/)--y/@/@ g/V(
 zA((5578cgg**,-GGHI a  =
 5t
<<=  s   E 1E  E 
E-,E-