ETH Price: $3,391.20 (-1.22%)

Token

FengFeng (FENGFENG)
 

Overview

Max Total Supply

1,000 FENGFENG

Holders

306

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
chaojimali.eth
Balance
0.000000000000000001 FENGFENG

Value
$0.00
0x76da715b266323f4eb9c9ade2127e0611f9f6c30
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
FengFeng

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
No with 200 runs

Other Settings:
paris EvmVersion
File 1 of 15 : FengFeng.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {Strings} from "@openzeppelin/contracts/utils/Strings.sol";
import {ERC404} from "./ERC404.sol";

contract FengFeng is Ownable, ERC404 {
    string public baseURI;

    constructor(
        string memory name_,
        string memory symbol_,
        uint8 decimals_,
        uint256 maxTotalSupplyERC721_,
        address initialOwner_
    ) ERC404(name_, symbol_, decimals_) Ownable(initialOwner_) {
        // Do not mint the ERC721s to the initial owner, as it's a waste of gas.
        _setERC721TransferExempt(initialOwner_, true);
        _mintERC20(initialOwner_, maxTotalSupplyERC721_ * units);
    }

    function tokenURI(uint256 id_) public view override returns (string memory) {
        return string.concat(baseURI, Strings.toString(id_ - ID_ENCODING_PREFIX));
    }

    function setBaseURI(string memory baseURI_) external onlyOwner {
        baseURI = baseURI_;
    }

    function setERC721TransferExempt(
        address account_,
        bool value_
    ) external onlyOwner {
        _setERC721TransferExempt(account_, value_);
    }
    
}

File 2 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * The initial owner is set to the address provided by the deployer. This can
 * later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 15 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../utils/introspection/IERC165.sol";

File 4 of 15 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC721Receiver.sol)

pragma solidity ^0.8.20;

import {IERC721Receiver} from "../token/ERC721/IERC721Receiver.sol";

File 5 of 15 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.20;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be
     * reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 6 of 15 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 7 of 15 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 8 of 15 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Muldiv operation overflow.
     */
    error MathOverflowedMulDiv();

    enum Rounding {
        Floor, // Toward negative infinity
        Ceil, // Toward positive infinity
        Trunc, // Toward zero
        Expand // Away from zero
    }

    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds towards infinity instead
     * of rounding towards zero.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        if (b == 0) {
            // Guarantee the same behavior as in a regular Solidity division.
            return a / b;
        }

        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or
     * denominator == 0.
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by
     * Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0 = x * y; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            if (denominator <= prod1) {
                revert MathOverflowedMulDiv();
            }

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator.
            // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.

            uint256 twos = denominator & (0 - denominator);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also
            // works in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
     * towards zero.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
        }
    }

    /**
     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
     */
    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
        return uint8(rounding) % 2 == 1;
    }
}

File 9 of 15 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 10 of 15 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)

pragma solidity ^0.8.20;

import {Math} from "./math/Math.sol";
import {SignedMath} from "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant HEX_DIGITS = "0123456789abcdef";
    uint8 private constant ADDRESS_LENGTH = 20;

    /**
     * @dev The `value` string doesn't fit in the specified `length`.
     */
    error StringsInsufficientHexLength(uint256 value, uint256 length);

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toStringSigned(int256 value) internal pure returns (string memory) {
        return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value)));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        uint256 localValue = value;
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = HEX_DIGITS[localValue & 0xf];
            localValue >>= 4;
        }
        if (localValue != 0) {
            revert StringsInsufficientHexLength(value, length);
        }
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal
     * representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 11 of 15 : ERC404.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {IERC721Receiver} from "@openzeppelin/contracts/interfaces/IERC721Receiver.sol";
import {IERC165} from "@openzeppelin/contracts/interfaces/IERC165.sol";
import {IERC404} from "./interfaces/IERC404.sol";
import {DoubleEndedQueue} from "./lib/DoubleEndedQueue.sol";
import {ERC721Events} from "./lib/ERC721Events.sol";
import {ERC20Events} from "./lib/ERC20Events.sol";

abstract contract ERC404 is IERC404 {
  using DoubleEndedQueue for DoubleEndedQueue.Uint256Deque;

  /// @dev The queue of ERC-721 tokens stored in the contract.
  DoubleEndedQueue.Uint256Deque private _storedERC721Ids;

  /// @dev Token name
  string public name;

  /// @dev Token symbol
  string public symbol;

  /// @dev Decimals for ERC-20 representation
  uint8 public immutable decimals;

  /// @dev Units for ERC-20 representation
  uint256 public immutable units;

  /// @dev Total supply in ERC-20 representation
  uint256 public totalSupply;

  /// @dev Current mint counter which also represents the highest
  ///      minted id, monotonically increasing to ensure accurate ownership
  uint256 public minted;

  /// @dev Initial chain id for EIP-2612 support
  uint256 internal immutable _INITIAL_CHAIN_ID;

  /// @dev Initial domain separator for EIP-2612 support
  bytes32 internal immutable _INITIAL_DOMAIN_SEPARATOR;

  /// @dev Balance of user in ERC-20 representation
  mapping(address => uint256) public balanceOf;

  /// @dev Allowance of user in ERC-20 representation
  mapping(address => mapping(address => uint256)) public allowance;

  /// @dev Approval in ERC-721 representaion
  mapping(uint256 => address) public getApproved;

  /// @dev Approval for all in ERC-721 representation
  mapping(address => mapping(address => bool)) public isApprovedForAll;

  /// @dev Packed representation of ownerOf and owned indices
  mapping(uint256 => uint256) internal _ownedData;

  /// @dev Array of owned ids in ERC-721 representation
  mapping(address => uint256[]) internal _owned;

  /// @dev Addresses that are exempt from ERC-721 transfer, typically for gas savings (pairs, routers, etc)
  mapping(address => bool) internal _erc721TransferExempt;

  /// @dev EIP-2612 nonces
  mapping(address => uint256) public nonces;

  /// @dev Address bitmask for packed ownership data
  uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

  /// @dev Owned index bitmask for packed ownership data
  uint256 private constant _BITMASK_OWNED_INDEX = ((1 << 96) - 1) << 160;

  /// @dev Constant for token id encoding
  uint256 public constant ID_ENCODING_PREFIX = 1 << 255;

  constructor(string memory name_, string memory symbol_, uint8 decimals_) {
    name = name_;
    symbol = symbol_;

    if (decimals_ < 18) {
      revert DecimalsTooLow();
    }

    decimals = decimals_;
    units = 10 ** decimals;

    // EIP-2612 initialization
    _INITIAL_CHAIN_ID = block.chainid;
    _INITIAL_DOMAIN_SEPARATOR = _computeDomainSeparator();
  }

  /// @notice Function to find owner of a given ERC-721 token
  function ownerOf(
    uint256 id_
  ) public view virtual returns (address erc721Owner) {
    erc721Owner = _getOwnerOf(id_);

    // If the id_ is beyond the range of minted tokens, is 0, or the token is not owned by anyone, revert.
    if (id_ <= ID_ENCODING_PREFIX || id_ == type(uint256).max) {
      revert InvalidId();
    }

    if (erc721Owner == address(0)) {
      revert NotFound();
    }
  }

  function owned(
    address owner_
  ) public view virtual returns (uint256[] memory) {
    return _owned[owner_];
  }

  function erc721BalanceOf(
    address owner_
  ) public view virtual returns (uint256) {
    return _owned[owner_].length;
  }

  function erc20BalanceOf(
    address owner_
  ) public view virtual returns (uint256) {
    return balanceOf[owner_];
  }

  function erc20TotalSupply() public view virtual returns (uint256) {
    return totalSupply;
  }

  function erc721TotalSupply() public view virtual returns (uint256) {
    return minted;
  }

  function getERC721QueueLength() public view virtual returns (uint256) {
    return _storedERC721Ids.length();
  }

  function getERC721TokensInQueue(
    uint256 start_,
    uint256 count_
  ) public view virtual returns (uint256[] memory) {
    uint256[] memory tokensInQueue = new uint256[](count_);

    for (uint256 i = start_; i < start_ + count_; ) {
      tokensInQueue[i - start_] = _storedERC721Ids.at(i);

      unchecked {
        ++i;
      }
    }

    return tokensInQueue;
  }

  /// @notice tokenURI must be implemented by child contract
  function tokenURI(uint256 id_) public view virtual returns (string memory);

  /// @notice Function for token approvals
  /// @dev This function assumes the operator is attempting to approve an ERC-721
  ///      if valueOrId is less than the minted count. Unlike setApprovalForAll,
  ///      spender_ must be allowed to be 0x0 so that approval can be revoked.
  function approve(
    address spender_,
    uint256 valueOrId_
  ) public virtual returns (bool) {
    // The ERC-721 tokens are 1-indexed, so 0 is not a valid id and indicates that
    // operator is attempting to set the ERC-20 allowance to 0.
    if (valueOrId_ > ID_ENCODING_PREFIX && valueOrId_ != type(uint256).max) {
      erc721Approve(spender_, valueOrId_);
    } else {
      return erc20Approve(spender_, valueOrId_);
    }

    return true;
  }

  function erc721Approve(address spender_, uint256 id_) public virtual {
    // Intention is to approve as ERC-721 token (id).
    address erc721Owner = _getOwnerOf(id_);

    if (
      msg.sender != erc721Owner && !isApprovedForAll[erc721Owner][msg.sender]
    ) {
      revert Unauthorized();
    }

    getApproved[id_] = spender_;

    emit ERC721Events.Approval(erc721Owner, spender_, id_);
  }

  /// @dev Providing type(uint256).max for approval value results in an
  ///      unlimited approval that is not deducted from on transfers.
  function erc20Approve(
    address spender_,
    uint256 value_
  ) public virtual returns (bool) {
    // Prevent granting 0x0 an ERC-20 allowance.
    if (spender_ == address(0)) {
      revert InvalidSpender();
    }

    // Intention is to approve as ERC-20 token (value).
    allowance[msg.sender][spender_] = value_;

    emit ERC20Events.Approval(msg.sender, spender_, value_);

    return true;
  }

  /// @notice Function for ERC-721 approvals
  function setApprovalForAll(address operator_, bool approved_) public virtual {
    // Prevent approvals to 0x0.
    if (operator_ == address(0)) {
      revert InvalidOperator();
    }
    isApprovedForAll[msg.sender][operator_] = approved_;
    emit ERC721Events.ApprovalForAll(msg.sender, operator_, approved_);
  }

  /// @notice Function for mixed transfers from an operator that may be different than 'from'.
  /// @dev This function assumes the operator is attempting to transfer an ERC-721
  ///      if valueOrId is less than or equal to current max id.
  function transferFrom(
    address from_,
    address to_,
    uint256 valueOrId_
  ) public virtual returns (bool) {
    if (valueOrId_ > ID_ENCODING_PREFIX) {
      erc721TransferFrom(from_, to_, valueOrId_);
    } else {
      // Intention is to transfer as ERC-20 token (value).
      return erc20TransferFrom(from_, to_, valueOrId_);
    }

    return true;
  }

  /// @notice Function for ERC-721 transfers from.
  /// @dev This function is recommended for ERC721 transfers
  function erc721TransferFrom(
    address from_,
    address to_,
    uint256 id_
  ) public virtual {
    // Prevent transferring tokens from 0x0.
    if (from_ == address(0)) {
      revert InvalidSender();
    }

    // Prevent burning tokens to 0x0.
    if (to_ == address(0)) {
      revert InvalidRecipient();
    }

    if (from_ != _getOwnerOf(id_)) {
      revert Unauthorized();
    }

    // Check that the operator is either the sender or approved for the transfer.
    if (
      msg.sender != from_ &&
      !isApprovedForAll[from_][msg.sender] &&
      msg.sender != getApproved[id_]
    ) {
      revert Unauthorized();
    }

    if (erc721TransferExempt(to_)) {
      revert RecipientIsERC721TransferExempt();
    }

    // Transfer 1 * units ERC-20 and 1 ERC-721 token.
    // ERC-721 transfer exemptions handled above. Can't make it to this point if either is transfer exempt.
    _transferERC20(from_, to_, units);
    _transferERC721(from_, to_, id_);
  }

  /// @notice Function for ERC-20 transfers from.
  /// @dev This function is recommended for ERC20 transfers
  function erc20TransferFrom(
    address from_,
    address to_,
    uint256 value_
  ) public virtual returns (bool) {
    // Prevent transferring tokens from 0x0.
    if (from_ == address(0)) {
      revert InvalidSender();
    }

    // Prevent burning tokens to 0x0.
    if (to_ == address(0)) {
      revert InvalidRecipient();
    }

    // Intention is to transfer as ERC-20 token (value).
    uint256 allowed = allowance[from_][msg.sender];

    // Check that the operator has sufficient allowance.
    if (allowed != type(uint256).max) {
      allowance[from_][msg.sender] = allowed - value_;
    }

    // Transferring ERC-20s directly requires the _transfer function.
    // Handles ERC-721 exemptions internally.
    return _transferERC20WithERC721(from_, to_, value_);
  }

  /// @notice Function for ERC-20 transfers.
  /// @dev This function assumes the operator is attempting to transfer as ERC-20
  ///      given this function is only supported on the ERC-20 interface.
  ///      Treats even small amounts that are valid ERC-721 ids as ERC-20s.
  function transfer(address to_, uint256 value_) public virtual returns (bool) {
    // Prevent burning tokens to 0x0.
    if (to_ == address(0)) {
      revert InvalidRecipient();
    }

    // Transferring ERC-20s directly requires the _transfer function.
    // Handles ERC-721 exemptions internally.
    return _transferERC20WithERC721(msg.sender, to_, value_);
  }

  /// @notice Function for ERC-721 transfers with contract support.
  /// This function only supports moving valid ERC-721 ids, as it does not exist on the ERC-20
  /// spec and will revert otherwise.
  function safeTransferFrom(
    address from_,
    address to_,
    uint256 id_
  ) public virtual {
    safeTransferFrom(from_, to_, id_, "");
  }

  /// @notice Function for ERC-721 transfers with contract support and callback data.
  /// This function only supports moving valid ERC-721 ids, as it does not exist on the
  /// ERC-20 spec and will revert otherwise.
  function safeTransferFrom(
    address from_,
    address to_,
    uint256 id_,
    bytes memory data_
  ) public virtual {
    if (id_ <= ID_ENCODING_PREFIX) {
      revert InvalidId();
    }

    transferFrom(from_, to_, id_);

    if (
      to_.code.length != 0 &&
      IERC721Receiver(to_).onERC721Received(msg.sender, from_, id_, data_) !=
      IERC721Receiver.onERC721Received.selector
    ) {
      revert UnsafeRecipient();
    }
  }

  /// @notice Function for EIP-2612 permits
  /// @dev Providing type(uint256).max for permit value results in an
  ///      unlimited approval that is not deducted from on transfers.
  function permit(
    address owner_,
    address spender_,
    uint256 value_,
    uint256 deadline_,
    uint8 v_,
    bytes32 r_,
    bytes32 s_
  ) public virtual {
    if (deadline_ < block.timestamp) {
      revert PermitDeadlineExpired();
    }

    if (value_ > ID_ENCODING_PREFIX && value_ != type(uint256).max) {
      revert InvalidApproval();
    }

    if (spender_ == address(0)) {
      revert InvalidSpender();
    }

    unchecked {
      address recoveredAddress = ecrecover(
        keccak256(
          abi.encodePacked(
            "\x19\x01",
            DOMAIN_SEPARATOR(),
            keccak256(
              abi.encode(
                keccak256(
                  "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"
                ),
                owner_,
                spender_,
                value_,
                nonces[owner_]++,
                deadline_
              )
            )
          )
        ),
        v_,
        r_,
        s_
      );

      if (recoveredAddress == address(0) || recoveredAddress != owner_) {
        revert InvalidSigner();
      }

      allowance[recoveredAddress][spender_] = value_;
    }

    emit ERC20Events.Approval(owner_, spender_, value_);
  }

  /// @notice Returns domain initial domain separator, or recomputes if chain id is not equal to initial chain id
  function DOMAIN_SEPARATOR() public view virtual returns (bytes32) {
    return
      block.chainid == _INITIAL_CHAIN_ID
        ? _INITIAL_DOMAIN_SEPARATOR
        : _computeDomainSeparator();
  }

  function supportsInterface(
    bytes4 interfaceId
  ) public view virtual returns (bool) {
    return
      interfaceId == type(IERC404).interfaceId ||
      interfaceId == type(IERC165).interfaceId;
  }

  /// @notice Function for self-exemption
  function setSelfERC721TransferExempt(bool state_) public virtual {
    _setERC721TransferExempt(msg.sender, state_);
  }

  /// @notice Function to check if address is transfer exempt
  function erc721TransferExempt(
    address target_
  ) public view virtual returns (bool) {
    return target_ == address(0) || _erc721TransferExempt[target_];
  }

  /// @notice Internal function to compute domain separator for EIP-2612 permits
  function _computeDomainSeparator() internal view virtual returns (bytes32) {
    return
      keccak256(
        abi.encode(
          keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
          ),
          keccak256(bytes(name)),
          keccak256("1"),
          block.chainid,
          address(this)
        )
      );
  }

  /// @notice This is the lowest level ERC-20 transfer function, which
  ///         should be used for both normal ERC-20 transfers as well as minting.
  /// Note that this function allows transfers to and from 0x0.
  function _transferERC20(
    address from_,
    address to_,
    uint256 value_
  ) internal virtual {
    // Minting is a special case for which we should not check the balance of
    // the sender, and we should increase the total supply.
    if (from_ == address(0)) {
      totalSupply += value_;
    } else {
      // Deduct value from sender's balance.
      balanceOf[from_] -= value_;
    }

    // Update the recipient's balance.
    // Can be unchecked because on mint, adding to totalSupply is checked, and on transfer balance deduction is checked.
    unchecked {
      balanceOf[to_] += value_;
    }

    emit ERC20Events.Transfer(from_, to_, value_);
  }

  /// @notice Consolidated record keeping function for transferring ERC-721s.
  /// @dev Assign the token to the new owner, and remove from the old owner.
  /// Note that this function allows transfers to and from 0x0.
  /// Does not handle ERC-721 exemptions.
  function _transferERC721(
    address from_,
    address to_,
    uint256 id_
  ) internal virtual {
    // If this is not a mint, handle record keeping for transfer from previous owner.
    if (from_ != address(0)) {
      // On transfer of an NFT, any previous approval is reset.
      delete getApproved[id_];

      uint256 updatedId = _owned[from_][_owned[from_].length - 1];
      if (updatedId != id_) {
        uint256 updatedIndex = _getOwnedIndex(id_);
        // update _owned for sender
        _owned[from_][updatedIndex] = updatedId;
        // update index for the moved id
        _setOwnedIndex(updatedId, updatedIndex);
      }

      // pop
      _owned[from_].pop();
    }

    // Check if this is a burn.
    if (to_ != address(0)) {
      // If not a burn, update the owner of the token to the new owner.
      // Update owner of the token to the new owner.
      _setOwnerOf(id_, to_);
      // Push token onto the new owner's stack.
      _owned[to_].push(id_);
      // Update index for new owner's stack.
      _setOwnedIndex(id_, _owned[to_].length - 1);
    } else {
      // If this is a burn, reset the owner of the token to 0x0 by deleting the token from _ownedData.
      delete _ownedData[id_];
    }

    emit ERC721Events.Transfer(from_, to_, id_);
  }

  /// @notice Internal function for ERC-20 transfers. Also handles any ERC-721 transfers that may be required.
  // Handles ERC-721 exemptions.
  function _transferERC20WithERC721(
    address from_,
    address to_,
    uint256 value_
  ) internal virtual returns (bool) {
    uint256 erc20BalanceOfSenderBefore = erc20BalanceOf(from_);
    uint256 erc20BalanceOfReceiverBefore = erc20BalanceOf(to_);

    _transferERC20(from_, to_, value_);

    // Preload for gas savings on branches
    bool isFromERC721TransferExempt = erc721TransferExempt(from_);
    bool isToERC721TransferExempt = erc721TransferExempt(to_);

    // Skip _withdrawAndStoreERC721 and/or _retrieveOrMintERC721 for ERC-721 transfer exempt addresses
    // 1) to save gas
    // 2) because ERC-721 transfer exempt addresses won't always have/need ERC-721s corresponding to their ERC20s.
    if (isFromERC721TransferExempt && isToERC721TransferExempt) {
      // Case 1) Both sender and recipient are ERC-721 transfer exempt. No ERC-721s need to be transferred.
      // NOOP.
    } else if (isFromERC721TransferExempt) {
      // Case 2) The sender is ERC-721 transfer exempt, but the recipient is not. Contract should not attempt
      //         to transfer ERC-721s from the sender, but the recipient should receive ERC-721s
      //         from the bank/minted for any whole number increase in their balance.
      // Only cares about whole number increments.
      uint256 tokensToRetrieveOrMint = (balanceOf[to_] / units) -
        (erc20BalanceOfReceiverBefore / units);
      for (uint256 i = 0; i < tokensToRetrieveOrMint; ) {
        _retrieveOrMintERC721(to_);
        unchecked {
          ++i;
        }
      }
    } else if (isToERC721TransferExempt) {
      // Case 3) The sender is not ERC-721 transfer exempt, but the recipient is. Contract should attempt
      //         to withdraw and store ERC-721s from the sender, but the recipient should not
      //         receive ERC-721s from the bank/minted.
      // Only cares about whole number increments.
      uint256 tokensToWithdrawAndStore = (erc20BalanceOfSenderBefore / units) -
        (balanceOf[from_] / units);
      for (uint256 i = 0; i < tokensToWithdrawAndStore; ) {
        _withdrawAndStoreERC721(from_);
        unchecked {
          ++i;
        }
      }
    } else {
      // Case 4) Neither the sender nor the recipient are ERC-721 transfer exempt.
      // Strategy:
      // 1. First deal with the whole tokens. These are easy and will just be transferred.
      // 2. Look at the fractional part of the value:
      //   a) If it causes the sender to lose a whole token that was represented by an NFT due to a
      //      fractional part being transferred, withdraw and store an additional NFT from the sender.
      //   b) If it causes the receiver to gain a whole new token that should be represented by an NFT
      //      due to receiving a fractional part that completes a whole token, retrieve or mint an NFT to the recevier.

      // Whole tokens worth of ERC-20s get transferred as ERC-721s without any burning/minting.
      uint256 nftsToTransfer = value_ / units;
      for (uint256 i = 0; i < nftsToTransfer; ) {
        // Pop from sender's ERC-721 stack and transfer them (LIFO)
        uint256 indexOfLastToken = _owned[from_].length - 1;
        uint256 tokenId = _owned[from_][indexOfLastToken];
        _transferERC721(from_, to_, tokenId);
        unchecked {
          ++i;
        }
      }

      // If the transfer changes either the sender or the recipient's holdings from a fractional to a non-fractional
      // amount (or vice versa), adjust ERC-721s.

      // First check if the send causes the sender to lose a whole token that was represented by an ERC-721
      // due to a fractional part being transferred.
      //
      // Process:
      // Take the difference between the whole number of tokens before and after the transfer for the sender.
      // If that difference is greater than the number of ERC-721s transferred (whole units), then there was
      // an additional ERC-721 lost due to the fractional portion of the transfer.
      // If this is a self-send and the before and after balances are equal (not always the case but often),
      // then no ERC-721s will be lost here.
      if (
        erc20BalanceOfSenderBefore / units - erc20BalanceOf(from_) / units >
        nftsToTransfer
      ) {
        _withdrawAndStoreERC721(from_);
      }

      // Then, check if the transfer causes the receiver to gain a whole new token which requires gaining
      // an additional ERC-721.
      //
      // Process:
      // Take the difference between the whole number of tokens before and after the transfer for the recipient.
      // If that difference is greater than the number of ERC-721s transferred (whole units), then there was
      // an additional ERC-721 gained due to the fractional portion of the transfer.
      // Again, for self-sends where the before and after balances are equal, no ERC-721s will be gained here.
      if (
        erc20BalanceOf(to_) / units - erc20BalanceOfReceiverBefore / units >
        nftsToTransfer
      ) {
        _retrieveOrMintERC721(to_);
      }
    }

    return true;
  }

  /// @notice Internal function for ERC20 minting
  /// @dev This function will allow minting of new ERC20s.
  ///      If mintCorrespondingERC721s_ is true, and the recipient is not ERC-721 exempt, it will
  ///      also mint the corresponding ERC721s.
  /// Handles ERC-721 exemptions.
  function _mintERC20(address to_, uint256 value_) internal virtual {
    /// You cannot mint to the zero address (you can't mint and immediately burn in the same transfer).
    if (to_ == address(0)) {
      revert InvalidRecipient();
    }

    if (totalSupply + value_ > ID_ENCODING_PREFIX) {
      revert MintLimitReached();
    }

    _transferERC20WithERC721(address(0), to_, value_);
  }

  /// @notice Internal function for ERC-721 minting and retrieval from the bank.
  /// @dev This function will allow minting of new ERC-721s up to the total fractional supply. It will
  ///      first try to pull from the bank, and if the bank is empty, it will mint a new token.
  /// Does not handle ERC-721 exemptions.
  function _retrieveOrMintERC721(address to_) internal virtual {
    if (to_ == address(0)) {
      revert InvalidRecipient();
    }

    uint256 id;

    if (!_storedERC721Ids.empty()) {
      // If there are any tokens in the bank, use those first.
      // Pop off the end of the queue (FIFO).
      id = _storedERC721Ids.popBack();
    } else {
      // Otherwise, mint a new token, should not be able to go over the total fractional supply.
      ++minted;

      // Reserve max uint256 for approvals
      if (minted == type(uint256).max) {
        revert MintLimitReached();
      }

      id = ID_ENCODING_PREFIX + minted;
    }

    address erc721Owner = _getOwnerOf(id);

    // The token should not already belong to anyone besides 0x0 or this contract.
    // If it does, something is wrong, as this should never happen.
    if (erc721Owner != address(0)) {
      revert AlreadyExists();
    }

    // Transfer the token to the recipient, either transferring from the contract's bank or minting.
    // Does not handle ERC-721 exemptions.
    _transferERC721(erc721Owner, to_, id);
  }

  /// @notice Internal function for ERC-721 deposits to bank (this contract).
  /// @dev This function will allow depositing of ERC-721s to the bank, which can be retrieved by future minters.
  // Does not handle ERC-721 exemptions.
  function _withdrawAndStoreERC721(address from_) internal virtual {
    if (from_ == address(0)) {
      revert InvalidSender();
    }

    // Retrieve the latest token added to the owner's stack (LIFO).
    uint256 id = _owned[from_][_owned[from_].length - 1];

    // Transfer to 0x0.
    // Does not handle ERC-721 exemptions.
    _transferERC721(from_, address(0), id);

    // Record the token in the contract's bank queue.
    _storedERC721Ids.pushFront(id);
  }

  /// @notice Initialization function to set pairs / etc, saving gas by avoiding mint / burn on unnecessary targets
  function _setERC721TransferExempt(
    address target_,
    bool state_
  ) internal virtual {
    if (target_ == address(0)) {
      revert InvalidExemption();
    }

    // Adjust the ERC721 balances of the target to respect exemption rules.
    // Despite this logic, it is still recommended practice to exempt prior to the target
    // having an active balance.
    if (state_) {
      _clearERC721Balance(target_);
    } else {
      _reinstateERC721Balance(target_);
    }

    _erc721TransferExempt[target_] = state_;
  }

  /// @notice Function to reinstate balance on exemption removal
  function _reinstateERC721Balance(address target_) private {
    uint256 expectedERC721Balance = erc20BalanceOf(target_) / units;
    uint256 actualERC721Balance = erc721BalanceOf(target_);

    for (uint256 i = 0; i < expectedERC721Balance - actualERC721Balance; ) {
      // Transfer ERC721 balance in from pool
      _retrieveOrMintERC721(target_);
      unchecked {
        ++i;
      }
    }
  }

  /// @notice Function to clear balance on exemption inclusion
  function _clearERC721Balance(address target_) private {
    uint256 erc721Balance = erc721BalanceOf(target_);

    for (uint256 i = 0; i < erc721Balance; ) {
      // Transfer out ERC721 balance
      _withdrawAndStoreERC721(target_);
      unchecked {
        ++i;
      }
    }
  }

  function _getOwnerOf(
    uint256 id_
  ) internal view virtual returns (address ownerOf_) {
    uint256 data = _ownedData[id_];

    assembly {
      ownerOf_ := and(data, _BITMASK_ADDRESS)
    }
  }

  function _setOwnerOf(uint256 id_, address owner_) internal virtual {
    uint256 data = _ownedData[id_];

    assembly {
      data := add(
        and(data, _BITMASK_OWNED_INDEX),
        and(owner_, _BITMASK_ADDRESS)
      )
    }

    _ownedData[id_] = data;
  }

  function _getOwnedIndex(
    uint256 id_
  ) internal view virtual returns (uint256 ownedIndex_) {
    uint256 data = _ownedData[id_];

    assembly {
      ownedIndex_ := shr(160, data)
    }
  }

  function _setOwnedIndex(uint256 id_, uint256 index_) internal virtual {
    uint256 data = _ownedData[id_];

    if (index_ > _BITMASK_OWNED_INDEX >> 160) {
      revert OwnedIndexOverflow();
    }

    assembly {
      data := add(
        and(data, _BITMASK_ADDRESS),
        and(shl(160, index_), _BITMASK_OWNED_INDEX)
      )
    }

    _ownedData[id_] = data;
  }
}

File 12 of 15 : IERC404.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {IERC165} from "@openzeppelin/contracts/interfaces/IERC165.sol";

interface IERC404 is IERC165 {
  error NotFound();
  error InvalidId();
  error AlreadyExists();
  error InvalidRecipient();
  error InvalidSender();
  error InvalidSpender();
  error InvalidOperator();
  error UnsafeRecipient();
  error RecipientIsERC721TransferExempt();
  error Unauthorized();
  error InsufficientAllowance();
  error DecimalsTooLow();
  error PermitDeadlineExpired();
  error InvalidSigner();
  error InvalidApproval();
  error OwnedIndexOverflow();
  error MintLimitReached();
  error InvalidExemption();

  function name() external view returns (string memory);
  function symbol() external view returns (string memory);
  function decimals() external view returns (uint8);
  function totalSupply() external view returns (uint256);
  function erc20TotalSupply() external view returns (uint256);
  function erc721TotalSupply() external view returns (uint256);
  function balanceOf(address owner_) external view returns (uint256);
  function erc721BalanceOf(address owner_) external view returns (uint256);
  function erc20BalanceOf(address owner_) external view returns (uint256);
  function erc721TransferExempt(address account_) external view returns (bool);
  function isApprovedForAll(
    address owner_,
    address operator_
  ) external view returns (bool);
  function allowance(
    address owner_,
    address spender_
  ) external view returns (uint256);
  function owned(address owner_) external view returns (uint256[] memory);
  function ownerOf(uint256 id_) external view returns (address erc721Owner);
  function tokenURI(uint256 id_) external view returns (string memory);
  function approve(
    address spender_,
    uint256 valueOrId_
  ) external returns (bool);
  function erc20Approve(
    address spender_,
    uint256 value_
  ) external returns (bool);
  function erc721Approve(address spender_, uint256 id_) external;
  function setApprovalForAll(address operator_, bool approved_) external;
  function transferFrom(
    address from_,
    address to_,
    uint256 valueOrId_
  ) external returns (bool);
  function erc20TransferFrom(
    address from_,
    address to_,
    uint256 value_
  ) external returns (bool);
  function erc721TransferFrom(address from_, address to_, uint256 id_) external;
  function transfer(address to_, uint256 amount_) external returns (bool);
  function getERC721QueueLength() external view returns (uint256);
  function getERC721TokensInQueue(
    uint256 start_,
    uint256 count_
  ) external view returns (uint256[] memory);
  function setSelfERC721TransferExempt(bool state_) external;
  function safeTransferFrom(address from_, address to_, uint256 id_) external;
  function safeTransferFrom(
    address from_,
    address to_,
    uint256 id_,
    bytes calldata data_
  ) external;
  function DOMAIN_SEPARATOR() external view returns (bytes32);
  function permit(
    address owner_,
    address spender_,
    uint256 value_,
    uint256 deadline_,
    uint8 v_,
    bytes32 r_,
    bytes32 s_
  ) external;
}

File 13 of 15 : DoubleEndedQueue.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/structs/DoubleEndedQueue.sol)
// Modified by Pandora Labs to support native uint256 operations
pragma solidity ^0.8.20;

/**
 * @dev A sequence of items with the ability to efficiently push and pop items (i.e. insert and remove) on both ends of
 * the sequence (called front and back). Among other access patterns, it can be used to implement efficient LIFO and
 * FIFO queues. Storage use is optimized, and all operations are O(1) constant time. This includes {clear}, given that
 * the existing queue contents are left in storage.
 *
 * The struct is called `Uint256Deque`. This data structure can only be used in storage, and not in memory.
 *
 * ```solidity
 * DoubleEndedQueue.Uint256Deque queue;
 * ```
 */
library DoubleEndedQueue {
  /**
   * @dev An operation (e.g. {front}) couldn't be completed due to the queue being empty.
   */
  error QueueEmpty();

  /**
   * @dev A push operation couldn't be completed due to the queue being full.
   */
  error QueueFull();

  /**
   * @dev An operation (e.g. {at}) couldn't be completed due to an index being out of bounds.
   */
  error QueueOutOfBounds();

  /**
   * @dev Indices are 128 bits so begin and end are packed in a single storage slot for efficient access.
   *
   * Struct members have an underscore prefix indicating that they are "private" and should not be read or written to
   * directly. Use the functions provided below instead. Modifying the struct manually may violate assumptions and
   * lead to unexpected behavior.
   *
   * The first item is at data[begin] and the last item is at data[end - 1]. This range can wrap around.
   */
  struct Uint256Deque {
    uint128 _begin;
    uint128 _end;
    mapping(uint128 index => uint256) _data;
  }

  /**
   * @dev Inserts an item at the end of the queue.
   *
   * Reverts with {QueueFull} if the queue is full.
   */
  function pushBack(Uint256Deque storage deque, uint256 value) internal {
    unchecked {
      uint128 backIndex = deque._end;
      if (backIndex + 1 == deque._begin) revert QueueFull();
      deque._data[backIndex] = value;
      deque._end = backIndex + 1;
    }
  }

  /**
   * @dev Removes the item at the end of the queue and returns it.
   *
   * Reverts with {QueueEmpty} if the queue is empty.
   */
  function popBack(
    Uint256Deque storage deque
  ) internal returns (uint256 value) {
    unchecked {
      uint128 backIndex = deque._end;
      if (backIndex == deque._begin) revert QueueEmpty();
      --backIndex;
      value = deque._data[backIndex];
      delete deque._data[backIndex];
      deque._end = backIndex;
    }
  }

  /**
   * @dev Inserts an item at the beginning of the queue.
   *
   * Reverts with {QueueFull} if the queue is full.
   */
  function pushFront(Uint256Deque storage deque, uint256 value) internal {
    unchecked {
      uint128 frontIndex = deque._begin - 1;
      if (frontIndex == deque._end) revert QueueFull();
      deque._data[frontIndex] = value;
      deque._begin = frontIndex;
    }
  }

  /**
   * @dev Removes the item at the beginning of the queue and returns it.
   *
   * Reverts with `QueueEmpty` if the queue is empty.
   */
  function popFront(
    Uint256Deque storage deque
  ) internal returns (uint256 value) {
    unchecked {
      uint128 frontIndex = deque._begin;
      if (frontIndex == deque._end) revert QueueEmpty();
      value = deque._data[frontIndex];
      delete deque._data[frontIndex];
      deque._begin = frontIndex + 1;
    }
  }

  /**
   * @dev Returns the item at the beginning of the queue.
   *
   * Reverts with `QueueEmpty` if the queue is empty.
   */
  function front(
    Uint256Deque storage deque
  ) internal view returns (uint256 value) {
    if (empty(deque)) revert QueueEmpty();
    return deque._data[deque._begin];
  }

  /**
   * @dev Returns the item at the end of the queue.
   *
   * Reverts with `QueueEmpty` if the queue is empty.
   */
  function back(
    Uint256Deque storage deque
  ) internal view returns (uint256 value) {
    if (empty(deque)) revert QueueEmpty();
    unchecked {
      return deque._data[deque._end - 1];
    }
  }

  /**
   * @dev Return the item at a position in the queue given by `index`, with the first item at 0 and last item at
   * `length(deque) - 1`.
   *
   * Reverts with `QueueOutOfBounds` if the index is out of bounds.
   */
  function at(
    Uint256Deque storage deque,
    uint256 index
  ) internal view returns (uint256 value) {
    if (index >= length(deque)) revert QueueOutOfBounds();
    // By construction, length is a uint128, so the check above ensures that index can be safely downcast to uint128
    unchecked {
      return deque._data[deque._begin + uint128(index)];
    }
  }

  /**
   * @dev Resets the queue back to being empty.
   *
   * NOTE: The current items are left behind in storage. This does not affect the functioning of the queue, but misses
   * out on potential gas refunds.
   */
  function clear(Uint256Deque storage deque) internal {
    deque._begin = 0;
    deque._end = 0;
  }

  /**
   * @dev Returns the number of items in the queue.
   */
  function length(Uint256Deque storage deque) internal view returns (uint256) {
    unchecked {
      return uint256(deque._end - deque._begin);
    }
  }

  /**
   * @dev Returns true if the queue is empty.
   */
  function empty(Uint256Deque storage deque) internal view returns (bool) {
    return deque._end == deque._begin;
  }
}

File 14 of 15 : ERC20Events.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

library ERC20Events {
  event Approval(address indexed owner, address indexed spender, uint256 value);
  event Transfer(address indexed from, address indexed to, uint256 amount);
}

File 15 of 15 : ERC721Events.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

library ERC721Events {
  event ApprovalForAll(
    address indexed owner,
    address indexed operator,
    bool approved
  );
  event Approval(
    address indexed owner,
    address indexed spender,
    uint256 indexed id
  );
  event Transfer(
    address indexed from,
    address indexed to,
    uint256 indexed id
  );
}

Settings
{
  "evmVersion": "paris",
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint8","name":"decimals_","type":"uint8"},{"internalType":"uint256","name":"maxTotalSupplyERC721_","type":"uint256"},{"internalType":"address","name":"initialOwner_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyExists","type":"error"},{"inputs":[],"name":"DecimalsTooLow","type":"error"},{"inputs":[],"name":"InsufficientAllowance","type":"error"},{"inputs":[],"name":"InvalidApproval","type":"error"},{"inputs":[],"name":"InvalidExemption","type":"error"},{"inputs":[],"name":"InvalidId","type":"error"},{"inputs":[],"name":"InvalidOperator","type":"error"},{"inputs":[],"name":"InvalidRecipient","type":"error"},{"inputs":[],"name":"InvalidSender","type":"error"},{"inputs":[],"name":"InvalidSigner","type":"error"},{"inputs":[],"name":"InvalidSpender","type":"error"},{"inputs":[],"name":"MintLimitReached","type":"error"},{"inputs":[],"name":"NotFound","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"OwnedIndexOverflow","type":"error"},{"inputs":[],"name":"PermitDeadlineExpired","type":"error"},{"inputs":[],"name":"QueueEmpty","type":"error"},{"inputs":[],"name":"QueueFull","type":"error"},{"inputs":[],"name":"QueueOutOfBounds","type":"error"},{"inputs":[],"name":"RecipientIsERC721TransferExempt","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"UnsafeRecipient","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ID_ENCODING_PREFIX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender_","type":"address"},{"internalType":"uint256","name":"valueOrId_","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender_","type":"address"},{"internalType":"uint256","name":"value_","type":"uint256"}],"name":"erc20Approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"}],"name":"erc20BalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"erc20TotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from_","type":"address"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"value_","type":"uint256"}],"name":"erc20TransferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender_","type":"address"},{"internalType":"uint256","name":"id_","type":"uint256"}],"name":"erc721Approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"}],"name":"erc721BalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"erc721TotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target_","type":"address"}],"name":"erc721TransferExempt","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from_","type":"address"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"id_","type":"uint256"}],"name":"erc721TransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getERC721QueueLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"start_","type":"uint256"},{"internalType":"uint256","name":"count_","type":"uint256"}],"name":"getERC721TokensInQueue","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"}],"name":"owned","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id_","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"erc721Owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address","name":"spender_","type":"address"},{"internalType":"uint256","name":"value_","type":"uint256"},{"internalType":"uint256","name":"deadline_","type":"uint256"},{"internalType":"uint8","name":"v_","type":"uint8"},{"internalType":"bytes32","name":"r_","type":"bytes32"},{"internalType":"bytes32","name":"s_","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from_","type":"address"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"id_","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from_","type":"address"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"id_","type":"uint256"},{"internalType":"bytes","name":"data_","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator_","type":"address"},{"internalType":"bool","name":"approved_","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account_","type":"address"},{"internalType":"bool","name":"value_","type":"bool"}],"name":"setERC721TransferExempt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"state_","type":"bool"}],"name":"setSelfERC721TransferExempt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id_","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"value_","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from_","type":"address"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"valueOrId_","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"units","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

6101006040523480156200001257600080fd5b5060405162006e0e38038062006e0e833981810160405281019062000038919062001971565b84848483600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620000b15760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620000a8919062001a48565b60405180910390fd5b620000c281620001ad60201b60201c565b508260039081620000d4919062001ca6565b508160049081620000e6919062001ca6565b5060128160ff16101562000126576040517f98790fd500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060ff1660808160ff1681525050608051600a62000145919062001f10565b60a081815250504660c08181525050620001646200027160201b60201c565b60e08181525050505050620001818160016200030160201b60201c565b620001a28160a0518462000196919062001f61565b620003f360201b60201c565b5050505050620022a2565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6003604051620002a591906200205b565b60405180910390207fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc64630604051602001620002e6959493929190620020a0565b60405160208183030381529060405280519060200120905090565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160362000368576040517fa41e3d3f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b801562000386576200038082620004dd60201b60201c565b62000398565b62000397826200052060201b60201c565b5b80600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036200045a576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f8000000000000000000000000000000000000000000000000000000000000000816005546200048b9190620020fd565b1115620004c4576040517f303b682f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b620004d8600083836200059560201b60201c565b505050565b6000620004f0826200091460201b60201c565b905060005b818110156200051b576200050f836200096060201b60201c565b806001019050620004f5565b505050565b600060a051620005368362000aa860201b60201c565b62000542919062002167565b9050600062000557836200091460201b60201c565b905060005b81836200056a91906200219f565b8110156200058f57620005838462000af160201b60201c565b8060010190506200055c565b50505050565b600080620005a98562000aa860201b60201c565b90506000620005be8562000aa860201b60201c565b9050620005d386868662000cc660201b60201c565b6000620005e68762000e2e60201b60201c565b90506000620005fb8762000e2e60201b60201c565b9050818015620006085750805b62000905578115620006b457600060a0518462000626919062002167565b60a051600760008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205462000675919062002167565b6200068191906200219f565b905060005b81811015620006ac57620006a08962000af160201b60201c565b80600101905062000686565b505062000904565b80156200075b57600060a051600760008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546200070c919062002167565b60a051866200071c919062002167565b6200072891906200219f565b905060005b818110156200075357620007478a6200096060201b60201c565b8060010190506200072d565b505062000903565b600060a051876200076d919062002167565b905060005b81811015620008545760006001600c60008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050620007ce91906200219f565b90506000600c60008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208281548110620008265762000825620021da565b5b90600052602060002001549050620008468c8c8362000ebb60201b60201c565b826001019250505062000772565b508060a0516200086a8b62000aa860201b60201c565b62000876919062002167565b60a0518762000886919062002167565b6200089291906200219f565b1115620008ab57620008aa896200096060201b60201c565b5b8060a05185620008bc919062002167565b60a051620008d08b62000aa860201b60201c565b620008dc919062002167565b620008e891906200219f565b11156200090157620009008862000af160201b60201c565b5b505b5b5b60019450505050509392505050565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050919050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620009c7576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905062000a5991906200219f565b8154811062000a6d5762000a6c620021da565b5b9060005260206000200154905062000a8e8260008362000ebb60201b60201c565b62000aa48160016200126460201b90919060201c565b5050565b6000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160362000b58576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600062000b6c60016200138860201b60201c565b62000b8b5762000b836001620013f860201b60201c565b905062000c32565b60066000815462000b9c9062002209565b919050819055507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6006540362000bff576040517f303b682f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006547f800000000000000000000000000000000000000000000000000000000000000062000c2f9190620020fd565b90505b600062000c45826200155d60201b60201c565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161462000cae576040517f23369fa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b62000cc181848462000ebb60201b60201c565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160362000d1c57806005600082825462000d0f9190620020fd565b9250508190555062000d75565b80600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825462000d6d91906200219f565b925050819055505b80600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405162000e21919062002256565b60405180910390a3505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16148062000eb45750600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614620010d7576009600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905062000fb891906200219f565b8154811062000fcc5762000fcb620021da565b5b906000526020600020015490508181146200106d57600062000ff4836200159560201b60201c565b905081600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082815481106200104b576200104a620021da565b5b90600052602060002001819055506200106b8282620015ba60201b60201c565b505b600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480620010bf57620010be62002273565b5b60019003818190600052602060002001600090559055505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614620011ec576200111e81836200168e60201b60201c565b600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819080600181540180825580915050600190039060005260206000200160009091909190915055620011e6816001600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050620011da91906200219f565b620015ba60201b60201c565b62001204565b600b6000828152602001908152602001600020600090555b808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600060018360000160009054906101000a90046fffffffffffffffffffffffffffffffff160390508260000160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16816fffffffffffffffffffffffffffffffff16036200130a576040517f8acb5f2700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81836001016000836fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16815260200190815260200160002081905550808360000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550505050565b60008160000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff168260000160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16149050919050565b6000808260000160109054906101000a90046fffffffffffffffffffffffffffffffff1690508260000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16816fffffffffffffffffffffffffffffffff16036200149c576040517f75e52f4f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600190039050826001016000826fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff168152602001908152602001600020549150826001016000826fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16815260200190815260200160002060009055808360000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555050919050565b600080600b600084815260200190815260200160002054905073ffffffffffffffffffffffffffffffffffffffff8116915050919050565b600080600b60008481526020019081526020016000205490508060a01c915050919050565b6000600b600084815260200190815260200160002054905060a07fffffffffffffffffffffffff0000000000000000000000000000000000000000901c82111562001631576040517ffcb3438c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fffffffffffffffffffffffff00000000000000000000000000000000000000008260a01b1673ffffffffffffffffffffffffffffffffffffffff821601905080600b600085815260200190815260200160002081905550505050565b6000600b600084815260200190815260200160002054905073ffffffffffffffffffffffffffffffffffffffff82167fffffffffffffffffffffffff0000000000000000000000000000000000000000821601905080600b600085815260200190815260200160002081905550505050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b62001769826200171e565b810181811067ffffffffffffffff821117156200178b576200178a6200172f565b5b80604052505050565b6000620017a062001700565b9050620017ae82826200175e565b919050565b600067ffffffffffffffff821115620017d157620017d06200172f565b5b620017dc826200171e565b9050602081019050919050565b60005b8381101562001809578082015181840152602081019050620017ec565b60008484015250505050565b60006200182c6200182684620017b3565b62001794565b9050828152602081018484840111156200184b576200184a62001719565b5b62001858848285620017e9565b509392505050565b600082601f83011262001878576200187762001714565b5b81516200188a84826020860162001815565b91505092915050565b600060ff82169050919050565b620018ab8162001893565b8114620018b757600080fd5b50565b600081519050620018cb81620018a0565b92915050565b6000819050919050565b620018e681620018d1565b8114620018f257600080fd5b50565b6000815190506200190681620018db565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062001939826200190c565b9050919050565b6200194b816200192c565b81146200195757600080fd5b50565b6000815190506200196b8162001940565b92915050565b600080600080600060a0868803121562001990576200198f6200170a565b5b600086015167ffffffffffffffff811115620019b157620019b06200170f565b5b620019bf8882890162001860565b955050602086015167ffffffffffffffff811115620019e357620019e26200170f565b5b620019f18882890162001860565b945050604062001a0488828901620018ba565b935050606062001a1788828901620018f5565b925050608062001a2a888289016200195a565b9150509295509295909350565b62001a42816200192c565b82525050565b600060208201905062001a5f600083018462001a37565b92915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062001ab857607f821691505b60208210810362001ace5762001acd62001a70565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830262001b387fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262001af9565b62001b44868362001af9565b95508019841693508086168417925050509392505050565b6000819050919050565b600062001b8762001b8162001b7b84620018d1565b62001b5c565b620018d1565b9050919050565b6000819050919050565b62001ba38362001b66565b62001bbb62001bb28262001b8e565b84845462001b06565b825550505050565b600090565b62001bd262001bc3565b62001bdf81848462001b98565b505050565b5b8181101562001c075762001bfb60008262001bc8565b60018101905062001be5565b5050565b601f82111562001c565762001c208162001ad4565b62001c2b8462001ae9565b8101602085101562001c3b578190505b62001c5362001c4a8562001ae9565b83018262001be4565b50505b505050565b600082821c905092915050565b600062001c7b6000198460080262001c5b565b1980831691505092915050565b600062001c96838362001c68565b9150826002028217905092915050565b62001cb18262001a65565b67ffffffffffffffff81111562001ccd5762001ccc6200172f565b5b62001cd9825462001a9f565b62001ce682828562001c0b565b600060209050601f83116001811462001d1e576000841562001d09578287015190505b62001d15858262001c88565b86555062001d85565b601f19841662001d2e8662001ad4565b60005b8281101562001d585784890151825560018201915060208501945060208101905062001d31565b8683101562001d78578489015162001d74601f89168262001c68565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b600185111562001e1b5780860481111562001df35762001df262001d8d565b5b600185161562001e035780820291505b808102905062001e138562001dbc565b945062001dd3565b94509492505050565b60008262001e36576001905062001f09565b8162001e46576000905062001f09565b816001811462001e5f576002811462001e6a5762001ea0565b600191505062001f09565b60ff84111562001e7f5762001e7e62001d8d565b5b8360020a91508482111562001e995762001e9862001d8d565b5b5062001f09565b5060208310610133831016604e8410600b841016171562001eda5782820a90508381111562001ed45762001ed362001d8d565b5b62001f09565b62001ee9848484600162001dc9565b9250905081840481111562001f035762001f0262001d8d565b5b81810290505b9392505050565b600062001f1d82620018d1565b915062001f2a8362001893565b925062001f597fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff848462001e24565b905092915050565b600062001f6e82620018d1565b915062001f7b83620018d1565b925082820262001f8b81620018d1565b9150828204841483151762001fa55762001fa462001d8d565b5b5092915050565b600081905092915050565b60008190508160005260206000209050919050565b6000815462001fdb8162001a9f565b62001fe7818662001fac565b945060018216600081146200200557600181146200201b5762002052565b60ff198316865281151582028601935062002052565b620020268562001fb7565b60005b838110156200204a5781548189015260018201915060208101905062002029565b838801955050505b50505092915050565b600062002069828462001fcc565b915081905092915050565b6000819050919050565b620020898162002074565b82525050565b6200209a81620018d1565b82525050565b600060a082019050620020b760008301886200207e565b620020c660208301876200207e565b620020d560408301866200207e565b620020e460608301856200208f565b620020f3608083018462001a37565b9695505050505050565b60006200210a82620018d1565b91506200211783620018d1565b925082820190508082111562002132576200213162001d8d565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006200217482620018d1565b91506200218183620018d1565b92508262002194576200219362002138565b5b828204905092915050565b6000620021ac82620018d1565b9150620021b983620018d1565b9250828203905081811115620021d457620021d362001d8d565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006200221682620018d1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036200224b576200224a62001d8d565b5b600182019050919050565b60006020820190506200226d60008301846200208f565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60805160a05160c05160e051614ae5620023296000396000610c1f01526000610beb01526000818161109f01528181611e8401528181612586015281816125b201528181612657015281816126c201528181612722015281816128280152818161285c015281816128a3015281816128cf0152612fb801526000610bc50152614ae56000f3fe608060405234801561001057600080fd5b506004361061025e5760003560e01c806389fb4c6611610146578063c5ab3ba6116100c3578063dd62ed3e11610087578063dd62ed3e14610787578063dd637699146107b7578063dfabc033146107d3578063e985e9c5146107ef578063f2fde38b1461081f578063f780bc1a1461083b5761025e565b8063c5ab3ba6146106d1578063c6e672b9146106ef578063c87b56dd1461070b578063d505accf1461073b578063d96ca0b9146107575761025e565b8063a22cb4651161010a578063a22cb46514610609578063a9059cbb14610625578063b1ab931714610655578063b3f9ea3414610685578063b88d4fde146106b55761025e565b806389fb4c66146105755780638a696e50146105935780638da5cb5b146105af57806395d89b41146105cd578063976a8435146105eb5761025e565b80633644e515116101df5780636352211e116101a35780636352211e1461049f5780636c0360eb146104cf5780636e8f624b146104ed57806370a082311461050b578063715018a61461053b5780637ecebe00146105455761025e565b80633644e515146103fb57806342842e0e146104195780634d966072146104355780634f02c4201461046557806355f804b3146104835761025e565b806309674eb01161022657806309674eb01461034157806309f0ef651461035f57806318160ddd1461038f57806323b872dd146103ad578063313ce567146103dd5761025e565b806301ffc9a71461026357806302519da31461029357806306fdde03146102c3578063081812fc146102e1578063095ea7b314610311575b600080fd5b61027d6004803603810190610278919061392d565b61086b565b60405161028a9190613975565b60405180910390f35b6102ad60048036038101906102a891906139ee565b61093d565b6040516102ba9190613a34565b60405180910390f35b6102cb610986565b6040516102d89190613adf565b60405180910390f35b6102fb60048036038101906102f69190613b2d565b610a14565b6040516103089190613b69565b60405180910390f35b61032b60048036038101906103269190613b84565b610a47565b6040516103389190613975565b60405180910390f35b610349610ac8565b6040516103569190613a34565b60405180910390f35b610379600480360381019061037491906139ee565b610ad9565b6040516103869190613975565b60405180910390f35b610397610b65565b6040516103a49190613a34565b60405180910390f35b6103c760048036038101906103c29190613bc4565b610b6b565b6040516103d49190613975565b60405180910390f35b6103e5610bc3565b6040516103f29190613c33565b60405180910390f35b610403610be7565b6040516104109190613c67565b60405180910390f35b610433600480360381019061042e9190613bc4565b610c44565b005b61044f600480360381019061044a9190613b84565b610c64565b60405161045c9190613975565b60405180910390f35b61046d610dbb565b60405161047a9190613a34565b60405180910390f35b61049d60048036038101906104989190613db7565b610dc1565b005b6104b960048036038101906104b49190613b2d565b610ddc565b6040516104c69190613b69565b60405180910390f35b6104d7610ed9565b6040516104e49190613adf565b60405180910390f35b6104f5610f67565b6040516105029190613a34565b60405180910390f35b610525600480360381019061052091906139ee565b610f8b565b6040516105329190613a34565b60405180910390f35b610543610fa3565b005b61055f600480360381019061055a91906139ee565b610fb7565b60405161056c9190613a34565b60405180910390f35b61057d610fcf565b60405161058a9190613a34565b60405180910390f35b6105ad60048036038101906105a89190613e2c565b610fd9565b005b6105b7610fe6565b6040516105c49190613b69565b60405180910390f35b6105d561100f565b6040516105e29190613adf565b60405180910390f35b6105f361109d565b6040516106009190613a34565b60405180910390f35b610623600480360381019061061e9190613e59565b6110c1565b005b61063f600480360381019061063a9190613b84565b611224565b60405161064c9190613975565b60405180910390f35b61066f600480360381019061066a91906139ee565b61129e565b60405161067c9190613f57565b60405180910390f35b61069f600480360381019061069a91906139ee565b611335565b6040516106ac9190613a34565b60405180910390f35b6106cf60048036038101906106ca919061401a565b611381565b005b6106d9611511565b6040516106e69190613a34565b60405180910390f35b61070960048036038101906107049190613e59565b61151b565b005b61072560048036038101906107209190613b2d565b611531565b6040516107329190613adf565b60405180910390f35b610755600480360381019061075091906140f5565b611590565b005b610771600480360381019061076c9190613bc4565b611963565b60405161077e9190613975565b60405180910390f35b6107a1600480360381019061079c9190614197565b611b7a565b6040516107ae9190613a34565b60405180910390f35b6107d160048036038101906107cc9190613bc4565b611b9f565b005b6107ed60048036038101906107e89190613b84565b611eb8565b005b61080960048036038101906108049190614197565b612071565b6040516108169190613975565b60405180910390f35b610839600480360381019061083491906139ee565b6120a0565b005b610855600480360381019061085091906141d7565b612126565b6040516108629190613f57565b60405180910390f35b60007fcaf91ff5000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061093657507f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6003805461099390614246565b80601f01602080910402602001604051908101604052809291908181526020018280546109bf90614246565b8015610a0c5780601f106109e157610100808354040283529160200191610a0c565b820191906000526020600020905b8154815290600101906020018083116109ef57829003601f168201915b505050505081565b60096020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60007f800000000000000000000000000000000000000000000000000000000000000082118015610a9857507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214155b15610aac57610aa78383611eb8565b610abd565b610ab68383610c64565b9050610ac2565b600190505b92915050565b6000610ad460016121e2565b905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161480610b5e5750600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b9050919050565b60055481565b60007f8000000000000000000000000000000000000000000000000000000000000000821115610ba557610ba0848484611b9f565b610bb7565b610bb0848484611963565b9050610bbc565b600190505b9392505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60007f00000000000000000000000000000000000000000000000000000000000000004614610c1d57610c18612240565b610c3f565b7f00000000000000000000000000000000000000000000000000000000000000005b905090565b610c5f83838360405180602001604052806000815250611381565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610ccb576040517f5461585f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610da99190613a34565b60405180910390a36001905092915050565b60065481565b610dc96122cc565b80600f9081610dd89190614423565b5050565b6000610de782612353565b90507f800000000000000000000000000000000000000000000000000000000000000082111580610e3757507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82145b15610e6e576040517fdfa1a40800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610ed4576040517fc5723b5100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b600f8054610ee690614246565b80601f0160208091040260200160405190810160405280929190818152602001828054610f1290614246565b8015610f5f5780601f10610f3457610100808354040283529160200191610f5f565b820191906000526020600020905b815481529060010190602001808311610f4257829003601f168201915b505050505081565b7f800000000000000000000000000000000000000000000000000000000000000081565b60076020528060005260406000206000915090505481565b610fab6122cc565b610fb5600061238b565b565b600e6020528060005260406000206000915090505481565b6000600554905090565b610fe3338261244f565b50565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6004805461101c90614246565b80601f016020809104026020016040519081016040528092919081815260200182805461104890614246565b80156110955780601f1061106a57610100808354040283529160200191611095565b820191906000526020600020905b81548152906001019060200180831161107857829003601f168201915b505050505081565b7f000000000000000000000000000000000000000000000000000000000000000081565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611127576040517fccea9e6f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516112189190613975565b60405180910390a35050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361128b576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61129633848461252e565b905092915050565b6060600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080548060200260200160405190810160405280929190818152602001828054801561132957602002820191906000526020600020905b815481526020019060010190808311611315575b50505050509050919050565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050919050565b7f800000000000000000000000000000000000000000000000000000000000000082116113da576040517fdfa1a40800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113e5848484610b6b565b5060008373ffffffffffffffffffffffffffffffffffffffff163b141580156114d4575063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168373ffffffffffffffffffffffffffffffffffffffff1663150b7a02338786866040518563ffffffff1660e01b815260040161146f949392919061454a565b6020604051808303816000875af115801561148e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114b291906145ab565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b1561150b576040517f3da6393100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6000600654905090565b6115236122cc565b61152d828261244f565b5050565b6060600f6115697f8000000000000000000000000000000000000000000000000000000000000000846115649190614607565b61292e565b60405160200161157a9291906146fa565b6040516020818303038152906040529050919050565b428410156115ca576040517f05787bdf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f80000000000000000000000000000000000000000000000000000000000000008511801561161957507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8514155b15611650576040517f1f3e0de800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16036116b6576040517f5461585f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060016116c2610be7565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98a8a8a600e60008f73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190600101919050558b60405160200161174a9695949392919061471e565b604051602081830303815290604052805190602001206040516020016117719291906147ec565b60405160208183030381529060405280519060200120858585604051600081526020016040526040516117a79493929190614823565b6020604051602081039080840390855afa1580156117c9573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16148061183c57508773ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b15611873576040517f815e1d6400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b85600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925876040516119529190613a34565b60405180910390a350505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036119ca576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611a30576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114611b65578281611ae49190614607565b600860008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b611b7085858561252e565b9150509392505050565b6008602052816000526040600020602052806000526040600020600091509150505481565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611c05576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c6b576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611c7481612353565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614611cd8576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614158015611d9b5750600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b8015611e0657506009600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b15611e3d576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611e4682610ad9565b15611e7d576040517f5ce7539700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611ea883837f00000000000000000000000000000000000000000000000000000000000000006129fc565b611eb3838383612b5c565b505050565b6000611ec382612353565b90508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614158015611f885750600a60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15611fbf576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b826009600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600a6020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b6120a86122cc565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361211a5760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016121119190613b69565b60405180910390fd5b6121238161238b565b50565b606060008267ffffffffffffffff81111561214457612143613c8c565b5b6040519080825280602002602001820160405280156121725781602001602082028036833780820191505090505b50905060008490505b83856121879190614868565b8110156121d7576121a2816001612ed490919063ffffffff16565b8286836121af9190614607565b815181106121c0576121bf61489c565b5b60200260200101818152505080600101905061217b565b508091505092915050565b60008160000160009054906101000a90046fffffffffffffffffffffffffffffffff168260000160109054906101000a90046fffffffffffffffffffffffffffffffff16036fffffffffffffffffffffffffffffffff169050919050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6003604051612272919061496e565b60405180910390207fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc646306040516020016122b1959493929190614985565b60405160208183030381529060405280519060200120905090565b6122d4612f7b565b73ffffffffffffffffffffffffffffffffffffffff166122f2610fe6565b73ffffffffffffffffffffffffffffffffffffffff161461235157612315612f7b565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016123489190613b69565b60405180910390fd5b565b600080600b600084815260200190815260200160002054905073ffffffffffffffffffffffffffffffffffffffff8116915050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036124b5576040517fa41e3d3f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80156124c9576124c482612f83565b6124d3565b6124d282612fb4565b5b80600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60008061253a8561093d565b905060006125478561093d565b90506125548686866129fc565b600061255f87610ad9565b9050600061256c87610ad9565b90508180156125785750805b61291f57811561264d5760007f0000000000000000000000000000000000000000000000000000000000000000846125b09190614a07565b7f0000000000000000000000000000000000000000000000000000000000000000600760008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461261b9190614a07565b6126259190614607565b905060005b818110156126465761263b89613029565b80600101905061262a565b505061291e565b801561271e5760007f0000000000000000000000000000000000000000000000000000000000000000600760008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546126c09190614a07565b7f0000000000000000000000000000000000000000000000000000000000000000866126ec9190614a07565b6126f69190614607565b905060005b818110156127175761270c8a6131d5565b8060010190506126fb565b505061291d565b60007f00000000000000000000000000000000000000000000000000000000000000008761274c9190614a07565b905060005b818110156128245760006001600c60008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490506127aa9190614607565b90506000600c60008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082815481106127ff576127fe61489c565b5b906000526020600020015490506128178c8c83612b5c565b8260010192505050612751565b50807f00000000000000000000000000000000000000000000000000000000000000006128508b61093d565b61285a9190614a07565b7f0000000000000000000000000000000000000000000000000000000000000000876128869190614a07565b6128909190614607565b11156128a05761289f896131d5565b5b807f0000000000000000000000000000000000000000000000000000000000000000856128cd9190614a07565b7f00000000000000000000000000000000000000000000000000000000000000006128f78b61093d565b6129019190614a07565b61290b9190614607565b111561291b5761291a88613029565b5b505b5b5b60019450505050509392505050565b60606000600161293d8461330d565b01905060008167ffffffffffffffff81111561295c5761295b613c8c565b5b6040519080825280601f01601f19166020018201604052801561298e5781602001600182028036833780820191505090505b509050600082602001820190505b6001156129f1578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816129e5576129e46149d8565b5b0494506000850361299c575b819350505050919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612a4e578060056000828254612a429190614868565b92505081905550612aa5565b80600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a9d9190614607565b925050819055505b80600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051612b4f9190613a34565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612d5b576009600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050612c569190614607565b81548110612c6757612c6661489c565b5b90600052602060002001549050818114612cf4576000612c8683613460565b905081600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208281548110612cda57612cd961489c565b5b9060005260206000200181905550612cf28282613485565b505b600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480612d4357612d42614a38565b5b60019003818190600052602060002001600090559055505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612e5c57612d998183613558565b600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819080600181540180825580915050600190039060005260206000200160009091909190915055612e57816001600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050612e529190614607565b613485565b612e74565b600b6000828152602001908152602001600020600090555b808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000612edf836121e2565b8210612f17576040517f580821e700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b826001016000838560000160009054906101000a90046fffffffffffffffffffffffffffffffff16016fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600033905090565b6000612f8e82611335565b905060005b81811015612faf57612fa4836131d5565b806001019050612f93565b505050565b60007f0000000000000000000000000000000000000000000000000000000000000000612fe08361093d565b612fea9190614a07565b90506000612ff783611335565b905060005b81836130089190614607565b8110156130235761301884613029565b806001019050612ffc565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361308f576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061309b60016135ca565b6130b0576130a9600161363a565b9050613152565b6006600081546130bf90614a67565b919050819055507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60065403613121576040517f303b682f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006547f800000000000000000000000000000000000000000000000000000000000000061314f9190614868565b90505b600061315d82612353565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146131c5576040517f23369fa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6131d0818484612b5c565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361323b576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490506132cb9190614607565b815481106132dc576132db61489c565b5b906000526020600020015490506132f582600083612b5c565b61330981600161379e90919063ffffffff16565b5050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061336b577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381613361576133606149d8565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106133a8576d04ee2d6d415b85acef8100000000838161339e5761339d6149d8565b5b0492506020810190505b662386f26fc1000083106133d757662386f26fc1000083816133cd576133cc6149d8565b5b0492506010810190505b6305f5e1008310613400576305f5e10083816133f6576133f56149d8565b5b0492506008810190505b612710831061342557612710838161341b5761341a6149d8565b5b0492506004810190505b60648310613448576064838161343e5761343d6149d8565b5b0492506002810190505b600a8310613457576001810190505b80915050919050565b600080600b60008481526020019081526020016000205490508060a01c915050919050565b6000600b600084815260200190815260200160002054905060a07fffffffffffffffffffffffff0000000000000000000000000000000000000000901c8211156134fb576040517ffcb3438c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fffffffffffffffffffffffff00000000000000000000000000000000000000008260a01b1673ffffffffffffffffffffffffffffffffffffffff821601905080600b600085815260200190815260200160002081905550505050565b6000600b600084815260200190815260200160002054905073ffffffffffffffffffffffffffffffffffffffff82167fffffffffffffffffffffffff0000000000000000000000000000000000000000821601905080600b600085815260200190815260200160002081905550505050565b60008160000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff168260000160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16149050919050565b6000808260000160109054906101000a90046fffffffffffffffffffffffffffffffff1690508260000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16816fffffffffffffffffffffffffffffffff16036136dd576040517f75e52f4f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600190039050826001016000826fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff168152602001908152602001600020549150826001016000826fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16815260200190815260200160002060009055808360000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555050919050565b600060018360000160009054906101000a90046fffffffffffffffffffffffffffffffff160390508260000160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16816fffffffffffffffffffffffffffffffff1603613843576040517f8acb5f2700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81836001016000836fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16815260200190815260200160002081905550808360000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61390a816138d5565b811461391557600080fd5b50565b60008135905061392781613901565b92915050565b600060208284031215613943576139426138cb565b5b600061395184828501613918565b91505092915050565b60008115159050919050565b61396f8161395a565b82525050565b600060208201905061398a6000830184613966565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006139bb82613990565b9050919050565b6139cb816139b0565b81146139d657600080fd5b50565b6000813590506139e8816139c2565b92915050565b600060208284031215613a0457613a036138cb565b5b6000613a12848285016139d9565b91505092915050565b6000819050919050565b613a2e81613a1b565b82525050565b6000602082019050613a496000830184613a25565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613a89578082015181840152602081019050613a6e565b60008484015250505050565b6000601f19601f8301169050919050565b6000613ab182613a4f565b613abb8185613a5a565b9350613acb818560208601613a6b565b613ad481613a95565b840191505092915050565b60006020820190508181036000830152613af98184613aa6565b905092915050565b613b0a81613a1b565b8114613b1557600080fd5b50565b600081359050613b2781613b01565b92915050565b600060208284031215613b4357613b426138cb565b5b6000613b5184828501613b18565b91505092915050565b613b63816139b0565b82525050565b6000602082019050613b7e6000830184613b5a565b92915050565b60008060408385031215613b9b57613b9a6138cb565b5b6000613ba9858286016139d9565b9250506020613bba85828601613b18565b9150509250929050565b600080600060608486031215613bdd57613bdc6138cb565b5b6000613beb868287016139d9565b9350506020613bfc868287016139d9565b9250506040613c0d86828701613b18565b9150509250925092565b600060ff82169050919050565b613c2d81613c17565b82525050565b6000602082019050613c486000830184613c24565b92915050565b6000819050919050565b613c6181613c4e565b82525050565b6000602082019050613c7c6000830184613c58565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613cc482613a95565b810181811067ffffffffffffffff82111715613ce357613ce2613c8c565b5b80604052505050565b6000613cf66138c1565b9050613d028282613cbb565b919050565b600067ffffffffffffffff821115613d2257613d21613c8c565b5b613d2b82613a95565b9050602081019050919050565b82818337600083830152505050565b6000613d5a613d5584613d07565b613cec565b905082815260208101848484011115613d7657613d75613c87565b5b613d81848285613d38565b509392505050565b600082601f830112613d9e57613d9d613c82565b5b8135613dae848260208601613d47565b91505092915050565b600060208284031215613dcd57613dcc6138cb565b5b600082013567ffffffffffffffff811115613deb57613dea6138d0565b5b613df784828501613d89565b91505092915050565b613e098161395a565b8114613e1457600080fd5b50565b600081359050613e2681613e00565b92915050565b600060208284031215613e4257613e416138cb565b5b6000613e5084828501613e17565b91505092915050565b60008060408385031215613e7057613e6f6138cb565b5b6000613e7e858286016139d9565b9250506020613e8f85828601613e17565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613ece81613a1b565b82525050565b6000613ee08383613ec5565b60208301905092915050565b6000602082019050919050565b6000613f0482613e99565b613f0e8185613ea4565b9350613f1983613eb5565b8060005b83811015613f4a578151613f318882613ed4565b9750613f3c83613eec565b925050600181019050613f1d565b5085935050505092915050565b60006020820190508181036000830152613f718184613ef9565b905092915050565b600067ffffffffffffffff821115613f9457613f93613c8c565b5b613f9d82613a95565b9050602081019050919050565b6000613fbd613fb884613f79565b613cec565b905082815260208101848484011115613fd957613fd8613c87565b5b613fe4848285613d38565b509392505050565b600082601f83011261400157614000613c82565b5b8135614011848260208601613faa565b91505092915050565b60008060008060808587031215614034576140336138cb565b5b6000614042878288016139d9565b9450506020614053878288016139d9565b935050604061406487828801613b18565b925050606085013567ffffffffffffffff811115614085576140846138d0565b5b61409187828801613fec565b91505092959194509250565b6140a681613c17565b81146140b157600080fd5b50565b6000813590506140c38161409d565b92915050565b6140d281613c4e565b81146140dd57600080fd5b50565b6000813590506140ef816140c9565b92915050565b600080600080600080600060e0888a031215614114576141136138cb565b5b60006141228a828b016139d9565b97505060206141338a828b016139d9565b96505060406141448a828b01613b18565b95505060606141558a828b01613b18565b94505060806141668a828b016140b4565b93505060a06141778a828b016140e0565b92505060c06141888a828b016140e0565b91505092959891949750929550565b600080604083850312156141ae576141ad6138cb565b5b60006141bc858286016139d9565b92505060206141cd858286016139d9565b9150509250929050565b600080604083850312156141ee576141ed6138cb565b5b60006141fc85828601613b18565b925050602061420d85828601613b18565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061425e57607f821691505b60208210810361427157614270614217565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026142d97fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261429c565b6142e3868361429c565b95508019841693508086168417925050509392505050565b6000819050919050565b600061432061431b61431684613a1b565b6142fb565b613a1b565b9050919050565b6000819050919050565b61433a83614305565b61434e61434682614327565b8484546142a9565b825550505050565b600090565b614363614356565b61436e818484614331565b505050565b5b818110156143925761438760008261435b565b600181019050614374565b5050565b601f8211156143d7576143a881614277565b6143b18461428c565b810160208510156143c0578190505b6143d46143cc8561428c565b830182614373565b50505b505050565b600082821c905092915050565b60006143fa600019846008026143dc565b1980831691505092915050565b600061441383836143e9565b9150826002028217905092915050565b61442c82613a4f565b67ffffffffffffffff81111561444557614444613c8c565b5b61444f8254614246565b61445a828285614396565b600060209050601f83116001811461448d576000841561447b578287015190505b6144858582614407565b8655506144ed565b601f19841661449b86614277565b60005b828110156144c35784890151825560018201915060208501945060208101905061449e565b868310156144e057848901516144dc601f8916826143e9565b8355505b6001600288020188555050505b505050505050565b600081519050919050565b600082825260208201905092915050565b600061451c826144f5565b6145268185614500565b9350614536818560208601613a6b565b61453f81613a95565b840191505092915050565b600060808201905061455f6000830187613b5a565b61456c6020830186613b5a565b6145796040830185613a25565b818103606083015261458b8184614511565b905095945050505050565b6000815190506145a581613901565b92915050565b6000602082840312156145c1576145c06138cb565b5b60006145cf84828501614596565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061461282613a1b565b915061461d83613a1b565b9250828203905081811115614635576146346145d8565b5b92915050565b600081905092915050565b6000815461465381614246565b61465d818661463b565b94506001821660008114614678576001811461468d576146c0565b60ff19831686528115158202860193506146c0565b61469685614277565b60005b838110156146b857815481890152600182019150602081019050614699565b838801955050505b50505092915050565b60006146d482613a4f565b6146de818561463b565b93506146ee818560208601613a6b565b80840191505092915050565b60006147068285614646565b915061471282846146c9565b91508190509392505050565b600060c0820190506147336000830189613c58565b6147406020830188613b5a565b61474d6040830187613b5a565b61475a6060830186613a25565b6147676080830185613a25565b61477460a0830184613a25565b979650505050505050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b60006147b560028361463b565b91506147c08261477f565b600282019050919050565b6000819050919050565b6147e66147e182613c4e565b6147cb565b82525050565b60006147f7826147a8565b915061480382856147d5565b60208201915061481382846147d5565b6020820191508190509392505050565b60006080820190506148386000830187613c58565b6148456020830186613c24565b6148526040830185613c58565b61485f6060830184613c58565b95945050505050565b600061487382613a1b565b915061487e83613a1b565b9250828201905080821115614896576148956145d8565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081905092915050565b60008190508160005260206000209050919050565b600081546148f881614246565b61490281866148cb565b9450600182166000811461491d576001811461493257614965565b60ff1983168652811515820286019350614965565b61493b856148d6565b60005b8381101561495d5781548189015260018201915060208101905061493e565b838801955050505b50505092915050565b600061497a82846148eb565b915081905092915050565b600060a08201905061499a6000830188613c58565b6149a76020830187613c58565b6149b46040830186613c58565b6149c16060830185613a25565b6149ce6080830184613b5a565b9695505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614a1282613a1b565b9150614a1d83613a1b565b925082614a2d57614a2c6149d8565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6000614a7282613a1b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614aa457614aa36145d8565b5b60018201905091905056fea2646970667358221220bd76c682ca0077235fa09829de990281012f3c87c49712f324fb074df439d3ab64736f6c6343000814003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000003e800000000000000000000000096c022dacfabff81de9eb4fa365d383e221d53d4000000000000000000000000000000000000000000000000000000000000000846656e6746656e67000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000846454e4746454e47000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061025e5760003560e01c806389fb4c6611610146578063c5ab3ba6116100c3578063dd62ed3e11610087578063dd62ed3e14610787578063dd637699146107b7578063dfabc033146107d3578063e985e9c5146107ef578063f2fde38b1461081f578063f780bc1a1461083b5761025e565b8063c5ab3ba6146106d1578063c6e672b9146106ef578063c87b56dd1461070b578063d505accf1461073b578063d96ca0b9146107575761025e565b8063a22cb4651161010a578063a22cb46514610609578063a9059cbb14610625578063b1ab931714610655578063b3f9ea3414610685578063b88d4fde146106b55761025e565b806389fb4c66146105755780638a696e50146105935780638da5cb5b146105af57806395d89b41146105cd578063976a8435146105eb5761025e565b80633644e515116101df5780636352211e116101a35780636352211e1461049f5780636c0360eb146104cf5780636e8f624b146104ed57806370a082311461050b578063715018a61461053b5780637ecebe00146105455761025e565b80633644e515146103fb57806342842e0e146104195780634d966072146104355780634f02c4201461046557806355f804b3146104835761025e565b806309674eb01161022657806309674eb01461034157806309f0ef651461035f57806318160ddd1461038f57806323b872dd146103ad578063313ce567146103dd5761025e565b806301ffc9a71461026357806302519da31461029357806306fdde03146102c3578063081812fc146102e1578063095ea7b314610311575b600080fd5b61027d6004803603810190610278919061392d565b61086b565b60405161028a9190613975565b60405180910390f35b6102ad60048036038101906102a891906139ee565b61093d565b6040516102ba9190613a34565b60405180910390f35b6102cb610986565b6040516102d89190613adf565b60405180910390f35b6102fb60048036038101906102f69190613b2d565b610a14565b6040516103089190613b69565b60405180910390f35b61032b60048036038101906103269190613b84565b610a47565b6040516103389190613975565b60405180910390f35b610349610ac8565b6040516103569190613a34565b60405180910390f35b610379600480360381019061037491906139ee565b610ad9565b6040516103869190613975565b60405180910390f35b610397610b65565b6040516103a49190613a34565b60405180910390f35b6103c760048036038101906103c29190613bc4565b610b6b565b6040516103d49190613975565b60405180910390f35b6103e5610bc3565b6040516103f29190613c33565b60405180910390f35b610403610be7565b6040516104109190613c67565b60405180910390f35b610433600480360381019061042e9190613bc4565b610c44565b005b61044f600480360381019061044a9190613b84565b610c64565b60405161045c9190613975565b60405180910390f35b61046d610dbb565b60405161047a9190613a34565b60405180910390f35b61049d60048036038101906104989190613db7565b610dc1565b005b6104b960048036038101906104b49190613b2d565b610ddc565b6040516104c69190613b69565b60405180910390f35b6104d7610ed9565b6040516104e49190613adf565b60405180910390f35b6104f5610f67565b6040516105029190613a34565b60405180910390f35b610525600480360381019061052091906139ee565b610f8b565b6040516105329190613a34565b60405180910390f35b610543610fa3565b005b61055f600480360381019061055a91906139ee565b610fb7565b60405161056c9190613a34565b60405180910390f35b61057d610fcf565b60405161058a9190613a34565b60405180910390f35b6105ad60048036038101906105a89190613e2c565b610fd9565b005b6105b7610fe6565b6040516105c49190613b69565b60405180910390f35b6105d561100f565b6040516105e29190613adf565b60405180910390f35b6105f361109d565b6040516106009190613a34565b60405180910390f35b610623600480360381019061061e9190613e59565b6110c1565b005b61063f600480360381019061063a9190613b84565b611224565b60405161064c9190613975565b60405180910390f35b61066f600480360381019061066a91906139ee565b61129e565b60405161067c9190613f57565b60405180910390f35b61069f600480360381019061069a91906139ee565b611335565b6040516106ac9190613a34565b60405180910390f35b6106cf60048036038101906106ca919061401a565b611381565b005b6106d9611511565b6040516106e69190613a34565b60405180910390f35b61070960048036038101906107049190613e59565b61151b565b005b61072560048036038101906107209190613b2d565b611531565b6040516107329190613adf565b60405180910390f35b610755600480360381019061075091906140f5565b611590565b005b610771600480360381019061076c9190613bc4565b611963565b60405161077e9190613975565b60405180910390f35b6107a1600480360381019061079c9190614197565b611b7a565b6040516107ae9190613a34565b60405180910390f35b6107d160048036038101906107cc9190613bc4565b611b9f565b005b6107ed60048036038101906107e89190613b84565b611eb8565b005b61080960048036038101906108049190614197565b612071565b6040516108169190613975565b60405180910390f35b610839600480360381019061083491906139ee565b6120a0565b005b610855600480360381019061085091906141d7565b612126565b6040516108629190613f57565b60405180910390f35b60007fcaf91ff5000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061093657507f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6003805461099390614246565b80601f01602080910402602001604051908101604052809291908181526020018280546109bf90614246565b8015610a0c5780601f106109e157610100808354040283529160200191610a0c565b820191906000526020600020905b8154815290600101906020018083116109ef57829003601f168201915b505050505081565b60096020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60007f800000000000000000000000000000000000000000000000000000000000000082118015610a9857507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214155b15610aac57610aa78383611eb8565b610abd565b610ab68383610c64565b9050610ac2565b600190505b92915050565b6000610ad460016121e2565b905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161480610b5e5750600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b9050919050565b60055481565b60007f8000000000000000000000000000000000000000000000000000000000000000821115610ba557610ba0848484611b9f565b610bb7565b610bb0848484611963565b9050610bbc565b600190505b9392505050565b7f000000000000000000000000000000000000000000000000000000000000001281565b60007f00000000000000000000000000000000000000000000000000000000000000014614610c1d57610c18612240565b610c3f565b7fadac97380fb314eca38fc65c214501a8bdba7f68e5a66caa9979e0f9a5f0662e5b905090565b610c5f83838360405180602001604052806000815250611381565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610ccb576040517f5461585f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610da99190613a34565b60405180910390a36001905092915050565b60065481565b610dc96122cc565b80600f9081610dd89190614423565b5050565b6000610de782612353565b90507f800000000000000000000000000000000000000000000000000000000000000082111580610e3757507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82145b15610e6e576040517fdfa1a40800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610ed4576040517fc5723b5100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b600f8054610ee690614246565b80601f0160208091040260200160405190810160405280929190818152602001828054610f1290614246565b8015610f5f5780601f10610f3457610100808354040283529160200191610f5f565b820191906000526020600020905b815481529060010190602001808311610f4257829003601f168201915b505050505081565b7f800000000000000000000000000000000000000000000000000000000000000081565b60076020528060005260406000206000915090505481565b610fab6122cc565b610fb5600061238b565b565b600e6020528060005260406000206000915090505481565b6000600554905090565b610fe3338261244f565b50565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6004805461101c90614246565b80601f016020809104026020016040519081016040528092919081815260200182805461104890614246565b80156110955780601f1061106a57610100808354040283529160200191611095565b820191906000526020600020905b81548152906001019060200180831161107857829003601f168201915b505050505081565b7f0000000000000000000000000000000000000000000000000de0b6b3a764000081565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611127576040517fccea9e6f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516112189190613975565b60405180910390a35050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361128b576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61129633848461252e565b905092915050565b6060600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080548060200260200160405190810160405280929190818152602001828054801561132957602002820191906000526020600020905b815481526020019060010190808311611315575b50505050509050919050565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050919050565b7f800000000000000000000000000000000000000000000000000000000000000082116113da576040517fdfa1a40800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113e5848484610b6b565b5060008373ffffffffffffffffffffffffffffffffffffffff163b141580156114d4575063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168373ffffffffffffffffffffffffffffffffffffffff1663150b7a02338786866040518563ffffffff1660e01b815260040161146f949392919061454a565b6020604051808303816000875af115801561148e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114b291906145ab565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b1561150b576040517f3da6393100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6000600654905090565b6115236122cc565b61152d828261244f565b5050565b6060600f6115697f8000000000000000000000000000000000000000000000000000000000000000846115649190614607565b61292e565b60405160200161157a9291906146fa565b6040516020818303038152906040529050919050565b428410156115ca576040517f05787bdf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f80000000000000000000000000000000000000000000000000000000000000008511801561161957507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8514155b15611650576040517f1f3e0de800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16036116b6576040517f5461585f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060016116c2610be7565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98a8a8a600e60008f73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190600101919050558b60405160200161174a9695949392919061471e565b604051602081830303815290604052805190602001206040516020016117719291906147ec565b60405160208183030381529060405280519060200120858585604051600081526020016040526040516117a79493929190614823565b6020604051602081039080840390855afa1580156117c9573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16148061183c57508773ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b15611873576040517f815e1d6400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b85600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925876040516119529190613a34565b60405180910390a350505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036119ca576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611a30576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114611b65578281611ae49190614607565b600860008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b611b7085858561252e565b9150509392505050565b6008602052816000526040600020602052806000526040600020600091509150505481565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611c05576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c6b576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611c7481612353565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614611cd8576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614158015611d9b5750600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b8015611e0657506009600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b15611e3d576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611e4682610ad9565b15611e7d576040517f5ce7539700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611ea883837f0000000000000000000000000000000000000000000000000de0b6b3a76400006129fc565b611eb3838383612b5c565b505050565b6000611ec382612353565b90508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614158015611f885750600a60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15611fbf576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b826009600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600a6020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b6120a86122cc565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361211a5760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016121119190613b69565b60405180910390fd5b6121238161238b565b50565b606060008267ffffffffffffffff81111561214457612143613c8c565b5b6040519080825280602002602001820160405280156121725781602001602082028036833780820191505090505b50905060008490505b83856121879190614868565b8110156121d7576121a2816001612ed490919063ffffffff16565b8286836121af9190614607565b815181106121c0576121bf61489c565b5b60200260200101818152505080600101905061217b565b508091505092915050565b60008160000160009054906101000a90046fffffffffffffffffffffffffffffffff168260000160109054906101000a90046fffffffffffffffffffffffffffffffff16036fffffffffffffffffffffffffffffffff169050919050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6003604051612272919061496e565b60405180910390207fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc646306040516020016122b1959493929190614985565b60405160208183030381529060405280519060200120905090565b6122d4612f7b565b73ffffffffffffffffffffffffffffffffffffffff166122f2610fe6565b73ffffffffffffffffffffffffffffffffffffffff161461235157612315612f7b565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016123489190613b69565b60405180910390fd5b565b600080600b600084815260200190815260200160002054905073ffffffffffffffffffffffffffffffffffffffff8116915050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036124b5576040517fa41e3d3f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80156124c9576124c482612f83565b6124d3565b6124d282612fb4565b5b80600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60008061253a8561093d565b905060006125478561093d565b90506125548686866129fc565b600061255f87610ad9565b9050600061256c87610ad9565b90508180156125785750805b61291f57811561264d5760007f0000000000000000000000000000000000000000000000000de0b6b3a7640000846125b09190614a07565b7f0000000000000000000000000000000000000000000000000de0b6b3a7640000600760008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461261b9190614a07565b6126259190614607565b905060005b818110156126465761263b89613029565b80600101905061262a565b505061291e565b801561271e5760007f0000000000000000000000000000000000000000000000000de0b6b3a7640000600760008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546126c09190614a07565b7f0000000000000000000000000000000000000000000000000de0b6b3a7640000866126ec9190614a07565b6126f69190614607565b905060005b818110156127175761270c8a6131d5565b8060010190506126fb565b505061291d565b60007f0000000000000000000000000000000000000000000000000de0b6b3a76400008761274c9190614a07565b905060005b818110156128245760006001600c60008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490506127aa9190614607565b90506000600c60008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082815481106127ff576127fe61489c565b5b906000526020600020015490506128178c8c83612b5c565b8260010192505050612751565b50807f0000000000000000000000000000000000000000000000000de0b6b3a76400006128508b61093d565b61285a9190614a07565b7f0000000000000000000000000000000000000000000000000de0b6b3a7640000876128869190614a07565b6128909190614607565b11156128a05761289f896131d5565b5b807f0000000000000000000000000000000000000000000000000de0b6b3a7640000856128cd9190614a07565b7f0000000000000000000000000000000000000000000000000de0b6b3a76400006128f78b61093d565b6129019190614a07565b61290b9190614607565b111561291b5761291a88613029565b5b505b5b5b60019450505050509392505050565b60606000600161293d8461330d565b01905060008167ffffffffffffffff81111561295c5761295b613c8c565b5b6040519080825280601f01601f19166020018201604052801561298e5781602001600182028036833780820191505090505b509050600082602001820190505b6001156129f1578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816129e5576129e46149d8565b5b0494506000850361299c575b819350505050919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612a4e578060056000828254612a429190614868565b92505081905550612aa5565b80600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a9d9190614607565b925050819055505b80600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051612b4f9190613a34565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612d5b576009600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050612c569190614607565b81548110612c6757612c6661489c565b5b90600052602060002001549050818114612cf4576000612c8683613460565b905081600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208281548110612cda57612cd961489c565b5b9060005260206000200181905550612cf28282613485565b505b600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480612d4357612d42614a38565b5b60019003818190600052602060002001600090559055505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612e5c57612d998183613558565b600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819080600181540180825580915050600190039060005260206000200160009091909190915055612e57816001600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050612e529190614607565b613485565b612e74565b600b6000828152602001908152602001600020600090555b808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000612edf836121e2565b8210612f17576040517f580821e700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b826001016000838560000160009054906101000a90046fffffffffffffffffffffffffffffffff16016fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600033905090565b6000612f8e82611335565b905060005b81811015612faf57612fa4836131d5565b806001019050612f93565b505050565b60007f0000000000000000000000000000000000000000000000000de0b6b3a7640000612fe08361093d565b612fea9190614a07565b90506000612ff783611335565b905060005b81836130089190614607565b8110156130235761301884613029565b806001019050612ffc565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361308f576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061309b60016135ca565b6130b0576130a9600161363a565b9050613152565b6006600081546130bf90614a67565b919050819055507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60065403613121576040517f303b682f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006547f800000000000000000000000000000000000000000000000000000000000000061314f9190614868565b90505b600061315d82612353565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146131c5576040517f23369fa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6131d0818484612b5c565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361323b576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490506132cb9190614607565b815481106132dc576132db61489c565b5b906000526020600020015490506132f582600083612b5c565b61330981600161379e90919063ffffffff16565b5050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061336b577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381613361576133606149d8565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106133a8576d04ee2d6d415b85acef8100000000838161339e5761339d6149d8565b5b0492506020810190505b662386f26fc1000083106133d757662386f26fc1000083816133cd576133cc6149d8565b5b0492506010810190505b6305f5e1008310613400576305f5e10083816133f6576133f56149d8565b5b0492506008810190505b612710831061342557612710838161341b5761341a6149d8565b5b0492506004810190505b60648310613448576064838161343e5761343d6149d8565b5b0492506002810190505b600a8310613457576001810190505b80915050919050565b600080600b60008481526020019081526020016000205490508060a01c915050919050565b6000600b600084815260200190815260200160002054905060a07fffffffffffffffffffffffff0000000000000000000000000000000000000000901c8211156134fb576040517ffcb3438c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fffffffffffffffffffffffff00000000000000000000000000000000000000008260a01b1673ffffffffffffffffffffffffffffffffffffffff821601905080600b600085815260200190815260200160002081905550505050565b6000600b600084815260200190815260200160002054905073ffffffffffffffffffffffffffffffffffffffff82167fffffffffffffffffffffffff0000000000000000000000000000000000000000821601905080600b600085815260200190815260200160002081905550505050565b60008160000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff168260000160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16149050919050565b6000808260000160109054906101000a90046fffffffffffffffffffffffffffffffff1690508260000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16816fffffffffffffffffffffffffffffffff16036136dd576040517f75e52f4f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600190039050826001016000826fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff168152602001908152602001600020549150826001016000826fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16815260200190815260200160002060009055808360000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555050919050565b600060018360000160009054906101000a90046fffffffffffffffffffffffffffffffff160390508260000160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16816fffffffffffffffffffffffffffffffff1603613843576040517f8acb5f2700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81836001016000836fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16815260200190815260200160002081905550808360000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61390a816138d5565b811461391557600080fd5b50565b60008135905061392781613901565b92915050565b600060208284031215613943576139426138cb565b5b600061395184828501613918565b91505092915050565b60008115159050919050565b61396f8161395a565b82525050565b600060208201905061398a6000830184613966565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006139bb82613990565b9050919050565b6139cb816139b0565b81146139d657600080fd5b50565b6000813590506139e8816139c2565b92915050565b600060208284031215613a0457613a036138cb565b5b6000613a12848285016139d9565b91505092915050565b6000819050919050565b613a2e81613a1b565b82525050565b6000602082019050613a496000830184613a25565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613a89578082015181840152602081019050613a6e565b60008484015250505050565b6000601f19601f8301169050919050565b6000613ab182613a4f565b613abb8185613a5a565b9350613acb818560208601613a6b565b613ad481613a95565b840191505092915050565b60006020820190508181036000830152613af98184613aa6565b905092915050565b613b0a81613a1b565b8114613b1557600080fd5b50565b600081359050613b2781613b01565b92915050565b600060208284031215613b4357613b426138cb565b5b6000613b5184828501613b18565b91505092915050565b613b63816139b0565b82525050565b6000602082019050613b7e6000830184613b5a565b92915050565b60008060408385031215613b9b57613b9a6138cb565b5b6000613ba9858286016139d9565b9250506020613bba85828601613b18565b9150509250929050565b600080600060608486031215613bdd57613bdc6138cb565b5b6000613beb868287016139d9565b9350506020613bfc868287016139d9565b9250506040613c0d86828701613b18565b9150509250925092565b600060ff82169050919050565b613c2d81613c17565b82525050565b6000602082019050613c486000830184613c24565b92915050565b6000819050919050565b613c6181613c4e565b82525050565b6000602082019050613c7c6000830184613c58565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613cc482613a95565b810181811067ffffffffffffffff82111715613ce357613ce2613c8c565b5b80604052505050565b6000613cf66138c1565b9050613d028282613cbb565b919050565b600067ffffffffffffffff821115613d2257613d21613c8c565b5b613d2b82613a95565b9050602081019050919050565b82818337600083830152505050565b6000613d5a613d5584613d07565b613cec565b905082815260208101848484011115613d7657613d75613c87565b5b613d81848285613d38565b509392505050565b600082601f830112613d9e57613d9d613c82565b5b8135613dae848260208601613d47565b91505092915050565b600060208284031215613dcd57613dcc6138cb565b5b600082013567ffffffffffffffff811115613deb57613dea6138d0565b5b613df784828501613d89565b91505092915050565b613e098161395a565b8114613e1457600080fd5b50565b600081359050613e2681613e00565b92915050565b600060208284031215613e4257613e416138cb565b5b6000613e5084828501613e17565b91505092915050565b60008060408385031215613e7057613e6f6138cb565b5b6000613e7e858286016139d9565b9250506020613e8f85828601613e17565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613ece81613a1b565b82525050565b6000613ee08383613ec5565b60208301905092915050565b6000602082019050919050565b6000613f0482613e99565b613f0e8185613ea4565b9350613f1983613eb5565b8060005b83811015613f4a578151613f318882613ed4565b9750613f3c83613eec565b925050600181019050613f1d565b5085935050505092915050565b60006020820190508181036000830152613f718184613ef9565b905092915050565b600067ffffffffffffffff821115613f9457613f93613c8c565b5b613f9d82613a95565b9050602081019050919050565b6000613fbd613fb884613f79565b613cec565b905082815260208101848484011115613fd957613fd8613c87565b5b613fe4848285613d38565b509392505050565b600082601f83011261400157614000613c82565b5b8135614011848260208601613faa565b91505092915050565b60008060008060808587031215614034576140336138cb565b5b6000614042878288016139d9565b9450506020614053878288016139d9565b935050604061406487828801613b18565b925050606085013567ffffffffffffffff811115614085576140846138d0565b5b61409187828801613fec565b91505092959194509250565b6140a681613c17565b81146140b157600080fd5b50565b6000813590506140c38161409d565b92915050565b6140d281613c4e565b81146140dd57600080fd5b50565b6000813590506140ef816140c9565b92915050565b600080600080600080600060e0888a031215614114576141136138cb565b5b60006141228a828b016139d9565b97505060206141338a828b016139d9565b96505060406141448a828b01613b18565b95505060606141558a828b01613b18565b94505060806141668a828b016140b4565b93505060a06141778a828b016140e0565b92505060c06141888a828b016140e0565b91505092959891949750929550565b600080604083850312156141ae576141ad6138cb565b5b60006141bc858286016139d9565b92505060206141cd858286016139d9565b9150509250929050565b600080604083850312156141ee576141ed6138cb565b5b60006141fc85828601613b18565b925050602061420d85828601613b18565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061425e57607f821691505b60208210810361427157614270614217565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026142d97fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261429c565b6142e3868361429c565b95508019841693508086168417925050509392505050565b6000819050919050565b600061432061431b61431684613a1b565b6142fb565b613a1b565b9050919050565b6000819050919050565b61433a83614305565b61434e61434682614327565b8484546142a9565b825550505050565b600090565b614363614356565b61436e818484614331565b505050565b5b818110156143925761438760008261435b565b600181019050614374565b5050565b601f8211156143d7576143a881614277565b6143b18461428c565b810160208510156143c0578190505b6143d46143cc8561428c565b830182614373565b50505b505050565b600082821c905092915050565b60006143fa600019846008026143dc565b1980831691505092915050565b600061441383836143e9565b9150826002028217905092915050565b61442c82613a4f565b67ffffffffffffffff81111561444557614444613c8c565b5b61444f8254614246565b61445a828285614396565b600060209050601f83116001811461448d576000841561447b578287015190505b6144858582614407565b8655506144ed565b601f19841661449b86614277565b60005b828110156144c35784890151825560018201915060208501945060208101905061449e565b868310156144e057848901516144dc601f8916826143e9565b8355505b6001600288020188555050505b505050505050565b600081519050919050565b600082825260208201905092915050565b600061451c826144f5565b6145268185614500565b9350614536818560208601613a6b565b61453f81613a95565b840191505092915050565b600060808201905061455f6000830187613b5a565b61456c6020830186613b5a565b6145796040830185613a25565b818103606083015261458b8184614511565b905095945050505050565b6000815190506145a581613901565b92915050565b6000602082840312156145c1576145c06138cb565b5b60006145cf84828501614596565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061461282613a1b565b915061461d83613a1b565b9250828203905081811115614635576146346145d8565b5b92915050565b600081905092915050565b6000815461465381614246565b61465d818661463b565b94506001821660008114614678576001811461468d576146c0565b60ff19831686528115158202860193506146c0565b61469685614277565b60005b838110156146b857815481890152600182019150602081019050614699565b838801955050505b50505092915050565b60006146d482613a4f565b6146de818561463b565b93506146ee818560208601613a6b565b80840191505092915050565b60006147068285614646565b915061471282846146c9565b91508190509392505050565b600060c0820190506147336000830189613c58565b6147406020830188613b5a565b61474d6040830187613b5a565b61475a6060830186613a25565b6147676080830185613a25565b61477460a0830184613a25565b979650505050505050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b60006147b560028361463b565b91506147c08261477f565b600282019050919050565b6000819050919050565b6147e66147e182613c4e565b6147cb565b82525050565b60006147f7826147a8565b915061480382856147d5565b60208201915061481382846147d5565b6020820191508190509392505050565b60006080820190506148386000830187613c58565b6148456020830186613c24565b6148526040830185613c58565b61485f6060830184613c58565b95945050505050565b600061487382613a1b565b915061487e83613a1b565b9250828201905080821115614896576148956145d8565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081905092915050565b60008190508160005260206000209050919050565b600081546148f881614246565b61490281866148cb565b9450600182166000811461491d576001811461493257614965565b60ff1983168652811515820286019350614965565b61493b856148d6565b60005b8381101561495d5781548189015260018201915060208101905061493e565b838801955050505b50505092915050565b600061497a82846148eb565b915081905092915050565b600060a08201905061499a6000830188613c58565b6149a76020830187613c58565b6149b46040830186613c58565b6149c16060830185613a25565b6149ce6080830184613b5a565b9695505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614a1282613a1b565b9150614a1d83613a1b565b925082614a2d57614a2c6149d8565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6000614a7282613a1b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614aa457614aa36145d8565b5b60018201905091905056fea2646970667358221220bd76c682ca0077235fa09829de990281012f3c87c49712f324fb074df439d3ab64736f6c63430008140033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000003e800000000000000000000000096c022dacfabff81de9eb4fa365d383e221d53d4000000000000000000000000000000000000000000000000000000000000000846656e6746656e67000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000846454e4746454e47000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): FengFeng
Arg [1] : symbol_ (string): FENGFENG
Arg [2] : decimals_ (uint8): 18
Arg [3] : maxTotalSupplyERC721_ (uint256): 1000
Arg [4] : initialOwner_ (address): 0x96C022DACfAbFF81DE9Eb4Fa365D383e221d53D4

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [3] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [4] : 00000000000000000000000096c022dacfabff81de9eb4fa365d383e221d53d4
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [6] : 46656e6746656e67000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [8] : 46454e4746454e47000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.