ETH Price: $3,433.06 (+4.56%)

Token

Tiles (TILES)
 

Overview

Max Total Supply

1,881 TILES

Holders

969

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
inspector9.eth
Balance
1 TILES
0x810657d67c68cf7299f7ecbc321b293ee064c5df
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:
Tiles

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-07-16
*/

// SPDX-License-Identifier: MIT

pragma solidity 0.8.6;

/**
 * @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 `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4);
}

/*
 * @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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

/**
 * @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 () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

/** 
  @notice A contract that inherits from JuiceboxProject can use Juicebox as a business-model-as-a-service.
  @dev The owner of the contract makes admin decisions such as:
    - Which address is the funding cycle owner, which can tap funds from the funding cycle.
    - Should this project's Tickets be migrated to a new Juicer. 
*/
abstract contract JuiceboxProject is IERC721Receiver, Ownable {
    /// @notice The direct deposit terminals.
    ITerminalDirectory public immutable terminalDirectory;

    /// @notice The ID of the project that should be used to forward this contract's received payments.
    uint256 public projectId;

    /** 
      @param _projectId The ID of the project that should be used to forward this contract's received payments.
      @param _terminalDirectory A directory of a project's current Juicebox terminal to receive payments in.
    */
    constructor(uint256 _projectId, ITerminalDirectory _terminalDirectory) {
        projectId = _projectId;
        terminalDirectory = _terminalDirectory;
    }

    receive() external payable {}

    /** 
      @notice Withdraws funds stored in this contract.
      @param _beneficiary The address to send the funds to.
      @param _amount The amount to send.
    */
    function withdraw(address payable _beneficiary, uint256 _amount)
        external
        onlyOwner
    {
        Address.sendValue(_beneficiary, _amount);
    }

    /** 
      @notice Allows the project that is being managed to be set.
      @param _projectId The ID of the project that is being managed.
    */
    function setProjectId(uint256 _projectId) external onlyOwner {
        projectId = _projectId;
    }

    /** 
      @notice Make a payment to this project.
      @param _beneficiary The address who will receive tickets from this fee.
      @param _memo A memo that will be included in the published event.
      @param _preferUnstakedTickets Whether ERC20's should be claimed automatically if they have been issued.
    */
    function pay(
        address _beneficiary,
        string calldata _memo,
        bool _preferUnstakedTickets
    ) external payable {
        require(projectId != 0, "JuiceboxProject::pay: PROJECT_NOT_FOUND");

        // Get the terminal for this contract's project.
        ITerminal _terminal = terminalDirectory.terminalOf(projectId);

        // There must be a terminal.
        require(
            _terminal != ITerminal(address(0)),
            "JuiceboxProject::pay: TERMINAL_NOT_FOUND"
        );

        _terminal.pay{value: msg.value}(
            projectId,
            _beneficiary,
            _memo,
            _preferUnstakedTickets
        );
    }

    /** 
        @notice Transfer the ownership of the project to a new owner.  
        @dev This contract will no longer be able to reconfigure or tap funds from this project.
        @param _projects The projects contract.
        @param _newOwner The new project owner.
        @param _projectId The ID of the project to transfer ownership of.
        @param _data Arbitrary data to include in the transaction.
    */
    function transferProjectOwnership(
        IProjects _projects,
        address _newOwner,
        uint256 _projectId,
        bytes calldata _data
    ) external onlyOwner {
        _projects.safeTransferFrom(address(this), _newOwner, _projectId, _data);
    }

    /** 
      @notice Allows this contract to receive a project.
    */
    function onERC721Received(
        address,
        address,
        uint256,
        bytes calldata
    ) public pure override returns (bytes4) {
        return this.onERC721Received.selector;
    }

    function setOperator(
        IOperatorStore _operatorStore,
        address _operator,
        uint256 _projectId,
        uint256[] calldata _permissionIndexes
    ) external onlyOwner {
        _operatorStore.setOperator(_operator, _projectId, _permissionIndexes);
    }

    function setOperators(
        IOperatorStore _operatorStore,
        address[] calldata _operators,
        uint256[] calldata _projectIds,
        uint256[][] calldata _permissionIndexes
    ) external onlyOwner {
        _operatorStore.setOperators(
            _operators,
            _projectIds,
            _permissionIndexes
        );
    }

    /** 
      @notice Take a fee for this project from this contract.
      @param _amount The payment amount.
      @param _beneficiary The address who will receive tickets from this fee.
      @param _memo A memo that will be included in the published event.
      @param _preferUnstakedTickets Whether ERC20's should be claimed automatically if they have been issued.
    */
    function _takeFee(
        uint256 _amount,
        address _beneficiary,
        string memory _memo,
        bool _preferUnstakedTickets
    ) internal {
        require(projectId != 0, "JuiceboxProject::takeFee: PROJECT_NOT_FOUND");
        // Find the terminal for this contract's project.
        ITerminal _terminal = terminalDirectory.terminalOf(projectId);

        // There must be a terminal.
        require(
            _terminal != ITerminal(address(0)),
            "JuiceboxProject::takeFee: TERMINAL_NOT_FOUND"
        );

        // There must be enough funds in the contract to take the fee.
        require(
            address(this).balance >= _amount,
            "JuiceboxProject::takeFee: INSUFFICIENT_FUNDS"
        );

        // Send funds to the terminal.
        _terminal.pay{value: _amount}(
            projectId,
            _beneficiary,
            _memo,
            _preferUnstakedTickets
        );
    }
}

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

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

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

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

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

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

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

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

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

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

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


/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant alphabet = "0123456789abcdef";

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

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

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

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

}

/**
 * @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: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        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) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

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

    /**
     * @dev Base URI for computing {tokenURI}. Empty by default, can be overriden
     * in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @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 of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param 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(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    // solhint-disable-next-line no-inline-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

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

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

contract Tiles is JuiceboxProject, ERC721Enumerable {
    using SafeMath for uint256;

    event Mint(address to, address tileAddress);
    event SetBaseURI(string baseURI);

    bool public saleIsActive = false;

    // Limit the total number of reserve Tiles that can be minted by the owner
    uint256 public mintedReservesLimit = 50;
    uint256 public mintedReservesCount = 0;

    // Map Tile addresses to their token ID
    mapping(address => uint256) public idOfAddress;

    // Map token IDs to Tile addresses
    mapping(uint256 => address) public tileAddressOf;

    // Base uri used to retrieve Tile token metadata
    string public baseURI;

    constructor(
        uint256 _projectID,
        ITerminalDirectory _terminalDirectory,
        string memory _baseURI
    ) JuiceboxProject(_projectID, _terminalDirectory) ERC721("Tiles", "TILES") {
        baseURI = _baseURI;
    }

    // Get URI used to retrieve metadata for Tile with ID `tokenID`
    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );

        return
            bytes(baseURI).length > 0
                ? string(
                    abi.encodePacked(
                        baseURI,
                        toAsciiString(tileAddressOf[tokenId])
                    ) // Convert address to string before encoding
                )
                : "";
    }

    // Get IDs for all tokens owned by `_owner`
    function tokensOfOwner(address _owner)
        external
        view
        returns (uint256[] memory)
    {
        uint256 tokenCount = balanceOf(_owner);
        if (tokenCount == 0) {
            // Return an empty array
            return new uint256[](0);
        } else {
            uint256[] memory result = new uint256[](tokenCount);
            uint256 index;
            for (index = 0; index < tokenCount; index++) {
                result[index] = tokenOfOwnerByIndex(_owner, index);
            }
            return result;
        }
    }

    // Calculate the current Tile market price based on current supply
    function calculatePrice() public view returns (uint256) {
        require(saleIsActive == true, "Sale hasn't started");

        uint256 currentSupply = totalSupply();

        if (currentSupply >= 102400) {
            return 10240000000000000000; // 102,401 - ∞ : 10.24 ETH
        } else if (currentSupply >= 51200) {
            return 5120000000000000000; // 51,201 - 102,400 : 5.12 ETH
        } else if (currentSupply >= 25600) {
            return 2560000000000000000; // 25,601 - 51,200 : 2.56 ETH
        } else if (currentSupply >= 12800) {
            return 1280000000000000000; // 12,801 - 25,600 : 1.28 ETH
        } else if (currentSupply >= 6400) {
            return 640000000000000000; // 6,401 - 12,800 : 0.64 ETH
        } else if (currentSupply >= 3200) {
            return 320000000000000000; // 3,201 - 6,400 : 0.32 ETH
        } else if (currentSupply >= 1600) {
            return 160000000000000000; // 1,601 - 3,200 : 0.16 ETH
        } else if (currentSupply >= 800) {
            return 80000000000000000; // 801 - 1600 : 0.08 ETH
        } else if (currentSupply >= 400) {
            return 40000000000000000; // 401 - 800 : 0.04 ETH
        } else if (currentSupply >= 200) {
            return 20000000000000000; // 201 - 400 : 0.02 ETH
        } else {
            return 10000000000000000; // 1 - 200 : 0.01 ETH
        }
    }

    // Mint Tile for address `_tileAddress` to `msg.sender`
    function mintTile(address _tileAddress) external payable returns (uint256) {
        require(
            msg.value >= calculatePrice(),
            "Ether value sent is below the price"
        );

        // Take fee into TileDAO Juicebox treasury
        _takeFee(
            msg.value,
            msg.sender,
            string(
                abi.encodePacked(
                    "Minted Tile with address ",
                    toAsciiString(_tileAddress)
                )
            ),
            false
        );

        return _mintTile(msg.sender, _tileAddress);
    }

    // If a wallet owner's matching Tile has been minted already, they may collect it from its current owner by paying the owner the current market price.
    function collectTile() external payable {
        uint256 tokenId = idOfAddress[msg.sender];
        require(tokenId != 0, "Tile for sender address has not been minted");

        address owner = ownerOf(tokenId);
        require(owner != msg.sender, "Sender already owns this Tile");
        require(
            msg.value >= calculatePrice(),
            "Ether value sent is below the price"
        );

        require(payable(owner).send(msg.value));

        _transfer(owner, msg.sender, tokenId);
    }

    function _mintTile(address to, address _tileAddress)
        private
        returns (uint256)
    {
        require(
            idOfAddress[_tileAddress] == 0,
            "Tile already minted for address"
        );

        // Start IDs at 1
        uint256 tokenId = totalSupply() + 1;

        _safeMint(to, tokenId);

        // Map Tile address to token ID
        idOfAddress[_tileAddress] = tokenId;
        // Map token ID to Tile address
        tileAddressOf[tokenId] = _tileAddress;

        emit Mint(to, _tileAddress);

        return tokenId;
    }

    //
    // Owner functions
    //

    function startSale() external onlyOwner {
        require(saleIsActive == false, "Sale is already active");
        saleIsActive = true;
    }

    function pauseSale() external onlyOwner {
        require(saleIsActive == true, "Sale is already inactive");
        saleIsActive = false;
    }

    function setBaseURI(string memory _baseURI) external onlyOwner {
        baseURI = _baseURI;
        emit SetBaseURI(_baseURI);
    }

    // Reserved for promotional giveaways, and rewards to those who helped inspire or enable Tiles.
    // Owner may mint Tile for `_tileAddress` to `to`
    function mintReserveTile(address to, address _tileAddress)
        external
        onlyOwner
        returns (uint256)
    {
        require(
            mintedReservesCount < mintedReservesLimit,
            "Reserves limit exceeded"
        );

        mintedReservesCount = mintedReservesCount + 1;

        return _mintTile(to, _tileAddress);
    }

    function toAsciiString(address x) internal pure returns (string memory) {
        bytes memory s = new bytes(40);
        for (uint256 i = 0; i < 20; i++) {
            bytes1 b = bytes1(uint8(uint256(uint160(x)) / (2**(8 * (19 - i)))));
            bytes1 hi = bytes1(uint8(b) / 16);
            bytes1 lo = bytes1(uint8(b) - 16 * uint8(hi));
            s[2 * i] = char(hi);
            s[2 * i + 1] = char(lo);
        }
        return string(s);
    }

    function char(bytes1 b) internal pure returns (bytes1 c) {
        if (uint8(b) < 10) return bytes1(uint8(b) + 0x30);
        else return bytes1(uint8(b) + 0x57);
    }
}

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

struct FundingCycleMetadata {
    uint256 reservedRate;
    uint256 bondingCurveRate;
    uint256 reconfigurationBondingCurveRate;
}

interface IJuicer {
    event Configure(
        uint256 indexed fundingCycleId,
        uint256 indexed projectId,
        address caller
    );

    event Tap(
        uint256 indexed fundingCycleId,
        uint256 indexed projectId,
        address indexed beneficiary,
        uint256 amount,
        uint256 currency,
        uint256 netTransferAmount,
        uint256 beneficiaryTransferAmount,
        uint256 govFeeAmount,
        address caller
    );
    event Redeem(
        address indexed holder,
        address indexed beneficiary,
        uint256 indexed _projectId,
        uint256 amount,
        uint256 returnAmount,
        address caller
    );

    event PrintReserveTickets(
        uint256 indexed fundingCycleId,
        uint256 indexed projectId,
        address indexed beneficiary,
        uint256 count,
        uint256 beneficiaryTicketAmount,
        address caller
    );

    event DistributeToPayoutMod(
        uint256 indexed fundingCycleId,
        uint256 indexed projectId,
        PaymentMod mod,
        uint256 modCut,
        address caller
    );
    event DistributeToTicketMod(
        uint256 indexed fundingCycleId,
        uint256 indexed projectId,
        TicketMod mod,
        uint256 modCut,
        address caller
    );
    event AppointGovernance(address governance);

    event AcceptGovernance(address governance);

    event PrintPreminedTickets(
        uint256 indexed projectId,
        address indexed beneficiary,
        uint256 amount,
        uint256 currency,
        string memo,
        address caller
    );

    event Deposit(uint256 amount);

    event EnsureTargetLocalWei(uint256 target);

    event SetYielder(IYielder newYielder);

    event SetFee(uint256 _amount);

    event SetTargetLocalWei(uint256 amount);

    function governance() external view returns (address payable);

    function pendingGovernance() external view returns (address payable);

    function projects() external view returns (IProjects);

    function fundingCycles() external view returns (IFundingCycles);

    function ticketBooth() external view returns (ITicketBooth);

    function prices() external view returns (IPrices);

    function modStore() external view returns (IModStore);

    function reservedTicketBalanceOf(uint256 _projectId, uint256 _reservedRate)
        external
        view
        returns (uint256);

    function canPrintPreminedTickets(uint256 _projectId)
        external
        view
        returns (bool);

    function balanceOf(uint256 _projectId) external view returns (uint256);

    function currentOverflowOf(uint256 _projectId)
        external
        view
        returns (uint256);

    function claimableOverflowOf(
        address _account,
        uint256 _amount,
        uint256 _projectId
    ) external view returns (uint256);

    function fee() external view returns (uint256);

    function deploy(
        address _owner,
        bytes32 _handle,
        string calldata _uri,
        FundingCycleProperties calldata _properties,
        FundingCycleMetadata calldata _metadata,
        PaymentMod[] memory _paymentMods,
        TicketMod[] memory _ticketMods
    ) external;

    function configure(
        uint256 _projectId,
        FundingCycleProperties calldata _properties,
        FundingCycleMetadata calldata _metadata,
        PaymentMod[] memory _paymentMods,
        TicketMod[] memory _ticketMods
    ) external returns (uint256);

    function printPreminedTickets(
        uint256 _projectId,
        uint256 _amount,
        uint256 _currency,
        address _beneficiary,
        string memory _memo,
        bool _preferUnstakedTickets
    ) external;

    function tap(
        uint256 _projectId,
        uint256 _amount,
        uint256 _currency,
        uint256 _minReturnedWei
    ) external returns (uint256);

    function redeem(
        address _account,
        uint256 _projectId,
        uint256 _amount,
        uint256 _minReturnedWei,
        address payable _beneficiary,
        bool _preferUnstaked
    ) external returns (uint256 returnAmount);

    function printReservedTickets(uint256 _projectId)
        external
        returns (uint256 reservedTicketsToPrint);

    function setFee(uint256 _fee) external;

    function appointGovernance(address payable _pendingGovernance) external;

    function acceptGovernance() external;
}

interface ITerminal {
    event Pay(
        uint256 indexed fundingCycleId,
        uint256 indexed projectId,
        address indexed beneficiary,
        uint256 amount,
        string note,
        address caller
    );

    event AddToBalance(
        uint256 indexed projectId,
        uint256 value,
        address caller
    );

    event AllowMigration(ITerminal allowed);

    event Migrate(
        uint256 indexed projectId,
        ITerminal indexed to,
        uint256 _amount,
        address caller
    );

    function terminalDirectory() external view returns (ITerminalDirectory);

    function migrationIsAllowed(ITerminal _terminal)
        external
        view
        returns (bool);

    function pay(
        uint256 _projectId,
        address _beneficiary,
        string calldata _memo,
        bool _preferUnstakedTickets
    ) external payable returns (uint256 fundingCycleId);

    function addToBalance(uint256 _projectId) external payable;

    function allowMigration(ITerminal _contract) external;

    function migrate(uint256 _projectId, ITerminal _to) external;
}

interface ITerminalDirectory {
    event DeployAddress(
        uint256 indexed projectId,
        string memo,
        address indexed caller
    );

    event SetTerminal(
        uint256 indexed projectId,
        ITerminal indexed terminal,
        address caller
    );

    event SetPayerPreferences(
        address indexed account,
        address beneficiary,
        bool preferUnstakedTickets
    );

    function projects() external view returns (IProjects);

    function terminalOf(uint256 _projectId) external view returns (ITerminal);

    function beneficiaryOf(address _account) external returns (address);

    function unstakedTicketsPreferenceOf(address _account)
        external
        returns (bool);

    function addressesOf(uint256 _projectId)
        external
        view
        returns (IDirectPaymentAddress[] memory);

    function deployAddress(uint256 _projectId, string calldata _memo) external;

    function setTerminal(uint256 _projectId, ITerminal _terminal) external;

    function setPayerPreferences(
        address _beneficiary,
        bool _preferUnstakedTickets
    ) external;
}

interface IProjects is IERC721 {
    event Create(
        uint256 indexed projectId,
        address indexed owner,
        bytes32 indexed handle,
        string uri,
        ITerminal terminal,
        address caller
    );

    event SetHandle(
        uint256 indexed projectId,
        bytes32 indexed handle,
        address caller
    );

    event SetUri(uint256 indexed projectId, string uri, address caller);

    event TransferHandle(
        uint256 indexed projectId,
        address indexed to,
        bytes32 indexed handle,
        bytes32 newHandle,
        address caller
    );

    event ClaimHandle(
        address indexed account,
        uint256 indexed projectId,
        bytes32 indexed handle,
        address caller
    );

    event ChallengeHandle(
        bytes32 indexed handle,
        uint256 challengeExpiry,
        address caller
    );

    event RenewHandle(
        bytes32 indexed handle,
        uint256 indexed projectId,
        address caller
    );

    function count() external view returns (uint256);

    function uriOf(uint256 _projectId) external view returns (string memory);

    function handleOf(uint256 _projectId) external returns (bytes32 handle);

    function projectFor(bytes32 _handle) external returns (uint256 projectId);

    function transferAddressFor(bytes32 _handle)
        external
        returns (address receiver);

    function challengeExpiryOf(bytes32 _handle) external returns (uint256);

    function exists(uint256 _projectId) external view returns (bool);

    function create(
        address _owner,
        bytes32 _handle,
        string calldata _uri,
        ITerminal _terminal
    ) external returns (uint256 id);

    function setHandle(uint256 _projectId, bytes32 _handle) external;

    function setUri(uint256 _projectId, string calldata _uri) external;

    function transferHandle(
        uint256 _projectId,
        address _to,
        bytes32 _newHandle
    ) external returns (bytes32 _handle);

    function claimHandle(
        bytes32 _handle,
        address _for,
        uint256 _projectId
    ) external;
}

interface IOperatorStore {
    event SetOperator(
        address indexed operator,
        address indexed account,
        uint256 indexed domain,
        uint256[] permissionIndexes,
        uint256 packed
    );

    function permissionsOf(
        address _operator,
        address _account,
        uint256 _domain
    ) external view returns (uint256);

    function hasPermission(
        address _operator,
        address _account,
        uint256 _domain,
        uint256 _permissionIndex
    ) external view returns (bool);

    function hasPermissions(
        address _operator,
        address _account,
        uint256 _domain,
        uint256[] calldata _permissionIndexes
    ) external view returns (bool);

    function setOperator(
        address _operator,
        uint256 _domain,
        uint256[] calldata _permissionIndexes
    ) external;

    function setOperators(
        address[] calldata _operators,
        uint256[] calldata _domains,
        uint256[][] calldata _permissionIndexes
    ) external;
}

struct PaymentMod {
    bool preferUnstaked;
    uint16 percent;
    uint48 lockedUntil;
    address payable beneficiary;
    IModAllocator allocator;
    uint56 projectId;
}

struct TicketMod {
    bool preferUnstaked;
    uint16 percent;
    uint48 lockedUntil;
    address payable beneficiary;
}

interface IModStore {
    event SetPaymentMod(
        uint256 indexed projectId,
        uint256 indexed configuration,
        PaymentMod mods,
        address caller
    );

    event SetTicketMod(
        uint256 indexed projectId,
        uint256 indexed configuration,
        TicketMod mods,
        address caller
    );

    function projects() external view returns (IProjects);

    function paymentModsOf(uint256 _projectId, uint256 _configuration)
        external
        view
        returns (PaymentMod[] memory);

    function ticketModsOf(uint256 _projectId, uint256 _configuration)
        external
        view
        returns (TicketMod[] memory);

    function setPaymentMods(
        uint256 _projectId,
        uint256 _configuration,
        PaymentMod[] memory _mods
    ) external;

    function setTicketMods(
        uint256 _projectId,
        uint256 _configuration,
        TicketMod[] memory _mods
    ) external;
}

interface IYielder {
    function deposited() external view returns (uint256);

    function getCurrentBalance() external view returns (uint256);

    function deposit() external payable;

    function withdraw(uint256 _amount, address payable _beneficiary) external;

    function withdrawAll(address payable _beneficiary)
        external
        returns (uint256);
}

/// @notice The funding cycle structure represents a project stewarded by an address, and accounts for which addresses have helped sustain the project.
struct FundingCycle {
    // A unique number that's incremented for each new funding cycle, starting with 1.
    uint256 id;
    // The ID of the project contract that this funding cycle belongs to.
    uint256 projectId;
    // The number of this funding cycle for the project.
    uint256 number;
    // The ID of a previous funding cycle that this one is based on.
    uint256 basedOn;
    // The time when this funding cycle was last configured.
    uint256 configured;
    // The number of cycles that this configuration should last for before going back to the last permanent.
    uint256 cycleLimit;
    // A number determining the amount of redistribution shares this funding cycle will issue to each sustainer.
    uint256 weight;
    // The ballot contract to use to determine a subsequent funding cycle's reconfiguration status.
    IFundingCycleBallot ballot;
    // The time when this funding cycle will become active.
    uint256 start;
    // The number of seconds until this funding cycle's surplus is redistributed.
    uint256 duration;
    // The amount that this funding cycle is targeting in terms of the currency.
    uint256 target;
    // The currency that the target is measured in.
    uint256 currency;
    // The percentage of each payment to send as a fee to the Juicebox admin.
    uint256 fee;
    // A percentage indicating how much more weight to give a funding cycle compared to its predecessor.
    uint256 discountRate;
    // The amount of available funds that have been tapped by the project in terms of the currency.
    uint256 tapped;
    // A packed list of extra data. The first 8 bytes are reserved for versioning.
    uint256 metadata;
}

struct FundingCycleProperties {
    uint256 target;
    uint256 currency;
    uint256 duration;
    uint256 cycleLimit;
    uint256 discountRate;
    IFundingCycleBallot ballot;
}

interface IFundingCycles {
    event Configure(
        uint256 indexed fundingCycleId,
        uint256 indexed projectId,
        uint256 reconfigured,
        FundingCycleProperties _properties,
        uint256 metadata,
        address caller
    );

    event Tap(
        uint256 indexed fundingCycleId,
        uint256 indexed projectId,
        uint256 amount,
        uint256 newTappedAmount,
        address caller
    );

    event Init(
        uint256 indexed fundingCycleId,
        uint256 indexed projectId,
        uint256 number,
        uint256 previous,
        uint256 weight,
        uint256 start
    );

    function latestIdOf(uint256 _projectId) external view returns (uint256);

    function count() external view returns (uint256);

    function BASE_WEIGHT() external view returns (uint256);

    function MAX_CYCLE_LIMIT() external view returns (uint256);

    function get(uint256 _fundingCycleId)
        external
        view
        returns (FundingCycle memory);

    function queuedOf(uint256 _projectId)
        external
        view
        returns (FundingCycle memory);

    function currentOf(uint256 _projectId)
        external
        view
        returns (FundingCycle memory);

    function currentBallotStateOf(uint256 _projectId)
        external
        view
        returns (BallotState);

    function configure(
        uint256 _projectId,
        FundingCycleProperties calldata _properties,
        uint256 _metadata,
        uint256 _fee,
        bool _configureActiveFundingCycle
    ) external returns (FundingCycle memory fundingCycle);

    function tap(uint256 _projectId, uint256 _amount)
        external
        returns (FundingCycle memory fundingCycle);
}

interface ITicketBooth {
    event Issue(
        uint256 indexed projectId,
        string name,
        string symbol,
        address caller
    );
    event Print(
        address indexed holder,
        uint256 indexed projectId,
        uint256 amount,
        bool convertedTickets,
        bool preferUnstakedTickets,
        address controller
    );

    event Redeem(
        address indexed holder,
        uint256 indexed projectId,
        uint256 amount,
        uint256 stakedTickets,
        bool preferUnstaked,
        address controller
    );

    event Stake(
        address indexed holder,
        uint256 indexed projectId,
        uint256 amount,
        address caller
    );

    event Unstake(
        address indexed holder,
        uint256 indexed projectId,
        uint256 amount,
        address caller
    );

    event Lock(
        address indexed holder,
        uint256 indexed projectId,
        uint256 amount,
        address caller
    );

    event Unlock(
        address indexed holder,
        uint256 indexed projectId,
        uint256 amount,
        address caller
    );

    event Transfer(
        address indexed holder,
        uint256 indexed projectId,
        address indexed recipient,
        uint256 amount,
        address caller
    );

    function ticketsOf(uint256 _projectId) external view returns (ITickets);

    function projects() external view returns (IProjects);

    function lockedBalanceOf(address _holder, uint256 _projectId)
        external
        view
        returns (uint256);

    function lockedBalanceBy(
        address _operator,
        address _holder,
        uint256 _projectId
    ) external view returns (uint256);

    function stakedBalanceOf(address _holder, uint256 _projectId)
        external
        view
        returns (uint256);

    function stakedTotalSupplyOf(uint256 _projectId)
        external
        view
        returns (uint256);

    function totalSupplyOf(uint256 _projectId) external view returns (uint256);

    function balanceOf(address _holder, uint256 _projectId)
        external
        view
        returns (uint256 _result);

    function issue(
        uint256 _projectId,
        string calldata _name,
        string calldata _symbol
    ) external;

    function print(
        address _holder,
        uint256 _projectId,
        uint256 _amount,
        bool _preferUnstakedTickets
    ) external;

    function redeem(
        address _holder,
        uint256 _projectId,
        uint256 _amount,
        bool _preferUnstaked
    ) external;

    function stake(
        address _holder,
        uint256 _projectId,
        uint256 _amount
    ) external;

    function unstake(
        address _holder,
        uint256 _projectId,
        uint256 _amount
    ) external;

    function lock(
        address _holder,
        uint256 _projectId,
        uint256 _amount
    ) external;

    function unlock(
        address _holder,
        uint256 _projectId,
        uint256 _amount
    ) external;

    function transfer(
        address _holder,
        uint256 _projectId,
        uint256 _amount,
        address _recipient
    ) external;
}

interface IPrices {
    event AddFeed(uint256 indexed currency, AggregatorV3Interface indexed feed);

    function feedDecimalAdjuster(uint256 _currency) external returns (uint256);

    function targetDecimals() external returns (uint256);

    function feedFor(uint256 _currency)
        external
        returns (AggregatorV3Interface);

    function getETHPriceFor(uint256 _currency) external view returns (uint256);

    function addFeed(AggregatorV3Interface _priceFeed, uint256 _currency)
        external;
}

interface IDirectPaymentAddress {
    event Forward(
        address indexed payer,
        uint256 indexed projectId,
        address beneficiary,
        uint256 value,
        string memo,
        bool preferUnstakedTickets
    );

    function terminalDirectory() external returns (ITerminalDirectory);

    function projectId() external returns (uint256);

    function memo() external returns (string memory);
}

interface IModAllocator {
    event Allocate(
        uint256 indexed projectId,
        uint256 indexed forProjectId,
        address indexed beneficiary,
        uint256 amount,
        address caller
    );

    function allocate(
        uint256 _projectId,
        uint256 _forProjectId,
        address _beneficiary
    ) external payable;
}

enum BallotState {
    Approved,
    Active,
    Failed,
    Standby
}

interface IFundingCycleBallot {
    function duration() external view returns (uint256);

    function state(uint256 _fundingCycleId, uint256 _configured)
        external
        view
        returns (BallotState);
}

interface ITickets is IERC20 {
    function print(address _account, uint256 _amount) external;

    function redeem(address _account, uint256 _amount) external;
}

interface AggregatorV3Interface {

  function decimals() external view returns (uint8);
  function description() external view returns (string memory);
  function version() external view returns (uint256);

  // getRoundData and latestRoundData should both raise "No data present"
  // if they do not have data to report, instead of returning unset values
  // which could be misinterpreted as actual reported values.
  function getRoundData(uint80 _roundId)
    external
    view
    returns (
      uint80 roundId,
      int256 answer,
      uint256 startedAt,
      uint256 updatedAt,
      uint80 answeredInRound
    );
  function latestRoundData()
    external
    view
    returns (
      uint80 roundId,
      int256 answer,
      uint256 startedAt,
      uint256 updatedAt,
      uint80 answeredInRound
    );

}


/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}


// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_projectID","type":"uint256"},{"internalType":"contract ITerminalDirectory","name":"_terminalDirectory","type":"address"},{"internalType":"string","name":"_baseURI","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":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"address","name":"tileAddress","type":"address"}],"name":"Mint","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":"string","name":"baseURI","type":"string"}],"name":"SetBaseURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"calculatePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectTile","outputs":[],"stateMutability":"payable","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":"","type":"address"}],"name":"idOfAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"address","name":"_tileAddress","type":"address"}],"name":"mintReserveTile","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tileAddress","type":"address"}],"name":"mintTile","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintedReservesCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintedReservesLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","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":"pauseSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"},{"internalType":"string","name":"_memo","type":"string"},{"internalType":"bool","name":"_preferUnstakedTickets","type":"bool"}],"name":"pay","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"projectId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IOperatorStore","name":"_operatorStore","type":"address"},{"internalType":"address","name":"_operator","type":"address"},{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"uint256[]","name":"_permissionIndexes","type":"uint256[]"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IOperatorStore","name":"_operatorStore","type":"address"},{"internalType":"address[]","name":"_operators","type":"address[]"},{"internalType":"uint256[]","name":"_projectIds","type":"uint256[]"},{"internalType":"uint256[][]","name":"_permissionIndexes","type":"uint256[][]"}],"name":"setOperators","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_projectId","type":"uint256"}],"name":"setProjectId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"terminalDirectory","outputs":[{"internalType":"contract ITerminalDirectory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tileAddressOf","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[{"internalType":"address","name":"_owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IProjects","name":"_projects","type":"address"},{"internalType":"address","name":"_newOwner","type":"address"},{"internalType":"uint256","name":"_projectId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"transferProjectOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_beneficiary","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a0604052600c805460ff191690556032600d556000600e553480156200002557600080fd5b5060405162003a2d38038062003a2d8339810160408190526200004891620001ef565b6040518060400160405280600581526020016454696c657360d81b8152506040518060400160405280600581526020016454494c455360d81b81525084846000620000986200014560201b60201c565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060019190915560601b6001600160601b03191660805281516200010d90600290602085019062000149565b5080516200012390600390602084019062000149565b505081516200013b9150601190602084019062000149565b505050506200034c565b3390565b8280546200015790620002f9565b90600052602060002090601f0160209004810192826200017b5760008555620001c6565b82601f106200019657805160ff1916838001178555620001c6565b82800160010185558215620001c6579182015b82811115620001c6578251825591602001919060010190620001a9565b50620001d4929150620001d8565b5090565b5b80821115620001d45760008155600101620001d9565b6000806000606084860312156200020557600080fd5b8351602080860151919450906001600160a01b03811681146200022757600080fd5b60408601519093506001600160401b03808211156200024557600080fd5b818701915087601f8301126200025a57600080fd5b8151818111156200026f576200026f62000336565b604051601f8201601f19908116603f011681019083821181831017156200029a576200029a62000336565b816040528281528a86848701011115620002b357600080fd5b600093505b82841015620002d75784840186015181850187015292850192620002b8565b82841115620002e95760008684830101525b8096505050505050509250925092565b600181811c908216806200030e57607f821691505b602082108114156200033057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160601c6136b462000379600039600081816104bb0152818161125a015261209201526136b46000f3fe6080604052600436106102555760003560e01c80638462151c11610139578063c0a485e2116100b6578063d348b4091161007a578063d348b409146106db578063e985e9c5146106f0578063eb8d244414610739578063f2ec575514610753578063f2fde38b14610789578063f3fef3a3146107a957600080fd5b8063c0a485e21461064f578063c87b56dd1461066f578063c9f84efd1461068f578063cb2f9433146106a5578063ce9246dd146106bb57600080fd5b8063a22cb465116100fd578063a22cb465146105ba578063b0715535146105da578063b66a0e5d146105ed578063b88d4fde14610602578063bc8c30c51461062257600080fd5b80638462151c14610527578063897c063e146105545780638da5cb5b1461056757806395d89b4114610585578063999a244f1461059a57600080fd5b806342842e0e116101d257806355f804b31161019657806355f804b3146104695780636352211e146104895780636abcf8e3146104a95780636c0360eb146104dd57806370a08231146104f2578063715018a61461051257600080fd5b806342842e0e146103ec5780634367297b1461040c5780634f6ccce714610414578063544c0e151461043457806355367ba91461045457600080fd5b806318160ddd1161021957806318160ddd1461035757806323b872dd146103765780632f745c59146103965780633341a331146103b65780633fafa127146103d657600080fd5b806301ffc9a71461026157806306fdde0314610296578063081812fc146102b8578063095ea7b3146102f0578063150b7a021461031257600080fd5b3661025c57005b600080fd5b34801561026d57600080fd5b5061028161027c366004612c8d565b6107c9565b60405190151581526020015b60405180910390f35b3480156102a257600080fd5b506102ab6107f4565b60405161028d91906131e4565b3480156102c457600080fd5b506102d86102d3366004612e3c565b610886565b6040516001600160a01b03909116815260200161028d565b3480156102fc57600080fd5b5061031061030b366004612a58565b610920565b005b34801561031e57600080fd5b5061033e61032d366004612afe565b630a85bd0160e11b95945050505050565b6040516001600160e01b0319909116815260200161028d565b34801561036357600080fd5b50600a545b60405190815260200161028d565b34801561038257600080fd5b50610310610391366004612abd565b610a36565b3480156103a257600080fd5b506103686103b1366004612a58565b610a67565b3480156103c257600080fd5b506103686103d1366004612a84565b610afd565b3480156103e257600080fd5b5061036860015481565b3480156103f857600080fd5b50610310610407366004612abd565b610b9d565b610310610bb8565b34801561042057600080fd5b5061036861042f366004612e3c565b610cf2565b34801561044057600080fd5b5061031061044f366004612cc7565b610d85565b34801561046057600080fd5b50610310610e1a565b34801561047557600080fd5b50610310610484366004612df3565b610ea7565b34801561049557600080fd5b506102d86104a4366004612e3c565b610f1f565b3480156104b557600080fd5b506102d87f000000000000000000000000000000000000000000000000000000000000000081565b3480156104e957600080fd5b506102ab610f96565b3480156104fe57600080fd5b5061036861050d366004612a3b565b611024565b34801561051e57600080fd5b506103106110ab565b34801561053357600080fd5b50610547610542366004612a3b565b61111f565b60405161028d91906131a0565b610310610562366004612c26565b6111de565b34801561057357600080fd5b506000546001600160a01b03166102d8565b34801561059157600080fd5b506102ab6113db565b3480156105a657600080fd5b506103106105b5366004612d29565b6113ea565b3480156105c657600080fd5b506103106105d5366004612bf1565b611485565b6103686105e8366004612a3b565b61154a565b3480156105f957600080fd5b506103106115b1565b34801561060e57600080fd5b5061031061061d366004612b71565b611636565b34801561062e57600080fd5b5061036861063d366004612a3b565b600f6020526000908152604090205481565b34801561065b57600080fd5b5061031061066a366004612afe565b61166e565b34801561067b57600080fd5b506102ab61068a366004612e3c565b6116cc565b34801561069b57600080fd5b50610368600e5481565b3480156106b157600080fd5b50610368600d5481565b3480156106c757600080fd5b506103106106d6366004612e3c565b6117c0565b3480156106e757600080fd5b506103686117ef565b3480156106fc57600080fd5b5061028161070b366004612a84565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561074557600080fd5b50600c546102819060ff1681565b34801561075f57600080fd5b506102d861076e366004612e3c565b6010602052600090815260409020546001600160a01b031681565b34801561079557600080fd5b506103106107a4366004612a3b565b61194c565b3480156107b557600080fd5b506103106107c4366004612a58565b611a36565b60006001600160e01b0319821663780e9d6360e01b14806107ee57506107ee82611a6a565b92915050565b60606002805461080390613592565b80601f016020809104026020016040519081016040528092919081815260200182805461082f90613592565b801561087c5780601f106108515761010080835404028352916020019161087c565b820191906000526020600020905b81548152906001019060200180831161085f57829003601f168201915b5050505050905090565b6000818152600460205260408120546001600160a01b03166109045760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061092b82610f1f565b9050806001600160a01b0316836001600160a01b031614156109995760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016108fb565b336001600160a01b03821614806109b557506109b5813361070b565b610a275760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016108fb565b610a318383611aba565b505050565b610a403382611b28565b610a5c5760405162461bcd60e51b81526004016108fb906132c1565b610a31838383611c1f565b6000610a7283611024565b8210610ad45760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016108fb565b506001600160a01b03919091166000908152600860209081526040808320938352929052205490565b600080546001600160a01b03163314610b285760405162461bcd60e51b81526004016108fb9061328c565b600d54600e5410610b7b5760405162461bcd60e51b815260206004820152601760248201527f5265736572766573206c696d697420657863656564656400000000000000000060448201526064016108fb565b600e54610b8990600161338e565b600e55610b968383611dca565b9392505050565b610a3183838360405180602001604052806000815250611636565b336000908152600f602052604090205480610c295760405162461bcd60e51b815260206004820152602b60248201527f54696c6520666f722073656e646572206164647265737320686173206e6f742060448201526a1899595b881b5a5b9d195960aa1b60648201526084016108fb565b6000610c3482610f1f565b90506001600160a01b038116331415610c8f5760405162461bcd60e51b815260206004820152601d60248201527f53656e64657220616c7265616479206f776e7320746869732054696c6500000060448201526064016108fb565b610c976117ef565b341015610cb65760405162461bcd60e51b81526004016108fb90613249565b6040516001600160a01b038216903480156108fc02916000818181858888f19350505050610ce357600080fd5b610cee813384611c1f565b5050565b6000610cfd600a5490565b8210610d605760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016108fb565b600a8281548110610d7357610d73613624565b90600052602060002001549050919050565b6000546001600160a01b03163314610daf5760405162461bcd60e51b81526004016108fb9061328c565b604051632f53664360e11b81526001600160a01b03861690635ea6cc8690610de190879087908790879060040161307d565b600060405180830381600087803b158015610dfb57600080fd5b505af1158015610e0f573d6000803e3d6000fd5b505050505050505050565b6000546001600160a01b03163314610e445760405162461bcd60e51b81526004016108fb9061328c565b600c5460ff161515600114610e9b5760405162461bcd60e51b815260206004820152601860248201527f53616c6520697320616c726561647920696e616374697665000000000000000060448201526064016108fb565b600c805460ff19169055565b6000546001600160a01b03163314610ed15760405162461bcd60e51b81526004016108fb9061328c565b8051610ee4906011906020840190612897565b507f23c8c9488efebfd474e85a7956de6f39b17c7ab88502d42a623db2d8e382bbaa81604051610f1491906131e4565b60405180910390a150565b6000818152600460205260408120546001600160a01b0316806107ee5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016108fb565b60118054610fa390613592565b80601f0160208091040260200160405190810160405280929190818152602001828054610fcf90613592565b801561101c5780601f10610ff15761010080835404028352916020019161101c565b820191906000526020600020905b815481529060010190602001808311610fff57829003601f168201915b505050505081565b60006001600160a01b03821661108f5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016108fb565b506001600160a01b031660009081526005602052604090205490565b6000546001600160a01b031633146110d55760405162461bcd60e51b81526004016108fb9061328c565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6060600061112c83611024565b90508061114d5760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff8111156111685761116861363a565b604051908082528060200260200182016040528015611191578160200160208202803683370190505b50905060005b82811015611145576111a98582610a67565b8282815181106111bb576111bb613624565b6020908102919091010152806111d0816135c7565b915050611197565b50919050565b60015461123d5760405162461bcd60e51b815260206004820152602760248201527f4a75696365626f7850726f6a6563743a3a7061793a2050524f4a4543545f4e4f6044820152661517d193d5539160ca1b60648201526084016108fb565b600154604051634fe0eced60e01b81526000916001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691634fe0eced916112919160040190815260200190565b60206040518083038186803b1580156112a957600080fd5b505afa1580156112bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112e19190612dd6565b90506001600160a01b03811661134a5760405162461bcd60e51b815260206004820152602860248201527f4a75696365626f7850726f6a6563743a3a7061793a205445524d494e414c5f4e60448201526713d517d193d5539160c21b60648201526084016108fb565b6001546040516302c8986f60e01b81526001600160a01b038316916302c8986f913491611381918a908a908a908a90600401613312565b6020604051808303818588803b15801561139a57600080fd5b505af11580156113ae573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906113d39190612e55565b505050505050565b60606003805461080390613592565b6000546001600160a01b031633146114145760405162461bcd60e51b81526004016108fb9061328c565b6040516393535be160e01b81526001600160a01b038816906393535be19061144a908990899089908990899089906004016130a5565b600060405180830381600087803b15801561146457600080fd5b505af1158015611478573d6000803e3d6000fd5b5050505050505050505050565b6001600160a01b0382163314156114de5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108fb565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006115546117ef565b3410156115735760405162461bcd60e51b81526004016108fb90613249565b6115a7343361158185611ecb565b6040516020016115919190612fbc565b6040516020818303038152906040526000612012565b6107ee3383611dca565b6000546001600160a01b031633146115db5760405162461bcd60e51b81526004016108fb9061328c565b600c5460ff16156116275760405162461bcd60e51b815260206004820152601660248201527553616c6520697320616c72656164792061637469766560501b60448201526064016108fb565b600c805460ff19166001179055565b6116403383611b28565b61165c5760405162461bcd60e51b81526004016108fb906132c1565b61166884848484612220565b50505050565b6000546001600160a01b031633146116985760405162461bcd60e51b81526004016108fb9061328c565b604051635c46a7ef60e11b81526001600160a01b0386169063b88d4fde90610de19030908890889088908890600401613001565b6000818152600460205260409020546060906001600160a01b031661174b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016108fb565b60006011805461175a90613592565b90501161177657604051806020016040528060008152506107ee565b60008281526010602052604090205460119061179a906001600160a01b0316611ecb565b6040516020016117ab929190612f15565b60405160208183030381529060405292915050565b6000546001600160a01b031633146117ea5760405162461bcd60e51b81526004016108fb9061328c565b600155565b600c5460009060ff16151560011461183f5760405162461bcd60e51b815260206004820152601360248201527214d85b19481a185cdb89dd081cdd185c9d1959606a1b60448201526064016108fb565b600061184a600a5490565b905062019000811061186557678e1bc9bf0400000091505090565b61c800811061187d5767470de4df8200000091505090565b616400811061189557672386f26fc100000091505090565b61320081106118ad576711c37937e080000091505090565b61190081106118c5576708e1bc9bf040000091505090565b610c8081106118dd57670470de4df820000091505090565b61064081106118f5576702386f26fc10000091505090565b610320811061190d5767011c37937e08000091505090565b610190811061192457668e1bc9bf04000091505090565b60c8811061193a5766470de4df82000091505090565b662386f26fc1000091505090565b5090565b6000546001600160a01b031633146119765760405162461bcd60e51b81526004016108fb9061328c565b6001600160a01b0381166119db5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108fb565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314611a605760405162461bcd60e51b81526004016108fb9061328c565b610cee8282612253565b60006001600160e01b031982166380ac58cd60e01b1480611a9b57506001600160e01b03198216635b5e139f60e01b145b806107ee57506301ffc9a760e01b6001600160e01b03198316146107ee565b600081815260066020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611aef82610f1f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600460205260408120546001600160a01b0316611ba15760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108fb565b6000611bac83610f1f565b9050806001600160a01b0316846001600160a01b03161480611be75750836001600160a01b0316611bdc84610886565b6001600160a01b0316145b80611c1757506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611c3282610f1f565b6001600160a01b031614611c9a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016108fb565b6001600160a01b038216611cfc5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108fb565b611d0783838361236c565b611d12600082611aba565b6001600160a01b0383166000908152600560205260408120805460019290611d3b90849061352c565b90915550506001600160a01b0382166000908152600560205260408120805460019290611d6990849061338e565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b0381166000908152600f602052604081205415611e305760405162461bcd60e51b815260206004820152601f60248201527f54696c6520616c7265616479206d696e74656420666f7220616464726573730060448201526064016108fb565b6000611e3b600a5490565b611e4690600161338e565b9050611e528482612424565b6001600160a01b038381166000818152600f60209081526040808320869055858352601082529182902080546001600160a01b03191684179055815193881684528301919091527fc5004d0de103a4ce335ec7dfbb178f69e81ecd773d402c331dafc66c465a020a910160405180910390a19392505050565b60408051602880825260608281019093526000919060208201818036833701905050905060005b601481101561200b576000611f0882601361352c565b611f139060086134ec565b611f1e906002613444565b611f31906001600160a01b0387166133cb565b60f81b9050600060108260f81c611f4891906133df565b60f81b905060008160f81c6010611f5f919061350b565b8360f81c611f6d9190613543565b60f81b9050611f7b8261243e565b85611f878660026134ec565b81518110611f9757611f97613624565b60200101906001600160f81b031916908160001a905350611fb78161243e565b85611fc38660026134ec565b611fce90600161338e565b81518110611fde57611fde613624565b60200101906001600160f81b031916908160001a9053505050508080612003906135c7565b915050611ef2565b5092915050565b6001546120755760405162461bcd60e51b815260206004820152602b60248201527f4a75696365626f7850726f6a6563743a3a74616b654665653a2050524f4a454360448201526a1517d393d517d193d5539160aa1b60648201526084016108fb565b600154604051634fe0eced60e01b81526000916001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691634fe0eced916120c99160040190815260200190565b60206040518083038186803b1580156120e157600080fd5b505afa1580156120f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121199190612dd6565b90506001600160a01b0381166121865760405162461bcd60e51b815260206004820152602c60248201527f4a75696365626f7850726f6a6563743a3a74616b654665653a205445524d494e60448201526b105317d393d517d193d5539160a21b60648201526084016108fb565b844710156121eb5760405162461bcd60e51b815260206004820152602c60248201527f4a75696365626f7850726f6a6563743a3a74616b654665653a20494e5355464660448201526b494349454e545f46554e445360a01b60648201526084016108fb565b6001546040516302c8986f60e01b81526001600160a01b038316916302c8986f91889161138191899089908990600401613351565b61222b848484611c1f565b61223784848484612479565b6116685760405162461bcd60e51b81526004016108fb906131f7565b804710156122a35760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016108fb565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146122f0576040519150601f19603f3d011682016040523d82523d6000602084013e6122f5565b606091505b5050905080610a315760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016108fb565b6001600160a01b0383166123c7576123c281600a80546000838152600b60205260408120829055600182018355919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155565b6123ea565b816001600160a01b0316836001600160a01b0316146123ea576123ea8382612586565b6001600160a01b03821661240157610a3181612623565b826001600160a01b0316826001600160a01b031614610a3157610a3182826126d2565b610cee828260405180602001604052806000815250612716565b6000600a60f883901c10156124655761245c60f883901c60306133a6565b60f81b92915050565b61245c60f883901c60576133a6565b919050565b60006001600160a01b0384163b1561257b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906124bd903390899088908890600401613040565b602060405180830381600087803b1580156124d757600080fd5b505af1925050508015612507575060408051601f3d908101601f1916820190925261250491810190612caa565b60015b612561573d808015612535576040519150601f19603f3d011682016040523d82523d6000602084013e61253a565b606091505b5080516125595760405162461bcd60e51b81526004016108fb906131f7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611c17565b506001949350505050565b6000600161259384611024565b61259d919061352c565b6000838152600960205260409020549091508082146125f0576001600160a01b03841660009081526008602090815260408083208584528252808320548484528184208190558352600990915290208190555b5060009182526009602090815260408084208490556001600160a01b039094168352600881528383209183525290812055565b600a546000906126359060019061352c565b6000838152600b6020526040812054600a805493945090928490811061265d5761265d613624565b9060005260206000200154905080600a838154811061267e5761267e613624565b6000918252602080832090910192909255828152600b9091526040808220849055858252812055600a8054806126b6576126b661360e565b6001900381819060005260206000200160009055905550505050565b60006126dd83611024565b6001600160a01b039093166000908152600860209081526040808320868452825280832085905593825260099052919091209190915550565b6127208383612749565b61272d6000848484612479565b610a315760405162461bcd60e51b81526004016108fb906131f7565b6001600160a01b03821661279f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108fb565b6000818152600460205260409020546001600160a01b0316156128045760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108fb565b6128106000838361236c565b6001600160a01b038216600090815260056020526040812080546001929061283990849061338e565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546128a390613592565b90600052602060002090601f0160209004810192826128c5576000855561290b565b82601f106128de57805160ff191683800117855561290b565b8280016001018555821561290b579182015b8281111561290b5782518255916020019190600101906128f0565b506119489291505b808211156119485760008155600101612913565b600067ffffffffffffffff808411156129425761294261363a565b604051601f8501601f19908116603f0116810190828211818310171561296a5761296a61363a565b8160405280935085815286868601111561298357600080fd5b858560208301376000602087830101525050509392505050565b60008083601f8401126129af57600080fd5b50813567ffffffffffffffff8111156129c757600080fd5b6020830191508360208260051b85010111156129e257600080fd5b9250929050565b8035801515811461247457600080fd5b60008083601f840112612a0b57600080fd5b50813567ffffffffffffffff811115612a2357600080fd5b6020830191508360208285010111156129e257600080fd5b600060208284031215612a4d57600080fd5b8135610b9681613650565b60008060408385031215612a6b57600080fd5b8235612a7681613650565b946020939093013593505050565b60008060408385031215612a9757600080fd5b8235612aa281613650565b91506020830135612ab281613650565b809150509250929050565b600080600060608486031215612ad257600080fd5b8335612add81613650565b92506020840135612aed81613650565b929592945050506040919091013590565b600080600080600060808688031215612b1657600080fd5b8535612b2181613650565b94506020860135612b3181613650565b935060408601359250606086013567ffffffffffffffff811115612b5457600080fd5b612b60888289016129f9565b969995985093965092949392505050565b60008060008060808587031215612b8757600080fd5b8435612b9281613650565b93506020850135612ba281613650565b925060408501359150606085013567ffffffffffffffff811115612bc557600080fd5b8501601f81018713612bd657600080fd5b612be587823560208401612927565b91505092959194509250565b60008060408385031215612c0457600080fd5b8235612c0f81613650565b9150612c1d602084016129e9565b90509250929050565b60008060008060608587031215612c3c57600080fd5b8435612c4781613650565b9350602085013567ffffffffffffffff811115612c6357600080fd5b612c6f878288016129f9565b9094509250612c829050604086016129e9565b905092959194509250565b600060208284031215612c9f57600080fd5b8135610b9681613668565b600060208284031215612cbc57600080fd5b8151610b9681613668565b600080600080600060808688031215612cdf57600080fd5b8535612cea81613650565b94506020860135612cfa81613650565b935060408601359250606086013567ffffffffffffffff811115612d1d57600080fd5b612b608882890161299d565b60008060008060008060006080888a031215612d4457600080fd5b8735612d4f81613650565b9650602088013567ffffffffffffffff80821115612d6c57600080fd5b612d788b838c0161299d565b909850965060408a0135915080821115612d9157600080fd5b612d9d8b838c0161299d565b909650945060608a0135915080821115612db657600080fd5b50612dc38a828b0161299d565b989b979a50959850939692959293505050565b600060208284031215612de857600080fd5b8151610b9681613650565b600060208284031215612e0557600080fd5b813567ffffffffffffffff811115612e1c57600080fd5b8201601f81018413612e2d57600080fd5b611c1784823560208401612927565b600060208284031215612e4e57600080fd5b5035919050565b600060208284031215612e6757600080fd5b5051919050565b81835260006001600160fb1b03831115612e8757600080fd5b8260051b8083602087013760009401602001938452509192915050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60008151808452612ee5816020860160208601613566565b601f01601f19169290920160200192915050565b60008151612f0b818560208601613566565b9290920192915050565b600080845481600182811c915080831680612f3157607f831692505b6020808410821415612f5157634e487b7160e01b86526022600452602486fd5b818015612f655760018114612f7657612fa3565b60ff19861689528489019650612fa3565b60008b81526020902060005b86811015612f9b5781548b820152908501908301612f82565b505084890196505b505050505050612fb38185612ef9565b95945050505050565b7f4d696e7465642054696c65207769746820616464726573732000000000000000815260008251612ff4816019850160208701613566565b9190910160190192915050565b6001600160a01b03868116825285166020820152604081018490526080606082018190526000906130359083018486612ea4565b979650505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061307390830184612ecd565b9695505050505050565b60018060a01b0385168152836020820152606060408201526000613073606083018486612e6e565b6060808252810186905260008760808301825b898110156130e85782356130cb81613650565b6001600160a01b03168252602092830192909101906001016130b8565b5060209150838103828501526130ff81888a612e6e565b84810360408601528581529050818101600586811b830184018860005b8981101561318d57858303601f190185528135368c9003601e1901811261314257600080fd5b8b01803567ffffffffffffffff81111561315b57600080fd5b80861b36038d131561316c57600080fd5b61317985828b8501612e6e565b96890196945050509086019060010161311c565b50909d9c50505050505050505050505050565b6020808252825182820181905260009190848201906040850190845b818110156131d8578351835292840192918401916001016131bc565b50909695505050505050565b602081526000610b966020830184612ecd565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526023908201527f45746865722076616c75652073656e742069732062656c6f772074686520707260408201526269636560e81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b8581526001600160a01b038516602082015260806040820181905260009061333d9083018587612ea4565b905082151560608301529695505050505050565b8481526001600160a01b038416602082015260806040820181905260009061337b90830185612ecd565b9050821515606083015295945050505050565b600082198211156133a1576133a16135e2565b500190565b600060ff821660ff84168060ff038211156133c3576133c36135e2565b019392505050565b6000826133da576133da6135f8565b500490565b600060ff8316806133f2576133f26135f8565b8060ff84160491505092915050565b600181815b8085111561343c578160001904821115613422576134226135e2565b8085161561342f57918102915b93841c9390800290613406565b509250929050565b6000610b96838360008261345a575060016107ee565b81613467575060006107ee565b816001811461347d5760028114613487576134a3565b60019150506107ee565b60ff841115613498576134986135e2565b50506001821b6107ee565b5060208310610133831016604e8410600b84101617156134c6575081810a6107ee565b6134d08383613401565b80600019048211156134e4576134e46135e2565b029392505050565b6000816000190483118215151615613506576135066135e2565b500290565b600060ff821660ff84168160ff04811182151516156134e4576134e46135e2565b60008282101561353e5761353e6135e2565b500390565b600060ff821660ff84168082101561355d5761355d6135e2565b90039392505050565b60005b83811015613581578181015183820152602001613569565b838111156116685750506000910152565b600181811c908216806135a657607f821691505b602082108114156111d857634e487b7160e01b600052602260045260246000fd5b60006000198214156135db576135db6135e2565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461366557600080fd5b50565b6001600160e01b03198116811461366557600080fdfea26469706673582212203e6a40ceb53d59a00501c7f5efb0f3408b9655137028c100f2c0a77d92b4e07d64736f6c63430008060033000000000000000000000000000000000000000000000000000000000000000200000000000000000000000046c9999a2edcd5aa177ed7e8af90c68b7d75ba460000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000001f68747470733a2f2f6170692e74696c65732e6172742f6d657461646174612f00

Deployed Bytecode

0x6080604052600436106102555760003560e01c80638462151c11610139578063c0a485e2116100b6578063d348b4091161007a578063d348b409146106db578063e985e9c5146106f0578063eb8d244414610739578063f2ec575514610753578063f2fde38b14610789578063f3fef3a3146107a957600080fd5b8063c0a485e21461064f578063c87b56dd1461066f578063c9f84efd1461068f578063cb2f9433146106a5578063ce9246dd146106bb57600080fd5b8063a22cb465116100fd578063a22cb465146105ba578063b0715535146105da578063b66a0e5d146105ed578063b88d4fde14610602578063bc8c30c51461062257600080fd5b80638462151c14610527578063897c063e146105545780638da5cb5b1461056757806395d89b4114610585578063999a244f1461059a57600080fd5b806342842e0e116101d257806355f804b31161019657806355f804b3146104695780636352211e146104895780636abcf8e3146104a95780636c0360eb146104dd57806370a08231146104f2578063715018a61461051257600080fd5b806342842e0e146103ec5780634367297b1461040c5780634f6ccce714610414578063544c0e151461043457806355367ba91461045457600080fd5b806318160ddd1161021957806318160ddd1461035757806323b872dd146103765780632f745c59146103965780633341a331146103b65780633fafa127146103d657600080fd5b806301ffc9a71461026157806306fdde0314610296578063081812fc146102b8578063095ea7b3146102f0578063150b7a021461031257600080fd5b3661025c57005b600080fd5b34801561026d57600080fd5b5061028161027c366004612c8d565b6107c9565b60405190151581526020015b60405180910390f35b3480156102a257600080fd5b506102ab6107f4565b60405161028d91906131e4565b3480156102c457600080fd5b506102d86102d3366004612e3c565b610886565b6040516001600160a01b03909116815260200161028d565b3480156102fc57600080fd5b5061031061030b366004612a58565b610920565b005b34801561031e57600080fd5b5061033e61032d366004612afe565b630a85bd0160e11b95945050505050565b6040516001600160e01b0319909116815260200161028d565b34801561036357600080fd5b50600a545b60405190815260200161028d565b34801561038257600080fd5b50610310610391366004612abd565b610a36565b3480156103a257600080fd5b506103686103b1366004612a58565b610a67565b3480156103c257600080fd5b506103686103d1366004612a84565b610afd565b3480156103e257600080fd5b5061036860015481565b3480156103f857600080fd5b50610310610407366004612abd565b610b9d565b610310610bb8565b34801561042057600080fd5b5061036861042f366004612e3c565b610cf2565b34801561044057600080fd5b5061031061044f366004612cc7565b610d85565b34801561046057600080fd5b50610310610e1a565b34801561047557600080fd5b50610310610484366004612df3565b610ea7565b34801561049557600080fd5b506102d86104a4366004612e3c565b610f1f565b3480156104b557600080fd5b506102d87f00000000000000000000000046c9999a2edcd5aa177ed7e8af90c68b7d75ba4681565b3480156104e957600080fd5b506102ab610f96565b3480156104fe57600080fd5b5061036861050d366004612a3b565b611024565b34801561051e57600080fd5b506103106110ab565b34801561053357600080fd5b50610547610542366004612a3b565b61111f565b60405161028d91906131a0565b610310610562366004612c26565b6111de565b34801561057357600080fd5b506000546001600160a01b03166102d8565b34801561059157600080fd5b506102ab6113db565b3480156105a657600080fd5b506103106105b5366004612d29565b6113ea565b3480156105c657600080fd5b506103106105d5366004612bf1565b611485565b6103686105e8366004612a3b565b61154a565b3480156105f957600080fd5b506103106115b1565b34801561060e57600080fd5b5061031061061d366004612b71565b611636565b34801561062e57600080fd5b5061036861063d366004612a3b565b600f6020526000908152604090205481565b34801561065b57600080fd5b5061031061066a366004612afe565b61166e565b34801561067b57600080fd5b506102ab61068a366004612e3c565b6116cc565b34801561069b57600080fd5b50610368600e5481565b3480156106b157600080fd5b50610368600d5481565b3480156106c757600080fd5b506103106106d6366004612e3c565b6117c0565b3480156106e757600080fd5b506103686117ef565b3480156106fc57600080fd5b5061028161070b366004612a84565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561074557600080fd5b50600c546102819060ff1681565b34801561075f57600080fd5b506102d861076e366004612e3c565b6010602052600090815260409020546001600160a01b031681565b34801561079557600080fd5b506103106107a4366004612a3b565b61194c565b3480156107b557600080fd5b506103106107c4366004612a58565b611a36565b60006001600160e01b0319821663780e9d6360e01b14806107ee57506107ee82611a6a565b92915050565b60606002805461080390613592565b80601f016020809104026020016040519081016040528092919081815260200182805461082f90613592565b801561087c5780601f106108515761010080835404028352916020019161087c565b820191906000526020600020905b81548152906001019060200180831161085f57829003601f168201915b5050505050905090565b6000818152600460205260408120546001600160a01b03166109045760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061092b82610f1f565b9050806001600160a01b0316836001600160a01b031614156109995760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016108fb565b336001600160a01b03821614806109b557506109b5813361070b565b610a275760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016108fb565b610a318383611aba565b505050565b610a403382611b28565b610a5c5760405162461bcd60e51b81526004016108fb906132c1565b610a31838383611c1f565b6000610a7283611024565b8210610ad45760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016108fb565b506001600160a01b03919091166000908152600860209081526040808320938352929052205490565b600080546001600160a01b03163314610b285760405162461bcd60e51b81526004016108fb9061328c565b600d54600e5410610b7b5760405162461bcd60e51b815260206004820152601760248201527f5265736572766573206c696d697420657863656564656400000000000000000060448201526064016108fb565b600e54610b8990600161338e565b600e55610b968383611dca565b9392505050565b610a3183838360405180602001604052806000815250611636565b336000908152600f602052604090205480610c295760405162461bcd60e51b815260206004820152602b60248201527f54696c6520666f722073656e646572206164647265737320686173206e6f742060448201526a1899595b881b5a5b9d195960aa1b60648201526084016108fb565b6000610c3482610f1f565b90506001600160a01b038116331415610c8f5760405162461bcd60e51b815260206004820152601d60248201527f53656e64657220616c7265616479206f776e7320746869732054696c6500000060448201526064016108fb565b610c976117ef565b341015610cb65760405162461bcd60e51b81526004016108fb90613249565b6040516001600160a01b038216903480156108fc02916000818181858888f19350505050610ce357600080fd5b610cee813384611c1f565b5050565b6000610cfd600a5490565b8210610d605760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016108fb565b600a8281548110610d7357610d73613624565b90600052602060002001549050919050565b6000546001600160a01b03163314610daf5760405162461bcd60e51b81526004016108fb9061328c565b604051632f53664360e11b81526001600160a01b03861690635ea6cc8690610de190879087908790879060040161307d565b600060405180830381600087803b158015610dfb57600080fd5b505af1158015610e0f573d6000803e3d6000fd5b505050505050505050565b6000546001600160a01b03163314610e445760405162461bcd60e51b81526004016108fb9061328c565b600c5460ff161515600114610e9b5760405162461bcd60e51b815260206004820152601860248201527f53616c6520697320616c726561647920696e616374697665000000000000000060448201526064016108fb565b600c805460ff19169055565b6000546001600160a01b03163314610ed15760405162461bcd60e51b81526004016108fb9061328c565b8051610ee4906011906020840190612897565b507f23c8c9488efebfd474e85a7956de6f39b17c7ab88502d42a623db2d8e382bbaa81604051610f1491906131e4565b60405180910390a150565b6000818152600460205260408120546001600160a01b0316806107ee5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016108fb565b60118054610fa390613592565b80601f0160208091040260200160405190810160405280929190818152602001828054610fcf90613592565b801561101c5780601f10610ff15761010080835404028352916020019161101c565b820191906000526020600020905b815481529060010190602001808311610fff57829003601f168201915b505050505081565b60006001600160a01b03821661108f5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016108fb565b506001600160a01b031660009081526005602052604090205490565b6000546001600160a01b031633146110d55760405162461bcd60e51b81526004016108fb9061328c565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6060600061112c83611024565b90508061114d5760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff8111156111685761116861363a565b604051908082528060200260200182016040528015611191578160200160208202803683370190505b50905060005b82811015611145576111a98582610a67565b8282815181106111bb576111bb613624565b6020908102919091010152806111d0816135c7565b915050611197565b50919050565b60015461123d5760405162461bcd60e51b815260206004820152602760248201527f4a75696365626f7850726f6a6563743a3a7061793a2050524f4a4543545f4e4f6044820152661517d193d5539160ca1b60648201526084016108fb565b600154604051634fe0eced60e01b81526000916001600160a01b037f00000000000000000000000046c9999a2edcd5aa177ed7e8af90c68b7d75ba461691634fe0eced916112919160040190815260200190565b60206040518083038186803b1580156112a957600080fd5b505afa1580156112bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112e19190612dd6565b90506001600160a01b03811661134a5760405162461bcd60e51b815260206004820152602860248201527f4a75696365626f7850726f6a6563743a3a7061793a205445524d494e414c5f4e60448201526713d517d193d5539160c21b60648201526084016108fb565b6001546040516302c8986f60e01b81526001600160a01b038316916302c8986f913491611381918a908a908a908a90600401613312565b6020604051808303818588803b15801561139a57600080fd5b505af11580156113ae573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906113d39190612e55565b505050505050565b60606003805461080390613592565b6000546001600160a01b031633146114145760405162461bcd60e51b81526004016108fb9061328c565b6040516393535be160e01b81526001600160a01b038816906393535be19061144a908990899089908990899089906004016130a5565b600060405180830381600087803b15801561146457600080fd5b505af1158015611478573d6000803e3d6000fd5b5050505050505050505050565b6001600160a01b0382163314156114de5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108fb565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006115546117ef565b3410156115735760405162461bcd60e51b81526004016108fb90613249565b6115a7343361158185611ecb565b6040516020016115919190612fbc565b6040516020818303038152906040526000612012565b6107ee3383611dca565b6000546001600160a01b031633146115db5760405162461bcd60e51b81526004016108fb9061328c565b600c5460ff16156116275760405162461bcd60e51b815260206004820152601660248201527553616c6520697320616c72656164792061637469766560501b60448201526064016108fb565b600c805460ff19166001179055565b6116403383611b28565b61165c5760405162461bcd60e51b81526004016108fb906132c1565b61166884848484612220565b50505050565b6000546001600160a01b031633146116985760405162461bcd60e51b81526004016108fb9061328c565b604051635c46a7ef60e11b81526001600160a01b0386169063b88d4fde90610de19030908890889088908890600401613001565b6000818152600460205260409020546060906001600160a01b031661174b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016108fb565b60006011805461175a90613592565b90501161177657604051806020016040528060008152506107ee565b60008281526010602052604090205460119061179a906001600160a01b0316611ecb565b6040516020016117ab929190612f15565b60405160208183030381529060405292915050565b6000546001600160a01b031633146117ea5760405162461bcd60e51b81526004016108fb9061328c565b600155565b600c5460009060ff16151560011461183f5760405162461bcd60e51b815260206004820152601360248201527214d85b19481a185cdb89dd081cdd185c9d1959606a1b60448201526064016108fb565b600061184a600a5490565b905062019000811061186557678e1bc9bf0400000091505090565b61c800811061187d5767470de4df8200000091505090565b616400811061189557672386f26fc100000091505090565b61320081106118ad576711c37937e080000091505090565b61190081106118c5576708e1bc9bf040000091505090565b610c8081106118dd57670470de4df820000091505090565b61064081106118f5576702386f26fc10000091505090565b610320811061190d5767011c37937e08000091505090565b610190811061192457668e1bc9bf04000091505090565b60c8811061193a5766470de4df82000091505090565b662386f26fc1000091505090565b5090565b6000546001600160a01b031633146119765760405162461bcd60e51b81526004016108fb9061328c565b6001600160a01b0381166119db5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108fb565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314611a605760405162461bcd60e51b81526004016108fb9061328c565b610cee8282612253565b60006001600160e01b031982166380ac58cd60e01b1480611a9b57506001600160e01b03198216635b5e139f60e01b145b806107ee57506301ffc9a760e01b6001600160e01b03198316146107ee565b600081815260066020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611aef82610f1f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600460205260408120546001600160a01b0316611ba15760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108fb565b6000611bac83610f1f565b9050806001600160a01b0316846001600160a01b03161480611be75750836001600160a01b0316611bdc84610886565b6001600160a01b0316145b80611c1757506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611c3282610f1f565b6001600160a01b031614611c9a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016108fb565b6001600160a01b038216611cfc5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108fb565b611d0783838361236c565b611d12600082611aba565b6001600160a01b0383166000908152600560205260408120805460019290611d3b90849061352c565b90915550506001600160a01b0382166000908152600560205260408120805460019290611d6990849061338e565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b0381166000908152600f602052604081205415611e305760405162461bcd60e51b815260206004820152601f60248201527f54696c6520616c7265616479206d696e74656420666f7220616464726573730060448201526064016108fb565b6000611e3b600a5490565b611e4690600161338e565b9050611e528482612424565b6001600160a01b038381166000818152600f60209081526040808320869055858352601082529182902080546001600160a01b03191684179055815193881684528301919091527fc5004d0de103a4ce335ec7dfbb178f69e81ecd773d402c331dafc66c465a020a910160405180910390a19392505050565b60408051602880825260608281019093526000919060208201818036833701905050905060005b601481101561200b576000611f0882601361352c565b611f139060086134ec565b611f1e906002613444565b611f31906001600160a01b0387166133cb565b60f81b9050600060108260f81c611f4891906133df565b60f81b905060008160f81c6010611f5f919061350b565b8360f81c611f6d9190613543565b60f81b9050611f7b8261243e565b85611f878660026134ec565b81518110611f9757611f97613624565b60200101906001600160f81b031916908160001a905350611fb78161243e565b85611fc38660026134ec565b611fce90600161338e565b81518110611fde57611fde613624565b60200101906001600160f81b031916908160001a9053505050508080612003906135c7565b915050611ef2565b5092915050565b6001546120755760405162461bcd60e51b815260206004820152602b60248201527f4a75696365626f7850726f6a6563743a3a74616b654665653a2050524f4a454360448201526a1517d393d517d193d5539160aa1b60648201526084016108fb565b600154604051634fe0eced60e01b81526000916001600160a01b037f00000000000000000000000046c9999a2edcd5aa177ed7e8af90c68b7d75ba461691634fe0eced916120c99160040190815260200190565b60206040518083038186803b1580156120e157600080fd5b505afa1580156120f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121199190612dd6565b90506001600160a01b0381166121865760405162461bcd60e51b815260206004820152602c60248201527f4a75696365626f7850726f6a6563743a3a74616b654665653a205445524d494e60448201526b105317d393d517d193d5539160a21b60648201526084016108fb565b844710156121eb5760405162461bcd60e51b815260206004820152602c60248201527f4a75696365626f7850726f6a6563743a3a74616b654665653a20494e5355464660448201526b494349454e545f46554e445360a01b60648201526084016108fb565b6001546040516302c8986f60e01b81526001600160a01b038316916302c8986f91889161138191899089908990600401613351565b61222b848484611c1f565b61223784848484612479565b6116685760405162461bcd60e51b81526004016108fb906131f7565b804710156122a35760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016108fb565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146122f0576040519150601f19603f3d011682016040523d82523d6000602084013e6122f5565b606091505b5050905080610a315760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016108fb565b6001600160a01b0383166123c7576123c281600a80546000838152600b60205260408120829055600182018355919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155565b6123ea565b816001600160a01b0316836001600160a01b0316146123ea576123ea8382612586565b6001600160a01b03821661240157610a3181612623565b826001600160a01b0316826001600160a01b031614610a3157610a3182826126d2565b610cee828260405180602001604052806000815250612716565b6000600a60f883901c10156124655761245c60f883901c60306133a6565b60f81b92915050565b61245c60f883901c60576133a6565b919050565b60006001600160a01b0384163b1561257b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906124bd903390899088908890600401613040565b602060405180830381600087803b1580156124d757600080fd5b505af1925050508015612507575060408051601f3d908101601f1916820190925261250491810190612caa565b60015b612561573d808015612535576040519150601f19603f3d011682016040523d82523d6000602084013e61253a565b606091505b5080516125595760405162461bcd60e51b81526004016108fb906131f7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611c17565b506001949350505050565b6000600161259384611024565b61259d919061352c565b6000838152600960205260409020549091508082146125f0576001600160a01b03841660009081526008602090815260408083208584528252808320548484528184208190558352600990915290208190555b5060009182526009602090815260408084208490556001600160a01b039094168352600881528383209183525290812055565b600a546000906126359060019061352c565b6000838152600b6020526040812054600a805493945090928490811061265d5761265d613624565b9060005260206000200154905080600a838154811061267e5761267e613624565b6000918252602080832090910192909255828152600b9091526040808220849055858252812055600a8054806126b6576126b661360e565b6001900381819060005260206000200160009055905550505050565b60006126dd83611024565b6001600160a01b039093166000908152600860209081526040808320868452825280832085905593825260099052919091209190915550565b6127208383612749565b61272d6000848484612479565b610a315760405162461bcd60e51b81526004016108fb906131f7565b6001600160a01b03821661279f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108fb565b6000818152600460205260409020546001600160a01b0316156128045760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108fb565b6128106000838361236c565b6001600160a01b038216600090815260056020526040812080546001929061283990849061338e565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546128a390613592565b90600052602060002090601f0160209004810192826128c5576000855561290b565b82601f106128de57805160ff191683800117855561290b565b8280016001018555821561290b579182015b8281111561290b5782518255916020019190600101906128f0565b506119489291505b808211156119485760008155600101612913565b600067ffffffffffffffff808411156129425761294261363a565b604051601f8501601f19908116603f0116810190828211818310171561296a5761296a61363a565b8160405280935085815286868601111561298357600080fd5b858560208301376000602087830101525050509392505050565b60008083601f8401126129af57600080fd5b50813567ffffffffffffffff8111156129c757600080fd5b6020830191508360208260051b85010111156129e257600080fd5b9250929050565b8035801515811461247457600080fd5b60008083601f840112612a0b57600080fd5b50813567ffffffffffffffff811115612a2357600080fd5b6020830191508360208285010111156129e257600080fd5b600060208284031215612a4d57600080fd5b8135610b9681613650565b60008060408385031215612a6b57600080fd5b8235612a7681613650565b946020939093013593505050565b60008060408385031215612a9757600080fd5b8235612aa281613650565b91506020830135612ab281613650565b809150509250929050565b600080600060608486031215612ad257600080fd5b8335612add81613650565b92506020840135612aed81613650565b929592945050506040919091013590565b600080600080600060808688031215612b1657600080fd5b8535612b2181613650565b94506020860135612b3181613650565b935060408601359250606086013567ffffffffffffffff811115612b5457600080fd5b612b60888289016129f9565b969995985093965092949392505050565b60008060008060808587031215612b8757600080fd5b8435612b9281613650565b93506020850135612ba281613650565b925060408501359150606085013567ffffffffffffffff811115612bc557600080fd5b8501601f81018713612bd657600080fd5b612be587823560208401612927565b91505092959194509250565b60008060408385031215612c0457600080fd5b8235612c0f81613650565b9150612c1d602084016129e9565b90509250929050565b60008060008060608587031215612c3c57600080fd5b8435612c4781613650565b9350602085013567ffffffffffffffff811115612c6357600080fd5b612c6f878288016129f9565b9094509250612c829050604086016129e9565b905092959194509250565b600060208284031215612c9f57600080fd5b8135610b9681613668565b600060208284031215612cbc57600080fd5b8151610b9681613668565b600080600080600060808688031215612cdf57600080fd5b8535612cea81613650565b94506020860135612cfa81613650565b935060408601359250606086013567ffffffffffffffff811115612d1d57600080fd5b612b608882890161299d565b60008060008060008060006080888a031215612d4457600080fd5b8735612d4f81613650565b9650602088013567ffffffffffffffff80821115612d6c57600080fd5b612d788b838c0161299d565b909850965060408a0135915080821115612d9157600080fd5b612d9d8b838c0161299d565b909650945060608a0135915080821115612db657600080fd5b50612dc38a828b0161299d565b989b979a50959850939692959293505050565b600060208284031215612de857600080fd5b8151610b9681613650565b600060208284031215612e0557600080fd5b813567ffffffffffffffff811115612e1c57600080fd5b8201601f81018413612e2d57600080fd5b611c1784823560208401612927565b600060208284031215612e4e57600080fd5b5035919050565b600060208284031215612e6757600080fd5b5051919050565b81835260006001600160fb1b03831115612e8757600080fd5b8260051b8083602087013760009401602001938452509192915050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60008151808452612ee5816020860160208601613566565b601f01601f19169290920160200192915050565b60008151612f0b818560208601613566565b9290920192915050565b600080845481600182811c915080831680612f3157607f831692505b6020808410821415612f5157634e487b7160e01b86526022600452602486fd5b818015612f655760018114612f7657612fa3565b60ff19861689528489019650612fa3565b60008b81526020902060005b86811015612f9b5781548b820152908501908301612f82565b505084890196505b505050505050612fb38185612ef9565b95945050505050565b7f4d696e7465642054696c65207769746820616464726573732000000000000000815260008251612ff4816019850160208701613566565b9190910160190192915050565b6001600160a01b03868116825285166020820152604081018490526080606082018190526000906130359083018486612ea4565b979650505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061307390830184612ecd565b9695505050505050565b60018060a01b0385168152836020820152606060408201526000613073606083018486612e6e565b6060808252810186905260008760808301825b898110156130e85782356130cb81613650565b6001600160a01b03168252602092830192909101906001016130b8565b5060209150838103828501526130ff81888a612e6e565b84810360408601528581529050818101600586811b830184018860005b8981101561318d57858303601f190185528135368c9003601e1901811261314257600080fd5b8b01803567ffffffffffffffff81111561315b57600080fd5b80861b36038d131561316c57600080fd5b61317985828b8501612e6e565b96890196945050509086019060010161311c565b50909d9c50505050505050505050505050565b6020808252825182820181905260009190848201906040850190845b818110156131d8578351835292840192918401916001016131bc565b50909695505050505050565b602081526000610b966020830184612ecd565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526023908201527f45746865722076616c75652073656e742069732062656c6f772074686520707260408201526269636560e81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b8581526001600160a01b038516602082015260806040820181905260009061333d9083018587612ea4565b905082151560608301529695505050505050565b8481526001600160a01b038416602082015260806040820181905260009061337b90830185612ecd565b9050821515606083015295945050505050565b600082198211156133a1576133a16135e2565b500190565b600060ff821660ff84168060ff038211156133c3576133c36135e2565b019392505050565b6000826133da576133da6135f8565b500490565b600060ff8316806133f2576133f26135f8565b8060ff84160491505092915050565b600181815b8085111561343c578160001904821115613422576134226135e2565b8085161561342f57918102915b93841c9390800290613406565b509250929050565b6000610b96838360008261345a575060016107ee565b81613467575060006107ee565b816001811461347d5760028114613487576134a3565b60019150506107ee565b60ff841115613498576134986135e2565b50506001821b6107ee565b5060208310610133831016604e8410600b84101617156134c6575081810a6107ee565b6134d08383613401565b80600019048211156134e4576134e46135e2565b029392505050565b6000816000190483118215151615613506576135066135e2565b500290565b600060ff821660ff84168160ff04811182151516156134e4576134e46135e2565b60008282101561353e5761353e6135e2565b500390565b600060ff821660ff84168082101561355d5761355d6135e2565b90039392505050565b60005b83811015613581578181015183820152602001613569565b838111156116685750506000910152565b600181811c908216806135a657607f821691505b602082108114156111d857634e487b7160e01b600052602260045260246000fd5b60006000198214156135db576135db6135e2565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461366557600080fd5b50565b6001600160e01b03198116811461366557600080fdfea26469706673582212203e6a40ceb53d59a00501c7f5efb0f3408b9655137028c100f2c0a77d92b4e07d64736f6c63430008060033

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

000000000000000000000000000000000000000000000000000000000000000200000000000000000000000046c9999a2edcd5aa177ed7e8af90c68b7d75ba460000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000001f68747470733a2f2f6170692e74696c65732e6172742f6d657461646174612f00

-----Decoded View---------------
Arg [0] : _projectID (uint256): 2
Arg [1] : _terminalDirectory (address): 0x46C9999A2EDCD5aA177ed7E8af90c68b7d75Ba46
Arg [2] : _baseURI (string): https://api.tiles.art/metadata/

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [1] : 00000000000000000000000046c9999a2edcd5aa177ed7e8af90c68b7d75ba46
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [3] : 000000000000000000000000000000000000000000000000000000000000001f
Arg [4] : 68747470733a2f2f6170692e74696c65732e6172742f6d657461646174612f00


Deployed Bytecode Sourcemap

39425:7318:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33298:237;;;;;;;;;;-1:-1:-1;33298:237:0;;;;;:::i;:::-;;:::i;:::-;;;18094:14:1;;18087:22;18069:41;;18057:2;18042:18;33298:237:0;;;;;;;;21612:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;23072:221::-;;;;;;;;;;-1:-1:-1;23072:221:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;13346:32:1;;;13328:51;;13316:2;13301:18;23072:221:0;13283:102:1;22609:397:0;;;;;;;;;;-1:-1:-1;22609:397:0;;;;;:::i;:::-;;:::i;:::-;;7513:206;;;;;;;;;;-1:-1:-1;7513:206:0;;;;;:::i;:::-;-1:-1:-1;;;7513:206:0;;;;;;;;;;;-1:-1:-1;;;;;;18283:33:1;;;18265:52;;18253:2;18238:18;7513:206:0;18220:103:1;33951:113:0;;;;;;;;;;-1:-1:-1;34039:10:0;:17;33951:113;;;31918:25:1;;;31906:2;31891:18;33951:113:0;31873:76:1;23962:305:0;;;;;;;;;;-1:-1:-1;23962:305:0;;;;;:::i;:::-;;:::i;33619:256::-;;;;;;;;;;-1:-1:-1;33619:256:0;;;;;:::i;:::-;;:::i;45722:366::-;;;;;;;;;;-1:-1:-1;45722:366:0;;;;;:::i;:::-;;:::i;4606:24::-;;;;;;;;;;;;;;;;24338:151;;;;;;;;;;-1:-1:-1;24338:151:0;;;;;:::i;:::-;;:::i;43946:523::-;;;:::i;34141:233::-;;;;;;;;;;-1:-1:-1;34141:233:0;;;;;:::i;:::-;;:::i;7727:280::-;;;;;;;;;;-1:-1:-1;7727:280:0;;;;;:::i;:::-;;:::i;45267:147::-;;;;;;;;;;;;;:::i;45422:136::-;;;;;;;;;;-1:-1:-1;45422:136:0;;;;;:::i;:::-;;:::i;21306:239::-;;;;;;;;;;-1:-1:-1;21306:239:0;;;;;:::i;:::-;;:::i;4439:53::-;;;;;;;;;;;;;;;40075:21;;;;;;;;;;;;;:::i;21036:208::-;;;;;;;;;;-1:-1:-1;21036:208:0;;;;;:::i;:::-;;:::i;3426:148::-;;;;;;;;;;;;;:::i;41061:572::-;;;;;;;;;;-1:-1:-1;41061:572:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;6030:693::-;;;;;;:::i;:::-;;:::i;2775:87::-;;;;;;;;;;-1:-1:-1;2821:7:0;2848:6;-1:-1:-1;;;;;2848:6:0;2775:87;;21781:104;;;;;;;;;;;;;:::i;8015:360::-;;;;;;;;;;-1:-1:-1;8015:360:0;;;;;:::i;:::-;;:::i;23365:295::-;;;;;;;;;;-1:-1:-1;23365:295:0;;;;;:::i;:::-;;:::i;43176:606::-;;;;;;:::i;:::-;;:::i;45114:145::-;;;;;;;;;;;;;:::i;24560:285::-;;;;;;;;;;-1:-1:-1;24560:285:0;;;;;:::i;:::-;;:::i;39869:46::-;;;;;;;;;;-1:-1:-1;39869:46:0;;;;;:::i;:::-;;;;;;;;;;;;;;7161:268;;;;;;;;;;-1:-1:-1;7161:268:0;;;;;:::i;:::-;;:::i;40421:583::-;;;;;;;;;;-1:-1:-1;40421:583:0;;;;;:::i;:::-;;:::i;39777:38::-;;;;;;;;;;;;;;;;39731:39;;;;;;;;;;;;;;;;5592:102;;;;;;;;;;-1:-1:-1;5592:102:0;;;;;:::i;:::-;;:::i;41713:1394::-;;;;;;;;;;;;;:::i;23731:164::-;;;;;;;;;;-1:-1:-1;23731:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;23852:25:0;;;23828:4;23852:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;23731:164;39610:32;;;;;;;;;;-1:-1:-1;39610:32:0;;;;;;;;39964:48;;;;;;;;;;-1:-1:-1;39964:48:0;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;39964:48:0;;;3729:244;;;;;;;;;;-1:-1:-1;3729:244:0;;;;;:::i;:::-;;:::i;5263:166::-;;;;;;;;;;-1:-1:-1;5263:166:0;;;;;:::i;:::-;;:::i;33298:237::-;33400:4;-1:-1:-1;;;;;;33424:50:0;;-1:-1:-1;;;33424:50:0;;:103;;;33491:36;33515:11;33491:23;:36::i;:::-;33417:110;33298:237;-1:-1:-1;;33298:237:0:o;21612:100::-;21666:13;21699:5;21692:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21612:100;:::o;23072:221::-;23148:7;26401:16;;;:7;:16;;;;;;-1:-1:-1;;;;;26401:16:0;23168:73;;;;-1:-1:-1;;;23168:73:0;;27620:2:1;23168:73:0;;;27602:21:1;27659:2;27639:18;;;27632:30;27698:34;27678:18;;;27671:62;-1:-1:-1;;;27749:18:1;;;27742:42;27801:19;;23168:73:0;;;;;;;;;-1:-1:-1;23261:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;23261:24:0;;23072:221::o;22609:397::-;22690:13;22706:23;22721:7;22706:14;:23::i;:::-;22690:39;;22754:5;-1:-1:-1;;;;;22748:11:0;:2;-1:-1:-1;;;;;22748:11:0;;;22740:57;;;;-1:-1:-1;;;22740:57:0;;29984:2:1;22740:57:0;;;29966:21:1;30023:2;30003:18;;;29996:30;30062:34;30042:18;;;30035:62;-1:-1:-1;;;30113:18:1;;;30106:31;30154:19;;22740:57:0;29956:223:1;22740:57:0;1499:10;-1:-1:-1;;;;;22818:21:0;;;;:62;;-1:-1:-1;22843:37:0;22860:5;1499:10;23731:164;:::i;22843:37::-;22810:154;;;;-1:-1:-1;;;22810:154:0;;25196:2:1;22810:154:0;;;25178:21:1;25235:2;25215:18;;;25208:30;25274:34;25254:18;;;25247:62;25345:26;25325:18;;;25318:54;25389:19;;22810:154:0;25168:246:1;22810:154:0;22977:21;22986:2;22990:7;22977:8;:21::i;:::-;22679:327;22609:397;;:::o;23962:305::-;24123:41;1499:10;24156:7;24123:18;:41::i;:::-;24115:103;;;;-1:-1:-1;;;24115:103:0;;;;;;;:::i;:::-;24231:28;24241:4;24247:2;24251:7;24231:9;:28::i;33619:256::-;33716:7;33752:23;33769:5;33752:16;:23::i;:::-;33744:5;:31;33736:87;;;;-1:-1:-1;;;33736:87:0;;20058:2:1;33736:87:0;;;20040:21:1;20097:2;20077:18;;;20070:30;20136:34;20116:18;;;20109:62;-1:-1:-1;;;20187:18:1;;;20180:41;20238:19;;33736:87:0;20030:233:1;33736:87:0;-1:-1:-1;;;;;;33841:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;33619:256::o;45722:366::-;45836:7;2848:6;;-1:-1:-1;;;;;2848:6:0;1499:10;2995:23;2987:68;;;;-1:-1:-1;;;2987:68:0;;;;;;;:::i;:::-;45905:19:::1;;45883;;:41;45861:114;;;::::0;-1:-1:-1;;;45861:114:0;;28033:2:1;45861:114:0::1;::::0;::::1;28015:21:1::0;28072:2;28052:18;;;28045:30;28111:25;28091:18;;;28084:53;28154:18;;45861:114:0::1;28005:173:1::0;45861:114:0::1;46010:19;::::0;:23:::1;::::0;46032:1:::1;46010:23;:::i;:::-;45988:19;:45:::0;46053:27:::1;46063:2:::0;46067:12;46053:9:::1;:27::i;:::-;46046:34:::0;45722:366;-1:-1:-1;;;45722:366:0:o;24338:151::-;24442:39;24459:4;24465:2;24469:7;24442:39;;;;;;;;;;;;:16;:39::i;43946:523::-;44027:10;43997:15;44015:23;;;:11;:23;;;;;;44057:12;44049:68;;;;-1:-1:-1;;;44049:68:0;;22006:2:1;44049:68:0;;;21988:21:1;22045:2;22025:18;;;22018:30;22084:34;22064:18;;;22057:62;-1:-1:-1;;;22135:18:1;;;22128:41;22186:19;;44049:68:0;21978:233:1;44049:68:0;44130:13;44146:16;44154:7;44146;:16::i;:::-;44130:32;-1:-1:-1;;;;;;44181:19:0;;44190:10;44181:19;;44173:61;;;;-1:-1:-1;;;44173:61:0;;19340:2:1;44173:61:0;;;19322:21:1;19379:2;19359:18;;;19352:30;19418:31;19398:18;;;19391:59;19467:18;;44173:61:0;19312:179:1;44173:61:0;44280:16;:14;:16::i;:::-;44267:9;:29;;44245:114;;;;-1:-1:-1;;;44245:114:0;;;;;;;:::i;:::-;44380:30;;-1:-1:-1;;;;;44380:19:0;;;44400:9;44380:30;;;;;;;;;44400:9;44380:19;:30;;;;;;;44372:39;;;;;;44424:37;44434:5;44441:10;44453:7;44424:9;:37::i;:::-;43986:483;;43946:523::o;34141:233::-;34216:7;34252:30;34039:10;:17;;33951:113;34252:30;34244:5;:38;34236:95;;;;-1:-1:-1;;;34236:95:0;;30804:2:1;34236:95:0;;;30786:21:1;30843:2;30823:18;;;30816:30;30882:34;30862:18;;;30855:62;-1:-1:-1;;;30933:18:1;;;30926:42;30985:19;;34236:95:0;30776:234:1;34236:95:0;34349:10;34360:5;34349:17;;;;;;;;:::i;:::-;;;;;;;;;34342:24;;34141:233;;;:::o;7727:280::-;2821:7;2848:6;-1:-1:-1;;;;;2848:6:0;1499:10;2995:23;2987:68;;;;-1:-1:-1;;;2987:68:0;;;;;;;:::i;:::-;7930:69:::1;::::0;-1:-1:-1;;;7930:69:0;;-1:-1:-1;;;;;7930:26:0;::::1;::::0;::::1;::::0;:69:::1;::::0;7957:9;;7968:10;;7980:18;;;;7930:69:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;7727:280:::0;;;;;:::o;45267:147::-;2821:7;2848:6;-1:-1:-1;;;;;2848:6:0;1499:10;2995:23;2987:68;;;;-1:-1:-1;;;2987:68:0;;;;;;;:::i;:::-;45326:12:::1;::::0;::::1;;:20;;:12:::0;:20:::1;45318:57;;;::::0;-1:-1:-1;;;45318:57:0;;21653:2:1;45318:57:0::1;::::0;::::1;21635:21:1::0;21692:2;21672:18;;;21665:30;21731:26;21711:18;;;21704:54;21775:18;;45318:57:0::1;21625:174:1::0;45318:57:0::1;45386:12;:20:::0;;-1:-1:-1;;45386:20:0::1;::::0;;45267:147::o;45422:136::-;2821:7;2848:6;-1:-1:-1;;;;;2848:6:0;1499:10;2995:23;2987:68;;;;-1:-1:-1;;;2987:68:0;;;;;;;:::i;:::-;45496:18;;::::1;::::0;:7:::1;::::0;:18:::1;::::0;::::1;::::0;::::1;:::i;:::-;;45530:20;45541:8;45530:20;;;;;;:::i;:::-;;;;;;;;45422:136:::0;:::o;21306:239::-;21378:7;21414:16;;;:7;:16;;;;;;-1:-1:-1;;;;;21414:16:0;21449:19;21441:73;;;;-1:-1:-1;;;21441:73:0;;26445:2:1;21441:73:0;;;26427:21:1;26484:2;26464:18;;;26457:30;26523:34;26503:18;;;26496:62;-1:-1:-1;;;26574:18:1;;;26567:39;26623:19;;21441:73:0;26417:231:1;40075:21:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;21036:208::-;21108:7;-1:-1:-1;;;;;21136:19:0;;21128:74;;;;-1:-1:-1;;;21128:74:0;;26034:2:1;21128:74:0;;;26016:21:1;26073:2;26053:18;;;26046:30;26112:34;26092:18;;;26085:62;-1:-1:-1;;;26163:18:1;;;26156:40;26213:19;;21128:74:0;26006:232:1;21128:74:0;-1:-1:-1;;;;;;21220:16:0;;;;;:9;:16;;;;;;;21036:208::o;3426:148::-;2821:7;2848:6;-1:-1:-1;;;;;2848:6:0;1499:10;2995:23;2987:68;;;;-1:-1:-1;;;2987:68:0;;;;;;;:::i;:::-;3533:1:::1;3517:6:::0;;3496:40:::1;::::0;-1:-1:-1;;;;;3517:6:0;;::::1;::::0;3496:40:::1;::::0;3533:1;;3496:40:::1;3564:1;3547:19:::0;;-1:-1:-1;;;;;;3547:19:0::1;::::0;;3426:148::o;41061:572::-;41150:16;41184:18;41205:17;41215:6;41205:9;:17::i;:::-;41184:38;-1:-1:-1;41237:15:0;41233:393;;41314:16;;;41328:1;41314:16;;;;;;;;;;;-1:-1:-1;41307:23:0;41061:572;-1:-1:-1;;;41061:572:0:o;41233:393::-;41363:23;41403:10;41389:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41389:25:0;;41363:51;;41429:13;41457:130;41481:10;41473:5;:18;41457:130;;;41537:34;41557:6;41565:5;41537:19;:34::i;:::-;41521:6;41528:5;41521:13;;;;;;;;:::i;:::-;;;;;;;;;;:50;41493:7;;;;:::i;:::-;;;;41457:130;;41233:393;41173:460;41061:572;;;:::o;6030:693::-;6187:9;;6179:66;;;;-1:-1:-1;;;6179:66:0;;24788:2:1;6179:66:0;;;24770:21:1;24827:2;24807:18;;;24800:30;24866:34;24846:18;;;24839:62;-1:-1:-1;;;24917:18:1;;;24910:37;24964:19;;6179:66:0;24760:229:1;6179:66:0;6367:9;;6338:39;;-1:-1:-1;;;6338:39:0;;6316:19;;-1:-1:-1;;;;;6338:17:0;:28;;;;:39;;;;31918:25:1;;;31906:2;31891:18;;31873:76;6338:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;6316:61;-1:-1:-1;;;;;;6450:34:0;;6428:124;;;;-1:-1:-1;;;6428:124:0;;31565:2:1;6428:124:0;;;31547:21:1;31604:2;31584:18;;;31577:30;31643:34;31623:18;;;31616:62;-1:-1:-1;;;31694:18:1;;;31687:38;31742:19;;6428:124:0;31537:230:1;6428:124:0;6611:9;;6565:150;;-1:-1:-1;;;6565:150:0;;-1:-1:-1;;;;;6565:13:0;;;;;6586:9;;6565:150;;6635:12;;6662:5;;;;6682:22;;6565:150;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;6168:555;6030:693;;;;:::o;21781:104::-;21837:13;21870:7;21863:14;;;;;:::i;8015:360::-;2821:7;2848:6;-1:-1:-1;;;;;2848:6:0;1499:10;2995:23;2987:68;;;;-1:-1:-1;;;2987:68:0;;;;;;;:::i;:::-;8245:122:::1;::::0;-1:-1:-1;;;8245:122:0;;-1:-1:-1;;;;;8245:27:0;::::1;::::0;::::1;::::0;:122:::1;::::0;8287:10;;;;8312:11;;;;8338:18;;;;8245:122:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;8015:360:::0;;;;;;;:::o;23365:295::-;-1:-1:-1;;;;;23468:24:0;;1499:10;23468:24;;23460:62;;;;-1:-1:-1;;;23460:62:0;;22823:2:1;23460:62:0;;;22805:21:1;22862:2;22842:18;;;22835:30;22901:27;22881:18;;;22874:55;22946:18;;23460:62:0;22795:175:1;23460:62:0;1499:10;23535:32;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;23535:42:0;;;;;;;;;;;;:53;;-1:-1:-1;;23535:53:0;;;;;;;;;;23604:48;;18069:41:1;;;23535:42:0;;1499:10;23604:48;;18042:18:1;23604:48:0;;;;;;;23365:295;;:::o;43176:606::-;43242:7;43297:16;:14;:16::i;:::-;43284:9;:29;;43262:114;;;;-1:-1:-1;;;43262:114:0;;;;;;;:::i;:::-;43441:278;43464:9;43488:10;43627:27;43641:12;43627:13;:27::i;:::-;43538:135;;;;;;;;:::i;:::-;;;;;;;;;;;;;43703:5;43441:8;:278::i;:::-;43739:35;43749:10;43761:12;43739:9;:35::i;45114:145::-;2821:7;2848:6;-1:-1:-1;;;;;2848:6:0;1499:10;2995:23;2987:68;;;;-1:-1:-1;;;2987:68:0;;;;;;;:::i;:::-;45173:12:::1;::::0;::::1;;:21;45165:56;;;::::0;-1:-1:-1;;;45165:56:0;;18989:2:1;45165:56:0::1;::::0;::::1;18971:21:1::0;19028:2;19008:18;;;19001:30;-1:-1:-1;;;19047:18:1;;;19040:52;19109:18;;45165:56:0::1;18961:172:1::0;45165:56:0::1;45232:12;:19:::0;;-1:-1:-1;;45232:19:0::1;45247:4;45232:19;::::0;;45114:145::o;24560:285::-;24692:41;1499:10;24725:7;24692:18;:41::i;:::-;24684:103;;;;-1:-1:-1;;;24684:103:0;;;;;;;:::i;:::-;24798:39;24812:4;24818:2;24822:7;24831:5;24798:13;:39::i;:::-;24560:285;;;;:::o;7161:268::-;2821:7;2848:6;-1:-1:-1;;;;;2848:6:0;1499:10;2995:23;2987:68;;;;-1:-1:-1;;;2987:68:0;;;;;;;:::i;:::-;7350:71:::1;::::0;-1:-1:-1;;;7350:71:0;;-1:-1:-1;;;;;7350:26:0;::::1;::::0;::::1;::::0;:71:::1;::::0;7385:4:::1;::::0;7392:9;;7403:10;;7415:5;;;;7350:71:::1;;;:::i;40421:583::-:0;26377:4;26401:16;;;:7;:16;;;;;;40522:13;;-1:-1:-1;;;;;26401:16:0;40553:113;;;;-1:-1:-1;;;40553:113:0;;29156:2:1;40553:113:0;;;29138:21:1;29195:2;29175:18;;;29168:30;29234:34;29214:18;;;29207:62;-1:-1:-1;;;29285:18:1;;;29278:45;29340:19;;40553:113:0;29128:237:1;40553:113:0;40723:1;40705:7;40699:21;;;;;:::i;:::-;;;:25;:297;;;;;;;;;;;;;;;;;40864:22;;;;:13;:22;;;;;;40816:7;;40850:37;;-1:-1:-1;;;;;40864:22:0;40850:13;:37::i;:::-;40773:137;;;;;;;;;:::i;:::-;;;;;;;;;;;;;40679:317;40421:583;-1:-1:-1;;40421:583:0:o;5592:102::-;2821:7;2848:6;-1:-1:-1;;;;;2848:6:0;1499:10;2995:23;2987:68;;;;-1:-1:-1;;;2987:68:0;;;;;;;:::i;:::-;5664:9:::1;:22:::0;5592:102::o;41713:1394::-;41788:12;;41760:7;;41788:12;;:20;;:12;:20;41780:52;;;;-1:-1:-1;;;41780:52:0;;31217:2:1;41780:52:0;;;31199:21:1;31256:2;31236:18;;;31229:30;-1:-1:-1;;;31275:18:1;;;31268:49;31334:18;;41780:52:0;31189:169:1;41780:52:0;41845:21;41869:13;34039:10;:17;;33951:113;41869:13;41845:37;;41916:6;41899:13;:23;41895:1205;;41946:20;41939:27;;;41713:1394;:::o;41895:1205::-;42034:5;42017:13;:22;42013:1087;;42063:19;42056:26;;;41713:1394;:::o;42013:1087::-;42152:5;42135:13;:22;42131:969;;42181:19;42174:26;;;41713:1394;:::o;42131:969::-;42269:5;42252:13;:22;42248:852;;42298:19;42291:26;;;41713:1394;:::o;42248:852::-;42386:4;42369:13;:21;42365:735;;42414:18;42407:25;;;41713:1394;:::o;42365:735::-;42500:4;42483:13;:21;42479:621;;42528:18;42521:25;;;41713:1394;:::o;42479:621::-;42613:4;42596:13;:21;42592:508;;42641:18;42634:25;;;41713:1394;:::o;42592:508::-;42726:3;42709:13;:20;42705:395;;42753:17;42746:24;;;41713:1394;:::o;42705:395::-;42834:3;42817:13;:20;42813:287;;42861:17;42854:24;;;41713:1394;:::o;42813:287::-;42941:3;42924:13;:20;42920:180;;42968:17;42961:24;;;41713:1394;:::o;42920:180::-;43049:17;43042:24;;;41713:1394;:::o;42920:180::-;41769:1338;41713:1394;:::o;3729:244::-;2821:7;2848:6;-1:-1:-1;;;;;2848:6:0;1499:10;2995:23;2987:68;;;;-1:-1:-1;;;2987:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;3818:22:0;::::1;3810:73;;;::::0;-1:-1:-1;;;3810:73:0;;20889:2:1;3810:73:0::1;::::0;::::1;20871:21:1::0;20928:2;20908:18;;;20901:30;20967:34;20947:18;;;20940:62;-1:-1:-1;;;21018:18:1;;;21011:36;21064:19;;3810:73:0::1;20861:228:1::0;3810:73:0::1;3920:6;::::0;;3899:38:::1;::::0;-1:-1:-1;;;;;3899:38:0;;::::1;::::0;3920:6;::::1;::::0;3899:38:::1;::::0;::::1;3948:6;:17:::0;;-1:-1:-1;;;;;;3948:17:0::1;-1:-1:-1::0;;;;;3948:17:0;;;::::1;::::0;;;::::1;::::0;;3729:244::o;5263:166::-;2821:7;2848:6;-1:-1:-1;;;;;2848:6:0;1499:10;2995:23;2987:68;;;;-1:-1:-1;;;2987:68:0;;;;;;;:::i;:::-;5381:40:::1;5399:12;5413:7;5381:17;:40::i;20680:292::-:0;20782:4;-1:-1:-1;;;;;;20806:40:0;;-1:-1:-1;;;20806:40:0;;:105;;-1:-1:-1;;;;;;;20863:48:0;;-1:-1:-1;;;20863:48:0;20806:105;:158;;;-1:-1:-1;;;;;;;;;;16789:40:0;;;20928:36;16680:157;30189:174;30264:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;30264:29:0;-1:-1:-1;;;;;30264:29:0;;;;;;;;:24;;30318:23;30264:24;30318:14;:23::i;:::-;-1:-1:-1;;;;;30309:46:0;;;;;;;;;;;30189:174;;:::o;26606:348::-;26699:4;26401:16;;;:7;:16;;;;;;-1:-1:-1;;;;;26401:16:0;26716:73;;;;-1:-1:-1;;;26716:73:0;;24375:2:1;26716:73:0;;;24357:21:1;24414:2;24394:18;;;24387:30;24453:34;24433:18;;;24426:62;-1:-1:-1;;;24504:18:1;;;24497:42;24556:19;;26716:73:0;24347:234:1;26716:73:0;26800:13;26816:23;26831:7;26816:14;:23::i;:::-;26800:39;;26869:5;-1:-1:-1;;;;;26858:16:0;:7;-1:-1:-1;;;;;26858:16:0;;:51;;;;26902:7;-1:-1:-1;;;;;26878:31:0;:20;26890:7;26878:11;:20::i;:::-;-1:-1:-1;;;;;26878:31:0;;26858:51;:87;;;-1:-1:-1;;;;;;23852:25:0;;;23828:4;23852:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;26913:32;26850:96;26606:348;-1:-1:-1;;;;26606:348:0:o;29527:544::-;29652:4;-1:-1:-1;;;;;29625:31:0;:23;29640:7;29625:14;:23::i;:::-;-1:-1:-1;;;;;29625:31:0;;29617:85;;;;-1:-1:-1;;;29617:85:0;;28746:2:1;29617:85:0;;;28728:21:1;28785:2;28765:18;;;28758:30;28824:34;28804:18;;;28797:62;-1:-1:-1;;;28875:18:1;;;28868:39;28924:19;;29617:85:0;28718:231:1;29617:85:0;-1:-1:-1;;;;;29721:16:0;;29713:65;;;;-1:-1:-1;;;29713:65:0;;22418:2:1;29713:65:0;;;22400:21:1;22457:2;22437:18;;;22430:30;22496:34;22476:18;;;22469:62;-1:-1:-1;;;22547:18:1;;;22540:34;22591:19;;29713:65:0;22390:226:1;29713:65:0;29791:39;29812:4;29818:2;29822:7;29791:20;:39::i;:::-;29895:29;29912:1;29916:7;29895:8;:29::i;:::-;-1:-1:-1;;;;;29937:15:0;;;;;;:9;:15;;;;;:20;;29956:1;;29937:15;:20;;29956:1;;29937:20;:::i;:::-;;;;-1:-1:-1;;;;;;;29968:13:0;;;;;;:9;:13;;;;;:18;;29985:1;;29968:13;:18;;29985:1;;29968:18;:::i;:::-;;;;-1:-1:-1;;29997:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;29997:21:0;-1:-1:-1;;;;;29997:21:0;;;;;;;;;30036:27;;29997:16;;30036:27;;;;;;;29527:544;;;:::o;44477:587::-;-1:-1:-1;;;;;44612:25:0;;44565:7;44612:25;;;:11;:25;;;;;;:30;44590:111;;;;-1:-1:-1;;;44590:111:0;;19698:2:1;44590:111:0;;;19680:21:1;19737:2;19717:18;;;19710:30;19776:33;19756:18;;;19749:61;19827:18;;44590:111:0;19670:181:1;44590:111:0;44741:15;44759:13;34039:10;:17;;33951:113;44759:13;:17;;44775:1;44759:17;:::i;:::-;44741:35;;44789:22;44799:2;44803:7;44789:9;:22::i;:::-;-1:-1:-1;;;;;44865:25:0;;;;;;;:11;:25;;;;;;;;:35;;;44952:22;;;:13;:22;;;;;;:37;;-1:-1:-1;;;;;;44952:37:0;;;;;45007:22;;13620:15:1;;;13602:34;;13652:18;;13645:43;;;;45007:22:0;;13537:18:1;45007:22:0;;;;;;;45049:7;44477:587;-1:-1:-1;;;44477:587:0:o;46096:465::-;46196:13;;;46206:2;46196:13;;;46153;46196;;;;;;46179:14;;46196:13;;;;;;;;;;;-1:-1:-1;46196:13:0;46179:30;;46225:9;46220:307;46244:2;46240:1;:6;46220:307;;;46268:8;46324:6;46329:1;46324:2;:6;:::i;:::-;46319:12;;:1;:12;:::i;:::-;46315:17;;:1;:17;:::i;:::-;46292:41;;-1:-1:-1;;;;;46292:19:0;;:41;:::i;:::-;46279:56;;46268:67;;46350:9;46380:2;46375:1;46369:8;;:13;;;;:::i;:::-;46362:21;;46350:33;;46398:9;46439:2;46433:9;;46428:2;:14;;;;:::i;:::-;46423:1;46417:8;;:25;;;;:::i;:::-;46410:33;;46398:45;;46469:8;46474:2;46469:4;:8::i;:::-;46458:1;46460:5;46464:1;46460;:5;:::i;:::-;46458:8;;;;;;;;:::i;:::-;;;;:19;-1:-1:-1;;;;;46458:19:0;;;;;;;;;46507:8;46512:2;46507:4;:8::i;:::-;46492:1;46494:5;46498:1;46494;:5;:::i;:::-;:9;;46502:1;46494:9;:::i;:::-;46492:12;;;;;;;;:::i;:::-;;;;:23;-1:-1:-1;;;;;46492:23:0;;;;;;;;;46253:274;;;46248:3;;;;;:::i;:::-;;;;46220:307;;;-1:-1:-1;46551:1:0;46096:465;-1:-1:-1;;46096:465:0:o;8769:970::-;8947:9;;8939:70;;;;-1:-1:-1;;;8939:70:0;;29572:2:1;8939:70:0;;;29554:21:1;29611:2;29591:18;;;29584:30;29650:34;29630:18;;;29623:62;-1:-1:-1;;;29701:18:1;;;29694:41;29752:19;;8939:70:0;29544:233:1;8939:70:0;9130:9;;9101:39;;-1:-1:-1;;;9101:39:0;;9079:19;;-1:-1:-1;;;;;9101:17:0;:28;;;;:39;;;;31918:25:1;;;31906:2;31891:18;;31873:76;9101:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;9079:61;-1:-1:-1;;;;;;9213:34:0;;9191:128;;;;-1:-1:-1;;;9191:128:0;;25621:2:1;9191:128:0;;;25603:21:1;25660:2;25640:18;;;25633:30;25699:34;25679:18;;;25672:62;-1:-1:-1;;;25750:18:1;;;25743:42;25802:19;;9191:128:0;25593:234:1;9191:128:0;9451:7;9426:21;:32;;9404:126;;;;-1:-1:-1;;;9404:126:0;;23962:2:1;9404:126:0;;;23944:21:1;24001:2;23981:18;;;23974:30;24040:34;24020:18;;;24013:62;-1:-1:-1;;;24091:18:1;;;24084:42;24143:19;;9404:126:0;23934:234:1;9404:126:0;9627:9;;9583:148;;-1:-1:-1;;;9583:148:0;;-1:-1:-1;;;;;9583:13:0;;;;;9604:7;;9583:148;;9651:12;;9678:5;;9698:22;;9583:148;;;:::i;25727:272::-;25841:28;25851:4;25857:2;25861:7;25841:9;:28::i;:::-;25888:48;25911:4;25917:2;25921:7;25930:5;25888:22;:48::i;:::-;25880:111;;;;-1:-1:-1;;;25880:111:0;;;;;;;:::i;73341:397::-;73456:6;73431:21;:31;;73423:73;;;;-1:-1:-1;;;73423:73:0;;23604:2:1;73423:73:0;;;23586:21:1;23643:2;23623:18;;;23616:30;23682:31;23662:18;;;23655:59;23731:18;;73423:73:0;23576:179:1;73423:73:0;73588:12;73606:9;-1:-1:-1;;;;;73606:14:0;73629:6;73606:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73587:54;;;73660:7;73652:78;;;;-1:-1:-1;;;73652:78:0;;23177:2:1;73652:78:0;;;23159:21:1;23216:2;23196:18;;;23189:30;23255:34;23235:18;;;23228:62;23326:28;23306:18;;;23299:56;23372:19;;73652:78:0;23149:248:1;34987:555:0;-1:-1:-1;;;;;35159:18:0;;35155:187;;35194:40;35226:7;36369:10;:17;;36342:24;;;;:15;:24;;;;;:44;;;36397:24;;;;;;;;;;;;36265:164;35194:40;35155:187;;;35264:2;-1:-1:-1;;;;;35256:10:0;:4;-1:-1:-1;;;;;35256:10:0;;35252:90;;35283:47;35316:4;35322:7;35283:32;:47::i;:::-;-1:-1:-1;;;;;35356:16:0;;35352:183;;35389:45;35426:7;35389:36;:45::i;35352:183::-;35462:4;-1:-1:-1;;;;;35456:10:0;:2;-1:-1:-1;;;;;35456:10:0;;35452:83;;35483:40;35511:2;35515:7;35483:27;:40::i;27296:110::-;27372:26;27382:2;27386:7;27372:26;;;;;;;;;;;;:9;:26::i;46569:171::-;46616:8;46652:2;46641:8;;;;:13;46637:95;;;46670:15;:8;;;;46681:4;46670:15;:::i;:::-;46663:23;;;46569:171;-1:-1:-1;;46569:171:0:o;46637:95::-;46716:15;:8;;;;46727:4;46716:15;:::i;46637:95::-;46569:171;;;:::o;30928:843::-;31049:4;-1:-1:-1;;;;;31075:13:0;;72351:20;72390:8;31071:693;;31111:72;;-1:-1:-1;;;31111:72:0;;-1:-1:-1;;;;;31111:36:0;;;;;:72;;1499:10;;31162:4;;31168:7;;31177:5;;31111:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31111:72:0;;;;;;;;-1:-1:-1;;31111:72:0;;;;;;;;;;;;:::i;:::-;;;31107:602;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31357:13:0;;31353:341;;31400:60;;-1:-1:-1;;;31400:60:0;;;;;;;:::i;31353:341::-;31644:6;31638:13;31629:6;31625:2;31621:15;31614:38;31107:602;-1:-1:-1;;;;;;31234:55:0;-1:-1:-1;;;31234:55:0;;-1:-1:-1;31227:62:0;;31071:693;-1:-1:-1;31748:4:0;30928:843;;;;;;:::o;37056:988::-;37322:22;37372:1;37347:22;37364:4;37347:16;:22::i;:::-;:26;;;;:::i;:::-;37384:18;37405:26;;;:17;:26;;;;;;37322:51;;-1:-1:-1;37538:28:0;;;37534:328;;-1:-1:-1;;;;;37605:18:0;;37583:19;37605:18;;;:12;:18;;;;;;;;:34;;;;;;;;;37656:30;;;;;;:44;;;37773:30;;:17;:30;;;;;:43;;;37534:328;-1:-1:-1;37958:26:0;;;;:17;:26;;;;;;;;37951:33;;;-1:-1:-1;;;;;38002:18:0;;;;;:12;:18;;;;;:34;;;;;;;37995:41;37056:988::o;38339:1079::-;38617:10;:17;38592:22;;38617:21;;38637:1;;38617:21;:::i;:::-;38649:18;38670:24;;;:15;:24;;;;;;39043:10;:26;;38592:46;;-1:-1:-1;38670:24:0;;38592:46;;39043:26;;;;;;:::i;:::-;;;;;;;;;39021:48;;39107:11;39082:10;39093;39082:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;39187:28;;;:15;:28;;;;;;;:41;;;39359:24;;;;;39352:31;39394:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;38410:1008;;;38339:1079;:::o;35843:221::-;35928:14;35945:20;35962:2;35945:16;:20::i;:::-;-1:-1:-1;;;;;35976:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;36021:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;35843:221:0:o;27633:250::-;27729:18;27735:2;27739:7;27729:5;:18::i;:::-;27766:54;27797:1;27801:2;27805:7;27814:5;27766:22;:54::i;:::-;27758:117;;;;-1:-1:-1;;;27758:117:0;;;;;;;:::i;28219:382::-;-1:-1:-1;;;;;28299:16:0;;28291:61;;;;-1:-1:-1;;;28291:61:0;;27259:2:1;28291:61:0;;;27241:21:1;;;27278:18;;;27271:30;27337:34;27317:18;;;27310:62;27389:18;;28291:61:0;27231:182:1;28291:61:0;26377:4;26401:16;;;:7;:16;;;;;;-1:-1:-1;;;;;26401:16:0;:30;28363:58;;;;-1:-1:-1;;;28363:58:0;;21296:2:1;28363:58:0;;;21278:21:1;21335:2;21315:18;;;21308:30;21374;21354:18;;;21347:58;21422:18;;28363:58:0;21268:178:1;28363:58:0;28434:45;28463:1;28467:2;28471:7;28434:20;:45::i;:::-;-1:-1:-1;;;;;28492:13:0;;;;;;:9;:13;;;;;:18;;28509:1;;28492:13;:18;;28509:1;;28492:18;:::i;:::-;;;;-1:-1:-1;;28521:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;28521:21:0;-1:-1:-1;;;;;28521:21:0;;;;;;;;28560:33;;28521:16;;;28560:33;;28521:16;;28560:33;28219:382;;:::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14:631:1;78:5;108:18;149:2;141:6;138:14;135:2;;;155:18;;:::i;:::-;230:2;224:9;198:2;284:15;;-1:-1:-1;;280:24:1;;;306:2;276:33;272:42;260:55;;;330:18;;;350:22;;;327:46;324:2;;;376:18;;:::i;:::-;416:10;412:2;405:22;445:6;436:15;;475:6;467;460:22;515:3;506:6;501:3;497:16;494:25;491:2;;;532:1;529;522:12;491:2;582:6;577:3;570:4;562:6;558:17;545:44;637:1;630:4;621:6;613;609:19;605:30;598:41;;;;88:557;;;;;:::o;650:367::-;713:8;723:6;777:3;770:4;762:6;758:17;754:27;744:2;;795:1;792;785:12;744:2;-1:-1:-1;818:20:1;;861:18;850:30;;847:2;;;893:1;890;883:12;847:2;930:4;922:6;918:17;906:29;;990:3;983:4;973:6;970:1;966:14;958:6;954:27;950:38;947:47;944:2;;;1007:1;1004;997:12;944:2;734:283;;;;;:::o;1022:160::-;1087:20;;1143:13;;1136:21;1126:32;;1116:2;;1172:1;1169;1162:12;1187:347;1238:8;1248:6;1302:3;1295:4;1287:6;1283:17;1279:27;1269:2;;1320:1;1317;1310:12;1269:2;-1:-1:-1;1343:20:1;;1386:18;1375:30;;1372:2;;;1418:1;1415;1408:12;1372:2;1455:4;1447:6;1443:17;1431:29;;1507:3;1500:4;1491:6;1483;1479:19;1475:30;1472:39;1469:2;;;1524:1;1521;1514:12;1539:247;1598:6;1651:2;1639:9;1630:7;1626:23;1622:32;1619:2;;;1667:1;1664;1657:12;1619:2;1706:9;1693:23;1725:31;1750:5;1725:31;:::i;1791:323::-;1867:6;1875;1928:2;1916:9;1907:7;1903:23;1899:32;1896:2;;;1944:1;1941;1934:12;1896:2;1983:9;1970:23;2002:31;2027:5;2002:31;:::i;:::-;2052:5;2104:2;2089:18;;;;2076:32;;-1:-1:-1;;;1886:228:1:o;2119:388::-;2187:6;2195;2248:2;2236:9;2227:7;2223:23;2219:32;2216:2;;;2264:1;2261;2254:12;2216:2;2303:9;2290:23;2322:31;2347:5;2322:31;:::i;:::-;2372:5;-1:-1:-1;2429:2:1;2414:18;;2401:32;2442:33;2401:32;2442:33;:::i;:::-;2494:7;2484:17;;;2206:301;;;;;:::o;2512:456::-;2589:6;2597;2605;2658:2;2646:9;2637:7;2633:23;2629:32;2626:2;;;2674:1;2671;2664:12;2626:2;2713:9;2700:23;2732:31;2757:5;2732:31;:::i;:::-;2782:5;-1:-1:-1;2839:2:1;2824:18;;2811:32;2852:33;2811:32;2852:33;:::i;:::-;2616:352;;2904:7;;-1:-1:-1;;;2958:2:1;2943:18;;;;2930:32;;2616:352::o;2973:754::-;3070:6;3078;3086;3094;3102;3155:3;3143:9;3134:7;3130:23;3126:33;3123:2;;;3172:1;3169;3162:12;3123:2;3211:9;3198:23;3230:31;3255:5;3230:31;:::i;:::-;3280:5;-1:-1:-1;3337:2:1;3322:18;;3309:32;3350:33;3309:32;3350:33;:::i;:::-;3402:7;-1:-1:-1;3456:2:1;3441:18;;3428:32;;-1:-1:-1;3511:2:1;3496:18;;3483:32;3538:18;3527:30;;3524:2;;;3570:1;3567;3560:12;3524:2;3609:58;3659:7;3650:6;3639:9;3635:22;3609:58;:::i;:::-;3113:614;;;;-1:-1:-1;3113:614:1;;-1:-1:-1;3686:8:1;;3583:84;3113:614;-1:-1:-1;;;3113:614:1:o;3732:794::-;3827:6;3835;3843;3851;3904:3;3892:9;3883:7;3879:23;3875:33;3872:2;;;3921:1;3918;3911:12;3872:2;3960:9;3947:23;3979:31;4004:5;3979:31;:::i;:::-;4029:5;-1:-1:-1;4086:2:1;4071:18;;4058:32;4099:33;4058:32;4099:33;:::i;:::-;4151:7;-1:-1:-1;4205:2:1;4190:18;;4177:32;;-1:-1:-1;4260:2:1;4245:18;;4232:32;4287:18;4276:30;;4273:2;;;4319:1;4316;4309:12;4273:2;4342:22;;4395:4;4387:13;;4383:27;-1:-1:-1;4373:2:1;;4424:1;4421;4414:12;4373:2;4447:73;4512:7;4507:2;4494:16;4489:2;4485;4481:11;4447:73;:::i;:::-;4437:83;;;3862:664;;;;;;;:::o;4531:315::-;4596:6;4604;4657:2;4645:9;4636:7;4632:23;4628:32;4625:2;;;4673:1;4670;4663:12;4625:2;4712:9;4699:23;4731:31;4756:5;4731:31;:::i;:::-;4781:5;-1:-1:-1;4805:35:1;4836:2;4821:18;;4805:35;:::i;:::-;4795:45;;4615:231;;;;;:::o;4851:613::-;4937:6;4945;4953;4961;5014:2;5002:9;4993:7;4989:23;4985:32;4982:2;;;5030:1;5027;5020:12;4982:2;5069:9;5056:23;5088:31;5113:5;5088:31;:::i;:::-;5138:5;-1:-1:-1;5194:2:1;5179:18;;5166:32;5221:18;5210:30;;5207:2;;;5253:1;5250;5243:12;5207:2;5292:58;5342:7;5333:6;5322:9;5318:22;5292:58;:::i;:::-;5369:8;;-1:-1:-1;5266:84:1;-1:-1:-1;5423:35:1;;-1:-1:-1;5454:2:1;5439:18;;5423:35;:::i;:::-;5413:45;;4972:492;;;;;;;:::o;5789:245::-;5847:6;5900:2;5888:9;5879:7;5875:23;5871:32;5868:2;;;5916:1;5913;5906:12;5868:2;5955:9;5942:23;5974:30;5998:5;5974:30;:::i;6039:249::-;6108:6;6161:2;6149:9;6140:7;6136:23;6132:32;6129:2;;;6177:1;6174;6167:12;6129:2;6209:9;6203:16;6228:30;6252:5;6228:30;:::i;6293:805::-;6429:6;6437;6445;6453;6461;6514:3;6502:9;6493:7;6489:23;6485:33;6482:2;;;6531:1;6528;6521:12;6482:2;6570:9;6557:23;6589:31;6614:5;6589:31;:::i;:::-;6639:5;-1:-1:-1;6696:2:1;6681:18;;6668:32;6709:33;6668:32;6709:33;:::i;:::-;6761:7;-1:-1:-1;6815:2:1;6800:18;;6787:32;;-1:-1:-1;6870:2:1;6855:18;;6842:32;6897:18;6886:30;;6883:2;;;6929:1;6926;6919:12;6883:2;6968:70;7030:7;7021:6;7010:9;7006:22;6968:70;:::i;7103:1274::-;7320:6;7328;7336;7344;7352;7360;7368;7421:3;7409:9;7400:7;7396:23;7392:33;7389:2;;;7438:1;7435;7428:12;7389:2;7477:9;7464:23;7496:31;7521:5;7496:31;:::i;:::-;7546:5;-1:-1:-1;7602:2:1;7587:18;;7574:32;7625:18;7655:14;;;7652:2;;;7682:1;7679;7672:12;7652:2;7721:70;7783:7;7774:6;7763:9;7759:22;7721:70;:::i;:::-;7810:8;;-1:-1:-1;7695:96:1;-1:-1:-1;7898:2:1;7883:18;;7870:32;;-1:-1:-1;7914:16:1;;;7911:2;;;7943:1;7940;7933:12;7911:2;7982:72;8046:7;8035:8;8024:9;8020:24;7982:72;:::i;:::-;8073:8;;-1:-1:-1;7956:98:1;-1:-1:-1;8161:2:1;8146:18;;8133:32;;-1:-1:-1;8177:16:1;;;8174:2;;;8206:1;8203;8196:12;8174:2;;8245:72;8309:7;8298:8;8287:9;8283:24;8245:72;:::i;:::-;7379:998;;;;-1:-1:-1;7379:998:1;;-1:-1:-1;7379:998:1;;;;8219:98;;-1:-1:-1;;;7379:998:1:o;9159:269::-;9247:6;9300:2;9288:9;9279:7;9275:23;9271:32;9268:2;;;9316:1;9313;9306:12;9268:2;9348:9;9342:16;9367:31;9392:5;9367:31;:::i;9433:450::-;9502:6;9555:2;9543:9;9534:7;9530:23;9526:32;9523:2;;;9571:1;9568;9561:12;9523:2;9611:9;9598:23;9644:18;9636:6;9633:30;9630:2;;;9676:1;9673;9666:12;9630:2;9699:22;;9752:4;9744:13;;9740:27;-1:-1:-1;9730:2:1;;9781:1;9778;9771:12;9730:2;9804:73;9869:7;9864:2;9851:16;9846:2;9842;9838:11;9804:73;:::i;9888:180::-;9947:6;10000:2;9988:9;9979:7;9975:23;9971:32;9968:2;;;10016:1;10013;10006:12;9968:2;-1:-1:-1;10039:23:1;;9958:110;-1:-1:-1;9958:110:1:o;10073:184::-;10143:6;10196:2;10184:9;10175:7;10171:23;10167:32;10164:2;;;10212:1;10209;10202:12;10164:2;-1:-1:-1;10235:16:1;;10154:103;-1:-1:-1;10154:103:1:o;10262:354::-;10350:19;;;10332:3;-1:-1:-1;;;;;10381:31:1;;10378:2;;;10425:1;10422;10415:12;10378:2;10461:6;10458:1;10454:14;10513:8;10506:5;10499:4;10494:3;10490:14;10477:45;10590:1;10545:18;;10565:4;10541:29;10579:13;;;-1:-1:-1;10541:29:1;;10340:276;-1:-1:-1;;10340:276:1:o;10621:266::-;10709:6;10704:3;10697:19;10761:6;10754:5;10747:4;10742:3;10738:14;10725:43;-1:-1:-1;10813:1:1;10788:16;;;10806:4;10784:27;;;10777:38;;;;10869:2;10848:15;;;-1:-1:-1;;10844:29:1;10835:39;;;10831:50;;10687:200::o;10892:257::-;10933:3;10971:5;10965:12;10998:6;10993:3;10986:19;11014:63;11070:6;11063:4;11058:3;11054:14;11047:4;11040:5;11036:16;11014:63;:::i;:::-;11131:2;11110:15;-1:-1:-1;;11106:29:1;11097:39;;;;11138:4;11093:50;;10941:208;-1:-1:-1;;10941:208:1:o;11154:185::-;11196:3;11234:5;11228:12;11249:52;11294:6;11289:3;11282:4;11275:5;11271:16;11249:52;:::i;:::-;11317:16;;;;;11204:135;-1:-1:-1;;11204:135:1:o;11344:1174::-;11520:3;11549:1;11582:6;11576:13;11612:3;11634:1;11662:9;11658:2;11654:18;11644:28;;11722:2;11711:9;11707:18;11744;11734:2;;11788:4;11780:6;11776:17;11766:27;;11734:2;11814;11862;11854:6;11851:14;11831:18;11828:38;11825:2;;;-1:-1:-1;;;11889:33:1;;11945:4;11942:1;11935:15;11975:4;11896:3;11963:17;11825:2;12006:18;12033:104;;;;12151:1;12146:320;;;;11999:467;;12033:104;-1:-1:-1;;12066:24:1;;12054:37;;12111:16;;;;-1:-1:-1;12033:104:1;;12146:320;33004:1;32997:14;;;33041:4;33028:18;;12241:1;12255:165;12269:6;12266:1;12263:13;12255:165;;;12347:14;;12334:11;;;12327:35;12390:16;;;;12284:10;;12255:165;;;12259:3;;12449:6;12444:3;12440:16;12433:23;;11999:467;;;;;;;12482:30;12508:3;12500:6;12482:30;:::i;:::-;12475:37;11528:990;-1:-1:-1;;;;;11528:990:1:o;12523:444::-;12785:27;12780:3;12773:40;12755:3;12842:6;12836:13;12858:62;12913:6;12908:2;12903:3;12899:12;12892:4;12884:6;12880:17;12858:62;:::i;:::-;12940:16;;;;12958:2;12936:25;;12763:204;-1:-1:-1;;12763:204:1:o;13699:515::-;-1:-1:-1;;;;;13978:15:1;;;13960:34;;14030:15;;14025:2;14010:18;;14003:43;14077:2;14062:18;;14055:34;;;14125:3;14120:2;14105:18;;14098:31;;;13903:4;;14146:62;;14188:19;;14180:6;14172;14146:62;:::i;:::-;14138:70;13912:302;-1:-1:-1;;;;;;;13912:302:1:o;14219:488::-;-1:-1:-1;;;;;14488:15:1;;;14470:34;;14540:15;;14535:2;14520:18;;14513:43;14587:2;14572:18;;14565:34;;;14635:3;14630:2;14615:18;;14608:31;;;14413:4;;14656:45;;14681:19;;14673:6;14656:45;:::i;:::-;14648:53;14422:285;-1:-1:-1;;;;;;14422:285:1:o;14712:456::-;14986:1;14982;14977:3;14973:11;14969:19;14961:6;14957:32;14946:9;14939:51;15026:6;15021:2;15010:9;15006:18;14999:34;15069:2;15064;15053:9;15049:18;15042:30;14920:4;15089:73;15158:2;15147:9;15143:18;15135:6;15127;15089:73;:::i;15173:2114::-;15601:2;15613:21;;;15586:18;;15669:22;;;15553:4;15749:6;15722:3;15707:19;;15553:4;15783:304;15797:6;15794:1;15791:13;15783:304;;;15872:6;15859:20;15892:31;15917:5;15892:31;:::i;:::-;-1:-1:-1;;;;;15948:31:1;15936:44;;16003:4;16062:15;;;;16027:12;;;;15976:1;15812:9;15783:304;;;15787:3;16106:4;16096:14;;16155:9;16150:3;16146:19;16141:2;16130:9;16126:18;16119:47;16189:58;16243:3;16235:6;16227;16189:58;:::i;:::-;16283:22;;;16278:2;16263:18;;16256:50;16343:22;;;16175:72;-1:-1:-1;16383:15:1;;;16417:1;16457:15;;;16445:28;;16441:37;;16503:6;16529:1;16539:719;16555:6;16550:3;16547:15;16539:719;;;16626:19;;;-1:-1:-1;;16622:33:1;16608:48;;16695:22;;16772:14;16768:27;;;-1:-1:-1;;16764:41:1;16740:66;;16730:2;;16820:1;16817;16810:12;16730:2;16852:31;;16910:21;;16958:18;16947:30;;16944:2;;;16990:1;16987;16980:12;16944:2;17050:6;17046:2;17042:15;17026:14;17022:36;17014:6;17010:49;17007:2;;;17072:1;17069;17062:12;17007:2;17099:71;17163:6;17155;17150:2;17141:7;17137:16;17099:71;:::i;:::-;17234:14;;;;17089:81;-1:-1:-1;;;17195:17:1;;;;16581:1;16572:11;16539:719;;;-1:-1:-1;17275:6:1;;15562:1725;-1:-1:-1;;;;;;;;;;;;;15562:1725:1:o;17292:632::-;17463:2;17515:21;;;17585:13;;17488:18;;;17607:22;;;17434:4;;17463:2;17686:15;;;;17660:2;17645:18;;;17434:4;17729:169;17743:6;17740:1;17737:13;17729:169;;;17804:13;;17792:26;;17873:15;;;;17838:12;;;;17765:1;17758:9;17729:169;;;-1:-1:-1;17915:3:1;;17443:481;-1:-1:-1;;;;;;17443:481:1:o;18563:219::-;18712:2;18701:9;18694:21;18675:4;18732:44;18772:2;18761:9;18757:18;18749:6;18732:44;:::i;20268:414::-;20470:2;20452:21;;;20509:2;20489:18;;;20482:30;20548:34;20543:2;20528:18;;20521:62;-1:-1:-1;;;20614:2:1;20599:18;;20592:48;20672:3;20657:19;;20442:240::o;26653:399::-;26855:2;26837:21;;;26894:2;26874:18;;;26867:30;26933:34;26928:2;26913:18;;26906:62;-1:-1:-1;;;26999:2:1;26984:18;;26977:33;27042:3;27027:19;;26827:225::o;28183:356::-;28385:2;28367:21;;;28404:18;;;28397:30;28463:34;28458:2;28443:18;;28436:62;28530:2;28515:18;;28357:182::o;30184:413::-;30386:2;30368:21;;;30425:2;30405:18;;;30398:30;30464:34;30459:2;30444:18;;30437:62;-1:-1:-1;;;30530:2:1;30515:18;;30508:47;30587:3;30572:19;;30358:239::o;31954:497::-;32173:25;;;-1:-1:-1;;;;;32234:32:1;;32229:2;32214:18;;32207:60;32303:3;32298:2;32283:18;;32276:31;;;-1:-1:-1;;32324:62:1;;32366:19;;32358:6;32350;32324:62;:::i;:::-;32316:70;;32436:6;32429:14;32422:22;32417:2;32406:9;32402:18;32395:50;32163:288;;;;;;;;:::o;32456:470::-;32665:25;;;-1:-1:-1;;;;;32726:32:1;;32721:2;32706:18;;32699:60;32795:3;32790:2;32775:18;;32768:31;;;-1:-1:-1;;32816:45:1;;32841:19;;32833:6;32816:45;:::i;:::-;32808:53;;32911:6;32904:14;32897:22;32892:2;32881:9;32877:18;32870:50;32655:271;;;;;;;:::o;33057:128::-;33097:3;33128:1;33124:6;33121:1;33118:13;33115:2;;;33134:18;;:::i;:::-;-1:-1:-1;33170:9:1;;33105:80::o;33190:204::-;33228:3;33264:4;33261:1;33257:12;33296:4;33293:1;33289:12;33331:3;33325:4;33321:14;33316:3;33313:23;33310:2;;;33339:18;;:::i;:::-;33375:13;;33236:158;-1:-1:-1;;;33236:158:1:o;33399:120::-;33439:1;33465;33455:2;;33470:18;;:::i;:::-;-1:-1:-1;33504:9:1;;33445:74::o;33524:165::-;33562:1;33596:4;33593:1;33589:12;33620:3;33610:2;;33627:18;;:::i;:::-;33679:3;33672:4;33669:1;33665:12;33661:22;33656:27;;;33568:121;;;;:::o;33694:422::-;33783:1;33826:5;33783:1;33840:270;33861:7;33851:8;33848:21;33840:270;;;33920:4;33916:1;33912:6;33908:17;33902:4;33899:27;33896:2;;;33929:18;;:::i;:::-;33979:7;33969:8;33965:22;33962:2;;;33999:16;;;;33962:2;34078:22;;;;34038:15;;;;33840:270;;;33844:3;33758:358;;;;;:::o;34121:131::-;34181:5;34210:36;34237:8;34231:4;34306:5;34336:8;34326:2;;-1:-1:-1;34377:1:1;34391:5;;34326:2;34425:4;34415:2;;-1:-1:-1;34462:1:1;34476:5;;34415:2;34507:4;34525:1;34520:59;;;;34593:1;34588:130;;;;34500:218;;34520:59;34550:1;34541:10;;34564:5;;;34588:130;34625:3;34615:8;34612:17;34609:2;;;34632:18;;:::i;:::-;-1:-1:-1;;34688:1:1;34674:16;;34703:5;;34500:218;;34802:2;34792:8;34789:16;34783:3;34777:4;34774:13;34770:36;34764:2;34754:8;34751:16;34746:2;34740:4;34737:12;34733:35;34730:77;34727:2;;;-1:-1:-1;34839:19:1;;;34871:5;;34727:2;34918:34;34943:8;34937:4;34918:34;:::i;:::-;34988:6;34984:1;34980:6;34976:19;34967:7;34964:32;34961:2;;;34999:18;;:::i;:::-;35037:20;;34316:747;-1:-1:-1;;;34316:747:1:o;35068:168::-;35108:7;35174:1;35170;35166:6;35162:14;35159:1;35156:21;35151:1;35144:9;35137:17;35133:45;35130:2;;;35181:18;;:::i;:::-;-1:-1:-1;35221:9:1;;35120:116::o;35241:238::-;35279:7;35319:4;35316:1;35312:12;35351:4;35348:1;35344:12;35411:3;35405:4;35401:14;35396:3;35393:23;35386:3;35379:11;35372:19;35368:49;35365:2;;;35420:18;;:::i;35484:125::-;35524:4;35552:1;35549;35546:8;35543:2;;;35557:18;;:::i;:::-;-1:-1:-1;35594:9:1;;35533:76::o;35614:195::-;35652:4;35689;35686:1;35682:12;35721:4;35718:1;35714:12;35746:3;35741;35738:12;35735:2;;;35753:18;;:::i;:::-;35790:13;;;35661:148;-1:-1:-1;;;35661:148:1:o;35814:258::-;35886:1;35896:113;35910:6;35907:1;35904:13;35896:113;;;35986:11;;;35980:18;35967:11;;;35960:39;35932:2;35925:10;35896:113;;;36027:6;36024:1;36021:13;36018:2;;;-1:-1:-1;;36062:1:1;36044:16;;36037:27;35867:205::o;36077:380::-;36156:1;36152:12;;;;36199;;;36220:2;;36274:4;36266:6;36262:17;36252:27;;36220:2;36327;36319:6;36316:14;36296:18;36293:38;36290:2;;;36373:10;36368:3;36364:20;36361:1;36354:31;36408:4;36405:1;36398:15;36436:4;36433:1;36426:15;36462:135;36501:3;-1:-1:-1;;36522:17:1;;36519:2;;;36542:18;;:::i;:::-;-1:-1:-1;36589:1:1;36578:13;;36509:88::o;36602:127::-;36663:10;36658:3;36654:20;36651:1;36644:31;36694:4;36691:1;36684:15;36718:4;36715:1;36708:15;36734:127;36795:10;36790:3;36786:20;36783:1;36776:31;36826:4;36823:1;36816:15;36850:4;36847:1;36840:15;36866:127;36927:10;36922:3;36918:20;36915:1;36908:31;36958:4;36955:1;36948:15;36982:4;36979:1;36972:15;36998:127;37059:10;37054:3;37050:20;37047:1;37040:31;37090:4;37087:1;37080:15;37114:4;37111:1;37104:15;37130:127;37191:10;37186:3;37182:20;37179:1;37172:31;37222:4;37219:1;37212:15;37246:4;37243:1;37236:15;37262:131;-1:-1:-1;;;;;37337:31:1;;37327:42;;37317:2;;37383:1;37380;37373:12;37317:2;37307:86;:::o;37398:131::-;-1:-1:-1;;;;;;37472:32:1;;37462:43;;37452:2;;37519:1;37516;37509:12

Swarm Source

ipfs://3e6a40ceb53d59a00501c7f5efb0f3408b9655137028c100f2c0a77d92b4e07d
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.