ETH Price: $2,275.64 (-4.54%)

Token

1Eye Ent Phase 1 (1EE)
 

Overview

Max Total Supply

102 1EE

Holders

20

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
magooush.eth
0xd58c95d98badd1c8ae832ee0994de54596951011
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:
OneEyeEntPhaseOne

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
No with 200 runs

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

pragma solidity >=0.7.0 <0.9.0;

import "lib/openzeppelin-contracts/contracts/token/ERC1155/ERC1155.sol";
import "lib/openzeppelin-contracts/contracts/access/Ownable.sol";
import "lib/openzeppelin-contracts/contracts/utils/cryptography/MerkleProof.sol";
import "lib/operator-filter-registry/src/DefaultOperatorFilterer.sol";
import "lib/openzeppelin-contracts/contracts/security/ReentrancyGuard.sol";

import "lib/openzeppelin-contracts/contracts/utils/Strings.sol";

error BadMintState();
error MaxMintPerWallet();
error SoldOut();
error BadProof();
error InsufficientFunds();
error CannotIncreaseSupply();
error SupplyMustBeMultipleOfThree();

contract OneEyeEntPhaseOne is
    ERC1155,
    Ownable,
    ReentrancyGuard,
    DefaultOperatorFilterer
{
    string public name;
    string public symbol;
    string public contractURI;
    uint256 public maxSupply = 294;
    uint256 public cost = 0 ether;
    uint256 public maxPerWallet = 2;
    mapping(address => uint256) public walletMintCounts;
    uint256 public mintedSupply;
    bytes32 public allowlistMerkleRoot =
        0x9f1746b61ea43e16e58584ded0371a2e2e160b85d38d99a7b13132ec6ed1173a;
    bytes32 public teamMerkleRoot =
        0x068605bf098ce1c161665eb1fa8b714fece08e2bd3746f7ad5074959fb228d91;
    MintState public mintState = MintState.DISABLED;
    address public fundsReceiver = 0x95ee3143BA1E2fD4DbF8287b4b15936197B89Ddd;
    address public communityWallet = 0x6c7b02D483C233A7D3De215b21248857A978b496;

    struct Config {
        uint256 mintState;
        uint256 cost;
        uint256 maxSupply;
        uint256 mintedSupply;
    }

    enum MintState {
        DISABLED,
        ALLOW,
        PUBLIC
    }

    constructor(string memory _contractURI, string memory _uri) ERC1155("") {
        name = "1Eye Ent Phase 1";
        symbol = "1EE";
        contractURI = _contractURI;
        _setURI(_uri);
    }

    // Minting Setters

    function setAllowlistMerkleRoot(bytes32 _merkleRoot) public onlyOwner {
        allowlistMerkleRoot = _merkleRoot;
    }

    function setTeamMerkleRoot(bytes32 _merkleRoot) public onlyOwner {
        teamMerkleRoot = _merkleRoot;
    }

    function setCost(uint256 _cost) public onlyOwner {
        cost = _cost;
    }

    function setMaxSupply(uint256 _maxSupply) public onlyOwner {
        if (_maxSupply > maxSupply) {
            revert CannotIncreaseSupply();
        }
        if (_maxSupply % 3 != 0) {
            revert SupplyMustBeMultipleOfThree();
        }
        maxSupply = _maxSupply;
    }

    function setMaxPerWallet(uint256 _newperwallet) public onlyOwner {
        maxPerWallet = _newperwallet;
    }

    function setMintState(MintState _mintState) public onlyOwner {
        mintState = _mintState;
    }

    // Metadata Setters

    function setURI(string memory _uri) external onlyOwner {
        _setURI(_uri);
    }

    function setContractURI(string memory _contractURI) external onlyOwner {
        contractURI = _contractURI;
    }

    // Minting functions

    modifier ensureMintState(MintState _mintState) {
        if (mintState != _mintState) {
            revert BadMintState();
        }
        _;
    }

    modifier checkSupply() {
        if (walletMintCounts[msg.sender] >= maxPerWallet) {
            revert MaxMintPerWallet();
        }

        if (mintedSupply + 3 > maxSupply) {
            revert SoldOut();
        }
        _;
    }

    modifier checkFunds() {
        if (msg.value != cost) {
            revert InsufficientFunds();
        }
        _;
    }

    modifier checkProof(bytes32[] calldata proof, bytes32 root) {
        if (
            !MerkleProof.verify(
                proof,
                root,
                keccak256(bytes.concat(keccak256(abi.encode(msg.sender))))
            )
        ) {
            revert BadProof();
        }
        _;
    }

    function _commonMint() internal {
        _mint(msg.sender, 1, 1, "");
        _mint(msg.sender, 2, 1, "");
        _mint(msg.sender, 3, 1, "");
        walletMintCounts[msg.sender] += 1;
        mintedSupply += 3;
    }

    function communityWalletMint() external onlyOwner {
        if (mintedSupply + 30 > maxSupply) {
            revert SoldOut();
        }

        _mint(communityWallet, 1, 10, "");
        _mint(communityWallet, 2, 10, "");
        _mint(communityWallet, 3, 10, "");
        walletMintCounts[communityWallet] += 10;
        mintedSupply += 30;
    }

    function teamMint(
        bytes32[] calldata proof
    )
        external
        ensureMintState(MintState.ALLOW)
        checkSupply
        checkProof(proof, teamMerkleRoot)
    {
        _commonMint();
    }

    function allowlistMint(
        bytes32[] calldata proof
    )
        external
        payable
        ensureMintState(MintState.ALLOW)
        checkSupply
        checkFunds
        checkProof(proof, allowlistMerkleRoot)
    {
        _commonMint();
    }

    function publicMint()
        external
        payable
        ensureMintState(MintState.PUBLIC)
        checkSupply
        checkFunds
    {
        _commonMint();
    }

    // Transfers

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        uint256 amount,
        bytes memory data
    ) public override onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId, amount, data);
    }

    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override onlyAllowedOperator(from) {
        super.safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    // Misc

    function burn(uint256 _id, uint256 _amount) external {
        _burn(msg.sender, _id, _amount);
    }

    function withdraw() public onlyOwner {
        uint256 _balance = address(this).balance;
        payable(fundsReceiver).transfer(_balance);
    }

    function getConfig() external view returns (Config memory) {
        Config memory config = Config({
            mintState: uint8(mintState),
            cost: cost,
            maxSupply: maxSupply,
            mintedSupply: mintedSupply
        });

        return config;
    }
}

File 2 of 19 : 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. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

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

File 3 of 19 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

File 4 of 19 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: address zero is not a valid owner");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(
        address[] memory accounts,
        uint256[] memory ids
    ) public view virtual override returns (uint256[] memory) {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not token owner or approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not token owner or approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(address to, uint256 id, uint256 amount, bytes memory data) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        _balances[id][to] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `amount` tokens of token type `id`.
     */
    function _burn(address from, uint256 id, uint256 amount) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(address from, uint256[] memory ids, uint256[] memory amounts) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(address owner, address operator, bool approved) internal virtual {
        require(owner != operator, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `ids` and `amounts` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    /**
     * @dev Hook that is called after any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non-ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non-ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 5 of 19 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 6 of 19 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(
        address[] calldata accounts,
        uint256[] calldata ids
    ) external view returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 7 of 19 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 8 of 19 : 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
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [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://consensys.net/diligence/blog/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 9 of 19 : 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 10 of 19 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            unchecked {
                return hashes[totalHashes - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            unchecked {
                return hashes[totalHashes - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 13 of 19 : 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) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 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 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

File 14 of 19 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

File 15 of 19 : 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";
import "./math/SignedMath.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 `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        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);
    }

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

File 16 of 19 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";
import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol";
/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 * @dev    Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract DefaultOperatorFilterer is OperatorFilterer {
    /// @dev The constructor that is called when the contract is being deployed.
    constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {}
}

File 17 of 19 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    /**
     * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns
     *         true if supplied registrant address is not registered.
     */
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);

    /**
     * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner.
     */
    function register(address registrant) external;

    /**
     * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes.
     */
    function registerAndSubscribe(address registrant, address subscription) external;

    /**
     * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another
     *         address without subscribing.
     */
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;

    /**
     * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner.
     *         Note that this does not remove any filtered addresses or codeHashes.
     *         Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes.
     */
    function unregister(address addr) external;

    /**
     * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered.
     */
    function updateOperator(address registrant, address operator, bool filtered) external;

    /**
     * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates.
     */
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;

    /**
     * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered.
     */
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;

    /**
     * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates.
     */
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;

    /**
     * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous
     *         subscription if present.
     *         Note that accounts with subscriptions may go on to subscribe to other accounts - in this case,
     *         subscriptions will not be forwarded. Instead the former subscription's existing entries will still be
     *         used.
     */
    function subscribe(address registrant, address registrantToSubscribe) external;

    /**
     * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes.
     */
    function unsubscribe(address registrant, bool copyExistingEntries) external;

    /**
     * @notice Get the subscription address of a given registrant, if any.
     */
    function subscriptionOf(address addr) external returns (address registrant);

    /**
     * @notice Get the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscribers(address registrant) external returns (address[] memory);

    /**
     * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscriberAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr.
     */
    function copyEntriesOf(address registrant, address registrantToCopy) external;

    /**
     * @notice Returns true if operator is filtered by a given address or its subscription.
     */
    function isOperatorFiltered(address registrant, address operator) external returns (bool);

    /**
     * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription.
     */
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);

    /**
     * @notice Returns true if a codeHash is filtered by a given address or its subscription.
     */
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);

    /**
     * @notice Returns a list of filtered operators for a given address or its subscription.
     */
    function filteredOperators(address addr) external returns (address[] memory);

    /**
     * @notice Returns the set of filtered codeHashes for a given address or its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);

    /**
     * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);

    /**
     * @notice Returns true if an address has registered
     */
    function isRegistered(address addr) external returns (bool);

    /**
     * @dev Convenience method to compute the code hash of an arbitrary contract
     */
    function codeHashOf(address addr) external returns (bytes32);
}

File 18 of 19 : Constants.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E;
address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;

File 19 of 19 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";
import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol";
/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 *         Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract OperatorFilterer {
    /// @dev Emitted when an operator is not allowed.
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS);

    /// @dev The constructor that is called when the contract is being deployed.
    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    /**
     * @dev A helper function to check if an operator approval is allowed.
     */
    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            // under normal circumstances, this function will revert rather than return false, but inheriting contracts
            // may specify their own OperatorFilterRegistry implementations, which may behave differently
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_contractURI","type":"string"},{"internalType":"string","name":"_uri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"BadMintState","type":"error"},{"inputs":[],"name":"BadProof","type":"error"},{"inputs":[],"name":"CannotIncreaseSupply","type":"error"},{"inputs":[],"name":"InsufficientFunds","type":"error"},{"inputs":[],"name":"MaxMintPerWallet","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"SoldOut","type":"error"},{"inputs":[],"name":"SupplyMustBeMultipleOfThree","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowlistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"allowlistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"communityWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"communityWalletMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fundsReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getConfig","outputs":[{"components":[{"internalType":"uint256","name":"mintState","type":"uint256"},{"internalType":"uint256","name":"cost","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"mintedSupply","type":"uint256"}],"internalType":"struct OneEyeEntPhaseOne.Config","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintState","outputs":[{"internalType":"enum OneEyeEntPhaseOne.MintState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"publicMint","outputs":[],"stateMutability":"payable","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":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setAllowlistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newperwallet","type":"uint256"}],"name":"setMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum OneEyeEntPhaseOne.MintState","name":"_mintState","type":"uint8"}],"name":"setMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setTeamMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"teamMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"teamMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"walletMintCounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405261012660085560006009556002600a557f9f1746b61ea43e16e58584ded0371a2e2e160b85d38d99a7b13132ec6ed1173a60001b600d557f068605bf098ce1c161665eb1fa8b714fece08e2bd3746f7ad5074959fb228d9160001b600e556000600f60006101000a81548160ff021916908360028111156200008b576200008a62000561565b5b02179055507395ee3143ba1e2fd4dbf8287b4b15936197b89ddd600f60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550736c7b02d483c233a7d3de215b21248857a978b496601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200014757600080fd5b506040516200576d3803806200576d83398181016040528101906200016d919062000723565b733cc6cdda760b79bafa08df41ecfa224f810dceb6600160405180602001604052806000815250620001a5816200047e60201b60201c565b50620001c6620001ba6200049360201b60201c565b6200049b60201b60201c565b600160048190555060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115620003c357801562000289576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b81526004016200024f929190620007ed565b600060405180830381600087803b1580156200026a57600080fd5b505af11580156200027f573d6000803e3d6000fd5b50505050620003c2565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161462000343576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b815260040162000309929190620007ed565b600060405180830381600087803b1580156200032457600080fd5b505af115801562000339573d6000803e3d6000fd5b50505050620003c1565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b81526004016200038c91906200081a565b600060405180830381600087803b158015620003a757600080fd5b505af1158015620003bc573d6000803e3d6000fd5b505050505b5b5b50506040518060400160405280601081526020017f3145796520456e74205068617365203100000000000000000000000000000000815250600590816200040b919062000a82565b506040518060400160405280600381526020017f31454500000000000000000000000000000000000000000000000000000000008152506006908162000452919062000a82565b50816007908162000464919062000a82565b5062000476816200047e60201b60201c565b505062000b69565b80600290816200048f919062000a82565b5050565b600033905090565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620005f982620005ae565b810181811067ffffffffffffffff821117156200061b576200061a620005bf565b5b80604052505050565b60006200063062000590565b90506200063e8282620005ee565b919050565b600067ffffffffffffffff821115620006615762000660620005bf565b5b6200066c82620005ae565b9050602081019050919050565b60005b83811015620006995780820151818401526020810190506200067c565b60008484015250505050565b6000620006bc620006b68462000643565b62000624565b905082815260208101848484011115620006db57620006da620005a9565b5b620006e884828562000679565b509392505050565b600082601f830112620007085762000707620005a4565b5b81516200071a848260208601620006a5565b91505092915050565b600080604083850312156200073d576200073c6200059a565b5b600083015167ffffffffffffffff8111156200075e576200075d6200059f565b5b6200076c85828601620006f0565b925050602083015167ffffffffffffffff81111562000790576200078f6200059f565b5b6200079e85828601620006f0565b9150509250929050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620007d582620007a8565b9050919050565b620007e781620007c8565b82525050565b6000604082019050620008046000830185620007dc565b620008136020830184620007dc565b9392505050565b6000602082019050620008316000830184620007dc565b92915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200088a57607f821691505b602082108103620008a0576200089f62000842565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200090a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620008cb565b620009168683620008cb565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620009636200095d62000957846200092e565b62000938565b6200092e565b9050919050565b6000819050919050565b6200097f8362000942565b620009976200098e826200096a565b848454620008d8565b825550505050565b600090565b620009ae6200099f565b620009bb81848462000974565b505050565b5b81811015620009e357620009d7600082620009a4565b600181019050620009c1565b5050565b601f82111562000a3257620009fc81620008a6565b62000a0784620008bb565b8101602085101562000a17578190505b62000a2f62000a2685620008bb565b830182620009c0565b50505b505050565b600082821c905092915050565b600062000a576000198460080262000a37565b1980831691505092915050565b600062000a72838362000a44565b9150826002028217905092915050565b62000a8d8262000837565b67ffffffffffffffff81111562000aa95762000aa8620005bf565b5b62000ab5825462000871565b62000ac2828285620009e7565b600060209050601f83116001811462000afa576000841562000ae5578287015190505b62000af1858262000a64565b86555062000b61565b601f19841662000b0a86620008a6565b60005b8281101562000b345784890151825560018201915060208501945060208101905062000b0d565b8683101562000b54578489015162000b50601f89168262000a44565b8355505b6001600288020188555050505b505050505050565b614bf48062000b796000396000f3fe6080604052600436106102395760003560e01c80638da5cb5b1161012e578063cb30bc2e116100ab578063e985e9c51161006f578063e985e9c5146107f9578063f11cb0af14610836578063f242432a1461085f578063f2fde38b14610888578063f95df414146108b157610239565b8063cb30bc2e14610728578063d5abeb0114610751578063dc47dced1461077c578063e268e4d3146107a5578063e8a3d485146107ce57610239565b8063b390c0ab116100f2578063b390c0ab14610653578063c051e38a1461067c578063c1bd8cf9146106a7578063c3f909d4146106d2578063c7574839146106fd57610239565b80638da5cb5b14610594578063938e3d7b146105bf57806395d89b41146105e8578063989cc60014610613578063a22cb4651461062a57610239565b8063293108e0116101bc578063453c231011610180578063453c2310146104d05780634e1273f4146104fb578063537924ef146105385780636f8b44b014610554578063715018a61461057d57610239565b8063293108e0146104115780632eb2c2d61461043c5780633ccfd60b1461046557806341f434341461047c57806344a0d68a146104a757610239565b80630e89341c116102035780630e89341c1461034957806313faede61461038657806323c7e09c146103b157806326092b83146103dc57806329140819146103e657610239565b8062a860b01461023e578062fdd58e1461027b57806301ffc9a7146102b857806302fe5305146102f557806306fdde031461031e575b600080fd5b34801561024a57600080fd5b5061026560048036038101906102609190612fd3565b6108da565b6040516102729190613019565b60405180910390f35b34801561028757600080fd5b506102a2600480360381019061029d9190613060565b6108f2565b6040516102af9190613019565b60405180910390f35b3480156102c457600080fd5b506102df60048036038101906102da91906130f8565b6109ba565b6040516102ec9190613140565b60405180910390f35b34801561030157600080fd5b5061031c600480360381019061031791906132a1565b610a9c565b005b34801561032a57600080fd5b50610333610ab0565b6040516103409190613369565b60405180910390f35b34801561035557600080fd5b50610370600480360381019061036b919061338b565b610b3e565b60405161037d9190613369565b60405180910390f35b34801561039257600080fd5b5061039b610bd2565b6040516103a89190613019565b60405180910390f35b3480156103bd57600080fd5b506103c6610bd8565b6040516103d391906133c7565b60405180910390f35b6103e4610bfe565b005b3480156103f257600080fd5b506103fb610d76565b60405161040891906133fb565b60405180910390f35b34801561041d57600080fd5b50610426610d7c565b60405161043391906133fb565b60405180910390f35b34801561044857600080fd5b50610463600480360381019061045e919061357f565b610d82565b005b34801561047157600080fd5b5061047a610dd5565b005b34801561048857600080fd5b50610491610e4e565b60405161049e91906136ad565b60405180910390f35b3480156104b357600080fd5b506104ce60048036038101906104c9919061338b565b610e60565b005b3480156104dc57600080fd5b506104e5610e72565b6040516104f29190613019565b60405180910390f35b34801561050757600080fd5b50610522600480360381019061051d919061378b565b610e78565b60405161052f91906138c1565b60405180910390f35b610552600480360381019061054d919061393e565b610f91565b005b34801561056057600080fd5b5061057b6004803603810190610576919061338b565b6111e1565b005b34801561058957600080fd5b50610592611275565b005b3480156105a057600080fd5b506105a9611289565b6040516105b691906133c7565b60405180910390f35b3480156105cb57600080fd5b506105e660048036038101906105e191906132a1565b6112b3565b005b3480156105f457600080fd5b506105fd6112ce565b60405161060a9190613369565b60405180910390f35b34801561061f57600080fd5b5061062861135c565b005b34801561063657600080fd5b50610651600480360381019061064c91906139b7565b611500565b005b34801561065f57600080fd5b5061067a600480360381019061067591906139f7565b611516565b005b34801561068857600080fd5b50610691611525565b60405161069e9190613aae565b60405180910390f35b3480156106b357600080fd5b506106bc611538565b6040516106c99190613019565b60405180910390f35b3480156106de57600080fd5b506106e761153e565b6040516106f49190613b1e565b60405180910390f35b34801561070957600080fd5b5061071261159c565b60405161071f91906133c7565b60405180910390f35b34801561073457600080fd5b5061074f600480360381019061074a919061393e565b6115c2565b005b34801561075d57600080fd5b506107666117d7565b6040516107739190613019565b60405180910390f35b34801561078857600080fd5b506107a3600480360381019061079e9190613b65565b6117dd565b005b3480156107b157600080fd5b506107cc60048036038101906107c7919061338b565b6117ef565b005b3480156107da57600080fd5b506107e3611801565b6040516107f09190613369565b60405180910390f35b34801561080557600080fd5b50610820600480360381019061081b9190613b92565b61188f565b60405161082d9190613140565b60405180910390f35b34801561084257600080fd5b5061085d60048036038101906108589190613bf7565b611923565b005b34801561086b57600080fd5b5061088660048036038101906108819190613c24565b611958565b005b34801561089457600080fd5b506108af60048036038101906108aa9190612fd3565b6119ab565b005b3480156108bd57600080fd5b506108d860048036038101906108d39190613b65565b611a2e565b005b600b6020528060005260406000206000915090505481565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610962576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095990613d2d565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a8557507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a955750610a9482611a40565b5b9050919050565b610aa4611aaa565b610aad81611b28565b50565b60058054610abd90613d7c565b80601f0160208091040260200160405190810160405280929190818152602001828054610ae990613d7c565b8015610b365780601f10610b0b57610100808354040283529160200191610b36565b820191906000526020600020905b815481529060010190602001808311610b1957829003601f168201915b505050505081565b606060028054610b4d90613d7c565b80601f0160208091040260200160405190810160405280929190818152602001828054610b7990613d7c565b8015610bc65780601f10610b9b57610100808354040283529160200191610bc6565b820191906000526020600020905b815481529060010190602001808311610ba957829003601f168201915b50505050509050919050565b60095481565b600f60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6002806002811115610c1357610c12613a37565b5b600f60009054906101000a900460ff166002811115610c3557610c34613a37565b5b14610c6c576040517f3b4d966800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a54600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410610ce6576040517f7ce6edb800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008546003600c54610cf89190613ddc565b1115610d30576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6009543414610d6b576040517f356680b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d73611b3b565b50565b600e5481565b600d5481565b843373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610dc057610dbf33611c04565b5b610dcd8686868686611d01565b505050505050565b610ddd611aaa565b6000479050600f60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610e4a573d6000803e3d6000fd5b5050565b6daaeb6d7670e522a718067333cd4e81565b610e68611aaa565b8060098190555050565b600a5481565b60608151835114610ebe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb590613e82565b60405180910390fd5b6000835167ffffffffffffffff811115610edb57610eda613176565b5b604051908082528060200260200182016040528015610f095781602001602082028036833780820191505090505b50905060005b8451811015610f8657610f56858281518110610f2e57610f2d613ea2565b5b6020026020010151858381518110610f4957610f48613ea2565b5b60200260200101516108f2565b828281518110610f6957610f68613ea2565b5b60200260200101818152505080610f7f90613ed1565b9050610f0f565b508091505092915050565b6001806002811115610fa657610fa5613a37565b5b600f60009054906101000a900460ff166002811115610fc857610fc7613a37565b5b14610fff576040517f3b4d966800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a54600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410611079576040517f7ce6edb800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008546003600c5461108b9190613ddc565b11156110c3576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60095434146110fe576040517f356680b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8282600d5461119b838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050823360405160200161115a91906133c7565b604051602081830303815290604052805190602001206040516020016111809190613f3a565b60405160208183030381529060405280519060200120611da2565b6111d1576040517f7ca55c7700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111d9611b3b565b505050505050565b6111e9611aaa565b600854811115611225576040517faa8ed68e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006003826112349190613f84565b1461126b576040517f2ef1a83f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060088190555050565b61127d611aaa565b6112876000611db9565b565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6112bb611aaa565b80600790816112ca9190614157565b5050565b600680546112db90613d7c565b80601f016020809104026020016040519081016040528092919081815260200182805461130790613d7c565b80156113545780601f1061132957610100808354040283529160200191611354565b820191906000526020600020905b81548152906001019060200180831161133757829003601f168201915b505050505081565b611364611aaa565b600854601e600c546113769190613ddc565b11156113ae576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113ed601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166001600a60405180602001604052806000815250611e7f565b61142c601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166002600a60405180602001604052806000815250611e7f565b61146b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166003600a60405180602001604052806000815250611e7f565b600a600b6000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546114dd9190613ddc565b92505081905550601e600c60008282546114f79190613ddc565b92505081905550565b61151261150b61202f565b8383612037565b5050565b6115213383836121a3565b5050565b600f60009054906101000a900460ff1681565b600c5481565b611546612f39565b60006040518060800160405280600f60009054906101000a900460ff16600281111561157557611574613a37565b5b60ff16815260200160095481526020016008548152602001600c5481525090508091505090565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60018060028111156115d7576115d6613a37565b5b600f60009054906101000a900460ff1660028111156115f9576115f8613a37565b5b14611630576040517f3b4d966800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a54600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054106116aa576040517f7ce6edb800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008546003600c546116bc9190613ddc565b11156116f4576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8282600e54611791838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050823360405160200161175091906133c7565b604051602081830303815290604052805190602001206040516020016117769190613f3a565b60405160208183030381529060405280519060200120611da2565b6117c7576040517f7ca55c7700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6117cf611b3b565b505050505050565b60085481565b6117e5611aaa565b80600e8190555050565b6117f7611aaa565b80600a8190555050565b6007805461180e90613d7c565b80601f016020809104026020016040519081016040528092919081815260200182805461183a90613d7c565b80156118875780601f1061185c57610100808354040283529160200191611887565b820191906000526020600020905b81548152906001019060200180831161186a57829003601f168201915b505050505081565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61192b611aaa565b80600f60006101000a81548160ff021916908360028111156119505761194f613a37565b5b021790555050565b843373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146119965761199533611c04565b5b6119a386868686866123e9565b505050505050565b6119b3611aaa565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611a22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a199061429b565b60405180910390fd5b611a2b81611db9565b50565b611a36611aaa565b80600d8190555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b611ab261202f565b73ffffffffffffffffffffffffffffffffffffffff16611ad0611289565b73ffffffffffffffffffffffffffffffffffffffff1614611b26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1d90614307565b60405180910390fd5b565b8060029081611b379190614157565b5050565b611b573360018060405180602001604052806000815250611e7f565b611b74336002600160405180602001604052806000815250611e7f565b611b91336003600160405180602001604052806000815250611e7f565b6001600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611be19190613ddc565b925050819055506003600c6000828254611bfb9190613ddc565b92505081905550565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611cfe576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401611c7b929190614327565b602060405180830381865afa158015611c98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cbc9190614365565b611cfd57806040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401611cf491906133c7565b60405180910390fd5b5b50565b611d0961202f565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611d4f5750611d4e85611d4961202f565b61188f565b5b611d8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8590614404565b60405180910390fd5b611d9b858585858561248a565b5050505050565b600082611daf85846127ab565b1490509392505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611eee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee590614496565b60405180910390fd5b6000611ef861202f565b90506000611f0585612801565b90506000611f1285612801565b9050611f238360008985858961287b565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f829190613ddc565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516120009291906144b6565b60405180910390a461201783600089858589612883565b6120268360008989898961288b565b50505050505050565b600033905090565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036120a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209c90614551565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516121969190613140565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612212576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612209906145e3565b60405180910390fd5b600061221c61202f565b9050600061222984612801565b9050600061223684612801565b90506122568387600085856040518060200160405280600081525061287b565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050848110156122ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122e490614675565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516123ba9291906144b6565b60405180910390a46123e084886000868660405180602001604052806000815250612883565b50505050505050565b6123f161202f565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061243757506124368561243161202f565b61188f565b5b612476576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246d90614404565b60405180910390fd5b6124838585858585612a62565b5050505050565b81518351146124ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124c590614707565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361253d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253490614799565b60405180910390fd5b600061254761202f565b905061255781878787878761287b565b60005b845181101561270857600085828151811061257857612577613ea2565b5b60200260200101519050600085838151811061259757612596613ea2565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612638576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161262f9061482b565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126ed9190613ddc565b925050819055505050508061270190613ed1565b905061255a565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161277f92919061484b565b60405180910390a4612795818787878787612883565b6127a3818787878787612cfd565b505050505050565b60008082905060005b84518110156127f6576127e1828683815181106127d4576127d3613ea2565b5b6020026020010151612ed4565b915080806127ee90613ed1565b9150506127b4565b508091505092915050565b60606000600167ffffffffffffffff8111156128205761281f613176565b5b60405190808252806020026020018201604052801561284e5781602001602082028036833780820191505090505b509050828160008151811061286657612865613ea2565b5b60200260200101818152505080915050919050565b505050505050565b505050505050565b6128aa8473ffffffffffffffffffffffffffffffffffffffff16612eff565b15612a5a578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016128f09594939291906148d7565b6020604051808303816000875af192505050801561292c57506040513d601f19601f820116820180604052508101906129299190614946565b60015b6129d157612938614980565b806308c379a003612994575061294c6149a2565b806129575750612996565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161298b9190613369565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129c890614aa4565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612a58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4f90614b36565b60405180910390fd5b505b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612ad1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ac890614799565b60405180910390fd5b6000612adb61202f565b90506000612ae885612801565b90506000612af585612801565b9050612b0583898985858961287b565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015612b9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b939061482b565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c519190613ddc565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051612cce9291906144b6565b60405180910390a4612ce4848a8a86868a612883565b612cf2848a8a8a8a8a61288b565b505050505050505050565b612d1c8473ffffffffffffffffffffffffffffffffffffffff16612eff565b15612ecc578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612d62959493929190614b56565b6020604051808303816000875af1925050508015612d9e57506040513d601f19601f82011682018060405250810190612d9b9190614946565b60015b612e4357612daa614980565b806308c379a003612e065750612dbe6149a2565b80612dc95750612e08565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dfd9190613369565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e3a90614aa4565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612eca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ec190614b36565b60405180910390fd5b505b505050505050565b6000818310612eec57612ee78284612f22565b612ef7565b612ef68383612f22565b5b905092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082600052816020526040600020905092915050565b6040518060800160405280600081526020016000815260200160008152602001600081525090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612fa082612f75565b9050919050565b612fb081612f95565b8114612fbb57600080fd5b50565b600081359050612fcd81612fa7565b92915050565b600060208284031215612fe957612fe8612f6b565b5b6000612ff784828501612fbe565b91505092915050565b6000819050919050565b61301381613000565b82525050565b600060208201905061302e600083018461300a565b92915050565b61303d81613000565b811461304857600080fd5b50565b60008135905061305a81613034565b92915050565b6000806040838503121561307757613076612f6b565b5b600061308585828601612fbe565b92505060206130968582860161304b565b9150509250929050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6130d5816130a0565b81146130e057600080fd5b50565b6000813590506130f2816130cc565b92915050565b60006020828403121561310e5761310d612f6b565b5b600061311c848285016130e3565b91505092915050565b60008115159050919050565b61313a81613125565b82525050565b60006020820190506131556000830184613131565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6131ae82613165565b810181811067ffffffffffffffff821117156131cd576131cc613176565b5b80604052505050565b60006131e0612f61565b90506131ec82826131a5565b919050565b600067ffffffffffffffff82111561320c5761320b613176565b5b61321582613165565b9050602081019050919050565b82818337600083830152505050565b600061324461323f846131f1565b6131d6565b9050828152602081018484840111156132605761325f613160565b5b61326b848285613222565b509392505050565b600082601f8301126132885761328761315b565b5b8135613298848260208601613231565b91505092915050565b6000602082840312156132b7576132b6612f6b565b5b600082013567ffffffffffffffff8111156132d5576132d4612f70565b5b6132e184828501613273565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613324578082015181840152602081019050613309565b60008484015250505050565b600061333b826132ea565b61334581856132f5565b9350613355818560208601613306565b61335e81613165565b840191505092915050565b600060208201905081810360008301526133838184613330565b905092915050565b6000602082840312156133a1576133a0612f6b565b5b60006133af8482850161304b565b91505092915050565b6133c181612f95565b82525050565b60006020820190506133dc60008301846133b8565b92915050565b6000819050919050565b6133f5816133e2565b82525050565b600060208201905061341060008301846133ec565b92915050565b600067ffffffffffffffff82111561343157613430613176565b5b602082029050602081019050919050565b600080fd5b600061345a61345584613416565b6131d6565b9050808382526020820190506020840283018581111561347d5761347c613442565b5b835b818110156134a65780613492888261304b565b84526020840193505060208101905061347f565b5050509392505050565b600082601f8301126134c5576134c461315b565b5b81356134d5848260208601613447565b91505092915050565b600067ffffffffffffffff8211156134f9576134f8613176565b5b61350282613165565b9050602081019050919050565b600061352261351d846134de565b6131d6565b90508281526020810184848401111561353e5761353d613160565b5b613549848285613222565b509392505050565b600082601f8301126135665761356561315b565b5b813561357684826020860161350f565b91505092915050565b600080600080600060a0868803121561359b5761359a612f6b565b5b60006135a988828901612fbe565b95505060206135ba88828901612fbe565b945050604086013567ffffffffffffffff8111156135db576135da612f70565b5b6135e7888289016134b0565b935050606086013567ffffffffffffffff81111561360857613607612f70565b5b613614888289016134b0565b925050608086013567ffffffffffffffff81111561363557613634612f70565b5b61364188828901613551565b9150509295509295909350565b6000819050919050565b600061367361366e61366984612f75565b61364e565b612f75565b9050919050565b600061368582613658565b9050919050565b60006136978261367a565b9050919050565b6136a78161368c565b82525050565b60006020820190506136c2600083018461369e565b92915050565b600067ffffffffffffffff8211156136e3576136e2613176565b5b602082029050602081019050919050565b6000613707613702846136c8565b6131d6565b9050808382526020820190506020840283018581111561372a57613729613442565b5b835b81811015613753578061373f8882612fbe565b84526020840193505060208101905061372c565b5050509392505050565b600082601f8301126137725761377161315b565b5b81356137828482602086016136f4565b91505092915050565b600080604083850312156137a2576137a1612f6b565b5b600083013567ffffffffffffffff8111156137c0576137bf612f70565b5b6137cc8582860161375d565b925050602083013567ffffffffffffffff8111156137ed576137ec612f70565b5b6137f9858286016134b0565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61383881613000565b82525050565b600061384a838361382f565b60208301905092915050565b6000602082019050919050565b600061386e82613803565b613878818561380e565b93506138838361381f565b8060005b838110156138b457815161389b888261383e565b97506138a683613856565b925050600181019050613887565b5085935050505092915050565b600060208201905081810360008301526138db8184613863565b905092915050565b600080fd5b60008083601f8401126138fe576138fd61315b565b5b8235905067ffffffffffffffff81111561391b5761391a6138e3565b5b60208301915083602082028301111561393757613936613442565b5b9250929050565b6000806020838503121561395557613954612f6b565b5b600083013567ffffffffffffffff81111561397357613972612f70565b5b61397f858286016138e8565b92509250509250929050565b61399481613125565b811461399f57600080fd5b50565b6000813590506139b18161398b565b92915050565b600080604083850312156139ce576139cd612f6b565b5b60006139dc85828601612fbe565b92505060206139ed858286016139a2565b9150509250929050565b60008060408385031215613a0e57613a0d612f6b565b5b6000613a1c8582860161304b565b9250506020613a2d8582860161304b565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60038110613a7757613a76613a37565b5b50565b6000819050613a8882613a66565b919050565b6000613a9882613a7a565b9050919050565b613aa881613a8d565b82525050565b6000602082019050613ac36000830184613a9f565b92915050565b608082016000820151613adf600085018261382f565b506020820151613af2602085018261382f565b506040820151613b05604085018261382f565b506060820151613b18606085018261382f565b50505050565b6000608082019050613b336000830184613ac9565b92915050565b613b42816133e2565b8114613b4d57600080fd5b50565b600081359050613b5f81613b39565b92915050565b600060208284031215613b7b57613b7a612f6b565b5b6000613b8984828501613b50565b91505092915050565b60008060408385031215613ba957613ba8612f6b565b5b6000613bb785828601612fbe565b9250506020613bc885828601612fbe565b9150509250929050565b60038110613bdf57600080fd5b50565b600081359050613bf181613bd2565b92915050565b600060208284031215613c0d57613c0c612f6b565b5b6000613c1b84828501613be2565b91505092915050565b600080600080600060a08688031215613c4057613c3f612f6b565b5b6000613c4e88828901612fbe565b9550506020613c5f88828901612fbe565b9450506040613c708882890161304b565b9350506060613c818882890161304b565b925050608086013567ffffffffffffffff811115613ca257613ca1612f70565b5b613cae88828901613551565b9150509295509295909350565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b6000613d17602a836132f5565b9150613d2282613cbb565b604082019050919050565b60006020820190508181036000830152613d4681613d0a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613d9457607f821691505b602082108103613da757613da6613d4d565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613de782613000565b9150613df283613000565b9250828201905080821115613e0a57613e09613dad565b5b92915050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000613e6c6029836132f5565b9150613e7782613e10565b604082019050919050565b60006020820190508181036000830152613e9b81613e5f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613edc82613000565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613f0e57613f0d613dad565b5b600182019050919050565b6000819050919050565b613f34613f2f826133e2565b613f19565b82525050565b6000613f468284613f23565b60208201915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613f8f82613000565b9150613f9a83613000565b925082613faa57613fa9613f55565b5b828206905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026140177fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613fda565b6140218683613fda565b95508019841693508086168417925050509392505050565b600061405461404f61404a84613000565b61364e565b613000565b9050919050565b6000819050919050565b61406e83614039565b61408261407a8261405b565b848454613fe7565b825550505050565b600090565b61409761408a565b6140a2818484614065565b505050565b5b818110156140c6576140bb60008261408f565b6001810190506140a8565b5050565b601f82111561410b576140dc81613fb5565b6140e584613fca565b810160208510156140f4578190505b61410861410085613fca565b8301826140a7565b50505b505050565b600082821c905092915050565b600061412e60001984600802614110565b1980831691505092915050565b6000614147838361411d565b9150826002028217905092915050565b614160826132ea565b67ffffffffffffffff81111561417957614178613176565b5b6141838254613d7c565b61418e8282856140ca565b600060209050601f8311600181146141c157600084156141af578287015190505b6141b9858261413b565b865550614221565b601f1984166141cf86613fb5565b60005b828110156141f7578489015182556001820191506020850194506020810190506141d2565b868310156142145784890151614210601f89168261411d565b8355505b6001600288020188555050505b505050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006142856026836132f5565b915061429082614229565b604082019050919050565b600060208201905081810360008301526142b481614278565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006142f16020836132f5565b91506142fc826142bb565b602082019050919050565b60006020820190508181036000830152614320816142e4565b9050919050565b600060408201905061433c60008301856133b8565b61434960208301846133b8565b9392505050565b60008151905061435f8161398b565b92915050565b60006020828403121561437b5761437a612f6b565b5b600061438984828501614350565b91505092915050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206f7220617070726f766564000000000000000000000000000000000000602082015250565b60006143ee602e836132f5565b91506143f982614392565b604082019050919050565b6000602082019050818103600083015261441d816143e1565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006144806021836132f5565b915061448b82614424565b604082019050919050565b600060208201905081810360008301526144af81614473565b9050919050565b60006040820190506144cb600083018561300a565b6144d8602083018461300a565b9392505050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b600061453b6029836132f5565b9150614546826144df565b604082019050919050565b6000602082019050818103600083015261456a8161452e565b9050919050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006145cd6023836132f5565b91506145d882614571565b604082019050919050565b600060208201905081810360008301526145fc816145c0565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b600061465f6024836132f5565b915061466a82614603565b604082019050919050565b6000602082019050818103600083015261468e81614652565b9050919050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b60006146f16028836132f5565b91506146fc82614695565b604082019050919050565b60006020820190508181036000830152614720816146e4565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006147836025836132f5565b915061478e82614727565b604082019050919050565b600060208201905081810360008301526147b281614776565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b6000614815602a836132f5565b9150614820826147b9565b604082019050919050565b6000602082019050818103600083015261484481614808565b9050919050565b600060408201905081810360008301526148658185613863565b905081810360208301526148798184613863565b90509392505050565b600081519050919050565b600082825260208201905092915050565b60006148a982614882565b6148b3818561488d565b93506148c3818560208601613306565b6148cc81613165565b840191505092915050565b600060a0820190506148ec60008301886133b8565b6148f960208301876133b8565b614906604083018661300a565b614913606083018561300a565b8181036080830152614925818461489e565b90509695505050505050565b600081519050614940816130cc565b92915050565b60006020828403121561495c5761495b612f6b565b5b600061496a84828501614931565b91505092915050565b60008160e01c9050919050565b600060033d111561499f5760046000803e61499c600051614973565b90505b90565b600060443d10614a2f576149b4612f61565b60043d036004823e80513d602482011167ffffffffffffffff821117156149dc575050614a2f565b808201805167ffffffffffffffff8111156149fa5750505050614a2f565b80602083010160043d038501811115614a17575050505050614a2f565b614a26826020018501866131a5565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000614a8e6034836132f5565b9150614a9982614a32565b604082019050919050565b60006020820190508181036000830152614abd81614a81565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000614b206028836132f5565b9150614b2b82614ac4565b604082019050919050565b60006020820190508181036000830152614b4f81614b13565b9050919050565b600060a082019050614b6b60008301886133b8565b614b7860208301876133b8565b8181036040830152614b8a8186613863565b90508181036060830152614b9e8185613863565b90508181036080830152614bb2818461489e565b9050969550505050505056fea2646970667358221220a416bd303f8282988fb99601129c5e93349bbb6fc188e2b30cfcb17ca2b00d4764736f6c63430008120033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000034687474703a2f2f6c6f63616c686f73743a333030302f6170692f6d657461646174612f636f6e7472616374732f70686173652d310000000000000000000000000000000000000000000000000000000000000000000000000000000000000040687474703a2f2f6c6f63616c686f73743a333030302f6170692f6d657461646174612f636f6e7472616374732f70686173652d312f746f6b656e732f7b69647d

Deployed Bytecode

0x6080604052600436106102395760003560e01c80638da5cb5b1161012e578063cb30bc2e116100ab578063e985e9c51161006f578063e985e9c5146107f9578063f11cb0af14610836578063f242432a1461085f578063f2fde38b14610888578063f95df414146108b157610239565b8063cb30bc2e14610728578063d5abeb0114610751578063dc47dced1461077c578063e268e4d3146107a5578063e8a3d485146107ce57610239565b8063b390c0ab116100f2578063b390c0ab14610653578063c051e38a1461067c578063c1bd8cf9146106a7578063c3f909d4146106d2578063c7574839146106fd57610239565b80638da5cb5b14610594578063938e3d7b146105bf57806395d89b41146105e8578063989cc60014610613578063a22cb4651461062a57610239565b8063293108e0116101bc578063453c231011610180578063453c2310146104d05780634e1273f4146104fb578063537924ef146105385780636f8b44b014610554578063715018a61461057d57610239565b8063293108e0146104115780632eb2c2d61461043c5780633ccfd60b1461046557806341f434341461047c57806344a0d68a146104a757610239565b80630e89341c116102035780630e89341c1461034957806313faede61461038657806323c7e09c146103b157806326092b83146103dc57806329140819146103e657610239565b8062a860b01461023e578062fdd58e1461027b57806301ffc9a7146102b857806302fe5305146102f557806306fdde031461031e575b600080fd5b34801561024a57600080fd5b5061026560048036038101906102609190612fd3565b6108da565b6040516102729190613019565b60405180910390f35b34801561028757600080fd5b506102a2600480360381019061029d9190613060565b6108f2565b6040516102af9190613019565b60405180910390f35b3480156102c457600080fd5b506102df60048036038101906102da91906130f8565b6109ba565b6040516102ec9190613140565b60405180910390f35b34801561030157600080fd5b5061031c600480360381019061031791906132a1565b610a9c565b005b34801561032a57600080fd5b50610333610ab0565b6040516103409190613369565b60405180910390f35b34801561035557600080fd5b50610370600480360381019061036b919061338b565b610b3e565b60405161037d9190613369565b60405180910390f35b34801561039257600080fd5b5061039b610bd2565b6040516103a89190613019565b60405180910390f35b3480156103bd57600080fd5b506103c6610bd8565b6040516103d391906133c7565b60405180910390f35b6103e4610bfe565b005b3480156103f257600080fd5b506103fb610d76565b60405161040891906133fb565b60405180910390f35b34801561041d57600080fd5b50610426610d7c565b60405161043391906133fb565b60405180910390f35b34801561044857600080fd5b50610463600480360381019061045e919061357f565b610d82565b005b34801561047157600080fd5b5061047a610dd5565b005b34801561048857600080fd5b50610491610e4e565b60405161049e91906136ad565b60405180910390f35b3480156104b357600080fd5b506104ce60048036038101906104c9919061338b565b610e60565b005b3480156104dc57600080fd5b506104e5610e72565b6040516104f29190613019565b60405180910390f35b34801561050757600080fd5b50610522600480360381019061051d919061378b565b610e78565b60405161052f91906138c1565b60405180910390f35b610552600480360381019061054d919061393e565b610f91565b005b34801561056057600080fd5b5061057b6004803603810190610576919061338b565b6111e1565b005b34801561058957600080fd5b50610592611275565b005b3480156105a057600080fd5b506105a9611289565b6040516105b691906133c7565b60405180910390f35b3480156105cb57600080fd5b506105e660048036038101906105e191906132a1565b6112b3565b005b3480156105f457600080fd5b506105fd6112ce565b60405161060a9190613369565b60405180910390f35b34801561061f57600080fd5b5061062861135c565b005b34801561063657600080fd5b50610651600480360381019061064c91906139b7565b611500565b005b34801561065f57600080fd5b5061067a600480360381019061067591906139f7565b611516565b005b34801561068857600080fd5b50610691611525565b60405161069e9190613aae565b60405180910390f35b3480156106b357600080fd5b506106bc611538565b6040516106c99190613019565b60405180910390f35b3480156106de57600080fd5b506106e761153e565b6040516106f49190613b1e565b60405180910390f35b34801561070957600080fd5b5061071261159c565b60405161071f91906133c7565b60405180910390f35b34801561073457600080fd5b5061074f600480360381019061074a919061393e565b6115c2565b005b34801561075d57600080fd5b506107666117d7565b6040516107739190613019565b60405180910390f35b34801561078857600080fd5b506107a3600480360381019061079e9190613b65565b6117dd565b005b3480156107b157600080fd5b506107cc60048036038101906107c7919061338b565b6117ef565b005b3480156107da57600080fd5b506107e3611801565b6040516107f09190613369565b60405180910390f35b34801561080557600080fd5b50610820600480360381019061081b9190613b92565b61188f565b60405161082d9190613140565b60405180910390f35b34801561084257600080fd5b5061085d60048036038101906108589190613bf7565b611923565b005b34801561086b57600080fd5b5061088660048036038101906108819190613c24565b611958565b005b34801561089457600080fd5b506108af60048036038101906108aa9190612fd3565b6119ab565b005b3480156108bd57600080fd5b506108d860048036038101906108d39190613b65565b611a2e565b005b600b6020528060005260406000206000915090505481565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610962576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095990613d2d565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a8557507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a955750610a9482611a40565b5b9050919050565b610aa4611aaa565b610aad81611b28565b50565b60058054610abd90613d7c565b80601f0160208091040260200160405190810160405280929190818152602001828054610ae990613d7c565b8015610b365780601f10610b0b57610100808354040283529160200191610b36565b820191906000526020600020905b815481529060010190602001808311610b1957829003601f168201915b505050505081565b606060028054610b4d90613d7c565b80601f0160208091040260200160405190810160405280929190818152602001828054610b7990613d7c565b8015610bc65780601f10610b9b57610100808354040283529160200191610bc6565b820191906000526020600020905b815481529060010190602001808311610ba957829003601f168201915b50505050509050919050565b60095481565b600f60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6002806002811115610c1357610c12613a37565b5b600f60009054906101000a900460ff166002811115610c3557610c34613a37565b5b14610c6c576040517f3b4d966800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a54600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410610ce6576040517f7ce6edb800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008546003600c54610cf89190613ddc565b1115610d30576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6009543414610d6b576040517f356680b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d73611b3b565b50565b600e5481565b600d5481565b843373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610dc057610dbf33611c04565b5b610dcd8686868686611d01565b505050505050565b610ddd611aaa565b6000479050600f60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610e4a573d6000803e3d6000fd5b5050565b6daaeb6d7670e522a718067333cd4e81565b610e68611aaa565b8060098190555050565b600a5481565b60608151835114610ebe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb590613e82565b60405180910390fd5b6000835167ffffffffffffffff811115610edb57610eda613176565b5b604051908082528060200260200182016040528015610f095781602001602082028036833780820191505090505b50905060005b8451811015610f8657610f56858281518110610f2e57610f2d613ea2565b5b6020026020010151858381518110610f4957610f48613ea2565b5b60200260200101516108f2565b828281518110610f6957610f68613ea2565b5b60200260200101818152505080610f7f90613ed1565b9050610f0f565b508091505092915050565b6001806002811115610fa657610fa5613a37565b5b600f60009054906101000a900460ff166002811115610fc857610fc7613a37565b5b14610fff576040517f3b4d966800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a54600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410611079576040517f7ce6edb800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008546003600c5461108b9190613ddc565b11156110c3576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60095434146110fe576040517f356680b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8282600d5461119b838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050823360405160200161115a91906133c7565b604051602081830303815290604052805190602001206040516020016111809190613f3a565b60405160208183030381529060405280519060200120611da2565b6111d1576040517f7ca55c7700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111d9611b3b565b505050505050565b6111e9611aaa565b600854811115611225576040517faa8ed68e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006003826112349190613f84565b1461126b576040517f2ef1a83f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060088190555050565b61127d611aaa565b6112876000611db9565b565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6112bb611aaa565b80600790816112ca9190614157565b5050565b600680546112db90613d7c565b80601f016020809104026020016040519081016040528092919081815260200182805461130790613d7c565b80156113545780601f1061132957610100808354040283529160200191611354565b820191906000526020600020905b81548152906001019060200180831161133757829003601f168201915b505050505081565b611364611aaa565b600854601e600c546113769190613ddc565b11156113ae576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113ed601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166001600a60405180602001604052806000815250611e7f565b61142c601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166002600a60405180602001604052806000815250611e7f565b61146b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166003600a60405180602001604052806000815250611e7f565b600a600b6000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546114dd9190613ddc565b92505081905550601e600c60008282546114f79190613ddc565b92505081905550565b61151261150b61202f565b8383612037565b5050565b6115213383836121a3565b5050565b600f60009054906101000a900460ff1681565b600c5481565b611546612f39565b60006040518060800160405280600f60009054906101000a900460ff16600281111561157557611574613a37565b5b60ff16815260200160095481526020016008548152602001600c5481525090508091505090565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60018060028111156115d7576115d6613a37565b5b600f60009054906101000a900460ff1660028111156115f9576115f8613a37565b5b14611630576040517f3b4d966800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a54600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054106116aa576040517f7ce6edb800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008546003600c546116bc9190613ddc565b11156116f4576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8282600e54611791838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050823360405160200161175091906133c7565b604051602081830303815290604052805190602001206040516020016117769190613f3a565b60405160208183030381529060405280519060200120611da2565b6117c7576040517f7ca55c7700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6117cf611b3b565b505050505050565b60085481565b6117e5611aaa565b80600e8190555050565b6117f7611aaa565b80600a8190555050565b6007805461180e90613d7c565b80601f016020809104026020016040519081016040528092919081815260200182805461183a90613d7c565b80156118875780601f1061185c57610100808354040283529160200191611887565b820191906000526020600020905b81548152906001019060200180831161186a57829003601f168201915b505050505081565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61192b611aaa565b80600f60006101000a81548160ff021916908360028111156119505761194f613a37565b5b021790555050565b843373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146119965761199533611c04565b5b6119a386868686866123e9565b505050505050565b6119b3611aaa565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611a22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a199061429b565b60405180910390fd5b611a2b81611db9565b50565b611a36611aaa565b80600d8190555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b611ab261202f565b73ffffffffffffffffffffffffffffffffffffffff16611ad0611289565b73ffffffffffffffffffffffffffffffffffffffff1614611b26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1d90614307565b60405180910390fd5b565b8060029081611b379190614157565b5050565b611b573360018060405180602001604052806000815250611e7f565b611b74336002600160405180602001604052806000815250611e7f565b611b91336003600160405180602001604052806000815250611e7f565b6001600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611be19190613ddc565b925050819055506003600c6000828254611bfb9190613ddc565b92505081905550565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611cfe576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401611c7b929190614327565b602060405180830381865afa158015611c98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cbc9190614365565b611cfd57806040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401611cf491906133c7565b60405180910390fd5b5b50565b611d0961202f565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611d4f5750611d4e85611d4961202f565b61188f565b5b611d8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8590614404565b60405180910390fd5b611d9b858585858561248a565b5050505050565b600082611daf85846127ab565b1490509392505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611eee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee590614496565b60405180910390fd5b6000611ef861202f565b90506000611f0585612801565b90506000611f1285612801565b9050611f238360008985858961287b565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f829190613ddc565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516120009291906144b6565b60405180910390a461201783600089858589612883565b6120268360008989898961288b565b50505050505050565b600033905090565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036120a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209c90614551565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516121969190613140565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612212576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612209906145e3565b60405180910390fd5b600061221c61202f565b9050600061222984612801565b9050600061223684612801565b90506122568387600085856040518060200160405280600081525061287b565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050848110156122ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122e490614675565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516123ba9291906144b6565b60405180910390a46123e084886000868660405180602001604052806000815250612883565b50505050505050565b6123f161202f565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061243757506124368561243161202f565b61188f565b5b612476576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246d90614404565b60405180910390fd5b6124838585858585612a62565b5050505050565b81518351146124ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124c590614707565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361253d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253490614799565b60405180910390fd5b600061254761202f565b905061255781878787878761287b565b60005b845181101561270857600085828151811061257857612577613ea2565b5b60200260200101519050600085838151811061259757612596613ea2565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612638576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161262f9061482b565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126ed9190613ddc565b925050819055505050508061270190613ed1565b905061255a565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161277f92919061484b565b60405180910390a4612795818787878787612883565b6127a3818787878787612cfd565b505050505050565b60008082905060005b84518110156127f6576127e1828683815181106127d4576127d3613ea2565b5b6020026020010151612ed4565b915080806127ee90613ed1565b9150506127b4565b508091505092915050565b60606000600167ffffffffffffffff8111156128205761281f613176565b5b60405190808252806020026020018201604052801561284e5781602001602082028036833780820191505090505b509050828160008151811061286657612865613ea2565b5b60200260200101818152505080915050919050565b505050505050565b505050505050565b6128aa8473ffffffffffffffffffffffffffffffffffffffff16612eff565b15612a5a578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016128f09594939291906148d7565b6020604051808303816000875af192505050801561292c57506040513d601f19601f820116820180604052508101906129299190614946565b60015b6129d157612938614980565b806308c379a003612994575061294c6149a2565b806129575750612996565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161298b9190613369565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129c890614aa4565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612a58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4f90614b36565b60405180910390fd5b505b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612ad1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ac890614799565b60405180910390fd5b6000612adb61202f565b90506000612ae885612801565b90506000612af585612801565b9050612b0583898985858961287b565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015612b9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b939061482b565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c519190613ddc565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051612cce9291906144b6565b60405180910390a4612ce4848a8a86868a612883565b612cf2848a8a8a8a8a61288b565b505050505050505050565b612d1c8473ffffffffffffffffffffffffffffffffffffffff16612eff565b15612ecc578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612d62959493929190614b56565b6020604051808303816000875af1925050508015612d9e57506040513d601f19601f82011682018060405250810190612d9b9190614946565b60015b612e4357612daa614980565b806308c379a003612e065750612dbe6149a2565b80612dc95750612e08565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dfd9190613369565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e3a90614aa4565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612eca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ec190614b36565b60405180910390fd5b505b505050505050565b6000818310612eec57612ee78284612f22565b612ef7565b612ef68383612f22565b5b905092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082600052816020526040600020905092915050565b6040518060800160405280600081526020016000815260200160008152602001600081525090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612fa082612f75565b9050919050565b612fb081612f95565b8114612fbb57600080fd5b50565b600081359050612fcd81612fa7565b92915050565b600060208284031215612fe957612fe8612f6b565b5b6000612ff784828501612fbe565b91505092915050565b6000819050919050565b61301381613000565b82525050565b600060208201905061302e600083018461300a565b92915050565b61303d81613000565b811461304857600080fd5b50565b60008135905061305a81613034565b92915050565b6000806040838503121561307757613076612f6b565b5b600061308585828601612fbe565b92505060206130968582860161304b565b9150509250929050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6130d5816130a0565b81146130e057600080fd5b50565b6000813590506130f2816130cc565b92915050565b60006020828403121561310e5761310d612f6b565b5b600061311c848285016130e3565b91505092915050565b60008115159050919050565b61313a81613125565b82525050565b60006020820190506131556000830184613131565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6131ae82613165565b810181811067ffffffffffffffff821117156131cd576131cc613176565b5b80604052505050565b60006131e0612f61565b90506131ec82826131a5565b919050565b600067ffffffffffffffff82111561320c5761320b613176565b5b61321582613165565b9050602081019050919050565b82818337600083830152505050565b600061324461323f846131f1565b6131d6565b9050828152602081018484840111156132605761325f613160565b5b61326b848285613222565b509392505050565b600082601f8301126132885761328761315b565b5b8135613298848260208601613231565b91505092915050565b6000602082840312156132b7576132b6612f6b565b5b600082013567ffffffffffffffff8111156132d5576132d4612f70565b5b6132e184828501613273565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613324578082015181840152602081019050613309565b60008484015250505050565b600061333b826132ea565b61334581856132f5565b9350613355818560208601613306565b61335e81613165565b840191505092915050565b600060208201905081810360008301526133838184613330565b905092915050565b6000602082840312156133a1576133a0612f6b565b5b60006133af8482850161304b565b91505092915050565b6133c181612f95565b82525050565b60006020820190506133dc60008301846133b8565b92915050565b6000819050919050565b6133f5816133e2565b82525050565b600060208201905061341060008301846133ec565b92915050565b600067ffffffffffffffff82111561343157613430613176565b5b602082029050602081019050919050565b600080fd5b600061345a61345584613416565b6131d6565b9050808382526020820190506020840283018581111561347d5761347c613442565b5b835b818110156134a65780613492888261304b565b84526020840193505060208101905061347f565b5050509392505050565b600082601f8301126134c5576134c461315b565b5b81356134d5848260208601613447565b91505092915050565b600067ffffffffffffffff8211156134f9576134f8613176565b5b61350282613165565b9050602081019050919050565b600061352261351d846134de565b6131d6565b90508281526020810184848401111561353e5761353d613160565b5b613549848285613222565b509392505050565b600082601f8301126135665761356561315b565b5b813561357684826020860161350f565b91505092915050565b600080600080600060a0868803121561359b5761359a612f6b565b5b60006135a988828901612fbe565b95505060206135ba88828901612fbe565b945050604086013567ffffffffffffffff8111156135db576135da612f70565b5b6135e7888289016134b0565b935050606086013567ffffffffffffffff81111561360857613607612f70565b5b613614888289016134b0565b925050608086013567ffffffffffffffff81111561363557613634612f70565b5b61364188828901613551565b9150509295509295909350565b6000819050919050565b600061367361366e61366984612f75565b61364e565b612f75565b9050919050565b600061368582613658565b9050919050565b60006136978261367a565b9050919050565b6136a78161368c565b82525050565b60006020820190506136c2600083018461369e565b92915050565b600067ffffffffffffffff8211156136e3576136e2613176565b5b602082029050602081019050919050565b6000613707613702846136c8565b6131d6565b9050808382526020820190506020840283018581111561372a57613729613442565b5b835b81811015613753578061373f8882612fbe565b84526020840193505060208101905061372c565b5050509392505050565b600082601f8301126137725761377161315b565b5b81356137828482602086016136f4565b91505092915050565b600080604083850312156137a2576137a1612f6b565b5b600083013567ffffffffffffffff8111156137c0576137bf612f70565b5b6137cc8582860161375d565b925050602083013567ffffffffffffffff8111156137ed576137ec612f70565b5b6137f9858286016134b0565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61383881613000565b82525050565b600061384a838361382f565b60208301905092915050565b6000602082019050919050565b600061386e82613803565b613878818561380e565b93506138838361381f565b8060005b838110156138b457815161389b888261383e565b97506138a683613856565b925050600181019050613887565b5085935050505092915050565b600060208201905081810360008301526138db8184613863565b905092915050565b600080fd5b60008083601f8401126138fe576138fd61315b565b5b8235905067ffffffffffffffff81111561391b5761391a6138e3565b5b60208301915083602082028301111561393757613936613442565b5b9250929050565b6000806020838503121561395557613954612f6b565b5b600083013567ffffffffffffffff81111561397357613972612f70565b5b61397f858286016138e8565b92509250509250929050565b61399481613125565b811461399f57600080fd5b50565b6000813590506139b18161398b565b92915050565b600080604083850312156139ce576139cd612f6b565b5b60006139dc85828601612fbe565b92505060206139ed858286016139a2565b9150509250929050565b60008060408385031215613a0e57613a0d612f6b565b5b6000613a1c8582860161304b565b9250506020613a2d8582860161304b565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60038110613a7757613a76613a37565b5b50565b6000819050613a8882613a66565b919050565b6000613a9882613a7a565b9050919050565b613aa881613a8d565b82525050565b6000602082019050613ac36000830184613a9f565b92915050565b608082016000820151613adf600085018261382f565b506020820151613af2602085018261382f565b506040820151613b05604085018261382f565b506060820151613b18606085018261382f565b50505050565b6000608082019050613b336000830184613ac9565b92915050565b613b42816133e2565b8114613b4d57600080fd5b50565b600081359050613b5f81613b39565b92915050565b600060208284031215613b7b57613b7a612f6b565b5b6000613b8984828501613b50565b91505092915050565b60008060408385031215613ba957613ba8612f6b565b5b6000613bb785828601612fbe565b9250506020613bc885828601612fbe565b9150509250929050565b60038110613bdf57600080fd5b50565b600081359050613bf181613bd2565b92915050565b600060208284031215613c0d57613c0c612f6b565b5b6000613c1b84828501613be2565b91505092915050565b600080600080600060a08688031215613c4057613c3f612f6b565b5b6000613c4e88828901612fbe565b9550506020613c5f88828901612fbe565b9450506040613c708882890161304b565b9350506060613c818882890161304b565b925050608086013567ffffffffffffffff811115613ca257613ca1612f70565b5b613cae88828901613551565b9150509295509295909350565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b6000613d17602a836132f5565b9150613d2282613cbb565b604082019050919050565b60006020820190508181036000830152613d4681613d0a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613d9457607f821691505b602082108103613da757613da6613d4d565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613de782613000565b9150613df283613000565b9250828201905080821115613e0a57613e09613dad565b5b92915050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000613e6c6029836132f5565b9150613e7782613e10565b604082019050919050565b60006020820190508181036000830152613e9b81613e5f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613edc82613000565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613f0e57613f0d613dad565b5b600182019050919050565b6000819050919050565b613f34613f2f826133e2565b613f19565b82525050565b6000613f468284613f23565b60208201915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613f8f82613000565b9150613f9a83613000565b925082613faa57613fa9613f55565b5b828206905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026140177fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613fda565b6140218683613fda565b95508019841693508086168417925050509392505050565b600061405461404f61404a84613000565b61364e565b613000565b9050919050565b6000819050919050565b61406e83614039565b61408261407a8261405b565b848454613fe7565b825550505050565b600090565b61409761408a565b6140a2818484614065565b505050565b5b818110156140c6576140bb60008261408f565b6001810190506140a8565b5050565b601f82111561410b576140dc81613fb5565b6140e584613fca565b810160208510156140f4578190505b61410861410085613fca565b8301826140a7565b50505b505050565b600082821c905092915050565b600061412e60001984600802614110565b1980831691505092915050565b6000614147838361411d565b9150826002028217905092915050565b614160826132ea565b67ffffffffffffffff81111561417957614178613176565b5b6141838254613d7c565b61418e8282856140ca565b600060209050601f8311600181146141c157600084156141af578287015190505b6141b9858261413b565b865550614221565b601f1984166141cf86613fb5565b60005b828110156141f7578489015182556001820191506020850194506020810190506141d2565b868310156142145784890151614210601f89168261411d565b8355505b6001600288020188555050505b505050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006142856026836132f5565b915061429082614229565b604082019050919050565b600060208201905081810360008301526142b481614278565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006142f16020836132f5565b91506142fc826142bb565b602082019050919050565b60006020820190508181036000830152614320816142e4565b9050919050565b600060408201905061433c60008301856133b8565b61434960208301846133b8565b9392505050565b60008151905061435f8161398b565b92915050565b60006020828403121561437b5761437a612f6b565b5b600061438984828501614350565b91505092915050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206f7220617070726f766564000000000000000000000000000000000000602082015250565b60006143ee602e836132f5565b91506143f982614392565b604082019050919050565b6000602082019050818103600083015261441d816143e1565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006144806021836132f5565b915061448b82614424565b604082019050919050565b600060208201905081810360008301526144af81614473565b9050919050565b60006040820190506144cb600083018561300a565b6144d8602083018461300a565b9392505050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b600061453b6029836132f5565b9150614546826144df565b604082019050919050565b6000602082019050818103600083015261456a8161452e565b9050919050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006145cd6023836132f5565b91506145d882614571565b604082019050919050565b600060208201905081810360008301526145fc816145c0565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b600061465f6024836132f5565b915061466a82614603565b604082019050919050565b6000602082019050818103600083015261468e81614652565b9050919050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b60006146f16028836132f5565b91506146fc82614695565b604082019050919050565b60006020820190508181036000830152614720816146e4565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006147836025836132f5565b915061478e82614727565b604082019050919050565b600060208201905081810360008301526147b281614776565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b6000614815602a836132f5565b9150614820826147b9565b604082019050919050565b6000602082019050818103600083015261484481614808565b9050919050565b600060408201905081810360008301526148658185613863565b905081810360208301526148798184613863565b90509392505050565b600081519050919050565b600082825260208201905092915050565b60006148a982614882565b6148b3818561488d565b93506148c3818560208601613306565b6148cc81613165565b840191505092915050565b600060a0820190506148ec60008301886133b8565b6148f960208301876133b8565b614906604083018661300a565b614913606083018561300a565b8181036080830152614925818461489e565b90509695505050505050565b600081519050614940816130cc565b92915050565b60006020828403121561495c5761495b612f6b565b5b600061496a84828501614931565b91505092915050565b60008160e01c9050919050565b600060033d111561499f5760046000803e61499c600051614973565b90505b90565b600060443d10614a2f576149b4612f61565b60043d036004823e80513d602482011167ffffffffffffffff821117156149dc575050614a2f565b808201805167ffffffffffffffff8111156149fa5750505050614a2f565b80602083010160043d038501811115614a17575050505050614a2f565b614a26826020018501866131a5565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000614a8e6034836132f5565b9150614a9982614a32565b604082019050919050565b60006020820190508181036000830152614abd81614a81565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000614b206028836132f5565b9150614b2b82614ac4565b604082019050919050565b60006020820190508181036000830152614b4f81614b13565b9050919050565b600060a082019050614b6b60008301886133b8565b614b7860208301876133b8565b8181036040830152614b8a8186613863565b90508181036060830152614b9e8185613863565b90508181036080830152614bb2818461489e565b9050969550505050505056fea2646970667358221220a416bd303f8282988fb99601129c5e93349bbb6fc188e2b30cfcb17ca2b00d4764736f6c63430008120033

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

000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000034687474703a2f2f6c6f63616c686f73743a333030302f6170692f6d657461646174612f636f6e7472616374732f70686173652d310000000000000000000000000000000000000000000000000000000000000000000000000000000000000040687474703a2f2f6c6f63616c686f73743a333030302f6170692f6d657461646174612f636f6e7472616374732f70686173652d312f746f6b656e732f7b69647d

-----Decoded View---------------
Arg [0] : _contractURI (string): http://localhost:3000/api/metadata/contracts/phase-1
Arg [1] : _uri (string): http://localhost:3000/api/metadata/contracts/phase-1/tokens/{id}

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000034
Arg [3] : 687474703a2f2f6c6f63616c686f73743a333030302f6170692f6d6574616461
Arg [4] : 74612f636f6e7472616374732f70686173652d31000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [6] : 687474703a2f2f6c6f63616c686f73743a333030302f6170692f6d6574616461
Arg [7] : 74612f636f6e7472616374732f70686173652d312f746f6b656e732f7b69647d


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.