ETH Price: $3,162.23 (-3.58%)

BoxcatPlanet (BCP)
 

Overview

TokenID

2475

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

BoxcatPlanet is a community-driven NFT project featuring art by GuanChun. The 3000 images are all created by Guan Chun independently, and each piece has reached her artistic level. BoxcatPlanet is more than just an NFT project, the team hopes that BoxcatPlanet will become a Web3 IP with a spirit of co-creation and exploration in the future.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
BoxcatPlanet

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : Blackwidow.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.11;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "erc721psi/contracts/ERC721Psi.sol";
import "@chainlink/contracts/src/v0.8/interfaces/VRFCoordinatorV2Interface.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBaseV2.sol";

error AddressNotAllowlistVerified();
error CallerNotOwner();
error CallerIsContract();
error AllowlistMintIsOff();
error PublicMintIsOff();
error MintMoreThanAllowed();
error ReachMaxSupply();
error NeedSendMoreETH();
error TokenNotExistent();
error NotCurrentRound();
error MintlistNumberOff();
error OwnerOnlyTransfer();
error NotOwnerOrApproval();
error BoxingIsNotOpen();
error IsNotBoxing();
error IsBoxing();

/**
 @author Catchon Labs
 @title Blackwidow NFT
 */
contract BoxcatPlanet is ERC721Psi, VRFConsumerBaseV2, Ownable {
    using Strings for uint256;

    struct TierConfig {
        uint8 maxTotalMint;
        uint256 listPrice;
        address verificationAddr;
    }

    struct VRFConfig {
        uint64 subscriptionId;
        bytes32 keyHash;
        uint32 callbackGasLimit;
        uint16 requestConfirmations;
        uint32 numWords;
    }

    struct MintConfig {
        uint32 allowlistMintStartTime;
        uint32 publicMintStartTime;
        uint256 publicPrice;
        uint256 publicMaxMint;
        string baseTokenURI;
    }

    bool public randomseedRequested = false;

    mapping(address => uint256) public _numberMinted;
    bool public boxingOpen = false;

    uint256 public immutable collectionSize;
    uint256 public currentRound;
    MintConfig public config;
    TierConfig[2] public tierConfigs;

    uint256[] public s_randomWords;

    VRFCoordinatorV2Interface COORDINATOR;
    VRFConfig private vRFConfig;
    uint256 private s_requestId;
    uint256 private offset;

    mapping(uint256 => uint256) private boxingStarted;
    mapping(uint256 => uint256) private boxingTotal;

    enum TransferStatus {
        DISALLOWED,
        ALLOWED
    }

    TransferStatus private boxingTransferStatus = TransferStatus.DISALLOWED;

    modifier callerIsUser() {
        if (tx.origin != msg.sender) {
            revert CallerIsContract();
        }
        _;
    }

    constructor(uint256 collectionSize_, address vrfCoordinator)
        ERC721Psi("BoxcatPlanet", "BCP")
        VRFConsumerBaseV2(vrfCoordinator)
    {
        COORDINATOR = VRFCoordinatorV2Interface(vrfCoordinator);
        collectionSize = collectionSize_;
    }

    /**
     Check if allowlist mint is ON.
     @return the status of allowlist mint, true for ON and false for OFF
     */
    function isAllowlistMintOn() public view returns (bool) {
        return
            tierConfigs[0].verificationAddr != address(0) &&
            tierConfigs[1].verificationAddr != address(0) &&
            config.allowlistMintStartTime != 0 &&
            block.timestamp >= config.allowlistMintStartTime;
    }

    /**
     Check if public mint is ON.
     @return the status of public mint, true for ON and false for OFF
     */
    function isPublicSaleOn() public view returns (bool) {
        return
            config.publicMintStartTime != 0 &&
            config.publicPrice != 0 &&
            block.timestamp >= config.allowlistMintStartTime &&
            block.timestamp >= config.publicMintStartTime;
    }

    /**
     API for addresses in allowlist to mint.
     @param quantity the amount of tokens to mint
     @param signature a signature to identify the sender 
     */
    function allowlistMint(uint256 quantity, bytes memory signature)
        public
        payable
        callerIsUser
    {
        uint256 idx = getAllowlistTier(msg.sender, signature);

        // Allowlist Mint should start
        if (!isAllowlistMintOn()) {
            revert AllowlistMintIsOff();
        }

        if (idx != currentRound) {
            revert NotCurrentRound();
        }

        if (
            (idx == 0) && (quantity != uint256(tierConfigs[idx].maxTotalMint))
        ) {
            revert MintlistNumberOff();
        }

        if (
            numberMinted(msg.sender) + quantity > tierConfigs[idx].maxTotalMint
        ) // Check allowlist mint size
        {
            revert MintMoreThanAllowed();
        }

        // For security purpose to prevent overmint
        if (totalSupply() + quantity > collectionSize) {
            revert ReachMaxSupply();
        }

        if (msg.value < tierConfigs[idx].listPrice * quantity) {
            revert NeedSendMoreETH();
        }

        _numberMinted[msg.sender] += quantity;
        _safeMint(msg.sender, quantity);
    }

    function configAllowlist(
        address veriAddr,
        uint8 maxNum,
        uint256 price,
        uint256 idx
    ) external onlyOwner {
        tierConfigs[idx].verificationAddr = veriAddr;
        tierConfigs[idx].maxTotalMint = maxNum;
        tierConfigs[idx].listPrice = price;
    }

    /**
     API for public to mint.
     @param quantity the amount of tokens to mint
     */
    function publicMint(uint256 quantity) external payable callerIsUser {
        if (!isPublicSaleOn()) {
            revert PublicMintIsOff();
        }

        if (totalSupply() + quantity > collectionSize) {
            revert ReachMaxSupply();
        }

        if (numberMinted(msg.sender) + quantity > config.publicMaxMint) {
            revert MintMoreThanAllowed();
        }

        if (msg.value < config.publicPrice * quantity) {
            revert NeedSendMoreETH();
        }

        _numberMinted[msg.sender] += quantity;
        _safeMint(msg.sender, quantity);
    }

    function safeTransferWhileBoxing(address to, uint256 tokenId) external {
        if (ownerOf(tokenId) != msg.sender) {
            revert OwnerOnlyTransfer();
        }
        boxingTransferStatus = TransferStatus.ALLOWED;
        safeTransferFrom(msg.sender, to, tokenId);
        boxingTransferStatus = TransferStatus.DISALLOWED;
    }

    function toggleBoxing(uint256 tokenId) internal {
        if (
            _msgSender() != ownerOf(tokenId) &&
            !isApprovedForAll(ownerOf(tokenId), _msgSender())
        ) {
            revert NotOwnerOrApproval();
        }
        uint256 start = boxingStarted[tokenId];
        if (start == 0) {
            if (!boxingOpen) {
                revert BoxingIsNotOpen();
            }
            boxingStarted[tokenId] = block.timestamp;
        } else {
            boxingTotal[tokenId] += block.timestamp - start;
            boxingStarted[tokenId] = 0;
        }
    }

    function toggleBoxing(uint256[] calldata tokenIds) external {
        uint256 n = tokenIds.length;
        for (uint256 i = 0; i < n; ++i) {
            toggleBoxing(tokenIds[i]);
        }
    }

    /**
    @notice Admin-only ability to expel a Moonbird from the nest.
    @dev As most sales listings use off-chain signatures it's impossible to
    detect someone who has boxing and then deliberately undercuts the floor
    price in the knowledge that the sale can't proceed. This function allows for
    monitoring of such practices and expulsion if abuse is detected, allowing
    the undercutting boxcat to be sold on the open market. Since OpenSea uses
    isApprovedForAll() in its pre-listing checks, we can't block by that means
    because boxing would then be all-or-nothing for all of a particular owner's
    BoxCatPlanet.
     */
    function expelFromBox(uint256 tokenId) external onlyOwner {
        if (boxingStarted[tokenId] == 0) {
            revert IsNotBoxing();
        }
        boxingTotal[tokenId] += block.timestamp - boxingStarted[tokenId];
        boxingStarted[tokenId] = 0;
    }

    function devMint(uint256 quantity) external onlyOwner {
        if (totalSupply() + quantity > collectionSize) {
            revert ReachMaxSupply();
        }
        _safeMint(msg.sender, quantity);
    }

    /**
     Get the number of token minted by minter.
     @param minter the minter address to be queried for
     @return the number of tokens minted by this minter
     */
    function numberMinted(address minter) public view returns (uint256) {
        return _numberMinted[minter];
    }

    function setBaseURI(string calldata baseURI) external onlyOwner {
        config.baseTokenURI = baseURI;
    }

    function withdrawMoney() external onlyOwner {
        (bool success, ) = msg.sender.call{value: address(this).balance}("");
        require(success, "Transfer failed");
    }

    function setConfig(
        uint32 allowlistMintStartTime,
        uint256 publicPriceWei,
        uint32 publicMintStartTime,
        string memory baseTokenURI,
        uint256 publicMaxMint
    ) external onlyOwner {
        config.allowlistMintStartTime = allowlistMintStartTime;
        config.publicPrice = publicPriceWei;
        config.publicMintStartTime = publicMintStartTime;
        config.baseTokenURI = baseTokenURI;
        config.publicMaxMint = publicMaxMint;
    }

    function setVRFConfig(
        uint64 subscriptionId,
        bytes32 keyHash_,
        uint32 callbackGasLimit_,
        uint16 requestConfirmations_
    ) external onlyOwner {
        vRFConfig.subscriptionId = subscriptionId;
        vRFConfig.keyHash = keyHash_;
        vRFConfig.numWords = 1;
        vRFConfig.callbackGasLimit = callbackGasLimit_;
        vRFConfig.requestConfirmations = requestConfirmations_;
    }

    function requestRandomWords() external onlyOwner {
        // Will revert if subscription is not set and funded.
        s_requestId = COORDINATOR.requestRandomWords(
            vRFConfig.keyHash,
            vRFConfig.subscriptionId,
            vRFConfig.requestConfirmations,
            vRFConfig.callbackGasLimit,
            vRFConfig.numWords
        );
    }

    function setCurrentRound(uint256 _current) external onlyOwner {
        currentRound = _current;
    }

    function setBoxingStatus(bool status) external onlyOwner {
        boxingOpen = status;
    }

    function fulfillRandomWords(
        uint256, /* requestId */
        uint256[] memory randomWords
    ) internal override {
        randomseedRequested = true;
        s_randomWords = randomWords;
        uint256 seed = uint256(keccak256(abi.encode(s_randomWords[0])));
        if (seed < collectionSize) {
            seed += collectionSize;
        }
        offset = seed % collectionSize;
    }

    function getAllowlistTier(address addr, bytes memory signature)
        internal
        view
        returns (uint256 idx)
    {
        address tempAddr = ECDSA.recover(
            keccak256(
                abi.encodePacked("\x19Ethereum Signed Message:\n40", this, addr)
            ),
            signature
        );
        if (tempAddr == tierConfigs[0].verificationAddr) {
            return 0;
        } else if (tempAddr == tierConfigs[1].verificationAddr) {
            return 1;
        } else {
            revert AddressNotAllowlistVerified();
        }
    }

    function boxingPeriod(uint256 tokenId)
        external
        view
        returns (
            bool boxing,
            uint256 current,
            uint256 total
        )
    {
        uint256 start = boxingStarted[tokenId];
        if (start != 0) {
            boxing = true;
            current = block.timestamp - start;
        }
        total = current + boxingTotal[tokenId];
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override(ERC721Psi)
        returns (string memory)
    {
        if (!_exists(tokenId)) {
            revert TokenNotExistent();
        }

        return
            randomseedRequested
                ? string(
                    abi.encodePacked(
                        _baseURI(),
                        _toString(getMetadata(tokenId))
                    )
                )
                : string(abi.encodePacked(_baseURI(), _toString(tokenId)));
    }

    function getMetadata(uint256 tokenId) public view returns (uint256) {
        if (tokenId >= totalSupply()) {
            revert TokenNotExistent();
        }

        if (!randomseedRequested) return tokenId;

        return (offset + tokenId) % collectionSize;
    }

    function _baseURI() internal view virtual override returns (string memory) {
        return config.baseTokenURI;
    }

    /**
    @dev Block transfers while nesting.
     */
    function _beforeTokenTransfers(
        address,
        address,
        uint256 startTokenId,
        uint256 quantity
    ) internal view override {
        uint256 tokenId = startTokenId;
        for (uint256 end = tokenId + quantity; tokenId < end; ++tokenId) {
            if (
                boxingStarted[tokenId] != 0 &&
                boxingTransferStatus == TransferStatus.DISALLOWED
            ) {
                revert IsBoxing();
            }
        }
    }

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value)
        internal
        pure
        virtual
        returns (string memory str)
    {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit),
            // but we allocate 0x80 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 32-byte word to store the length,
            // and 3 32-byte words to store a maximum of 78 digits. Total: 0x20 + 3 * 0x20 = 0x80.
            str := add(mload(0x40), 0x80)
            // Update the free memory pointer to allocate.
            mstore(0x40, str)

            // Cache the end of the memory to calculate the length later.
            let end := str

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }
}

File 2 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../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.
 *
 * By default, the owner account will be the one that deploys the contract. 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;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @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 {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing 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 {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _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 18 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.3) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 4 of 18 : ERC721Psi.sol
// SPDX-License-Identifier: MIT
/**
  ______ _____   _____ ______ ___  __ _  _  _ 
 |  ____|  __ \ / ____|____  |__ \/_ | || || |
 | |__  | |__) | |        / /   ) || | \| |/ |
 |  __| |  _  /| |       / /   / / | |\_   _/ 
 | |____| | \ \| |____  / /   / /_ | |  | |   
 |______|_|  \_\\_____|/_/   |____||_|  |_|   
                                              
                                            
 */

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/StorageSlot.sol";
import "solidity-bits/contracts/BitMaps.sol";


contract ERC721Psi is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    using Address for address;
    using Strings for uint256;
    using BitMaps for BitMaps.BitMap;

    BitMaps.BitMap private _batchHead;

    string private _name;
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) internal _owners;
    uint256 internal _minted;

    mapping(uint256 => address) private _tokenApprovals;
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC165, IERC165)
        returns (bool)
    {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            interfaceId == type(IERC721Enumerable).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) 
        public 
        view 
        virtual 
        override 
        returns (uint) 
    {
        require(owner != address(0), "ERC721Psi: balance query for the zero address");

        uint count;
        for( uint i; i < _minted; ++i ){
            if(_exists(i)){
                if( owner == ownerOf(i)){
                    ++count;
                }
            }
        }
        return count;
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId)
        public
        view
        virtual
        override
        returns (address)
    {
        (address owner, ) = _ownerAndBatchHeadOf(tokenId);
        return owner;
    }

    function _ownerAndBatchHeadOf(uint256 tokenId) internal view returns (address owner, uint256 tokenIdBatchHead){
        require(_exists(tokenId), "ERC721Psi: owner query for nonexistent token");
        tokenIdBatchHead = _getBatchHead(tokenId);
        owner = _owners[tokenIdBatchHead];
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Psi: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }


    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ownerOf(tokenId);
        require(to != owner, "ERC721Psi: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721Psi: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId)
        public
        view
        virtual
        override
        returns (address)
    {
        require(
            _exists(tokenId),
            "ERC721Psi: approved query for nonexistent token"
        );

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved)
        public
        virtual
        override
    {
        require(operator != _msgSender(), "ERC721Psi: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator)
        public
        view
        virtual
        override
        returns (bool)
    {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(
            _isApprovedOrOwner(_msgSender(), tokenId),
            "ERC721Psi: transfer caller is not owner nor approved"
        );

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(
            _isApprovedOrOwner(_msgSender(), tokenId),
            "ERC721Psi: transfer caller is not owner nor approved"
        );
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(
            _checkOnERC721Received(from, to, tokenId, 1,_data),
            "ERC721Psi: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return tokenId < _minted;
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId)
        internal
        view
        virtual
        returns (bool)
    {
        require(
            _exists(tokenId),
            "ERC721Psi: operator query for nonexistent token"
        );
        address owner = ownerOf(tokenId);
        return (spender == owner ||
            getApproved(tokenId) == spender ||
            isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, "");
    }

    
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        uint256 startTokenId = _minted;
        _mint(to, quantity);
        require(
            _checkOnERC721Received(address(0), to, startTokenId, quantity, _data),
            "ERC721Psi: transfer to non ERC721Receiver implementer"
        );
    }


    function _mint(
        address to,
        uint256 quantity
    ) internal virtual {
        uint256 tokenIdBatchHead = _minted;
        
        require(quantity > 0, "ERC721Psi: quantity must be greater 0");
        require(to != address(0), "ERC721Psi: mint to the zero address");
        
        _beforeTokenTransfers(address(0), to, tokenIdBatchHead, quantity);
        _minted += quantity;
        _owners[tokenIdBatchHead] = to;
        _batchHead.set(tokenIdBatchHead);
        _afterTokenTransfers(address(0), to, tokenIdBatchHead, quantity);
        
        // Emit events
        for(uint256 tokenId=tokenIdBatchHead;tokenId < tokenIdBatchHead + quantity; tokenId++){
            emit Transfer(address(0), to, tokenId);
        } 
    }


    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        (address owner, uint256 tokenIdBatchHead) = _ownerAndBatchHeadOf(tokenId);

        require(
            owner == from,
            "ERC721Psi: transfer of token that is not own"
        );
        require(to != address(0), "ERC721Psi: transfer to the zero address");

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);   

        uint256 nextTokenId = tokenId + 1;

        if(!_batchHead.get(nextTokenId) &&  
            nextTokenId < _minted
        ) {
            _owners[nextTokenId] = from;
            _batchHead.set(nextTokenId);
        }

        _owners[tokenId] = to;
        if(tokenId != tokenIdBatchHead) {
            _batchHead.set(tokenId);
        }

        emit Transfer(from, to, tokenId);

        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param startTokenId uint256 the first ID of the tokens to be transferred
     * @param quantity uint256 amount of the tokens to be transfered.
     * @param _data bytes optional data to send along with the call
     * @return r bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity,
        bytes memory _data
    ) private returns (bool r) {
        if (to.isContract()) {
            r = true;
            for(uint256 tokenId = startTokenId; tokenId < startTokenId + quantity; tokenId++){
                try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                    r = r && retval == IERC721Receiver.onERC721Received.selector;
                } catch (bytes memory reason) {
                    if (reason.length == 0) {
                        revert("ERC721Psi: transfer to non ERC721Receiver implementer");
                    } else {
                        assembly {
                            revert(add(32, reason), mload(reason))
                        }
                    }
                }
            }
            return r;
        } else {
            return true;
        }
    }

    function _getBatchHead(uint256 tokenId) internal view returns (uint256 tokenIdBatchHead) {
        tokenIdBatchHead = _batchHead.scanForward(tokenId); 
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _minted;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256 tokenId) {
        require(index < totalSupply(), "ERC721Psi: global index out of bounds");
        
        uint count;
        for(uint i; i < _minted; i++){
            if(_exists(i)){
                if(count == index) return i;
                else count++;
            }
        }
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256 tokenId) {
        uint count;
        for(uint i; i < _minted; i++){
            if(_exists(i) && owner == ownerOf(i)){
                if(count == index) return i;
                else count++;
            }
        }

        revert("ERC721Psi: owner index out of bounds");
    }


    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

File 5 of 18 : VRFCoordinatorV2Interface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface VRFCoordinatorV2Interface {
  /**
   * @notice Get configuration relevant for making requests
   * @return minimumRequestConfirmations global min for request confirmations
   * @return maxGasLimit global max for request gas limit
   * @return s_provingKeyHashes list of registered key hashes
   */
  function getRequestConfig()
    external
    view
    returns (
      uint16,
      uint32,
      bytes32[] memory
    );

  /**
   * @notice Request a set of random words.
   * @param keyHash - Corresponds to a particular oracle job which uses
   * that key for generating the VRF proof. Different keyHash's have different gas price
   * ceilings, so you can select a specific one to bound your maximum per request cost.
   * @param subId  - The ID of the VRF subscription. Must be funded
   * with the minimum subscription balance required for the selected keyHash.
   * @param minimumRequestConfirmations - How many blocks you'd like the
   * oracle to wait before responding to the request. See SECURITY CONSIDERATIONS
   * for why you may want to request more. The acceptable range is
   * [minimumRequestBlockConfirmations, 200].
   * @param callbackGasLimit - How much gas you'd like to receive in your
   * fulfillRandomWords callback. Note that gasleft() inside fulfillRandomWords
   * may be slightly less than this amount because of gas used calling the function
   * (argument decoding etc.), so you may need to request slightly more than you expect
   * to have inside fulfillRandomWords. The acceptable range is
   * [0, maxGasLimit]
   * @param numWords - The number of uint256 random values you'd like to receive
   * in your fulfillRandomWords callback. Note these numbers are expanded in a
   * secure way by the VRFCoordinator from a single random value supplied by the oracle.
   * @return requestId - A unique identifier of the request. Can be used to match
   * a request to a response in fulfillRandomWords.
   */
  function requestRandomWords(
    bytes32 keyHash,
    uint64 subId,
    uint16 minimumRequestConfirmations,
    uint32 callbackGasLimit,
    uint32 numWords
  ) external returns (uint256 requestId);

  /**
   * @notice Create a VRF subscription.
   * @return subId - A unique subscription id.
   * @dev You can manage the consumer set dynamically with addConsumer/removeConsumer.
   * @dev Note to fund the subscription, use transferAndCall. For example
   * @dev  LINKTOKEN.transferAndCall(
   * @dev    address(COORDINATOR),
   * @dev    amount,
   * @dev    abi.encode(subId));
   */
  function createSubscription() external returns (uint64 subId);

  /**
   * @notice Get a VRF subscription.
   * @param subId - ID of the subscription
   * @return balance - LINK balance of the subscription in juels.
   * @return reqCount - number of requests for this subscription, determines fee tier.
   * @return owner - owner of the subscription.
   * @return consumers - list of consumer address which are able to use this subscription.
   */
  function getSubscription(uint64 subId)
    external
    view
    returns (
      uint96 balance,
      uint64 reqCount,
      address owner,
      address[] memory consumers
    );

  /**
   * @notice Request subscription owner transfer.
   * @param subId - ID of the subscription
   * @param newOwner - proposed new owner of the subscription
   */
  function requestSubscriptionOwnerTransfer(uint64 subId, address newOwner) external;

  /**
   * @notice Request subscription owner transfer.
   * @param subId - ID of the subscription
   * @dev will revert if original owner of subId has
   * not requested that msg.sender become the new owner.
   */
  function acceptSubscriptionOwnerTransfer(uint64 subId) external;

  /**
   * @notice Add a consumer to a VRF subscription.
   * @param subId - ID of the subscription
   * @param consumer - New consumer which can use the subscription
   */
  function addConsumer(uint64 subId, address consumer) external;

  /**
   * @notice Remove a consumer from a VRF subscription.
   * @param subId - ID of the subscription
   * @param consumer - Consumer to remove from the subscription
   */
  function removeConsumer(uint64 subId, address consumer) external;

  /**
   * @notice Cancel a subscription
   * @param subId - ID of the subscription
   * @param to - Where to send the remaining LINK to
   */
  function cancelSubscription(uint64 subId, address to) external;
}

File 6 of 18 : VRFConsumerBaseV2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/** ****************************************************************************
 * @notice Interface for contracts using VRF randomness
 * *****************************************************************************
 * @dev PURPOSE
 *
 * @dev Reggie the Random Oracle (not his real job) wants to provide randomness
 * @dev to Vera the verifier in such a way that Vera can be sure he's not
 * @dev making his output up to suit himself. Reggie provides Vera a public key
 * @dev to which he knows the secret key. Each time Vera provides a seed to
 * @dev Reggie, he gives back a value which is computed completely
 * @dev deterministically from the seed and the secret key.
 *
 * @dev Reggie provides a proof by which Vera can verify that the output was
 * @dev correctly computed once Reggie tells it to her, but without that proof,
 * @dev the output is indistinguishable to her from a uniform random sample
 * @dev from the output space.
 *
 * @dev The purpose of this contract is to make it easy for unrelated contracts
 * @dev to talk to Vera the verifier about the work Reggie is doing, to provide
 * @dev simple access to a verifiable source of randomness. It ensures 2 things:
 * @dev 1. The fulfillment came from the VRFCoordinator
 * @dev 2. The consumer contract implements fulfillRandomWords.
 * *****************************************************************************
 * @dev USAGE
 *
 * @dev Calling contracts must inherit from VRFConsumerBase, and can
 * @dev initialize VRFConsumerBase's attributes in their constructor as
 * @dev shown:
 *
 * @dev   contract VRFConsumer {
 * @dev     constructor(<other arguments>, address _vrfCoordinator, address _link)
 * @dev       VRFConsumerBase(_vrfCoordinator) public {
 * @dev         <initialization with other arguments goes here>
 * @dev       }
 * @dev   }
 *
 * @dev The oracle will have given you an ID for the VRF keypair they have
 * @dev committed to (let's call it keyHash). Create subscription, fund it
 * @dev and your consumer contract as a consumer of it (see VRFCoordinatorInterface
 * @dev subscription management functions).
 * @dev Call requestRandomWords(keyHash, subId, minimumRequestConfirmations,
 * @dev callbackGasLimit, numWords),
 * @dev see (VRFCoordinatorInterface for a description of the arguments).
 *
 * @dev Once the VRFCoordinator has received and validated the oracle's response
 * @dev to your request, it will call your contract's fulfillRandomWords method.
 *
 * @dev The randomness argument to fulfillRandomWords is a set of random words
 * @dev generated from your requestId and the blockHash of the request.
 *
 * @dev If your contract could have concurrent requests open, you can use the
 * @dev requestId returned from requestRandomWords to track which response is associated
 * @dev with which randomness request.
 * @dev See "SECURITY CONSIDERATIONS" for principles to keep in mind,
 * @dev if your contract could have multiple requests in flight simultaneously.
 *
 * @dev Colliding `requestId`s are cryptographically impossible as long as seeds
 * @dev differ.
 *
 * *****************************************************************************
 * @dev SECURITY CONSIDERATIONS
 *
 * @dev A method with the ability to call your fulfillRandomness method directly
 * @dev could spoof a VRF response with any random value, so it's critical that
 * @dev it cannot be directly called by anything other than this base contract
 * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method).
 *
 * @dev For your users to trust that your contract's random behavior is free
 * @dev from malicious interference, it's best if you can write it so that all
 * @dev behaviors implied by a VRF response are executed *during* your
 * @dev fulfillRandomness method. If your contract must store the response (or
 * @dev anything derived from it) and use it later, you must ensure that any
 * @dev user-significant behavior which depends on that stored value cannot be
 * @dev manipulated by a subsequent VRF request.
 *
 * @dev Similarly, both miners and the VRF oracle itself have some influence
 * @dev over the order in which VRF responses appear on the blockchain, so if
 * @dev your contract could have multiple VRF requests in flight simultaneously,
 * @dev you must ensure that the order in which the VRF responses arrive cannot
 * @dev be used to manipulate your contract's user-significant behavior.
 *
 * @dev Since the block hash of the block which contains the requestRandomness
 * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful
 * @dev miner could, in principle, fork the blockchain to evict the block
 * @dev containing the request, forcing the request to be included in a
 * @dev different block with a different hash, and therefore a different input
 * @dev to the VRF. However, such an attack would incur a substantial economic
 * @dev cost. This cost scales with the number of blocks the VRF oracle waits
 * @dev until it calls responds to a request. It is for this reason that
 * @dev that you can signal to an oracle you'd like them to wait longer before
 * @dev responding to the request (however this is not enforced in the contract
 * @dev and so remains effective only in the case of unmodified oracle software).
 */
abstract contract VRFConsumerBaseV2 {
  error OnlyCoordinatorCanFulfill(address have, address want);
  address private immutable vrfCoordinator;

  /**
   * @param _vrfCoordinator address of VRFCoordinator contract
   */
  constructor(address _vrfCoordinator) {
    vrfCoordinator = _vrfCoordinator;
  }

  /**
   * @notice fulfillRandomness handles the VRF response. Your contract must
   * @notice implement it. See "SECURITY CONSIDERATIONS" above for important
   * @notice principles to keep in mind when implementing your fulfillRandomness
   * @notice method.
   *
   * @dev VRFConsumerBaseV2 expects its subcontracts to have a method with this
   * @dev signature, and will call it once it has verified the proof
   * @dev associated with the randomness. (It is triggered via a call to
   * @dev rawFulfillRandomness, below.)
   *
   * @param requestId The Id initially returned by requestRandomness
   * @param randomWords the VRF output expanded to the requested number of words
   */
  function fulfillRandomWords(uint256 requestId, uint256[] memory randomWords) internal virtual;

  // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF
  // proof. rawFulfillRandomness then calls fulfillRandomness, after validating
  // the origin of the call
  function rawFulfillRandomWords(uint256 requestId, uint256[] memory randomWords) external {
    if (msg.sender != vrfCoordinator) {
      revert OnlyCoordinatorCanFulfill(msg.sender, vrfCoordinator);
    }
    fulfillRandomWords(requestId, randomWords);
  }
}

File 7 of 18 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @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;
    }
}

File 8 of 18 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        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_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        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);
    }
}

File 9 of 18 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

File 10 of 18 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @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 11 of 18 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 12 of 18 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 13 of 18 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 14 of 18 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 15 of 18 : StorageSlot.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/StorageSlot.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }
}

File 16 of 18 : BitMaps.sol
// SPDX-License-Identifier: MIT
/**
   _____       ___     ___ __           ____  _ __      
  / ___/____  / (_)___/ (_) /___  __   / __ )(_) /______
  \__ \/ __ \/ / / __  / / __/ / / /  / __  / / __/ ___/
 ___/ / /_/ / / / /_/ / / /_/ /_/ /  / /_/ / / /_(__  ) 
/____/\____/_/_/\__,_/_/\__/\__, /  /_____/_/\__/____/  
                           /____/                        

- npm: https://www.npmjs.com/package/solidity-bits
- github: https://github.com/estarriolvetch/solidity-bits

 */
pragma solidity ^0.8.0;

import "./BitScan.sol";

/**
 * @dev This Library is a modified version of Openzeppelin's BitMaps library.
 * Functions of finding the index of the closest set bit from a given index are added.
 * The indexing of each bucket is modifed to count from the MSB to the LSB instead of from the LSB to the MSB.
 * The modification of indexing makes finding the closest previous set bit more efficient in gas usage.
*/

/**
 * @dev Library for managing uint256 to bool mapping in a compact and efficient way, providing the keys are sequential.
 * Largelly inspired by Uniswap's https://github.com/Uniswap/merkle-distributor/blob/master/contracts/MerkleDistributor.sol[merkle-distributor].
 */

library BitMaps {
    using BitScan for uint256;
    uint256 private constant MASK_INDEX_ZERO = (1 << 255);
    struct BitMap {
        mapping(uint256 => uint256) _data;
    }

    /**
     * @dev Returns whether the bit at `index` is set.
     */
    function get(BitMap storage bitmap, uint256 index) internal view returns (bool) {
        uint256 bucket = index >> 8;
        uint256 mask = MASK_INDEX_ZERO >> (index & 0xff);
        return bitmap._data[bucket] & mask != 0;
    }

    /**
     * @dev Sets the bit at `index` to the boolean `value`.
     */
    function setTo(
        BitMap storage bitmap,
        uint256 index,
        bool value
    ) internal {
        if (value) {
            set(bitmap, index);
        } else {
            unset(bitmap, index);
        }
    }

    /**
     * @dev Sets the bit at `index`.
     */
    function set(BitMap storage bitmap, uint256 index) internal {
        uint256 bucket = index >> 8;
        uint256 mask = MASK_INDEX_ZERO >> (index & 0xff);
        bitmap._data[bucket] |= mask;
    }

    /**
     * @dev Unsets the bit at `index`.
     */
    function unset(BitMap storage bitmap, uint256 index) internal {
        uint256 bucket = index >> 8;
        uint256 mask = MASK_INDEX_ZERO >> (index & 0xff);
        bitmap._data[bucket] &= ~mask;
    }

    /**
     * @dev Find the closest index of the set bit before `index`.
     */
    function scanForward(BitMap storage bitmap, uint256 index) internal view returns (uint256) {
        uint256 bucket = index >> 8;

        // index within the bucket
        uint256 bucketIndex = (index & 0xff);

        // load a bitboard from the bitmap.
        uint256 bb = bitmap._data[bucket];

        // offset the bitboard to scan from `bucketIndex`.
        bb = bb >> (0xff ^ bucketIndex); // bb >> (255 - bucketIndex)
        
        if(bb > 0) {
            unchecked {
                return (bucket << 8) | (bucketIndex -  bb.bitScanForward256());    
            }
        } else {
            while(true) {
                require(bucket > 0, "BitMaps: The set bit before the index doesn't exist.");
                unchecked {
                    bucket--;
                }
                // No offset. Always scan from the least significiant bit now.
                bb = bitmap._data[bucket];
                
                if(bb > 0) {
                    unchecked {
                        return (bucket << 8) | (255 -  bb.bitScanForward256());    
                    }
                } 
            }
        }
    }

    function getBucket(BitMap storage bitmap, uint256 bucket) internal view returns (uint256) {
        return bitmap._data[bucket];
    }
}

File 17 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @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 18 of 18 : BitScan.sol
// SPDX-License-Identifier: MIT
/**
   _____       ___     ___ __           ____  _ __      
  / ___/____  / (_)___/ (_) /___  __   / __ )(_) /______
  \__ \/ __ \/ / / __  / / __/ / / /  / __  / / __/ ___/
 ___/ / /_/ / / / /_/ / / /_/ /_/ /  / /_/ / / /_(__  ) 
/____/\____/_/_/\__,_/_/\__/\__, /  /_____/_/\__/____/  
                           /____/                        

- npm: https://www.npmjs.com/package/solidity-bits
- github: https://github.com/estarriolvetch/solidity-bits

 */

pragma solidity ^0.8.0;


library BitScan {
    uint256 constant private DEBRUIJN_256 = 0x818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff;
    bytes constant private LOOKUP_TABLE_256 = hex"0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8";

    /**
        @dev Isolate the least significant set bit.
     */ 
    function isolateLS1B256(uint256 bb) pure internal returns (uint256) {
        require(bb > 0);
        unchecked {
            return bb & (0 - bb);
        }
    } 

    /**
        @dev Isolate the most significant set bit.
     */ 
    function isolateMS1B256(uint256 bb) pure internal returns (uint256) {
        require(bb > 0);
        unchecked {
            bb |= bb >> 256;
            bb |= bb >> 128;
            bb |= bb >> 64;
            bb |= bb >> 32;
            bb |= bb >> 16;
            bb |= bb >> 8;
            bb |= bb >> 4;
            bb |= bb >> 2;
            bb |= bb >> 1;
            
            return (bb >> 1) + 1;
        }
    } 

    /**
        @dev Find the index of the lest significant set bit. (trailing zero count)
     */ 
    function bitScanForward256(uint256 bb) pure internal returns (uint8) {
        unchecked {
            return uint8(LOOKUP_TABLE_256[(isolateLS1B256(bb) * DEBRUIJN_256) >> 248]);
        }   
    }

    /**
        @dev Find the index of the most significant set bit.
     */ 
    function bitScanReverse256(uint256 bb) pure internal returns (uint8) {
        unchecked {
            return 255 - uint8(LOOKUP_TABLE_256[((isolateMS1B256(bb) * DEBRUIJN_256) >> 248)]);
        }   
    }

    function log2(uint256 bb) pure internal returns (uint8) {
        unchecked {
            return uint8(LOOKUP_TABLE_256[(isolateMS1B256(bb) * DEBRUIJN_256) >> 248]);
        } 
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"collectionSize_","type":"uint256"},{"internalType":"address","name":"vrfCoordinator","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AddressNotAllowlistVerified","type":"error"},{"inputs":[],"name":"AllowlistMintIsOff","type":"error"},{"inputs":[],"name":"BoxingIsNotOpen","type":"error"},{"inputs":[],"name":"CallerIsContract","type":"error"},{"inputs":[],"name":"IsBoxing","type":"error"},{"inputs":[],"name":"IsNotBoxing","type":"error"},{"inputs":[],"name":"MintMoreThanAllowed","type":"error"},{"inputs":[],"name":"MintlistNumberOff","type":"error"},{"inputs":[],"name":"NeedSendMoreETH","type":"error"},{"inputs":[],"name":"NotCurrentRound","type":"error"},{"inputs":[],"name":"NotOwnerOrApproval","type":"error"},{"inputs":[{"internalType":"address","name":"have","type":"address"},{"internalType":"address","name":"want","type":"address"}],"name":"OnlyCoordinatorCanFulfill","type":"error"},{"inputs":[],"name":"OwnerOnlyTransfer","type":"error"},{"inputs":[],"name":"PublicMintIsOff","type":"error"},{"inputs":[],"name":"ReachMaxSupply","type":"error"},{"inputs":[],"name":"TokenNotExistent","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","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":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"allowlistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boxingOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"boxingPeriod","outputs":[{"internalType":"bool","name":"boxing","type":"bool"},{"internalType":"uint256","name":"current","type":"uint256"},{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectionSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"config","outputs":[{"internalType":"uint32","name":"allowlistMintStartTime","type":"uint32"},{"internalType":"uint32","name":"publicMintStartTime","type":"uint32"},{"internalType":"uint256","name":"publicPrice","type":"uint256"},{"internalType":"uint256","name":"publicMaxMint","type":"uint256"},{"internalType":"string","name":"baseTokenURI","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"veriAddr","type":"address"},{"internalType":"uint8","name":"maxNum","type":"uint8"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"idx","type":"uint256"}],"name":"configAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentRound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"expelFromBox","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getMetadata","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isAllowlistMintOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"numberMinted","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":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"randomseedRequested","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"requestId","type":"uint256"},{"internalType":"uint256[]","name":"randomWords","type":"uint256[]"}],"name":"rawFulfillRandomWords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"requestRandomWords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"s_randomWords","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":"tokenId","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":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferWhileBoxing","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":"bool","name":"status","type":"bool"}],"name":"setBoxingStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"allowlistMintStartTime","type":"uint32"},{"internalType":"uint256","name":"publicPriceWei","type":"uint256"},{"internalType":"uint32","name":"publicMintStartTime","type":"uint32"},{"internalType":"string","name":"baseTokenURI","type":"string"},{"internalType":"uint256","name":"publicMaxMint","type":"uint256"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_current","type":"uint256"}],"name":"setCurrentRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"subscriptionId","type":"uint64"},{"internalType":"bytes32","name":"keyHash_","type":"bytes32"},{"internalType":"uint32","name":"callbackGasLimit_","type":"uint32"},{"internalType":"uint16","name":"requestConfirmations_","type":"uint16"}],"name":"setVRFConfig","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":"","type":"uint256"}],"name":"tierConfigs","outputs":[{"internalType":"uint8","name":"maxTotalMint","type":"uint8"},{"internalType":"uint256","name":"listPrice","type":"uint256"},{"internalType":"address","name":"verificationAddr","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"toggleBoxing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawMoney","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040526000600760146101000a81548160ff0219169083151502179055506000600960006101000a81548160ff0219169083151502179055506000601e60006101000a81548160ff0219169083600181111562000063576200006262000360565b5b02179055503480156200007557600080fd5b50604051620064e7380380620064e783398181016040528101906200009b919062000434565b806040518060400160405280600c81526020017f426f78636174506c616e657400000000000000000000000000000000000000008152506040518060400160405280600381526020017f4243500000000000000000000000000000000000000000000000000000000000815250816001908051906020019062000120929190620002b0565b50806002908051906020019062000139929190620002b0565b5050508073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1681525050506200019162000185620001e260201b60201c565b620001ea60201b60201c565b80601660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160a081815250505050620004e0565b600033905090565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002be90620004aa565b90600052602060002090601f016020900481019282620002e257600085556200032e565b82601f10620002fd57805160ff19168380011785556200032e565b828001600101855582156200032e579182015b828111156200032d57825182559160200191906001019062000310565b5b5090506200033d919062000341565b5090565b5b808211156200035c57600081600090555060010162000342565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600080fd5b6000819050919050565b620003a98162000394565b8114620003b557600080fd5b50565b600081519050620003c9816200039e565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620003fc82620003cf565b9050919050565b6200040e81620003ef565b81146200041a57600080fd5b50565b6000815190506200042e8162000403565b92915050565b600080604083850312156200044e576200044d6200038f565b5b60006200045e85828601620003b8565b925050602062000471858286016200041d565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620004c357607f821691505b60208210811415620004da57620004d96200047b565b5b50919050565b60805160a051615fa96200053e600039600081816110710152818161136f015281816115b5015281816116e601528181611f8701528181612a4501528181612a6d0152612a9c0152600081816111ac01526112000152615fa96000f3fe6080604052600436106102885760003560e01c806370a082311161015a578063ac446002116100c1578063db0ca0b41161007a578063db0ca0b4146109da578063dc33e68114610a03578063e0c8628914610a40578063e985e9c514610a57578063f2fde38b14610a94578063f6eaffc814610abd57610288565b8063ac446002146108ca578063acb92943146108e1578063ae32ddae1461090a578063b88d4fde14610935578063be1caa611461095e578063c87b56dd1461099d57610288565b80638d298b53116101135780638d298b53146107bc5780638da5cb5b146107e557806395d89b4114610810578063a05048fb1461083b578063a22cb46514610864578063a574cea41461088d57610288565b806370a08231146106a6578063715018a6146106e35780637523ee5f146106fa57806379502c55146107235780638a19c8bc146107525780638af8198c1461077d57610288565b80632f745c59116101fe5780634d388a98116101b75780634d388a98146105745780634d50fd4d146105b15780634f6ccce7146105da578063525187c61461061757806355f804b3146106405780636352211e1461066957610288565b80632f745c5914610466578063375a069a146104a35780633bc91e28146104cc5780633f5e4741146104f557806342842e0e1461052057806345c0f5331461054957610288565b80630bd8d3b0116102505780630bd8d3b01461038657806315c8f106146103b157806318160ddd146103cd5780631fe543e3146103f857806323b872dd146104215780632db115441461044a57610288565b806301ffc9a71461028d57806302410f47146102ca57806306fdde03146102f5578063081812fc14610320578063095ea7b31461035d575b600080fd5b34801561029957600080fd5b506102b460048036038101906102af9190613f4d565b610afa565b6040516102c19190613f95565b60405180910390f35b3480156102d657600080fd5b506102df610c44565b6040516102ec9190613f95565b60405180910390f35b34801561030157600080fd5b5061030a610c57565b6040516103179190614049565b60405180910390f35b34801561032c57600080fd5b50610347600480360381019061034291906140a1565b610ce9565b604051610354919061410f565b60405180910390f35b34801561036957600080fd5b50610384600480360381019061037f9190614156565b610d6e565b005b34801561039257600080fd5b5061039b610e86565b6040516103a89190613f95565b60405180910390f35b6103cb60048036038101906103c691906142cb565b610e99565b005b3480156103d957600080fd5b506103e26111a0565b6040516103ef9190614336565b60405180910390f35b34801561040457600080fd5b5061041f600480360381019061041a9190614419565b6111aa565b005b34801561042d57600080fd5b5061044860048036038101906104439190614475565b61126a565b005b610464600480360381019061045f91906140a1565b6112ca565b005b34801561047257600080fd5b5061048d60048036038101906104889190614156565b6114d8565b60405161049a9190614336565b60405180910390f35b3480156104af57600080fd5b506104ca60048036038101906104c591906140a1565b6115ab565b005b3480156104d857600080fd5b506104f360048036038101906104ee91906140a1565b61162c565b005b34801561050157600080fd5b5061050a61163e565b6040516105179190613f95565b60405180910390f35b34801561052c57600080fd5b5061054760048036038101906105429190614475565b6116c4565b005b34801561055557600080fd5b5061055e6116e4565b60405161056b9190614336565b60405180910390f35b34801561058057600080fd5b5061059b600480360381019061059691906144c8565b611708565b6040516105a89190614336565b60405180910390f35b3480156105bd57600080fd5b506105d860048036038101906105d39190614521565b611720565b005b3480156105e657600080fd5b5061060160048036038101906105fc91906140a1565b611745565b60405161060e9190614336565b60405180910390f35b34801561062357600080fd5b5061063e600480360381019061063991906145a9565b6117e8565b005b34801561064c57600080fd5b506106676004803603810190610662919061464c565b611834565b005b34801561067557600080fd5b50610690600480360381019061068b91906140a1565b611855565b60405161069d919061410f565b60405180910390f35b3480156106b257600080fd5b506106cd60048036038101906106c891906144c8565b61186d565b6040516106da9190614336565b60405180910390f35b3480156106ef57600080fd5b506106f861195f565b005b34801561070657600080fd5b50610721600480360381019061071c91906140a1565b611973565b005b34801561072f57600080fd5b50610738611a2d565b6040516107499594939291906146b8565b60405180910390f35b34801561075e57600080fd5b50610767611af9565b6040516107749190614336565b60405180910390f35b34801561078957600080fd5b506107a4600480360381019061079f91906140a1565b611aff565b6040516107b39392919061472e565b60405180910390f35b3480156107c857600080fd5b506107e360048036038101906107de9190614156565b611b5c565b005b3480156107f157600080fd5b506107fa611c2e565b604051610807919061410f565b60405180910390f35b34801561081c57600080fd5b50610825611c58565b6040516108329190614049565b60405180910390f35b34801561084757600080fd5b50610862600480360381019061085d9190614791565b611cea565b005b34801561087057600080fd5b5061088b600480360381019061088691906147f8565b611da6565b005b34801561089957600080fd5b506108b460048036038101906108af91906140a1565b611f27565b6040516108c19190614336565b60405180910390f35b3480156108d657600080fd5b506108df611fc6565b005b3480156108ed57600080fd5b5061090860048036038101906109039190614905565b61207d565b005b34801561091657600080fd5b5061091f612102565b60405161092c9190613f95565b60405180910390f35b34801561094157600080fd5b5061095c6004803603810190610957919061499c565b612239565b005b34801561096a57600080fd5b50610985600480360381019061098091906140a1565b61229b565b60405161099493929190614a1f565b60405180910390f35b3480156109a957600080fd5b506109c460048036038101906109bf91906140a1565b6122fb565b6040516109d19190614049565b60405180910390f35b3480156109e657600080fd5b50610a0160048036038101906109fc9190614b06565b6123c7565b005b348015610a0f57600080fd5b50610a2a6004803603810190610a2591906144c8565b612474565b604051610a379190614336565b60405180910390f35b348015610a4c57600080fd5b50610a556124bd565b005b348015610a6357600080fd5b50610a7e6004803603810190610a799190614b6d565b6125ce565b604051610a8b9190613f95565b60405180910390f35b348015610aa057600080fd5b50610abb6004803603810190610ab691906144c8565b612662565b005b348015610ac957600080fd5b50610ae46004803603810190610adf91906140a1565b6126e6565b604051610af19190614336565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610bc557507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c2d57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c3d5750610c3c8261270a565b5b9050919050565b600760149054906101000a900460ff1681565b606060018054610c6690614bdc565b80601f0160208091040260200160405190810160405280929190818152602001828054610c9290614bdc565b8015610cdf5780601f10610cb457610100808354040283529160200191610cdf565b820191906000526020600020905b815481529060010190602001808311610cc257829003601f168201915b5050505050905090565b6000610cf482612774565b610d33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2a90614c80565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610d7982611855565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610dea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de190614d12565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610e09612782565b73ffffffffffffffffffffffffffffffffffffffff161480610e385750610e3781610e32612782565b6125ce565b5b610e77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6e90614da4565b60405180910390fd5b610e81838361278a565b505050565b600960009054906101000a900460ff1681565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610efe576040517f7df1f81700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610f0a3383612843565b9050610f14612102565b610f4a576040517fafb53c5400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a548114610f85576040517f212582c300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600081148015610fc05750600f8160028110610fa457610fa3614dc4565b5b6003020160000160009054906101000a900460ff1660ff168314155b15610ff7576040517ff87df8af00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600f816002811061100b5761100a614dc4565b5b6003020160000160009054906101000a900460ff1660ff168361102d33612474565b6110379190614e22565b111561106f576040517fb234809100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000836110996111a0565b6110a39190614e22565b11156110db576040517f688ef65c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600f82600281106110f0576110ef614dc4565b5b60030201600101546111029190614e78565b34101561113b576040517fa733df5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461118a9190614e22565b9250508190555061119b33846129a6565b505050565b6000600454905090565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461125c57337f00000000000000000000000000000000000000000000000000000000000000006040517f1cf993f4000000000000000000000000000000000000000000000000000000008152600401611253929190614ed2565b60405180910390fd5b61126682826129c4565b5050565b61127b611275612782565b82612ad1565b6112ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b190614f6d565b60405180910390fd5b6112c5838383612baf565b505050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461132f576040517f7df1f81700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61133761163e565b61136d576040517f4f1ddc5a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000816113976111a0565b6113a19190614e22565b11156113d9576040517f688ef65c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b60020154816113e933612474565b6113f39190614e22565b111561142b576040517fb234809100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600b6001015461143c9190614e78565b341015611475576040517fa733df5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546114c49190614e22565b925050819055506114d533826129a6565b50565b60008060005b600454811015611569576114f181612774565b8015611530575061150181611855565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b1561155657838214156115475780925050506115a5565b818061155290614f8d565b9250505b808061156190614f8d565b9150506114de565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159c90615048565b60405180910390fd5b92915050565b6115b3612e32565b7f0000000000000000000000000000000000000000000000000000000000000000816115dd6111a0565b6115e79190614e22565b111561161f576040517f688ef65c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61162933826129a6565b50565b611634612e32565b80600a8190555050565b600080600b60000160049054906101000a900463ffffffff1663ffffffff161415801561167157506000600b6001015414155b80156116985750600b60000160009054906101000a900463ffffffff1663ffffffff164210155b80156116bf5750600b60000160049054906101000a900463ffffffff1663ffffffff164210155b905090565b6116df83838360405180602001604052806000815250612239565b505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60086020528060005260406000206000915090505481565b611728612e32565b80600960006101000a81548160ff02191690831515021790555050565b600061174f6111a0565b8210611790576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611787906150da565b60405180910390fd5b6000805b6004548110156117e0576117a781612774565b156117cd57838214156117be5780925050506117e3565b81806117c990614f8d565b9250505b80806117d890614f8d565b915050611794565b50505b919050565b600082829050905060005b8181101561182e5761181d84848381811061181157611810614dc4565b5b90506020020135612eb0565b8061182790614f8d565b90506117f3565b50505050565b61183c612e32565b8181600b6003019190611850929190613d6b565b505050565b6000806118618361301f565b50905080915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d59061516c565b60405180910390fd5b6000805b600454811015611955576118f581612774565b156119445761190381611855565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611943578161194090614f8d565b91505b5b8061194e90614f8d565b90506118e2565b5080915050919050565b611967612e32565b61197160006130b0565b565b61197b612e32565b6000601c60008381526020019081526020016000205414156119c9576040517fb2be96e300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601c600082815260200190815260200160002054426119e8919061518c565b601d60008381526020019081526020016000206000828254611a0a9190614e22565b925050819055506000601c60008381526020019081526020016000208190555050565b600b8060000160009054906101000a900463ffffffff16908060000160049054906101000a900463ffffffff1690806001015490806002015490806003018054611a7690614bdc565b80601f0160208091040260200160405190810160405280929190818152602001828054611aa290614bdc565b8015611aef5780601f10611ac457610100808354040283529160200191611aef565b820191906000526020600020905b815481529060010190602001808311611ad257829003601f168201915b5050505050905085565b600a5481565b600f8160028110611b0f57600080fd5b600302016000915090508060000160009054906101000a900460ff16908060010154908060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905083565b3373ffffffffffffffffffffffffffffffffffffffff16611b7c82611855565b73ffffffffffffffffffffffffffffffffffffffff1614611bc9576040517f781e583d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001601e60006101000a81548160ff02191690836001811115611bef57611bee6151c0565b5b0217905550611bff3383836116c4565b6000601e60006101000a81548160ff02191690836001811115611c2557611c246151c0565b5b02179055505050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060028054611c6790614bdc565b80601f0160208091040260200160405190810160405280929190818152602001828054611c9390614bdc565b8015611ce05780601f10611cb557610100808354040283529160200191611ce0565b820191906000526020600020905b815481529060010190602001808311611cc357829003601f168201915b5050505050905090565b611cf2612e32565b83600f8260028110611d0757611d06614dc4565b5b6003020160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600f8260028110611d6157611d60614dc4565b5b6003020160000160006101000a81548160ff021916908360ff16021790555081600f8260028110611d9557611d94614dc4565b5b600302016001018190555050505050565b611dae612782565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e139061523b565b60405180910390fd5b8060066000611e29612782565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611ed6612782565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611f1b9190613f95565b60405180910390a35050565b6000611f316111a0565b8210611f69576040517fe7cb657c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600760149054906101000a900460ff16611f8557819050611fc1565b7f000000000000000000000000000000000000000000000000000000000000000082601b54611fb49190614e22565b611fbe919061528a565b90505b919050565b611fce612e32565b60003373ffffffffffffffffffffffffffffffffffffffff1647604051611ff4906152ec565b60006040518083038185875af1925050503d8060008114612031576040519150601f19603f3d011682016040523d82523d6000602084013e612036565b606091505b505090508061207a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120719061534d565b60405180910390fd5b50565b612085612e32565b84600b60000160006101000a81548163ffffffff021916908363ffffffff16021790555083600b6001018190555082600b60000160046101000a81548163ffffffff021916908363ffffffff16021790555081600b60030190805190602001906120f0929190613df1565b5080600b600201819055505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff16600f6000600281106121305761212f614dc4565b5b6003020160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141580156121e55750600073ffffffffffffffffffffffffffffffffffffffff16600f6001600281106121a4576121a3614dc4565b5b6003020160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b801561220d57506000600b60000160009054906101000a900463ffffffff1663ffffffff1614155b80156122345750600b60000160009054906101000a900463ffffffff1663ffffffff164210155b905090565b61224a612244612782565b83612ad1565b612289576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228090614f6d565b60405180910390fd5b61229584848484613176565b50505050565b600080600080601c6000868152602001908152602001600020549050600081146122d2576001935080426122cf919061518c565b92505b601d600086815260200190815260200160002054836122f19190614e22565b9150509193909250565b606061230682612774565b61233c576040517fe7cb657c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600760149054906101000a900460ff16612386576123586131d4565b61236183613269565b6040516020016123729291906153a9565b6040516020818303038152906040526123c0565b61238e6131d4565b61239f61239a84611f27565b613269565b6040516020016123b09291906153a9565b6040516020818303038152906040525b9050919050565b6123cf612e32565b83601760000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550826017600101819055506001601760020160066101000a81548163ffffffff021916908363ffffffff16021790555081601760020160006101000a81548163ffffffff021916908363ffffffff16021790555080601760020160046101000a81548161ffff021916908361ffff16021790555050505050565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6124c5612e32565b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635d3b1d30601760010154601760000160009054906101000a900467ffffffffffffffff16601760020160049054906101000a900461ffff16601760020160009054906101000a900463ffffffff16601760020160069054906101000a900463ffffffff166040518663ffffffff1660e01b81526004016125839594939291906153fa565b6020604051808303816000875af11580156125a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125c69190615462565b601a81905550565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61266a612e32565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156126da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126d190615501565b60405180910390fd5b6126e3816130b0565b50565b601581815481106126f657600080fd5b906000526020600020016000915090505481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600060045482109050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166127fd83611855565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080612878308560405160200161285c92919061561c565b60405160208183030381529060405280519060200120846132b9565b9050600f60006002811061288f5761288e614dc4565b5b6003020160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156128f45760009150506129a0565b600f60016002811061290957612908614dc4565b5b6003020160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561296e5760019150506129a0565b6040517f274ccf2700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b92915050565b6129c08282604051806020016040528060008152506132e0565b5050565b6001600760146101000a81548160ff02191690831515021790555080601590805190602001906129f5929190613e77565b5060006015600081548110612a0d57612a0c614dc4565b5b9060005260206000200154604051602001612a289190614336565b6040516020818303038152906040528051906020012060001c90507f0000000000000000000000000000000000000000000000000000000000000000811015612a9a577f000000000000000000000000000000000000000000000000000000000000000081612a979190614e22565b90505b7f000000000000000000000000000000000000000000000000000000000000000081612ac6919061528a565b601b81905550505050565b6000612adc82612774565b612b1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b12906156c5565b60405180910390fd5b6000612b2683611855565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612b9557508373ffffffffffffffffffffffffffffffffffffffff16612b7d84610ce9565b73ffffffffffffffffffffffffffffffffffffffff16145b80612ba65750612ba581856125ce565b5b91505092915050565b600080612bbb8361301f565b915091508473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612c2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c2490615757565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612c9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c94906157e9565b60405180910390fd5b612caa8585856001613344565b612cb560008461278a565b6000600184612cc49190614e22565b9050612cda81600061340990919063ffffffff16565b158015612ce8575060045481105b15612d5457856003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550612d5381600061346490919063ffffffff16565b5b846003600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818414612dc257612dc184600061346490919063ffffffff16565b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612e2a86868660016134c1565b505050505050565b612e3a612782565b73ffffffffffffffffffffffffffffffffffffffff16612e58611c2e565b73ffffffffffffffffffffffffffffffffffffffff1614612eae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ea590615855565b60405180910390fd5b565b612eb981611855565b73ffffffffffffffffffffffffffffffffffffffff16612ed7612782565b73ffffffffffffffffffffffffffffffffffffffff1614158015612f115750612f0f612f0282611855565b612f0a612782565b6125ce565b155b15612f48576040517fef076e2e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000601c60008381526020019081526020016000205490506000811415612fcc57600960009054906101000a900460ff16612faf576040517f4497a78000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b42601c60008481526020019081526020016000208190555061301b565b8042612fd8919061518c565b601d60008481526020019081526020016000206000828254612ffa9190614e22565b925050819055506000601c6000848152602001908152602001600020819055505b5050565b60008061302b83612774565b61306a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613061906158e7565b60405180910390fd5b613073836134c7565b90506003600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150915091565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b613181848484612baf565b61318f8484846001856134e4565b6131ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131c590615979565b60405180910390fd5b50505050565b6060600b60030180546131e690614bdc565b80601f016020809104026020016040519081016040528092919081815260200182805461321290614bdc565b801561325f5780601f106132345761010080835404028352916020019161325f565b820191906000526020600020905b81548152906001019060200180831161324257829003601f168201915b5050505050905090565b606060806040510190508060405280825b6001156132a557600183039250600a81066030018353600a81049050806132a0576132a5565b61327a565b508181036020830392508083525050919050565b60008060006132c885856136a7565b915091506132d5816136f9565b819250505092915050565b600060045490506132f184846138ce565b6132ff6000858386866134e4565b61333e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161333590615979565b60405180910390fd5b50505050565b6000829050600082826133579190614e22565b90505b80821015613401576000601c600084815260200190815260200160002054141580156133b9575060006001811115613395576133946151c0565b5b601e60009054906101000a900460ff1660018111156133b7576133b66151c0565b5b145b156133f0576040517fc34dcdb900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b816133fa90614f8d565b915061335a565b505050505050565b600080600883901c9050600060ff84167f8000000000000000000000000000000000000000000000000000000000000000901c9050600081866000016000858152602001908152602001600020541614159250505092915050565b6000600882901c9050600060ff83167f8000000000000000000000000000000000000000000000000000000000000000901c9050808460000160008481526020019081526020016000206000828254179250508190555050505050565b50505050565b60006134dd826000613aaf90919063ffffffff16565b9050919050565b60006135058573ffffffffffffffffffffffffffffffffffffffff16613bae565b15613699576001905060008490505b83856135209190614e22565b811015613693578573ffffffffffffffffffffffffffffffffffffffff1663150b7a0261354b612782565b8984876040518563ffffffff1660e01b815260040161356d94939291906159ee565b6020604051808303816000875af19250505080156135a957506040513d601f19601f820116820180604052508101906135a69190615a4f565b60015b61362c573d80600081146135d9576040519150601f19603f3d011682016040523d82523d6000602084013e6135de565b606091505b50600081511415613624576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161361b90615979565b60405180910390fd5b805181602001fd5b82801561367d575063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b925050808061368b90614f8d565b915050613514565b5061369e565b600190505b95945050505050565b6000806041835114156136e95760008060006020860151925060408601519150606086015160001a90506136dd87828585613bd1565b945094505050506136f2565b60006002915091505b9250929050565b6000600481111561370d5761370c6151c0565b5b8160048111156137205761371f6151c0565b5b141561372b576138cb565b6001600481111561373f5761373e6151c0565b5b816004811115613752576137516151c0565b5b1415613793576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161378a90615ac8565b60405180910390fd5b600260048111156137a7576137a66151c0565b5b8160048111156137ba576137b96151c0565b5b14156137fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137f290615b34565b60405180910390fd5b6003600481111561380f5761380e6151c0565b5b816004811115613822576138216151c0565b5b1415613863576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161385a90615bc6565b60405180910390fd5b600480811115613876576138756151c0565b5b816004811115613889576138886151c0565b5b14156138ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138c190615c58565b60405180910390fd5b5b50565b6000600454905060008211613918576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161390f90615cea565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613988576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161397f90615d7c565b60405180910390fd5b6139956000848385613344565b81600460008282546139a79190614e22565b92505081905550826003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550613a1481600061346490919063ffffffff16565b613a2160008483856134c1565b60008190505b8282613a339190614e22565b811015613aa957808473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48080613aa190614f8d565b915050613a27565b50505050565b600080600883901c9050600060ff8416905060008560000160008481526020019081526020016000205490508160ff1881901c90506000811115613b0b57613af681613cde565b60ff168203600884901b179350505050613ba8565b5b600115613ba45760008311613b56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b4d90615e0e565b60405180910390fd5b8280600190039350508560000160008481526020019081526020016000205490506000811115613b9f57613b8981613cde565b60ff0360ff16600884901b179350505050613ba8565b613b0c565b5050505b92915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613c0c576000600391509150613cd5565b601b8560ff1614158015613c245750601c8560ff1614155b15613c36576000600491509150613cd5565b600060018787878760405160008152602001604052604051613c5b9493929190615e2e565b6020604051602081039080840390855afa158015613c7d573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613ccc57600060019250925050613cd5565b80600092509250505b94509492505050565b60006040518061012001604052806101008152602001615e74610100913960f87e818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff613d2785613d50565b02901c81518110613d3b57613d3a614dc4565b5b602001015160f81c60f81b60f81c9050919050565b6000808211613d5e57600080fd5b8160000382169050919050565b828054613d7790614bdc565b90600052602060002090601f016020900481019282613d995760008555613de0565b82601f10613db257803560ff1916838001178555613de0565b82800160010185558215613de0579182015b82811115613ddf578235825591602001919060010190613dc4565b5b509050613ded9190613ec4565b5090565b828054613dfd90614bdc565b90600052602060002090601f016020900481019282613e1f5760008555613e66565b82601f10613e3857805160ff1916838001178555613e66565b82800160010185558215613e66579182015b82811115613e65578251825591602001919060010190613e4a565b5b509050613e739190613ec4565b5090565b828054828255906000526020600020908101928215613eb3579160200282015b82811115613eb2578251825591602001919060010190613e97565b5b509050613ec09190613ec4565b5090565b5b80821115613edd576000816000905550600101613ec5565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613f2a81613ef5565b8114613f3557600080fd5b50565b600081359050613f4781613f21565b92915050565b600060208284031215613f6357613f62613eeb565b5b6000613f7184828501613f38565b91505092915050565b60008115159050919050565b613f8f81613f7a565b82525050565b6000602082019050613faa6000830184613f86565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613fea578082015181840152602081019050613fcf565b83811115613ff9576000848401525b50505050565b6000601f19601f8301169050919050565b600061401b82613fb0565b6140258185613fbb565b9350614035818560208601613fcc565b61403e81613fff565b840191505092915050565b600060208201905081810360008301526140638184614010565b905092915050565b6000819050919050565b61407e8161406b565b811461408957600080fd5b50565b60008135905061409b81614075565b92915050565b6000602082840312156140b7576140b6613eeb565b5b60006140c58482850161408c565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006140f9826140ce565b9050919050565b614109816140ee565b82525050565b60006020820190506141246000830184614100565b92915050565b614133816140ee565b811461413e57600080fd5b50565b6000813590506141508161412a565b92915050565b6000806040838503121561416d5761416c613eeb565b5b600061417b85828601614141565b925050602061418c8582860161408c565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6141d882613fff565b810181811067ffffffffffffffff821117156141f7576141f66141a0565b5b80604052505050565b600061420a613ee1565b905061421682826141cf565b919050565b600067ffffffffffffffff821115614236576142356141a0565b5b61423f82613fff565b9050602081019050919050565b82818337600083830152505050565b600061426e6142698461421b565b614200565b90508281526020810184848401111561428a5761428961419b565b5b61429584828561424c565b509392505050565b600082601f8301126142b2576142b1614196565b5b81356142c284826020860161425b565b91505092915050565b600080604083850312156142e2576142e1613eeb565b5b60006142f08582860161408c565b925050602083013567ffffffffffffffff81111561431157614310613ef0565b5b61431d8582860161429d565b9150509250929050565b6143308161406b565b82525050565b600060208201905061434b6000830184614327565b92915050565b600067ffffffffffffffff82111561436c5761436b6141a0565b5b602082029050602081019050919050565b600080fd5b600061439561439084614351565b614200565b905080838252602082019050602084028301858111156143b8576143b761437d565b5b835b818110156143e157806143cd888261408c565b8452602084019350506020810190506143ba565b5050509392505050565b600082601f830112614400576143ff614196565b5b8135614410848260208601614382565b91505092915050565b600080604083850312156144305761442f613eeb565b5b600061443e8582860161408c565b925050602083013567ffffffffffffffff81111561445f5761445e613ef0565b5b61446b858286016143eb565b9150509250929050565b60008060006060848603121561448e5761448d613eeb565b5b600061449c86828701614141565b93505060206144ad86828701614141565b92505060406144be8682870161408c565b9150509250925092565b6000602082840312156144de576144dd613eeb565b5b60006144ec84828501614141565b91505092915050565b6144fe81613f7a565b811461450957600080fd5b50565b60008135905061451b816144f5565b92915050565b60006020828403121561453757614536613eeb565b5b60006145458482850161450c565b91505092915050565b600080fd5b60008083601f84011261456957614568614196565b5b8235905067ffffffffffffffff8111156145865761458561454e565b5b6020830191508360208202830111156145a2576145a161437d565b5b9250929050565b600080602083850312156145c0576145bf613eeb565b5b600083013567ffffffffffffffff8111156145de576145dd613ef0565b5b6145ea85828601614553565b92509250509250929050565b60008083601f84011261460c5761460b614196565b5b8235905067ffffffffffffffff8111156146295761462861454e565b5b6020830191508360018202830111156146455761464461437d565b5b9250929050565b6000806020838503121561466357614662613eeb565b5b600083013567ffffffffffffffff81111561468157614680613ef0565b5b61468d858286016145f6565b92509250509250929050565b600063ffffffff82169050919050565b6146b281614699565b82525050565b600060a0820190506146cd60008301886146a9565b6146da60208301876146a9565b6146e76040830186614327565b6146f46060830185614327565b81810360808301526147068184614010565b90509695505050505050565b600060ff82169050919050565b61472881614712565b82525050565b6000606082019050614743600083018661471f565b6147506020830185614327565b61475d6040830184614100565b949350505050565b61476e81614712565b811461477957600080fd5b50565b60008135905061478b81614765565b92915050565b600080600080608085870312156147ab576147aa613eeb565b5b60006147b987828801614141565b94505060206147ca8782880161477c565b93505060406147db8782880161408c565b92505060606147ec8782880161408c565b91505092959194509250565b6000806040838503121561480f5761480e613eeb565b5b600061481d85828601614141565b925050602061482e8582860161450c565b9150509250929050565b61484181614699565b811461484c57600080fd5b50565b60008135905061485e81614838565b92915050565b600067ffffffffffffffff82111561487f5761487e6141a0565b5b61488882613fff565b9050602081019050919050565b60006148a86148a384614864565b614200565b9050828152602081018484840111156148c4576148c361419b565b5b6148cf84828561424c565b509392505050565b600082601f8301126148ec576148eb614196565b5b81356148fc848260208601614895565b91505092915050565b600080600080600060a0868803121561492157614920613eeb565b5b600061492f8882890161484f565b95505060206149408882890161408c565b94505060406149518882890161484f565b935050606086013567ffffffffffffffff81111561497257614971613ef0565b5b61497e888289016148d7565b925050608061498f8882890161408c565b9150509295509295909350565b600080600080608085870312156149b6576149b5613eeb565b5b60006149c487828801614141565b94505060206149d587828801614141565b93505060406149e68782880161408c565b925050606085013567ffffffffffffffff811115614a0757614a06613ef0565b5b614a138782880161429d565b91505092959194509250565b6000606082019050614a346000830186613f86565b614a416020830185614327565b614a4e6040830184614327565b949350505050565b600067ffffffffffffffff82169050919050565b614a7381614a56565b8114614a7e57600080fd5b50565b600081359050614a9081614a6a565b92915050565b6000819050919050565b614aa981614a96565b8114614ab457600080fd5b50565b600081359050614ac681614aa0565b92915050565b600061ffff82169050919050565b614ae381614acc565b8114614aee57600080fd5b50565b600081359050614b0081614ada565b92915050565b60008060008060808587031215614b2057614b1f613eeb565b5b6000614b2e87828801614a81565b9450506020614b3f87828801614ab7565b9350506040614b508782880161484f565b9250506060614b6187828801614af1565b91505092959194509250565b60008060408385031215614b8457614b83613eeb565b5b6000614b9285828601614141565b9250506020614ba385828601614141565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614bf457607f821691505b60208210811415614c0857614c07614bad565b5b50919050565b7f4552433732315073693a20617070726f76656420717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614c6a602f83613fbb565b9150614c7582614c0e565b604082019050919050565b60006020820190508181036000830152614c9981614c5d565b9050919050565b7f4552433732315073693a20617070726f76616c20746f2063757272656e74206f60008201527f776e657200000000000000000000000000000000000000000000000000000000602082015250565b6000614cfc602483613fbb565b9150614d0782614ca0565b604082019050919050565b60006020820190508181036000830152614d2b81614cef565b9050919050565b7f4552433732315073693a20617070726f76652063616c6c6572206973206e6f7460008201527f206f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000602082015250565b6000614d8e603b83613fbb565b9150614d9982614d32565b604082019050919050565b60006020820190508181036000830152614dbd81614d81565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614e2d8261406b565b9150614e388361406b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614e6d57614e6c614df3565b5b828201905092915050565b6000614e838261406b565b9150614e8e8361406b565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614ec757614ec6614df3565b5b828202905092915050565b6000604082019050614ee76000830185614100565b614ef46020830184614100565b9392505050565b7f4552433732315073693a207472616e736665722063616c6c6572206973206e6f60008201527f74206f776e6572206e6f7220617070726f766564000000000000000000000000602082015250565b6000614f57603483613fbb565b9150614f6282614efb565b604082019050919050565b60006020820190508181036000830152614f8681614f4a565b9050919050565b6000614f988261406b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614fcb57614fca614df3565b5b600182019050919050565b7f4552433732315073693a206f776e657220696e646578206f7574206f6620626f60008201527f756e647300000000000000000000000000000000000000000000000000000000602082015250565b6000615032602483613fbb565b915061503d82614fd6565b604082019050919050565b6000602082019050818103600083015261506181615025565b9050919050565b7f4552433732315073693a20676c6f62616c20696e646578206f7574206f66206260008201527f6f756e6473000000000000000000000000000000000000000000000000000000602082015250565b60006150c4602583613fbb565b91506150cf82615068565b604082019050919050565b600060208201905081810360008301526150f3816150b7565b9050919050565b7f4552433732315073693a2062616c616e636520717565727920666f722074686560008201527f207a65726f206164647265737300000000000000000000000000000000000000602082015250565b6000615156602d83613fbb565b9150615161826150fa565b604082019050919050565b6000602082019050818103600083015261518581615149565b9050919050565b60006151978261406b565b91506151a28361406b565b9250828210156151b5576151b4614df3565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4552433732315073693a20617070726f766520746f2063616c6c657200000000600082015250565b6000615225601c83613fbb565b9150615230826151ef565b602082019050919050565b6000602082019050818103600083015261525481615218565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006152958261406b565b91506152a08361406b565b9250826152b0576152af61525b565b5b828206905092915050565b600081905092915050565b50565b60006152d66000836152bb565b91506152e1826152c6565b600082019050919050565b60006152f7826152c9565b9150819050919050565b7f5472616e73666572206661696c65640000000000000000000000000000000000600082015250565b6000615337600f83613fbb565b915061534282615301565b602082019050919050565b600060208201905081810360008301526153668161532a565b9050919050565b600081905092915050565b600061538382613fb0565b61538d818561536d565b935061539d818560208601613fcc565b80840191505092915050565b60006153b58285615378565b91506153c18284615378565b91508190509392505050565b6153d681614a96565b82525050565b6153e581614a56565b82525050565b6153f481614acc565b82525050565b600060a08201905061540f60008301886153cd565b61541c60208301876153dc565b61542960408301866153eb565b61543660608301856146a9565b61544360808301846146a9565b9695505050505050565b60008151905061545c81614075565b92915050565b60006020828403121561547857615477613eeb565b5b60006154868482850161544d565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006154eb602683613fbb565b91506154f68261548f565b604082019050919050565b6000602082019050818103600083015261551a816154de565b9050919050565b7f19457468657265756d205369676e6564204d6573736167653a0a343000000000600082015250565b6000615557601c8361536d565b915061556282615521565b601c82019050919050565b6000819050919050565b600061559261558d615588846140ce565b61556d565b6140ce565b9050919050565b60006155a482615577565b9050919050565b60006155b682615599565b9050919050565b60008160601b9050919050565b60006155d5826155bd565b9050919050565b60006155e7826155ca565b9050919050565b6155ff6155fa826155ab565b6155dc565b82525050565b615616615611826140ee565b6155dc565b82525050565b60006156278261554a565b915061563382856155ee565b6014820191506156438284615605565b6014820191508190509392505050565b7f4552433732315073693a206f70657261746f7220717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006156af602f83613fbb565b91506156ba82615653565b604082019050919050565b600060208201905081810360008301526156de816156a2565b9050919050565b7f4552433732315073693a207472616e73666572206f6620746f6b656e2074686160008201527f74206973206e6f74206f776e0000000000000000000000000000000000000000602082015250565b6000615741602c83613fbb565b915061574c826156e5565b604082019050919050565b6000602082019050818103600083015261577081615734565b9050919050565b7f4552433732315073693a207472616e7366657220746f20746865207a65726f2060008201527f6164647265737300000000000000000000000000000000000000000000000000602082015250565b60006157d3602783613fbb565b91506157de82615777565b604082019050919050565b60006020820190508181036000830152615802816157c6565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061583f602083613fbb565b915061584a82615809565b602082019050919050565b6000602082019050818103600083015261586e81615832565b9050919050565b7f4552433732315073693a206f776e657220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006158d1602c83613fbb565b91506158dc82615875565b604082019050919050565b60006020820190508181036000830152615900816158c4565b9050919050565b7f4552433732315073693a207472616e7366657220746f206e6f6e20455243373260008201527f31526563656976657220696d706c656d656e7465720000000000000000000000602082015250565b6000615963603583613fbb565b915061596e82615907565b604082019050919050565b6000602082019050818103600083015261599281615956565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006159c082615999565b6159ca81856159a4565b93506159da818560208601613fcc565b6159e381613fff565b840191505092915050565b6000608082019050615a036000830187614100565b615a106020830186614100565b615a1d6040830185614327565b8181036060830152615a2f81846159b5565b905095945050505050565b600081519050615a4981613f21565b92915050565b600060208284031215615a6557615a64613eeb565b5b6000615a7384828501615a3a565b91505092915050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000615ab2601883613fbb565b9150615abd82615a7c565b602082019050919050565b60006020820190508181036000830152615ae181615aa5565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000615b1e601f83613fbb565b9150615b2982615ae8565b602082019050919050565b60006020820190508181036000830152615b4d81615b11565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615bb0602283613fbb565b9150615bbb82615b54565b604082019050919050565b60006020820190508181036000830152615bdf81615ba3565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615c42602283613fbb565b9150615c4d82615be6565b604082019050919050565b60006020820190508181036000830152615c7181615c35565b9050919050565b7f4552433732315073693a207175616e74697479206d757374206265206772656160008201527f7465722030000000000000000000000000000000000000000000000000000000602082015250565b6000615cd4602583613fbb565b9150615cdf82615c78565b604082019050919050565b60006020820190508181036000830152615d0381615cc7565b9050919050565b7f4552433732315073693a206d696e7420746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000615d66602383613fbb565b9150615d7182615d0a565b604082019050919050565b60006020820190508181036000830152615d9581615d59565b9050919050565b7f4269744d6170733a205468652073657420626974206265666f7265207468652060008201527f696e64657820646f65736e27742065786973742e000000000000000000000000602082015250565b6000615df8603483613fbb565b9150615e0382615d9c565b604082019050919050565b60006020820190508181036000830152615e2781615deb565b9050919050565b6000608082019050615e4360008301876153cd565b615e50602083018661471f565b615e5d60408301856153cd565b615e6a60608301846153cd565b9594505050505056fe0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8a26469706673582212209f32739657178e008e9e9ba67b1d9ad679ef42e4daa4f7119c24c957ac2abad764736f6c634300080b00330000000000000000000000000000000000000000000000000000000000000bb8000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909

Deployed Bytecode

0x6080604052600436106102885760003560e01c806370a082311161015a578063ac446002116100c1578063db0ca0b41161007a578063db0ca0b4146109da578063dc33e68114610a03578063e0c8628914610a40578063e985e9c514610a57578063f2fde38b14610a94578063f6eaffc814610abd57610288565b8063ac446002146108ca578063acb92943146108e1578063ae32ddae1461090a578063b88d4fde14610935578063be1caa611461095e578063c87b56dd1461099d57610288565b80638d298b53116101135780638d298b53146107bc5780638da5cb5b146107e557806395d89b4114610810578063a05048fb1461083b578063a22cb46514610864578063a574cea41461088d57610288565b806370a08231146106a6578063715018a6146106e35780637523ee5f146106fa57806379502c55146107235780638a19c8bc146107525780638af8198c1461077d57610288565b80632f745c59116101fe5780634d388a98116101b75780634d388a98146105745780634d50fd4d146105b15780634f6ccce7146105da578063525187c61461061757806355f804b3146106405780636352211e1461066957610288565b80632f745c5914610466578063375a069a146104a35780633bc91e28146104cc5780633f5e4741146104f557806342842e0e1461052057806345c0f5331461054957610288565b80630bd8d3b0116102505780630bd8d3b01461038657806315c8f106146103b157806318160ddd146103cd5780631fe543e3146103f857806323b872dd146104215780632db115441461044a57610288565b806301ffc9a71461028d57806302410f47146102ca57806306fdde03146102f5578063081812fc14610320578063095ea7b31461035d575b600080fd5b34801561029957600080fd5b506102b460048036038101906102af9190613f4d565b610afa565b6040516102c19190613f95565b60405180910390f35b3480156102d657600080fd5b506102df610c44565b6040516102ec9190613f95565b60405180910390f35b34801561030157600080fd5b5061030a610c57565b6040516103179190614049565b60405180910390f35b34801561032c57600080fd5b50610347600480360381019061034291906140a1565b610ce9565b604051610354919061410f565b60405180910390f35b34801561036957600080fd5b50610384600480360381019061037f9190614156565b610d6e565b005b34801561039257600080fd5b5061039b610e86565b6040516103a89190613f95565b60405180910390f35b6103cb60048036038101906103c691906142cb565b610e99565b005b3480156103d957600080fd5b506103e26111a0565b6040516103ef9190614336565b60405180910390f35b34801561040457600080fd5b5061041f600480360381019061041a9190614419565b6111aa565b005b34801561042d57600080fd5b5061044860048036038101906104439190614475565b61126a565b005b610464600480360381019061045f91906140a1565b6112ca565b005b34801561047257600080fd5b5061048d60048036038101906104889190614156565b6114d8565b60405161049a9190614336565b60405180910390f35b3480156104af57600080fd5b506104ca60048036038101906104c591906140a1565b6115ab565b005b3480156104d857600080fd5b506104f360048036038101906104ee91906140a1565b61162c565b005b34801561050157600080fd5b5061050a61163e565b6040516105179190613f95565b60405180910390f35b34801561052c57600080fd5b5061054760048036038101906105429190614475565b6116c4565b005b34801561055557600080fd5b5061055e6116e4565b60405161056b9190614336565b60405180910390f35b34801561058057600080fd5b5061059b600480360381019061059691906144c8565b611708565b6040516105a89190614336565b60405180910390f35b3480156105bd57600080fd5b506105d860048036038101906105d39190614521565b611720565b005b3480156105e657600080fd5b5061060160048036038101906105fc91906140a1565b611745565b60405161060e9190614336565b60405180910390f35b34801561062357600080fd5b5061063e600480360381019061063991906145a9565b6117e8565b005b34801561064c57600080fd5b506106676004803603810190610662919061464c565b611834565b005b34801561067557600080fd5b50610690600480360381019061068b91906140a1565b611855565b60405161069d919061410f565b60405180910390f35b3480156106b257600080fd5b506106cd60048036038101906106c891906144c8565b61186d565b6040516106da9190614336565b60405180910390f35b3480156106ef57600080fd5b506106f861195f565b005b34801561070657600080fd5b50610721600480360381019061071c91906140a1565b611973565b005b34801561072f57600080fd5b50610738611a2d565b6040516107499594939291906146b8565b60405180910390f35b34801561075e57600080fd5b50610767611af9565b6040516107749190614336565b60405180910390f35b34801561078957600080fd5b506107a4600480360381019061079f91906140a1565b611aff565b6040516107b39392919061472e565b60405180910390f35b3480156107c857600080fd5b506107e360048036038101906107de9190614156565b611b5c565b005b3480156107f157600080fd5b506107fa611c2e565b604051610807919061410f565b60405180910390f35b34801561081c57600080fd5b50610825611c58565b6040516108329190614049565b60405180910390f35b34801561084757600080fd5b50610862600480360381019061085d9190614791565b611cea565b005b34801561087057600080fd5b5061088b600480360381019061088691906147f8565b611da6565b005b34801561089957600080fd5b506108b460048036038101906108af91906140a1565b611f27565b6040516108c19190614336565b60405180910390f35b3480156108d657600080fd5b506108df611fc6565b005b3480156108ed57600080fd5b5061090860048036038101906109039190614905565b61207d565b005b34801561091657600080fd5b5061091f612102565b60405161092c9190613f95565b60405180910390f35b34801561094157600080fd5b5061095c6004803603810190610957919061499c565b612239565b005b34801561096a57600080fd5b50610985600480360381019061098091906140a1565b61229b565b60405161099493929190614a1f565b60405180910390f35b3480156109a957600080fd5b506109c460048036038101906109bf91906140a1565b6122fb565b6040516109d19190614049565b60405180910390f35b3480156109e657600080fd5b50610a0160048036038101906109fc9190614b06565b6123c7565b005b348015610a0f57600080fd5b50610a2a6004803603810190610a2591906144c8565b612474565b604051610a379190614336565b60405180910390f35b348015610a4c57600080fd5b50610a556124bd565b005b348015610a6357600080fd5b50610a7e6004803603810190610a799190614b6d565b6125ce565b604051610a8b9190613f95565b60405180910390f35b348015610aa057600080fd5b50610abb6004803603810190610ab691906144c8565b612662565b005b348015610ac957600080fd5b50610ae46004803603810190610adf91906140a1565b6126e6565b604051610af19190614336565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610bc557507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c2d57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c3d5750610c3c8261270a565b5b9050919050565b600760149054906101000a900460ff1681565b606060018054610c6690614bdc565b80601f0160208091040260200160405190810160405280929190818152602001828054610c9290614bdc565b8015610cdf5780601f10610cb457610100808354040283529160200191610cdf565b820191906000526020600020905b815481529060010190602001808311610cc257829003601f168201915b5050505050905090565b6000610cf482612774565b610d33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2a90614c80565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610d7982611855565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610dea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de190614d12565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610e09612782565b73ffffffffffffffffffffffffffffffffffffffff161480610e385750610e3781610e32612782565b6125ce565b5b610e77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6e90614da4565b60405180910390fd5b610e81838361278a565b505050565b600960009054906101000a900460ff1681565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610efe576040517f7df1f81700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610f0a3383612843565b9050610f14612102565b610f4a576040517fafb53c5400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a548114610f85576040517f212582c300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600081148015610fc05750600f8160028110610fa457610fa3614dc4565b5b6003020160000160009054906101000a900460ff1660ff168314155b15610ff7576040517ff87df8af00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600f816002811061100b5761100a614dc4565b5b6003020160000160009054906101000a900460ff1660ff168361102d33612474565b6110379190614e22565b111561106f576040517fb234809100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000bb8836110996111a0565b6110a39190614e22565b11156110db576040517f688ef65c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600f82600281106110f0576110ef614dc4565b5b60030201600101546111029190614e78565b34101561113b576040517fa733df5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461118a9190614e22565b9250508190555061119b33846129a6565b505050565b6000600454905090565b7f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e6990973ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461125c57337f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e699096040517f1cf993f4000000000000000000000000000000000000000000000000000000008152600401611253929190614ed2565b60405180910390fd5b61126682826129c4565b5050565b61127b611275612782565b82612ad1565b6112ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b190614f6d565b60405180910390fd5b6112c5838383612baf565b505050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461132f576040517f7df1f81700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61133761163e565b61136d576040517f4f1ddc5a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000bb8816113976111a0565b6113a19190614e22565b11156113d9576040517f688ef65c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b60020154816113e933612474565b6113f39190614e22565b111561142b576040517fb234809100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600b6001015461143c9190614e78565b341015611475576040517fa733df5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546114c49190614e22565b925050819055506114d533826129a6565b50565b60008060005b600454811015611569576114f181612774565b8015611530575061150181611855565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b1561155657838214156115475780925050506115a5565b818061155290614f8d565b9250505b808061156190614f8d565b9150506114de565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159c90615048565b60405180910390fd5b92915050565b6115b3612e32565b7f0000000000000000000000000000000000000000000000000000000000000bb8816115dd6111a0565b6115e79190614e22565b111561161f576040517f688ef65c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61162933826129a6565b50565b611634612e32565b80600a8190555050565b600080600b60000160049054906101000a900463ffffffff1663ffffffff161415801561167157506000600b6001015414155b80156116985750600b60000160009054906101000a900463ffffffff1663ffffffff164210155b80156116bf5750600b60000160049054906101000a900463ffffffff1663ffffffff164210155b905090565b6116df83838360405180602001604052806000815250612239565b505050565b7f0000000000000000000000000000000000000000000000000000000000000bb881565b60086020528060005260406000206000915090505481565b611728612e32565b80600960006101000a81548160ff02191690831515021790555050565b600061174f6111a0565b8210611790576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611787906150da565b60405180910390fd5b6000805b6004548110156117e0576117a781612774565b156117cd57838214156117be5780925050506117e3565b81806117c990614f8d565b9250505b80806117d890614f8d565b915050611794565b50505b919050565b600082829050905060005b8181101561182e5761181d84848381811061181157611810614dc4565b5b90506020020135612eb0565b8061182790614f8d565b90506117f3565b50505050565b61183c612e32565b8181600b6003019190611850929190613d6b565b505050565b6000806118618361301f565b50905080915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d59061516c565b60405180910390fd5b6000805b600454811015611955576118f581612774565b156119445761190381611855565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611943578161194090614f8d565b91505b5b8061194e90614f8d565b90506118e2565b5080915050919050565b611967612e32565b61197160006130b0565b565b61197b612e32565b6000601c60008381526020019081526020016000205414156119c9576040517fb2be96e300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601c600082815260200190815260200160002054426119e8919061518c565b601d60008381526020019081526020016000206000828254611a0a9190614e22565b925050819055506000601c60008381526020019081526020016000208190555050565b600b8060000160009054906101000a900463ffffffff16908060000160049054906101000a900463ffffffff1690806001015490806002015490806003018054611a7690614bdc565b80601f0160208091040260200160405190810160405280929190818152602001828054611aa290614bdc565b8015611aef5780601f10611ac457610100808354040283529160200191611aef565b820191906000526020600020905b815481529060010190602001808311611ad257829003601f168201915b5050505050905085565b600a5481565b600f8160028110611b0f57600080fd5b600302016000915090508060000160009054906101000a900460ff16908060010154908060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905083565b3373ffffffffffffffffffffffffffffffffffffffff16611b7c82611855565b73ffffffffffffffffffffffffffffffffffffffff1614611bc9576040517f781e583d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001601e60006101000a81548160ff02191690836001811115611bef57611bee6151c0565b5b0217905550611bff3383836116c4565b6000601e60006101000a81548160ff02191690836001811115611c2557611c246151c0565b5b02179055505050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060028054611c6790614bdc565b80601f0160208091040260200160405190810160405280929190818152602001828054611c9390614bdc565b8015611ce05780601f10611cb557610100808354040283529160200191611ce0565b820191906000526020600020905b815481529060010190602001808311611cc357829003601f168201915b5050505050905090565b611cf2612e32565b83600f8260028110611d0757611d06614dc4565b5b6003020160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600f8260028110611d6157611d60614dc4565b5b6003020160000160006101000a81548160ff021916908360ff16021790555081600f8260028110611d9557611d94614dc4565b5b600302016001018190555050505050565b611dae612782565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e139061523b565b60405180910390fd5b8060066000611e29612782565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611ed6612782565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611f1b9190613f95565b60405180910390a35050565b6000611f316111a0565b8210611f69576040517fe7cb657c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600760149054906101000a900460ff16611f8557819050611fc1565b7f0000000000000000000000000000000000000000000000000000000000000bb882601b54611fb49190614e22565b611fbe919061528a565b90505b919050565b611fce612e32565b60003373ffffffffffffffffffffffffffffffffffffffff1647604051611ff4906152ec565b60006040518083038185875af1925050503d8060008114612031576040519150601f19603f3d011682016040523d82523d6000602084013e612036565b606091505b505090508061207a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120719061534d565b60405180910390fd5b50565b612085612e32565b84600b60000160006101000a81548163ffffffff021916908363ffffffff16021790555083600b6001018190555082600b60000160046101000a81548163ffffffff021916908363ffffffff16021790555081600b60030190805190602001906120f0929190613df1565b5080600b600201819055505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff16600f6000600281106121305761212f614dc4565b5b6003020160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141580156121e55750600073ffffffffffffffffffffffffffffffffffffffff16600f6001600281106121a4576121a3614dc4565b5b6003020160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b801561220d57506000600b60000160009054906101000a900463ffffffff1663ffffffff1614155b80156122345750600b60000160009054906101000a900463ffffffff1663ffffffff164210155b905090565b61224a612244612782565b83612ad1565b612289576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228090614f6d565b60405180910390fd5b61229584848484613176565b50505050565b600080600080601c6000868152602001908152602001600020549050600081146122d2576001935080426122cf919061518c565b92505b601d600086815260200190815260200160002054836122f19190614e22565b9150509193909250565b606061230682612774565b61233c576040517fe7cb657c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600760149054906101000a900460ff16612386576123586131d4565b61236183613269565b6040516020016123729291906153a9565b6040516020818303038152906040526123c0565b61238e6131d4565b61239f61239a84611f27565b613269565b6040516020016123b09291906153a9565b6040516020818303038152906040525b9050919050565b6123cf612e32565b83601760000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550826017600101819055506001601760020160066101000a81548163ffffffff021916908363ffffffff16021790555081601760020160006101000a81548163ffffffff021916908363ffffffff16021790555080601760020160046101000a81548161ffff021916908361ffff16021790555050505050565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6124c5612e32565b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635d3b1d30601760010154601760000160009054906101000a900467ffffffffffffffff16601760020160049054906101000a900461ffff16601760020160009054906101000a900463ffffffff16601760020160069054906101000a900463ffffffff166040518663ffffffff1660e01b81526004016125839594939291906153fa565b6020604051808303816000875af11580156125a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125c69190615462565b601a81905550565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61266a612e32565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156126da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126d190615501565b60405180910390fd5b6126e3816130b0565b50565b601581815481106126f657600080fd5b906000526020600020016000915090505481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600060045482109050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166127fd83611855565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080612878308560405160200161285c92919061561c565b60405160208183030381529060405280519060200120846132b9565b9050600f60006002811061288f5761288e614dc4565b5b6003020160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156128f45760009150506129a0565b600f60016002811061290957612908614dc4565b5b6003020160020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561296e5760019150506129a0565b6040517f274ccf2700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b92915050565b6129c08282604051806020016040528060008152506132e0565b5050565b6001600760146101000a81548160ff02191690831515021790555080601590805190602001906129f5929190613e77565b5060006015600081548110612a0d57612a0c614dc4565b5b9060005260206000200154604051602001612a289190614336565b6040516020818303038152906040528051906020012060001c90507f0000000000000000000000000000000000000000000000000000000000000bb8811015612a9a577f0000000000000000000000000000000000000000000000000000000000000bb881612a979190614e22565b90505b7f0000000000000000000000000000000000000000000000000000000000000bb881612ac6919061528a565b601b81905550505050565b6000612adc82612774565b612b1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b12906156c5565b60405180910390fd5b6000612b2683611855565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612b9557508373ffffffffffffffffffffffffffffffffffffffff16612b7d84610ce9565b73ffffffffffffffffffffffffffffffffffffffff16145b80612ba65750612ba581856125ce565b5b91505092915050565b600080612bbb8361301f565b915091508473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612c2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c2490615757565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612c9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c94906157e9565b60405180910390fd5b612caa8585856001613344565b612cb560008461278a565b6000600184612cc49190614e22565b9050612cda81600061340990919063ffffffff16565b158015612ce8575060045481105b15612d5457856003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550612d5381600061346490919063ffffffff16565b5b846003600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818414612dc257612dc184600061346490919063ffffffff16565b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612e2a86868660016134c1565b505050505050565b612e3a612782565b73ffffffffffffffffffffffffffffffffffffffff16612e58611c2e565b73ffffffffffffffffffffffffffffffffffffffff1614612eae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ea590615855565b60405180910390fd5b565b612eb981611855565b73ffffffffffffffffffffffffffffffffffffffff16612ed7612782565b73ffffffffffffffffffffffffffffffffffffffff1614158015612f115750612f0f612f0282611855565b612f0a612782565b6125ce565b155b15612f48576040517fef076e2e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000601c60008381526020019081526020016000205490506000811415612fcc57600960009054906101000a900460ff16612faf576040517f4497a78000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b42601c60008481526020019081526020016000208190555061301b565b8042612fd8919061518c565b601d60008481526020019081526020016000206000828254612ffa9190614e22565b925050819055506000601c6000848152602001908152602001600020819055505b5050565b60008061302b83612774565b61306a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613061906158e7565b60405180910390fd5b613073836134c7565b90506003600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150915091565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b613181848484612baf565b61318f8484846001856134e4565b6131ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131c590615979565b60405180910390fd5b50505050565b6060600b60030180546131e690614bdc565b80601f016020809104026020016040519081016040528092919081815260200182805461321290614bdc565b801561325f5780601f106132345761010080835404028352916020019161325f565b820191906000526020600020905b81548152906001019060200180831161324257829003601f168201915b5050505050905090565b606060806040510190508060405280825b6001156132a557600183039250600a81066030018353600a81049050806132a0576132a5565b61327a565b508181036020830392508083525050919050565b60008060006132c885856136a7565b915091506132d5816136f9565b819250505092915050565b600060045490506132f184846138ce565b6132ff6000858386866134e4565b61333e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161333590615979565b60405180910390fd5b50505050565b6000829050600082826133579190614e22565b90505b80821015613401576000601c600084815260200190815260200160002054141580156133b9575060006001811115613395576133946151c0565b5b601e60009054906101000a900460ff1660018111156133b7576133b66151c0565b5b145b156133f0576040517fc34dcdb900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b816133fa90614f8d565b915061335a565b505050505050565b600080600883901c9050600060ff84167f8000000000000000000000000000000000000000000000000000000000000000901c9050600081866000016000858152602001908152602001600020541614159250505092915050565b6000600882901c9050600060ff83167f8000000000000000000000000000000000000000000000000000000000000000901c9050808460000160008481526020019081526020016000206000828254179250508190555050505050565b50505050565b60006134dd826000613aaf90919063ffffffff16565b9050919050565b60006135058573ffffffffffffffffffffffffffffffffffffffff16613bae565b15613699576001905060008490505b83856135209190614e22565b811015613693578573ffffffffffffffffffffffffffffffffffffffff1663150b7a0261354b612782565b8984876040518563ffffffff1660e01b815260040161356d94939291906159ee565b6020604051808303816000875af19250505080156135a957506040513d601f19601f820116820180604052508101906135a69190615a4f565b60015b61362c573d80600081146135d9576040519150601f19603f3d011682016040523d82523d6000602084013e6135de565b606091505b50600081511415613624576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161361b90615979565b60405180910390fd5b805181602001fd5b82801561367d575063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b925050808061368b90614f8d565b915050613514565b5061369e565b600190505b95945050505050565b6000806041835114156136e95760008060006020860151925060408601519150606086015160001a90506136dd87828585613bd1565b945094505050506136f2565b60006002915091505b9250929050565b6000600481111561370d5761370c6151c0565b5b8160048111156137205761371f6151c0565b5b141561372b576138cb565b6001600481111561373f5761373e6151c0565b5b816004811115613752576137516151c0565b5b1415613793576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161378a90615ac8565b60405180910390fd5b600260048111156137a7576137a66151c0565b5b8160048111156137ba576137b96151c0565b5b14156137fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137f290615b34565b60405180910390fd5b6003600481111561380f5761380e6151c0565b5b816004811115613822576138216151c0565b5b1415613863576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161385a90615bc6565b60405180910390fd5b600480811115613876576138756151c0565b5b816004811115613889576138886151c0565b5b14156138ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138c190615c58565b60405180910390fd5b5b50565b6000600454905060008211613918576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161390f90615cea565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613988576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161397f90615d7c565b60405180910390fd5b6139956000848385613344565b81600460008282546139a79190614e22565b92505081905550826003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550613a1481600061346490919063ffffffff16565b613a2160008483856134c1565b60008190505b8282613a339190614e22565b811015613aa957808473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48080613aa190614f8d565b915050613a27565b50505050565b600080600883901c9050600060ff8416905060008560000160008481526020019081526020016000205490508160ff1881901c90506000811115613b0b57613af681613cde565b60ff168203600884901b179350505050613ba8565b5b600115613ba45760008311613b56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b4d90615e0e565b60405180910390fd5b8280600190039350508560000160008481526020019081526020016000205490506000811115613b9f57613b8981613cde565b60ff0360ff16600884901b179350505050613ba8565b613b0c565b5050505b92915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613c0c576000600391509150613cd5565b601b8560ff1614158015613c245750601c8560ff1614155b15613c36576000600491509150613cd5565b600060018787878760405160008152602001604052604051613c5b9493929190615e2e565b6020604051602081039080840390855afa158015613c7d573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613ccc57600060019250925050613cd5565b80600092509250505b94509492505050565b60006040518061012001604052806101008152602001615e74610100913960f87e818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff613d2785613d50565b02901c81518110613d3b57613d3a614dc4565b5b602001015160f81c60f81b60f81c9050919050565b6000808211613d5e57600080fd5b8160000382169050919050565b828054613d7790614bdc565b90600052602060002090601f016020900481019282613d995760008555613de0565b82601f10613db257803560ff1916838001178555613de0565b82800160010185558215613de0579182015b82811115613ddf578235825591602001919060010190613dc4565b5b509050613ded9190613ec4565b5090565b828054613dfd90614bdc565b90600052602060002090601f016020900481019282613e1f5760008555613e66565b82601f10613e3857805160ff1916838001178555613e66565b82800160010185558215613e66579182015b82811115613e65578251825591602001919060010190613e4a565b5b509050613e739190613ec4565b5090565b828054828255906000526020600020908101928215613eb3579160200282015b82811115613eb2578251825591602001919060010190613e97565b5b509050613ec09190613ec4565b5090565b5b80821115613edd576000816000905550600101613ec5565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613f2a81613ef5565b8114613f3557600080fd5b50565b600081359050613f4781613f21565b92915050565b600060208284031215613f6357613f62613eeb565b5b6000613f7184828501613f38565b91505092915050565b60008115159050919050565b613f8f81613f7a565b82525050565b6000602082019050613faa6000830184613f86565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613fea578082015181840152602081019050613fcf565b83811115613ff9576000848401525b50505050565b6000601f19601f8301169050919050565b600061401b82613fb0565b6140258185613fbb565b9350614035818560208601613fcc565b61403e81613fff565b840191505092915050565b600060208201905081810360008301526140638184614010565b905092915050565b6000819050919050565b61407e8161406b565b811461408957600080fd5b50565b60008135905061409b81614075565b92915050565b6000602082840312156140b7576140b6613eeb565b5b60006140c58482850161408c565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006140f9826140ce565b9050919050565b614109816140ee565b82525050565b60006020820190506141246000830184614100565b92915050565b614133816140ee565b811461413e57600080fd5b50565b6000813590506141508161412a565b92915050565b6000806040838503121561416d5761416c613eeb565b5b600061417b85828601614141565b925050602061418c8582860161408c565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6141d882613fff565b810181811067ffffffffffffffff821117156141f7576141f66141a0565b5b80604052505050565b600061420a613ee1565b905061421682826141cf565b919050565b600067ffffffffffffffff821115614236576142356141a0565b5b61423f82613fff565b9050602081019050919050565b82818337600083830152505050565b600061426e6142698461421b565b614200565b90508281526020810184848401111561428a5761428961419b565b5b61429584828561424c565b509392505050565b600082601f8301126142b2576142b1614196565b5b81356142c284826020860161425b565b91505092915050565b600080604083850312156142e2576142e1613eeb565b5b60006142f08582860161408c565b925050602083013567ffffffffffffffff81111561431157614310613ef0565b5b61431d8582860161429d565b9150509250929050565b6143308161406b565b82525050565b600060208201905061434b6000830184614327565b92915050565b600067ffffffffffffffff82111561436c5761436b6141a0565b5b602082029050602081019050919050565b600080fd5b600061439561439084614351565b614200565b905080838252602082019050602084028301858111156143b8576143b761437d565b5b835b818110156143e157806143cd888261408c565b8452602084019350506020810190506143ba565b5050509392505050565b600082601f830112614400576143ff614196565b5b8135614410848260208601614382565b91505092915050565b600080604083850312156144305761442f613eeb565b5b600061443e8582860161408c565b925050602083013567ffffffffffffffff81111561445f5761445e613ef0565b5b61446b858286016143eb565b9150509250929050565b60008060006060848603121561448e5761448d613eeb565b5b600061449c86828701614141565b93505060206144ad86828701614141565b92505060406144be8682870161408c565b9150509250925092565b6000602082840312156144de576144dd613eeb565b5b60006144ec84828501614141565b91505092915050565b6144fe81613f7a565b811461450957600080fd5b50565b60008135905061451b816144f5565b92915050565b60006020828403121561453757614536613eeb565b5b60006145458482850161450c565b91505092915050565b600080fd5b60008083601f84011261456957614568614196565b5b8235905067ffffffffffffffff8111156145865761458561454e565b5b6020830191508360208202830111156145a2576145a161437d565b5b9250929050565b600080602083850312156145c0576145bf613eeb565b5b600083013567ffffffffffffffff8111156145de576145dd613ef0565b5b6145ea85828601614553565b92509250509250929050565b60008083601f84011261460c5761460b614196565b5b8235905067ffffffffffffffff8111156146295761462861454e565b5b6020830191508360018202830111156146455761464461437d565b5b9250929050565b6000806020838503121561466357614662613eeb565b5b600083013567ffffffffffffffff81111561468157614680613ef0565b5b61468d858286016145f6565b92509250509250929050565b600063ffffffff82169050919050565b6146b281614699565b82525050565b600060a0820190506146cd60008301886146a9565b6146da60208301876146a9565b6146e76040830186614327565b6146f46060830185614327565b81810360808301526147068184614010565b90509695505050505050565b600060ff82169050919050565b61472881614712565b82525050565b6000606082019050614743600083018661471f565b6147506020830185614327565b61475d6040830184614100565b949350505050565b61476e81614712565b811461477957600080fd5b50565b60008135905061478b81614765565b92915050565b600080600080608085870312156147ab576147aa613eeb565b5b60006147b987828801614141565b94505060206147ca8782880161477c565b93505060406147db8782880161408c565b92505060606147ec8782880161408c565b91505092959194509250565b6000806040838503121561480f5761480e613eeb565b5b600061481d85828601614141565b925050602061482e8582860161450c565b9150509250929050565b61484181614699565b811461484c57600080fd5b50565b60008135905061485e81614838565b92915050565b600067ffffffffffffffff82111561487f5761487e6141a0565b5b61488882613fff565b9050602081019050919050565b60006148a86148a384614864565b614200565b9050828152602081018484840111156148c4576148c361419b565b5b6148cf84828561424c565b509392505050565b600082601f8301126148ec576148eb614196565b5b81356148fc848260208601614895565b91505092915050565b600080600080600060a0868803121561492157614920613eeb565b5b600061492f8882890161484f565b95505060206149408882890161408c565b94505060406149518882890161484f565b935050606086013567ffffffffffffffff81111561497257614971613ef0565b5b61497e888289016148d7565b925050608061498f8882890161408c565b9150509295509295909350565b600080600080608085870312156149b6576149b5613eeb565b5b60006149c487828801614141565b94505060206149d587828801614141565b93505060406149e68782880161408c565b925050606085013567ffffffffffffffff811115614a0757614a06613ef0565b5b614a138782880161429d565b91505092959194509250565b6000606082019050614a346000830186613f86565b614a416020830185614327565b614a4e6040830184614327565b949350505050565b600067ffffffffffffffff82169050919050565b614a7381614a56565b8114614a7e57600080fd5b50565b600081359050614a9081614a6a565b92915050565b6000819050919050565b614aa981614a96565b8114614ab457600080fd5b50565b600081359050614ac681614aa0565b92915050565b600061ffff82169050919050565b614ae381614acc565b8114614aee57600080fd5b50565b600081359050614b0081614ada565b92915050565b60008060008060808587031215614b2057614b1f613eeb565b5b6000614b2e87828801614a81565b9450506020614b3f87828801614ab7565b9350506040614b508782880161484f565b9250506060614b6187828801614af1565b91505092959194509250565b60008060408385031215614b8457614b83613eeb565b5b6000614b9285828601614141565b9250506020614ba385828601614141565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614bf457607f821691505b60208210811415614c0857614c07614bad565b5b50919050565b7f4552433732315073693a20617070726f76656420717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614c6a602f83613fbb565b9150614c7582614c0e565b604082019050919050565b60006020820190508181036000830152614c9981614c5d565b9050919050565b7f4552433732315073693a20617070726f76616c20746f2063757272656e74206f60008201527f776e657200000000000000000000000000000000000000000000000000000000602082015250565b6000614cfc602483613fbb565b9150614d0782614ca0565b604082019050919050565b60006020820190508181036000830152614d2b81614cef565b9050919050565b7f4552433732315073693a20617070726f76652063616c6c6572206973206e6f7460008201527f206f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000602082015250565b6000614d8e603b83613fbb565b9150614d9982614d32565b604082019050919050565b60006020820190508181036000830152614dbd81614d81565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614e2d8261406b565b9150614e388361406b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614e6d57614e6c614df3565b5b828201905092915050565b6000614e838261406b565b9150614e8e8361406b565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614ec757614ec6614df3565b5b828202905092915050565b6000604082019050614ee76000830185614100565b614ef46020830184614100565b9392505050565b7f4552433732315073693a207472616e736665722063616c6c6572206973206e6f60008201527f74206f776e6572206e6f7220617070726f766564000000000000000000000000602082015250565b6000614f57603483613fbb565b9150614f6282614efb565b604082019050919050565b60006020820190508181036000830152614f8681614f4a565b9050919050565b6000614f988261406b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614fcb57614fca614df3565b5b600182019050919050565b7f4552433732315073693a206f776e657220696e646578206f7574206f6620626f60008201527f756e647300000000000000000000000000000000000000000000000000000000602082015250565b6000615032602483613fbb565b915061503d82614fd6565b604082019050919050565b6000602082019050818103600083015261506181615025565b9050919050565b7f4552433732315073693a20676c6f62616c20696e646578206f7574206f66206260008201527f6f756e6473000000000000000000000000000000000000000000000000000000602082015250565b60006150c4602583613fbb565b91506150cf82615068565b604082019050919050565b600060208201905081810360008301526150f3816150b7565b9050919050565b7f4552433732315073693a2062616c616e636520717565727920666f722074686560008201527f207a65726f206164647265737300000000000000000000000000000000000000602082015250565b6000615156602d83613fbb565b9150615161826150fa565b604082019050919050565b6000602082019050818103600083015261518581615149565b9050919050565b60006151978261406b565b91506151a28361406b565b9250828210156151b5576151b4614df3565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4552433732315073693a20617070726f766520746f2063616c6c657200000000600082015250565b6000615225601c83613fbb565b9150615230826151ef565b602082019050919050565b6000602082019050818103600083015261525481615218565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006152958261406b565b91506152a08361406b565b9250826152b0576152af61525b565b5b828206905092915050565b600081905092915050565b50565b60006152d66000836152bb565b91506152e1826152c6565b600082019050919050565b60006152f7826152c9565b9150819050919050565b7f5472616e73666572206661696c65640000000000000000000000000000000000600082015250565b6000615337600f83613fbb565b915061534282615301565b602082019050919050565b600060208201905081810360008301526153668161532a565b9050919050565b600081905092915050565b600061538382613fb0565b61538d818561536d565b935061539d818560208601613fcc565b80840191505092915050565b60006153b58285615378565b91506153c18284615378565b91508190509392505050565b6153d681614a96565b82525050565b6153e581614a56565b82525050565b6153f481614acc565b82525050565b600060a08201905061540f60008301886153cd565b61541c60208301876153dc565b61542960408301866153eb565b61543660608301856146a9565b61544360808301846146a9565b9695505050505050565b60008151905061545c81614075565b92915050565b60006020828403121561547857615477613eeb565b5b60006154868482850161544d565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006154eb602683613fbb565b91506154f68261548f565b604082019050919050565b6000602082019050818103600083015261551a816154de565b9050919050565b7f19457468657265756d205369676e6564204d6573736167653a0a343000000000600082015250565b6000615557601c8361536d565b915061556282615521565b601c82019050919050565b6000819050919050565b600061559261558d615588846140ce565b61556d565b6140ce565b9050919050565b60006155a482615577565b9050919050565b60006155b682615599565b9050919050565b60008160601b9050919050565b60006155d5826155bd565b9050919050565b60006155e7826155ca565b9050919050565b6155ff6155fa826155ab565b6155dc565b82525050565b615616615611826140ee565b6155dc565b82525050565b60006156278261554a565b915061563382856155ee565b6014820191506156438284615605565b6014820191508190509392505050565b7f4552433732315073693a206f70657261746f7220717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006156af602f83613fbb565b91506156ba82615653565b604082019050919050565b600060208201905081810360008301526156de816156a2565b9050919050565b7f4552433732315073693a207472616e73666572206f6620746f6b656e2074686160008201527f74206973206e6f74206f776e0000000000000000000000000000000000000000602082015250565b6000615741602c83613fbb565b915061574c826156e5565b604082019050919050565b6000602082019050818103600083015261577081615734565b9050919050565b7f4552433732315073693a207472616e7366657220746f20746865207a65726f2060008201527f6164647265737300000000000000000000000000000000000000000000000000602082015250565b60006157d3602783613fbb565b91506157de82615777565b604082019050919050565b60006020820190508181036000830152615802816157c6565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061583f602083613fbb565b915061584a82615809565b602082019050919050565b6000602082019050818103600083015261586e81615832565b9050919050565b7f4552433732315073693a206f776e657220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006158d1602c83613fbb565b91506158dc82615875565b604082019050919050565b60006020820190508181036000830152615900816158c4565b9050919050565b7f4552433732315073693a207472616e7366657220746f206e6f6e20455243373260008201527f31526563656976657220696d706c656d656e7465720000000000000000000000602082015250565b6000615963603583613fbb565b915061596e82615907565b604082019050919050565b6000602082019050818103600083015261599281615956565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006159c082615999565b6159ca81856159a4565b93506159da818560208601613fcc565b6159e381613fff565b840191505092915050565b6000608082019050615a036000830187614100565b615a106020830186614100565b615a1d6040830185614327565b8181036060830152615a2f81846159b5565b905095945050505050565b600081519050615a4981613f21565b92915050565b600060208284031215615a6557615a64613eeb565b5b6000615a7384828501615a3a565b91505092915050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000615ab2601883613fbb565b9150615abd82615a7c565b602082019050919050565b60006020820190508181036000830152615ae181615aa5565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000615b1e601f83613fbb565b9150615b2982615ae8565b602082019050919050565b60006020820190508181036000830152615b4d81615b11565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615bb0602283613fbb565b9150615bbb82615b54565b604082019050919050565b60006020820190508181036000830152615bdf81615ba3565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615c42602283613fbb565b9150615c4d82615be6565b604082019050919050565b60006020820190508181036000830152615c7181615c35565b9050919050565b7f4552433732315073693a207175616e74697479206d757374206265206772656160008201527f7465722030000000000000000000000000000000000000000000000000000000602082015250565b6000615cd4602583613fbb565b9150615cdf82615c78565b604082019050919050565b60006020820190508181036000830152615d0381615cc7565b9050919050565b7f4552433732315073693a206d696e7420746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000615d66602383613fbb565b9150615d7182615d0a565b604082019050919050565b60006020820190508181036000830152615d9581615d59565b9050919050565b7f4269744d6170733a205468652073657420626974206265666f7265207468652060008201527f696e64657820646f65736e27742065786973742e000000000000000000000000602082015250565b6000615df8603483613fbb565b9150615e0382615d9c565b604082019050919050565b60006020820190508181036000830152615e2781615deb565b9050919050565b6000608082019050615e4360008301876153cd565b615e50602083018661471f565b615e5d60408301856153cd565b615e6a60608301846153cd565b9594505050505056fe0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8a26469706673582212209f32739657178e008e9e9ba67b1d9ad679ef42e4daa4f7119c24c957ac2abad764736f6c634300080b0033

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

0000000000000000000000000000000000000000000000000000000000000bb8000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909

-----Decoded View---------------
Arg [0] : collectionSize_ (uint256): 3000
Arg [1] : vrfCoordinator (address): 0x271682DEB8C4E0901D1a1550aD2e64D568E69909

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000bb8
Arg [1] : 000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909


Loading...
Loading
Loading...
Loading
[ 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.