ETH Price: $3,245.96 (+2.55%)
Gas: 2 Gwei

Token

Okina Labs (OKINA)
 

Overview

Max Total Supply

0 OKINA

Holders

434

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
0x38b99D8104C3CcE312436914298a86f14A3B1CaC
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:
OkinaLabs

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 19 : okinalabs.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;

import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol';
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol';
import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

contract OkinaLabs is ERC1155Supply, ERC1155Burnable, Ownable, ReentrancyGuard {
    
    string private _name;
    string private _symbol;
    string private _baseURI;

    bytes32 public merkleRootForClaim;
    mapping(bytes32 => bool) public claimed;
    mapping(uint => TokenData) public tokenData;

    event ItemUsed(uint indexed _tokenId, address collection, uint _pfpTokenId);

    struct TokenData {
        address collection;
        uint supplyLimit;
        mapping(uint => bool) applied;
        bytes32 merkleRootForUse;
        bool enabled;
    }

    constructor() 
        ERC1155("") {
        _symbol = "OKINA";
        _name = "Okina Labs";
    }

    function claimItem(uint tokenId, uint quantity, bytes32[] memory proof) external nonReentrant {
        require(merkleRootForClaim != bytes32(0), "Merkle root not set"); 
        bytes32 leaf = keccak256(abi.encodePacked(msg.sender, tokenId, quantity));
        require(!claimed[leaf], "Already claimed");
        require(MerkleProof.verify(proof, merkleRootForClaim, leaf), "Invalid proof");
        require(totalSupply(tokenId) + 1 <= (tokenData[tokenId].supplyLimit), "Exceeds supply");
        claimed[leaf] = true;
        _mint(msg.sender, tokenId, quantity, "");
    }

    function useItem(uint labsTokenId, uint pfpTokenId, bytes32[] memory proof) external nonReentrant {
        TokenData storage tokenInfo = tokenData[labsTokenId];
        require(tokenInfo.enabled, "Item cannot be used at this time");
        if(tokenInfo.merkleRootForUse != bytes32(0)) {
            require(MerkleProof.verify(proof, tokenInfo.merkleRootForUse, keccak256(abi.encodePacked(pfpTokenId))), "Invalid pfp token id proof");
        }
        require(ERC721(tokenInfo.collection).ownerOf(pfpTokenId) == msg.sender, "You do not own this token");
        require(tokenInfo.applied[pfpTokenId] == false, "This pfp token already used this type of item");
        this.burn(msg.sender, labsTokenId, 1);
        emit ItemUsed(labsTokenId, tokenInfo.collection, pfpTokenId);
        tokenInfo.applied[pfpTokenId] = true;
    }

    function name() public view returns (string memory) {
        return _name;
    }

    function symbol() public view returns (string memory) {
        return _symbol;
    }

    function supplyLimit(uint tokenId) public view returns(uint) {
        return tokenData[tokenId].supplyLimit;
    }

    function uri(uint256 _tokenId) public view override returns (string memory) {
        require(exists(_tokenId), "Token does not exist.");
        return bytes(_baseURI).length > 0 ? string(
            abi.encodePacked(
                _baseURI,
                Strings.toString(_tokenId),
                ".json"
            )
        ) : "";
    }

    function isEnabled(uint tokenId) public view returns(bool) {
        return tokenData[tokenId].enabled;
    }

    function merkleRootForUse(uint tokenId) public view returns(bytes32) {
        return tokenData[tokenId].merkleRootForUse;
    }

    function isItemApplied(uint tokenId, uint pfpTokenId) public view returns(bool) {
        return tokenData[tokenId].applied[pfpTokenId];
    }

    function pfpCollectionAddress(uint tokenId) public view returns(address) {
        return tokenData[tokenId].collection;
    }

    function setBaseURI(string memory uri_) external onlyOwner {
        _baseURI = uri_;
    }

    function setMerkleRootForClaim(bytes32 root) external onlyOwner {
        merkleRootForClaim = root;
    }

    function setMerkleRootForUse(uint tokenId, bytes32 root) external onlyOwner {
        tokenData[tokenId].merkleRootForUse = root;
    }

    function setCollection(uint tokenId, address addr) external onlyOwner {
        tokenData[tokenId].collection = addr;
    }

    function setEnabled(uint tokenId, bool enabled) external onlyOwner {
        tokenData[tokenId].enabled = enabled;
    }

    function adminMint(address addr, uint tokenId, uint total) external onlyOwner {
        require(totalSupply(tokenId) + total <= (tokenData[tokenId].supplyLimit), "Exceeds supply");
        require(total > 0, "Must be greater than 0");
        _mint(addr, tokenId, total, "");
    }

    function clearClaimed(address addr, uint quantity, uint tokenId) external onlyOwner {
        bytes32 leaf = keccak256(abi.encodePacked(addr, tokenId, quantity));
        claimed[leaf] = false;
    }

    function addItem(uint tokenId, address collection, uint total) external onlyOwner {
        require((tokenData[tokenId].supplyLimit) == 0 || totalSupply(tokenId) == 0, "Item already exists");
        tokenData[tokenId].supplyLimit = total;
        tokenData[tokenId].collection = collection;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC1155) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override(ERC1155Supply, ERC1155) {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
    }
}

File 2 of 19 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 3 of 19 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * 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.
 */
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 proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _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}
     *
     * _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 the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild 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 for 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) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild 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 for 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) {
            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 4 of 19 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

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

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

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

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: address zero is not a valid owner");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: invalid token ID");
        return owner;
    }

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

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

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

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

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

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

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId);
    }

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

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId);
    }

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

        _beforeTokenTransfer(from, to, tokenId);

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

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

    /**
     * @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, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 5 of 19 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/extensions/ERC1155Supply.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155Supply is ERC1155 {
    mapping(uint256 => uint256) private _totalSupply;

    /**
     * @dev Total amount of tokens in with a given id.
     */
    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

    /**
     * @dev Indicates whether any token exist with a given id, or not.
     */
    function exists(uint256 id) public view virtual returns (bool) {
        return ERC1155Supply.totalSupply(id) > 0;
    }

    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        if (from == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] += amounts[i];
            }
        }

        if (to == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                uint256 id = ids[i];
                uint256 amount = amounts[i];
                uint256 supply = _totalSupply[id];
                require(supply >= amount, "ERC1155: burn amount exceeds totalSupply");
                unchecked {
                    _totalSupply[id] = supply - amount;
                }
            }
        }
    }
}

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

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of {ERC1155} that allows token holders to destroy both their
 * own tokens and those that they have been approved to use.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Burnable is ERC1155 {
    function burn(
        address account,
        uint256 id,
        uint256 value
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not token owner nor approved"
        );

        _burn(account, id, value);
    }

    function burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory values
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not token owner nor approved"
        );

        _burnBatch(account, ids, values);
    }
}

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

File 9 of 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 10 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 11 of 19 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 19 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 15 of 19 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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 nor 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 nor 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 16 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 17 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 18 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 19 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;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"collection","type":"address"},{"indexed":false,"internalType":"uint256","name":"_pfpTokenId","type":"uint256"}],"name":"ItemUsed","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"total","type":"uint256"}],"name":"addItem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"total","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","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":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"claimItem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"claimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"clearClaimed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"pfpTokenId","type":"uint256"}],"name":"isItemApplied","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootForClaim","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"merkleRootForUse","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"pfpCollectionAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"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":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"addr","type":"address"}],"name":"setCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setMerkleRootForClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setMerkleRootForUse","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"supplyLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenData","outputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"supplyLimit","type":"uint256"},{"internalType":"bytes32","name":"merkleRootForUse","type":"bytes32"},{"internalType":"bool","name":"enabled","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"labsTokenId","type":"uint256"},{"internalType":"uint256","name":"pfpTokenId","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"useItem","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051806020016040528060008152506200003381620000fe60201b60201c565b5062000054620000486200011a60201b60201c565b6200012260201b60201c565b60016005819055506040518060400160405280600581526020017f4f4b494e4100000000000000000000000000000000000000000000000000000081525060079080519060200190620000a9929190620001e8565b506040518060400160405280600a81526020017f4f6b696e61204c6162730000000000000000000000000000000000000000000081525060069080519060200190620000f7929190620001e8565b50620002fd565b806002908051906020019062000116929190620001e8565b5050565b600033905090565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620001f690620002c7565b90600052602060002090601f0160209004810192826200021a576000855562000266565b82601f106200023557805160ff191683800117855562000266565b8280016001018555821562000266579182015b828111156200026557825182559160200191906001019062000248565b5b50905062000275919062000279565b5090565b5b80821115620002945760008160009055506001016200027a565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620002e057607f821691505b60208210811415620002f757620002f662000298565b5b50919050565b61568a806200030d6000396000f3fe608060405234801561001057600080fd5b506004361061020f5760003560e01c80638da5cb5b11610125578063cc3c0f06116100ad578063e985e9c51161007c578063e985e9c514610645578063f242432a14610675578063f2fde38b14610691578063f5298aca146106ad578063f7f74f0d146106c95761020f565b8063cc3c0f06146105ad578063dc72532e146105dd578063e259b8361461060d578063e5c13dd1146106295761020f565b8063b54bb8d8116100f4578063b54bb8d8146104e5578063b8694dd214610501578063bd85b03914610531578063c275c08b14610561578063c783034c1461057d5761020f565b80638da5cb5b1461045a57806395d89b4114610478578063a22cb46514610496578063b4b5b48f146104b25761020f565b80634080e276116101a85780636b20c454116101775780636b20c454146103ca578063715018a6146103e657806378416adb146103f05780637cbd8ec814610420578063847db45e1461043c5761020f565b80634080e276146103325780634e1273f41461034e5780634f558e791461037e57806355f804b3146103ae5761020f565b80630b88ca09116101e45780630b88ca09146102ae5780630e89341c146102ca5780632eb2c2d6146102fa57806331689167146103165761020f565b80624a84cb14610214578062fdd58e1461023057806301ffc9a71461026057806306fdde0314610290575b600080fd5b61022e60048036038101906102299190613375565b6106f9565b005b61024a600480360381019061024591906133c8565b6107d0565b6040516102579190613417565b60405180910390f35b61027a6004803603810190610275919061348a565b610899565b60405161028791906134d2565b60405180910390f35b6102986108ab565b6040516102a59190613586565b60405180910390f35b6102c860048036038101906102c391906135a8565b61093d565b005b6102e460048036038101906102df91906135fb565b610a26565b6040516102f19190613586565b60405180910390f35b610314600480360381019061030f9190613825565b610ace565b005b610330600480360381019061032b9190613375565b610b6f565b005b61034c600480360381019061034791906139ed565b610bd8565b005b61036860048036038101906103639190613b1f565b610f8f565b6040516103759190613c55565b60405180910390f35b610398600480360381019061039391906135fb565b6110a8565b6040516103a591906134d2565b60405180910390f35b6103c860048036038101906103c39190613d18565b6110bc565b005b6103e460048036038101906103df9190613d61565b6110de565b005b6103ee61117b565b005b61040a600480360381019061040591906135fb565b61118f565b6040516104179190613417565b60405180910390f35b61043a60048036038101906104359190613dec565b6111af565b005b6104446111d6565b6040516104519190613e3b565b60405180910390f35b6104626111dc565b60405161046f9190613e65565b60405180910390f35b610480611206565b60405161048d9190613586565b60405180910390f35b6104b060048036038101906104ab9190613eac565b611298565b005b6104cc60048036038101906104c791906135fb565b6112ae565b6040516104dc9493929190613eec565b60405180910390f35b6104ff60048036038101906104fa9190613f31565b61130b565b005b61051b600480360381019061051691906135fb565b61136c565b6040516105289190613e65565b60405180910390f35b61054b600480360381019061054691906135fb565b6113ac565b6040516105589190613417565b60405180910390f35b61057b60048036038101906105769190613f71565b6113c9565b005b610597600480360381019061059291906135fb565b6113db565b6040516105a491906134d2565b60405180910390f35b6105c760048036038101906105c29190613f71565b611408565b6040516105d491906134d2565b60405180910390f35b6105f760048036038101906105f291906135fb565b611428565b6040516106049190613e3b565b60405180910390f35b610627600480360381019061062291906139ed565b611448565b005b610643600480360381019061063e9190613f9e565b61167c565b005b61065f600480360381019061065a9190613fde565b6116b6565b60405161066c91906134d2565b60405180910390f35b61068f600480360381019061068a919061401e565b61174a565b005b6106ab60048036038101906106a691906140b5565b6117eb565b005b6106c760048036038101906106c29190613375565b61186f565b005b6106e360048036038101906106de91906140e2565b61190c565b6040516106f091906134d2565b60405180910390f35b61070161194b565b600b60008381526020019081526020016000206001015481610722846113ac565b61072c9190614151565b111561076d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610764906141f3565b60405180910390fd5b600081116107b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107a79061425f565b60405180910390fd5b6107cb838383604051806020016040528060008152506119c9565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610841576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610838906142f1565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60006108a482611b7a565b9050919050565b6060600680546108ba90614340565b80601f01602080910402602001604051908101604052809291908181526020018280546108e690614340565b80156109335780601f1061090857610100808354040283529160200191610933565b820191906000526020600020905b81548152906001019060200180831161091657829003601f168201915b5050505050905090565b61094561194b565b6000600b600085815260200190815260200160002060010154148061097257506000610970846113ac565b145b6109b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a8906143be565b60405180910390fd5b80600b60008581526020019081526020016000206001018190555081600b600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b6060610a31826110a8565b610a70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a679061442a565b60405180910390fd5b600060088054610a7f90614340565b905011610a9b5760405180602001604052806000815250610ac7565b6008610aa683611c5c565b604051602001610ab7929190614566565b6040516020818303038152906040525b9050919050565b610ad6611dbd565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610b1c5750610b1b85610b16611dbd565b6116b6565b5b610b5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5290614607565b60405180910390fd5b610b688585858585611dc5565b5050505050565b610b7761194b565b6000838284604051602001610b8e93929190614690565b6040516020818303038152906040528051906020012090506000600a600083815260200190815260200160002060006101000a81548160ff02191690831515021790555050505050565b60026005541415610c1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1590614719565b60405180910390fd5b60026005819055506000600b600085815260200190815260200160002090508060040160009054906101000a900460ff16610c8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8590614785565b60405180910390fd5b6000801b816003015414610d1157610cd182826003015485604051602001610cb691906147a5565b604051602081830303815290604052805190602001206120e7565b610d10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d079061480c565b60405180910390fd5b5b3373ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e856040518263ffffffff1660e01b8152600401610d859190613417565b602060405180830381865afa158015610da2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dc69190614841565b73ffffffffffffffffffffffffffffffffffffffff1614610e1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e13906148ba565b60405180910390fd5b6000151581600201600085815260200190815260200160002060009054906101000a900460ff16151514610e85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7c9061494c565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff1663f5298aca338660016040518463ffffffff1660e01b8152600401610ec3939291906149b1565b600060405180830381600087803b158015610edd57600080fd5b505af1158015610ef1573d6000803e3d6000fd5b50505050837fce0ed18be1f7e35eed96c51492312a3f7af5681c93af73ecb7509e040728ba788260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1685604051610f4b9291906149e8565b60405180910390a2600181600201600085815260200190815260200160002060006101000a81548160ff021916908315150217905550506001600581905550505050565b60608151835114610fd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fcc90614a83565b60405180910390fd5b6000835167ffffffffffffffff811115610ff257610ff161362d565b5b6040519080825280602002602001820160405280156110205781602001602082028036833780820191505090505b50905060005b845181101561109d5761106d85828151811061104557611044614aa3565b5b60200260200101518583815181106110605761105f614aa3565b5b60200260200101516107d0565b8282815181106110805761107f614aa3565b5b6020026020010181815250508061109690614ad2565b9050611026565b508091505092915050565b6000806110b4836113ac565b119050919050565b6110c461194b565b80600890805190602001906110da92919061322a565b5050565b6110e6611dbd565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16148061112c575061112b83611126611dbd565b6116b6565b5b61116b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116290614607565b60405180910390fd5b6111768383836120fe565b505050565b61118361194b565b61118d60006123cd565b565b6000600b6000838152602001908152602001600020600101549050919050565b6111b761194b565b80600b6000848152602001908152602001600020600301819055505050565b60095481565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606007805461121590614340565b80601f016020809104026020016040519081016040528092919081815260200182805461124190614340565b801561128e5780601f106112635761010080835404028352916020019161128e565b820191906000526020600020905b81548152906001019060200180831161127157829003601f168201915b5050505050905090565b6112aa6112a3611dbd565b8383612493565b5050565b600b6020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060030154908060040160009054906101000a900460ff16905084565b61131361194b565b80600b600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000600b600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600060036000838152602001908152602001600020549050919050565b6113d161194b565b8060098190555050565b6000600b600083815260200190815260200160002060040160009054906101000a900460ff169050919050565b600a6020528060005260406000206000915054906101000a900460ff1681565b6000600b6000838152602001908152602001600020600301549050919050565b6002600554141561148e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148590614719565b60405180910390fd5b60026005819055506000801b60095414156114de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114d590614b67565b60405180910390fd5b60003384846040516020016114f593929190614690565b604051602081830303815290604052805190602001209050600a600082815260200190815260200160002060009054906101000a900460ff161561156e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156590614bd3565b60405180910390fd5b61157b82600954836120e7565b6115ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b190614c3f565b60405180910390fd5b600b60008581526020019081526020016000206001015460016115dc866113ac565b6115e69190614151565b1115611627576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161e906141f3565b60405180910390fd5b6001600a600083815260200190815260200160002060006101000a81548160ff02191690831515021790555061166e338585604051806020016040528060008152506119c9565b506001600581905550505050565b61168461194b565b80600b600084815260200190815260200160002060040160006101000a81548160ff0219169083151502179055505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611752611dbd565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611798575061179785611792611dbd565b6116b6565b5b6117d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ce90614607565b60405180910390fd5b6117e48585858585612600565b5050505050565b6117f361194b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611863576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185a90614cd1565b60405180910390fd5b61186c816123cd565b50565b611877611dbd565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614806118bd57506118bc836118b7611dbd565b6116b6565b5b6118fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118f390614607565b60405180910390fd5b61190783838361289c565b505050565b6000600b6000848152602001908152602001600020600201600083815260200190815260200160002060009054906101000a900460ff16905092915050565b611953611dbd565b73ffffffffffffffffffffffffffffffffffffffff166119716111dc565b73ffffffffffffffffffffffffffffffffffffffff16146119c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119be90614d3d565b60405180910390fd5b565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611a39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3090614dcf565b60405180910390fd5b6000611a43611dbd565b90506000611a5085612ae3565b90506000611a5d85612ae3565b9050611a6e83600089858589612b5d565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611acd9190614151565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051611b4b929190614def565b60405180910390a4611b6283600089858589612b73565b611b7183600089898989612b7b565b50505050505050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611c4557507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611c555750611c5482612d53565b5b9050919050565b60606000821415611ca4576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611db8565b600082905060005b60008214611cd6578080611cbf90614ad2565b915050600a82611ccf9190614e47565b9150611cac565b60008167ffffffffffffffff811115611cf257611cf161362d565b5b6040519080825280601f01601f191660200182016040528015611d245781602001600182028036833780820191505090505b5090505b60008514611db157600182611d3d9190614e78565b9150600a85611d4c9190614eac565b6030611d589190614151565b60f81b818381518110611d6e57611d6d614aa3565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611daa9190614e47565b9450611d28565b8093505050505b919050565b600033905090565b8151835114611e09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e0090614f4f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611e79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7090614fe1565b60405180910390fd5b6000611e83611dbd565b9050611e93818787878787612b5d565b60005b8451811015612044576000858281518110611eb457611eb3614aa3565b5b602002602001015190506000858381518110611ed357611ed2614aa3565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611f74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6b90615073565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120299190614151565b925050819055505050508061203d90614ad2565b9050611e96565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516120bb929190615093565b60405180910390a46120d1818787878787612b73565b6120df818787878787612dbd565b505050505050565b6000826120f48584612f95565b1490509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561216e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121659061513c565b60405180910390fd5b80518251146121b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121a990614f4f565b60405180910390fd5b60006121bc611dbd565b90506121dc81856000868660405180602001604052806000815250612b5d565b60005b83518110156123295760008482815181106121fd576121fc614aa3565b5b60200260200101519050600084838151811061221c5761221b614aa3565b5b60200260200101519050600080600084815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156122bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b4906151ce565b60405180910390fd5b81810360008085815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505050808061232190614ad2565b9150506121df565b50600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516123a1929190615093565b60405180910390a46123c781856000868660405180602001604052806000815250612b73565b50505050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612502576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124f990615260565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516125f391906134d2565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612670576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266790614fe1565b60405180910390fd5b600061267a611dbd565b9050600061268785612ae3565b9050600061269485612ae3565b90506126a4838989858589612b5d565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508581101561273b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161273290615073565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127f09190614151565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a60405161286d929190614def565b60405180910390a4612883848a8a86868a612b73565b612891848a8a8a8a8a612b7b565b505050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561290c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129039061513c565b60405180910390fd5b6000612916611dbd565b9050600061292384612ae3565b9050600061293084612ae3565b905061295083876000858560405180602001604052806000815250612b5d565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050848110156129e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129de906151ce565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051612ab4929190614def565b60405180910390a4612ada84886000868660405180602001604052806000815250612b73565b50505050505050565b60606000600167ffffffffffffffff811115612b0257612b0161362d565b5b604051908082528060200260200182016040528015612b305781602001602082028036833780820191505090505b5090508281600081518110612b4857612b47614aa3565b5b60200260200101818152505080915050919050565b612b6b868686868686612feb565b505050505050565b505050505050565b612b9a8473ffffffffffffffffffffffffffffffffffffffff166131bd565b15612d4b578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612be09594939291906152d5565b6020604051808303816000875af1925050508015612c1c57506040513d601f19601f82011682018060405250810190612c199190615344565b60015b612cc257612c2861537e565b806308c379a01415612c855750612c3d6153a0565b80612c485750612c87565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c7c9190613586565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cb9906154a8565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612d49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d409061553a565b60405180910390fd5b505b505050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612ddc8473ffffffffffffffffffffffffffffffffffffffff166131bd565b15612f8d578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612e2295949392919061555a565b6020604051808303816000875af1925050508015612e5e57506040513d601f19601f82011682018060405250810190612e5b9190615344565b60015b612f0457612e6a61537e565b806308c379a01415612ec75750612e7f6153a0565b80612e8a5750612ec9565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ebe9190613586565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612efb906154a8565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612f8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f829061553a565b60405180910390fd5b505b505050505050565b60008082905060005b8451811015612fe057612fcb82868381518110612fbe57612fbd614aa3565b5b60200260200101516131e0565b91508080612fd890614ad2565b915050612f9e565b508091505092915050565b612ff986868686868661320b565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156130ab5760005b83518110156130a95782818151811061304d5761304c614aa3565b5b60200260200101516003600086848151811061306c5761306b614aa3565b5b6020026020010151815260200190815260200160002060008282546130919190614151565b92505081905550806130a290614ad2565b9050613031565b505b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156131b55760005b83518110156131b357600084828151811061310157613100614aa3565b5b6020026020010151905060008483815181106131205761311f614aa3565b5b6020026020010151905060006003600084815260200190815260200160002054905081811015613185576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161317c90615634565b60405180910390fd5b8181036003600085815260200190815260200160002081905550505050806131ac90614ad2565b90506130e3565b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008183106131f8576131f38284613213565b613203565b6132028383613213565b5b905092915050565b505050505050565b600082600052816020526040600020905092915050565b82805461323690614340565b90600052602060002090601f016020900481019282613258576000855561329f565b82601f1061327157805160ff191683800117855561329f565b8280016001018555821561329f579182015b8281111561329e578251825591602001919060010190613283565b5b5090506132ac91906132b0565b5090565b5b808211156132c95760008160009055506001016132b1565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061330c826132e1565b9050919050565b61331c81613301565b811461332757600080fd5b50565b60008135905061333981613313565b92915050565b6000819050919050565b6133528161333f565b811461335d57600080fd5b50565b60008135905061336f81613349565b92915050565b60008060006060848603121561338e5761338d6132d7565b5b600061339c8682870161332a565b93505060206133ad86828701613360565b92505060406133be86828701613360565b9150509250925092565b600080604083850312156133df576133de6132d7565b5b60006133ed8582860161332a565b92505060206133fe85828601613360565b9150509250929050565b6134118161333f565b82525050565b600060208201905061342c6000830184613408565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61346781613432565b811461347257600080fd5b50565b6000813590506134848161345e565b92915050565b6000602082840312156134a05761349f6132d7565b5b60006134ae84828501613475565b91505092915050565b60008115159050919050565b6134cc816134b7565b82525050565b60006020820190506134e760008301846134c3565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561352757808201518184015260208101905061350c565b83811115613536576000848401525b50505050565b6000601f19601f8301169050919050565b6000613558826134ed565b61356281856134f8565b9350613572818560208601613509565b61357b8161353c565b840191505092915050565b600060208201905081810360008301526135a0818461354d565b905092915050565b6000806000606084860312156135c1576135c06132d7565b5b60006135cf86828701613360565b93505060206135e08682870161332a565b92505060406135f186828701613360565b9150509250925092565b600060208284031215613611576136106132d7565b5b600061361f84828501613360565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6136658261353c565b810181811067ffffffffffffffff821117156136845761368361362d565b5b80604052505050565b60006136976132cd565b90506136a3828261365c565b919050565b600067ffffffffffffffff8211156136c3576136c261362d565b5b602082029050602081019050919050565b600080fd5b60006136ec6136e7846136a8565b61368d565b9050808382526020820190506020840283018581111561370f5761370e6136d4565b5b835b8181101561373857806137248882613360565b845260208401935050602081019050613711565b5050509392505050565b600082601f83011261375757613756613628565b5b81356137678482602086016136d9565b91505092915050565b600080fd5b600067ffffffffffffffff8211156137905761378f61362d565b5b6137998261353c565b9050602081019050919050565b82818337600083830152505050565b60006137c86137c384613775565b61368d565b9050828152602081018484840111156137e4576137e3613770565b5b6137ef8482856137a6565b509392505050565b600082601f83011261380c5761380b613628565b5b813561381c8482602086016137b5565b91505092915050565b600080600080600060a08688031215613841576138406132d7565b5b600061384f8882890161332a565b95505060206138608882890161332a565b945050604086013567ffffffffffffffff811115613881576138806132dc565b5b61388d88828901613742565b935050606086013567ffffffffffffffff8111156138ae576138ad6132dc565b5b6138ba88828901613742565b925050608086013567ffffffffffffffff8111156138db576138da6132dc565b5b6138e7888289016137f7565b9150509295509295909350565b600067ffffffffffffffff82111561390f5761390e61362d565b5b602082029050602081019050919050565b6000819050919050565b61393381613920565b811461393e57600080fd5b50565b6000813590506139508161392a565b92915050565b6000613969613964846138f4565b61368d565b9050808382526020820190506020840283018581111561398c5761398b6136d4565b5b835b818110156139b557806139a18882613941565b84526020840193505060208101905061398e565b5050509392505050565b600082601f8301126139d4576139d3613628565b5b81356139e4848260208601613956565b91505092915050565b600080600060608486031215613a0657613a056132d7565b5b6000613a1486828701613360565b9350506020613a2586828701613360565b925050604084013567ffffffffffffffff811115613a4657613a456132dc565b5b613a52868287016139bf565b9150509250925092565b600067ffffffffffffffff821115613a7757613a7661362d565b5b602082029050602081019050919050565b6000613a9b613a9684613a5c565b61368d565b90508083825260208201905060208402830185811115613abe57613abd6136d4565b5b835b81811015613ae75780613ad3888261332a565b845260208401935050602081019050613ac0565b5050509392505050565b600082601f830112613b0657613b05613628565b5b8135613b16848260208601613a88565b91505092915050565b60008060408385031215613b3657613b356132d7565b5b600083013567ffffffffffffffff811115613b5457613b536132dc565b5b613b6085828601613af1565b925050602083013567ffffffffffffffff811115613b8157613b806132dc565b5b613b8d85828601613742565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613bcc8161333f565b82525050565b6000613bde8383613bc3565b60208301905092915050565b6000602082019050919050565b6000613c0282613b97565b613c0c8185613ba2565b9350613c1783613bb3565b8060005b83811015613c48578151613c2f8882613bd2565b9750613c3a83613bea565b925050600181019050613c1b565b5085935050505092915050565b60006020820190508181036000830152613c6f8184613bf7565b905092915050565b600067ffffffffffffffff821115613c9257613c9161362d565b5b613c9b8261353c565b9050602081019050919050565b6000613cbb613cb684613c77565b61368d565b905082815260208101848484011115613cd757613cd6613770565b5b613ce28482856137a6565b509392505050565b600082601f830112613cff57613cfe613628565b5b8135613d0f848260208601613ca8565b91505092915050565b600060208284031215613d2e57613d2d6132d7565b5b600082013567ffffffffffffffff811115613d4c57613d4b6132dc565b5b613d5884828501613cea565b91505092915050565b600080600060608486031215613d7a57613d796132d7565b5b6000613d888682870161332a565b935050602084013567ffffffffffffffff811115613da957613da86132dc565b5b613db586828701613742565b925050604084013567ffffffffffffffff811115613dd657613dd56132dc565b5b613de286828701613742565b9150509250925092565b60008060408385031215613e0357613e026132d7565b5b6000613e1185828601613360565b9250506020613e2285828601613941565b9150509250929050565b613e3581613920565b82525050565b6000602082019050613e506000830184613e2c565b92915050565b613e5f81613301565b82525050565b6000602082019050613e7a6000830184613e56565b92915050565b613e89816134b7565b8114613e9457600080fd5b50565b600081359050613ea681613e80565b92915050565b60008060408385031215613ec357613ec26132d7565b5b6000613ed18582860161332a565b9250506020613ee285828601613e97565b9150509250929050565b6000608082019050613f016000830187613e56565b613f0e6020830186613408565b613f1b6040830185613e2c565b613f2860608301846134c3565b95945050505050565b60008060408385031215613f4857613f476132d7565b5b6000613f5685828601613360565b9250506020613f678582860161332a565b9150509250929050565b600060208284031215613f8757613f866132d7565b5b6000613f9584828501613941565b91505092915050565b60008060408385031215613fb557613fb46132d7565b5b6000613fc385828601613360565b9250506020613fd485828601613e97565b9150509250929050565b60008060408385031215613ff557613ff46132d7565b5b60006140038582860161332a565b92505060206140148582860161332a565b9150509250929050565b600080600080600060a0868803121561403a576140396132d7565b5b60006140488882890161332a565b95505060206140598882890161332a565b945050604061406a88828901613360565b935050606061407b88828901613360565b925050608086013567ffffffffffffffff81111561409c5761409b6132dc565b5b6140a8888289016137f7565b9150509295509295909350565b6000602082840312156140cb576140ca6132d7565b5b60006140d98482850161332a565b91505092915050565b600080604083850312156140f9576140f86132d7565b5b600061410785828601613360565b925050602061411885828601613360565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061415c8261333f565b91506141678361333f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561419c5761419b614122565b5b828201905092915050565b7f4578636565647320737570706c79000000000000000000000000000000000000600082015250565b60006141dd600e836134f8565b91506141e8826141a7565b602082019050919050565b6000602082019050818103600083015261420c816141d0565b9050919050565b7f4d7573742062652067726561746572207468616e203000000000000000000000600082015250565b60006142496016836134f8565b915061425482614213565b602082019050919050565b600060208201905081810360008301526142788161423c565b9050919050565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b60006142db602a836134f8565b91506142e68261427f565b604082019050919050565b6000602082019050818103600083015261430a816142ce565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061435857607f821691505b6020821081141561436c5761436b614311565b5b50919050565b7f4974656d20616c72656164792065786973747300000000000000000000000000600082015250565b60006143a86013836134f8565b91506143b382614372565b602082019050919050565b600060208201905081810360008301526143d78161439b565b9050919050565b7f546f6b656e20646f6573206e6f742065786973742e0000000000000000000000600082015250565b60006144146015836134f8565b915061441f826143de565b602082019050919050565b6000602082019050818103600083015261444381614407565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b6000815461447781614340565b614481818661444a565b9450600182166000811461449c57600181146144ad576144e0565b60ff198316865281860193506144e0565b6144b685614455565b60005b838110156144d8578154818901526001820191506020810190506144b9565b838801955050505b50505092915050565b60006144f4826134ed565b6144fe818561444a565b935061450e818560208601613509565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b600061455060058361444a565b915061455b8261451a565b600582019050919050565b6000614572828561446a565b915061457e82846144e9565b915061458982614543565b91508190509392505050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206e6f7220617070726f7665640000000000000000000000000000000000602082015250565b60006145f1602f836134f8565b91506145fc82614595565b604082019050919050565b60006020820190508181036000830152614620816145e4565b9050919050565b60008160601b9050919050565b600061463f82614627565b9050919050565b600061465182614634565b9050919050565b61466961466482613301565b614646565b82525050565b6000819050919050565b61468a6146858261333f565b61466f565b82525050565b600061469c8286614658565b6014820191506146ac8285614679565b6020820191506146bc8284614679565b602082019150819050949350505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614703601f836134f8565b915061470e826146cd565b602082019050919050565b60006020820190508181036000830152614732816146f6565b9050919050565b7f4974656d2063616e6e6f74206265207573656420617420746869732074696d65600082015250565b600061476f6020836134f8565b915061477a82614739565b602082019050919050565b6000602082019050818103600083015261479e81614762565b9050919050565b60006147b18284614679565b60208201915081905092915050565b7f496e76616c69642070667020746f6b656e2069642070726f6f66000000000000600082015250565b60006147f6601a836134f8565b9150614801826147c0565b602082019050919050565b60006020820190508181036000830152614825816147e9565b9050919050565b60008151905061483b81613313565b92915050565b600060208284031215614857576148566132d7565b5b60006148658482850161482c565b91505092915050565b7f596f7520646f206e6f74206f776e207468697320746f6b656e00000000000000600082015250565b60006148a46019836134f8565b91506148af8261486e565b602082019050919050565b600060208201905081810360008301526148d381614897565b9050919050565b7f546869732070667020746f6b656e20616c72656164792075736564207468697360008201527f2074797065206f66206974656d00000000000000000000000000000000000000602082015250565b6000614936602d836134f8565b9150614941826148da565b604082019050919050565b6000602082019050818103600083015261496581614929565b9050919050565b6000819050919050565b6000819050919050565b600061499b6149966149918461496c565b614976565b61333f565b9050919050565b6149ab81614980565b82525050565b60006060820190506149c66000830186613e56565b6149d36020830185613408565b6149e060408301846149a2565b949350505050565b60006040820190506149fd6000830185613e56565b614a0a6020830184613408565b9392505050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000614a6d6029836134f8565b9150614a7882614a11565b604082019050919050565b60006020820190508181036000830152614a9c81614a60565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000614add8261333f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614b1057614b0f614122565b5b600182019050919050565b7f4d65726b6c6520726f6f74206e6f742073657400000000000000000000000000600082015250565b6000614b516013836134f8565b9150614b5c82614b1b565b602082019050919050565b60006020820190508181036000830152614b8081614b44565b9050919050565b7f416c726561647920636c61696d65640000000000000000000000000000000000600082015250565b6000614bbd600f836134f8565b9150614bc882614b87565b602082019050919050565b60006020820190508181036000830152614bec81614bb0565b9050919050565b7f496e76616c69642070726f6f6600000000000000000000000000000000000000600082015250565b6000614c29600d836134f8565b9150614c3482614bf3565b602082019050919050565b60006020820190508181036000830152614c5881614c1c565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614cbb6026836134f8565b9150614cc682614c5f565b604082019050919050565b60006020820190508181036000830152614cea81614cae565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614d276020836134f8565b9150614d3282614cf1565b602082019050919050565b60006020820190508181036000830152614d5681614d1a565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614db96021836134f8565b9150614dc482614d5d565b604082019050919050565b60006020820190508181036000830152614de881614dac565b9050919050565b6000604082019050614e046000830185613408565b614e116020830184613408565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614e528261333f565b9150614e5d8361333f565b925082614e6d57614e6c614e18565b5b828204905092915050565b6000614e838261333f565b9150614e8e8361333f565b925082821015614ea157614ea0614122565b5b828203905092915050565b6000614eb78261333f565b9150614ec28361333f565b925082614ed257614ed1614e18565b5b828206905092915050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b6000614f396028836134f8565b9150614f4482614edd565b604082019050919050565b60006020820190508181036000830152614f6881614f2c565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000614fcb6025836134f8565b9150614fd682614f6f565b604082019050919050565b60006020820190508181036000830152614ffa81614fbe565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b600061505d602a836134f8565b915061506882615001565b604082019050919050565b6000602082019050818103600083015261508c81615050565b9050919050565b600060408201905081810360008301526150ad8185613bf7565b905081810360208301526150c18184613bf7565b90509392505050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006151266023836134f8565b9150615131826150ca565b604082019050919050565b6000602082019050818103600083015261515581615119565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b60006151b86024836134f8565b91506151c38261515c565b604082019050919050565b600060208201905081810360008301526151e7816151ab565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b600061524a6029836134f8565b9150615255826151ee565b604082019050919050565b600060208201905081810360008301526152798161523d565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006152a782615280565b6152b1818561528b565b93506152c1818560208601613509565b6152ca8161353c565b840191505092915050565b600060a0820190506152ea6000830188613e56565b6152f76020830187613e56565b6153046040830186613408565b6153116060830185613408565b8181036080830152615323818461529c565b90509695505050505050565b60008151905061533e8161345e565b92915050565b60006020828403121561535a576153596132d7565b5b60006153688482850161532f565b91505092915050565b60008160e01c9050919050565b600060033d111561539d5760046000803e61539a600051615371565b90505b90565b600060443d10156153b057615433565b6153b86132cd565b60043d036004823e80513d602482011167ffffffffffffffff821117156153e0575050615433565b808201805167ffffffffffffffff8111156153fe5750505050615433565b80602083010160043d03850181111561541b575050505050615433565b61542a8260200185018661365c565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b60006154926034836134f8565b915061549d82615436565b604082019050919050565b600060208201905081810360008301526154c181615485565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b60006155246028836134f8565b915061552f826154c8565b604082019050919050565b6000602082019050818103600083015261555381615517565b9050919050565b600060a08201905061556f6000830188613e56565b61557c6020830187613e56565b818103604083015261558e8186613bf7565b905081810360608301526155a28185613bf7565b905081810360808301526155b6818461529c565b90509695505050505050565b7f455243313135353a206275726e20616d6f756e74206578636565647320746f7460008201527f616c537570706c79000000000000000000000000000000000000000000000000602082015250565b600061561e6028836134f8565b9150615629826155c2565b604082019050919050565b6000602082019050818103600083015261564d81615611565b905091905056fea2646970667358221220b98f58f8300545647d652214447bae41cf5d85d6a0702c2dda9bf3e7e7491e6d64736f6c634300080a0033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061020f5760003560e01c80638da5cb5b11610125578063cc3c0f06116100ad578063e985e9c51161007c578063e985e9c514610645578063f242432a14610675578063f2fde38b14610691578063f5298aca146106ad578063f7f74f0d146106c95761020f565b8063cc3c0f06146105ad578063dc72532e146105dd578063e259b8361461060d578063e5c13dd1146106295761020f565b8063b54bb8d8116100f4578063b54bb8d8146104e5578063b8694dd214610501578063bd85b03914610531578063c275c08b14610561578063c783034c1461057d5761020f565b80638da5cb5b1461045a57806395d89b4114610478578063a22cb46514610496578063b4b5b48f146104b25761020f565b80634080e276116101a85780636b20c454116101775780636b20c454146103ca578063715018a6146103e657806378416adb146103f05780637cbd8ec814610420578063847db45e1461043c5761020f565b80634080e276146103325780634e1273f41461034e5780634f558e791461037e57806355f804b3146103ae5761020f565b80630b88ca09116101e45780630b88ca09146102ae5780630e89341c146102ca5780632eb2c2d6146102fa57806331689167146103165761020f565b80624a84cb14610214578062fdd58e1461023057806301ffc9a71461026057806306fdde0314610290575b600080fd5b61022e60048036038101906102299190613375565b6106f9565b005b61024a600480360381019061024591906133c8565b6107d0565b6040516102579190613417565b60405180910390f35b61027a6004803603810190610275919061348a565b610899565b60405161028791906134d2565b60405180910390f35b6102986108ab565b6040516102a59190613586565b60405180910390f35b6102c860048036038101906102c391906135a8565b61093d565b005b6102e460048036038101906102df91906135fb565b610a26565b6040516102f19190613586565b60405180910390f35b610314600480360381019061030f9190613825565b610ace565b005b610330600480360381019061032b9190613375565b610b6f565b005b61034c600480360381019061034791906139ed565b610bd8565b005b61036860048036038101906103639190613b1f565b610f8f565b6040516103759190613c55565b60405180910390f35b610398600480360381019061039391906135fb565b6110a8565b6040516103a591906134d2565b60405180910390f35b6103c860048036038101906103c39190613d18565b6110bc565b005b6103e460048036038101906103df9190613d61565b6110de565b005b6103ee61117b565b005b61040a600480360381019061040591906135fb565b61118f565b6040516104179190613417565b60405180910390f35b61043a60048036038101906104359190613dec565b6111af565b005b6104446111d6565b6040516104519190613e3b565b60405180910390f35b6104626111dc565b60405161046f9190613e65565b60405180910390f35b610480611206565b60405161048d9190613586565b60405180910390f35b6104b060048036038101906104ab9190613eac565b611298565b005b6104cc60048036038101906104c791906135fb565b6112ae565b6040516104dc9493929190613eec565b60405180910390f35b6104ff60048036038101906104fa9190613f31565b61130b565b005b61051b600480360381019061051691906135fb565b61136c565b6040516105289190613e65565b60405180910390f35b61054b600480360381019061054691906135fb565b6113ac565b6040516105589190613417565b60405180910390f35b61057b60048036038101906105769190613f71565b6113c9565b005b610597600480360381019061059291906135fb565b6113db565b6040516105a491906134d2565b60405180910390f35b6105c760048036038101906105c29190613f71565b611408565b6040516105d491906134d2565b60405180910390f35b6105f760048036038101906105f291906135fb565b611428565b6040516106049190613e3b565b60405180910390f35b610627600480360381019061062291906139ed565b611448565b005b610643600480360381019061063e9190613f9e565b61167c565b005b61065f600480360381019061065a9190613fde565b6116b6565b60405161066c91906134d2565b60405180910390f35b61068f600480360381019061068a919061401e565b61174a565b005b6106ab60048036038101906106a691906140b5565b6117eb565b005b6106c760048036038101906106c29190613375565b61186f565b005b6106e360048036038101906106de91906140e2565b61190c565b6040516106f091906134d2565b60405180910390f35b61070161194b565b600b60008381526020019081526020016000206001015481610722846113ac565b61072c9190614151565b111561076d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610764906141f3565b60405180910390fd5b600081116107b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107a79061425f565b60405180910390fd5b6107cb838383604051806020016040528060008152506119c9565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610841576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610838906142f1565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60006108a482611b7a565b9050919050565b6060600680546108ba90614340565b80601f01602080910402602001604051908101604052809291908181526020018280546108e690614340565b80156109335780601f1061090857610100808354040283529160200191610933565b820191906000526020600020905b81548152906001019060200180831161091657829003601f168201915b5050505050905090565b61094561194b565b6000600b600085815260200190815260200160002060010154148061097257506000610970846113ac565b145b6109b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a8906143be565b60405180910390fd5b80600b60008581526020019081526020016000206001018190555081600b600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b6060610a31826110a8565b610a70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a679061442a565b60405180910390fd5b600060088054610a7f90614340565b905011610a9b5760405180602001604052806000815250610ac7565b6008610aa683611c5c565b604051602001610ab7929190614566565b6040516020818303038152906040525b9050919050565b610ad6611dbd565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610b1c5750610b1b85610b16611dbd565b6116b6565b5b610b5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5290614607565b60405180910390fd5b610b688585858585611dc5565b5050505050565b610b7761194b565b6000838284604051602001610b8e93929190614690565b6040516020818303038152906040528051906020012090506000600a600083815260200190815260200160002060006101000a81548160ff02191690831515021790555050505050565b60026005541415610c1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1590614719565b60405180910390fd5b60026005819055506000600b600085815260200190815260200160002090508060040160009054906101000a900460ff16610c8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8590614785565b60405180910390fd5b6000801b816003015414610d1157610cd182826003015485604051602001610cb691906147a5565b604051602081830303815290604052805190602001206120e7565b610d10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d079061480c565b60405180910390fd5b5b3373ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e856040518263ffffffff1660e01b8152600401610d859190613417565b602060405180830381865afa158015610da2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dc69190614841565b73ffffffffffffffffffffffffffffffffffffffff1614610e1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e13906148ba565b60405180910390fd5b6000151581600201600085815260200190815260200160002060009054906101000a900460ff16151514610e85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7c9061494c565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff1663f5298aca338660016040518463ffffffff1660e01b8152600401610ec3939291906149b1565b600060405180830381600087803b158015610edd57600080fd5b505af1158015610ef1573d6000803e3d6000fd5b50505050837fce0ed18be1f7e35eed96c51492312a3f7af5681c93af73ecb7509e040728ba788260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1685604051610f4b9291906149e8565b60405180910390a2600181600201600085815260200190815260200160002060006101000a81548160ff021916908315150217905550506001600581905550505050565b60608151835114610fd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fcc90614a83565b60405180910390fd5b6000835167ffffffffffffffff811115610ff257610ff161362d565b5b6040519080825280602002602001820160405280156110205781602001602082028036833780820191505090505b50905060005b845181101561109d5761106d85828151811061104557611044614aa3565b5b60200260200101518583815181106110605761105f614aa3565b5b60200260200101516107d0565b8282815181106110805761107f614aa3565b5b6020026020010181815250508061109690614ad2565b9050611026565b508091505092915050565b6000806110b4836113ac565b119050919050565b6110c461194b565b80600890805190602001906110da92919061322a565b5050565b6110e6611dbd565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16148061112c575061112b83611126611dbd565b6116b6565b5b61116b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116290614607565b60405180910390fd5b6111768383836120fe565b505050565b61118361194b565b61118d60006123cd565b565b6000600b6000838152602001908152602001600020600101549050919050565b6111b761194b565b80600b6000848152602001908152602001600020600301819055505050565b60095481565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606007805461121590614340565b80601f016020809104026020016040519081016040528092919081815260200182805461124190614340565b801561128e5780601f106112635761010080835404028352916020019161128e565b820191906000526020600020905b81548152906001019060200180831161127157829003601f168201915b5050505050905090565b6112aa6112a3611dbd565b8383612493565b5050565b600b6020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060030154908060040160009054906101000a900460ff16905084565b61131361194b565b80600b600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000600b600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600060036000838152602001908152602001600020549050919050565b6113d161194b565b8060098190555050565b6000600b600083815260200190815260200160002060040160009054906101000a900460ff169050919050565b600a6020528060005260406000206000915054906101000a900460ff1681565b6000600b6000838152602001908152602001600020600301549050919050565b6002600554141561148e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148590614719565b60405180910390fd5b60026005819055506000801b60095414156114de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114d590614b67565b60405180910390fd5b60003384846040516020016114f593929190614690565b604051602081830303815290604052805190602001209050600a600082815260200190815260200160002060009054906101000a900460ff161561156e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156590614bd3565b60405180910390fd5b61157b82600954836120e7565b6115ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b190614c3f565b60405180910390fd5b600b60008581526020019081526020016000206001015460016115dc866113ac565b6115e69190614151565b1115611627576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161e906141f3565b60405180910390fd5b6001600a600083815260200190815260200160002060006101000a81548160ff02191690831515021790555061166e338585604051806020016040528060008152506119c9565b506001600581905550505050565b61168461194b565b80600b600084815260200190815260200160002060040160006101000a81548160ff0219169083151502179055505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611752611dbd565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611798575061179785611792611dbd565b6116b6565b5b6117d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ce90614607565b60405180910390fd5b6117e48585858585612600565b5050505050565b6117f361194b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611863576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185a90614cd1565b60405180910390fd5b61186c816123cd565b50565b611877611dbd565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614806118bd57506118bc836118b7611dbd565b6116b6565b5b6118fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118f390614607565b60405180910390fd5b61190783838361289c565b505050565b6000600b6000848152602001908152602001600020600201600083815260200190815260200160002060009054906101000a900460ff16905092915050565b611953611dbd565b73ffffffffffffffffffffffffffffffffffffffff166119716111dc565b73ffffffffffffffffffffffffffffffffffffffff16146119c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119be90614d3d565b60405180910390fd5b565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611a39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3090614dcf565b60405180910390fd5b6000611a43611dbd565b90506000611a5085612ae3565b90506000611a5d85612ae3565b9050611a6e83600089858589612b5d565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611acd9190614151565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051611b4b929190614def565b60405180910390a4611b6283600089858589612b73565b611b7183600089898989612b7b565b50505050505050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611c4557507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611c555750611c5482612d53565b5b9050919050565b60606000821415611ca4576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611db8565b600082905060005b60008214611cd6578080611cbf90614ad2565b915050600a82611ccf9190614e47565b9150611cac565b60008167ffffffffffffffff811115611cf257611cf161362d565b5b6040519080825280601f01601f191660200182016040528015611d245781602001600182028036833780820191505090505b5090505b60008514611db157600182611d3d9190614e78565b9150600a85611d4c9190614eac565b6030611d589190614151565b60f81b818381518110611d6e57611d6d614aa3565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611daa9190614e47565b9450611d28565b8093505050505b919050565b600033905090565b8151835114611e09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e0090614f4f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611e79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7090614fe1565b60405180910390fd5b6000611e83611dbd565b9050611e93818787878787612b5d565b60005b8451811015612044576000858281518110611eb457611eb3614aa3565b5b602002602001015190506000858381518110611ed357611ed2614aa3565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611f74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6b90615073565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120299190614151565b925050819055505050508061203d90614ad2565b9050611e96565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516120bb929190615093565b60405180910390a46120d1818787878787612b73565b6120df818787878787612dbd565b505050505050565b6000826120f48584612f95565b1490509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561216e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121659061513c565b60405180910390fd5b80518251146121b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121a990614f4f565b60405180910390fd5b60006121bc611dbd565b90506121dc81856000868660405180602001604052806000815250612b5d565b60005b83518110156123295760008482815181106121fd576121fc614aa3565b5b60200260200101519050600084838151811061221c5761221b614aa3565b5b60200260200101519050600080600084815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156122bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b4906151ce565b60405180910390fd5b81810360008085815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505050808061232190614ad2565b9150506121df565b50600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516123a1929190615093565b60405180910390a46123c781856000868660405180602001604052806000815250612b73565b50505050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612502576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124f990615260565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516125f391906134d2565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612670576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266790614fe1565b60405180910390fd5b600061267a611dbd565b9050600061268785612ae3565b9050600061269485612ae3565b90506126a4838989858589612b5d565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508581101561273b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161273290615073565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127f09190614151565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a60405161286d929190614def565b60405180910390a4612883848a8a86868a612b73565b612891848a8a8a8a8a612b7b565b505050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561290c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129039061513c565b60405180910390fd5b6000612916611dbd565b9050600061292384612ae3565b9050600061293084612ae3565b905061295083876000858560405180602001604052806000815250612b5d565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050848110156129e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129de906151ce565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051612ab4929190614def565b60405180910390a4612ada84886000868660405180602001604052806000815250612b73565b50505050505050565b60606000600167ffffffffffffffff811115612b0257612b0161362d565b5b604051908082528060200260200182016040528015612b305781602001602082028036833780820191505090505b5090508281600081518110612b4857612b47614aa3565b5b60200260200101818152505080915050919050565b612b6b868686868686612feb565b505050505050565b505050505050565b612b9a8473ffffffffffffffffffffffffffffffffffffffff166131bd565b15612d4b578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612be09594939291906152d5565b6020604051808303816000875af1925050508015612c1c57506040513d601f19601f82011682018060405250810190612c199190615344565b60015b612cc257612c2861537e565b806308c379a01415612c855750612c3d6153a0565b80612c485750612c87565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c7c9190613586565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cb9906154a8565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612d49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d409061553a565b60405180910390fd5b505b505050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612ddc8473ffffffffffffffffffffffffffffffffffffffff166131bd565b15612f8d578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612e2295949392919061555a565b6020604051808303816000875af1925050508015612e5e57506040513d601f19601f82011682018060405250810190612e5b9190615344565b60015b612f0457612e6a61537e565b806308c379a01415612ec75750612e7f6153a0565b80612e8a5750612ec9565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ebe9190613586565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612efb906154a8565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612f8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f829061553a565b60405180910390fd5b505b505050505050565b60008082905060005b8451811015612fe057612fcb82868381518110612fbe57612fbd614aa3565b5b60200260200101516131e0565b91508080612fd890614ad2565b915050612f9e565b508091505092915050565b612ff986868686868661320b565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156130ab5760005b83518110156130a95782818151811061304d5761304c614aa3565b5b60200260200101516003600086848151811061306c5761306b614aa3565b5b6020026020010151815260200190815260200160002060008282546130919190614151565b92505081905550806130a290614ad2565b9050613031565b505b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156131b55760005b83518110156131b357600084828151811061310157613100614aa3565b5b6020026020010151905060008483815181106131205761311f614aa3565b5b6020026020010151905060006003600084815260200190815260200160002054905081811015613185576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161317c90615634565b60405180910390fd5b8181036003600085815260200190815260200160002081905550505050806131ac90614ad2565b90506130e3565b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008183106131f8576131f38284613213565b613203565b6132028383613213565b5b905092915050565b505050505050565b600082600052816020526040600020905092915050565b82805461323690614340565b90600052602060002090601f016020900481019282613258576000855561329f565b82601f1061327157805160ff191683800117855561329f565b8280016001018555821561329f579182015b8281111561329e578251825591602001919060010190613283565b5b5090506132ac91906132b0565b5090565b5b808211156132c95760008160009055506001016132b1565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061330c826132e1565b9050919050565b61331c81613301565b811461332757600080fd5b50565b60008135905061333981613313565b92915050565b6000819050919050565b6133528161333f565b811461335d57600080fd5b50565b60008135905061336f81613349565b92915050565b60008060006060848603121561338e5761338d6132d7565b5b600061339c8682870161332a565b93505060206133ad86828701613360565b92505060406133be86828701613360565b9150509250925092565b600080604083850312156133df576133de6132d7565b5b60006133ed8582860161332a565b92505060206133fe85828601613360565b9150509250929050565b6134118161333f565b82525050565b600060208201905061342c6000830184613408565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61346781613432565b811461347257600080fd5b50565b6000813590506134848161345e565b92915050565b6000602082840312156134a05761349f6132d7565b5b60006134ae84828501613475565b91505092915050565b60008115159050919050565b6134cc816134b7565b82525050565b60006020820190506134e760008301846134c3565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561352757808201518184015260208101905061350c565b83811115613536576000848401525b50505050565b6000601f19601f8301169050919050565b6000613558826134ed565b61356281856134f8565b9350613572818560208601613509565b61357b8161353c565b840191505092915050565b600060208201905081810360008301526135a0818461354d565b905092915050565b6000806000606084860312156135c1576135c06132d7565b5b60006135cf86828701613360565b93505060206135e08682870161332a565b92505060406135f186828701613360565b9150509250925092565b600060208284031215613611576136106132d7565b5b600061361f84828501613360565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6136658261353c565b810181811067ffffffffffffffff821117156136845761368361362d565b5b80604052505050565b60006136976132cd565b90506136a3828261365c565b919050565b600067ffffffffffffffff8211156136c3576136c261362d565b5b602082029050602081019050919050565b600080fd5b60006136ec6136e7846136a8565b61368d565b9050808382526020820190506020840283018581111561370f5761370e6136d4565b5b835b8181101561373857806137248882613360565b845260208401935050602081019050613711565b5050509392505050565b600082601f83011261375757613756613628565b5b81356137678482602086016136d9565b91505092915050565b600080fd5b600067ffffffffffffffff8211156137905761378f61362d565b5b6137998261353c565b9050602081019050919050565b82818337600083830152505050565b60006137c86137c384613775565b61368d565b9050828152602081018484840111156137e4576137e3613770565b5b6137ef8482856137a6565b509392505050565b600082601f83011261380c5761380b613628565b5b813561381c8482602086016137b5565b91505092915050565b600080600080600060a08688031215613841576138406132d7565b5b600061384f8882890161332a565b95505060206138608882890161332a565b945050604086013567ffffffffffffffff811115613881576138806132dc565b5b61388d88828901613742565b935050606086013567ffffffffffffffff8111156138ae576138ad6132dc565b5b6138ba88828901613742565b925050608086013567ffffffffffffffff8111156138db576138da6132dc565b5b6138e7888289016137f7565b9150509295509295909350565b600067ffffffffffffffff82111561390f5761390e61362d565b5b602082029050602081019050919050565b6000819050919050565b61393381613920565b811461393e57600080fd5b50565b6000813590506139508161392a565b92915050565b6000613969613964846138f4565b61368d565b9050808382526020820190506020840283018581111561398c5761398b6136d4565b5b835b818110156139b557806139a18882613941565b84526020840193505060208101905061398e565b5050509392505050565b600082601f8301126139d4576139d3613628565b5b81356139e4848260208601613956565b91505092915050565b600080600060608486031215613a0657613a056132d7565b5b6000613a1486828701613360565b9350506020613a2586828701613360565b925050604084013567ffffffffffffffff811115613a4657613a456132dc565b5b613a52868287016139bf565b9150509250925092565b600067ffffffffffffffff821115613a7757613a7661362d565b5b602082029050602081019050919050565b6000613a9b613a9684613a5c565b61368d565b90508083825260208201905060208402830185811115613abe57613abd6136d4565b5b835b81811015613ae75780613ad3888261332a565b845260208401935050602081019050613ac0565b5050509392505050565b600082601f830112613b0657613b05613628565b5b8135613b16848260208601613a88565b91505092915050565b60008060408385031215613b3657613b356132d7565b5b600083013567ffffffffffffffff811115613b5457613b536132dc565b5b613b6085828601613af1565b925050602083013567ffffffffffffffff811115613b8157613b806132dc565b5b613b8d85828601613742565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613bcc8161333f565b82525050565b6000613bde8383613bc3565b60208301905092915050565b6000602082019050919050565b6000613c0282613b97565b613c0c8185613ba2565b9350613c1783613bb3565b8060005b83811015613c48578151613c2f8882613bd2565b9750613c3a83613bea565b925050600181019050613c1b565b5085935050505092915050565b60006020820190508181036000830152613c6f8184613bf7565b905092915050565b600067ffffffffffffffff821115613c9257613c9161362d565b5b613c9b8261353c565b9050602081019050919050565b6000613cbb613cb684613c77565b61368d565b905082815260208101848484011115613cd757613cd6613770565b5b613ce28482856137a6565b509392505050565b600082601f830112613cff57613cfe613628565b5b8135613d0f848260208601613ca8565b91505092915050565b600060208284031215613d2e57613d2d6132d7565b5b600082013567ffffffffffffffff811115613d4c57613d4b6132dc565b5b613d5884828501613cea565b91505092915050565b600080600060608486031215613d7a57613d796132d7565b5b6000613d888682870161332a565b935050602084013567ffffffffffffffff811115613da957613da86132dc565b5b613db586828701613742565b925050604084013567ffffffffffffffff811115613dd657613dd56132dc565b5b613de286828701613742565b9150509250925092565b60008060408385031215613e0357613e026132d7565b5b6000613e1185828601613360565b9250506020613e2285828601613941565b9150509250929050565b613e3581613920565b82525050565b6000602082019050613e506000830184613e2c565b92915050565b613e5f81613301565b82525050565b6000602082019050613e7a6000830184613e56565b92915050565b613e89816134b7565b8114613e9457600080fd5b50565b600081359050613ea681613e80565b92915050565b60008060408385031215613ec357613ec26132d7565b5b6000613ed18582860161332a565b9250506020613ee285828601613e97565b9150509250929050565b6000608082019050613f016000830187613e56565b613f0e6020830186613408565b613f1b6040830185613e2c565b613f2860608301846134c3565b95945050505050565b60008060408385031215613f4857613f476132d7565b5b6000613f5685828601613360565b9250506020613f678582860161332a565b9150509250929050565b600060208284031215613f8757613f866132d7565b5b6000613f9584828501613941565b91505092915050565b60008060408385031215613fb557613fb46132d7565b5b6000613fc385828601613360565b9250506020613fd485828601613e97565b9150509250929050565b60008060408385031215613ff557613ff46132d7565b5b60006140038582860161332a565b92505060206140148582860161332a565b9150509250929050565b600080600080600060a0868803121561403a576140396132d7565b5b60006140488882890161332a565b95505060206140598882890161332a565b945050604061406a88828901613360565b935050606061407b88828901613360565b925050608086013567ffffffffffffffff81111561409c5761409b6132dc565b5b6140a8888289016137f7565b9150509295509295909350565b6000602082840312156140cb576140ca6132d7565b5b60006140d98482850161332a565b91505092915050565b600080604083850312156140f9576140f86132d7565b5b600061410785828601613360565b925050602061411885828601613360565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061415c8261333f565b91506141678361333f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561419c5761419b614122565b5b828201905092915050565b7f4578636565647320737570706c79000000000000000000000000000000000000600082015250565b60006141dd600e836134f8565b91506141e8826141a7565b602082019050919050565b6000602082019050818103600083015261420c816141d0565b9050919050565b7f4d7573742062652067726561746572207468616e203000000000000000000000600082015250565b60006142496016836134f8565b915061425482614213565b602082019050919050565b600060208201905081810360008301526142788161423c565b9050919050565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b60006142db602a836134f8565b91506142e68261427f565b604082019050919050565b6000602082019050818103600083015261430a816142ce565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061435857607f821691505b6020821081141561436c5761436b614311565b5b50919050565b7f4974656d20616c72656164792065786973747300000000000000000000000000600082015250565b60006143a86013836134f8565b91506143b382614372565b602082019050919050565b600060208201905081810360008301526143d78161439b565b9050919050565b7f546f6b656e20646f6573206e6f742065786973742e0000000000000000000000600082015250565b60006144146015836134f8565b915061441f826143de565b602082019050919050565b6000602082019050818103600083015261444381614407565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b6000815461447781614340565b614481818661444a565b9450600182166000811461449c57600181146144ad576144e0565b60ff198316865281860193506144e0565b6144b685614455565b60005b838110156144d8578154818901526001820191506020810190506144b9565b838801955050505b50505092915050565b60006144f4826134ed565b6144fe818561444a565b935061450e818560208601613509565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b600061455060058361444a565b915061455b8261451a565b600582019050919050565b6000614572828561446a565b915061457e82846144e9565b915061458982614543565b91508190509392505050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206e6f7220617070726f7665640000000000000000000000000000000000602082015250565b60006145f1602f836134f8565b91506145fc82614595565b604082019050919050565b60006020820190508181036000830152614620816145e4565b9050919050565b60008160601b9050919050565b600061463f82614627565b9050919050565b600061465182614634565b9050919050565b61466961466482613301565b614646565b82525050565b6000819050919050565b61468a6146858261333f565b61466f565b82525050565b600061469c8286614658565b6014820191506146ac8285614679565b6020820191506146bc8284614679565b602082019150819050949350505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614703601f836134f8565b915061470e826146cd565b602082019050919050565b60006020820190508181036000830152614732816146f6565b9050919050565b7f4974656d2063616e6e6f74206265207573656420617420746869732074696d65600082015250565b600061476f6020836134f8565b915061477a82614739565b602082019050919050565b6000602082019050818103600083015261479e81614762565b9050919050565b60006147b18284614679565b60208201915081905092915050565b7f496e76616c69642070667020746f6b656e2069642070726f6f66000000000000600082015250565b60006147f6601a836134f8565b9150614801826147c0565b602082019050919050565b60006020820190508181036000830152614825816147e9565b9050919050565b60008151905061483b81613313565b92915050565b600060208284031215614857576148566132d7565b5b60006148658482850161482c565b91505092915050565b7f596f7520646f206e6f74206f776e207468697320746f6b656e00000000000000600082015250565b60006148a46019836134f8565b91506148af8261486e565b602082019050919050565b600060208201905081810360008301526148d381614897565b9050919050565b7f546869732070667020746f6b656e20616c72656164792075736564207468697360008201527f2074797065206f66206974656d00000000000000000000000000000000000000602082015250565b6000614936602d836134f8565b9150614941826148da565b604082019050919050565b6000602082019050818103600083015261496581614929565b9050919050565b6000819050919050565b6000819050919050565b600061499b6149966149918461496c565b614976565b61333f565b9050919050565b6149ab81614980565b82525050565b60006060820190506149c66000830186613e56565b6149d36020830185613408565b6149e060408301846149a2565b949350505050565b60006040820190506149fd6000830185613e56565b614a0a6020830184613408565b9392505050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000614a6d6029836134f8565b9150614a7882614a11565b604082019050919050565b60006020820190508181036000830152614a9c81614a60565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000614add8261333f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614b1057614b0f614122565b5b600182019050919050565b7f4d65726b6c6520726f6f74206e6f742073657400000000000000000000000000600082015250565b6000614b516013836134f8565b9150614b5c82614b1b565b602082019050919050565b60006020820190508181036000830152614b8081614b44565b9050919050565b7f416c726561647920636c61696d65640000000000000000000000000000000000600082015250565b6000614bbd600f836134f8565b9150614bc882614b87565b602082019050919050565b60006020820190508181036000830152614bec81614bb0565b9050919050565b7f496e76616c69642070726f6f6600000000000000000000000000000000000000600082015250565b6000614c29600d836134f8565b9150614c3482614bf3565b602082019050919050565b60006020820190508181036000830152614c5881614c1c565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614cbb6026836134f8565b9150614cc682614c5f565b604082019050919050565b60006020820190508181036000830152614cea81614cae565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614d276020836134f8565b9150614d3282614cf1565b602082019050919050565b60006020820190508181036000830152614d5681614d1a565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614db96021836134f8565b9150614dc482614d5d565b604082019050919050565b60006020820190508181036000830152614de881614dac565b9050919050565b6000604082019050614e046000830185613408565b614e116020830184613408565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614e528261333f565b9150614e5d8361333f565b925082614e6d57614e6c614e18565b5b828204905092915050565b6000614e838261333f565b9150614e8e8361333f565b925082821015614ea157614ea0614122565b5b828203905092915050565b6000614eb78261333f565b9150614ec28361333f565b925082614ed257614ed1614e18565b5b828206905092915050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b6000614f396028836134f8565b9150614f4482614edd565b604082019050919050565b60006020820190508181036000830152614f6881614f2c565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000614fcb6025836134f8565b9150614fd682614f6f565b604082019050919050565b60006020820190508181036000830152614ffa81614fbe565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b600061505d602a836134f8565b915061506882615001565b604082019050919050565b6000602082019050818103600083015261508c81615050565b9050919050565b600060408201905081810360008301526150ad8185613bf7565b905081810360208301526150c18184613bf7565b90509392505050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006151266023836134f8565b9150615131826150ca565b604082019050919050565b6000602082019050818103600083015261515581615119565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b60006151b86024836134f8565b91506151c38261515c565b604082019050919050565b600060208201905081810360008301526151e7816151ab565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b600061524a6029836134f8565b9150615255826151ee565b604082019050919050565b600060208201905081810360008301526152798161523d565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006152a782615280565b6152b1818561528b565b93506152c1818560208601613509565b6152ca8161353c565b840191505092915050565b600060a0820190506152ea6000830188613e56565b6152f76020830187613e56565b6153046040830186613408565b6153116060830185613408565b8181036080830152615323818461529c565b90509695505050505050565b60008151905061533e8161345e565b92915050565b60006020828403121561535a576153596132d7565b5b60006153688482850161532f565b91505092915050565b60008160e01c9050919050565b600060033d111561539d5760046000803e61539a600051615371565b90505b90565b600060443d10156153b057615433565b6153b86132cd565b60043d036004823e80513d602482011167ffffffffffffffff821117156153e0575050615433565b808201805167ffffffffffffffff8111156153fe5750505050615433565b80602083010160043d03850181111561541b575050505050615433565b61542a8260200185018661365c565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b60006154926034836134f8565b915061549d82615436565b604082019050919050565b600060208201905081810360008301526154c181615485565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b60006155246028836134f8565b915061552f826154c8565b604082019050919050565b6000602082019050818103600083015261555381615517565b9050919050565b600060a08201905061556f6000830188613e56565b61557c6020830187613e56565b818103604083015261558e8186613bf7565b905081810360608301526155a28185613bf7565b905081810360808301526155b6818461529c565b90509695505050505050565b7f455243313135353a206275726e20616d6f756e74206578636565647320746f7460008201527f616c537570706c79000000000000000000000000000000000000000000000000602082015250565b600061561e6028836134f8565b9150615629826155c2565b604082019050919050565b6000602082019050818103600083015261564d81615611565b905091905056fea2646970667358221220b98f58f8300545647d652214447bae41cf5d85d6a0702c2dda9bf3e7e7491e6d64736f6c634300080a0033

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.