ETH Price: $3,481.96 (+1.97%)

Token

Dead or Alive (DOA)
 

Overview

Max Total Supply

1,109 DOA

Holders

406

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 DOA
0x9b5f981B45B42dC748149DF982AdedA4038d55Ab
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
DeadOrAlive

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : DeadOrAlive.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.16;

import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";

contract DeadOrAlive is ERC721A, Ownable, PaymentSplitter {

    using ECDSA for bytes32;

    // Settings
    string public baseURI;
    uint256 private _teamLength;
    uint256 constant public MAX_SUPPLY = 5555;

    // Public settings
    uint256 constant public MAX_MINT_PUBLIC = 3;
    uint256 public mintPricePublic = 0.005 ether;   
    mapping(address => uint256) private _mintedAmountPublic;

    // Whitelist settings
    uint256 constant public MAX_MINT_WHITELIST = 2;
    uint256 constant public WHITELIST_SUPPLY = 1889;
    uint256 public mintPriceWhitelist = 0.002 ether;
    address private _signerAddressWhitelist;
    mapping(address => uint256) private _mintedAmountWhitelist;

    // VIP settings
    uint256 constant public MAX_MINT_VIP = 1;
    uint256 constant public VIP_SUPPLY = 111;
    address private _signerAddressVip;
    mapping(address => uint256) private _mintedAmountVip;

    // Team settings
    bool private teamSupplyMinted = false;
    uint256 public teamSupply = 15;

    // Sale config
    enum MintStatus {
        CLOSED,
        VIP,
        WHITELIST,
        PUBLIC
    }
    MintStatus public mintStatus = MintStatus.CLOSED;

    constructor(
        string memory _initialBaseURI,
        address signerAddressWhitelist_,
        address signerAddressVip_,
        address[] memory payments,
        uint256[] memory shares
    ) 
        ERC721A("Dead or Alive", "DOA")
        PaymentSplitter(payments, shares)
    {
        baseURI = _initialBaseURI;
        _signerAddressWhitelist = signerAddressWhitelist_;
        _signerAddressVip = signerAddressVip_;
        _teamLength = payments.length;

        // Developer mint during smart contract creation
        _safeMint(msg.sender, 1);
    }

    modifier mintCompliance(uint256 amount) {
        require(tx.origin == msg.sender, "Only humans are allowed to mint!");
        require(amount > 0, "Can't mint zero!");
        require(totalSupply() + amount <= MAX_SUPPLY, "There are no more NFTs available!");
        _;
    }

    // Metadata
    function setBaseURI(string memory _uri) external onlyOwner {
        baseURI = _uri;
    }

    function _baseURI() internal view virtual override returns (string memory) {
        return baseURI;
    }

    function _startTokenId() internal view virtual override returns (uint256) {
        return 1;
    }

    // Public metadata
    function setMintPricePublic(uint256 _newMintPricePublic) external onlyOwner {
        mintPricePublic = _newMintPricePublic;
    }

    // Whitelist metadata
    function setMintPriceWhitelist(uint256 _newMintPriceWhitelist) external onlyOwner {
        mintPriceWhitelist = _newMintPriceWhitelist;
    }

    function setSignerAddressWhitelist(address _newSignerAddressWhitelist) external onlyOwner {
        _signerAddressWhitelist = _newSignerAddressWhitelist;
    }

    // VIP metadata
    function setSignerAddressVip(address _newSignerAddressVip) external onlyOwner {
        _signerAddressVip = _newSignerAddressVip;
    }

    // Team metadata
    function setTeamSupply(uint256 _newTeamSupply) external onlyOwner {
        teamSupply = _newTeamSupply;
    }

    // Sale metadata
    function setMintStatus(uint256 _status) external onlyOwner {
        mintStatus = MintStatus(_status);
    }

    // Withdraw funds
    function releaseAll() external onlyOwner {
        for(uint i = 0; i < _teamLength; i++) {
            release(payable(payee(i)));
        }
    }

    // Mint
    function mintPublic(uint256 amount) external payable mintCompliance(amount) {
        require(mintStatus == MintStatus.PUBLIC, "Public sale is inactive!");
        require(_mintedAmountPublic[msg.sender] + amount <= MAX_MINT_PUBLIC, "Can't mint that many over public!");
        require(msg.value >= mintPricePublic * amount, "The ether value sent is not correct!");
        require(totalSupply() + amount <= MAX_SUPPLY, "Public sale is sold out!");
  
        _mintedAmountPublic[msg.sender] += amount;
        _safeMint(msg.sender, amount);
    }

    function mintWhitelist(uint256 amount, bytes calldata signature) external payable mintCompliance(amount) {
        require(mintStatus == MintStatus.WHITELIST, "Whitelist sale is inactive!");
        require(_mintedAmountWhitelist[msg.sender] + amount <= MAX_MINT_WHITELIST, "Can't mint that many over whitelist!");
        require(msg.value >= mintPriceWhitelist * amount, "The ether value sent is not correct!");
        require(totalSupply() + amount <= WHITELIST_SUPPLY + VIP_SUPPLY, "Whitelist sale is sold out!");

        require(_signerAddressWhitelist == keccak256(
            abi.encodePacked(
                "\x19Ethereum Signed Message:\n32",
                bytes32(uint256(uint160(msg.sender)))
            )
        ).recover(signature), "Not on whitelist!");

        _mintedAmountWhitelist[msg.sender] += amount;
        _safeMint(msg.sender, amount);
    }

    function mintVip(uint256 amount, bytes calldata signature) external mintCompliance(amount) {
        require(mintStatus == MintStatus.VIP, "VIP sale is inactive!");
        require(_mintedAmountVip[msg.sender] + amount <= MAX_MINT_VIP, "Can't mint that many over VIP!");
        require(totalSupply() + amount <= VIP_SUPPLY, "VIP sale is sold out!");

        require(_signerAddressVip == keccak256(
            abi.encodePacked(
                "\x19Ethereum Signed Message:\n32",
                bytes32(uint256(uint160(msg.sender)))
            )
        ).recover(signature), "Not a VIP!");

        _mintedAmountVip[msg.sender] += amount;
        _safeMint(msg.sender, amount);
    }

    function mintTeam(address _recipient) external mintCompliance(teamSupply) onlyOwner {
        require(!teamSupplyMinted, "The team supply was already minted!");
            
        _safeMint(_recipient, teamSupply);

        teamSupplyMinted = true;
    }
}

File 2 of 13 : PaymentSplitter.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (finance/PaymentSplitter.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/utils/SafeERC20.sol";
import "../utils/Address.sol";
import "../utils/Context.sol";

/**
 * @title PaymentSplitter
 * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
 * that the Ether will be split in this way, since it is handled transparently by the contract.
 *
 * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
 * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
 * an amount proportional to the percentage of total shares they were assigned. The distribution of shares is set at the
 * time of contract deployment and can't be updated thereafter.
 *
 * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
 * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
 * function.
 *
 * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and
 * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you
 * to run tests before sending real value to this contract.
 */
contract PaymentSplitter is Context {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);
    event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount);
    event PaymentReceived(address from, uint256 amount);

    uint256 private _totalShares;
    uint256 private _totalReleased;

    mapping(address => uint256) private _shares;
    mapping(address => uint256) private _released;
    address[] private _payees;

    mapping(IERC20 => uint256) private _erc20TotalReleased;
    mapping(IERC20 => mapping(address => uint256)) private _erc20Released;

    /**
     * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at
     * the matching position in the `shares` array.
     *
     * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
     * duplicates in `payees`.
     */
    constructor(address[] memory payees, uint256[] memory shares_) payable {
        require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch");
        require(payees.length > 0, "PaymentSplitter: no payees");

        for (uint256 i = 0; i < payees.length; i++) {
            _addPayee(payees[i], shares_[i]);
        }
    }

    /**
     * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully
     * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the
     * reliability of the events, and not the actual splitting of Ether.
     *
     * To learn more about this see the Solidity documentation for
     * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback
     * functions].
     */
    receive() external payable virtual {
        emit PaymentReceived(_msgSender(), msg.value);
    }

    /**
     * @dev Getter for the total shares held by payees.
     */
    function totalShares() public view returns (uint256) {
        return _totalShares;
    }

    /**
     * @dev Getter for the total amount of Ether already released.
     */
    function totalReleased() public view returns (uint256) {
        return _totalReleased;
    }

    /**
     * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20
     * contract.
     */
    function totalReleased(IERC20 token) public view returns (uint256) {
        return _erc20TotalReleased[token];
    }

    /**
     * @dev Getter for the amount of shares held by an account.
     */
    function shares(address account) public view returns (uint256) {
        return _shares[account];
    }

    /**
     * @dev Getter for the amount of Ether already released to a payee.
     */
    function released(address account) public view returns (uint256) {
        return _released[account];
    }

    /**
     * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an
     * IERC20 contract.
     */
    function released(IERC20 token, address account) public view returns (uint256) {
        return _erc20Released[token][account];
    }

    /**
     * @dev Getter for the address of the payee number `index`.
     */
    function payee(uint256 index) public view returns (address) {
        return _payees[index];
    }

    /**
     * @dev Getter for the amount of payee's releasable Ether.
     */
    function releasable(address account) public view returns (uint256) {
        uint256 totalReceived = address(this).balance + totalReleased();
        return _pendingPayment(account, totalReceived, released(account));
    }

    /**
     * @dev Getter for the amount of payee's releasable `token` tokens. `token` should be the address of an
     * IERC20 contract.
     */
    function releasable(IERC20 token, address account) public view returns (uint256) {
        uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token);
        return _pendingPayment(account, totalReceived, released(token, account));
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
     * total shares and their previous withdrawals.
     */
    function release(address payable account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 payment = releasable(account);

        require(payment != 0, "PaymentSplitter: account is not due payment");

        // _totalReleased is the sum of all values in _released.
        // If "_totalReleased += payment" does not overflow, then "_released[account] += payment" cannot overflow.
        _totalReleased += payment;
        unchecked {
            _released[account] += payment;
        }

        Address.sendValue(account, payment);
        emit PaymentReleased(account, payment);
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their
     * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20
     * contract.
     */
    function release(IERC20 token, address account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 payment = releasable(token, account);

        require(payment != 0, "PaymentSplitter: account is not due payment");

        // _erc20TotalReleased[token] is the sum of all values in _erc20Released[token].
        // If "_erc20TotalReleased[token] += payment" does not overflow, then "_erc20Released[token][account] += payment"
        // cannot overflow.
        _erc20TotalReleased[token] += payment;
        unchecked {
            _erc20Released[token][account] += payment;
        }

        SafeERC20.safeTransfer(token, account, payment);
        emit ERC20PaymentReleased(token, account, payment);
    }

    /**
     * @dev internal logic for computing the pending payment of an `account` given the token historical balances and
     * already released amounts.
     */
    function _pendingPayment(
        address account,
        uint256 totalReceived,
        uint256 alreadyReleased
    ) private view returns (uint256) {
        return (totalReceived * _shares[account]) / _totalShares - alreadyReleased;
    }

    /**
     * @dev Add a new payee to the contract.
     * @param account The address of the payee to add.
     * @param shares_ The number of shares owned by the payee.
     */
    function _addPayee(address account, uint256 shares_) private {
        require(account != address(0), "PaymentSplitter: account is the zero address");
        require(shares_ > 0, "PaymentSplitter: shares are 0");
        require(_shares[account] == 0, "PaymentSplitter: account already has shares");

        _payees.push(account);
        _shares[account] = shares_;
        _totalShares = _totalShares + shares_;
        emit PayeeAdded(account, shares_);
    }
}

File 3 of 13 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (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 // Deprecated in v4.8
    }

    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");
        }
    }

    /**
     * @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 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 13 : 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 5 of 13 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @dev Interface of ERC721 token receiver.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================

    // Mask of an entry in packed address data.
    uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant _BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant _BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant _BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant _BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant _BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The bit position of `extraData` in packed ownership.
    uint256 private constant _BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with {_mintERC2309}.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID to be minted.
    uint256 private _currentIndex;

    // The number of tokens burned.
    uint256 private _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See {_packedOwnershipOf} implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

    // Mapping from token ID to approved address.
    mapping(uint256 => TokenApprovalRef) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    // =============================================================
    //                          CONSTRUCTOR
    // =============================================================

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

    /**
     * @dev Returns the starting token ID.
     * To change the starting token ID, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view virtual returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * @dev Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view virtual returns (uint256) {
        // Counter underflow is impossible as `_currentIndex` does not decrement,
        // and it is initialized to `_startTokenId()`.
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view virtual returns (uint256) {
        return _burnCounter;
    }

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return uint64(_packedAddressData[owner] >> _BITPOS_AUX);
    }

    /**
     * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal virtual {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes
        // of the XOR of all function selectors in the interface.
        // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
        // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

    /**
     * @dev Returns the token collection name.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        string memory baseURI = _baseURI();
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : '';
    }

    /**
     * @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, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @dev Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around over time.
     */
    function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal virtual {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & _BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an initialized ownership slot
                        // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                        // before an unintialized ownership slot
                        // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                        // Hence, `curr` will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed will be zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
        ownership.burned = packed & _BITMASK_BURNED != 0;
        ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
            result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

    /**
     * @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) public payable virtual override {
        address owner = ownerOf(tokenId);

        if (_msgSenderERC721A() != owner)
            if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                revert ApprovalCallerNotOwnerNorApproved();
            }

        _tokenApprovals[tokenId].value = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @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) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

    /**
     * @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. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
     */
    function _isSenderApprovedOrOwner(
        address approvedAddress,
        address owner,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, _BITMASK_ADDRESS)
            // `msgSender == owner || msgSender == approvedAddress`.
            result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) public payable virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

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

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @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 memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token IDs
     * are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * `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`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    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.
     * And also called after one token has been burned.
     *
     * `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` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * `from` - Previous owner of the given token ID.
     * `to` - Target address that will receive the token.
     * `tokenId` - Token ID to be transferred.
     * `_data` - Optional data to send along with the call.
     *
     * Returns whether the call correctly returned the expected magic value.
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _mint(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            // The duplicated `log4` removes an extra check and reduces stack juggling.
            // The assembly, together with the surrounding Solidity code, have been
            // delicately arranged to nudge the compiler into producing optimized opcodes.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                // The `iszero(eq(,))` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
                // The compiler will optimize the `iszero` away for performance.
                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

            _currentIndex = end;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

            _currentIndex = startTokenId + quantity;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @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.
     *
     * See {_mint}.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        _mint(to, quantity);

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, '');
    }

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        address from = address(uint160(prevOwnershipPacked));

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                from,
                (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) revert OwnershipNotInitializedForExtraData();
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * 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`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
    }

    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @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 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

            // 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 6 of 13 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of ERC721A.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the
     * ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    // =============================================================
    //                            IERC721
    // =============================================================

    /**
     * @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`,
     * 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 be 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,
        bytes calldata data
    ) external payable;

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

    /**
     * @dev Transfers `tokenId` 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 payable;

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

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

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

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

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

File 7 of 13 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _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) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        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] = _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 8 of 13 : 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 9 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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 10 of 13 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 11 of 13 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

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

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

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

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

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

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

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

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

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

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

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 13 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 13 of 13 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_initialBaseURI","type":"string"},{"internalType":"address","name":"signerAddressWhitelist_","type":"address"},{"internalType":"address","name":"signerAddressVip_","type":"address"},{"internalType":"address[]","name":"payments","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","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":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","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":[],"name":"MAX_MINT_PUBLIC","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINT_VIP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINT_WHITELIST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VIP_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"mintPricePublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPriceWhitelist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintStatus","outputs":[{"internalType":"enum DeadOrAlive.MintStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"mintTeam","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mintVip","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mintWhitelist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"releaseAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","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":"payable","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":"_uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMintPricePublic","type":"uint256"}],"name":"setMintPricePublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMintPriceWhitelist","type":"uint256"}],"name":"setMintPriceWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_status","type":"uint256"}],"name":"setMintStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newSignerAddressVip","type":"address"}],"name":"setSignerAddressVip","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newSignerAddressWhitelist","type":"address"}],"name":"setSignerAddressWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newTeamSupply","type":"uint256"}],"name":"setTeamSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"teamSupply","outputs":[{"internalType":"uint256","name":"","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":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526611c37937e0800060125566071afd498d00006014556000601960006101000a81548160ff021916908315150217905550600f601a556000601b60006101000a81548160ff0219169083600381111562000063576200006262000ad6565b5b02179055503480156200007557600080fd5b506040516200737f3803806200737f83398181016040528101906200009b919062000ee9565b81816040518060400160405280600d81526020017f44656164206f7220416c697665000000000000000000000000000000000000008152506040518060400160405280600381526020017f444f41000000000000000000000000000000000000000000000000000000000081525081600290816200011a91906200120f565b5080600390816200012c91906200120f565b506200013d6200031f60201b60201c565b600081905550505062000165620001596200032860201b60201c565b6200033060201b60201c565b8051825114620001ac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001a3906200137d565b60405180910390fd5b6000825111620001f3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001ea90620013ef565b60405180910390fd5b60005b825181101562000262576200024c8382815181106200021a576200021962001411565b5b602002602001015183838151811062000238576200023762001411565b5b6020026020010151620003f660201b60201c565b808062000259906200146f565b915050620001f6565b50505084601090816200027691906200120f565b5083601560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082601760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508151601181905550620003143360016200062f60201b60201c565b505050505062001828565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160362000468576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200045f9062001532565b60405180910390fd5b60008111620004ae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004a590620015a4565b60405180910390fd5b6000600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541462000533576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200052a906200163c565b60405180910390fd5b600d829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600954620005ea91906200165e565b6009819055507f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac828260405162000623929190620016bb565b60405180910390a15050565b620006518282604051806020016040528060008152506200065560201b60201c565b5050565b6200066783836200070660201b60201c565b60008373ffffffffffffffffffffffffffffffffffffffff163b146200070157600080549050600083820390505b620006b06000868380600101945086620008ed60201b60201c565b620006e7576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811062000695578160005414620006fe57600080fd5b50505b505050565b6000805490506000820362000747576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6200075c600084838562000a4e60201b60201c565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550620007eb83620007cd600086600062000a5460201b60201c565b620007de8562000a8460201b60201c565b1762000a9460201b60201c565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146200088e57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460018101905062000851565b5060008203620008ca576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050620008e8600084838562000abf60201b60201c565b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026200091b62000ac560201b60201c565b8786866040518563ffffffff1660e01b81526004016200093f949392919062001745565b6020604051808303816000875af19250505080156200097e57506040513d601f19601f820116820180604052508101906200097b9190620017f6565b60015b620009fb573d8060008114620009b1576040519150601f19603f3d011682016040523d82523d6000602084013e620009b6565b606091505b506000815103620009f3576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b50505050565b60008060e883901c905060e862000a7386868462000acd60201b60201c565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b60009392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b62000b6e8262000b23565b810181811067ffffffffffffffff8211171562000b905762000b8f62000b34565b5b80604052505050565b600062000ba562000b05565b905062000bb3828262000b63565b919050565b600067ffffffffffffffff82111562000bd65762000bd562000b34565b5b62000be18262000b23565b9050602081019050919050565b60005b8381101562000c0e57808201518184015260208101905062000bf1565b60008484015250505050565b600062000c3162000c2b8462000bb8565b62000b99565b90508281526020810184848401111562000c505762000c4f62000b1e565b5b62000c5d84828562000bee565b509392505050565b600082601f83011262000c7d5762000c7c62000b19565b5b815162000c8f84826020860162000c1a565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000cc58262000c98565b9050919050565b62000cd78162000cb8565b811462000ce357600080fd5b50565b60008151905062000cf78162000ccc565b92915050565b600067ffffffffffffffff82111562000d1b5762000d1a62000b34565b5b602082029050602081019050919050565b600080fd5b600062000d4862000d428462000cfd565b62000b99565b9050808382526020820190506020840283018581111562000d6e5762000d6d62000d2c565b5b835b8181101562000d9b578062000d86888262000ce6565b84526020840193505060208101905062000d70565b5050509392505050565b600082601f83011262000dbd5762000dbc62000b19565b5b815162000dcf84826020860162000d31565b91505092915050565b600067ffffffffffffffff82111562000df65762000df562000b34565b5b602082029050602081019050919050565b6000819050919050565b62000e1c8162000e07565b811462000e2857600080fd5b50565b60008151905062000e3c8162000e11565b92915050565b600062000e5962000e538462000dd8565b62000b99565b9050808382526020820190506020840283018581111562000e7f5762000e7e62000d2c565b5b835b8181101562000eac578062000e97888262000e2b565b84526020840193505060208101905062000e81565b5050509392505050565b600082601f83011262000ece5762000ecd62000b19565b5b815162000ee084826020860162000e42565b91505092915050565b600080600080600060a0868803121562000f085762000f0762000b0f565b5b600086015167ffffffffffffffff81111562000f295762000f2862000b14565b5b62000f378882890162000c65565b955050602062000f4a8882890162000ce6565b945050604062000f5d8882890162000ce6565b935050606086015167ffffffffffffffff81111562000f815762000f8062000b14565b5b62000f8f8882890162000da5565b925050608086015167ffffffffffffffff81111562000fb35762000fb262000b14565b5b62000fc18882890162000eb6565b9150509295509295909350565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200102157607f821691505b60208210810362001037576200103662000fd9565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620010a17fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262001062565b620010ad868362001062565b95508019841693508086168417925050509392505050565b6000819050919050565b6000620010f0620010ea620010e48462000e07565b620010c5565b62000e07565b9050919050565b6000819050919050565b6200110c83620010cf565b620011246200111b82620010f7565b8484546200106f565b825550505050565b600090565b6200113b6200112c565b6200114881848462001101565b505050565b5b8181101562001170576200116460008262001131565b6001810190506200114e565b5050565b601f821115620011bf5762001189816200103d565b620011948462001052565b81016020851015620011a4578190505b620011bc620011b38562001052565b8301826200114d565b50505b505050565b600082821c905092915050565b6000620011e460001984600802620011c4565b1980831691505092915050565b6000620011ff8383620011d1565b9150826002028217905092915050565b6200121a8262000fce565b67ffffffffffffffff81111562001236576200123562000b34565b5b62001242825462001008565b6200124f82828562001174565b600060209050601f83116001811462001287576000841562001272578287015190505b6200127e8582620011f1565b865550620012ee565b601f19841662001297866200103d565b60005b82811015620012c1578489015182556001820191506020850194506020810190506200129a565b86831015620012e15784890151620012dd601f891682620011d1565b8355505b6001600288020188555050505b505050505050565b600082825260208201905092915050565b7f5061796d656e7453706c69747465723a2070617965657320616e64207368617260008201527f6573206c656e677468206d69736d617463680000000000000000000000000000602082015250565b600062001365603283620012f6565b9150620013728262001307565b604082019050919050565b60006020820190508181036000830152620013988162001356565b9050919050565b7f5061796d656e7453706c69747465723a206e6f20706179656573000000000000600082015250565b6000620013d7601a83620012f6565b9150620013e4826200139f565b602082019050919050565b600060208201905081810360008301526200140a81620013c8565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006200147c8262000e07565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203620014b157620014b062001440565b5b600182019050919050565b7f5061796d656e7453706c69747465723a206163636f756e74206973207468652060008201527f7a65726f20616464726573730000000000000000000000000000000000000000602082015250565b60006200151a602c83620012f6565b91506200152782620014bc565b604082019050919050565b600060208201905081810360008301526200154d816200150b565b9050919050565b7f5061796d656e7453706c69747465723a20736861726573206172652030000000600082015250565b60006200158c601d83620012f6565b9150620015998262001554565b602082019050919050565b60006020820190508181036000830152620015bf816200157d565b9050919050565b7f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960008201527f2068617320736861726573000000000000000000000000000000000000000000602082015250565b600062001624602b83620012f6565b91506200163182620015c6565b604082019050919050565b60006020820190508181036000830152620016578162001615565b9050919050565b60006200166b8262000e07565b9150620016788362000e07565b925082820190508082111562001693576200169262001440565b5b92915050565b620016a48162000cb8565b82525050565b620016b58162000e07565b82525050565b6000604082019050620016d2600083018562001699565b620016e16020830184620016aa565b9392505050565b600081519050919050565b600082825260208201905092915050565b60006200171182620016e8565b6200171d8185620016f3565b93506200172f81856020860162000bee565b6200173a8162000b23565b840191505092915050565b60006080820190506200175c600083018762001699565b6200176b602083018662001699565b6200177a6040830185620016aa565b81810360608301526200178e818462001704565b905095945050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b620017d08162001799565b8114620017dc57600080fd5b50565b600081519050620017f081620017c5565b92915050565b6000602082840312156200180f576200180e62000b0f565b5b60006200181f84828501620017df565b91505092915050565b615b4780620018386000396000f3fe6080604052600436106102e85760003560e01c806370a0823111610190578063b88d4fde116100dc578063e33b7de311610095578063efd0cbf91161006f578063efd0cbf914610b7c578063f1bc02fc14610b98578063f2fde38b14610bc1578063f8f103dd14610bea5761032f565b8063e33b7de314610ae9578063e985e9c514610b14578063ee24c66014610b515761032f565b8063b88d4fde146109ae578063c45ac050146109ca578063c87b56dd14610a07578063ce7c2ac214610a44578063d79779b214610a81578063dbe65bfa14610abe5761032f565b806395d89b41116101495780639f41554a116101235780639f41554a14610901578063a22cb4651461091d578063a3f8eace14610946578063a73ce01f146109835761032f565b806395d89b411461086e5780639852595c146108995780639da3f8fd146108d65761032f565b806370a0823114610760578063715018a61461079d578063887fee31146107b45780638b83209b146107dd5780638da5cb5b1461081a57806395a3ca2e146108455761032f565b8063406072a91161024f5780635be7fde8116102085780636c0360eb116101e25780636c0360eb146106b85780636da48e22146106e35780636e56539b1461070c5780636f1e24f0146107375761032f565b80635be7fde81461063957806363172ac1146106505780636352211e1461067b5761032f565b8063406072a91461053a57806342842e0e14610577578063446ff4be1461059357806348b75044146105bc57806355f804b3146105e557806358941a4d1461060e5761032f565b80631c18a062116102a15780631c18a06214610449578063236bdfeb1461047457806323b872dd1461049d5780632cfac6ec146104b957806332cb6b0c146104e45780633a98ef391461050f5761032f565b806301ffc9a71461033457806306fdde0314610371578063081812fc1461039c578063095ea7b3146103d957806318160ddd146103f557806319165587146104205761032f565b3661032f577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be770610316610c13565b34604051610325929190613c18565b60405180910390a1005b600080fd5b34801561034057600080fd5b5061035b60048036038101906103569190613cad565b610c1b565b6040516103689190613cf5565b60405180910390f35b34801561037d57600080fd5b50610386610cad565b6040516103939190613da0565b60405180910390f35b3480156103a857600080fd5b506103c360048036038101906103be9190613dee565b610d3f565b6040516103d09190613e1b565b60405180910390f35b6103f360048036038101906103ee9190613e62565b610dbe565b005b34801561040157600080fd5b5061040a610f02565b6040516104179190613ea2565b60405180910390f35b34801561042c57600080fd5b5061044760048036038101906104429190613efb565b610f19565b005b34801561045557600080fd5b5061045e611098565b60405161046b9190613ea2565b60405180910390f35b34801561048057600080fd5b5061049b60048036038101906104969190613f28565b61109e565b005b6104b760048036038101906104b29190613f55565b6110ea565b005b3480156104c557600080fd5b506104ce61140c565b6040516104db9190613ea2565b60405180910390f35b3480156104f057600080fd5b506104f9611412565b6040516105069190613ea2565b60405180910390f35b34801561051b57600080fd5b50610524611418565b6040516105319190613ea2565b60405180910390f35b34801561054657600080fd5b50610561600480360381019061055c9190613fe6565b611422565b60405161056e9190613ea2565b60405180910390f35b610591600480360381019061058c9190613f55565b6114a9565b005b34801561059f57600080fd5b506105ba60048036038101906105b59190613dee565b6114c9565b005b3480156105c857600080fd5b506105e360048036038101906105de9190613fe6565b6114db565b005b3480156105f157600080fd5b5061060c6004803603810190610607919061415b565b6116ee565b005b34801561061a57600080fd5b50610623611709565b6040516106309190613ea2565b60405180910390f35b34801561064557600080fd5b5061064e61170e565b005b34801561065c57600080fd5b5061066561174a565b6040516106729190613ea2565b60405180910390f35b34801561068757600080fd5b506106a2600480360381019061069d9190613dee565b61174f565b6040516106af9190613e1b565b60405180910390f35b3480156106c457600080fd5b506106cd611761565b6040516106da9190613da0565b60405180910390f35b3480156106ef57600080fd5b5061070a60048036038101906107059190614204565b6117ef565b005b34801561071857600080fd5b50610721611bdd565b60405161072e9190613ea2565b60405180910390f35b34801561074357600080fd5b5061075e60048036038101906107599190613dee565b611be3565b005b34801561076c57600080fd5b5061078760048036038101906107829190613f28565b611bf5565b6040516107949190613ea2565b60405180910390f35b3480156107a957600080fd5b506107b2611cad565b005b3480156107c057600080fd5b506107db60048036038101906107d69190613dee565b611cc1565b005b3480156107e957600080fd5b5061080460048036038101906107ff9190613dee565b611d08565b6040516108119190613e1b565b60405180910390f35b34801561082657600080fd5b5061082f611d50565b60405161083c9190613e1b565b60405180910390f35b34801561085157600080fd5b5061086c60048036038101906108679190613f28565b611d7a565b005b34801561087a57600080fd5b50610883611f08565b6040516108909190613da0565b60405180910390f35b3480156108a557600080fd5b506108c060048036038101906108bb9190613f28565b611f9a565b6040516108cd9190613ea2565b60405180910390f35b3480156108e257600080fd5b506108eb611fe3565b6040516108f891906142db565b60405180910390f35b61091b60048036038101906109169190614204565b611ff6565b005b34801561092957600080fd5b50610944600480360381019061093f9190614322565b612441565b005b34801561095257600080fd5b5061096d60048036038101906109689190613f28565b61254c565b60405161097a9190613ea2565b60405180910390f35b34801561098f57600080fd5b5061099861257f565b6040516109a59190613ea2565b60405180910390f35b6109c860048036038101906109c39190614403565b612584565b005b3480156109d657600080fd5b506109f160048036038101906109ec9190613fe6565b6125f7565b6040516109fe9190613ea2565b60405180910390f35b348015610a1357600080fd5b50610a2e6004803603810190610a299190613dee565b6126a6565b604051610a3b9190613da0565b60405180910390f35b348015610a5057600080fd5b50610a6b6004803603810190610a669190613f28565b612744565b604051610a789190613ea2565b60405180910390f35b348015610a8d57600080fd5b50610aa86004803603810190610aa39190614486565b61278d565b604051610ab59190613ea2565b60405180910390f35b348015610aca57600080fd5b50610ad36127d6565b604051610ae09190613ea2565b60405180910390f35b348015610af557600080fd5b50610afe6127dc565b604051610b0b9190613ea2565b60405180910390f35b348015610b2057600080fd5b50610b3b6004803603810190610b3691906144b3565b6127e6565b604051610b489190613cf5565b60405180910390f35b348015610b5d57600080fd5b50610b6661287a565b604051610b739190613ea2565b60405180910390f35b610b966004803603810190610b919190613dee565b61287f565b005b348015610ba457600080fd5b50610bbf6004803603810190610bba9190613f28565b612b96565b005b348015610bcd57600080fd5b50610be86004803603810190610be39190613f28565b612be2565b005b348015610bf657600080fd5b50610c116004803603810190610c0c9190613dee565b612c65565b005b600033905090565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c7657506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610ca65750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610cbc90614522565b80601f0160208091040260200160405190810160405280929190818152602001828054610ce890614522565b8015610d355780601f10610d0a57610100808354040283529160200191610d35565b820191906000526020600020905b815481529060010190602001808311610d1857829003601f168201915b5050505050905090565b6000610d4a82612c77565b610d80576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610dc98261174f565b90508073ffffffffffffffffffffffffffffffffffffffff16610dea612cd6565b73ffffffffffffffffffffffffffffffffffffffff1614610e4d57610e1681610e11612cd6565b6127e6565b610e4c576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610f0c612cde565b6001546000540303905090565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411610f9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f92906145c5565b60405180910390fd5b6000610fa68261254c565b905060008103610feb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe290614657565b60405180910390fd5b80600a6000828254610ffd91906146a6565b9250508190555080600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061105b8282612ce7565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056828260405161108c929190614739565b60405180910390a15050565b60125481565b6110a6612ddb565b80601560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60006110f582612e59565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461115c576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061116884612f25565b9150915061117e8187611179612cd6565b612f4c565b6111ca576111938661118e612cd6565b6127e6565b6111c9576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611230576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61123d8686866001612f90565b801561124857600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550611316856112f2888887612f96565b7c020000000000000000000000000000000000000000000000000000000017612fbe565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361139c576000600185019050600060046000838152602001908152602001600020540361139a576000548114611399578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46114048686866001612fe9565b505050505050565b601a5481565b6115b381565b6000600954905090565b6000600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6114c483838360405180602001604052806000815250612584565b505050565b6114d1612ddb565b8060128190555050565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541161155d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611554906145c5565b60405180910390fd5b600061156983836125f7565b9050600081036115ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a590614657565b60405180910390fd5b80600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546115fd91906146a6565b9250508190555080600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550611699838383612fef565b8273ffffffffffffffffffffffffffffffffffffffff167f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a83836040516116e1929190613c18565b60405180910390a2505050565b6116f6612ddb565b80601090816117059190614904565b5050565b600281565b611716612ddb565b60005b6011548110156117475761173461172f82611d08565b610f19565b808061173f906149d6565b915050611719565b50565b600381565b600061175a82612e59565b9050919050565b6010805461176e90614522565b80601f016020809104026020016040519081016040528092919081815260200182805461179a90614522565b80156117e75780601f106117bc576101008083540402835291602001916117e7565b820191906000526020600020905b8154815290600101906020018083116117ca57829003601f168201915b505050505081565b823373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461185e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185590614a6a565b60405180910390fd5b600081116118a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189890614ad6565b60405180910390fd5b6115b3816118ad610f02565b6118b791906146a6565b11156118f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ef90614b68565b60405180910390fd5b6001600381111561190c5761190b614264565b5b601b60009054906101000a900460ff16600381111561192e5761192d614264565b5b1461196e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196590614bd4565b60405180910390fd5b600184601860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546119bb91906146a6565b11156119fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f390614c40565b60405180910390fd5b606f84611a07610f02565b611a1191906146a6565b1115611a52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4990614cac565b60405180910390fd5b611ae883838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050503373ffffffffffffffffffffffffffffffffffffffff1660001b604051602001611ac49190614d4e565b6040516020818303038152906040528051906020012061307590919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611b77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6e90614dc0565b60405180910390fd5b83601860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611bc691906146a6565b92505081905550611bd7338561309c565b50505050565b61076181565b611beb612ddb565b8060148190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c5c576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611cb5612ddb565b611cbf60006130ba565b565b611cc9612ddb565b806003811115611cdc57611cdb614264565b5b601b60006101000a81548160ff02191690836003811115611d0057611cff614264565b5b021790555050565b6000600d8281548110611d1e57611d1d614de0565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b601a543373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611deb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de290614a6a565b60405180910390fd5b60008111611e2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2590614ad6565b60405180910390fd5b6115b381611e3a610f02565b611e4491906146a6565b1115611e85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7c90614b68565b60405180910390fd5b611e8d612ddb565b601960009054906101000a900460ff1615611edd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed490614e81565b60405180910390fd5b611ee982601a5461309c565b6001601960006101000a81548160ff0219169083151502179055505050565b606060038054611f1790614522565b80601f0160208091040260200160405190810160405280929190818152602001828054611f4390614522565b8015611f905780601f10611f6557610100808354040283529160200191611f90565b820191906000526020600020905b815481529060010190602001808311611f7357829003601f168201915b5050505050905090565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b601b60009054906101000a900460ff1681565b823373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614612065576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205c90614a6a565b60405180910390fd5b600081116120a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209f90614ad6565b60405180910390fd5b6115b3816120b4610f02565b6120be91906146a6565b11156120ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120f690614b68565b60405180910390fd5b6002600381111561211357612112614264565b5b601b60009054906101000a900460ff16600381111561213557612134614264565b5b14612175576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161216c90614eed565b60405180910390fd5b600284601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546121c291906146a6565b1115612203576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121fa90614f7f565b60405180910390fd5b836014546122119190614f9f565b341015612253576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161224a9061506b565b60405180910390fd5b606f61076161226291906146a6565b8461226b610f02565b61227591906146a6565b11156122b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ad906150d7565b60405180910390fd5b61234c83838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050503373ffffffffffffffffffffffffffffffffffffffff1660001b6040516020016123289190614d4e565b6040516020818303038152906040528051906020012061307590919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146123db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123d290615143565b60405180910390fd5b83601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461242a91906146a6565b9250508190555061243b338561309c565b50505050565b806007600061244e612cd6565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166124fb612cd6565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516125409190613cf5565b60405180910390a35050565b6000806125576127dc565b4761256291906146a6565b9050612577838261257286611f9a565b613180565b915050919050565b606f81565b61258f8484846110ea565b60008373ffffffffffffffffffffffffffffffffffffffff163b146125f1576125ba848484846131ee565b6125f0576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6000806126038461278d565b8473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161263c9190613e1b565b602060405180830381865afa158015612659573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061267d9190615178565b61268791906146a6565b905061269d83826126988787611422565b613180565b91505092915050565b60606126b182612c77565b6126e7576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006126f161333e565b90506000815103612711576040518060200160405280600081525061273c565b8061271b846133d0565b60405160200161272c9291906151d6565b6040516020818303038152906040525b915050919050565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60145481565b6000600a54905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600181565b803373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146128ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128e590614a6a565b60405180910390fd5b60008111612931576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292890614ad6565b60405180910390fd5b6115b38161293d610f02565b61294791906146a6565b1115612988576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161297f90614b68565b60405180910390fd5b60038081111561299b5761299a614264565b5b601b60009054906101000a900460ff1660038111156129bd576129bc614264565b5b146129fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f490615246565b60405180910390fd5b600382601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612a4a91906146a6565b1115612a8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a82906152d8565b60405180910390fd5b81601254612a999190614f9f565b341015612adb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ad29061506b565b60405180910390fd5b6115b382612ae7610f02565b612af191906146a6565b1115612b32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b2990615344565b60405180910390fd5b81601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612b8191906146a6565b92505081905550612b92338361309c565b5050565b612b9e612ddb565b80601760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b612bea612ddb565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612c59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c50906153d6565b60405180910390fd5b612c62816130ba565b50565b612c6d612ddb565b80601a8190555050565b600081612c82612cde565b11158015612c91575060005482105b8015612ccf575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b80471015612d2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d2190615442565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612d5090615493565b60006040518083038185875af1925050503d8060008114612d8d576040519150601f19603f3d011682016040523d82523d6000602084013e612d92565b606091505b5050905080612dd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dcd9061551a565b60405180910390fd5b505050565b612de3610c13565b73ffffffffffffffffffffffffffffffffffffffff16612e01611d50565b73ffffffffffffffffffffffffffffffffffffffff1614612e57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e4e90615586565b60405180910390fd5b565b60008082905080612e68612cde565b11612eee57600054811015612eed5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612eeb575b60008103612ee1576004600083600190039350838152602001908152602001600020549050612eb7565b8092505050612f20565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612fad868684613420565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6130708363a9059cbb60e01b848460405160240161300e929190613c18565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613429565b505050565b600080600061308485856134f0565b9150915061309181613541565b819250505092915050565b6130b68282604051806020016040528060008152506136a7565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081600954600b60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054856131d19190614f9f565b6131db91906155d5565b6131e59190615606565b90509392505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613214612cd6565b8786866040518563ffffffff1660e01b8152600401613236949392919061568f565b6020604051808303816000875af192505050801561327257506040513d601f19601f8201168201806040525081019061326f91906156f0565b60015b6132eb573d80600081146132a2576040519150601f19603f3d011682016040523d82523d6000602084013e6132a7565b606091505b5060008151036132e3576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60606010805461334d90614522565b80601f016020809104026020016040519081016040528092919081815260200182805461337990614522565b80156133c65780601f1061339b576101008083540402835291602001916133c6565b820191906000526020600020905b8154815290600101906020018083116133a957829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b60011561340b57600184039350600a81066030018453600a81049050806133e9575b50828103602084039350808452505050919050565b60009392505050565b600061348b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166137449092919063ffffffff16565b90506000815111156134eb57808060200190518101906134ab9190615732565b6134ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134e1906157d1565b60405180910390fd5b5b505050565b60008060418351036135315760008060006020860151925060408601519150606086015160001a90506135258782858561375c565b9450945050505061353a565b60006002915091505b9250929050565b6000600481111561355557613554614264565b5b81600481111561356857613567614264565b5b03156136a4576001600481111561358257613581614264565b5b81600481111561359557613594614264565b5b036135d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135cc9061583d565b60405180910390fd5b600260048111156135e9576135e8614264565b5b8160048111156135fc576135fb614264565b5b0361363c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613633906158a9565b60405180910390fd5b600360048111156136505761364f614264565b5b81600481111561366357613662614264565b5b036136a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161369a9061593b565b60405180910390fd5b5b50565b6136b1838361383e565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461373f57600080549050600083820390505b6136f160008683806001019450866131ee565b613727576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106136de57816000541461373c57600080fd5b50505b505050565b606061375384846000856139f9565b90509392505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613797576000600391509150613835565b6000600187878787604051600081526020016040526040516137bc9493929190615986565b6020604051602081039080840390855afa1580156137de573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361382c57600060019250925050613835565b80600092509250505b94509492505050565b6000805490506000820361387e576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61388b6000848385612f90565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613902836138f36000866000612f96565b6138fc85613ac6565b17612fbe565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146139a357808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613968565b50600082036139de576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506139f46000848385612fe9565b505050565b606082471015613a3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a3590615a3d565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051613a679190615a8e565b60006040518083038185875af1925050503d8060008114613aa4576040519150601f19603f3d011682016040523d82523d6000602084013e613aa9565b606091505b5091509150613aba87838387613ad6565b92505050949350505050565b60006001821460e11b9050919050565b60608315613b38576000835103613b3057613af085613b4b565b613b2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b2690615af1565b60405180910390fd5b5b829050613b43565b613b428383613b6e565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082511115613b815781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613bb59190613da0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613be982613bbe565b9050919050565b613bf981613bde565b82525050565b6000819050919050565b613c1281613bff565b82525050565b6000604082019050613c2d6000830185613bf0565b613c3a6020830184613c09565b9392505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613c8a81613c55565b8114613c9557600080fd5b50565b600081359050613ca781613c81565b92915050565b600060208284031215613cc357613cc2613c4b565b5b6000613cd184828501613c98565b91505092915050565b60008115159050919050565b613cef81613cda565b82525050565b6000602082019050613d0a6000830184613ce6565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613d4a578082015181840152602081019050613d2f565b60008484015250505050565b6000601f19601f8301169050919050565b6000613d7282613d10565b613d7c8185613d1b565b9350613d8c818560208601613d2c565b613d9581613d56565b840191505092915050565b60006020820190508181036000830152613dba8184613d67565b905092915050565b613dcb81613bff565b8114613dd657600080fd5b50565b600081359050613de881613dc2565b92915050565b600060208284031215613e0457613e03613c4b565b5b6000613e1284828501613dd9565b91505092915050565b6000602082019050613e306000830184613bf0565b92915050565b613e3f81613bde565b8114613e4a57600080fd5b50565b600081359050613e5c81613e36565b92915050565b60008060408385031215613e7957613e78613c4b565b5b6000613e8785828601613e4d565b9250506020613e9885828601613dd9565b9150509250929050565b6000602082019050613eb76000830184613c09565b92915050565b6000613ec882613bbe565b9050919050565b613ed881613ebd565b8114613ee357600080fd5b50565b600081359050613ef581613ecf565b92915050565b600060208284031215613f1157613f10613c4b565b5b6000613f1f84828501613ee6565b91505092915050565b600060208284031215613f3e57613f3d613c4b565b5b6000613f4c84828501613e4d565b91505092915050565b600080600060608486031215613f6e57613f6d613c4b565b5b6000613f7c86828701613e4d565b9350506020613f8d86828701613e4d565b9250506040613f9e86828701613dd9565b9150509250925092565b6000613fb382613bde565b9050919050565b613fc381613fa8565b8114613fce57600080fd5b50565b600081359050613fe081613fba565b92915050565b60008060408385031215613ffd57613ffc613c4b565b5b600061400b85828601613fd1565b925050602061401c85828601613e4d565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61406882613d56565b810181811067ffffffffffffffff8211171561408757614086614030565b5b80604052505050565b600061409a613c41565b90506140a6828261405f565b919050565b600067ffffffffffffffff8211156140c6576140c5614030565b5b6140cf82613d56565b9050602081019050919050565b82818337600083830152505050565b60006140fe6140f9846140ab565b614090565b90508281526020810184848401111561411a5761411961402b565b5b6141258482856140dc565b509392505050565b600082601f83011261414257614141614026565b5b81356141528482602086016140eb565b91505092915050565b60006020828403121561417157614170613c4b565b5b600082013567ffffffffffffffff81111561418f5761418e613c50565b5b61419b8482850161412d565b91505092915050565b600080fd5b600080fd5b60008083601f8401126141c4576141c3614026565b5b8235905067ffffffffffffffff8111156141e1576141e06141a4565b5b6020830191508360018202830111156141fd576141fc6141a9565b5b9250929050565b60008060006040848603121561421d5761421c613c4b565b5b600061422b86828701613dd9565b935050602084013567ffffffffffffffff81111561424c5761424b613c50565b5b614258868287016141ae565b92509250509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600481106142a4576142a3614264565b5b50565b60008190506142b582614293565b919050565b60006142c5826142a7565b9050919050565b6142d5816142ba565b82525050565b60006020820190506142f060008301846142cc565b92915050565b6142ff81613cda565b811461430a57600080fd5b50565b60008135905061431c816142f6565b92915050565b6000806040838503121561433957614338613c4b565b5b600061434785828601613e4d565b92505060206143588582860161430d565b9150509250929050565b600067ffffffffffffffff82111561437d5761437c614030565b5b61438682613d56565b9050602081019050919050565b60006143a66143a184614362565b614090565b9050828152602081018484840111156143c2576143c161402b565b5b6143cd8482856140dc565b509392505050565b600082601f8301126143ea576143e9614026565b5b81356143fa848260208601614393565b91505092915050565b6000806000806080858703121561441d5761441c613c4b565b5b600061442b87828801613e4d565b945050602061443c87828801613e4d565b935050604061444d87828801613dd9565b925050606085013567ffffffffffffffff81111561446e5761446d613c50565b5b61447a878288016143d5565b91505092959194509250565b60006020828403121561449c5761449b613c4b565b5b60006144aa84828501613fd1565b91505092915050565b600080604083850312156144ca576144c9613c4b565b5b60006144d885828601613e4d565b92505060206144e985828601613e4d565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061453a57607f821691505b60208210810361454d5761454c6144f3565b5b50919050565b7f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060008201527f7368617265730000000000000000000000000000000000000000000000000000602082015250565b60006145af602683613d1b565b91506145ba82614553565b604082019050919050565b600060208201905081810360008301526145de816145a2565b9050919050565b7f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060008201527f647565207061796d656e74000000000000000000000000000000000000000000602082015250565b6000614641602b83613d1b565b915061464c826145e5565b604082019050919050565b6000602082019050818103600083015261467081614634565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006146b182613bff565b91506146bc83613bff565b92508282019050808211156146d4576146d3614677565b5b92915050565b6000819050919050565b60006146ff6146fa6146f584613bbe565b6146da565b613bbe565b9050919050565b6000614711826146e4565b9050919050565b600061472382614706565b9050919050565b61473381614718565b82525050565b600060408201905061474e600083018561472a565b61475b6020830184613c09565b9392505050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026147c47fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614787565b6147ce8683614787565b95508019841693508086168417925050509392505050565b60006148016147fc6147f784613bff565b6146da565b613bff565b9050919050565b6000819050919050565b61481b836147e6565b61482f61482782614808565b848454614794565b825550505050565b600090565b614844614837565b61484f818484614812565b505050565b5b818110156148735761486860008261483c565b600181019050614855565b5050565b601f8211156148b85761488981614762565b61489284614777565b810160208510156148a1578190505b6148b56148ad85614777565b830182614854565b50505b505050565b600082821c905092915050565b60006148db600019846008026148bd565b1980831691505092915050565b60006148f483836148ca565b9150826002028217905092915050565b61490d82613d10565b67ffffffffffffffff81111561492657614925614030565b5b6149308254614522565b61493b828285614877565b600060209050601f83116001811461496e576000841561495c578287015190505b61496685826148e8565b8655506149ce565b601f19841661497c86614762565b60005b828110156149a45784890151825560018201915060208501945060208101905061497f565b868310156149c157848901516149bd601f8916826148ca565b8355505b6001600288020188555050505b505050505050565b60006149e182613bff565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614a1357614a12614677565b5b600182019050919050565b7f4f6e6c792068756d616e732061726520616c6c6f77656420746f206d696e7421600082015250565b6000614a54602083613d1b565b9150614a5f82614a1e565b602082019050919050565b60006020820190508181036000830152614a8381614a47565b9050919050565b7f43616e2774206d696e74207a65726f2100000000000000000000000000000000600082015250565b6000614ac0601083613d1b565b9150614acb82614a8a565b602082019050919050565b60006020820190508181036000830152614aef81614ab3565b9050919050565b7f546865726520617265206e6f206d6f7265204e46547320617661696c61626c6560008201527f2100000000000000000000000000000000000000000000000000000000000000602082015250565b6000614b52602183613d1b565b9150614b5d82614af6565b604082019050919050565b60006020820190508181036000830152614b8181614b45565b9050919050565b7f5649502073616c6520697320696e616374697665210000000000000000000000600082015250565b6000614bbe601583613d1b565b9150614bc982614b88565b602082019050919050565b60006020820190508181036000830152614bed81614bb1565b9050919050565b7f43616e2774206d696e742074686174206d616e79206f76657220564950210000600082015250565b6000614c2a601e83613d1b565b9150614c3582614bf4565b602082019050919050565b60006020820190508181036000830152614c5981614c1d565b9050919050565b7f5649502073616c6520697320736f6c64206f7574210000000000000000000000600082015250565b6000614c96601583613d1b565b9150614ca182614c60565b602082019050919050565b60006020820190508181036000830152614cc581614c89565b9050919050565b600081905092915050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000614d0d601c83614ccc565b9150614d1882614cd7565b601c82019050919050565b6000819050919050565b6000819050919050565b614d48614d4382614d23565b614d2d565b82525050565b6000614d5982614d00565b9150614d658284614d37565b60208201915081905092915050565b7f4e6f742061205649502100000000000000000000000000000000000000000000600082015250565b6000614daa600a83613d1b565b9150614db582614d74565b602082019050919050565b60006020820190508181036000830152614dd981614d9d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f546865207465616d20737570706c792077617320616c7265616479206d696e7460008201527f6564210000000000000000000000000000000000000000000000000000000000602082015250565b6000614e6b602383613d1b565b9150614e7682614e0f565b604082019050919050565b60006020820190508181036000830152614e9a81614e5e565b9050919050565b7f57686974656c6973742073616c6520697320696e616374697665210000000000600082015250565b6000614ed7601b83613d1b565b9150614ee282614ea1565b602082019050919050565b60006020820190508181036000830152614f0681614eca565b9050919050565b7f43616e2774206d696e742074686174206d616e79206f7665722077686974656c60008201527f6973742100000000000000000000000000000000000000000000000000000000602082015250565b6000614f69602483613d1b565b9150614f7482614f0d565b604082019050919050565b60006020820190508181036000830152614f9881614f5c565b9050919050565b6000614faa82613bff565b9150614fb583613bff565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614fee57614fed614677565b5b828202905092915050565b7f5468652065746865722076616c75652073656e74206973206e6f7420636f727260008201527f6563742100000000000000000000000000000000000000000000000000000000602082015250565b6000615055602483613d1b565b915061506082614ff9565b604082019050919050565b6000602082019050818103600083015261508481615048565b9050919050565b7f57686974656c6973742073616c6520697320736f6c64206f7574210000000000600082015250565b60006150c1601b83613d1b565b91506150cc8261508b565b602082019050919050565b600060208201905081810360008301526150f0816150b4565b9050919050565b7f4e6f74206f6e2077686974656c69737421000000000000000000000000000000600082015250565b600061512d601183613d1b565b9150615138826150f7565b602082019050919050565b6000602082019050818103600083015261515c81615120565b9050919050565b60008151905061517281613dc2565b92915050565b60006020828403121561518e5761518d613c4b565b5b600061519c84828501615163565b91505092915050565b60006151b082613d10565b6151ba8185614ccc565b93506151ca818560208601613d2c565b80840191505092915050565b60006151e282856151a5565b91506151ee82846151a5565b91508190509392505050565b7f5075626c69632073616c6520697320696e616374697665210000000000000000600082015250565b6000615230601883613d1b565b915061523b826151fa565b602082019050919050565b6000602082019050818103600083015261525f81615223565b9050919050565b7f43616e2774206d696e742074686174206d616e79206f766572207075626c696360008201527f2100000000000000000000000000000000000000000000000000000000000000602082015250565b60006152c2602183613d1b565b91506152cd82615266565b604082019050919050565b600060208201905081810360008301526152f1816152b5565b9050919050565b7f5075626c69632073616c6520697320736f6c64206f7574210000000000000000600082015250565b600061532e601883613d1b565b9150615339826152f8565b602082019050919050565b6000602082019050818103600083015261535d81615321565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006153c0602683613d1b565b91506153cb82615364565b604082019050919050565b600060208201905081810360008301526153ef816153b3565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b600061542c601d83613d1b565b9150615437826153f6565b602082019050919050565b6000602082019050818103600083015261545b8161541f565b9050919050565b600081905092915050565b50565b600061547d600083615462565b91506154888261546d565b600082019050919050565b600061549e82615470565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000615504603a83613d1b565b915061550f826154a8565b604082019050919050565b60006020820190508181036000830152615533816154f7565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615570602083613d1b565b915061557b8261553a565b602082019050919050565b6000602082019050818103600083015261559f81615563565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006155e082613bff565b91506155eb83613bff565b9250826155fb576155fa6155a6565b5b828204905092915050565b600061561182613bff565b915061561c83613bff565b925082820390508181111561563457615633614677565b5b92915050565b600081519050919050565b600082825260208201905092915050565b60006156618261563a565b61566b8185615645565b935061567b818560208601613d2c565b61568481613d56565b840191505092915050565b60006080820190506156a46000830187613bf0565b6156b16020830186613bf0565b6156be6040830185613c09565b81810360608301526156d08184615656565b905095945050505050565b6000815190506156ea81613c81565b92915050565b60006020828403121561570657615705613c4b565b5b6000615714848285016156db565b91505092915050565b60008151905061572c816142f6565b92915050565b60006020828403121561574857615747613c4b565b5b60006157568482850161571d565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b60006157bb602a83613d1b565b91506157c68261575f565b604082019050919050565b600060208201905081810360008301526157ea816157ae565b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000615827601883613d1b565b9150615832826157f1565b602082019050919050565b600060208201905081810360008301526158568161581a565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000615893601f83613d1b565b915061589e8261585d565b602082019050919050565b600060208201905081810360008301526158c281615886565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615925602283613d1b565b9150615930826158c9565b604082019050919050565b6000602082019050818103600083015261595481615918565b9050919050565b61596481614d23565b82525050565b600060ff82169050919050565b6159808161596a565b82525050565b600060808201905061599b600083018761595b565b6159a86020830186615977565b6159b5604083018561595b565b6159c2606083018461595b565b95945050505050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000615a27602683613d1b565b9150615a32826159cb565b604082019050919050565b60006020820190508181036000830152615a5681615a1a565b9050919050565b6000615a688261563a565b615a728185615462565b9350615a82818560208601613d2c565b80840191505092915050565b6000615a9a8284615a5d565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000615adb601d83613d1b565b9150615ae682615aa5565b602082019050919050565b60006020820190508181036000830152615b0a81615ace565b905091905056fea26469706673582212201cbaf2067193e081a2caffecce97a60f109b3b0d3aa091b898c6054f786d3a4f64736f6c6343000810003300000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000dfd8881c732d2607792fffff9fa3dc7c638906460000000000000000000000008dde2bc47081e32e80ab48f1b5602fc89df9c1d1000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d645848704433643362424b373732366b6644686962714d786538466f4a7065727a756a686151736d4551444c2f00000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000011bbbef2bd9846f70482db5eb5cf216ad70d1042000000000000000000000000a723b1e8bc0b3a495aa912683b244842ffc7d17f0000000000000000000000009144381b6c0907094cd762d3640217b13c6c4bec00000000000000000000000028d38c6d7fd891b3f858b37a71da0e9dfd2dbf2e0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000002d

Deployed Bytecode

0x6080604052600436106102e85760003560e01c806370a0823111610190578063b88d4fde116100dc578063e33b7de311610095578063efd0cbf91161006f578063efd0cbf914610b7c578063f1bc02fc14610b98578063f2fde38b14610bc1578063f8f103dd14610bea5761032f565b8063e33b7de314610ae9578063e985e9c514610b14578063ee24c66014610b515761032f565b8063b88d4fde146109ae578063c45ac050146109ca578063c87b56dd14610a07578063ce7c2ac214610a44578063d79779b214610a81578063dbe65bfa14610abe5761032f565b806395d89b41116101495780639f41554a116101235780639f41554a14610901578063a22cb4651461091d578063a3f8eace14610946578063a73ce01f146109835761032f565b806395d89b411461086e5780639852595c146108995780639da3f8fd146108d65761032f565b806370a0823114610760578063715018a61461079d578063887fee31146107b45780638b83209b146107dd5780638da5cb5b1461081a57806395a3ca2e146108455761032f565b8063406072a91161024f5780635be7fde8116102085780636c0360eb116101e25780636c0360eb146106b85780636da48e22146106e35780636e56539b1461070c5780636f1e24f0146107375761032f565b80635be7fde81461063957806363172ac1146106505780636352211e1461067b5761032f565b8063406072a91461053a57806342842e0e14610577578063446ff4be1461059357806348b75044146105bc57806355f804b3146105e557806358941a4d1461060e5761032f565b80631c18a062116102a15780631c18a06214610449578063236bdfeb1461047457806323b872dd1461049d5780632cfac6ec146104b957806332cb6b0c146104e45780633a98ef391461050f5761032f565b806301ffc9a71461033457806306fdde0314610371578063081812fc1461039c578063095ea7b3146103d957806318160ddd146103f557806319165587146104205761032f565b3661032f577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be770610316610c13565b34604051610325929190613c18565b60405180910390a1005b600080fd5b34801561034057600080fd5b5061035b60048036038101906103569190613cad565b610c1b565b6040516103689190613cf5565b60405180910390f35b34801561037d57600080fd5b50610386610cad565b6040516103939190613da0565b60405180910390f35b3480156103a857600080fd5b506103c360048036038101906103be9190613dee565b610d3f565b6040516103d09190613e1b565b60405180910390f35b6103f360048036038101906103ee9190613e62565b610dbe565b005b34801561040157600080fd5b5061040a610f02565b6040516104179190613ea2565b60405180910390f35b34801561042c57600080fd5b5061044760048036038101906104429190613efb565b610f19565b005b34801561045557600080fd5b5061045e611098565b60405161046b9190613ea2565b60405180910390f35b34801561048057600080fd5b5061049b60048036038101906104969190613f28565b61109e565b005b6104b760048036038101906104b29190613f55565b6110ea565b005b3480156104c557600080fd5b506104ce61140c565b6040516104db9190613ea2565b60405180910390f35b3480156104f057600080fd5b506104f9611412565b6040516105069190613ea2565b60405180910390f35b34801561051b57600080fd5b50610524611418565b6040516105319190613ea2565b60405180910390f35b34801561054657600080fd5b50610561600480360381019061055c9190613fe6565b611422565b60405161056e9190613ea2565b60405180910390f35b610591600480360381019061058c9190613f55565b6114a9565b005b34801561059f57600080fd5b506105ba60048036038101906105b59190613dee565b6114c9565b005b3480156105c857600080fd5b506105e360048036038101906105de9190613fe6565b6114db565b005b3480156105f157600080fd5b5061060c6004803603810190610607919061415b565b6116ee565b005b34801561061a57600080fd5b50610623611709565b6040516106309190613ea2565b60405180910390f35b34801561064557600080fd5b5061064e61170e565b005b34801561065c57600080fd5b5061066561174a565b6040516106729190613ea2565b60405180910390f35b34801561068757600080fd5b506106a2600480360381019061069d9190613dee565b61174f565b6040516106af9190613e1b565b60405180910390f35b3480156106c457600080fd5b506106cd611761565b6040516106da9190613da0565b60405180910390f35b3480156106ef57600080fd5b5061070a60048036038101906107059190614204565b6117ef565b005b34801561071857600080fd5b50610721611bdd565b60405161072e9190613ea2565b60405180910390f35b34801561074357600080fd5b5061075e60048036038101906107599190613dee565b611be3565b005b34801561076c57600080fd5b5061078760048036038101906107829190613f28565b611bf5565b6040516107949190613ea2565b60405180910390f35b3480156107a957600080fd5b506107b2611cad565b005b3480156107c057600080fd5b506107db60048036038101906107d69190613dee565b611cc1565b005b3480156107e957600080fd5b5061080460048036038101906107ff9190613dee565b611d08565b6040516108119190613e1b565b60405180910390f35b34801561082657600080fd5b5061082f611d50565b60405161083c9190613e1b565b60405180910390f35b34801561085157600080fd5b5061086c60048036038101906108679190613f28565b611d7a565b005b34801561087a57600080fd5b50610883611f08565b6040516108909190613da0565b60405180910390f35b3480156108a557600080fd5b506108c060048036038101906108bb9190613f28565b611f9a565b6040516108cd9190613ea2565b60405180910390f35b3480156108e257600080fd5b506108eb611fe3565b6040516108f891906142db565b60405180910390f35b61091b60048036038101906109169190614204565b611ff6565b005b34801561092957600080fd5b50610944600480360381019061093f9190614322565b612441565b005b34801561095257600080fd5b5061096d60048036038101906109689190613f28565b61254c565b60405161097a9190613ea2565b60405180910390f35b34801561098f57600080fd5b5061099861257f565b6040516109a59190613ea2565b60405180910390f35b6109c860048036038101906109c39190614403565b612584565b005b3480156109d657600080fd5b506109f160048036038101906109ec9190613fe6565b6125f7565b6040516109fe9190613ea2565b60405180910390f35b348015610a1357600080fd5b50610a2e6004803603810190610a299190613dee565b6126a6565b604051610a3b9190613da0565b60405180910390f35b348015610a5057600080fd5b50610a6b6004803603810190610a669190613f28565b612744565b604051610a789190613ea2565b60405180910390f35b348015610a8d57600080fd5b50610aa86004803603810190610aa39190614486565b61278d565b604051610ab59190613ea2565b60405180910390f35b348015610aca57600080fd5b50610ad36127d6565b604051610ae09190613ea2565b60405180910390f35b348015610af557600080fd5b50610afe6127dc565b604051610b0b9190613ea2565b60405180910390f35b348015610b2057600080fd5b50610b3b6004803603810190610b3691906144b3565b6127e6565b604051610b489190613cf5565b60405180910390f35b348015610b5d57600080fd5b50610b6661287a565b604051610b739190613ea2565b60405180910390f35b610b966004803603810190610b919190613dee565b61287f565b005b348015610ba457600080fd5b50610bbf6004803603810190610bba9190613f28565b612b96565b005b348015610bcd57600080fd5b50610be86004803603810190610be39190613f28565b612be2565b005b348015610bf657600080fd5b50610c116004803603810190610c0c9190613dee565b612c65565b005b600033905090565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c7657506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610ca65750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610cbc90614522565b80601f0160208091040260200160405190810160405280929190818152602001828054610ce890614522565b8015610d355780601f10610d0a57610100808354040283529160200191610d35565b820191906000526020600020905b815481529060010190602001808311610d1857829003601f168201915b5050505050905090565b6000610d4a82612c77565b610d80576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610dc98261174f565b90508073ffffffffffffffffffffffffffffffffffffffff16610dea612cd6565b73ffffffffffffffffffffffffffffffffffffffff1614610e4d57610e1681610e11612cd6565b6127e6565b610e4c576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610f0c612cde565b6001546000540303905090565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411610f9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f92906145c5565b60405180910390fd5b6000610fa68261254c565b905060008103610feb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe290614657565b60405180910390fd5b80600a6000828254610ffd91906146a6565b9250508190555080600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061105b8282612ce7565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056828260405161108c929190614739565b60405180910390a15050565b60125481565b6110a6612ddb565b80601560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60006110f582612e59565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461115c576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061116884612f25565b9150915061117e8187611179612cd6565b612f4c565b6111ca576111938661118e612cd6565b6127e6565b6111c9576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611230576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61123d8686866001612f90565b801561124857600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550611316856112f2888887612f96565b7c020000000000000000000000000000000000000000000000000000000017612fbe565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361139c576000600185019050600060046000838152602001908152602001600020540361139a576000548114611399578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46114048686866001612fe9565b505050505050565b601a5481565b6115b381565b6000600954905090565b6000600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6114c483838360405180602001604052806000815250612584565b505050565b6114d1612ddb565b8060128190555050565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541161155d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611554906145c5565b60405180910390fd5b600061156983836125f7565b9050600081036115ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a590614657565b60405180910390fd5b80600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546115fd91906146a6565b9250508190555080600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550611699838383612fef565b8273ffffffffffffffffffffffffffffffffffffffff167f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a83836040516116e1929190613c18565b60405180910390a2505050565b6116f6612ddb565b80601090816117059190614904565b5050565b600281565b611716612ddb565b60005b6011548110156117475761173461172f82611d08565b610f19565b808061173f906149d6565b915050611719565b50565b600381565b600061175a82612e59565b9050919050565b6010805461176e90614522565b80601f016020809104026020016040519081016040528092919081815260200182805461179a90614522565b80156117e75780601f106117bc576101008083540402835291602001916117e7565b820191906000526020600020905b8154815290600101906020018083116117ca57829003601f168201915b505050505081565b823373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461185e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185590614a6a565b60405180910390fd5b600081116118a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189890614ad6565b60405180910390fd5b6115b3816118ad610f02565b6118b791906146a6565b11156118f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ef90614b68565b60405180910390fd5b6001600381111561190c5761190b614264565b5b601b60009054906101000a900460ff16600381111561192e5761192d614264565b5b1461196e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196590614bd4565b60405180910390fd5b600184601860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546119bb91906146a6565b11156119fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f390614c40565b60405180910390fd5b606f84611a07610f02565b611a1191906146a6565b1115611a52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4990614cac565b60405180910390fd5b611ae883838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050503373ffffffffffffffffffffffffffffffffffffffff1660001b604051602001611ac49190614d4e565b6040516020818303038152906040528051906020012061307590919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611b77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6e90614dc0565b60405180910390fd5b83601860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611bc691906146a6565b92505081905550611bd7338561309c565b50505050565b61076181565b611beb612ddb565b8060148190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c5c576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611cb5612ddb565b611cbf60006130ba565b565b611cc9612ddb565b806003811115611cdc57611cdb614264565b5b601b60006101000a81548160ff02191690836003811115611d0057611cff614264565b5b021790555050565b6000600d8281548110611d1e57611d1d614de0565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b601a543373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611deb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de290614a6a565b60405180910390fd5b60008111611e2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2590614ad6565b60405180910390fd5b6115b381611e3a610f02565b611e4491906146a6565b1115611e85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7c90614b68565b60405180910390fd5b611e8d612ddb565b601960009054906101000a900460ff1615611edd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed490614e81565b60405180910390fd5b611ee982601a5461309c565b6001601960006101000a81548160ff0219169083151502179055505050565b606060038054611f1790614522565b80601f0160208091040260200160405190810160405280929190818152602001828054611f4390614522565b8015611f905780601f10611f6557610100808354040283529160200191611f90565b820191906000526020600020905b815481529060010190602001808311611f7357829003601f168201915b5050505050905090565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b601b60009054906101000a900460ff1681565b823373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614612065576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205c90614a6a565b60405180910390fd5b600081116120a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209f90614ad6565b60405180910390fd5b6115b3816120b4610f02565b6120be91906146a6565b11156120ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120f690614b68565b60405180910390fd5b6002600381111561211357612112614264565b5b601b60009054906101000a900460ff16600381111561213557612134614264565b5b14612175576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161216c90614eed565b60405180910390fd5b600284601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546121c291906146a6565b1115612203576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121fa90614f7f565b60405180910390fd5b836014546122119190614f9f565b341015612253576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161224a9061506b565b60405180910390fd5b606f61076161226291906146a6565b8461226b610f02565b61227591906146a6565b11156122b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ad906150d7565b60405180910390fd5b61234c83838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050503373ffffffffffffffffffffffffffffffffffffffff1660001b6040516020016123289190614d4e565b6040516020818303038152906040528051906020012061307590919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146123db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123d290615143565b60405180910390fd5b83601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461242a91906146a6565b9250508190555061243b338561309c565b50505050565b806007600061244e612cd6565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166124fb612cd6565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516125409190613cf5565b60405180910390a35050565b6000806125576127dc565b4761256291906146a6565b9050612577838261257286611f9a565b613180565b915050919050565b606f81565b61258f8484846110ea565b60008373ffffffffffffffffffffffffffffffffffffffff163b146125f1576125ba848484846131ee565b6125f0576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6000806126038461278d565b8473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161263c9190613e1b565b602060405180830381865afa158015612659573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061267d9190615178565b61268791906146a6565b905061269d83826126988787611422565b613180565b91505092915050565b60606126b182612c77565b6126e7576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006126f161333e565b90506000815103612711576040518060200160405280600081525061273c565b8061271b846133d0565b60405160200161272c9291906151d6565b6040516020818303038152906040525b915050919050565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60145481565b6000600a54905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600181565b803373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146128ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128e590614a6a565b60405180910390fd5b60008111612931576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292890614ad6565b60405180910390fd5b6115b38161293d610f02565b61294791906146a6565b1115612988576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161297f90614b68565b60405180910390fd5b60038081111561299b5761299a614264565b5b601b60009054906101000a900460ff1660038111156129bd576129bc614264565b5b146129fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f490615246565b60405180910390fd5b600382601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612a4a91906146a6565b1115612a8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a82906152d8565b60405180910390fd5b81601254612a999190614f9f565b341015612adb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ad29061506b565b60405180910390fd5b6115b382612ae7610f02565b612af191906146a6565b1115612b32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b2990615344565b60405180910390fd5b81601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612b8191906146a6565b92505081905550612b92338361309c565b5050565b612b9e612ddb565b80601760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b612bea612ddb565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612c59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c50906153d6565b60405180910390fd5b612c62816130ba565b50565b612c6d612ddb565b80601a8190555050565b600081612c82612cde565b11158015612c91575060005482105b8015612ccf575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b80471015612d2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d2190615442565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612d5090615493565b60006040518083038185875af1925050503d8060008114612d8d576040519150601f19603f3d011682016040523d82523d6000602084013e612d92565b606091505b5050905080612dd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dcd9061551a565b60405180910390fd5b505050565b612de3610c13565b73ffffffffffffffffffffffffffffffffffffffff16612e01611d50565b73ffffffffffffffffffffffffffffffffffffffff1614612e57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e4e90615586565b60405180910390fd5b565b60008082905080612e68612cde565b11612eee57600054811015612eed5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612eeb575b60008103612ee1576004600083600190039350838152602001908152602001600020549050612eb7565b8092505050612f20565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612fad868684613420565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6130708363a9059cbb60e01b848460405160240161300e929190613c18565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613429565b505050565b600080600061308485856134f0565b9150915061309181613541565b819250505092915050565b6130b68282604051806020016040528060008152506136a7565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081600954600b60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054856131d19190614f9f565b6131db91906155d5565b6131e59190615606565b90509392505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613214612cd6565b8786866040518563ffffffff1660e01b8152600401613236949392919061568f565b6020604051808303816000875af192505050801561327257506040513d601f19601f8201168201806040525081019061326f91906156f0565b60015b6132eb573d80600081146132a2576040519150601f19603f3d011682016040523d82523d6000602084013e6132a7565b606091505b5060008151036132e3576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60606010805461334d90614522565b80601f016020809104026020016040519081016040528092919081815260200182805461337990614522565b80156133c65780601f1061339b576101008083540402835291602001916133c6565b820191906000526020600020905b8154815290600101906020018083116133a957829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b60011561340b57600184039350600a81066030018453600a81049050806133e9575b50828103602084039350808452505050919050565b60009392505050565b600061348b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166137449092919063ffffffff16565b90506000815111156134eb57808060200190518101906134ab9190615732565b6134ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134e1906157d1565b60405180910390fd5b5b505050565b60008060418351036135315760008060006020860151925060408601519150606086015160001a90506135258782858561375c565b9450945050505061353a565b60006002915091505b9250929050565b6000600481111561355557613554614264565b5b81600481111561356857613567614264565b5b03156136a4576001600481111561358257613581614264565b5b81600481111561359557613594614264565b5b036135d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135cc9061583d565b60405180910390fd5b600260048111156135e9576135e8614264565b5b8160048111156135fc576135fb614264565b5b0361363c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613633906158a9565b60405180910390fd5b600360048111156136505761364f614264565b5b81600481111561366357613662614264565b5b036136a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161369a9061593b565b60405180910390fd5b5b50565b6136b1838361383e565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461373f57600080549050600083820390505b6136f160008683806001019450866131ee565b613727576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106136de57816000541461373c57600080fd5b50505b505050565b606061375384846000856139f9565b90509392505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613797576000600391509150613835565b6000600187878787604051600081526020016040526040516137bc9493929190615986565b6020604051602081039080840390855afa1580156137de573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361382c57600060019250925050613835565b80600092509250505b94509492505050565b6000805490506000820361387e576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61388b6000848385612f90565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613902836138f36000866000612f96565b6138fc85613ac6565b17612fbe565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146139a357808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613968565b50600082036139de576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506139f46000848385612fe9565b505050565b606082471015613a3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a3590615a3d565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051613a679190615a8e565b60006040518083038185875af1925050503d8060008114613aa4576040519150601f19603f3d011682016040523d82523d6000602084013e613aa9565b606091505b5091509150613aba87838387613ad6565b92505050949350505050565b60006001821460e11b9050919050565b60608315613b38576000835103613b3057613af085613b4b565b613b2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b2690615af1565b60405180910390fd5b5b829050613b43565b613b428383613b6e565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082511115613b815781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613bb59190613da0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613be982613bbe565b9050919050565b613bf981613bde565b82525050565b6000819050919050565b613c1281613bff565b82525050565b6000604082019050613c2d6000830185613bf0565b613c3a6020830184613c09565b9392505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613c8a81613c55565b8114613c9557600080fd5b50565b600081359050613ca781613c81565b92915050565b600060208284031215613cc357613cc2613c4b565b5b6000613cd184828501613c98565b91505092915050565b60008115159050919050565b613cef81613cda565b82525050565b6000602082019050613d0a6000830184613ce6565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613d4a578082015181840152602081019050613d2f565b60008484015250505050565b6000601f19601f8301169050919050565b6000613d7282613d10565b613d7c8185613d1b565b9350613d8c818560208601613d2c565b613d9581613d56565b840191505092915050565b60006020820190508181036000830152613dba8184613d67565b905092915050565b613dcb81613bff565b8114613dd657600080fd5b50565b600081359050613de881613dc2565b92915050565b600060208284031215613e0457613e03613c4b565b5b6000613e1284828501613dd9565b91505092915050565b6000602082019050613e306000830184613bf0565b92915050565b613e3f81613bde565b8114613e4a57600080fd5b50565b600081359050613e5c81613e36565b92915050565b60008060408385031215613e7957613e78613c4b565b5b6000613e8785828601613e4d565b9250506020613e9885828601613dd9565b9150509250929050565b6000602082019050613eb76000830184613c09565b92915050565b6000613ec882613bbe565b9050919050565b613ed881613ebd565b8114613ee357600080fd5b50565b600081359050613ef581613ecf565b92915050565b600060208284031215613f1157613f10613c4b565b5b6000613f1f84828501613ee6565b91505092915050565b600060208284031215613f3e57613f3d613c4b565b5b6000613f4c84828501613e4d565b91505092915050565b600080600060608486031215613f6e57613f6d613c4b565b5b6000613f7c86828701613e4d565b9350506020613f8d86828701613e4d565b9250506040613f9e86828701613dd9565b9150509250925092565b6000613fb382613bde565b9050919050565b613fc381613fa8565b8114613fce57600080fd5b50565b600081359050613fe081613fba565b92915050565b60008060408385031215613ffd57613ffc613c4b565b5b600061400b85828601613fd1565b925050602061401c85828601613e4d565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61406882613d56565b810181811067ffffffffffffffff8211171561408757614086614030565b5b80604052505050565b600061409a613c41565b90506140a6828261405f565b919050565b600067ffffffffffffffff8211156140c6576140c5614030565b5b6140cf82613d56565b9050602081019050919050565b82818337600083830152505050565b60006140fe6140f9846140ab565b614090565b90508281526020810184848401111561411a5761411961402b565b5b6141258482856140dc565b509392505050565b600082601f83011261414257614141614026565b5b81356141528482602086016140eb565b91505092915050565b60006020828403121561417157614170613c4b565b5b600082013567ffffffffffffffff81111561418f5761418e613c50565b5b61419b8482850161412d565b91505092915050565b600080fd5b600080fd5b60008083601f8401126141c4576141c3614026565b5b8235905067ffffffffffffffff8111156141e1576141e06141a4565b5b6020830191508360018202830111156141fd576141fc6141a9565b5b9250929050565b60008060006040848603121561421d5761421c613c4b565b5b600061422b86828701613dd9565b935050602084013567ffffffffffffffff81111561424c5761424b613c50565b5b614258868287016141ae565b92509250509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600481106142a4576142a3614264565b5b50565b60008190506142b582614293565b919050565b60006142c5826142a7565b9050919050565b6142d5816142ba565b82525050565b60006020820190506142f060008301846142cc565b92915050565b6142ff81613cda565b811461430a57600080fd5b50565b60008135905061431c816142f6565b92915050565b6000806040838503121561433957614338613c4b565b5b600061434785828601613e4d565b92505060206143588582860161430d565b9150509250929050565b600067ffffffffffffffff82111561437d5761437c614030565b5b61438682613d56565b9050602081019050919050565b60006143a66143a184614362565b614090565b9050828152602081018484840111156143c2576143c161402b565b5b6143cd8482856140dc565b509392505050565b600082601f8301126143ea576143e9614026565b5b81356143fa848260208601614393565b91505092915050565b6000806000806080858703121561441d5761441c613c4b565b5b600061442b87828801613e4d565b945050602061443c87828801613e4d565b935050604061444d87828801613dd9565b925050606085013567ffffffffffffffff81111561446e5761446d613c50565b5b61447a878288016143d5565b91505092959194509250565b60006020828403121561449c5761449b613c4b565b5b60006144aa84828501613fd1565b91505092915050565b600080604083850312156144ca576144c9613c4b565b5b60006144d885828601613e4d565b92505060206144e985828601613e4d565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061453a57607f821691505b60208210810361454d5761454c6144f3565b5b50919050565b7f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060008201527f7368617265730000000000000000000000000000000000000000000000000000602082015250565b60006145af602683613d1b565b91506145ba82614553565b604082019050919050565b600060208201905081810360008301526145de816145a2565b9050919050565b7f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060008201527f647565207061796d656e74000000000000000000000000000000000000000000602082015250565b6000614641602b83613d1b565b915061464c826145e5565b604082019050919050565b6000602082019050818103600083015261467081614634565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006146b182613bff565b91506146bc83613bff565b92508282019050808211156146d4576146d3614677565b5b92915050565b6000819050919050565b60006146ff6146fa6146f584613bbe565b6146da565b613bbe565b9050919050565b6000614711826146e4565b9050919050565b600061472382614706565b9050919050565b61473381614718565b82525050565b600060408201905061474e600083018561472a565b61475b6020830184613c09565b9392505050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026147c47fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614787565b6147ce8683614787565b95508019841693508086168417925050509392505050565b60006148016147fc6147f784613bff565b6146da565b613bff565b9050919050565b6000819050919050565b61481b836147e6565b61482f61482782614808565b848454614794565b825550505050565b600090565b614844614837565b61484f818484614812565b505050565b5b818110156148735761486860008261483c565b600181019050614855565b5050565b601f8211156148b85761488981614762565b61489284614777565b810160208510156148a1578190505b6148b56148ad85614777565b830182614854565b50505b505050565b600082821c905092915050565b60006148db600019846008026148bd565b1980831691505092915050565b60006148f483836148ca565b9150826002028217905092915050565b61490d82613d10565b67ffffffffffffffff81111561492657614925614030565b5b6149308254614522565b61493b828285614877565b600060209050601f83116001811461496e576000841561495c578287015190505b61496685826148e8565b8655506149ce565b601f19841661497c86614762565b60005b828110156149a45784890151825560018201915060208501945060208101905061497f565b868310156149c157848901516149bd601f8916826148ca565b8355505b6001600288020188555050505b505050505050565b60006149e182613bff565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614a1357614a12614677565b5b600182019050919050565b7f4f6e6c792068756d616e732061726520616c6c6f77656420746f206d696e7421600082015250565b6000614a54602083613d1b565b9150614a5f82614a1e565b602082019050919050565b60006020820190508181036000830152614a8381614a47565b9050919050565b7f43616e2774206d696e74207a65726f2100000000000000000000000000000000600082015250565b6000614ac0601083613d1b565b9150614acb82614a8a565b602082019050919050565b60006020820190508181036000830152614aef81614ab3565b9050919050565b7f546865726520617265206e6f206d6f7265204e46547320617661696c61626c6560008201527f2100000000000000000000000000000000000000000000000000000000000000602082015250565b6000614b52602183613d1b565b9150614b5d82614af6565b604082019050919050565b60006020820190508181036000830152614b8181614b45565b9050919050565b7f5649502073616c6520697320696e616374697665210000000000000000000000600082015250565b6000614bbe601583613d1b565b9150614bc982614b88565b602082019050919050565b60006020820190508181036000830152614bed81614bb1565b9050919050565b7f43616e2774206d696e742074686174206d616e79206f76657220564950210000600082015250565b6000614c2a601e83613d1b565b9150614c3582614bf4565b602082019050919050565b60006020820190508181036000830152614c5981614c1d565b9050919050565b7f5649502073616c6520697320736f6c64206f7574210000000000000000000000600082015250565b6000614c96601583613d1b565b9150614ca182614c60565b602082019050919050565b60006020820190508181036000830152614cc581614c89565b9050919050565b600081905092915050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000614d0d601c83614ccc565b9150614d1882614cd7565b601c82019050919050565b6000819050919050565b6000819050919050565b614d48614d4382614d23565b614d2d565b82525050565b6000614d5982614d00565b9150614d658284614d37565b60208201915081905092915050565b7f4e6f742061205649502100000000000000000000000000000000000000000000600082015250565b6000614daa600a83613d1b565b9150614db582614d74565b602082019050919050565b60006020820190508181036000830152614dd981614d9d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f546865207465616d20737570706c792077617320616c7265616479206d696e7460008201527f6564210000000000000000000000000000000000000000000000000000000000602082015250565b6000614e6b602383613d1b565b9150614e7682614e0f565b604082019050919050565b60006020820190508181036000830152614e9a81614e5e565b9050919050565b7f57686974656c6973742073616c6520697320696e616374697665210000000000600082015250565b6000614ed7601b83613d1b565b9150614ee282614ea1565b602082019050919050565b60006020820190508181036000830152614f0681614eca565b9050919050565b7f43616e2774206d696e742074686174206d616e79206f7665722077686974656c60008201527f6973742100000000000000000000000000000000000000000000000000000000602082015250565b6000614f69602483613d1b565b9150614f7482614f0d565b604082019050919050565b60006020820190508181036000830152614f9881614f5c565b9050919050565b6000614faa82613bff565b9150614fb583613bff565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614fee57614fed614677565b5b828202905092915050565b7f5468652065746865722076616c75652073656e74206973206e6f7420636f727260008201527f6563742100000000000000000000000000000000000000000000000000000000602082015250565b6000615055602483613d1b565b915061506082614ff9565b604082019050919050565b6000602082019050818103600083015261508481615048565b9050919050565b7f57686974656c6973742073616c6520697320736f6c64206f7574210000000000600082015250565b60006150c1601b83613d1b565b91506150cc8261508b565b602082019050919050565b600060208201905081810360008301526150f0816150b4565b9050919050565b7f4e6f74206f6e2077686974656c69737421000000000000000000000000000000600082015250565b600061512d601183613d1b565b9150615138826150f7565b602082019050919050565b6000602082019050818103600083015261515c81615120565b9050919050565b60008151905061517281613dc2565b92915050565b60006020828403121561518e5761518d613c4b565b5b600061519c84828501615163565b91505092915050565b60006151b082613d10565b6151ba8185614ccc565b93506151ca818560208601613d2c565b80840191505092915050565b60006151e282856151a5565b91506151ee82846151a5565b91508190509392505050565b7f5075626c69632073616c6520697320696e616374697665210000000000000000600082015250565b6000615230601883613d1b565b915061523b826151fa565b602082019050919050565b6000602082019050818103600083015261525f81615223565b9050919050565b7f43616e2774206d696e742074686174206d616e79206f766572207075626c696360008201527f2100000000000000000000000000000000000000000000000000000000000000602082015250565b60006152c2602183613d1b565b91506152cd82615266565b604082019050919050565b600060208201905081810360008301526152f1816152b5565b9050919050565b7f5075626c69632073616c6520697320736f6c64206f7574210000000000000000600082015250565b600061532e601883613d1b565b9150615339826152f8565b602082019050919050565b6000602082019050818103600083015261535d81615321565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006153c0602683613d1b565b91506153cb82615364565b604082019050919050565b600060208201905081810360008301526153ef816153b3565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b600061542c601d83613d1b565b9150615437826153f6565b602082019050919050565b6000602082019050818103600083015261545b8161541f565b9050919050565b600081905092915050565b50565b600061547d600083615462565b91506154888261546d565b600082019050919050565b600061549e82615470565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000615504603a83613d1b565b915061550f826154a8565b604082019050919050565b60006020820190508181036000830152615533816154f7565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615570602083613d1b565b915061557b8261553a565b602082019050919050565b6000602082019050818103600083015261559f81615563565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006155e082613bff565b91506155eb83613bff565b9250826155fb576155fa6155a6565b5b828204905092915050565b600061561182613bff565b915061561c83613bff565b925082820390508181111561563457615633614677565b5b92915050565b600081519050919050565b600082825260208201905092915050565b60006156618261563a565b61566b8185615645565b935061567b818560208601613d2c565b61568481613d56565b840191505092915050565b60006080820190506156a46000830187613bf0565b6156b16020830186613bf0565b6156be6040830185613c09565b81810360608301526156d08184615656565b905095945050505050565b6000815190506156ea81613c81565b92915050565b60006020828403121561570657615705613c4b565b5b6000615714848285016156db565b91505092915050565b60008151905061572c816142f6565b92915050565b60006020828403121561574857615747613c4b565b5b60006157568482850161571d565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b60006157bb602a83613d1b565b91506157c68261575f565b604082019050919050565b600060208201905081810360008301526157ea816157ae565b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000615827601883613d1b565b9150615832826157f1565b602082019050919050565b600060208201905081810360008301526158568161581a565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000615893601f83613d1b565b915061589e8261585d565b602082019050919050565b600060208201905081810360008301526158c281615886565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615925602283613d1b565b9150615930826158c9565b604082019050919050565b6000602082019050818103600083015261595481615918565b9050919050565b61596481614d23565b82525050565b600060ff82169050919050565b6159808161596a565b82525050565b600060808201905061599b600083018761595b565b6159a86020830186615977565b6159b5604083018561595b565b6159c2606083018461595b565b95945050505050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000615a27602683613d1b565b9150615a32826159cb565b604082019050919050565b60006020820190508181036000830152615a5681615a1a565b9050919050565b6000615a688261563a565b615a728185615462565b9350615a82818560208601613d2c565b80840191505092915050565b6000615a9a8284615a5d565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000615adb601d83613d1b565b9150615ae682615aa5565b602082019050919050565b60006020820190508181036000830152615b0a81615ace565b905091905056fea26469706673582212201cbaf2067193e081a2caffecce97a60f109b3b0d3aa091b898c6054f786d3a4f64736f6c63430008100033

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

00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000dfd8881c732d2607792fffff9fa3dc7c638906460000000000000000000000008dde2bc47081e32e80ab48f1b5602fc89df9c1d1000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d645848704433643362424b373732366b6644686962714d786538466f4a7065727a756a686151736d4551444c2f00000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000011bbbef2bd9846f70482db5eb5cf216ad70d1042000000000000000000000000a723b1e8bc0b3a495aa912683b244842ffc7d17f0000000000000000000000009144381b6c0907094cd762d3640217b13c6c4bec00000000000000000000000028d38c6d7fd891b3f858b37a71da0e9dfd2dbf2e0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000002d

-----Decoded View---------------
Arg [0] : _initialBaseURI (string): ipfs://QmdXHpD3d3bBK7726kfDhibqMxe8FoJperzujhaQsmEQDL/
Arg [1] : signerAddressWhitelist_ (address): 0xDfd8881C732D2607792FFFFf9fa3Dc7C63890646
Arg [2] : signerAddressVip_ (address): 0x8DDE2BC47081E32e80Ab48f1B5602Fc89DF9c1d1
Arg [3] : payments (address[]): 0x11bbbeF2BD9846f70482db5eB5CF216ad70D1042,0xA723b1E8Bc0B3A495aa912683b244842Ffc7d17f,0x9144381b6C0907094Cd762D3640217b13c6C4bEC,0x28d38c6d7fD891b3f858B37a71Da0E9DFd2DBf2E
Arg [4] : shares (uint256[]): 15,10,30,45

-----Encoded View---------------
18 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 000000000000000000000000dfd8881c732d2607792fffff9fa3dc7c63890646
Arg [2] : 0000000000000000000000008dde2bc47081e32e80ab48f1b5602fc89df9c1d1
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [6] : 697066733a2f2f516d645848704433643362424b373732366b6644686962714d
Arg [7] : 786538466f4a7065727a756a686151736d4551444c2f00000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [9] : 00000000000000000000000011bbbef2bd9846f70482db5eb5cf216ad70d1042
Arg [10] : 000000000000000000000000a723b1e8bc0b3a495aa912683b244842ffc7d17f
Arg [11] : 0000000000000000000000009144381b6c0907094cd762d3640217b13c6c4bec
Arg [12] : 00000000000000000000000028d38c6d7fd891b3f858b37a71da0e9dfd2dbf2e
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [14] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [15] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [16] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [17] : 000000000000000000000000000000000000000000000000000000000000002d


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

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