0
  B   ˆl–Ãa¾”Ji?u	AàŸ¸ ©‹Fÿ’þYl¤Ë!´¦öjÿŸÉÅÄÈ163_†I|¥‚!ÁÇ  £    ‹      Å‘±Â0D÷~ED‚÷ò5&qÛGŽHˆf$T£¥»wÖ]›r5Š¾OLîÚ8·ÇpT¦cô)ã@�›”×«Ñ¬t tÁ\˜¶A2`­dB­ÐGRPb´t"(hãj³[Šûg>#Kœ˜fHæ¢^³oM«"ö<½ÒY“‘ªg	ÈË{ÿmQïùÌþÿ…î¢oÝ       ˆÆÅÉ478ÄÁÇ Þ    ‹      ½”_kÛ0Åßû)4=ì-¾uœ0he�.,�&!õØÆC±[›méfi÷é'Ç)ÉF²”�Á²utîù]ËbÏ’ù(}¿“×éí”,Þ¼šNF„ö ÞF#€$Mº‰ApŒg”Ð±¹Øn·Á6
ŒÍ!]B�U9 ‡VgH””_°ö¿ ¬PBú;a¨±T|RKuOÌš€Ù ÓR ±&§Ê5Xc6Î‚+„UP©>UFnJå@¹L”B*�Ú!ƒÎÍûÃ¾ [ùÐÖŸ¬†·Ú«]©vh9Ã‚|¥Îë˜¢i(gºÊ‰³YLAg¦v°*Eý%ÈõšQbL?LFó�^X´«9¤°jÓ—£xv=�Êg¢RÄiÍ­×ÜP>‰Oª×ZÉ³â»N|§¿�7L:Mâq­nP›ú �xŒš™Ò5Â³=Aa�U�Dþ®"û¡‹›åx–&“e×ÙZÒýó£|á'k$‰¶*CcöL]�çõÊ5×��dŸØê¼@Ê	é‘“Ê¿ÀDu�Ç˜é»ô$ n÷fðÙQþ8:ÎùS°þe¿ßý‘0º†„œ£Á&¨Õ1„/~Áð‡[ö?+ƒÝqÀ ;†¾¸Ž?Ié    6   ˆl–Ü4ý( ©¤ýÔâ€rà\¸Ð”Å£�þB gjIY�ÑÉüÿËƒh¹ÊÂÈ      0
  F   ˆl–Ðz¾”êh¥2 ¸Û7â˜´o’þ]zE›”„�dd Zof¯ùÌÈÇË‚t@_‹I|¥Žƒî4ÃVŸÄÊ Ð    ‹      ÅUKOÛ@>{ÅÈdGÁî™(”¨R[T •JOU[{¯p¼Û}Pðg_^Û4pí<3ß¼¿�””\_ÞÂ­H'	4Jñ³²¼¿¿/7¦EE
&veë²ÜSu„‚7%­&à–ý¦XÂÆ9.$»-J„Rm"K%h¥ÒBë¤‚TlÏ± ÝÝÉ¬´À-ô°Aþh*H–E©mK�ÄŠ	™æ«! JvD}7©•qƒ÷détW¬ÛMUXJºë¬ =à‡$µ\Ö2Ú7ÒôTÓàj,h^KyY&­íÍÖ€ÊÅ.Ô#'5ÙÂ�î¹©ÃUìÜÓ¼÷f ¯CM_´%Â¡Ã÷›×¬Ö-±pÿeÁ¨jM`Û‹M}kõŽvvDnVBWfvãŠ1·úD5T5i©Ù§Éº†Á''>G{OO�žšõOW‘eüŽ¸£÷%¦”À6œ·� Ü•ç”v±{8í÷ŽnjÚÀ]E¼“ †-&çá/£uou¥Y£�Ÿ¾ËA*ÆîlaVÄ¶ÊBaž¥G¦–.aƒõ¹”¬m°l>ê®rFË�iL¦×ê«ÃÊ»�ÖPCÈöfîMÄÜ!¹Ó~˜7/ÒŽ†ÕW4ÛØû¹xg<Y[Œ1%Èœ1æ	Œ0Ýu±S6L^\æ`ÉFüXlÛg¾¹¼ØÒÖÄñâØj’Ð-xeaƒæQŸx%­m÷Ñ¾ziµùŽö_ ÿ=w`¶^C§Û6àú|‰Æx¦®àöÏ­Éf‰—3ÉíbTù¹F9Î0j¦¤š¸…½ÆTP¾^ÜìèýßÚŽÜõlL=À^ÜálBèâ½–ày0¡È„	SÌ(0]¾ß}î%Ë¯a‹–t;ÕÀ9¼‹l{å7aî8»!ºKÕ;Áýí‘¹�{w­ò`/¹­îÈ³_¡gÓÏZ½�    A   ˆl–Ðz¾”Š_)%ÕÆ…p©‹Fÿ�þel«7(# ™}§hÏÎƒeöZÍ_ŠI|¥�+Wé3ž¯ÆÌ ^    ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
#   Mark Pilgrim - port to Python
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
# 02110-1301  USA
######################### END LICENSE BLOCK #########################

from typing import Union

from .chardistribution import EUCJPDistributionAnalysis
from .codingstatemachine import CodingStateMachine
from .enums import MachineState, ProbingState
from .jpcntx import EUCJPContextAnalysis
from .mbcharsetprober import MultiByteCharSetProber
from .mbcssm import EUCJP_SM_MODEL


class EUCJPProber(MultiByteCharSetProber):
    def __init__(self) -> None:
        super().__init__()
        self.coding_sm = CodingStateMachine(EUCJP_SM_MODEL)
        self.distribution_analyzer = EUCJPDistributionAnalysis()
        self.context_analyzer = EUCJPContextAnalysis()
        self.reset()

    def reset(self) -> None:
        super().reset()
        self.context_analyzer.reset()

    @property
    def charset_name(self) -> str:
        return "EUC-JP"

    @property
    def language(self) -> str:
        return "Japanese"

    def feed(self, byte_str: Union[bytes, bytearray]) -> ProbingState:
        assert self.coding_sm is not None
        assert self.distribution_analyzer is not None

        for i, byte in enumerate(byte_str):
            # PY3K: byte_str is a byte array, so byte is an int, not a byte
            coding_state = self.coding_sm.next_state(byte)
          