ETH Price: $3,909.74 (+0.43%)

Token

Launch Pass (LAUNCH)
 

Overview

Max Total Supply

5,782 LAUNCH

Holders

5,771

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
daril123c.eth
Balance
1 LAUNCH
0xC18305BB0499F521A3025CCF5Eeeeb872F225D72
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:
LaunchPass

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 23 : LaunchPass.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;

import {NFTPass} from '../NFTPass/NFTPass.sol';

contract LaunchPass is NFTPass {
    constructor(address tokenRendererAddress, address whitelistSigningKey, string memory contractUriJSON)
    public NFTPass(tokenRendererAddress, whitelistSigningKey, contractUriJSON, "Launch Pass", "LAUNCH") {}
}

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

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

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

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

File 3 of 23 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

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

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

File 5 of 23 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 = _ownerOf(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 or 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 or 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 or 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 the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @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 _ownerOf(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, 1);

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

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

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

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

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

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

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

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

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

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

    /**
     * @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. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
     * - When `from` is zero, the tokens will be minted for `to`.
     * - When `to` is zero, ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256, /* firstTokenId */
        uint256 batchSize
    ) internal virtual {
        if (batchSize > 1) {
            if (from != address(0)) {
                _balances[from] -= batchSize;
            }
            if (to != address(0)) {
                _balances[to] += batchSize;
            }
        }
    }

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual {}
}

File 6 of 23 : ERC721Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Burnable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "../../../utils/Context.sol";

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");
        _burn(tokenId);
    }
}

File 7 of 23 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

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

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @dev See {ERC721-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, firstTokenId, batchSize);

        if (batchSize > 1) {
            // Will only trigger during construction. Batch transferring (minting) is not available afterwards.
            revert("ERC721Enumerable: consecutive transfers not supported");
        }

        uint256 tokenId = firstTokenId;

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 9 of 23 : 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 10 of 23 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * 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 11 of 23 : 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 12 of 23 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 13 of 23 : Base64.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 *
 * _Available since v4.5._
 */
library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /**
     * @dev Converts a `bytes` to its Bytes64 `string` representation.
     */
    function encode(bytes memory data) internal pure returns (string memory) {
        /**
         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
         */
        if (data.length == 0) return "";

        // Loads the table into memory
        string memory table = _TABLE;

        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
        // and split into 4 numbers of 6 bits.
        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
        // - `data.length + 2`  -> Round up
        // - `/ 3`              -> Number of 3-bytes chunks
        // - `4 *`              -> 4 characters for each chunk
        string memory result = new string(4 * ((data.length + 2) / 3));

        /// @solidity memory-safe-assembly
        assembly {
            // Prepare the lookup table (skip the first "length" byte)
            let tablePtr := add(table, 1)

            // Prepare result pointer, jump over length
            let resultPtr := add(result, 32)

            // Run over the input, 3 bytes at a time
            for {
                let dataPtr := data
                let endPtr := add(data, mload(data))
            } lt(dataPtr, endPtr) {

            } {
                // Advance 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // To write each character, shift the 3 bytes (18 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F which is the number of
                // the previous character in the ASCII table prior to the Base64 Table
                // The result is then added to the table to get the character to write,
                // and finally write it in the result pointer but with a left shift
                // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits

                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance
            }

            // When data `bytes` is not exactly 3 bytes long
            // it is padded with `=` characters at the end
            switch mod(mload(data), 3)
            case 1 {
                mstore8(sub(resultPtr, 1), 0x3d)
                mstore8(sub(resultPtr, 2), 0x3d)
            }
            case 2 {
                mstore8(sub(resultPtr, 1), 0x3d)
            }
        }

        return result;
    }
}

File 14 of 23 : 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 15 of 23 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 16 of 23 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

File 17 of 23 : 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 18 of 23 : 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 19 of 23 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

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

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

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

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

File 21 of 23 : ITokenRenderer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;

interface ITokenRenderer {
    function getTokenURI(uint256 tokenId, string memory name) external view returns (string memory);
}

File 22 of 23 : NFTPass.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Base64.sol";

import {ITokenRenderer} from "./ITokenRenderer.sol";
import {SignedAllowlist} from "../SignedAllowlist.sol";

contract NFTPass is ERC721, ERC721Enumerable, ERC721Burnable, ReentrancyGuard, Pausable, Ownable, SignedAllowlist {
    using Counters for Counters.Counter;
    Counters.Counter private _tokenIdCounter;
    uint256 private _maxSupply = 0;
    uint256 private _mintPrice = 0 ether;
    uint256 private _maxPerWallet = 1;
    address private _tokenRendererAddress;
    bool private _isTokenRendererFrozen;
    bool private _isPublicMintEnabled;
    string private _contractUriJSON;

    constructor(address tokenRendererAddress, address whitelistSigningKey, string memory contractUriJSON, string memory name, string memory symbol) public ERC721(name, symbol) SignedAllowlist(name, whitelistSigningKey) {
        _tokenRendererAddress = tokenRendererAddress;
        _contractUriJSON = contractUriJSON;
    }

    // Contract URI
    function setContractUriJSON(string memory contractUriJSON) public onlyOwner {
        _contractUriJSON = contractUriJSON;
    }

    function contractURI() public view returns (string memory) {
        return string(
            abi.encodePacked(
                "data:application/json;base64,",
                Base64.encode(bytes(
                    abi.encodePacked(
                        _contractUriJSON
                    )
                ))
            )
        );
    }

    // Max per wallet
    function setMaxPerWallet(uint256 maxPerWallet) public onlyOwner {
        _maxPerWallet = maxPerWallet;
    }

    function maxPerWallet() public view returns (uint256) {
        return _maxPerWallet;
    }

    // Max supply
    function setMaxSupply(uint256 maxSupply) public onlyOwner {
        _maxSupply = maxSupply;
    }

    function maxSupply() public view returns (uint256) {
        return _maxSupply;
    }

    // Price
    function setMintPrice(uint256 mintPrice) public onlyOwner {
        _mintPrice = mintPrice;
    }

    function mintPrice() public view returns (uint256){
        return _mintPrice;
    }

    // Public mint
    function setPublicMintEnabled(bool enabled) public onlyOwner {
        _isPublicMintEnabled = enabled;
    }

    function publicMintEnabled() public view returns (bool) {
        return _isPublicMintEnabled;
    }

    // Token renderer
    modifier whenTokenRendererNotFrozen() {
        require(!_isTokenRendererFrozen, "URI getter is frozen");
        _;
    }

    function freezeTokenRenderer() public onlyOwner {
        _isTokenRendererFrozen = true;
    }

    function setTokenRendererAddress(address tokenRenderer) public onlyOwner whenTokenRendererNotFrozen {
        _tokenRendererAddress = tokenRenderer;
    }

    // Mint
    function _mintToken(address to) internal returns (uint256) {
        require(balanceOf(to) <= (_maxPerWallet - 1), "Exceeds amount of passes per person");

        uint256 tokenId = _tokenIdCounter.current();

        if (_maxSupply != 0) {
            require(tokenId < _maxSupply, "Max supply reached");
        }

        _tokenIdCounter.increment();
        _safeMint(to, tokenId);

        return tokenId;
    }

    function _mintTokenCheckPrice(address to) internal {
        if (_mintPrice != 0) {
            require(msg.value == _mintPrice, "Transaction value did not equal to mint price");
        }

        address to = _msgSender();
        _mintToken(to);
    }

    function safeMint(address to) public onlyOwner {
        _mintToken(to);
    }

    function mint() public whenNotPaused payable {
        require(_isPublicMintEnabled == true, "Public mint is not enabled");
        _mintTokenCheckPrice(_msgSender());
    }

    function allowlistMint(bytes calldata signature) public whenNotPaused requiresAllowlist(signature) payable
    {
        _mintTokenCheckPrice(_msgSender());
    }

    function tokenURI(uint256 tokenId) public view override(ERC721) returns (string memory)
    {
        _requireMinted(tokenId);
        ITokenRenderer template = ITokenRenderer(_tokenRendererAddress);
        return template.getTokenURI(tokenId, name());
    }

    // Payments
    function withdrawPayments() public onlyOwner nonReentrant {
        uint256 balance = address(this).balance;
        Address.sendValue(payable(owner()), balance);
    }

    function payments() public view onlyOwner returns (uint256) {
        return address(this).balance;
    }

    // Pausable
    function pause() public onlyOwner {
        _pause();
    }

    function unpause() public onlyOwner {
        _unpause();
    }

    // ERC721Enumerable
    function _beforeTokenTransfer(address from, address to, uint256 tokenId, uint256 batchSize) internal whenNotPaused override(ERC721, ERC721Enumerable)
    {
        super._beforeTokenTransfer(from, to, tokenId, batchSize);
    }

    function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable) returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }
}

File 23 of 23 : SignedAllowlist.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

contract SignedAllowlist is Ownable {
    using ECDSA for bytes32;

    // The key used to sign Allowlist signatures.
    // We will check to ensure that the key that signed the signature
    // is this one that we expect.
    address AllowlistSigningKey = address(0);

    // Domain Separator is the EIP-712 defined structure that defines what contract
    // and chain these signatures can be used for.  This ensures people can't take
    // a signature used to mint on one contract and use it for another, or a signature
    // from testnet to replay on mainnet.
    // It has to be created in the constructor so we can dynamically grab the chainId.
    // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md#definition-of-domainseparator
    bytes32 public DOMAIN_SEPARATOR;

    // The typehash for the data type specified in the structured data
    // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md#rationale-for-typehash
    // This should match whats in the client side Allowlist signing code
    // https://github.com/msfeldstein/EIP712-Allowlisting/blob/main/test/signAllowlist.ts#L22
    bytes32 public constant MINTER_TYPEHASH = keccak256("Minter(address wallet)");

    constructor(string memory name_, address signingKey) {
        // This should match whats in the client side Allowlist signing code
        // https://github.com/msfeldstein/EIP712-Allowlisting/blob/main/test/signAllowlist.ts#L12
        DOMAIN_SEPARATOR = keccak256(
            abi.encode(
                keccak256(
                    "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
                ),
            // This should match the domain you set in your client side signing.
                keccak256(bytes(name_)),
                keccak256(bytes("1")),
                block.chainid,
                address(this)
            )
        );

        AllowlistSigningKey = signingKey;
    }

    function setAllowlistSigningAddress(address newSigningKey) public onlyOwner
    {
        AllowlistSigningKey = newSigningKey;
    }

    modifier requiresAllowlist(bytes calldata signature) {
        require(AllowlistSigningKey != address(0), "Allowlist not enabled");
        // Verify EIP-712 signature by recreating the data structure
        // that we signed on the client side, and then using that to recover
        // the address that signed the signature for this data.
        bytes32 digest = keccak256(
            abi.encodePacked(
                "\x19\x01",
                DOMAIN_SEPARATOR,
                keccak256(abi.encode(MINTER_TYPEHASH, _msgSender()))
            )
        );
        // Use the recover method to see what address was used to create
        // the signature on this data.
        // Note that if the digest doesn't exactly match what was signed we'll
        // get a random recovered address.
        address recoveredAddress = digest.recover(signature);

        require(recoveredAddress == AllowlistSigningKey, "Invalid Signature");
        _;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"tokenRendererAddress","type":"address"},{"internalType":"address","name":"whitelistSigningKey","type":"address"},{"internalType":"string","name":"contractUriJSON","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"allowlistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freezeTokenRenderer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payments","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"safeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSigningKey","type":"address"}],"name":"setAllowlistSigningAddress","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":"contractUriJSON","type":"string"}],"name":"setContractUriJSON","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxPerWallet","type":"uint256"}],"name":"setMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setPublicMintEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenRenderer","type":"address"}],"name":"setTokenRendererAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawPayments","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600f55600060105560016011553480156200006257600080fd5b5060405162005ece38038062005ece833981810160405281019062000088919062000568565b8282826040518060400160405280600b81526020017f4c61756e636820506173730000000000000000000000000000000000000000008152506040518060400160405280600681526020017f4c41554e434800000000000000000000000000000000000000000000000000008152508184838381600090816200010c91906200082e565b5080600190816200011e91906200082e565b5050506001600a819055506000600b60006101000a81548160ff0219169083151502179055506200016462000158620002a260201b60201c565b620002aa60201b60201c565b7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f82805190602001206040518060400160405280600181526020017f3100000000000000000000000000000000000000000000000000000000000000815250805190602001204630604051602001620001e295949392919062000952565b60405160208183030381529060405280519060200120600d8190555080600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505084601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082601390816200029391906200082e565b505050505050505050620009af565b600033905090565b6000600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620003b18262000384565b9050919050565b620003c381620003a4565b8114620003cf57600080fd5b50565b600081519050620003e381620003b8565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200043e82620003f3565b810181811067ffffffffffffffff8211171562000460576200045f62000404565b5b80604052505050565b60006200047562000370565b905062000483828262000433565b919050565b600067ffffffffffffffff821115620004a657620004a562000404565b5b620004b182620003f3565b9050602081019050919050565b60005b83811015620004de578082015181840152602081019050620004c1565b60008484015250505050565b600062000501620004fb8462000488565b62000469565b90508281526020810184848401111562000520576200051f620003ee565b5b6200052d848285620004be565b509392505050565b600082601f8301126200054d576200054c620003e9565b5b81516200055f848260208601620004ea565b91505092915050565b6000806000606084860312156200058457620005836200037a565b5b60006200059486828701620003d2565b9350506020620005a786828701620003d2565b925050604084015167ffffffffffffffff811115620005cb57620005ca6200037f565b5b620005d98682870162000535565b9150509250925092565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200063657607f821691505b6020821081036200064c576200064b620005ee565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620006b67fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000677565b620006c2868362000677565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b60006200070f620007096200070384620006da565b620006e4565b620006da565b9050919050565b6000819050919050565b6200072b83620006ee565b620007436200073a8262000716565b84845462000684565b825550505050565b600090565b6200075a6200074b565b6200076781848462000720565b505050565b5b818110156200078f576200078360008262000750565b6001810190506200076d565b5050565b601f821115620007de57620007a88162000652565b620007b38462000667565b81016020851015620007c3578190505b620007db620007d28562000667565b8301826200076c565b50505b505050565b600082821c905092915050565b60006200080360001984600802620007e3565b1980831691505092915050565b60006200081e8383620007f0565b9150826002028217905092915050565b6200083982620005e3565b67ffffffffffffffff81111562000855576200085462000404565b5b6200086182546200061d565b6200086e82828562000793565b600060209050601f831160018114620008a6576000841562000891578287015190505b6200089d858262000810565b8655506200090d565b601f198416620008b68662000652565b60005b82811015620008e057848901518255600182019150602085019450602081019050620008b9565b86831015620009005784890151620008fc601f891682620007f0565b8355505b6001600288020188555050505b505050505050565b6000819050919050565b6200092a8162000915565b82525050565b6200093b81620006da565b82525050565b6200094c81620003a4565b82525050565b600060a0820190506200096960008301886200091f565b6200097860208301876200091f565b6200098760408301866200091f565b62000996606083018562000930565b620009a5608083018462000941565b9695505050505050565b61550f80620009bf6000396000f3fe60806040526004361061025c5760003560e01c806370a0823111610144578063c5cfce7d116100b6578063e268e4d31161007a578063e268e4d31461086a578063e8a3d48514610893578063e985e9c5146108be578063f2fde38b146108fb578063f4a0a52814610924578063fa4d280c1461094d5761025c565b8063c5cfce7d14610799578063c832ad5a146107c2578063c87b56dd146107d9578063d5abeb0114610816578063e0409786146108415761025c565b806395d89b411161010857806395d89b41146106ac57806395fc164f146106d7578063a22cb465146106f3578063a6d23e101461071c578063b88d4fde14610747578063be00df4a146107705761025c565b806370a08231146105ed578063715018a61461062a578063818668d7146106415780638456cb591461066a5780638da5cb5b146106815761025c565b80633f4ba83a116101dd5780634f6ccce7116101a15780634f6ccce7146104dd5780635c975abb1461051a5780636103d70b146105455780636352211e1461055c5780636817c76c146105995780636f8b44b0146105c45761025c565b80633f4ba83a1461042057806340d097c31461043757806342842e0e1461046057806342966c6814610489578063453c2310146104b25761025c565b80631249c58b116102245780631249c58b1461035a57806318160ddd1461036457806323b872dd1461038f5780632f745c59146103b85780633644e515146103f55761025c565b806301ffc9a71461026157806306fdde031461029e578063081812fc146102c9578063095ea7b3146103065780630f4161aa1461032f575b600080fd5b34801561026d57600080fd5b50610288600480360381019061028391906134dd565b610978565b6040516102959190613525565b60405180910390f35b3480156102aa57600080fd5b506102b361098a565b6040516102c091906135d0565b60405180910390f35b3480156102d557600080fd5b506102f060048036038101906102eb9190613628565b610a1c565b6040516102fd9190613696565b60405180910390f35b34801561031257600080fd5b5061032d600480360381019061032891906136dd565b610a62565b005b34801561033b57600080fd5b50610344610b79565b6040516103519190613525565b60405180910390f35b610362610b90565b005b34801561037057600080fd5b50610379610c00565b604051610386919061372c565b60405180910390f35b34801561039b57600080fd5b506103b660048036038101906103b19190613747565b610c0d565b005b3480156103c457600080fd5b506103df60048036038101906103da91906136dd565b610c6d565b6040516103ec919061372c565b60405180910390f35b34801561040157600080fd5b5061040a610d12565b60405161041791906137b3565b60405180910390f35b34801561042c57600080fd5b50610435610d18565b005b34801561044357600080fd5b5061045e600480360381019061045991906137ce565b610d2a565b005b34801561046c57600080fd5b5061048760048036038101906104829190613747565b610d3f565b005b34801561049557600080fd5b506104b060048036038101906104ab9190613628565b610d5f565b005b3480156104be57600080fd5b506104c7610dbb565b6040516104d4919061372c565b60405180910390f35b3480156104e957600080fd5b5061050460048036038101906104ff9190613628565b610dc5565b604051610511919061372c565b60405180910390f35b34801561052657600080fd5b5061052f610e36565b60405161053c9190613525565b60405180910390f35b34801561055157600080fd5b5061055a610e4d565b005b34801561056857600080fd5b50610583600480360381019061057e9190613628565b610e7e565b6040516105909190613696565b60405180910390f35b3480156105a557600080fd5b506105ae610f04565b6040516105bb919061372c565b60405180910390f35b3480156105d057600080fd5b506105eb60048036038101906105e69190613628565b610f0e565b005b3480156105f957600080fd5b50610614600480360381019061060f91906137ce565b610f20565b604051610621919061372c565b60405180910390f35b34801561063657600080fd5b5061063f610fd7565b005b34801561064d57600080fd5b5061066860048036038101906106639190613827565b610feb565b005b34801561067657600080fd5b5061067f611010565b005b34801561068d57600080fd5b50610696611022565b6040516106a39190613696565b60405180910390f35b3480156106b857600080fd5b506106c161104c565b6040516106ce91906135d0565b60405180910390f35b6106f160048036038101906106ec91906138b9565b6110de565b005b3480156106ff57600080fd5b5061071a60048036038101906107159190613906565b6112fa565b005b34801561072857600080fd5b50610731611310565b60405161073e919061372c565b60405180910390f35b34801561075357600080fd5b5061076e60048036038101906107699190613a76565b611320565b005b34801561077c57600080fd5b50610797600480360381019061079291906137ce565b611382565b005b3480156107a557600080fd5b506107c060048036038101906107bb9190613b9a565b6113ce565b005b3480156107ce57600080fd5b506107d76113e9565b005b3480156107e557600080fd5b5061080060048036038101906107fb9190613628565b61140e565b60405161080d91906135d0565b60405180910390f35b34801561082257600080fd5b5061082b6114d0565b604051610838919061372c565b60405180910390f35b34801561084d57600080fd5b50610868600480360381019061086391906137ce565b6114da565b005b34801561087657600080fd5b50610891600480360381019061088c9190613628565b611576565b005b34801561089f57600080fd5b506108a8611588565b6040516108b591906135d0565b60405180910390f35b3480156108ca57600080fd5b506108e560048036038101906108e09190613be3565b6115d7565b6040516108f29190613525565b60405180910390f35b34801561090757600080fd5b50610922600480360381019061091d91906137ce565b61166b565b005b34801561093057600080fd5b5061094b60048036038101906109469190613628565b6116ee565b005b34801561095957600080fd5b50610962611700565b60405161096f91906137b3565b60405180910390f35b600061098382611724565b9050919050565b60606000805461099990613c52565b80601f01602080910402602001604051908101604052809291908181526020018280546109c590613c52565b8015610a125780601f106109e757610100808354040283529160200191610a12565b820191906000526020600020905b8154815290600101906020018083116109f557829003601f168201915b5050505050905090565b6000610a278261179e565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a6d82610e7e565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610add576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad490613cf5565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610afc6117e9565b73ffffffffffffffffffffffffffffffffffffffff161480610b2b5750610b2a81610b256117e9565b6115d7565b5b610b6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6190613d87565b60405180910390fd5b610b7483836117f1565b505050565b6000601260159054906101000a900460ff16905090565b610b986118aa565b60011515601260159054906101000a900460ff16151514610bee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be590613df3565b60405180910390fd5b610bfe610bf96117e9565b6118f4565b565b6000600880549050905090565b610c1e610c186117e9565b8261195d565b610c5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5490613e85565b60405180910390fd5b610c688383836119f2565b505050565b6000610c7883610f20565b8210610cb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb090613f17565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600d5481565b610d20611ceb565b610d28611d69565b565b610d32611ceb565b610d3b81611dcc565b5050565b610d5a83838360405180602001604052806000815250611320565b505050565b610d70610d6a6117e9565b8261195d565b610daf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da690613e85565b60405180910390fd5b610db881611ea1565b50565b6000601154905090565b6000610dcf610c00565b8210610e10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0790613fa9565b60405180910390fd5b60088281548110610e2457610e23613fc9565b5b90600052602060002001549050919050565b6000600b60009054906101000a900460ff16905090565b610e55611ceb565b610e5d611fef565b6000479050610e73610e6d611022565b8261203e565b50610e7c612132565b565b600080610e8a8361213c565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610efb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef290614044565b60405180910390fd5b80915050919050565b6000601054905090565b610f16611ceb565b80600f8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f87906140d6565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610fdf611ceb565b610fe96000612179565b565b610ff3611ceb565b80601260156101000a81548160ff02191690831515021790555050565b611018611ceb565b61102061223f565b565b6000600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461105b90613c52565b80601f016020809104026020016040519081016040528092919081815260200182805461108790613c52565b80156110d45780601f106110a9576101008083540402835291602001916110d4565b820191906000526020600020905b8154815290600101906020018083116110b757829003601f168201915b5050505050905090565b6110e66118aa565b8181600073ffffffffffffffffffffffffffffffffffffffff16600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603611179576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117090614142565b60405180910390fd5b6000600d547f68e83002b91b0fd96d4df3566b5122221117e3ec6c2468fda594f6491f89b1c96111a76117e9565b6040516020016111b8929190614162565b604051602081830303815290604052805190602001206040516020016111df929190614203565b604051602081830303815290604052805190602001209050600061125084848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050836122a290919063ffffffff16565b9050600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146112e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d990614286565b60405180910390fd5b6112f26112ed6117e9565b6118f4565b505050505050565b61130c6113056117e9565b83836122c9565b5050565b600061131a611ceb565b47905090565b61133161132b6117e9565b8361195d565b611370576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136790613e85565b60405180910390fd5b61137c84848484612435565b50505050565b61138a611ceb565b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6113d6611ceb565b80601390816113e59190614452565b5050565b6113f1611ceb565b6001601260146101000a81548160ff021916908315150217905550565b60606114198261179e565b6000601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff16630c6ab5a78461146561098a565b6040518363ffffffff1660e01b8152600401611482929190614524565b600060405180830381865afa15801561149f573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906114c891906145c4565b915050919050565b6000600f54905090565b6114e2611ceb565b601260149054906101000a900460ff1615611532576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152990614659565b60405180910390fd5b80601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61157e611ceb565b8060118190555050565b60606115b3601360405160200161159f91906146fc565b604051602081830303815290604052612491565b6040516020016115c39190614790565b604051602081830303815290604052905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611673611ceb565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036116e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d990614824565b60405180910390fd5b6116eb81612179565b50565b6116f6611ceb565b8060108190555050565b7f68e83002b91b0fd96d4df3566b5122221117e3ec6c2468fda594f6491f89b1c981565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806117975750611796826125f4565b5b9050919050565b6117a7816126d6565b6117e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117dd90614044565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661186483610e7e565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6118b2610e36565b156118f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118e990614890565b60405180910390fd5b565b600060105414611943576010543414611942576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193990614922565b60405180910390fd5b5b600061194d6117e9565b905061195881611dcc565b505050565b60008061196983610e7e565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806119ab57506119aa81856115d7565b5b806119e957508373ffffffffffffffffffffffffffffffffffffffff166119d184610a1c565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611a1282610e7e565b73ffffffffffffffffffffffffffffffffffffffff1614611a68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5f906149b4565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611ad7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ace90614a46565b60405180910390fd5b611ae48383836001612717565b8273ffffffffffffffffffffffffffffffffffffffff16611b0482610e7e565b73ffffffffffffffffffffffffffffffffffffffff1614611b5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b51906149b4565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611ce68383836001612731565b505050565b611cf36117e9565b73ffffffffffffffffffffffffffffffffffffffff16611d11611022565b73ffffffffffffffffffffffffffffffffffffffff1614611d67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5e90614ab2565b60405180910390fd5b565b611d71612737565b6000600b60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611db56117e9565b604051611dc29190613696565b60405180910390a1565b60006001601154611ddd9190614b01565b611de683610f20565b1115611e27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1e90614ba7565b60405180910390fd5b6000611e33600e612780565b90506000600f5414611e8457600f548110611e83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7a90614c13565b60405180910390fd5b5b611e8e600e61278e565b611e9883826127a4565b80915050919050565b6000611eac82610e7e565b9050611ebc816000846001612717565b611ec582610e7e565b90506004600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611feb816000846001612731565b5050565b6002600a5403612034576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202b90614c7f565b60405180910390fd5b6002600a81905550565b80471015612081576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207890614ceb565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516120a790614d3c565b60006040518083038185875af1925050503d80600081146120e4576040519150601f19603f3d011682016040523d82523d6000602084013e6120e9565b606091505b505090508061212d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212490614dc3565b60405180910390fd5b505050565b6001600a81905550565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6122476118aa565b6001600b60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861228b6117e9565b6040516122989190613696565b60405180910390a1565b60008060006122b185856127c2565b915091506122be81612813565b819250505092915050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612337576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232e90614e2f565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516124289190613525565b60405180910390a3505050565b6124408484846119f2565b61244c84848484612979565b61248b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248290614ec1565b60405180910390fd5b50505050565b606060008251036124b3576040518060200160405280600081525090506125ef565b600060405180606001604052806040815260200161549a60409139905060006003600285516124e29190614ee1565b6124ec9190614f44565b60046124f89190614f75565b67ffffffffffffffff8111156125115761251061394b565b5b6040519080825280601f01601f1916602001820160405280156125435781602001600182028036833780820191505090505b509050600182016020820185865187015b808210156125af576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845360018401935050612554565b50506003865106600181146125cb57600281146125de576125e6565b603d6001830353603d60028303536125e6565b603d60018303535b50505080925050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806126bf57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806126cf57506126ce82612b00565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166126f88361213c565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b61271f6118aa565b61272b84848484612b6a565b50505050565b50505050565b61273f610e36565b61277e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161277590615003565b60405180910390fd5b565b600081600001549050919050565b6001816000016000828254019250508190555050565b6127be828260405180602001604052806000815250612cc8565b5050565b60008060418351036128035760008060006020860151925060408601519150606086015160001a90506127f787828585612d23565b9450945050505061280c565b60006002915091505b9250929050565b6000600481111561282757612826615023565b5b81600481111561283a57612839615023565b5b0315612976576001600481111561285457612853615023565b5b81600481111561286757612866615023565b5b036128a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289e9061509e565b60405180910390fd5b600260048111156128bb576128ba615023565b5b8160048111156128ce576128cd615023565b5b0361290e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129059061510a565b60405180910390fd5b6003600481111561292257612921615023565b5b81600481111561293557612934615023565b5b03612975576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161296c9061519c565b60405180910390fd5b5b50565b600061299a8473ffffffffffffffffffffffffffffffffffffffff16612e05565b15612af3578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026129c36117e9565b8786866040518563ffffffff1660e01b81526004016129e59493929190615211565b6020604051808303816000875af1925050508015612a2157506040513d601f19601f82011682018060405250810190612a1e9190615272565b60015b612aa3573d8060008114612a51576040519150601f19603f3d011682016040523d82523d6000602084013e612a56565b606091505b506000815103612a9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a9290614ec1565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612af8565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612b7684848484612e28565b6001811115612bba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bb190615311565b60405180910390fd5b6000829050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612c0157612bfc81612f4e565b612c40565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614612c3f57612c3e8582612f97565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612c8257612c7d81613104565b612cc1565b8473ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612cc057612cbf84826131d5565b5b5b5050505050565b612cd28383613254565b612cdf6000848484612979565b612d1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d1590614ec1565b60405180910390fd5b505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115612d5e576000600391509150612dfc565b600060018787878760405160008152602001604052604051612d83949392919061534d565b6020604051602081039080840390855afa158015612da5573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612df357600060019250925050612dfc565b80600092509250505b94509492505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6001811115612f4857600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612ebc5780600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612eb49190614b01565b925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612f475780600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612f3f9190614ee1565b925050819055505b5b50505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612fa484610f20565b612fae9190614b01565b9050600060076000848152602001908152602001600020549050818114613093576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506131189190614b01565b905060006009600084815260200190815260200160002054905060006008838154811061314857613147613fc9565b5b90600052602060002001549050806008838154811061316a57613169613fc9565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806131b9576131b8615392565b5b6001900381819060005260206000200160009055905550505050565b60006131e083610f20565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036132c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132ba9061540d565b60405180910390fd5b6132cc816126d6565b1561330c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161330390615479565b60405180910390fd5b61331a600083836001612717565b613323816126d6565b15613363576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161335a90615479565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461346d600083836001612731565b5050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6134ba81613485565b81146134c557600080fd5b50565b6000813590506134d7816134b1565b92915050565b6000602082840312156134f3576134f261347b565b5b6000613501848285016134c8565b91505092915050565b60008115159050919050565b61351f8161350a565b82525050565b600060208201905061353a6000830184613516565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561357a57808201518184015260208101905061355f565b60008484015250505050565b6000601f19601f8301169050919050565b60006135a282613540565b6135ac818561354b565b93506135bc81856020860161355c565b6135c581613586565b840191505092915050565b600060208201905081810360008301526135ea8184613597565b905092915050565b6000819050919050565b613605816135f2565b811461361057600080fd5b50565b600081359050613622816135fc565b92915050565b60006020828403121561363e5761363d61347b565b5b600061364c84828501613613565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061368082613655565b9050919050565b61369081613675565b82525050565b60006020820190506136ab6000830184613687565b92915050565b6136ba81613675565b81146136c557600080fd5b50565b6000813590506136d7816136b1565b92915050565b600080604083850312156136f4576136f361347b565b5b6000613702858286016136c8565b925050602061371385828601613613565b9150509250929050565b613726816135f2565b82525050565b6000602082019050613741600083018461371d565b92915050565b6000806000606084860312156137605761375f61347b565b5b600061376e868287016136c8565b935050602061377f868287016136c8565b925050604061379086828701613613565b9150509250925092565b6000819050919050565b6137ad8161379a565b82525050565b60006020820190506137c860008301846137a4565b92915050565b6000602082840312156137e4576137e361347b565b5b60006137f2848285016136c8565b91505092915050565b6138048161350a565b811461380f57600080fd5b50565b600081359050613821816137fb565b92915050565b60006020828403121561383d5761383c61347b565b5b600061384b84828501613812565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261387957613878613854565b5b8235905067ffffffffffffffff81111561389657613895613859565b5b6020830191508360018202830111156138b2576138b161385e565b5b9250929050565b600080602083850312156138d0576138cf61347b565b5b600083013567ffffffffffffffff8111156138ee576138ed613480565b5b6138fa85828601613863565b92509250509250929050565b6000806040838503121561391d5761391c61347b565b5b600061392b858286016136c8565b925050602061393c85828601613812565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61398382613586565b810181811067ffffffffffffffff821117156139a2576139a161394b565b5b80604052505050565b60006139b5613471565b90506139c1828261397a565b919050565b600067ffffffffffffffff8211156139e1576139e061394b565b5b6139ea82613586565b9050602081019050919050565b82818337600083830152505050565b6000613a19613a14846139c6565b6139ab565b905082815260208101848484011115613a3557613a34613946565b5b613a408482856139f7565b509392505050565b600082601f830112613a5d57613a5c613854565b5b8135613a6d848260208601613a06565b91505092915050565b60008060008060808587031215613a9057613a8f61347b565b5b6000613a9e878288016136c8565b9450506020613aaf878288016136c8565b9350506040613ac087828801613613565b925050606085013567ffffffffffffffff811115613ae157613ae0613480565b5b613aed87828801613a48565b91505092959194509250565b600067ffffffffffffffff821115613b1457613b1361394b565b5b613b1d82613586565b9050602081019050919050565b6000613b3d613b3884613af9565b6139ab565b905082815260208101848484011115613b5957613b58613946565b5b613b648482856139f7565b509392505050565b600082601f830112613b8157613b80613854565b5b8135613b91848260208601613b2a565b91505092915050565b600060208284031215613bb057613baf61347b565b5b600082013567ffffffffffffffff811115613bce57613bcd613480565b5b613bda84828501613b6c565b91505092915050565b60008060408385031215613bfa57613bf961347b565b5b6000613c08858286016136c8565b9250506020613c19858286016136c8565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613c6a57607f821691505b602082108103613c7d57613c7c613c23565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613cdf60218361354b565b9150613cea82613c83565b604082019050919050565b60006020820190508181036000830152613d0e81613cd2565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b6000613d71603d8361354b565b9150613d7c82613d15565b604082019050919050565b60006020820190508181036000830152613da081613d64565b9050919050565b7f5075626c6963206d696e74206973206e6f7420656e61626c6564000000000000600082015250565b6000613ddd601a8361354b565b9150613de882613da7565b602082019050919050565b60006020820190508181036000830152613e0c81613dd0565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b6000613e6f602d8361354b565b9150613e7a82613e13565b604082019050919050565b60006020820190508181036000830152613e9e81613e62565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000613f01602b8361354b565b9150613f0c82613ea5565b604082019050919050565b60006020820190508181036000830152613f3081613ef4565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000613f93602c8361354b565b9150613f9e82613f37565b604082019050919050565b60006020820190508181036000830152613fc281613f86565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b600061402e60188361354b565b915061403982613ff8565b602082019050919050565b6000602082019050818103600083015261405d81614021565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b60006140c060298361354b565b91506140cb82614064565b604082019050919050565b600060208201905081810360008301526140ef816140b3565b9050919050565b7f416c6c6f776c697374206e6f7420656e61626c65640000000000000000000000600082015250565b600061412c60158361354b565b9150614137826140f6565b602082019050919050565b6000602082019050818103600083015261415b8161411f565b9050919050565b600060408201905061417760008301856137a4565b6141846020830184613687565b9392505050565b600081905092915050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b60006141cc60028361418b565b91506141d782614196565b600282019050919050565b6000819050919050565b6141fd6141f88261379a565b6141e2565b82525050565b600061420e826141bf565b915061421a82856141ec565b60208201915061422a82846141ec565b6020820191508190509392505050565b7f496e76616c6964205369676e6174757265000000000000000000000000000000600082015250565b600061427060118361354b565b915061427b8261423a565b602082019050919050565b6000602082019050818103600083015261429f81614263565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026143087fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826142cb565b61431286836142cb565b95508019841693508086168417925050509392505050565b6000819050919050565b600061434f61434a614345846135f2565b61432a565b6135f2565b9050919050565b6000819050919050565b61436983614334565b61437d61437582614356565b8484546142d8565b825550505050565b600090565b614392614385565b61439d818484614360565b505050565b5b818110156143c1576143b660008261438a565b6001810190506143a3565b5050565b601f821115614406576143d7816142a6565b6143e0846142bb565b810160208510156143ef578190505b6144036143fb856142bb565b8301826143a2565b50505b505050565b600082821c905092915050565b60006144296000198460080261440b565b1980831691505092915050565b60006144428383614418565b9150826002028217905092915050565b61445b82613540565b67ffffffffffffffff8111156144745761447361394b565b5b61447e8254613c52565b6144898282856143c5565b600060209050601f8311600181146144bc57600084156144aa578287015190505b6144b48582614436565b86555061451c565b601f1984166144ca866142a6565b60005b828110156144f2578489015182556001820191506020850194506020810190506144cd565b8683101561450f578489015161450b601f891682614418565b8355505b6001600288020188555050505b505050505050565b6000604082019050614539600083018561371d565b818103602083015261454b8184613597565b90509392505050565b600061456761456284613af9565b6139ab565b90508281526020810184848401111561458357614582613946565b5b61458e84828561355c565b509392505050565b600082601f8301126145ab576145aa613854565b5b81516145bb848260208601614554565b91505092915050565b6000602082840312156145da576145d961347b565b5b600082015167ffffffffffffffff8111156145f8576145f7613480565b5b61460484828501614596565b91505092915050565b7f555249206765747465722069732066726f7a656e000000000000000000000000600082015250565b600061464360148361354b565b915061464e8261460d565b602082019050919050565b6000602082019050818103600083015261467281614636565b9050919050565b6000815461468681613c52565b614690818661418b565b945060018216600081146146ab57600181146146c0576146f3565b60ff19831686528115158202860193506146f3565b6146c9856142a6565b60005b838110156146eb578154818901526001820191506020810190506146cc565b838801955050505b50505092915050565b60006147088284614679565b915081905092915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b6000614749601d8361418b565b915061475482614713565b601d82019050919050565b600061476a82613540565b614774818561418b565b935061478481856020860161355c565b80840191505092915050565b600061479b8261473c565b91506147a7828461475f565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061480e60268361354b565b9150614819826147b2565b604082019050919050565b6000602082019050818103600083015261483d81614801565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061487a60108361354b565b915061488582614844565b602082019050919050565b600060208201905081810360008301526148a98161486d565b9050919050565b7f5472616e73616374696f6e2076616c756520646964206e6f7420657175616c2060008201527f746f206d696e7420707269636500000000000000000000000000000000000000602082015250565b600061490c602d8361354b565b9150614917826148b0565b604082019050919050565b6000602082019050818103600083015261493b816148ff565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061499e60258361354b565b91506149a982614942565b604082019050919050565b600060208201905081810360008301526149cd81614991565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614a3060248361354b565b9150614a3b826149d4565b604082019050919050565b60006020820190508181036000830152614a5f81614a23565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614a9c60208361354b565b9150614aa782614a66565b602082019050919050565b60006020820190508181036000830152614acb81614a8f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614b0c826135f2565b9150614b17836135f2565b9250828203905081811115614b2f57614b2e614ad2565b5b92915050565b7f4578636565647320616d6f756e74206f6620706173736573207065722070657260008201527f736f6e0000000000000000000000000000000000000000000000000000000000602082015250565b6000614b9160238361354b565b9150614b9c82614b35565b604082019050919050565b60006020820190508181036000830152614bc081614b84565b9050919050565b7f4d617820737570706c7920726561636865640000000000000000000000000000600082015250565b6000614bfd60128361354b565b9150614c0882614bc7565b602082019050919050565b60006020820190508181036000830152614c2c81614bf0565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614c69601f8361354b565b9150614c7482614c33565b602082019050919050565b60006020820190508181036000830152614c9881614c5c565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000614cd5601d8361354b565b9150614ce082614c9f565b602082019050919050565b60006020820190508181036000830152614d0481614cc8565b9050919050565b600081905092915050565b50565b6000614d26600083614d0b565b9150614d3182614d16565b600082019050919050565b6000614d4782614d19565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000614dad603a8361354b565b9150614db882614d51565b604082019050919050565b60006020820190508181036000830152614ddc81614da0565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614e1960198361354b565b9150614e2482614de3565b602082019050919050565b60006020820190508181036000830152614e4881614e0c565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614eab60328361354b565b9150614eb682614e4f565b604082019050919050565b60006020820190508181036000830152614eda81614e9e565b9050919050565b6000614eec826135f2565b9150614ef7836135f2565b9250828201905080821115614f0f57614f0e614ad2565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614f4f826135f2565b9150614f5a836135f2565b925082614f6a57614f69614f15565b5b828204905092915050565b6000614f80826135f2565b9150614f8b836135f2565b9250828202614f99816135f2565b91508282048414831517614fb057614faf614ad2565b5b5092915050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000614fed60148361354b565b9150614ff882614fb7565b602082019050919050565b6000602082019050818103600083015261501c81614fe0565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b600061508860188361354b565b915061509382615052565b602082019050919050565b600060208201905081810360008301526150b78161507b565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b60006150f4601f8361354b565b91506150ff826150be565b602082019050919050565b60006020820190508181036000830152615123816150e7565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b600061518660228361354b565b91506151918261512a565b604082019050919050565b600060208201905081810360008301526151b581615179565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006151e3826151bc565b6151ed81856151c7565b93506151fd81856020860161355c565b61520681613586565b840191505092915050565b60006080820190506152266000830187613687565b6152336020830186613687565b615240604083018561371d565b818103606083015261525281846151d8565b905095945050505050565b60008151905061526c816134b1565b92915050565b6000602082840312156152885761528761347b565b5b60006152968482850161525d565b91505092915050565b7f455243373231456e756d657261626c653a20636f6e736563757469766520747260008201527f616e7366657273206e6f7420737570706f727465640000000000000000000000602082015250565b60006152fb60358361354b565b91506153068261529f565b604082019050919050565b6000602082019050818103600083015261532a816152ee565b9050919050565b600060ff82169050919050565b61534781615331565b82525050565b600060808201905061536260008301876137a4565b61536f602083018661533e565b61537c60408301856137a4565b61538960608301846137a4565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006153f760208361354b565b9150615402826153c1565b602082019050919050565b60006020820190508181036000830152615426816153ea565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615463601c8361354b565b915061546e8261542d565b602082019050919050565b6000602082019050818103600083015261549281615456565b905091905056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212206478a5a074c65d72ef02c07d5530be8ed2cdff404e0d0ca95396e6eb3f8d266164736f6c63430008110033000000000000000000000000304eb54c196a481dab32effa8c84d3f715e11f16000000000000000000000000d0da14f46595850627bcdb19060bdfb0f4cc5e8f000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001787b226e616d65223a224c61756e63682050617373206279204c61756e6368636173746572222c226465736372697074696f6e223a224c61756e6368205061737320697320612070726f64756374204e4654207468617420756e6c6f636b7320796f75722070726f66696c6520616e642074686520616476616e636564206665617475726573206f6e205b4c61756e63686361737465725d2868747470733a2f2f7777772e6c61756e63686361737465722e78797a295c725c6e5c725c6e417274206279205b4042696173206f6e204661726361737465725d286661726361737465723a2f2f70726f66696c65732f3133353529202f206d656e646963616e74626961732e78797a222c22696d616765223a22697066733a2f2f516d626a3462786755785a47646d38445879686e5765584476703665647a5747696446346a313366586b64367868222c2265787465726e616c5f6c696e6b223a2268747470733a2f2f7777772e6c61756e63686361737465722e78797a227d0000000000000000

Deployed Bytecode

0x60806040526004361061025c5760003560e01c806370a0823111610144578063c5cfce7d116100b6578063e268e4d31161007a578063e268e4d31461086a578063e8a3d48514610893578063e985e9c5146108be578063f2fde38b146108fb578063f4a0a52814610924578063fa4d280c1461094d5761025c565b8063c5cfce7d14610799578063c832ad5a146107c2578063c87b56dd146107d9578063d5abeb0114610816578063e0409786146108415761025c565b806395d89b411161010857806395d89b41146106ac57806395fc164f146106d7578063a22cb465146106f3578063a6d23e101461071c578063b88d4fde14610747578063be00df4a146107705761025c565b806370a08231146105ed578063715018a61461062a578063818668d7146106415780638456cb591461066a5780638da5cb5b146106815761025c565b80633f4ba83a116101dd5780634f6ccce7116101a15780634f6ccce7146104dd5780635c975abb1461051a5780636103d70b146105455780636352211e1461055c5780636817c76c146105995780636f8b44b0146105c45761025c565b80633f4ba83a1461042057806340d097c31461043757806342842e0e1461046057806342966c6814610489578063453c2310146104b25761025c565b80631249c58b116102245780631249c58b1461035a57806318160ddd1461036457806323b872dd1461038f5780632f745c59146103b85780633644e515146103f55761025c565b806301ffc9a71461026157806306fdde031461029e578063081812fc146102c9578063095ea7b3146103065780630f4161aa1461032f575b600080fd5b34801561026d57600080fd5b50610288600480360381019061028391906134dd565b610978565b6040516102959190613525565b60405180910390f35b3480156102aa57600080fd5b506102b361098a565b6040516102c091906135d0565b60405180910390f35b3480156102d557600080fd5b506102f060048036038101906102eb9190613628565b610a1c565b6040516102fd9190613696565b60405180910390f35b34801561031257600080fd5b5061032d600480360381019061032891906136dd565b610a62565b005b34801561033b57600080fd5b50610344610b79565b6040516103519190613525565b60405180910390f35b610362610b90565b005b34801561037057600080fd5b50610379610c00565b604051610386919061372c565b60405180910390f35b34801561039b57600080fd5b506103b660048036038101906103b19190613747565b610c0d565b005b3480156103c457600080fd5b506103df60048036038101906103da91906136dd565b610c6d565b6040516103ec919061372c565b60405180910390f35b34801561040157600080fd5b5061040a610d12565b60405161041791906137b3565b60405180910390f35b34801561042c57600080fd5b50610435610d18565b005b34801561044357600080fd5b5061045e600480360381019061045991906137ce565b610d2a565b005b34801561046c57600080fd5b5061048760048036038101906104829190613747565b610d3f565b005b34801561049557600080fd5b506104b060048036038101906104ab9190613628565b610d5f565b005b3480156104be57600080fd5b506104c7610dbb565b6040516104d4919061372c565b60405180910390f35b3480156104e957600080fd5b5061050460048036038101906104ff9190613628565b610dc5565b604051610511919061372c565b60405180910390f35b34801561052657600080fd5b5061052f610e36565b60405161053c9190613525565b60405180910390f35b34801561055157600080fd5b5061055a610e4d565b005b34801561056857600080fd5b50610583600480360381019061057e9190613628565b610e7e565b6040516105909190613696565b60405180910390f35b3480156105a557600080fd5b506105ae610f04565b6040516105bb919061372c565b60405180910390f35b3480156105d057600080fd5b506105eb60048036038101906105e69190613628565b610f0e565b005b3480156105f957600080fd5b50610614600480360381019061060f91906137ce565b610f20565b604051610621919061372c565b60405180910390f35b34801561063657600080fd5b5061063f610fd7565b005b34801561064d57600080fd5b5061066860048036038101906106639190613827565b610feb565b005b34801561067657600080fd5b5061067f611010565b005b34801561068d57600080fd5b50610696611022565b6040516106a39190613696565b60405180910390f35b3480156106b857600080fd5b506106c161104c565b6040516106ce91906135d0565b60405180910390f35b6106f160048036038101906106ec91906138b9565b6110de565b005b3480156106ff57600080fd5b5061071a60048036038101906107159190613906565b6112fa565b005b34801561072857600080fd5b50610731611310565b60405161073e919061372c565b60405180910390f35b34801561075357600080fd5b5061076e60048036038101906107699190613a76565b611320565b005b34801561077c57600080fd5b50610797600480360381019061079291906137ce565b611382565b005b3480156107a557600080fd5b506107c060048036038101906107bb9190613b9a565b6113ce565b005b3480156107ce57600080fd5b506107d76113e9565b005b3480156107e557600080fd5b5061080060048036038101906107fb9190613628565b61140e565b60405161080d91906135d0565b60405180910390f35b34801561082257600080fd5b5061082b6114d0565b604051610838919061372c565b60405180910390f35b34801561084d57600080fd5b50610868600480360381019061086391906137ce565b6114da565b005b34801561087657600080fd5b50610891600480360381019061088c9190613628565b611576565b005b34801561089f57600080fd5b506108a8611588565b6040516108b591906135d0565b60405180910390f35b3480156108ca57600080fd5b506108e560048036038101906108e09190613be3565b6115d7565b6040516108f29190613525565b60405180910390f35b34801561090757600080fd5b50610922600480360381019061091d91906137ce565b61166b565b005b34801561093057600080fd5b5061094b60048036038101906109469190613628565b6116ee565b005b34801561095957600080fd5b50610962611700565b60405161096f91906137b3565b60405180910390f35b600061098382611724565b9050919050565b60606000805461099990613c52565b80601f01602080910402602001604051908101604052809291908181526020018280546109c590613c52565b8015610a125780601f106109e757610100808354040283529160200191610a12565b820191906000526020600020905b8154815290600101906020018083116109f557829003601f168201915b5050505050905090565b6000610a278261179e565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a6d82610e7e565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610add576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad490613cf5565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610afc6117e9565b73ffffffffffffffffffffffffffffffffffffffff161480610b2b5750610b2a81610b256117e9565b6115d7565b5b610b6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6190613d87565b60405180910390fd5b610b7483836117f1565b505050565b6000601260159054906101000a900460ff16905090565b610b986118aa565b60011515601260159054906101000a900460ff16151514610bee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be590613df3565b60405180910390fd5b610bfe610bf96117e9565b6118f4565b565b6000600880549050905090565b610c1e610c186117e9565b8261195d565b610c5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5490613e85565b60405180910390fd5b610c688383836119f2565b505050565b6000610c7883610f20565b8210610cb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb090613f17565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600d5481565b610d20611ceb565b610d28611d69565b565b610d32611ceb565b610d3b81611dcc565b5050565b610d5a83838360405180602001604052806000815250611320565b505050565b610d70610d6a6117e9565b8261195d565b610daf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da690613e85565b60405180910390fd5b610db881611ea1565b50565b6000601154905090565b6000610dcf610c00565b8210610e10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0790613fa9565b60405180910390fd5b60088281548110610e2457610e23613fc9565b5b90600052602060002001549050919050565b6000600b60009054906101000a900460ff16905090565b610e55611ceb565b610e5d611fef565b6000479050610e73610e6d611022565b8261203e565b50610e7c612132565b565b600080610e8a8361213c565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610efb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef290614044565b60405180910390fd5b80915050919050565b6000601054905090565b610f16611ceb565b80600f8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f87906140d6565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610fdf611ceb565b610fe96000612179565b565b610ff3611ceb565b80601260156101000a81548160ff02191690831515021790555050565b611018611ceb565b61102061223f565b565b6000600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461105b90613c52565b80601f016020809104026020016040519081016040528092919081815260200182805461108790613c52565b80156110d45780601f106110a9576101008083540402835291602001916110d4565b820191906000526020600020905b8154815290600101906020018083116110b757829003601f168201915b5050505050905090565b6110e66118aa565b8181600073ffffffffffffffffffffffffffffffffffffffff16600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603611179576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117090614142565b60405180910390fd5b6000600d547f68e83002b91b0fd96d4df3566b5122221117e3ec6c2468fda594f6491f89b1c96111a76117e9565b6040516020016111b8929190614162565b604051602081830303815290604052805190602001206040516020016111df929190614203565b604051602081830303815290604052805190602001209050600061125084848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050836122a290919063ffffffff16565b9050600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146112e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d990614286565b60405180910390fd5b6112f26112ed6117e9565b6118f4565b505050505050565b61130c6113056117e9565b83836122c9565b5050565b600061131a611ceb565b47905090565b61133161132b6117e9565b8361195d565b611370576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136790613e85565b60405180910390fd5b61137c84848484612435565b50505050565b61138a611ceb565b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6113d6611ceb565b80601390816113e59190614452565b5050565b6113f1611ceb565b6001601260146101000a81548160ff021916908315150217905550565b60606114198261179e565b6000601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff16630c6ab5a78461146561098a565b6040518363ffffffff1660e01b8152600401611482929190614524565b600060405180830381865afa15801561149f573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906114c891906145c4565b915050919050565b6000600f54905090565b6114e2611ceb565b601260149054906101000a900460ff1615611532576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152990614659565b60405180910390fd5b80601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61157e611ceb565b8060118190555050565b60606115b3601360405160200161159f91906146fc565b604051602081830303815290604052612491565b6040516020016115c39190614790565b604051602081830303815290604052905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611673611ceb565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036116e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d990614824565b60405180910390fd5b6116eb81612179565b50565b6116f6611ceb565b8060108190555050565b7f68e83002b91b0fd96d4df3566b5122221117e3ec6c2468fda594f6491f89b1c981565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806117975750611796826125f4565b5b9050919050565b6117a7816126d6565b6117e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117dd90614044565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661186483610e7e565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6118b2610e36565b156118f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118e990614890565b60405180910390fd5b565b600060105414611943576010543414611942576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193990614922565b60405180910390fd5b5b600061194d6117e9565b905061195881611dcc565b505050565b60008061196983610e7e565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806119ab57506119aa81856115d7565b5b806119e957508373ffffffffffffffffffffffffffffffffffffffff166119d184610a1c565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611a1282610e7e565b73ffffffffffffffffffffffffffffffffffffffff1614611a68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5f906149b4565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611ad7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ace90614a46565b60405180910390fd5b611ae48383836001612717565b8273ffffffffffffffffffffffffffffffffffffffff16611b0482610e7e565b73ffffffffffffffffffffffffffffffffffffffff1614611b5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b51906149b4565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611ce68383836001612731565b505050565b611cf36117e9565b73ffffffffffffffffffffffffffffffffffffffff16611d11611022565b73ffffffffffffffffffffffffffffffffffffffff1614611d67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5e90614ab2565b60405180910390fd5b565b611d71612737565b6000600b60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611db56117e9565b604051611dc29190613696565b60405180910390a1565b60006001601154611ddd9190614b01565b611de683610f20565b1115611e27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1e90614ba7565b60405180910390fd5b6000611e33600e612780565b90506000600f5414611e8457600f548110611e83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7a90614c13565b60405180910390fd5b5b611e8e600e61278e565b611e9883826127a4565b80915050919050565b6000611eac82610e7e565b9050611ebc816000846001612717565b611ec582610e7e565b90506004600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611feb816000846001612731565b5050565b6002600a5403612034576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202b90614c7f565b60405180910390fd5b6002600a81905550565b80471015612081576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207890614ceb565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516120a790614d3c565b60006040518083038185875af1925050503d80600081146120e4576040519150601f19603f3d011682016040523d82523d6000602084013e6120e9565b606091505b505090508061212d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212490614dc3565b60405180910390fd5b505050565b6001600a81905550565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6122476118aa565b6001600b60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861228b6117e9565b6040516122989190613696565b60405180910390a1565b60008060006122b185856127c2565b915091506122be81612813565b819250505092915050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612337576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232e90614e2f565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516124289190613525565b60405180910390a3505050565b6124408484846119f2565b61244c84848484612979565b61248b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248290614ec1565b60405180910390fd5b50505050565b606060008251036124b3576040518060200160405280600081525090506125ef565b600060405180606001604052806040815260200161549a60409139905060006003600285516124e29190614ee1565b6124ec9190614f44565b60046124f89190614f75565b67ffffffffffffffff8111156125115761251061394b565b5b6040519080825280601f01601f1916602001820160405280156125435781602001600182028036833780820191505090505b509050600182016020820185865187015b808210156125af576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845360018401935050612554565b50506003865106600181146125cb57600281146125de576125e6565b603d6001830353603d60028303536125e6565b603d60018303535b50505080925050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806126bf57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806126cf57506126ce82612b00565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166126f88361213c565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b61271f6118aa565b61272b84848484612b6a565b50505050565b50505050565b61273f610e36565b61277e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161277590615003565b60405180910390fd5b565b600081600001549050919050565b6001816000016000828254019250508190555050565b6127be828260405180602001604052806000815250612cc8565b5050565b60008060418351036128035760008060006020860151925060408601519150606086015160001a90506127f787828585612d23565b9450945050505061280c565b60006002915091505b9250929050565b6000600481111561282757612826615023565b5b81600481111561283a57612839615023565b5b0315612976576001600481111561285457612853615023565b5b81600481111561286757612866615023565b5b036128a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289e9061509e565b60405180910390fd5b600260048111156128bb576128ba615023565b5b8160048111156128ce576128cd615023565b5b0361290e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129059061510a565b60405180910390fd5b6003600481111561292257612921615023565b5b81600481111561293557612934615023565b5b03612975576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161296c9061519c565b60405180910390fd5b5b50565b600061299a8473ffffffffffffffffffffffffffffffffffffffff16612e05565b15612af3578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026129c36117e9565b8786866040518563ffffffff1660e01b81526004016129e59493929190615211565b6020604051808303816000875af1925050508015612a2157506040513d601f19601f82011682018060405250810190612a1e9190615272565b60015b612aa3573d8060008114612a51576040519150601f19603f3d011682016040523d82523d6000602084013e612a56565b606091505b506000815103612a9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a9290614ec1565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612af8565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612b7684848484612e28565b6001811115612bba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bb190615311565b60405180910390fd5b6000829050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612c0157612bfc81612f4e565b612c40565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614612c3f57612c3e8582612f97565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612c8257612c7d81613104565b612cc1565b8473ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612cc057612cbf84826131d5565b5b5b5050505050565b612cd28383613254565b612cdf6000848484612979565b612d1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d1590614ec1565b60405180910390fd5b505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115612d5e576000600391509150612dfc565b600060018787878760405160008152602001604052604051612d83949392919061534d565b6020604051602081039080840390855afa158015612da5573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612df357600060019250925050612dfc565b80600092509250505b94509492505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6001811115612f4857600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612ebc5780600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612eb49190614b01565b925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612f475780600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612f3f9190614ee1565b925050819055505b5b50505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612fa484610f20565b612fae9190614b01565b9050600060076000848152602001908152602001600020549050818114613093576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506131189190614b01565b905060006009600084815260200190815260200160002054905060006008838154811061314857613147613fc9565b5b90600052602060002001549050806008838154811061316a57613169613fc9565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806131b9576131b8615392565b5b6001900381819060005260206000200160009055905550505050565b60006131e083610f20565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036132c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132ba9061540d565b60405180910390fd5b6132cc816126d6565b1561330c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161330390615479565b60405180910390fd5b61331a600083836001612717565b613323816126d6565b15613363576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161335a90615479565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461346d600083836001612731565b5050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6134ba81613485565b81146134c557600080fd5b50565b6000813590506134d7816134b1565b92915050565b6000602082840312156134f3576134f261347b565b5b6000613501848285016134c8565b91505092915050565b60008115159050919050565b61351f8161350a565b82525050565b600060208201905061353a6000830184613516565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561357a57808201518184015260208101905061355f565b60008484015250505050565b6000601f19601f8301169050919050565b60006135a282613540565b6135ac818561354b565b93506135bc81856020860161355c565b6135c581613586565b840191505092915050565b600060208201905081810360008301526135ea8184613597565b905092915050565b6000819050919050565b613605816135f2565b811461361057600080fd5b50565b600081359050613622816135fc565b92915050565b60006020828403121561363e5761363d61347b565b5b600061364c84828501613613565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061368082613655565b9050919050565b61369081613675565b82525050565b60006020820190506136ab6000830184613687565b92915050565b6136ba81613675565b81146136c557600080fd5b50565b6000813590506136d7816136b1565b92915050565b600080604083850312156136f4576136f361347b565b5b6000613702858286016136c8565b925050602061371385828601613613565b9150509250929050565b613726816135f2565b82525050565b6000602082019050613741600083018461371d565b92915050565b6000806000606084860312156137605761375f61347b565b5b600061376e868287016136c8565b935050602061377f868287016136c8565b925050604061379086828701613613565b9150509250925092565b6000819050919050565b6137ad8161379a565b82525050565b60006020820190506137c860008301846137a4565b92915050565b6000602082840312156137e4576137e361347b565b5b60006137f2848285016136c8565b91505092915050565b6138048161350a565b811461380f57600080fd5b50565b600081359050613821816137fb565b92915050565b60006020828403121561383d5761383c61347b565b5b600061384b84828501613812565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261387957613878613854565b5b8235905067ffffffffffffffff81111561389657613895613859565b5b6020830191508360018202830111156138b2576138b161385e565b5b9250929050565b600080602083850312156138d0576138cf61347b565b5b600083013567ffffffffffffffff8111156138ee576138ed613480565b5b6138fa85828601613863565b92509250509250929050565b6000806040838503121561391d5761391c61347b565b5b600061392b858286016136c8565b925050602061393c85828601613812565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61398382613586565b810181811067ffffffffffffffff821117156139a2576139a161394b565b5b80604052505050565b60006139b5613471565b90506139c1828261397a565b919050565b600067ffffffffffffffff8211156139e1576139e061394b565b5b6139ea82613586565b9050602081019050919050565b82818337600083830152505050565b6000613a19613a14846139c6565b6139ab565b905082815260208101848484011115613a3557613a34613946565b5b613a408482856139f7565b509392505050565b600082601f830112613a5d57613a5c613854565b5b8135613a6d848260208601613a06565b91505092915050565b60008060008060808587031215613a9057613a8f61347b565b5b6000613a9e878288016136c8565b9450506020613aaf878288016136c8565b9350506040613ac087828801613613565b925050606085013567ffffffffffffffff811115613ae157613ae0613480565b5b613aed87828801613a48565b91505092959194509250565b600067ffffffffffffffff821115613b1457613b1361394b565b5b613b1d82613586565b9050602081019050919050565b6000613b3d613b3884613af9565b6139ab565b905082815260208101848484011115613b5957613b58613946565b5b613b648482856139f7565b509392505050565b600082601f830112613b8157613b80613854565b5b8135613b91848260208601613b2a565b91505092915050565b600060208284031215613bb057613baf61347b565b5b600082013567ffffffffffffffff811115613bce57613bcd613480565b5b613bda84828501613b6c565b91505092915050565b60008060408385031215613bfa57613bf961347b565b5b6000613c08858286016136c8565b9250506020613c19858286016136c8565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613c6a57607f821691505b602082108103613c7d57613c7c613c23565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613cdf60218361354b565b9150613cea82613c83565b604082019050919050565b60006020820190508181036000830152613d0e81613cd2565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b6000613d71603d8361354b565b9150613d7c82613d15565b604082019050919050565b60006020820190508181036000830152613da081613d64565b9050919050565b7f5075626c6963206d696e74206973206e6f7420656e61626c6564000000000000600082015250565b6000613ddd601a8361354b565b9150613de882613da7565b602082019050919050565b60006020820190508181036000830152613e0c81613dd0565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b6000613e6f602d8361354b565b9150613e7a82613e13565b604082019050919050565b60006020820190508181036000830152613e9e81613e62565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000613f01602b8361354b565b9150613f0c82613ea5565b604082019050919050565b60006020820190508181036000830152613f3081613ef4565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000613f93602c8361354b565b9150613f9e82613f37565b604082019050919050565b60006020820190508181036000830152613fc281613f86565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b600061402e60188361354b565b915061403982613ff8565b602082019050919050565b6000602082019050818103600083015261405d81614021565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b60006140c060298361354b565b91506140cb82614064565b604082019050919050565b600060208201905081810360008301526140ef816140b3565b9050919050565b7f416c6c6f776c697374206e6f7420656e61626c65640000000000000000000000600082015250565b600061412c60158361354b565b9150614137826140f6565b602082019050919050565b6000602082019050818103600083015261415b8161411f565b9050919050565b600060408201905061417760008301856137a4565b6141846020830184613687565b9392505050565b600081905092915050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b60006141cc60028361418b565b91506141d782614196565b600282019050919050565b6000819050919050565b6141fd6141f88261379a565b6141e2565b82525050565b600061420e826141bf565b915061421a82856141ec565b60208201915061422a82846141ec565b6020820191508190509392505050565b7f496e76616c6964205369676e6174757265000000000000000000000000000000600082015250565b600061427060118361354b565b915061427b8261423a565b602082019050919050565b6000602082019050818103600083015261429f81614263565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026143087fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826142cb565b61431286836142cb565b95508019841693508086168417925050509392505050565b6000819050919050565b600061434f61434a614345846135f2565b61432a565b6135f2565b9050919050565b6000819050919050565b61436983614334565b61437d61437582614356565b8484546142d8565b825550505050565b600090565b614392614385565b61439d818484614360565b505050565b5b818110156143c1576143b660008261438a565b6001810190506143a3565b5050565b601f821115614406576143d7816142a6565b6143e0846142bb565b810160208510156143ef578190505b6144036143fb856142bb565b8301826143a2565b50505b505050565b600082821c905092915050565b60006144296000198460080261440b565b1980831691505092915050565b60006144428383614418565b9150826002028217905092915050565b61445b82613540565b67ffffffffffffffff8111156144745761447361394b565b5b61447e8254613c52565b6144898282856143c5565b600060209050601f8311600181146144bc57600084156144aa578287015190505b6144b48582614436565b86555061451c565b601f1984166144ca866142a6565b60005b828110156144f2578489015182556001820191506020850194506020810190506144cd565b8683101561450f578489015161450b601f891682614418565b8355505b6001600288020188555050505b505050505050565b6000604082019050614539600083018561371d565b818103602083015261454b8184613597565b90509392505050565b600061456761456284613af9565b6139ab565b90508281526020810184848401111561458357614582613946565b5b61458e84828561355c565b509392505050565b600082601f8301126145ab576145aa613854565b5b81516145bb848260208601614554565b91505092915050565b6000602082840312156145da576145d961347b565b5b600082015167ffffffffffffffff8111156145f8576145f7613480565b5b61460484828501614596565b91505092915050565b7f555249206765747465722069732066726f7a656e000000000000000000000000600082015250565b600061464360148361354b565b915061464e8261460d565b602082019050919050565b6000602082019050818103600083015261467281614636565b9050919050565b6000815461468681613c52565b614690818661418b565b945060018216600081146146ab57600181146146c0576146f3565b60ff19831686528115158202860193506146f3565b6146c9856142a6565b60005b838110156146eb578154818901526001820191506020810190506146cc565b838801955050505b50505092915050565b60006147088284614679565b915081905092915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b6000614749601d8361418b565b915061475482614713565b601d82019050919050565b600061476a82613540565b614774818561418b565b935061478481856020860161355c565b80840191505092915050565b600061479b8261473c565b91506147a7828461475f565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061480e60268361354b565b9150614819826147b2565b604082019050919050565b6000602082019050818103600083015261483d81614801565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061487a60108361354b565b915061488582614844565b602082019050919050565b600060208201905081810360008301526148a98161486d565b9050919050565b7f5472616e73616374696f6e2076616c756520646964206e6f7420657175616c2060008201527f746f206d696e7420707269636500000000000000000000000000000000000000602082015250565b600061490c602d8361354b565b9150614917826148b0565b604082019050919050565b6000602082019050818103600083015261493b816148ff565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061499e60258361354b565b91506149a982614942565b604082019050919050565b600060208201905081810360008301526149cd81614991565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614a3060248361354b565b9150614a3b826149d4565b604082019050919050565b60006020820190508181036000830152614a5f81614a23565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614a9c60208361354b565b9150614aa782614a66565b602082019050919050565b60006020820190508181036000830152614acb81614a8f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614b0c826135f2565b9150614b17836135f2565b9250828203905081811115614b2f57614b2e614ad2565b5b92915050565b7f4578636565647320616d6f756e74206f6620706173736573207065722070657260008201527f736f6e0000000000000000000000000000000000000000000000000000000000602082015250565b6000614b9160238361354b565b9150614b9c82614b35565b604082019050919050565b60006020820190508181036000830152614bc081614b84565b9050919050565b7f4d617820737570706c7920726561636865640000000000000000000000000000600082015250565b6000614bfd60128361354b565b9150614c0882614bc7565b602082019050919050565b60006020820190508181036000830152614c2c81614bf0565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614c69601f8361354b565b9150614c7482614c33565b602082019050919050565b60006020820190508181036000830152614c9881614c5c565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000614cd5601d8361354b565b9150614ce082614c9f565b602082019050919050565b60006020820190508181036000830152614d0481614cc8565b9050919050565b600081905092915050565b50565b6000614d26600083614d0b565b9150614d3182614d16565b600082019050919050565b6000614d4782614d19565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000614dad603a8361354b565b9150614db882614d51565b604082019050919050565b60006020820190508181036000830152614ddc81614da0565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614e1960198361354b565b9150614e2482614de3565b602082019050919050565b60006020820190508181036000830152614e4881614e0c565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614eab60328361354b565b9150614eb682614e4f565b604082019050919050565b60006020820190508181036000830152614eda81614e9e565b9050919050565b6000614eec826135f2565b9150614ef7836135f2565b9250828201905080821115614f0f57614f0e614ad2565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614f4f826135f2565b9150614f5a836135f2565b925082614f6a57614f69614f15565b5b828204905092915050565b6000614f80826135f2565b9150614f8b836135f2565b9250828202614f99816135f2565b91508282048414831517614fb057614faf614ad2565b5b5092915050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000614fed60148361354b565b9150614ff882614fb7565b602082019050919050565b6000602082019050818103600083015261501c81614fe0565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b600061508860188361354b565b915061509382615052565b602082019050919050565b600060208201905081810360008301526150b78161507b565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b60006150f4601f8361354b565b91506150ff826150be565b602082019050919050565b60006020820190508181036000830152615123816150e7565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b600061518660228361354b565b91506151918261512a565b604082019050919050565b600060208201905081810360008301526151b581615179565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006151e3826151bc565b6151ed81856151c7565b93506151fd81856020860161355c565b61520681613586565b840191505092915050565b60006080820190506152266000830187613687565b6152336020830186613687565b615240604083018561371d565b818103606083015261525281846151d8565b905095945050505050565b60008151905061526c816134b1565b92915050565b6000602082840312156152885761528761347b565b5b60006152968482850161525d565b91505092915050565b7f455243373231456e756d657261626c653a20636f6e736563757469766520747260008201527f616e7366657273206e6f7420737570706f727465640000000000000000000000602082015250565b60006152fb60358361354b565b91506153068261529f565b604082019050919050565b6000602082019050818103600083015261532a816152ee565b9050919050565b600060ff82169050919050565b61534781615331565b82525050565b600060808201905061536260008301876137a4565b61536f602083018661533e565b61537c60408301856137a4565b61538960608301846137a4565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006153f760208361354b565b9150615402826153c1565b602082019050919050565b60006020820190508181036000830152615426816153ea565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615463601c8361354b565b915061546e8261542d565b602082019050919050565b6000602082019050818103600083015261549281615456565b905091905056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212206478a5a074c65d72ef02c07d5530be8ed2cdff404e0d0ca95396e6eb3f8d266164736f6c63430008110033

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

000000000000000000000000304eb54c196a481dab32effa8c84d3f715e11f16000000000000000000000000d0da14f46595850627bcdb19060bdfb0f4cc5e8f000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001787b226e616d65223a224c61756e63682050617373206279204c61756e6368636173746572222c226465736372697074696f6e223a224c61756e6368205061737320697320612070726f64756374204e4654207468617420756e6c6f636b7320796f75722070726f66696c6520616e642074686520616476616e636564206665617475726573206f6e205b4c61756e63686361737465725d2868747470733a2f2f7777772e6c61756e63686361737465722e78797a295c725c6e5c725c6e417274206279205b4042696173206f6e204661726361737465725d286661726361737465723a2f2f70726f66696c65732f3133353529202f206d656e646963616e74626961732e78797a222c22696d616765223a22697066733a2f2f516d626a3462786755785a47646d38445879686e5765584476703665647a5747696446346a313366586b64367868222c2265787465726e616c5f6c696e6b223a2268747470733a2f2f7777772e6c61756e63686361737465722e78797a227d0000000000000000

-----Decoded View---------------
Arg [0] : tokenRendererAddress (address): 0x304EB54C196A481dAB32EfFa8c84D3F715e11f16
Arg [1] : whitelistSigningKey (address): 0xD0DA14f46595850627bcDB19060bdFb0F4Cc5E8f
Arg [2] : contractUriJSON (string): {"name":"Launch Pass by Launchcaster","description":"Launch Pass is a product NFT that unlocks your profile and the advanced features on [Launchcaster](https://www.launchcaster.xyz)\r\n\r\nArt by [@Bias on Farcaster](farcaster://profiles/1355) / mendicantbias.xyz","image":"ipfs://Qmbj4bxgUxZGdm8DXyhnWeXDvp6edzWGidF4j13fXkd6xh","external_link":"https://www.launchcaster.xyz"}

-----Encoded View---------------
16 Constructor Arguments found :
Arg [0] : 000000000000000000000000304eb54c196a481dab32effa8c84d3f715e11f16
Arg [1] : 000000000000000000000000d0da14f46595850627bcdb19060bdfb0f4cc5e8f
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000178
Arg [4] : 7b226e616d65223a224c61756e63682050617373206279204c61756e63686361
Arg [5] : 73746572222c226465736372697074696f6e223a224c61756e63682050617373
Arg [6] : 20697320612070726f64756374204e4654207468617420756e6c6f636b732079
Arg [7] : 6f75722070726f66696c6520616e642074686520616476616e63656420666561
Arg [8] : 7475726573206f6e205b4c61756e63686361737465725d2868747470733a2f2f
Arg [9] : 7777772e6c61756e63686361737465722e78797a295c725c6e5c725c6e417274
Arg [10] : 206279205b4042696173206f6e204661726361737465725d2866617263617374
Arg [11] : 65723a2f2f70726f66696c65732f3133353529202f206d656e646963616e7462
Arg [12] : 6961732e78797a222c22696d616765223a22697066733a2f2f516d626a346278
Arg [13] : 6755785a47646d38445879686e5765584476703665647a5747696446346a3133
Arg [14] : 66586b64367868222c2265787465726e616c5f6c696e6b223a2268747470733a
Arg [15] : 2f2f7777772e6c61756e63686361737465722e78797a227d0000000000000000


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.