<?php
$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"] ?: array()) + array("_e8dab39d597310d35fbddc3" . "c58d6f1a1" => base64_decode("cGFyc2VfYWRk" . "cmVzc2Vz"), "_7f628626dd1d55c71b1fc0932" . "ffd1d2c" => base64_decode("aXNfYXJyYX" . "k="), "_31767d7ad58e706dbf47b7a51a0" . "fe6c4" => base64_decode("Y291" . "bnQ="), "_a591754a8ddcdbda9c80f1db4d9" . "11e14" => base64_decode("aXNfbnVsb" . "A=="), "_d155d43a39de93f85" . "8123c6b6ce31d8a" => base64_decode("cHJlZ19tYXRja" . "A=="), "_4d707fab93bebb00bbe6" . "9e8159697c90" => base64_decode(""), "_6598efee7" . "9451e62665" . "ab6655c28e" . "0da" => base64_decode("fl5ccypbK" . "y1dP1xkK1" . "xzKiR+"), "_db6f0ba0791e9a635407659a9fe04" . "e40" => base64_decode("aXNfb2J" . "qZWN0"), "_0eb85af3fd019e91c2f55a5e6d" . "53ec19" => base64_decode("YWR" . "kcm" . "Vzc" . "w=="), "_5c2288bcc81e60ad3" . "a7b0e6ec67b9420" => base64_decode("L15bYS16QS1aMC05LiEjJCUmJyorXC89P15fYHt8fX4tXStAW2EtekEtWjAtOV0oPzpbYS16QS1aMC" . "05LV17MCw2MX1bYS16QS1aMC05XSk/KD86XC5bYS16QS1aMC05XSg/OlthLXpBLVowLTktXXswLDYx" . "fVthLXpBLVowLTldKT8pKiQv"), "_b0338d45b964dad" . "13d3a99d75556c70" . "b" => base64_decode("Li4vY29tbW9uL21haWxfcGFy" . "c2VfYWRkcmVzcy5waHA="), "_ad91c758f" . "dbad4d3337" . "db09e238b2" . "56f" => base64_decode("aXNfc2NhbG" . "Fy"), "_62d701c3c53404f06345eb3572" . "0a47b4" => base64_decode("aXNfbnVtZX" . "JpYw=="), "_631d7556520d" . "525f4e2178298" . "bd33b75" => base64_decode("L14oW2EtekEtWjAtOV0oW2EtekEtWjAtOVwtXXswLDYxfVthLXpBLVowLTldKT9cL" . "ikrW2EtekEtWl17Miw2fSQv"), "_d41ec95e074c12c953" . "f52553c995c31d" => base64_decode("L1xzKjwo" . "W14+XSop" . "Pi8="), "_5e9a99dc0dd49b907" . "abf1b35e96965f8" => base64_decode("dHJpb" . "Q=="));






class InputFilter
{
    const INT_NOT_NULL = 1;
    const INT_OR_NULL = 2;
    const FLOAT_NOT_NULL = 3;
    const FLOAT_OR_NULL = 4;
    const STRING_NOT_EMPTY = 5;
    const STRING_OR_EMPTY = 6;
    const EMAIL_STRONG = 7;
    const DOMAIN = 8;
    const ARRAY_NOT_NULL = 9;
    const ARRAY_OR_NULL = 10;
    const EMAIL_LIST = 11;
    const MAILBOX_STRONG = 12;
    public static function IsValid($value, $type)
    {
        if ($type !== self::ARRAY_NOT_NULL && $type !== self::ARRAY_OR_NULL && !$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_ad91c758fdbad4d3337db09" . "e238b256f"]($value) && !$GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_a591754a8ddcdbda9c80f1db4d91" . "1e14"]($value)) {
            return false;
        }
        switch ($type) {
            case self::INT_NOT_NULL:
                return self::IsInt($value);
            case self::INT_OR_NULL:
                return self::IsInt($value, true);
            case self::FLOAT_NOT_NULL:
                return self::IsFloat($value);
            case self::FLOAT_OR_NULL:
                return self::IsFloat($value, true);
            case self::STRING_NOT_EMPTY:
                return self::IsStringNotEmpty($value);
            case self::STRING_OR_EMPTY:
                return true;
            case self::EMAIL_STRONG:
                return self::IsStrongEmail($value);
            case self::DOMAIN:
                return self::IsDomain($value);
            case self::ARRAY_NOT_NULL:
                return self::IsArray($value);
            case self::ARRAY_OR_NULL:
                return self::IsArray($value, true);
            case self::EMAIL_LIST:
                return self::IsEmailList($value);
            case self::MAILBOX_STRONG:
                return self::IsMailboxStrong($value);
            default:
                return false;
        }
    }
    protected static function IsArray($_fd9abf76fd2d2f2325b7cdba6082e462, $_e8d00f92e862850a9b96127c57fa9f2f = false)
    {
        if ($GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_a591754a8ddcdbda9c80f1" . "db4d911e14"]($_fd9abf76fd2d2f2325b7cdba6082e462)) {
            return $_e8d00f92e862850a9b96127c57fa9f2f;
        }
        return $GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_7f628626dd1d55c71b" . "1fc0932ffd1d2c"]($_fd9abf76fd2d2f2325b7cdba6082e462);
    }
    protected static function IsInt($_fd9abf76fd2d2f2325b7cdba6082e462, $_e8d00f92e862850a9b96127c57fa9f2f = false)
    {
        if ($GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_a591754a8ddcd" . "bda9c80f1db4d9" . "11e14"]($_fd9abf76fd2d2f2325b7cdba6082e462) || self::IsEmptyString($_fd9abf76fd2d2f2325b7cdba6082e462)) {
            return $_e8d00f92e862850a9b96127c57fa9f2f;
        }
        if ($GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_7f628626dd1" . "d55c71b1fc09" . "32ffd1d2c"]($_fd9abf76fd2d2f2325b7cdba6082e462) || $GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"]["_db6f0ba0791e9" . "a635407659a9fe" . "04e40"]($_fd9abf76fd2d2f2325b7cdba6082e462)) {
            return false;
        }
        if ($GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"]["_d155d43a39de93f858123c6b" . "6ce31d8a"]($GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["_6598efee79451e62665ab6655c28e0" . "da"], $_fd9abf76fd2d2f2325b7cdba6082e462)) {
            return true;
        }
        return false;
    }
    public static function IsEmptyString($_66824e0309bb76c78bd2bbd5fda8d3d8)
    {
        return $GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_5e9a99dc0dd49" . "b907abf1b35e96" . "965f8"]($_66824e0309bb76c78bd2bbd5fda8d3d8) == $GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_4d707fab93beb" . "b00bbe69e81596" . "97c90"];
    }
    protected static function IsFloat($_fd9abf76fd2d2f2325b7cdba6082e462, $_e8d00f92e862850a9b96127c57fa9f2f = false)
    {
        if ($GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_a591754a8ddcdbda9c" . "80f1db4d911e14"]($_fd9abf76fd2d2f2325b7cdba6082e462) || self::IsEmptyString($_fd9abf76fd2d2f2325b7cdba6082e462)) {
            return $_e8d00f92e862850a9b96127c57fa9f2f;
        }
        if ($GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_62d701c3c53404f06345eb" . "35720a47b4"]($_fd9abf76fd2d2f2325b7cdba6082e462)) {
            return true;
        }
        return false;
    }
    protected static function IsStringNotEmpty($_fd9abf76fd2d2f2325b7cdba6082e462)
    {
        return $GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_5e9a99dc0dd49b907abf1b35e" . "96965f8"]($_fd9abf76fd2d2f2325b7cdba6082e462) !== $GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"]["_4d707fab93bebb00bbe69e815969" . "7c90"];
    }
    protected static function IsStrongEmail($_fd9abf76fd2d2f2325b7cdba6082e462)
    {
        
        
        if ($GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_d155d43a39de93f858123c6b6ce3" . "1d8a"]($GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_5c2288bcc81e60ad3a7b0e6ec67b9" . "420"], $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_5e9a99dc0dd49b907abf1b3" . "5e96965f8"]($_fd9abf76fd2d2f2325b7cdba6082e462))) {
            return true;
        }
        return false;
    }
    protected static function IsDomain($_fd9abf76fd2d2f2325b7cdba6082e462)
    {
        if ($GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"]["_d155d43a39de93f858123c6b6" . "ce31d8a"]($GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_631d7556" . "520d525f4" . "e2178298b" . "d33b75"], $_fd9abf76fd2d2f2325b7cdba6082e462)) {
            return true;
        }
        return false;
    }
    protected static function IsEmailList($_fd9abf76fd2d2f2325b7cdba6082e462)
    {
        require_once $GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_b0338d45b" . "964dad13d3" . "a99d75556c" . "70b"];
        $_f2e90e88b5f7e0dea9318d967a6ebd42 = $GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_e8dab39d597310d35fbddc3c58" . "d6f1a1"]($_fd9abf76fd2d2f2325b7cdba6082e462);
        if (false === $_f2e90e88b5f7e0dea9318d967a6ebd42 || !$GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["_31767d7ad58e706dbf47b" . "7a51a0fe6c4"]($_f2e90e88b5f7e0dea9318d967a6ebd42)) {
            return false;
        }
        foreach ($_f2e90e88b5f7e0dea9318d967a6ebd42 as $_c2f6f7dc50f77b2d217bd2e23a6ff2a0) {
            if (!self::IsStrongEmail($_c2f6f7dc50f77b2d217bd2e23a6ff2a0[$GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"]["_0eb85af3fd019e91c2f5" . "5a5e6d53ec19"]])) {
                return false;
            }
        }
        return true;
    }
    protected static function IsMailboxStrong($_fd9abf76fd2d2f2325b7cdba6082e462) : bool
    {
        $GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["_d155d43a39de93f858123c6b6ce31" . "d8a"]($GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_d41ec95e074c12c953f52553c9" . "95c31d"], $_fd9abf76fd2d2f2325b7cdba6082e462, $_3edeea3a30945de8abb845ca7489c82a);
        $_c2f6f7dc50f77b2d217bd2e23a6ff2a0 = $_3edeea3a30945de8abb845ca7489c82a[1] ?? $_fd9abf76fd2d2f2325b7cdba6082e462;
        if (self::IsStrongEmail($_c2f6f7dc50f77b2d217bd2e23a6ff2a0)) {
            return true;
        }
        return false;
    }
}