Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
ó oÐ\[c@sOdZdZddlZddlmZddlZddlZddlZdZ yddl Z d„Z WnGe k r´yddl Z d„Z Wqµe k r°d„Z qµXnXyddlZWne k rØnXejdjƒejƒZejd jƒejƒZd efd „ƒYZd dd „ƒYZddd„ƒYZdS(sBBeautiful Soup bonus library: Unicode, Dammit This library converts a bytestream to Unicode through any means necessary. It is heavily based on code from Mark Pilgrim's Universal Feed Parser. It works best on XML and HTML, but it does not rewrite the XML or HTML to reflect a new encoding; that's the tree builder's job. tMITiÿÿÿÿN(tcodepoint2namecCstj|ƒdS(Ntencoding(tcchardettdetect(ts((s./usr/lib/python2.7/site-packages/bs4/dammit.pytchardet_dammitscCstj|ƒdS(NR(tchardetR(R((s./usr/lib/python2.7/site-packages/bs4/dammit.pyR!scCsdS(N(tNone(R((s./usr/lib/python2.7/site-packages/bs4/dammit.pyR'ss!^<\?.*encoding=['"](.*?)['"].*\?>s0<\s*meta[^>]+charset\s*=\s*["']?([^>]*?)[ /;'">]tEntitySubstitutioncBsÐeZdZd„Zeƒ\ZZZidd6dd6dd6dd 6d d 6Zej d ƒZ ej d ƒZ e d„ƒZ e d„ƒZe d„ƒZe ed„ƒZe ed„ƒZe d„ƒZRS(sASubstitute XML or HTML entities for the corresponding characters.cCsši}i}g}x\ttjƒƒD]H\}}t|ƒ}|dkrc|j|ƒ|||s&([<>]|&(?!#\d+;|#x[0-9a-fA-F]+;|\w+;))s([<>&])cCs#|jj|jdƒƒ}d|S(Nis&%s;(tCHARACTER_TO_HTML_ENTITYtgettgroup(tclstmatchobjtentity((s./usr/lib/python2.7/site-packages/bs4/dammit.pyt_substitute_html_entityZscCs|j|jdƒ}d|S(smUsed with a regular expression to substitute the appropriate XML entity for an XML special character.is&%s;(tCHARACTER_TO_XML_ENTITYR&(R'R(R)((s./usr/lib/python2.7/site-packages/bs4/dammit.pyt_substitute_xml_entity_scCsNd}d|krBd|kr9d}|jd|ƒ}qBd}n|||S(s*Make a value into a quoted XML attribute, possibly escaping it. Most strings will be quoted using double quotes. Bob's Bar -> "Bob's Bar" If a string contains double quotes, it will be quoted using single quotes. Welcome to "my bar" -> 'Welcome to "my bar"' If a string contains both single and double quotes, the double quotes will be escaped, and the string will be quoted using double quotes. Welcome to "Bob's Bar" -> "Welcome to "Bob's bar" RRs"(treplace(tselftvaluet quote_witht replace_with((s./usr/lib/python2.7/site-packages/bs4/dammit.pytquoted_attribute_valuefs   cCs4|jj|j|ƒ}|r0|j|ƒ}n|S(s Substitute XML entities for special XML characters. :param value: A string to be substituted. The less-than sign will become <, the greater-than sign will become >, and any ampersands will become &. If you want ampersands that appear to be part of an entity definition to be left alone, use substitute_xml_containing_entities() instead. :param make_quoted_attribute: If True, then the string will be quoted, as befits an attribute value. (tAMPERSAND_OR_BRACKETtsubR,R2(R'R/tmake_quoted_attribute((s./usr/lib/python2.7/site-packages/bs4/dammit.pytsubstitute_xml‹s  cCs4|jj|j|ƒ}|r0|j|ƒ}n|S(sŸSubstitute XML entities for special XML characters. :param value: A string to be substituted. The less-than sign will become <, the greater-than sign will become >, and any ampersands that are not part of an entity defition will become &. :param make_quoted_attribute: If True, then the string will be quoted, as befits an attribute value. (tBARE_AMPERSAND_OR_BRACKETR4R,R2(R'R/R5((s./usr/lib/python2.7/site-packages/bs4/dammit.pyt"substitute_xml_containing_entities s  cCs|jj|j|ƒS(sìReplace certain Unicode characters with named HTML entities. This differs from data.encode(encoding, 'xmlcharrefreplace') in that the goal is to make the result more readable (to those with ASCII displays) rather than to recover from errors. There's absolutely nothing wrong with a UTF-8 string containg a LATIN SMALL LETTER E WITH ACUTE, but replacing that character with "é" will make it more readable to some people. (tCHARACTER_TO_HTML_ENTITY_RER4R*(R'R((s./usr/lib/python2.7/site-packages/bs4/dammit.pytsubstitute_html¶s (t__name__t __module__t__doc__RR$tHTML_ENTITY_TO_CHARACTERR9R+RRR7R3t classmethodR*R,R2tFalseR6R8R:(((s./usr/lib/python2.7/site-packages/bs4/dammit.pyR 5s&  %tEncodingDetectorcBs\eZdZdedd„Zd„Zed„ƒZe d„ƒZ e eed„ƒZ RS(s^Suggests a number of possible encodings for a bytestring. Order of precedence: 1. Encodings you specifically tell EncodingDetector to try first (the override_encodings argument to the constructor). 2. An encoding declared within the bytestring itself, either in an XML declaration (if the bytestring is to be interpreted as an XML document), or in a tag (if the bytestring is to be interpreted as an HTML document.) 3. An encoding detected through textual analysis by chardet, cchardet, or a similar external library. 4. UTF-8. 5. Windows-1252. cCs}|p g|_|pg}tg|D]}|jƒ^q%ƒ|_d|_||_d|_|j|ƒ\|_ |_ dS(N( toverride_encodingstsettlowertexclude_encodingsRtchardet_encodingtis_htmltdeclared_encodingtstrip_byte_order_marktmarkuptsniffed_encoding(R.RJRBRGREtx((s./usr/lib/python2.7/site-packages/bs4/dammit.pyt__init__Ús (   cCsO|dk rK|jƒ}||jkr+tS||krK|j|ƒtSntS(N(RRDRER@taddtTrue(R.Rttried((s./usr/lib/python2.7/site-packages/bs4/dammit.pyt_usableæs    ccstƒ}x+|jD] }|j||ƒr|VqqW|j|j|ƒrW|jVn|jdkr„|j|j|jƒ|_n|j|j|ƒr¤|jVn|j dkrÈt |jƒ|_ n|j|j |ƒrè|j Vnx(dD] }|j||ƒrï|VqïqïWdS(s<Yield a number of encodings that might work for this markup.sutf-8s windows-1252N(sutf-8s windows-1252( RCRBRQRKRHRtfind_declared_encodingRJRGRFR(R.RPte((s./usr/lib/python2.7/site-packages/bs4/dammit.pyt encodingsðs$      cCs"d}t|tƒr||fSt|ƒdkrg|d dkrg|dd!dkrgd}|d}n±t|ƒdkr¯|d dkr¯|dd!dkr¯d}|d}ni|d d krÒd }|d}nF|d d krõd }|d}n#|d d krd}|d}n||fS(sMIf a byte-order mark is present, strip it and return the encoding it implies.iisþÿssutf-16besÿþsutf-16leissutf-8sþÿsutf-32besÿþsutf-32leN(Rt isinstancetunicodetlen(R'tdataR((s./usr/lib/python2.7/site-packages/bs4/dammit.pyRIs* " "    cCs½|rt|ƒ}}n%d}tdtt|ƒdƒƒ}d}tj|d|ƒ}| r~|r~tj|d|ƒ}n|dk r©|jƒdjddƒ}n|r¹|j ƒSdS( sóGiven a document, tries to find its declared encoding. An XML encoding is declared at the beginning of the document. An HTML encoding is declared in a tag, hopefully near the beginning of the document. iigš™™™™™©?tendpositasciiR-N( RWtmaxtintRtxml_encoding_retsearcht html_meta_retgroupstdecodeRD(R'RJRGtsearch_entire_documentt xml_endpost html_endposRHtdeclared_encoding_match((s./usr/lib/python2.7/site-packages/bs4/dammit.pyRR+s    N( R;R<R=RR@RMRQtpropertyRTR?RIRR(((s./usr/lib/python2.7/site-packages/bs4/dammit.pyRAÆs !t UnicodeDammitcBs�eZdZidd6dd6ZdddgZgdegd„Zd „Zd d „Z d d „Z e d „ƒZ d„Z d„Zi dd6dd6dd6dd6dd6d d 6d d#6d d&6d d)6d d,6dd/6dd26dd56d6d76dd:6d6d;6d6d<6dd?6ddB6ddE6ddH6ddK6ddN6ddQ6ddT6ddW6ddZ6dd]6dd`6d6da6ddd6ddg6Zi€dhd6dd6did6djd6dkd6dld 6dmd#6dnd&6dod)6dpd,6dqd/6drd26dsd56d6d76dtd:6d6d;6d6d<6dud?6dudB6dvdE6dvdH6dwdK6dxdN6dydQ6dzdT6d{dW6d|dZ6d}d]6d~d`6d6da6ddd6d€dg6dd�6d‚dƒ6d„d…6d†d‡6dˆd‰6dŠd‹6dŒd�6dqdŽ6d�d�6dfd‘6d’d“6d”d•6d‚d–6dd—6d˜d™6dxdš6d›dœ6d�dž6dŸd 6d¡d¢6d d¤6d¥d¦6d§d¨6dwd©6didª6d«d¬6d’d­6d®d¯6d°d±6d²d³6d´dµ6d6d¶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ÐdÕ6dwdÖ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ñdô6dñdõ6d›dö6d÷dø6d›dù6d›dú6d›dû6d›dü6d›dý6dþdÿ6d›d6d¥d6d¥d6d¥d6d¥d6dd6dÞd6dd6Zizd d 6d d 6d d6dd6dd6dd6dd6dd6dd6dd6dd6dd 6d!d"6d#d$6d%d&6d'd(6d)d*6d+d,6d-d.6d/d06d1d26d3d46d5d66d7d86d9d:6d;d<6d=d>6d?d@6dAdB6dCdD6dEdF6dGdH6dIdJ6dKdL6dMdN6dOdP6dQdR6dSdT6dUdV6dWdX6dYdZ6d[d\6d]d^6d_d`6dadb6dcdd6dedf6dgdh6didj6dkdl6dmdn6dodp6dqdr6dsdt6dudv6dwdx6dydz6d{d|6d}d~6dd€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­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Ú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û6Zd!d"d#gZedÿdÿZeddZeddd„ƒZRS($sÏA class for detecting the encoding of a *ML document and converting it to a Unicode string. If the source encoding is windows-1252, can replace MS smart quotes with their HTML or XML equivalents.s mac-romant macintoshs shift-jissx-sjiss windows-1252s iso-8859-1s iso-8859-2cCsn||_g|_t|_||_tjtƒ|_t ||||ƒ|_ t |t ƒsi|dkrŽ||_ t |ƒ|_d|_dS|j j |_ d}x?|j jD]1}|j j }|j|ƒ}|dk r°Pq°q°W|sOxa|j jD]P}|dkr|j|dƒ}n|dk rø|jjdƒt|_PqøqøWn||_|sjd|_ndS(NR RZR-sSSome characters could not be decoded, and were replaced with REPLACEMENT CHARACTER.(tsmart_quotes_tottried_encodingsR@tcontains_replacement_charactersRGtloggingt getLoggerR;tlogRAtdetectorRURVRJtunicode_markupRtoriginal_encodingRTt _convert_fromtwarningRO(R.RJRBRiRGREtuR((s./usr/lib/python2.7/site-packages/bs4/dammit.pyRMXs>              cCsÊ|jdƒ}|jdkr9|jj|ƒjƒ}n�|jj|ƒ}t|ƒtkrº|jdkr“djƒ|djƒdjƒ}qÆdjƒ|djƒdjƒ}n |jƒ}|S(s[Changes a MS smart quote character to an XML or HTML entity, or an ASCII character.iRZtxmls&#xt;Ri(R&RitMS_CHARS_TO_ASCIIR%tencodetMS_CHARSttypettuple(R.tmatchtorigR4((s./usr/lib/python2.7/site-packages/bs4/dammit.pyt _sub_ms_charŠs'' tstrictcCsâ|j|ƒ}| s+||f|jkr/dS|jj||fƒ|j}|jdk r™||jkr™d}tj|ƒ}|j |j |ƒ}ny+|j |||ƒ}||_||_ Wnt k rÚ}dSX|jS(Ns([€-Ÿ])(t find_codecRjRRRJRitENCODINGS_WITH_SMART_QUOTESRRR4R~t _to_unicodeRqt Exception(R.tproposedterrorsRJtsmart_quotes_retsmart_quotes_compiledRtRS((s./usr/lib/python2.7/site-packages/bs4/dammit.pyRr›s"   cCst|||ƒS(sGiven a string and its encoding, decodes the string into Unicode. %encoding is a string recognized by encodings.aliases(RV(R.RXRR…((s./usr/lib/python2.7/site-packages/bs4/dammit.pyR‚¶scCs|js dS|jjS(N(RGRRoRH(R.((s./usr/lib/python2.7/site-packages/bs4/dammit.pytdeclared_html_encoding»s cCsŒ|j|jj||ƒƒpu|r?|j|jddƒƒpu|r`|j|jddƒƒpu|rr|jƒpu|}|rˆ|jƒSdS(Nt-R t_(t_codectCHARSET_ALIASESR%R-RDR(R.tcharsetR/((s./usr/lib/python2.7/site-packages/bs4/dammit.pyR€Ás!! cCsE|s |Sd}ytj|ƒ|}Wnttfk r@nX|S(N(RtcodecsRt LookupErrort ValueError(R.R�tcodec((s./usr/lib/python2.7/site-packages/bs4/dammit.pyR‹Ìs  teurot20ACs€t s�tsbquot201As‚tfnoft192sƒtbdquot201Es„thellipt2026s…tdaggert2020s†tDaggert2021s‡tcirct2C6sˆtpermilt2030s‰tScaront160sŠtlsaquot2039s‹tOEligt152sŒt?s�s#x17Dt17DsŽs�s�tlsquot2018s‘trsquot2019s’tldquot201Cs“trdquot201Ds”tbullt2022s•tndasht2013s–tmdasht2014s—ttildet2DCs˜ttradet2122s™tscaront161sštrsaquot203As›toeligt153sœs�s#x17Et17EsžtYumlR sŸtEURt,tfs,,s...t+s++t^t%tSR!tOEtZRRt*R‰s--t~s(TM)RR#toetztYs t!s¡tcs¢tGBPs£t$s¤tYENs¥t|s¦s§s..s¨s©s(th)sªs<>s»s1/4s¼s1/2s½s3/4s¾s¿tAsÀsÁsÂsÃsÄsÅtAEsÆtCsÇtEsÈsÉsÊsËtIsÌsÍsÎsÏtDsÐtNsÑtOsÒsÓsÔsÕsÖs×sØtUsÙsÚsÛsÜsÝtbsÞtBsßtasàsásâsãsäsåtaesæsçRSsèsésêsëtisìsísîsïsðtnsñsòsósôsõsöt/s÷søsùsúsûsütysýsþsÿs€i€s‚i‚sÆ’iƒs„i„s…i…s†i†s‡i‡sˆiˆs‰i‰sÅ iŠs‹i‹sÅ’iŒsŽiŽs‘i‘s’i’s“i“sâ€�i”s•i•s–i–s—i—sËœi˜sâ„¢i™sÅ¡išs›i›sÅ“iœsžižsŸiŸs i s¡i¡s¢i¢s£i£s¤i¤sÂ¥i¥s¦i¦s§i§s¨i¨s©i©sªiªs«i«s¬i¬s­i­s®i®s¯i¯s°i°s±i±s²i²s³i³s´i´sµiµs¶i¶s·i·s¸i¸s¹i¹sºiºs»i»s¼i¼s½i½s¾i¾s¿i¿sÀiÀsÃ�iÁsÂiÂsÃiÃsÄiÄsÃ…iÅsÆiÆsÇiÇsÈiÈsÉiÉsÊiÊsËiËsÃŒiÌsÃ�iÍsÃŽiÎsÃ�iÏsÃ�iÐsÑiÑsÃ’iÒsÓiÓsÔiÔsÕiÕsÖiÖs×i×sØiØsÙiÙsÚiÚsÛiÛsÜiÜsÃ�iÝsÞiÞsßißsàiàiásâiâsãiãsäiäsÃ¥iåsæiæsçiçsèièséiésêiêsëiësìiìsíiísîiîsïiïsðiðsñiñsòiòsóiósôiôsõiõsöiös÷i÷søiøsùiùsúiúsûiûsüiüsýiýsþiþiiiiiÿÿÿÿitutf8c Cs“|jddƒjƒd kr-tdƒ‚n|jƒdkrNtdƒ‚ng}d }d }x|t|ƒkrd||}t|tƒs�t|ƒ}n||jkr||jkrx£|j D]5\}} } ||krÅ|| krÅ|| 7}PqÅqÅWqc|d krW||j krW|j |||!ƒ|j |j |ƒ|d 7}|}qc|d 7}qcW|d kru|S|j ||ƒd j |ƒS(sÎFix characters from one encoding embedded in some other encoding. Currently the only situation supported is Windows-1252 (or its subset ISO-8859-1), embedded in UTF-8. The input must be a bytestring. If you've already converted the document to Unicode, you're too late. The output is a bytestring in which `embedded_encoding` characters have been converted to their `main_encoding` equivalents. RŠR‰s windows-1252t windows_1252sPWindows-1252 and ISO-8859-1 are the only currently supported embedded encodings.Ròsutf-8s4UTF-8 is the only currently supported main encoding.ii€iR (s windows-1252Ró(Ròsutf-8( R-RDtNotImplementedErrorRWRUR\tordtFIRST_MULTIBYTE_MARKERtLAST_MULTIBYTE_MARKERtMULTIBYTE_MARKERS_AND_SIZEStWINDOWS_1252_TO_UTF8RR( R'tin_bytest main_encodingtembedded_encodingt byte_chunkst chunk_starttpostbytetstarttendtsize((s./usr/lib/python2.7/site-packages/bs4/dammit.pyt detwingle s<         N(R’R“(R•R–(R—R˜(R™Rš(R›Rœ(R�Rž(RŸR (R¡R¢(R£R¤(R¥R¦(R§R¨(R©Rª(s#x17DR¬(R­R®(R¯R°(R±R²(R³R´(RµR¶(R·R¸(R¹Rº(R»R¼(R½R¾(R¿RÀ(RÁRÂ(RÃRÄ(s#x17ERÅ(RÆR (RRÞ(iÂißi(iàiïi(iðiôi(R;R<R=RŒR�RR@RMR~RrR‚RfRˆR€R‹RyRwRùRøRöR÷R?R(((s./usr/lib/python2.7/site-packages/bs4/dammit.pyRgEsd   1        (((R=t __license__RŽthtmlentitydefsRRRltstringRt chardet_typeRRt ImportErrorRt iconv_codecRRxRåR]R_tobjectR RARg(((s./usr/lib/python2.7/site-packages/bs4/dammit.pyts6           ‘