ETH Price: $2,852.43 (+2.60%)

Token

METAKAYS (M7)
 

Overview

Max Total Supply

0 M7

Holders

15

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
sofianc.eth
Balance
1 M7
0x73b7c1fc8ad7197bac326fd87bfc064abeff91e2
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:
M7

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-07-06
*/

// File: @openzeppelin/contracts/utils/math/SignedMath.sol


// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

// File: @openzeppelin/contracts/utils/math/Math.sol


// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/utils/Strings.sol


// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;



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

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

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

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

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

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

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

// File: @openzeppelin/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;


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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/utils/Address.sol


// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

// File: @openzeppelin/contracts/utils/introspection/IERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

// File: @openzeppelin/contracts/utils/introspection/ERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;


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

// File: @openzeppelin/contracts/token/ERC721/IERC721.sol


// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;


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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

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

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

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

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

// File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;


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

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

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

// File: @openzeppelin/contracts/token/ERC721/ERC721.sol


// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;








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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

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

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

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

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

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

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

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

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

        _owners[tokenId] = to;

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

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

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

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

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

        // Clear approvals
        delete _tokenApprovals[tokenId];

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId, 1);

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

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

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

        emit Transfer(from, to, tokenId);

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

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

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

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

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

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

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

    /**
     * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override.
     *
     * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant
     * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such
     * that `ownerOf(tokenId)` is `a`.
     */
    // solhint-disable-next-line func-name-mixedcase
    function __unsafe_increaseBalance(address account, uint256 amount) internal {
        _balances[account] += amount;
    }
}

// File: contracts/1_M7.sol



pragma solidity ^0.8.4;



contract M7 is Ownable, ERC721 {
    uint256 public constant MAX_TOKEN_COUNT = 288;

    mapping (uint256 => bool) private _mintedTokens;
    mapping (address => uint256[]) private _whitelistedAddressesToTokenIds;

    constructor() ERC721("METAKAYS", "M7") {}

    function mintNFT(uint256 _tokenId) public {
        require(_tokenId < MAX_TOKEN_COUNT, "Token ID out of range");
        require(!isMinted(_tokenId), "Token ID already minted");
        require(isWhitelistedForToken(msg.sender, _tokenId), "You are not whitelisted for this token");
        _mint(msg.sender, _tokenId);
        _mintedTokens[_tokenId] = true;
    }

    string private _baseTokenURI;

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

     function setBaseURI(string calldata baseURI) external onlyOwner {
        _baseTokenURI = baseURI;
    }

    function whitelistAddressForTokens(address[] memory _addresses, uint256[] memory _tokenIds) public onlyOwner {
    require(_addresses.length == _tokenIds.length, "Mismatched input arrays");

    for(uint i = 0; i < _addresses.length; i++) {
        _whitelistedAddressesToTokenIds[_addresses[i]].push(_tokenIds[i]);
    }
}

    function isWhitelistedForToken(address _address, uint256 _tokenId) public view returns (bool) {
        uint256[] memory whitelistedTokenIds = _whitelistedAddressesToTokenIds[_address];

        for (uint i=0; i < whitelistedTokenIds.length; i++) {
            if (whitelistedTokenIds[i] == _tokenId) {
                return true;
            }
        }
        return false;
    }

    function isMinted(uint256 _tokenId) public view returns (bool) {
        return _mintedTokens[_tokenId];
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_TOKEN_COUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"isMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"isWhitelistedForToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"mintNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":[{"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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"whitelistAddressForTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051806040016040528060088152602001674d4554414b41595360c01b815250604051806040016040528060028152602001614d3760f01b81525062000068620000626200008e60201b60201c565b62000092565b600162000076838262000187565b50600262000085828262000187565b50505062000253565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200010d57607f821691505b6020821081036200012e57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200018257600081815260208120601f850160051c810160208610156200015d5750805b601f850160051c820191505b818110156200017e5782815560010162000169565b5050505b505050565b81516001600160401b03811115620001a357620001a3620000e2565b620001bb81620001b48454620000f8565b8462000134565b602080601f831160018114620001f35760008415620001da5750858301515b600019600386901b1c1916600185901b1785556200017e565b600085815260208120601f198616915b82811015620002245788860151825594840194600190910190840162000203565b5085821015620002435787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611ad280620002636000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c8063715018a6116100b8578063b88d4fde1161007c578063b88d4fde146102ae578063c87b56dd146102c1578063d0bbb0d7146102d4578063e985e9c5146102dd578063f2fde38b14610319578063fa36abdf1461032c57600080fd5b8063715018a6146102675780638da5cb5b1461026f578063926427441461028057806395d89b4114610293578063a22cb4651461029b57600080fd5b806333c41a901161010a57806333c41a90146101d75780633b452061146101fa57806342842e0e1461020d57806355f804b3146102205780636352211e1461023357806370a082311461024657600080fd5b806301ffc9a71461014757806306fdde031461016f578063081812fc14610184578063095ea7b3146101af57806323b872dd146101c4575b600080fd5b61015a61015536600461133c565b61033f565b60405190151581526020015b60405180910390f35b610177610391565b60405161016691906113a9565b6101976101923660046113bc565b610423565b6040516001600160a01b039091168152602001610166565b6101c26101bd3660046113f1565b61044a565b005b6101c26101d236600461141b565b610564565b61015a6101e53660046113bc565b60009081526007602052604090205460ff1690565b61015a6102083660046113f1565b610595565b6101c261021b36600461141b565b61064d565b6101c261022e366004611457565b610668565b6101976102413660046113bc565b61067d565b6102596102543660046114c9565b6106dd565b604051908152602001610166565b6101c2610763565b6000546001600160a01b0316610197565b6101c261028e3660046113bc565b610777565b6101776108a9565b6101c26102a93660046114e4565b6108b8565b6101c26102bc366004611567565b6108c7565b6101776102cf3660046113bc565b6108ff565b61025961012081565b61015a6102eb366004611627565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6101c26103273660046114c9565b610966565b6101c261033a3660046116e9565b6109df565b60006001600160e01b031982166380ac58cd60e01b148061037057506001600160e01b03198216635b5e139f60e01b145b8061038b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600180546103a0906117a9565b80601f01602080910402602001604051908101604052809291908181526020018280546103cc906117a9565b80156104195780601f106103ee57610100808354040283529160200191610419565b820191906000526020600020905b8154815290600101906020018083116103fc57829003601f168201915b5050505050905090565b600061042e82610ac5565b506000908152600560205260409020546001600160a01b031690565b60006104558261067d565b9050806001600160a01b0316836001600160a01b0316036104c75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806104e357506104e381336102eb565b6105555760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016104be565b61055f8383610b24565b505050565b61056e3382610b92565b61058a5760405162461bcd60e51b81526004016104be906117e3565b61055f838383610c11565b6001600160a01b0382166000908152600860209081526040808320805482518185028101850190935280835284938301828280156105f257602002820191906000526020600020905b8154815260200190600101908083116105de575b5050505050905060005b8151811015610642578382828151811061061857610618611830565b6020026020010151036106305760019250505061038b565b8061063a81611846565b9150506105fc565b506000949350505050565b61055f838383604051806020016040528060008152506108c7565b610670610d75565b600961055f8284836118bb565b6000818152600360205260408120546001600160a01b03168061038b5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016104be565b60006001600160a01b0382166107475760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016104be565b506001600160a01b031660009081526004602052604090205490565b61076b610d75565b6107756000610dcf565b565b61012081106107c05760405162461bcd60e51b8152602060048201526015602482015274546f6b656e204944206f7574206f662072616e676560581b60448201526064016104be565b60008181526007602052604090205460ff161561081f5760405162461bcd60e51b815260206004820152601760248201527f546f6b656e20494420616c7265616479206d696e74656400000000000000000060448201526064016104be565b6108293382610595565b6108845760405162461bcd60e51b815260206004820152602660248201527f596f7520617265206e6f742077686974656c697374656420666f722074686973604482015265103a37b5b2b760d11b60648201526084016104be565b61088e3382610e1f565b6000908152600760205260409020805460ff19166001179055565b6060600280546103a0906117a9565b6108c3338383610faa565b5050565b6108d13383610b92565b6108ed5760405162461bcd60e51b81526004016104be906117e3565b6108f984848484611078565b50505050565b606061090a82610ac5565b60006109146110ab565b90506000815111610934576040518060200160405280600081525061095f565b8061093e846110ba565b60405160200161094f92919061197c565b6040516020818303038152906040525b9392505050565b61096e610d75565b6001600160a01b0381166109d35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104be565b6109dc81610dcf565b50565b6109e7610d75565b8051825114610a385760405162461bcd60e51b815260206004820152601760248201527f4d69736d61746368656420696e7075742061727261797300000000000000000060448201526064016104be565b60005b825181101561055f5760086000848381518110610a5a57610a5a611830565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020828281518110610a9457610a94611830565b6020908102919091018101518254600181018455600093845291909220015580610abd81611846565b915050610a3b565b6000818152600360205260409020546001600160a01b03166109dc5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016104be565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610b598261067d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080610b9e8361067d565b9050806001600160a01b0316846001600160a01b03161480610be557506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b80610c095750836001600160a01b0316610bfe84610423565b6001600160a01b0316145b949350505050565b826001600160a01b0316610c248261067d565b6001600160a01b031614610c4a5760405162461bcd60e51b81526004016104be906119ab565b6001600160a01b038216610cac5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016104be565b826001600160a01b0316610cbf8261067d565b6001600160a01b031614610ce55760405162461bcd60e51b81526004016104be906119ab565b600081815260056020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260048552838620805460001901905590871680865283862080546001019055868652600390945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000546001600160a01b031633146107755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104be565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216610e755760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016104be565b6000818152600360205260409020546001600160a01b031615610eda5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016104be565b6000818152600360205260409020546001600160a01b031615610f3f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016104be565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b03160361100b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016104be565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611083848484610c11565b61108f8484848461114d565b6108f95760405162461bcd60e51b81526004016104be906119f0565b6060600980546103a0906117a9565b606060006110c78361124e565b600101905060008167ffffffffffffffff8111156110e7576110e7611520565b6040519080825280601f01601f191660200182016040528015611111576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461111b57509392505050565b60006001600160a01b0384163b1561124357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611191903390899088908890600401611a42565b6020604051808303816000875af19250505080156111cc575060408051601f3d908101601f191682019092526111c991810190611a7f565b60015b611229573d8080156111fa576040519150601f19603f3d011682016040523d82523d6000602084013e6111ff565b606091505b5080516000036112215760405162461bcd60e51b81526004016104be906119f0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610c09565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061128d5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106112b9576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106112d757662386f26fc10000830492506010015b6305f5e10083106112ef576305f5e100830492506008015b612710831061130357612710830492506004015b60648310611315576064830492506002015b600a831061038b5760010192915050565b6001600160e01b0319811681146109dc57600080fd5b60006020828403121561134e57600080fd5b813561095f81611326565b60005b8381101561137457818101518382015260200161135c565b50506000910152565b60008151808452611395816020860160208601611359565b601f01601f19169290920160200192915050565b60208152600061095f602083018461137d565b6000602082840312156113ce57600080fd5b5035919050565b80356001600160a01b03811681146113ec57600080fd5b919050565b6000806040838503121561140457600080fd5b61140d836113d5565b946020939093013593505050565b60008060006060848603121561143057600080fd5b611439846113d5565b9250611447602085016113d5565b9150604084013590509250925092565b6000806020838503121561146a57600080fd5b823567ffffffffffffffff8082111561148257600080fd5b818501915085601f83011261149657600080fd5b8135818111156114a557600080fd5b8660208285010111156114b757600080fd5b60209290920196919550909350505050565b6000602082840312156114db57600080fd5b61095f826113d5565b600080604083850312156114f757600080fd5b611500836113d5565b91506020830135801515811461151557600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561155f5761155f611520565b604052919050565b6000806000806080858703121561157d57600080fd5b611586856113d5565b935060206115958187016113d5565b935060408601359250606086013567ffffffffffffffff808211156115b957600080fd5b818801915088601f8301126115cd57600080fd5b8135818111156115df576115df611520565b6115f1601f8201601f19168501611536565b9150808252898482850101111561160757600080fd5b808484018584013760008482840101525080935050505092959194509250565b6000806040838503121561163a57600080fd5b611643836113d5565b9150611651602084016113d5565b90509250929050565b600067ffffffffffffffff82111561167457611674611520565b5060051b60200190565b600082601f83011261168f57600080fd5b813560206116a461169f8361165a565b611536565b82815260059290921b840181019181810190868411156116c357600080fd5b8286015b848110156116de57803583529183019183016116c7565b509695505050505050565b600080604083850312156116fc57600080fd5b823567ffffffffffffffff8082111561171457600080fd5b818501915085601f83011261172857600080fd5b8135602061173861169f8361165a565b82815260059290921b8401810191818101908984111561175757600080fd5b948201945b8386101561177c5761176d866113d5565b8252948201949082019061175c565b9650508601359250508082111561179257600080fd5b5061179f8582860161167e565b9150509250929050565b600181811c908216806117bd57607f821691505b6020821081036117dd57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60006001820161186657634e487b7160e01b600052601160045260246000fd5b5060010190565b601f82111561055f57600081815260208120601f850160051c810160208610156118945750805b601f850160051c820191505b818110156118b3578281556001016118a0565b505050505050565b67ffffffffffffffff8311156118d3576118d3611520565b6118e7836118e183546117a9565b8361186d565b6000601f84116001811461191b57600085156119035750838201355b600019600387901b1c1916600186901b178355611975565b600083815260209020601f19861690835b8281101561194c578685013582556020948501946001909201910161192c565b50868210156119695760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b6000835161198e818460208801611359565b8351908301906119a2818360208801611359565b01949350505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611a759083018461137d565b9695505050505050565b600060208284031215611a9157600080fd5b815161095f8161132656fea2646970667358221220fe9a1b1190ff4535d0bb0f9f57a14e64930dea43674eacc42c39cc1f89013b4964736f6c63430008120033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101425760003560e01c8063715018a6116100b8578063b88d4fde1161007c578063b88d4fde146102ae578063c87b56dd146102c1578063d0bbb0d7146102d4578063e985e9c5146102dd578063f2fde38b14610319578063fa36abdf1461032c57600080fd5b8063715018a6146102675780638da5cb5b1461026f578063926427441461028057806395d89b4114610293578063a22cb4651461029b57600080fd5b806333c41a901161010a57806333c41a90146101d75780633b452061146101fa57806342842e0e1461020d57806355f804b3146102205780636352211e1461023357806370a082311461024657600080fd5b806301ffc9a71461014757806306fdde031461016f578063081812fc14610184578063095ea7b3146101af57806323b872dd146101c4575b600080fd5b61015a61015536600461133c565b61033f565b60405190151581526020015b60405180910390f35b610177610391565b60405161016691906113a9565b6101976101923660046113bc565b610423565b6040516001600160a01b039091168152602001610166565b6101c26101bd3660046113f1565b61044a565b005b6101c26101d236600461141b565b610564565b61015a6101e53660046113bc565b60009081526007602052604090205460ff1690565b61015a6102083660046113f1565b610595565b6101c261021b36600461141b565b61064d565b6101c261022e366004611457565b610668565b6101976102413660046113bc565b61067d565b6102596102543660046114c9565b6106dd565b604051908152602001610166565b6101c2610763565b6000546001600160a01b0316610197565b6101c261028e3660046113bc565b610777565b6101776108a9565b6101c26102a93660046114e4565b6108b8565b6101c26102bc366004611567565b6108c7565b6101776102cf3660046113bc565b6108ff565b61025961012081565b61015a6102eb366004611627565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6101c26103273660046114c9565b610966565b6101c261033a3660046116e9565b6109df565b60006001600160e01b031982166380ac58cd60e01b148061037057506001600160e01b03198216635b5e139f60e01b145b8061038b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600180546103a0906117a9565b80601f01602080910402602001604051908101604052809291908181526020018280546103cc906117a9565b80156104195780601f106103ee57610100808354040283529160200191610419565b820191906000526020600020905b8154815290600101906020018083116103fc57829003601f168201915b5050505050905090565b600061042e82610ac5565b506000908152600560205260409020546001600160a01b031690565b60006104558261067d565b9050806001600160a01b0316836001600160a01b0316036104c75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806104e357506104e381336102eb565b6105555760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016104be565b61055f8383610b24565b505050565b61056e3382610b92565b61058a5760405162461bcd60e51b81526004016104be906117e3565b61055f838383610c11565b6001600160a01b0382166000908152600860209081526040808320805482518185028101850190935280835284938301828280156105f257602002820191906000526020600020905b8154815260200190600101908083116105de575b5050505050905060005b8151811015610642578382828151811061061857610618611830565b6020026020010151036106305760019250505061038b565b8061063a81611846565b9150506105fc565b506000949350505050565b61055f838383604051806020016040528060008152506108c7565b610670610d75565b600961055f8284836118bb565b6000818152600360205260408120546001600160a01b03168061038b5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016104be565b60006001600160a01b0382166107475760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016104be565b506001600160a01b031660009081526004602052604090205490565b61076b610d75565b6107756000610dcf565b565b61012081106107c05760405162461bcd60e51b8152602060048201526015602482015274546f6b656e204944206f7574206f662072616e676560581b60448201526064016104be565b60008181526007602052604090205460ff161561081f5760405162461bcd60e51b815260206004820152601760248201527f546f6b656e20494420616c7265616479206d696e74656400000000000000000060448201526064016104be565b6108293382610595565b6108845760405162461bcd60e51b815260206004820152602660248201527f596f7520617265206e6f742077686974656c697374656420666f722074686973604482015265103a37b5b2b760d11b60648201526084016104be565b61088e3382610e1f565b6000908152600760205260409020805460ff19166001179055565b6060600280546103a0906117a9565b6108c3338383610faa565b5050565b6108d13383610b92565b6108ed5760405162461bcd60e51b81526004016104be906117e3565b6108f984848484611078565b50505050565b606061090a82610ac5565b60006109146110ab565b90506000815111610934576040518060200160405280600081525061095f565b8061093e846110ba565b60405160200161094f92919061197c565b6040516020818303038152906040525b9392505050565b61096e610d75565b6001600160a01b0381166109d35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104be565b6109dc81610dcf565b50565b6109e7610d75565b8051825114610a385760405162461bcd60e51b815260206004820152601760248201527f4d69736d61746368656420696e7075742061727261797300000000000000000060448201526064016104be565b60005b825181101561055f5760086000848381518110610a5a57610a5a611830565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020828281518110610a9457610a94611830565b6020908102919091018101518254600181018455600093845291909220015580610abd81611846565b915050610a3b565b6000818152600360205260409020546001600160a01b03166109dc5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016104be565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610b598261067d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080610b9e8361067d565b9050806001600160a01b0316846001600160a01b03161480610be557506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b80610c095750836001600160a01b0316610bfe84610423565b6001600160a01b0316145b949350505050565b826001600160a01b0316610c248261067d565b6001600160a01b031614610c4a5760405162461bcd60e51b81526004016104be906119ab565b6001600160a01b038216610cac5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016104be565b826001600160a01b0316610cbf8261067d565b6001600160a01b031614610ce55760405162461bcd60e51b81526004016104be906119ab565b600081815260056020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260048552838620805460001901905590871680865283862080546001019055868652600390945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000546001600160a01b031633146107755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104be565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216610e755760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016104be565b6000818152600360205260409020546001600160a01b031615610eda5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016104be565b6000818152600360205260409020546001600160a01b031615610f3f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016104be565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b03160361100b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016104be565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611083848484610c11565b61108f8484848461114d565b6108f95760405162461bcd60e51b81526004016104be906119f0565b6060600980546103a0906117a9565b606060006110c78361124e565b600101905060008167ffffffffffffffff8111156110e7576110e7611520565b6040519080825280601f01601f191660200182016040528015611111576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461111b57509392505050565b60006001600160a01b0384163b1561124357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611191903390899088908890600401611a42565b6020604051808303816000875af19250505080156111cc575060408051601f3d908101601f191682019092526111c991810190611a7f565b60015b611229573d8080156111fa576040519150601f19603f3d011682016040523d82523d6000602084013e6111ff565b606091505b5080516000036112215760405162461bcd60e51b81526004016104be906119f0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610c09565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061128d5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106112b9576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106112d757662386f26fc10000830492506010015b6305f5e10083106112ef576305f5e100830492506008015b612710831061130357612710830492506004015b60648310611315576064830492506002015b600a831061038b5760010192915050565b6001600160e01b0319811681146109dc57600080fd5b60006020828403121561134e57600080fd5b813561095f81611326565b60005b8381101561137457818101518382015260200161135c565b50506000910152565b60008151808452611395816020860160208601611359565b601f01601f19169290920160200192915050565b60208152600061095f602083018461137d565b6000602082840312156113ce57600080fd5b5035919050565b80356001600160a01b03811681146113ec57600080fd5b919050565b6000806040838503121561140457600080fd5b61140d836113d5565b946020939093013593505050565b60008060006060848603121561143057600080fd5b611439846113d5565b9250611447602085016113d5565b9150604084013590509250925092565b6000806020838503121561146a57600080fd5b823567ffffffffffffffff8082111561148257600080fd5b818501915085601f83011261149657600080fd5b8135818111156114a557600080fd5b8660208285010111156114b757600080fd5b60209290920196919550909350505050565b6000602082840312156114db57600080fd5b61095f826113d5565b600080604083850312156114f757600080fd5b611500836113d5565b91506020830135801515811461151557600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561155f5761155f611520565b604052919050565b6000806000806080858703121561157d57600080fd5b611586856113d5565b935060206115958187016113d5565b935060408601359250606086013567ffffffffffffffff808211156115b957600080fd5b818801915088601f8301126115cd57600080fd5b8135818111156115df576115df611520565b6115f1601f8201601f19168501611536565b9150808252898482850101111561160757600080fd5b808484018584013760008482840101525080935050505092959194509250565b6000806040838503121561163a57600080fd5b611643836113d5565b9150611651602084016113d5565b90509250929050565b600067ffffffffffffffff82111561167457611674611520565b5060051b60200190565b600082601f83011261168f57600080fd5b813560206116a461169f8361165a565b611536565b82815260059290921b840181019181810190868411156116c357600080fd5b8286015b848110156116de57803583529183019183016116c7565b509695505050505050565b600080604083850312156116fc57600080fd5b823567ffffffffffffffff8082111561171457600080fd5b818501915085601f83011261172857600080fd5b8135602061173861169f8361165a565b82815260059290921b8401810191818101908984111561175757600080fd5b948201945b8386101561177c5761176d866113d5565b8252948201949082019061175c565b9650508601359250508082111561179257600080fd5b5061179f8582860161167e565b9150509250929050565b600181811c908216806117bd57607f821691505b6020821081036117dd57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60006001820161186657634e487b7160e01b600052601160045260246000fd5b5060010190565b601f82111561055f57600081815260208120601f850160051c810160208610156118945750805b601f850160051c820191505b818110156118b3578281556001016118a0565b505050505050565b67ffffffffffffffff8311156118d3576118d3611520565b6118e7836118e183546117a9565b8361186d565b6000601f84116001811461191b57600085156119035750838201355b600019600387901b1c1916600186901b178355611975565b600083815260209020601f19861690835b8281101561194c578685013582556020948501946001909201910161192c565b50868210156119695760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b6000835161198e818460208801611359565b8351908301906119a2818360208801611359565b01949350505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611a759083018461137d565b9695505050505050565b600060208284031215611a9157600080fd5b815161095f8161132656fea2646970667358221220fe9a1b1190ff4535d0bb0f9f57a14e64930dea43674eacc42c39cc1f89013b4964736f6c63430008120033

Deployed Bytecode Sourcemap

56672:1779:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40753:305;;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;40753:305:0;;;;;;;;41681:100;;;:::i;:::-;;;;;;;:::i;43193:171::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;43193:171:0;1533:203:1;42711:416:0;;;;;;:::i;:::-;;:::i;:::-;;43893:301;;;;;;:::i;:::-;;:::i;58336:112::-;;;;;;:::i;:::-;58393:4;58417:23;;;:13;:23;;;;;;;;;58336:112;57936:392;;;;;;:::i;:::-;;:::i;44265:151::-;;;;;;:::i;:::-;;:::i;57485:106::-;;;;;;:::i;:::-;;:::i;41391:223::-;;;;;;:::i;:::-;;:::i;41122:207::-;;;;;;:::i;:::-;;:::i;:::-;;;3445:25:1;;;3433:2;3418:18;41122:207:0;3299:177:1;20091:103:0;;;:::i;19450:87::-;19496:7;19523:6;-1:-1:-1;;;;;19523:6:0;19450:87;;56946:371;;;;;;:::i;:::-;;:::i;41850:104::-;;;:::i;43436:155::-;;;;;;:::i;:::-;;:::i;44487:279::-;;;;;;:::i;:::-;;:::i;42025:281::-;;;;;;:::i;:::-;;:::i;56710:45::-;;56752:3;56710:45;;43662:164;;;;;;:::i;:::-;-1:-1:-1;;;;;43783:25:0;;;43759:4;43783:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;43662:164;20349:201;;;;;;:::i;:::-;;:::i;57599:329::-;;;;;;:::i;:::-;;:::i;40753:305::-;40855:4;-1:-1:-1;;;;;;40892:40:0;;-1:-1:-1;;;40892:40:0;;:105;;-1:-1:-1;;;;;;;40949:48:0;;-1:-1:-1;;;40949:48:0;40892:105;:158;;;-1:-1:-1;;;;;;;;;;33486:40:0;;;41014:36;40872:178;40753:305;-1:-1:-1;;40753:305:0:o;41681:100::-;41735:13;41768:5;41761:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41681:100;:::o;43193:171::-;43269:7;43289:23;43304:7;43289:14;:23::i;:::-;-1:-1:-1;43332:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;43332:24:0;;43193:171::o;42711:416::-;42792:13;42808:23;42823:7;42808:14;:23::i;:::-;42792:39;;42856:5;-1:-1:-1;;;;;42850:11:0;:2;-1:-1:-1;;;;;42850:11:0;;42842:57;;;;-1:-1:-1;;;42842:57:0;;8088:2:1;42842:57:0;;;8070:21:1;8127:2;8107:18;;;8100:30;8166:34;8146:18;;;8139:62;-1:-1:-1;;;8217:18:1;;;8210:31;8258:19;;42842:57:0;;;;;;;;;18081:10;-1:-1:-1;;;;;42934:21:0;;;;:62;;-1:-1:-1;42959:37:0;42976:5;18081:10;43662:164;:::i;42959:37::-;42912:173;;;;-1:-1:-1;;;42912:173:0;;8490:2:1;42912:173:0;;;8472:21:1;8529:2;8509:18;;;8502:30;8568:34;8548:18;;;8541:62;8639:31;8619:18;;;8612:59;8688:19;;42912:173:0;8288:425:1;42912:173:0;43098:21;43107:2;43111:7;43098:8;:21::i;:::-;42781:346;42711:416;;:::o;43893:301::-;44054:41;18081:10;44087:7;44054:18;:41::i;:::-;44046:99;;;;-1:-1:-1;;;44046:99:0;;;;;;;:::i;:::-;44158:28;44168:4;44174:2;44178:7;44158:9;:28::i;57936:392::-;-1:-1:-1;;;;;58080:41:0;;58024:4;58080:41;;;:31;:41;;;;;;;;58041:80;;;;;;;;;;;;;;;;;58024:4;;58041:80;;58080:41;58041:80;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58139:6;58134:164;58153:19;:26;58149:1;:30;58134:164;;;58231:8;58205:19;58225:1;58205:22;;;;;;;;:::i;:::-;;;;;;;:34;58201:86;;58267:4;58260:11;;;;;;58201:86;58181:3;;;;:::i;:::-;;;;58134:164;;;-1:-1:-1;58315:5:0;;57936:392;-1:-1:-1;;;;57936:392:0:o;44265:151::-;44369:39;44386:4;44392:2;44396:7;44369:39;;;;;;;;;;;;:16;:39::i;57485:106::-;19336:13;:11;:13::i;:::-;57560::::1;:23;57576:7:::0;;57560:13;:23:::1;:::i;41391:223::-:0;41463:7;46124:16;;;:7;:16;;;;;;-1:-1:-1;;;;;46124:16:0;;41527:56;;;;-1:-1:-1;;;41527:56:0;;11761:2:1;41527:56:0;;;11743:21:1;11800:2;11780:18;;;11773:30;-1:-1:-1;;;11819:18:1;;;11812:54;11883:18;;41527:56:0;11559:348:1;41122:207:0;41194:7;-1:-1:-1;;;;;41222:19:0;;41214:73;;;;-1:-1:-1;;;41214:73:0;;12114:2:1;41214:73:0;;;12096:21:1;12153:2;12133:18;;;12126:30;12192:34;12172:18;;;12165:62;-1:-1:-1;;;12243:18:1;;;12236:39;12292:19;;41214:73:0;11912:405:1;41214:73:0;-1:-1:-1;;;;;;41305:16:0;;;;;:9;:16;;;;;;;41122:207::o;20091:103::-;19336:13;:11;:13::i;:::-;20156:30:::1;20183:1;20156:18;:30::i;:::-;20091:103::o:0;56946:371::-;56752:3;57007:8;:26;56999:60;;;;-1:-1:-1;;;56999:60:0;;12524:2:1;56999:60:0;;;12506:21:1;12563:2;12543:18;;;12536:30;-1:-1:-1;;;12582:18:1;;;12575:51;12643:18;;56999:60:0;12322:345:1;56999:60:0;58393:4;58417:23;;;:13;:23;;;;;;;;57078:19;57070:55;;;;-1:-1:-1;;;57070:55:0;;12874:2:1;57070:55:0;;;12856:21:1;12913:2;12893:18;;;12886:30;12952:25;12932:18;;;12925:53;12995:18;;57070:55:0;12672:347:1;57070:55:0;57144:43;57166:10;57178:8;57144:21;:43::i;:::-;57136:94;;;;-1:-1:-1;;;57136:94:0;;13226:2:1;57136:94:0;;;13208:21:1;13265:2;13245:18;;;13238:30;13304:34;13284:18;;;13277:62;-1:-1:-1;;;13355:18:1;;;13348:36;13401:19;;57136:94:0;13024:402:1;57136:94:0;57241:27;57247:10;57259:8;57241:5;:27::i;:::-;57279:23;;;;:13;:23;;;;;:30;;-1:-1:-1;;57279:30:0;57305:4;57279:30;;;56946:371::o;41850:104::-;41906:13;41939:7;41932:14;;;;;:::i;43436:155::-;43531:52;18081:10;43564:8;43574;43531:18;:52::i;:::-;43436:155;;:::o;44487:279::-;44618:41;18081:10;44651:7;44618:18;:41::i;:::-;44610:99;;;;-1:-1:-1;;;44610:99:0;;;;;;;:::i;:::-;44720:38;44734:4;44740:2;44744:7;44753:4;44720:13;:38::i;:::-;44487:279;;;;:::o;42025:281::-;42098:13;42124:23;42139:7;42124:14;:23::i;:::-;42160:21;42184:10;:8;:10::i;:::-;42160:34;;42236:1;42218:7;42212:21;:25;:86;;;;;;;;;;;;;;;;;42264:7;42273:18;:7;:16;:18::i;:::-;42247:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;42212:86;42205:93;42025:281;-1:-1:-1;;;42025:281:0:o;20349:201::-;19336:13;:11;:13::i;:::-;-1:-1:-1;;;;;20438:22:0;::::1;20430:73;;;::::0;-1:-1:-1;;;20430:73:0;;14134:2:1;20430:73:0::1;::::0;::::1;14116:21:1::0;14173:2;14153:18;;;14146:30;14212:34;14192:18;;;14185:62;-1:-1:-1;;;14263:18:1;;;14256:36;14309:19;;20430:73:0::1;13932:402:1::0;20430:73:0::1;20514:28;20533:8;20514:18;:28::i;:::-;20349:201:::0;:::o;57599:329::-;19336:13;:11;:13::i;:::-;57744:9:::1;:16;57723:10;:17;:37;57715:73;;;::::0;-1:-1:-1;;;57715:73:0;;14541:2:1;57715:73:0::1;::::0;::::1;14523:21:1::0;14580:2;14560:18;;;14553:30;14619:25;14599:18;;;14592:53;14662:18;;57715:73:0::1;14339:347:1::0;57715:73:0::1;57801:6;57797:128;57817:10;:17;57813:1;:21;57797:128;;;57852:31;:46;57884:10;57895:1;57884:13;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;57852:46:0::1;-1:-1:-1::0;;;;;57852:46:0::1;;;;;;;;;;;;57904:9;57914:1;57904:12;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;;;57852:65;;::::1;::::0;::::1;::::0;;-1:-1:-1;57852:65:0;;;;;;;::::1;::::0;57836:3;::::1;::::0;::::1;:::i;:::-;;;;57797:128;;52756:135:::0;46526:4;46124:16;;;:7;:16;;;;;;-1:-1:-1;;;;;46124:16:0;52830:53;;;;-1:-1:-1;;;52830:53:0;;11761:2:1;52830:53:0;;;11743:21:1;11800:2;11780:18;;;11773:30;-1:-1:-1;;;11819:18:1;;;11812:54;11883:18;;52830:53:0;11559:348:1;52069:174:0;52144:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;52144:29:0;-1:-1:-1;;;;;52144:29:0;;;;;;;;:24;;52198:23;52144:24;52198:14;:23::i;:::-;-1:-1:-1;;;;;52189:46:0;;;;;;;;;;;52069:174;;:::o;46756:264::-;46849:4;46866:13;46882:23;46897:7;46882:14;:23::i;:::-;46866:39;;46935:5;-1:-1:-1;;;;;46924:16:0;:7;-1:-1:-1;;;;;46924:16:0;;:52;;;-1:-1:-1;;;;;;43783:25:0;;;43759:4;43783:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;46944:32;46924:87;;;;47004:7;-1:-1:-1;;;;;46980:31:0;:20;46992:7;46980:11;:20::i;:::-;-1:-1:-1;;;;;46980:31:0;;46924:87;46916:96;46756:264;-1:-1:-1;;;;46756:264:0:o;50721:1229::-;50846:4;-1:-1:-1;;;;;50819:31:0;:23;50834:7;50819:14;:23::i;:::-;-1:-1:-1;;;;;50819:31:0;;50811:81;;;;-1:-1:-1;;;50811:81:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;50911:16:0;;50903:65;;;;-1:-1:-1;;;50903:65:0;;15299:2:1;50903:65:0;;;15281:21:1;15338:2;15318:18;;;15311:30;15377:34;15357:18;;;15350:62;-1:-1:-1;;;15428:18:1;;;15421:34;15472:19;;50903:65:0;15097:400:1;50903:65:0;51153:4;-1:-1:-1;;;;;51126:31:0;:23;51141:7;51126:14;:23::i;:::-;-1:-1:-1;;;;;51126:31:0;;51118:81;;;;-1:-1:-1;;;51118:81:0;;;;;;;:::i;:::-;51271:24;;;;:15;:24;;;;;;;;51264:31;;-1:-1:-1;;;;;;51264:31:0;;;;;;-1:-1:-1;;;;;51747:15:0;;;;;;:9;:15;;;;;:20;;-1:-1:-1;;51747:20:0;;;51782:13;;;;;;;;;:18;;51264:31;51782:18;;;51822:16;;;:7;:16;;;;;;:21;;;;;;;;;;51861:27;;51287:7;;51861:27;;;42781:346;42711:416;;:::o;19615:132::-;19496:7;19523:6;-1:-1:-1;;;;;19523:6:0;18081:10;19679:23;19671:68;;;;-1:-1:-1;;;19671:68:0;;15704:2:1;19671:68:0;;;15686:21:1;;;15723:18;;;15716:30;15782:34;15762:18;;;15755:62;15834:18;;19671:68:0;15502:356:1;20710:191:0;20784:16;20803:6;;-1:-1:-1;;;;;20820:17:0;;;-1:-1:-1;;;;;;20820:17:0;;;;;;20853:40;;20803:6;;;;;;;20853:40;;20784:16;20853:40;20773:128;20710:191;:::o;48320:942::-;-1:-1:-1;;;;;48400:16:0;;48392:61;;;;-1:-1:-1;;;48392:61:0;;16065:2:1;48392:61:0;;;16047:21:1;;;16084:18;;;16077:30;16143:34;16123:18;;;16116:62;16195:18;;48392:61:0;15863:356:1;48392:61:0;46526:4;46124:16;;;:7;:16;;;;;;-1:-1:-1;;;;;46124:16:0;46550:31;48464:58;;;;-1:-1:-1;;;48464:58:0;;16426:2:1;48464:58:0;;;16408:21:1;16465:2;16445:18;;;16438:30;16504;16484:18;;;16477:58;16552:18;;48464:58:0;16224:352:1;48464:58:0;46526:4;46124:16;;;:7;:16;;;;;;-1:-1:-1;;;;;46124:16:0;46550:31;48673:58;;;;-1:-1:-1;;;48673:58:0;;16426:2:1;48673:58:0;;;16408:21:1;16465:2;16445:18;;;16438:30;16504;16484:18;;;16477:58;16552:18;;48673:58:0;16224:352:1;48673:58:0;-1:-1:-1;;;;;49080:13:0;;;;;;:9;:13;;;;;;;;:18;;49097:1;49080:18;;;49122:16;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;49122:21:0;;;;;49161:33;49130:7;;49080:13;;49161:33;;49080:13;;49161:33;43436:155;;:::o;52386:281::-;52507:8;-1:-1:-1;;;;;52498:17:0;:5;-1:-1:-1;;;;;52498:17:0;;52490:55;;;;-1:-1:-1;;;52490:55:0;;16783:2:1;52490:55:0;;;16765:21:1;16822:2;16802:18;;;16795:30;16861:27;16841:18;;;16834:55;16906:18;;52490:55:0;16581:349:1;52490:55:0;-1:-1:-1;;;;;52556:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;52556:46:0;;;;;;;;;;52618:41;;540::1;;;52618::0;;513:18:1;52618:41:0;;;;;;;52386:281;;;:::o;45647:270::-;45760:28;45770:4;45776:2;45780:7;45760:9;:28::i;:::-;45807:47;45830:4;45836:2;45840:7;45849:4;45807:22;:47::i;:::-;45799:110;;;;-1:-1:-1;;;45799:110:0;;;;;;;:::i;57362:114::-;57422:13;57455;57448:20;;;;;:::i;14920:716::-;14976:13;15027:14;15044:17;15055:5;15044:10;:17::i;:::-;15064:1;15044:21;15027:38;;15080:20;15114:6;15103:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;15103:18:0;-1:-1:-1;15080:41:0;-1:-1:-1;15245:28:0;;;15261:2;15245:28;15302:288;-1:-1:-1;;15334:5:0;-1:-1:-1;;;15471:2:0;15460:14;;15455:30;15334:5;15442:44;15532:2;15523:11;;;-1:-1:-1;15553:21:0;15302:288;15553:21;-1:-1:-1;15611:6:0;14920:716;-1:-1:-1;;;14920:716:0:o;53455:853::-;53609:4;-1:-1:-1;;;;;53630:13:0;;22677:19;:23;53626:675;;53666:71;;-1:-1:-1;;;53666:71:0;;-1:-1:-1;;;;;53666:36:0;;;;;:71;;18081:10;;53717:4;;53723:7;;53732:4;;53666:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;53666:71:0;;;;;;;;-1:-1:-1;;53666:71:0;;;;;;;;;;;;:::i;:::-;;;53662:584;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53907:6;:13;53924:1;53907:18;53903:328;;53950:60;;-1:-1:-1;;;53950:60:0;;;;;;;:::i;53903:328::-;54181:6;54175:13;54166:6;54162:2;54158:15;54151:38;53662:584;-1:-1:-1;;;;;;53788:51:0;-1:-1:-1;;;53788:51:0;;-1:-1:-1;53781:58:0;;53626:675;-1:-1:-1;54285:4:0;53455:853;;;;;;:::o;11754:948::-;11807:7;;-1:-1:-1;;;11885:17:0;;11881:106;;-1:-1:-1;;;11923:17:0;;;-1:-1:-1;11969:2:0;11959:12;11881:106;12014:8;12005:5;:17;12001:106;;12052:8;12043:17;;;-1:-1:-1;12089:2:0;12079:12;12001:106;12134:8;12125:5;:17;12121:106;;12172:8;12163:17;;;-1:-1:-1;12209:2:0;12199:12;12121:106;12254:7;12245:5;:16;12241:103;;12291:7;12282:16;;;-1:-1:-1;12327:1:0;12317:11;12241:103;12371:7;12362:5;:16;12358:103;;12408:7;12399:16;;;-1:-1:-1;12444:1:0;12434:11;12358:103;12488:7;12479:5;:16;12475:103;;12525:7;12516:16;;;-1:-1:-1;12561:1:0;12551:11;12475:103;12605:7;12596:5;:16;12592:68;;12643:1;12633:11;12688:6;11754:948;-1:-1:-1;;11754:948:0:o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;1919:254::-;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:1:o;2178:328::-;2255:6;2263;2271;2324:2;2312:9;2303:7;2299:23;2295:32;2292:52;;;2340:1;2337;2330:12;2292:52;2363:29;2382:9;2363:29;:::i;:::-;2353:39;;2411:38;2445:2;2434:9;2430:18;2411:38;:::i;:::-;2401:48;;2496:2;2485:9;2481:18;2468:32;2458:42;;2178:328;;;;;:::o;2511:592::-;2582:6;2590;2643:2;2631:9;2622:7;2618:23;2614:32;2611:52;;;2659:1;2656;2649:12;2611:52;2699:9;2686:23;2728:18;2769:2;2761:6;2758:14;2755:34;;;2785:1;2782;2775:12;2755:34;2823:6;2812:9;2808:22;2798:32;;2868:7;2861:4;2857:2;2853:13;2849:27;2839:55;;2890:1;2887;2880:12;2839:55;2930:2;2917:16;2956:2;2948:6;2945:14;2942:34;;;2972:1;2969;2962:12;2942:34;3017:7;3012:2;3003:6;2999:2;2995:15;2991:24;2988:37;2985:57;;;3038:1;3035;3028:12;2985:57;3069:2;3061:11;;;;;3091:6;;-1:-1:-1;2511:592:1;;-1:-1:-1;;;;2511:592:1:o;3108:186::-;3167:6;3220:2;3208:9;3199:7;3195:23;3191:32;3188:52;;;3236:1;3233;3226:12;3188:52;3259:29;3278:9;3259:29;:::i;3481:347::-;3546:6;3554;3607:2;3595:9;3586:7;3582:23;3578:32;3575:52;;;3623:1;3620;3613:12;3575:52;3646:29;3665:9;3646:29;:::i;:::-;3636:39;;3725:2;3714:9;3710:18;3697:32;3772:5;3765:13;3758:21;3751:5;3748:32;3738:60;;3794:1;3791;3784:12;3738:60;3817:5;3807:15;;;3481:347;;;;;:::o;3833:127::-;3894:10;3889:3;3885:20;3882:1;3875:31;3925:4;3922:1;3915:15;3949:4;3946:1;3939:15;3965:275;4036:2;4030:9;4101:2;4082:13;;-1:-1:-1;;4078:27:1;4066:40;;4136:18;4121:34;;4157:22;;;4118:62;4115:88;;;4183:18;;:::i;:::-;4219:2;4212:22;3965:275;;-1:-1:-1;3965:275:1:o;4245:980::-;4340:6;4348;4356;4364;4417:3;4405:9;4396:7;4392:23;4388:33;4385:53;;;4434:1;4431;4424:12;4385:53;4457:29;4476:9;4457:29;:::i;:::-;4447:39;;4505:2;4526:38;4560:2;4549:9;4545:18;4526:38;:::i;:::-;4516:48;;4611:2;4600:9;4596:18;4583:32;4573:42;;4666:2;4655:9;4651:18;4638:32;4689:18;4730:2;4722:6;4719:14;4716:34;;;4746:1;4743;4736:12;4716:34;4784:6;4773:9;4769:22;4759:32;;4829:7;4822:4;4818:2;4814:13;4810:27;4800:55;;4851:1;4848;4841:12;4800:55;4887:2;4874:16;4909:2;4905;4902:10;4899:36;;;4915:18;;:::i;:::-;4957:53;5000:2;4981:13;;-1:-1:-1;;4977:27:1;4973:36;;4957:53;:::i;:::-;4944:66;;5033:2;5026:5;5019:17;5073:7;5068:2;5063;5059;5055:11;5051:20;5048:33;5045:53;;;5094:1;5091;5084:12;5045:53;5149:2;5144;5140;5136:11;5131:2;5124:5;5120:14;5107:45;5193:1;5188:2;5183;5176:5;5172:14;5168:23;5161:34;;5214:5;5204:15;;;;;4245:980;;;;;;;:::o;5230:260::-;5298:6;5306;5359:2;5347:9;5338:7;5334:23;5330:32;5327:52;;;5375:1;5372;5365:12;5327:52;5398:29;5417:9;5398:29;:::i;:::-;5388:39;;5446:38;5480:2;5469:9;5465:18;5446:38;:::i;:::-;5436:48;;5230:260;;;;;:::o;5495:183::-;5555:4;5588:18;5580:6;5577:30;5574:56;;;5610:18;;:::i;:::-;-1:-1:-1;5655:1:1;5651:14;5667:4;5647:25;;5495:183::o;5683:662::-;5737:5;5790:3;5783:4;5775:6;5771:17;5767:27;5757:55;;5808:1;5805;5798:12;5757:55;5844:6;5831:20;5870:4;5894:60;5910:43;5950:2;5910:43;:::i;:::-;5894:60;:::i;:::-;5988:15;;;6074:1;6070:10;;;;6058:23;;6054:32;;;6019:12;;;;6098:15;;;6095:35;;;6126:1;6123;6116:12;6095:35;6162:2;6154:6;6150:15;6174:142;6190:6;6185:3;6182:15;6174:142;;;6256:17;;6244:30;;6294:12;;;;6207;;6174:142;;;-1:-1:-1;6334:5:1;5683:662;-1:-1:-1;;;;;;5683:662:1:o;6350:1146::-;6468:6;6476;6529:2;6517:9;6508:7;6504:23;6500:32;6497:52;;;6545:1;6542;6535:12;6497:52;6585:9;6572:23;6614:18;6655:2;6647:6;6644:14;6641:34;;;6671:1;6668;6661:12;6641:34;6709:6;6698:9;6694:22;6684:32;;6754:7;6747:4;6743:2;6739:13;6735:27;6725:55;;6776:1;6773;6766:12;6725:55;6812:2;6799:16;6834:4;6858:60;6874:43;6914:2;6874:43;:::i;6858:60::-;6952:15;;;7034:1;7030:10;;;;7022:19;;7018:28;;;6983:12;;;;7058:19;;;7055:39;;;7090:1;7087;7080:12;7055:39;7114:11;;;;7134:148;7150:6;7145:3;7142:15;7134:148;;;7216:23;7235:3;7216:23;:::i;:::-;7204:36;;7167:12;;;;7260;;;;7134:148;;;7301:5;-1:-1:-1;;7344:18:1;;7331:32;;-1:-1:-1;;7375:16:1;;;7372:36;;;7404:1;7401;7394:12;7372:36;;7427:63;7482:7;7471:8;7460:9;7456:24;7427:63;:::i;:::-;7417:73;;;6350:1146;;;;;:::o;7501:380::-;7580:1;7576:12;;;;7623;;;7644:61;;7698:4;7690:6;7686:17;7676:27;;7644:61;7751:2;7743:6;7740:14;7720:18;7717:38;7714:161;;7797:10;7792:3;7788:20;7785:1;7778:31;7832:4;7829:1;7822:15;7860:4;7857:1;7850:15;7714:161;;7501:380;;;:::o;8718:409::-;8920:2;8902:21;;;8959:2;8939:18;;;8932:30;8998:34;8993:2;8978:18;;8971:62;-1:-1:-1;;;9064:2:1;9049:18;;9042:43;9117:3;9102:19;;8718:409::o;9132:127::-;9193:10;9188:3;9184:20;9181:1;9174:31;9224:4;9221:1;9214:15;9248:4;9245:1;9238:15;9264:232;9303:3;9324:17;;;9321:140;;9383:10;9378:3;9374:20;9371:1;9364:31;9418:4;9415:1;9408:15;9446:4;9443:1;9436:15;9321:140;-1:-1:-1;9488:1:1;9477:13;;9264:232::o;9627:545::-;9729:2;9724:3;9721:11;9718:448;;;9765:1;9790:5;9786:2;9779:17;9835:4;9831:2;9821:19;9905:2;9893:10;9889:19;9886:1;9882:27;9876:4;9872:38;9941:4;9929:10;9926:20;9923:47;;;-1:-1:-1;9964:4:1;9923:47;10019:2;10014:3;10010:12;10007:1;10003:20;9997:4;9993:31;9983:41;;10074:82;10092:2;10085:5;10082:13;10074:82;;;10137:17;;;10118:1;10107:13;10074:82;;;10078:3;;;9627:545;;;:::o;10348:1206::-;10472:18;10467:3;10464:27;10461:53;;;10494:18;;:::i;:::-;10523:94;10613:3;10573:38;10605:4;10599:11;10573:38;:::i;:::-;10567:4;10523:94;:::i;:::-;10643:1;10668:2;10663:3;10660:11;10685:1;10680:616;;;;11340:1;11357:3;11354:93;;;-1:-1:-1;11413:19:1;;;11400:33;11354:93;-1:-1:-1;;10305:1:1;10301:11;;;10297:24;10293:29;10283:40;10329:1;10325:11;;;10280:57;11460:78;;10653:895;;10680:616;9574:1;9567:14;;;9611:4;9598:18;;-1:-1:-1;;10716:17:1;;;10817:9;10839:229;10853:7;10850:1;10847:14;10839:229;;;10942:19;;;10929:33;10914:49;;11049:4;11034:20;;;;11002:1;10990:14;;;;10869:12;10839:229;;;10843:3;11096;11087:7;11084:16;11081:159;;;11220:1;11216:6;11210:3;11204;11201:1;11197:11;11193:21;11189:34;11185:39;11172:9;11167:3;11163:19;11150:33;11146:79;11138:6;11131:95;11081:159;;;11283:1;11277:3;11274:1;11270:11;11266:19;11260:4;11253:33;10653:895;;;10348:1206;;;:::o;13431:496::-;13610:3;13648:6;13642:13;13664:66;13723:6;13718:3;13711:4;13703:6;13699:17;13664:66;:::i;:::-;13793:13;;13752:16;;;;13815:70;13793:13;13752:16;13862:4;13850:17;;13815:70;:::i;:::-;13901:20;;13431:496;-1:-1:-1;;;;13431:496:1:o;14691:401::-;14893:2;14875:21;;;14932:2;14912:18;;;14905:30;14971:34;14966:2;14951:18;;14944:62;-1:-1:-1;;;15037:2:1;15022:18;;15015:35;15082:3;15067:19;;14691:401::o;16935:414::-;17137:2;17119:21;;;17176:2;17156:18;;;17149:30;17215:34;17210:2;17195:18;;17188:62;-1:-1:-1;;;17281:2:1;17266:18;;17259:48;17339:3;17324:19;;16935:414::o;17486:489::-;-1:-1:-1;;;;;17755:15:1;;;17737:34;;17807:15;;17802:2;17787:18;;17780:43;17854:2;17839:18;;17832:34;;;17902:3;17897:2;17882:18;;17875:31;;;17680:4;;17923:46;;17949:19;;17941:6;17923:46;:::i;:::-;17915:54;17486:489;-1:-1:-1;;;;;;17486:489:1:o;17980:249::-;18049:6;18102:2;18090:9;18081:7;18077:23;18073:32;18070:52;;;18118:1;18115;18108:12;18070:52;18150:9;18144:16;18169:30;18193:5;18169:30;:::i

Swarm Source

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