ETH Price: $3,354.64 (+0.60%)
Gas: 8.65 Gwei

Token

HouseOfSoles (HoS)
 

Overview

Max Total Supply

333 HoS

Holders

174

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 HoS
0x880541c5DF65486E45fe7c592301E23e3d670Aca
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:
HouseOfSoles

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-11-10
*/

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


// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @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 (last updated v5.0.0) (utils/introspection/ERC165.sol)

pragma solidity ^0.8.20;


/**
 * @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);
 * }
 * ```
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

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


// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.20;

/**
 * @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 v5.0.0) (utils/math/Math.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Muldiv operation overflow.
     */
    error MathOverflowedMulDiv();

    enum Rounding {
        Floor, // Toward negative infinity
        Ceil, // Toward positive infinity
        Trunc, // Toward zero
        Expand // Away from zero
    }

    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

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

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

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

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

    /**
     * @dev Returns the 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 towards infinity instead
     * of rounding towards zero.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        if (b == 0) {
            // Guarantee the same behavior as in a regular Solidity division.
            return a / b;
        }

        // (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 = x * y; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                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.
            if (denominator <= prod1) {
                revert MathOverflowedMulDiv();
            }

            ///////////////////////////////////////////////
            // 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.

            uint256 twos = denominator & (0 - denominator);
            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 (unsignedRoundsUp(rounding) && 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
     * towards zero.
     *
     * 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 + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2 of a positive value rounded towards zero.
     * 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 + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10 of a positive value rounded towards zero.
     * 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 + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256 of a positive value rounded towards zero.
     * 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 + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
        }
    }

    /**
     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
     */
    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
        return uint8(rounding) % 2 == 1;
    }
}

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


// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)

pragma solidity ^0.8.20;



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

    /**
     * @dev The `value` string doesn't fit in the specified `length`.
     */
    error StringsInsufficientHexLength(uint256 value, uint256 length);

    /**
     * @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), HEX_DIGITS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toStringSigned(int256 value) internal pure returns (string memory) {
        return string.concat(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) {
        uint256 localValue = value;
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = HEX_DIGITS[localValue & 0xf];
            localValue >>= 4;
        }
        if (localValue != 0) {
            revert StringsInsufficientHexLength(value, length);
        }
        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 bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

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


// OpenZeppelin Contracts (last updated v5.0.0) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @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 v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;


/**
 * @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.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @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 {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @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 {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _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: erc721a/contracts/IERC721A.sol


// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of ERC721A.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the
     * ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    // =============================================================
    //                            IERC721
    // =============================================================

    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

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

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

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

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

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

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

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

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

// File: erc721a/contracts/extensions/IERC721AQueryable.sol


// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;


/**
 * @dev Interface of ERC721AQueryable.
 */
interface IERC721AQueryable is IERC721A {
    /**
     * Invalid query range (`start` >= `stop`).
     */
    error InvalidQueryRange();

    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *
     * - `addr = address(0)`
     * - `startTimestamp = 0`
     * - `burned = false`
     * - `extraData = 0`
     *
     * If the `tokenId` is burned:
     *
     * - `addr = <Address of owner before token was burned>`
     * - `startTimestamp = <Timestamp when token was burned>`
     * - `burned = true`
     * - `extraData = <Extra data when token was burned>`
     *
     * Otherwise:
     *
     * - `addr = <Address of owner>`
     * - `startTimestamp = <Timestamp of start of ownership>`
     * - `burned = false`
     * - `extraData = <Extra data at start of ownership>`
     */
    function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory);

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start < stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view returns (uint256[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(`totalSupply`) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K collections should be fine).
     */
    function tokensOfOwner(address owner) external view returns (uint256[] memory);
}

// File: erc721a/contracts/ERC721A.sol


// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;


/**
 * @dev Interface of ERC721 token receiver.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================

    // Mask of an entry in packed address data.
    uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant _BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant _BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant _BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant _BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant _BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The bit position of `extraData` in packed ownership.
    uint256 private constant _BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with {_mintERC2309}.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID to be minted.
    uint256 private _currentIndex;

    // The number of tokens burned.
    uint256 private _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See {_packedOwnershipOf} implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

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

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

    // =============================================================
    //                          CONSTRUCTOR
    // =============================================================

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

    /**
     * @dev Returns the starting token ID.
     * To change the starting token ID, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view virtual returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * @dev Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view virtual returns (uint256) {
        // Counter underflow is impossible as `_currentIndex` does not decrement,
        // and it is initialized to `_startTokenId()`.
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view virtual returns (uint256) {
        return _burnCounter;
    }

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return uint64(_packedAddressData[owner] >> _BITPOS_AUX);
    }

    /**
     * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal virtual {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes
        // of the XOR of all function selectors in the interface.
        // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
        // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

    /**
     * @dev Returns the token collection name.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

    /**
     * @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, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @dev Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around over time.
     */
    function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal virtual {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & _BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an initialized ownership slot
                        // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                        // before an unintialized ownership slot
                        // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                        // Hence, `curr` will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed will be zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
        ownership.burned = packed & _BITMASK_BURNED != 0;
        ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
            result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

    /**
     * @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) public payable virtual override {
        address owner = ownerOf(tokenId);

        if (_msgSenderERC721A() != owner)
            if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                revert ApprovalCallerNotOwnerNorApproved();
            }

        _tokenApprovals[tokenId].value = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @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) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

    /**
     * @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. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
     */
    function _isSenderApprovedOrOwner(
        address approvedAddress,
        address owner,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, _BITMASK_ADDRESS)
            // `msgSender == owner || msgSender == approvedAddress`.
            result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) public payable virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @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 memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token IDs
     * are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token IDs
     * have been transferred. This includes minting.
     * And also called after one token has been burned.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * `from` - Previous owner of the given token ID.
     * `to` - Target address that will receive the token.
     * `tokenId` - Token ID to be transferred.
     * `_data` - Optional data to send along with the call.
     *
     * Returns whether the call correctly returned the expected magic value.
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _mint(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            // The duplicated `log4` removes an extra check and reduces stack juggling.
            // The assembly, together with the surrounding Solidity code, have been
            // delicately arranged to nudge the compiler into producing optimized opcodes.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                // The `iszero(eq(,))` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
                // The compiler will optimize the `iszero` away for performance.
                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

            _currentIndex = end;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

            _currentIndex = startTokenId + quantity;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * See {_mint}.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        _mint(to, quantity);

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, '');
    }

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = address(uint160(prevOwnershipPacked));

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                from,
                (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) revert OwnershipNotInitializedForExtraData();
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
    }

    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value) internal pure virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
            // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

            // Cache the end of the memory to calculate the length later.
            let end := str

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }
}

// File: erc721a/contracts/extensions/ERC721AQueryable.sol


// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;



/**
 * @title ERC721AQueryable.
 *
 * @dev ERC721A subclass with convenience query functions.
 */
abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable {
    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *
     * - `addr = address(0)`
     * - `startTimestamp = 0`
     * - `burned = false`
     * - `extraData = 0`
     *
     * If the `tokenId` is burned:
     *
     * - `addr = <Address of owner before token was burned>`
     * - `startTimestamp = <Timestamp when token was burned>`
     * - `burned = true`
     * - `extraData = <Extra data when token was burned>`
     *
     * Otherwise:
     *
     * - `addr = <Address of owner>`
     * - `startTimestamp = <Timestamp of start of ownership>`
     * - `burned = false`
     * - `extraData = <Extra data at start of ownership>`
     */
    function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) {
        TokenOwnership memory ownership;
        if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) {
            return ownership;
        }
        ownership = _ownershipAt(tokenId);
        if (ownership.burned) {
            return ownership;
        }
        return _ownershipOf(tokenId);
    }

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] calldata tokenIds)
        external
        view
        virtual
        override
        returns (TokenOwnership[] memory)
    {
        unchecked {
            uint256 tokenIdsLength = tokenIds.length;
            TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength);
            for (uint256 i; i != tokenIdsLength; ++i) {
                ownerships[i] = explicitOwnershipOf(tokenIds[i]);
            }
            return ownerships;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start < stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view virtual override returns (uint256[] memory) {
        unchecked {
            if (start >= stop) revert InvalidQueryRange();
            uint256 tokenIdsIdx;
            uint256 stopLimit = _nextTokenId();
            // Set `start = max(start, _startTokenId())`.
            if (start < _startTokenId()) {
                start = _startTokenId();
            }
            // Set `stop = min(stop, stopLimit)`.
            if (stop > stopLimit) {
                stop = stopLimit;
            }
            uint256 tokenIdsMaxLength = balanceOf(owner);
            // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`,
            // to cater for cases where `balanceOf(owner)` is too big.
            if (start < stop) {
                uint256 rangeLength = stop - start;
                if (rangeLength < tokenIdsMaxLength) {
                    tokenIdsMaxLength = rangeLength;
                }
            } else {
                tokenIdsMaxLength = 0;
            }
            uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength);
            if (tokenIdsMaxLength == 0) {
                return tokenIds;
            }
            // We need to call `explicitOwnershipOf(start)`,
            // because the slot at `start` may not be initialized.
            TokenOwnership memory ownership = explicitOwnershipOf(start);
            address currOwnershipAddr;
            // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`.
            // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range.
            if (!ownership.burned) {
                currOwnershipAddr = ownership.addr;
            }
            for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) {
                ownership = _ownershipAt(i);
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            // Downsize the array to fit.
            assembly {
                mstore(tokenIds, tokenIdsIdx)
            }
            return tokenIds;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(`totalSupply`) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K collections should be fine).
     */
    function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) {
        unchecked {
            uint256 tokenIdsIdx;
            address currOwnershipAddr;
            uint256 tokenIdsLength = balanceOf(owner);
            uint256[] memory tokenIds = new uint256[](tokenIdsLength);
            TokenOwnership memory ownership;
            for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) {
                ownership = _ownershipAt(i);
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            return tokenIds;
        }
    }
}

// File: contracts/houseOfSoles.sol



pragma solidity 0.8.20;







contract HouseOfSoles is ERC721A, ERC721AQueryable, Ownable(msg.sender) {
    uint256 public SoleMintFree = 1;
    string public baseURI = "ipfs://bafybeihgqpmh5n734eg5lcp73jn4yrkrgxjw54s4vugimlbffkoipg55e4/";
    uint256 public SolePrice = 0.0069 ether;
    uint256 public maxSoleSupply = 333;
    uint256 public maxSolesPerTransaction = 3;
    uint256 public maxSolesPerWallet = 3;

    bool public startMinting;

    mapping(address => uint256) private acquiredSoles;

    constructor () ERC721A("HouseOfSoles", "HoS") {
    }

    function _startTokenId() internal view virtual override returns (uint256) {
        return 1;
    }

    function startSoleSale() external onlyOwner {
        require(!startMinting);
        startMinting = true;
    }

    function stopSoleSale() external onlyOwner {
        require(startMinting);
        startMinting = false;
    }

    function mint(uint256 quantity) public payable {
        require(startMinting);
        require(acquiredSoles[msg.sender] + quantity <= maxSolesPerWallet);
        require(quantity <= maxSolesPerTransaction);

        uint256 totalCost = SolePrice * quantity;
        require(msg.value >= totalCost, "Insufficient funds");
        require(totalSupply() + quantity <= maxSoleSupply, "Maximum supply exceeded");
        _safeMint(msg.sender, quantity);
        acquiredSoles[msg.sender] += quantity;
    }

    function freeMint() public {
        require(startMinting);
        require(acquiredSoles[msg.sender] < SoleMintFree);
        require(totalSupply() + 1 <= maxSoleSupply, "Maximum supply exceeded");

        _safeMint(msg.sender, 1);
        acquiredSoles[msg.sender]++;
    }

    function setSolePrice(uint256 newPrice) public onlyOwner {
        SolePrice = newPrice;
    }

    function setMaxSolesPerTransaction(uint256 newMaxSolesPerTransaction) public onlyOwner {
        maxSolesPerTransaction = newMaxSolesPerTransaction;
    }

    function setMaxSolesPerWallet(uint256 newMaxSolesPerWallet) public onlyOwner {
        maxSolesPerWallet = newMaxSolesPerWallet;
    }

    function setFreeSoleMint(uint256 newFreeSoleMint) public onlyOwner {
        SoleMintFree = newFreeSoleMint;
    }

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

    function withdrawFunds() public onlyOwner {
        payable(msg.sender).transfer(address(this).balance);
    }

    function SolesAcquired(address collector) public view returns (uint256) {
        return acquiredSoles[collector];
    }

    function setBaseTokenURI(string memory newBaseURI) external onlyOwner {
        baseURI = newBaseURI;
    }

    function curatorMintSoles(uint256 quantity) public onlyOwner {
        require(totalSupply() + quantity <= maxSoleSupply);
        require(quantity > 0, "Invalid mint amount");
        require(
            totalSupply() + quantity <= maxSoleSupply,
            "Maximum supply exceeded"
        );
        _safeMint(msg.sender, quantity);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","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":"SoleMintFree","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SolePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collector","type":"address"}],"name":"SolesAcquired","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"curatorMintSoles","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSoleSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSolesPerTransaction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSolesPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","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":"payable","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":"payable","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":"newBaseURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newFreeSoleMint","type":"uint256"}],"name":"setFreeSoleMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxSolesPerTransaction","type":"uint256"}],"name":"setMaxSolesPerTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxSolesPerWallet","type":"uint256"}],"name":"setMaxSolesPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setSolePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startMinting","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startSoleSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopSoleSale","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":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60016009556101006040526043608081815290620021c860a039600a90620000289082620001eb565b506618838370f34000600b5561014d600c556003600d556003600e5534801562000050575f80fd5b50336040518060400160405280600c81526020016b486f7573654f66536f6c657360a01b81525060405180604001604052806003815260200162486f5360e81b8152508160029081620000a49190620001eb565b506003620000b38282620001eb565b5060015f5550506001600160a01b038116620000e857604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b620000f381620000fa565b50620002b3565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200017457607f821691505b6020821081036200019357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620001e6575f81815260208120601f850160051c81016020861015620001c15750805b601f850160051c820191505b81811015620001e257828155600101620001cd565b5050505b505050565b81516001600160401b038111156200020757620002076200014b565b6200021f816200021884546200015f565b8462000199565b602080601f83116001811462000255575f84156200023d5750858301515b5f19600386901b1c1916600185901b178555620001e2565b5f85815260208120601f198616915b82811015620002855788860151825594840194600190910190840162000264565b5085821015620002a357878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b611f0780620002c15f395ff3fe608060405260043610610233575f3560e01c806370a0823111610129578063a008f8d3116100a8578063c87b56dd1161006d578063c87b56dd14610621578063d13c2c8814610640578063e985e9c51461065f578063f2fde38b146106a6578063f968a6ab146106c5575f80fd5b8063a008f8d31461059c578063a0712d68146105b0578063a22cb465146105c3578063b88d4fde146105e2578063c23dc68f146105f5575f80fd5b80638da5cb5b116100ee5780638da5cb5b1461051e57806391c804271461053b57806395d89b411461055057806399a2557a146105645780639a65ea2614610583575f80fd5b806370a0823114610495578063715018a6146104b45780638255ee38146104c85780638462151c146104dd5780638b0b3be514610509575f80fd5b80632a82e58f116101b55780635b70ea9f1161017a5780635b70ea9f146103ee5780635bbb2177146104025780636352211e1461042e578063688459381461044d5780636c0360eb14610481575f80fd5b80632a82e58f1461037457806330176e1314610393578063349baa8a146103b257806342842e0e146103c65780634768361b146103d9575f80fd5b806318160ddd116101fb57806318160ddd146102f75780631e9626121461031957806323b872dd1461032e57806324600fc314610341578063295fe6ed14610355575f80fd5b806301ffc9a71461023757806306fdde031461026b578063081812fc1461028c578063095ea7b3146102c357806313de6b38146102d8575b5f80fd5b348015610242575f80fd5b5061025661025136600461183d565b6106e4565b60405190151581526020015b60405180910390f35b348015610276575f80fd5b5061027f610735565b60405161026291906118a5565b348015610297575f80fd5b506102ab6102a63660046118b7565b6107c5565b6040516001600160a01b039091168152602001610262565b6102d66102d13660046118e9565b610807565b005b3480156102e3575f80fd5b506102d66102f23660046118b7565b6108a5565b348015610302575f80fd5b5061030b610958565b604051908152602001610262565b348015610324575f80fd5b5061030b60095481565b6102d661033c366004611911565b610964565b34801561034c575f80fd5b506102d6610af4565b348015610360575f80fd5b506102d661036f3660046118b7565b610b25565b34801561037f575f80fd5b506102d661038e3660046118b7565b610b32565b34801561039e575f80fd5b506102d66103ad3660046119d1565b610b3f565b3480156103bd575f80fd5b506102d6610b57565b6102d66103d4366004611911565b610b7d565b3480156103e4575f80fd5b5061030b600c5481565b3480156103f9575f80fd5b506102d6610b9c565b34801561040d575f80fd5b5061042161041c366004611a16565b610c25565b6040516102629190611ac2565b348015610439575f80fd5b506102ab6104483660046118b7565b610ced565b348015610458575f80fd5b5061030b610467366004611b03565b6001600160a01b03165f9081526010602052604090205490565b34801561048c575f80fd5b5061027f610cf7565b3480156104a0575f80fd5b5061030b6104af366004611b03565b610d83565b3480156104bf575f80fd5b506102d6610dd0565b3480156104d3575f80fd5b5061030b600d5481565b3480156104e8575f80fd5b506104fc6104f7366004611b03565b610de3565b6040516102629190611b1c565b348015610514575f80fd5b5061030b600b5481565b348015610529575f80fd5b506008546001600160a01b03166102ab565b348015610546575f80fd5b5061030b600e5481565b34801561055b575f80fd5b5061027f610ee8565b34801561056f575f80fd5b506104fc61057e366004611b53565b610ef7565b34801561058e575f80fd5b50600f546102569060ff1681565b3480156105a7575f80fd5b506102d6611077565b6102d66105be3660046118b7565b611099565b3480156105ce575f80fd5b506102d66105dd366004611b83565b611197565b6102d66105f0366004611bbc565b611202565b348015610600575f80fd5b5061061461060f3660046118b7565b61124c565b6040516102629190611c33565b34801561062c575f80fd5b5061027f61063b3660046118b7565b6112d1565b34801561064b575f80fd5b506102d661065a3660046118b7565b611351565b34801561066a575f80fd5b50610256610679366004611c41565b6001600160a01b039182165f90815260076020908152604080832093909416825291909152205460ff1690565b3480156106b1575f80fd5b506102d66106c0366004611b03565b61135e565b3480156106d0575f80fd5b506102d66106df3660046118b7565b611398565b5f6301ffc9a760e01b6001600160e01b03198316148061071457506380ac58cd60e01b6001600160e01b03198316145b8061072f5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461074490611c72565b80601f016020809104026020016040519081016040528092919081815260200182805461077090611c72565b80156107bb5780601f10610792576101008083540402835291602001916107bb565b820191905f5260205f20905b81548152906001019060200180831161079e57829003601f168201915b5050505050905090565b5f6107cf826113a5565b6107ec576040516333d1c03960e21b815260040160405180910390fd5b505f908152600660205260409020546001600160a01b031690565b5f61081182610ced565b9050336001600160a01b0382161461084a5761082d8133610679565b61084a576040516367d9dca160e11b815260040160405180910390fd5b5f8281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6108ad6113d7565b600c54816108b9610958565b6108c39190611cbe565b11156108cd575f80fd5b5f81116109175760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b60448201526064015b60405180910390fd5b600c5481610923610958565b61092d9190611cbe565b111561094b5760405162461bcd60e51b815260040161090e90611cd1565b6109553382611404565b50565b6001545f54035f190190565b5f61096e8261141d565b9050836001600160a01b0316816001600160a01b0316146109a15760405162a1148160e81b815260040160405180910390fd5b5f8281526006602052604090208054338082146001600160a01b038816909114176109ed576109d08633610679565b6109ed57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610a1457604051633a954ecd60e21b815260040160405180910390fd5b8015610a1e575f82555b6001600160a01b038681165f9081526005602052604080822080545f19019055918716808252919020805460010190554260a01b17600160e11b175f85815260046020526040812091909155600160e11b84169003610aaa57600184015f818152600460205260408120549003610aa8575f548114610aa8575f8181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b610afc6113d7565b60405133904780156108fc02915f818181858888f19350505050158015610955573d5f803e3d5ffd5b610b2d6113d7565b600b55565b610b3a6113d7565b600955565b610b476113d7565b600a610b538282611d4d565b5050565b610b5f6113d7565b600f5460ff1615610b6e575f80fd5b600f805460ff19166001179055565b610b9783838360405180602001604052805f815250611202565b505050565b600f5460ff16610baa575f80fd5b600954335f9081526010602052604090205410610bc5575f80fd5b600c54610bd0610958565b610bdb906001611cbe565b1115610bf95760405162461bcd60e51b815260040161090e90611cd1565b610c04336001611404565b335f908152601060205260408120805491610c1e83611e09565b9190505550565b6060815f8167ffffffffffffffff811115610c4257610c4261194a565b604051908082528060200260200182016040528015610c9257816020015b604080516080810182525f8082526020808301829052928201819052606082015282525f19909201910181610c605790505b5090505f5b828114610ce457610cbf868683818110610cb357610cb3611e21565b9050602002013561124c565b828281518110610cd157610cd1611e21565b6020908102919091010152600101610c97565b50949350505050565b5f61072f8261141d565b600a8054610d0490611c72565b80601f0160208091040260200160405190810160405280929190818152602001828054610d3090611c72565b8015610d7b5780601f10610d5257610100808354040283529160200191610d7b565b820191905f5260205f20905b815481529060010190602001808311610d5e57829003601f168201915b505050505081565b5f6001600160a01b038216610dab576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03165f9081526005602052604090205467ffffffffffffffff1690565b610dd86113d7565b610de15f611486565b565b60605f805f610df185610d83565b90505f8167ffffffffffffffff811115610e0d57610e0d61194a565b604051908082528060200260200182016040528015610e36578160200160208202803683370190505b509050610e62604080516080810182525f80825260208201819052918101829052606081019190915290565b60015b838614610edc57610e75816114d7565b91508160400151610ed45781516001600160a01b031615610e9557815194505b876001600160a01b0316856001600160a01b031603610ed45780838780600101985081518110610ec757610ec7611e21565b6020026020010181815250505b600101610e65565b50909695505050505050565b60606003805461074490611c72565b6060818310610f1957604051631960ccad60e11b815260040160405180910390fd5b5f80610f235f5490565b90506001851015610f3357600194505b80841115610f3f578093505b5f610f4987610d83565b905084861015610f685785850381811015610f62578091505b50610f6b565b505f5b5f8167ffffffffffffffff811115610f8557610f8561194a565b604051908082528060200260200182016040528015610fae578160200160208202803683370190505b509050815f03610fc357935061107092505050565b5f610fcd8861124c565b90505f8160400151610fdd575080515b885b888114158015610fef5750848714155b1561106457610ffd816114d7565b9250826040015161105c5782516001600160a01b03161561101d57825191505b8a6001600160a01b0316826001600160a01b03160361105c578084888060010199508151811061104f5761104f611e21565b6020026020010181815250505b600101610fdf565b50505092835250909150505b9392505050565b61107f6113d7565b600f5460ff1661108d575f80fd5b600f805460ff19169055565b600f5460ff166110a7575f80fd5b600e54335f908152601060205260409020546110c4908390611cbe565b11156110ce575f80fd5b600d548111156110dc575f80fd5b5f81600b546110eb9190611e35565b9050803410156111325760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b604482015260640161090e565b600c548261113e610958565b6111489190611cbe565b11156111665760405162461bcd60e51b815260040161090e90611cd1565b6111703383611404565b335f908152601060205260408120805484929061118e908490611cbe565b90915550505050565b335f8181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61120d848484610964565b6001600160a01b0383163b156112465761122984848484611511565b611246576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b604080516080810182525f808252602082018190529181018290526060810191909152604080516080810182525f80825260208201819052918101829052606081019190915260018310806112a257505f548310155b156112ad5792915050565b6112b6836114d7565b90508060400151156112c85792915050565b611070836115f9565b60606112dc826113a5565b6112f957604051630a14c4b560e41b815260040160405180910390fd5b5f61130261162d565b905080515f036113205760405180602001604052805f815250611070565b8061132a8461163c565b60405160200161133b929190611e4c565b6040516020818303038152906040529392505050565b6113596113d7565b600e55565b6113666113d7565b6001600160a01b03811661138f57604051631e4fbdf760e01b81525f600482015260240161090e565b61095581611486565b6113a06113d7565b600d55565b5f816001111580156113b757505f5482105b801561072f5750505f90815260046020526040902054600160e01b161590565b6008546001600160a01b03163314610de15760405163118cdaa760e01b815233600482015260240161090e565b610b53828260405180602001604052805f81525061167f565b5f818060011161146d575f5481101561146d575f8181526004602052604081205490600160e01b8216900361146b575b805f0361107057505f19015f8181526004602052604090205461144d565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b604080516080810182525f8082526020820181905291810182905260608101919091525f8281526004602052604090205461072f906116e8565b604051630a85bd0160e11b81525f906001600160a01b0385169063150b7a0290611545903390899088908890600401611e7a565b6020604051808303815f875af192505050801561157f575060408051601f3d908101601f1916820190925261157c91810190611eb6565b60015b6115db573d8080156115ac576040519150601f19603f3d011682016040523d82523d5f602084013e6115b1565b606091505b5080515f036115d3576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b604080516080810182525f80825260208201819052918101829052606081019190915261072f6116288361141d565b6116e8565b6060600a805461074490611c72565b606060a06040510180604052602081039150505f815280825b600183039250600a81066030018353600a9004806116555750819003601f19909101908152919050565b6116898383611730565b6001600160a01b0383163b15610b97575f548281035b6116b15f868380600101945086611511565b6116ce576040516368d2bf6b60e11b815260040160405180910390fd5b81811061169f57815f54146116e1575f80fd5b5050505050565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b5f8054908290036117545760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0383165f8181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146118005780835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a46001016117ca565b50815f0361182057604051622e076360e81b815260040160405180910390fd5b5f5550505050565b6001600160e01b031981168114610955575f80fd5b5f6020828403121561184d575f80fd5b813561107081611828565b5f5b8381101561187257818101518382015260200161185a565b50505f910152565b5f8151808452611891816020860160208601611858565b601f01601f19169290920160200192915050565b602081525f611070602083018461187a565b5f602082840312156118c7575f80fd5b5035919050565b80356001600160a01b03811681146118e4575f80fd5b919050565b5f80604083850312156118fa575f80fd5b611903836118ce565b946020939093013593505050565b5f805f60608486031215611923575f80fd5b61192c846118ce565b925061193a602085016118ce565b9150604084013590509250925092565b634e487b7160e01b5f52604160045260245ffd5b5f67ffffffffffffffff808411156119785761197861194a565b604051601f8501601f19908116603f011681019082821181831017156119a0576119a061194a565b816040528093508581528686860111156119b8575f80fd5b858560208301375f602087830101525050509392505050565b5f602082840312156119e1575f80fd5b813567ffffffffffffffff8111156119f7575f80fd5b8201601f81018413611a07575f80fd5b6115f18482356020840161195e565b5f8060208385031215611a27575f80fd5b823567ffffffffffffffff80821115611a3e575f80fd5b818501915085601f830112611a51575f80fd5b813581811115611a5f575f80fd5b8660208260051b8501011115611a73575f80fd5b60209290920196919550909350505050565b80516001600160a01b0316825260208082015167ffffffffffffffff169083015260408082015115159083015260609081015162ffffff16910152565b602080825282518282018190525f9190848201906040850190845b81811015610edc57611af0838551611a85565b9284019260809290920191600101611add565b5f60208284031215611b13575f80fd5b611070826118ce565b602080825282518282018190525f9190848201906040850190845b81811015610edc57835183529284019291840191600101611b37565b5f805f60608486031215611b65575f80fd5b611b6e846118ce565b95602085013595506040909401359392505050565b5f8060408385031215611b94575f80fd5b611b9d836118ce565b915060208301358015158114611bb1575f80fd5b809150509250929050565b5f805f8060808587031215611bcf575f80fd5b611bd8856118ce565b9350611be6602086016118ce565b925060408501359150606085013567ffffffffffffffff811115611c08575f80fd5b8501601f81018713611c18575f80fd5b611c278782356020840161195e565b91505092959194509250565b6080810161072f8284611a85565b5f8060408385031215611c52575f80fd5b611c5b836118ce565b9150611c69602084016118ce565b90509250929050565b600181811c90821680611c8657607f821691505b602082108103611ca457634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561072f5761072f611caa565b60208082526017908201527f4d6178696d756d20737570706c79206578636565646564000000000000000000604082015260600190565b601f821115610b97575f81815260208120601f850160051c81016020861015611d2e5750805b601f850160051c820191505b81811015610aec57828155600101611d3a565b815167ffffffffffffffff811115611d6757611d6761194a565b611d7b81611d758454611c72565b84611d08565b602080601f831160018114611dae575f8415611d975750858301515b5f19600386901b1c1916600185901b178555610aec565b5f85815260208120601f198616915b82811015611ddc57888601518255948401946001909101908401611dbd565b5085821015611df957878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b5f60018201611e1a57611e1a611caa565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b808202811582820484141761072f5761072f611caa565b5f8351611e5d818460208801611858565b835190830190611e71818360208801611858565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f90611eac9083018461187a565b9695505050505050565b5f60208284031215611ec6575f80fd5b81516110708161182856fea26469706673582212200483acbf4f3e0178943145411ee27fcb16946702c4e06a19d329488cf30fac9964736f6c63430008140033697066733a2f2f62616679626569686771706d68356e3733346567356c637037336a6e3479726b7267786a7735347334767567696d6c6266666b6f697067353565342f

Deployed Bytecode

0x608060405260043610610233575f3560e01c806370a0823111610129578063a008f8d3116100a8578063c87b56dd1161006d578063c87b56dd14610621578063d13c2c8814610640578063e985e9c51461065f578063f2fde38b146106a6578063f968a6ab146106c5575f80fd5b8063a008f8d31461059c578063a0712d68146105b0578063a22cb465146105c3578063b88d4fde146105e2578063c23dc68f146105f5575f80fd5b80638da5cb5b116100ee5780638da5cb5b1461051e57806391c804271461053b57806395d89b411461055057806399a2557a146105645780639a65ea2614610583575f80fd5b806370a0823114610495578063715018a6146104b45780638255ee38146104c85780638462151c146104dd5780638b0b3be514610509575f80fd5b80632a82e58f116101b55780635b70ea9f1161017a5780635b70ea9f146103ee5780635bbb2177146104025780636352211e1461042e578063688459381461044d5780636c0360eb14610481575f80fd5b80632a82e58f1461037457806330176e1314610393578063349baa8a146103b257806342842e0e146103c65780634768361b146103d9575f80fd5b806318160ddd116101fb57806318160ddd146102f75780631e9626121461031957806323b872dd1461032e57806324600fc314610341578063295fe6ed14610355575f80fd5b806301ffc9a71461023757806306fdde031461026b578063081812fc1461028c578063095ea7b3146102c357806313de6b38146102d8575b5f80fd5b348015610242575f80fd5b5061025661025136600461183d565b6106e4565b60405190151581526020015b60405180910390f35b348015610276575f80fd5b5061027f610735565b60405161026291906118a5565b348015610297575f80fd5b506102ab6102a63660046118b7565b6107c5565b6040516001600160a01b039091168152602001610262565b6102d66102d13660046118e9565b610807565b005b3480156102e3575f80fd5b506102d66102f23660046118b7565b6108a5565b348015610302575f80fd5b5061030b610958565b604051908152602001610262565b348015610324575f80fd5b5061030b60095481565b6102d661033c366004611911565b610964565b34801561034c575f80fd5b506102d6610af4565b348015610360575f80fd5b506102d661036f3660046118b7565b610b25565b34801561037f575f80fd5b506102d661038e3660046118b7565b610b32565b34801561039e575f80fd5b506102d66103ad3660046119d1565b610b3f565b3480156103bd575f80fd5b506102d6610b57565b6102d66103d4366004611911565b610b7d565b3480156103e4575f80fd5b5061030b600c5481565b3480156103f9575f80fd5b506102d6610b9c565b34801561040d575f80fd5b5061042161041c366004611a16565b610c25565b6040516102629190611ac2565b348015610439575f80fd5b506102ab6104483660046118b7565b610ced565b348015610458575f80fd5b5061030b610467366004611b03565b6001600160a01b03165f9081526010602052604090205490565b34801561048c575f80fd5b5061027f610cf7565b3480156104a0575f80fd5b5061030b6104af366004611b03565b610d83565b3480156104bf575f80fd5b506102d6610dd0565b3480156104d3575f80fd5b5061030b600d5481565b3480156104e8575f80fd5b506104fc6104f7366004611b03565b610de3565b6040516102629190611b1c565b348015610514575f80fd5b5061030b600b5481565b348015610529575f80fd5b506008546001600160a01b03166102ab565b348015610546575f80fd5b5061030b600e5481565b34801561055b575f80fd5b5061027f610ee8565b34801561056f575f80fd5b506104fc61057e366004611b53565b610ef7565b34801561058e575f80fd5b50600f546102569060ff1681565b3480156105a7575f80fd5b506102d6611077565b6102d66105be3660046118b7565b611099565b3480156105ce575f80fd5b506102d66105dd366004611b83565b611197565b6102d66105f0366004611bbc565b611202565b348015610600575f80fd5b5061061461060f3660046118b7565b61124c565b6040516102629190611c33565b34801561062c575f80fd5b5061027f61063b3660046118b7565b6112d1565b34801561064b575f80fd5b506102d661065a3660046118b7565b611351565b34801561066a575f80fd5b50610256610679366004611c41565b6001600160a01b039182165f90815260076020908152604080832093909416825291909152205460ff1690565b3480156106b1575f80fd5b506102d66106c0366004611b03565b61135e565b3480156106d0575f80fd5b506102d66106df3660046118b7565b611398565b5f6301ffc9a760e01b6001600160e01b03198316148061071457506380ac58cd60e01b6001600160e01b03198316145b8061072f5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461074490611c72565b80601f016020809104026020016040519081016040528092919081815260200182805461077090611c72565b80156107bb5780601f10610792576101008083540402835291602001916107bb565b820191905f5260205f20905b81548152906001019060200180831161079e57829003601f168201915b5050505050905090565b5f6107cf826113a5565b6107ec576040516333d1c03960e21b815260040160405180910390fd5b505f908152600660205260409020546001600160a01b031690565b5f61081182610ced565b9050336001600160a01b0382161461084a5761082d8133610679565b61084a576040516367d9dca160e11b815260040160405180910390fd5b5f8281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6108ad6113d7565b600c54816108b9610958565b6108c39190611cbe565b11156108cd575f80fd5b5f81116109175760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b60448201526064015b60405180910390fd5b600c5481610923610958565b61092d9190611cbe565b111561094b5760405162461bcd60e51b815260040161090e90611cd1565b6109553382611404565b50565b6001545f54035f190190565b5f61096e8261141d565b9050836001600160a01b0316816001600160a01b0316146109a15760405162a1148160e81b815260040160405180910390fd5b5f8281526006602052604090208054338082146001600160a01b038816909114176109ed576109d08633610679565b6109ed57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610a1457604051633a954ecd60e21b815260040160405180910390fd5b8015610a1e575f82555b6001600160a01b038681165f9081526005602052604080822080545f19019055918716808252919020805460010190554260a01b17600160e11b175f85815260046020526040812091909155600160e11b84169003610aaa57600184015f818152600460205260408120549003610aa8575f548114610aa8575f8181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b610afc6113d7565b60405133904780156108fc02915f818181858888f19350505050158015610955573d5f803e3d5ffd5b610b2d6113d7565b600b55565b610b3a6113d7565b600955565b610b476113d7565b600a610b538282611d4d565b5050565b610b5f6113d7565b600f5460ff1615610b6e575f80fd5b600f805460ff19166001179055565b610b9783838360405180602001604052805f815250611202565b505050565b600f5460ff16610baa575f80fd5b600954335f9081526010602052604090205410610bc5575f80fd5b600c54610bd0610958565b610bdb906001611cbe565b1115610bf95760405162461bcd60e51b815260040161090e90611cd1565b610c04336001611404565b335f908152601060205260408120805491610c1e83611e09565b9190505550565b6060815f8167ffffffffffffffff811115610c4257610c4261194a565b604051908082528060200260200182016040528015610c9257816020015b604080516080810182525f8082526020808301829052928201819052606082015282525f19909201910181610c605790505b5090505f5b828114610ce457610cbf868683818110610cb357610cb3611e21565b9050602002013561124c565b828281518110610cd157610cd1611e21565b6020908102919091010152600101610c97565b50949350505050565b5f61072f8261141d565b600a8054610d0490611c72565b80601f0160208091040260200160405190810160405280929190818152602001828054610d3090611c72565b8015610d7b5780601f10610d5257610100808354040283529160200191610d7b565b820191905f5260205f20905b815481529060010190602001808311610d5e57829003601f168201915b505050505081565b5f6001600160a01b038216610dab576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03165f9081526005602052604090205467ffffffffffffffff1690565b610dd86113d7565b610de15f611486565b565b60605f805f610df185610d83565b90505f8167ffffffffffffffff811115610e0d57610e0d61194a565b604051908082528060200260200182016040528015610e36578160200160208202803683370190505b509050610e62604080516080810182525f80825260208201819052918101829052606081019190915290565b60015b838614610edc57610e75816114d7565b91508160400151610ed45781516001600160a01b031615610e9557815194505b876001600160a01b0316856001600160a01b031603610ed45780838780600101985081518110610ec757610ec7611e21565b6020026020010181815250505b600101610e65565b50909695505050505050565b60606003805461074490611c72565b6060818310610f1957604051631960ccad60e11b815260040160405180910390fd5b5f80610f235f5490565b90506001851015610f3357600194505b80841115610f3f578093505b5f610f4987610d83565b905084861015610f685785850381811015610f62578091505b50610f6b565b505f5b5f8167ffffffffffffffff811115610f8557610f8561194a565b604051908082528060200260200182016040528015610fae578160200160208202803683370190505b509050815f03610fc357935061107092505050565b5f610fcd8861124c565b90505f8160400151610fdd575080515b885b888114158015610fef5750848714155b1561106457610ffd816114d7565b9250826040015161105c5782516001600160a01b03161561101d57825191505b8a6001600160a01b0316826001600160a01b03160361105c578084888060010199508151811061104f5761104f611e21565b6020026020010181815250505b600101610fdf565b50505092835250909150505b9392505050565b61107f6113d7565b600f5460ff1661108d575f80fd5b600f805460ff19169055565b600f5460ff166110a7575f80fd5b600e54335f908152601060205260409020546110c4908390611cbe565b11156110ce575f80fd5b600d548111156110dc575f80fd5b5f81600b546110eb9190611e35565b9050803410156111325760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b604482015260640161090e565b600c548261113e610958565b6111489190611cbe565b11156111665760405162461bcd60e51b815260040161090e90611cd1565b6111703383611404565b335f908152601060205260408120805484929061118e908490611cbe565b90915550505050565b335f8181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61120d848484610964565b6001600160a01b0383163b156112465761122984848484611511565b611246576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b604080516080810182525f808252602082018190529181018290526060810191909152604080516080810182525f80825260208201819052918101829052606081019190915260018310806112a257505f548310155b156112ad5792915050565b6112b6836114d7565b90508060400151156112c85792915050565b611070836115f9565b60606112dc826113a5565b6112f957604051630a14c4b560e41b815260040160405180910390fd5b5f61130261162d565b905080515f036113205760405180602001604052805f815250611070565b8061132a8461163c565b60405160200161133b929190611e4c565b6040516020818303038152906040529392505050565b6113596113d7565b600e55565b6113666113d7565b6001600160a01b03811661138f57604051631e4fbdf760e01b81525f600482015260240161090e565b61095581611486565b6113a06113d7565b600d55565b5f816001111580156113b757505f5482105b801561072f5750505f90815260046020526040902054600160e01b161590565b6008546001600160a01b03163314610de15760405163118cdaa760e01b815233600482015260240161090e565b610b53828260405180602001604052805f81525061167f565b5f818060011161146d575f5481101561146d575f8181526004602052604081205490600160e01b8216900361146b575b805f0361107057505f19015f8181526004602052604090205461144d565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b604080516080810182525f8082526020820181905291810182905260608101919091525f8281526004602052604090205461072f906116e8565b604051630a85bd0160e11b81525f906001600160a01b0385169063150b7a0290611545903390899088908890600401611e7a565b6020604051808303815f875af192505050801561157f575060408051601f3d908101601f1916820190925261157c91810190611eb6565b60015b6115db573d8080156115ac576040519150601f19603f3d011682016040523d82523d5f602084013e6115b1565b606091505b5080515f036115d3576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b604080516080810182525f80825260208201819052918101829052606081019190915261072f6116288361141d565b6116e8565b6060600a805461074490611c72565b606060a06040510180604052602081039150505f815280825b600183039250600a81066030018353600a9004806116555750819003601f19909101908152919050565b6116898383611730565b6001600160a01b0383163b15610b97575f548281035b6116b15f868380600101945086611511565b6116ce576040516368d2bf6b60e11b815260040160405180910390fd5b81811061169f57815f54146116e1575f80fd5b5050505050565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b5f8054908290036117545760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0383165f8181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146118005780835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a46001016117ca565b50815f0361182057604051622e076360e81b815260040160405180910390fd5b5f5550505050565b6001600160e01b031981168114610955575f80fd5b5f6020828403121561184d575f80fd5b813561107081611828565b5f5b8381101561187257818101518382015260200161185a565b50505f910152565b5f8151808452611891816020860160208601611858565b601f01601f19169290920160200192915050565b602081525f611070602083018461187a565b5f602082840312156118c7575f80fd5b5035919050565b80356001600160a01b03811681146118e4575f80fd5b919050565b5f80604083850312156118fa575f80fd5b611903836118ce565b946020939093013593505050565b5f805f60608486031215611923575f80fd5b61192c846118ce565b925061193a602085016118ce565b9150604084013590509250925092565b634e487b7160e01b5f52604160045260245ffd5b5f67ffffffffffffffff808411156119785761197861194a565b604051601f8501601f19908116603f011681019082821181831017156119a0576119a061194a565b816040528093508581528686860111156119b8575f80fd5b858560208301375f602087830101525050509392505050565b5f602082840312156119e1575f80fd5b813567ffffffffffffffff8111156119f7575f80fd5b8201601f81018413611a07575f80fd5b6115f18482356020840161195e565b5f8060208385031215611a27575f80fd5b823567ffffffffffffffff80821115611a3e575f80fd5b818501915085601f830112611a51575f80fd5b813581811115611a5f575f80fd5b8660208260051b8501011115611a73575f80fd5b60209290920196919550909350505050565b80516001600160a01b0316825260208082015167ffffffffffffffff169083015260408082015115159083015260609081015162ffffff16910152565b602080825282518282018190525f9190848201906040850190845b81811015610edc57611af0838551611a85565b9284019260809290920191600101611add565b5f60208284031215611b13575f80fd5b611070826118ce565b602080825282518282018190525f9190848201906040850190845b81811015610edc57835183529284019291840191600101611b37565b5f805f60608486031215611b65575f80fd5b611b6e846118ce565b95602085013595506040909401359392505050565b5f8060408385031215611b94575f80fd5b611b9d836118ce565b915060208301358015158114611bb1575f80fd5b809150509250929050565b5f805f8060808587031215611bcf575f80fd5b611bd8856118ce565b9350611be6602086016118ce565b925060408501359150606085013567ffffffffffffffff811115611c08575f80fd5b8501601f81018713611c18575f80fd5b611c278782356020840161195e565b91505092959194509250565b6080810161072f8284611a85565b5f8060408385031215611c52575f80fd5b611c5b836118ce565b9150611c69602084016118ce565b90509250929050565b600181811c90821680611c8657607f821691505b602082108103611ca457634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561072f5761072f611caa565b60208082526017908201527f4d6178696d756d20737570706c79206578636565646564000000000000000000604082015260600190565b601f821115610b97575f81815260208120601f850160051c81016020861015611d2e5750805b601f850160051c820191505b81811015610aec57828155600101611d3a565b815167ffffffffffffffff811115611d6757611d6761194a565b611d7b81611d758454611c72565b84611d08565b602080601f831160018114611dae575f8415611d975750858301515b5f19600386901b1c1916600185901b178555610aec565b5f85815260208120601f198616915b82811015611ddc57888601518255948401946001909101908401611dbd565b5085821015611df957878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b5f60018201611e1a57611e1a611caa565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b808202811582820484141761072f5761072f611caa565b5f8351611e5d818460208801611858565b835190830190611e71818360208801611858565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f90611eac9083018461187a565b9695505050505050565b5f60208284031215611ec6575f80fd5b81516110708161182856fea26469706673582212200483acbf4f3e0178943145411ee27fcb16946702c4e06a19d329488cf30fac9964736f6c63430008140033

Deployed Bytecode Sourcemap

86481:3090:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46917:639;;;;;;;;;;-1:-1:-1;46917:639:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;46917:639:0;;;;;;;;47819:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;54310:218::-;;;;;;;;;;-1:-1:-1;54310:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;54310:218:0;1533:203:1;53743:408:0;;;;;;:::i;:::-;;:::i;:::-;;89216:352;;;;;;;;;;-1:-1:-1;89216:352:0;;;;;:::i;:::-;;:::i;43570:323::-;;;;;;;;;;;;;:::i;:::-;;;2324:25:1;;;2312:2;2297:18;43570:323:0;2178:177:1;86560:31:0;;;;;;;;;;;;;;;;57949:2825;;;;;;:::i;:::-;;:::i;88849:112::-;;;;;;;;;;;;;:::i;88197:96::-;;;;;;;;;;-1:-1:-1;88197:96:0;;;;;:::i;:::-;;:::i;88609:116::-;;;;;;;;;;-1:-1:-1;88609:116:0;;;;;:::i;:::-;;:::i;89099:109::-;;;;;;;;;;-1:-1:-1;89099:109:0;;;;;:::i;:::-;;:::i;87140:115::-;;;;;;;;;;;;;:::i;60870:193::-;;;;;;:::i;:::-;;:::i;86744:34::-;;;;;;;;;;;;;;;;87906:283;;;;;;;;;;;;;:::i;81616:528::-;;;;;;;;;;-1:-1:-1;81616:528:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;49212:152::-;;;;;;;;;;-1:-1:-1;49212:152:0;;;;;:::i;:::-;;:::i;88969:122::-;;;;;;;;;;-1:-1:-1;88969:122:0;;;;;:::i;:::-;-1:-1:-1;;;;;89059:24:0;89032:7;89059:24;;;:13;:24;;;;;;;88969:122;86598:93;;;;;;;;;;;;;:::i;44754:233::-;;;;;;;;;;-1:-1:-1;44754:233:0;;;;;:::i;:::-;;:::i;25153:103::-;;;;;;;;;;;;;:::i;86785:41::-;;;;;;;;;;;;;;;;85492:900;;;;;;;;;;-1:-1:-1;85492:900:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;86698:39::-;;;;;;;;;;;;;;;;24478:87;;;;;;;;;;-1:-1:-1;24551:6:0;;-1:-1:-1;;;;;24551:6:0;24478:87;;86833:36;;;;;;;;;;;;;;;;47995:104;;;;;;;;;;;;;:::i;82532:2513::-;;;;;;;;;;-1:-1:-1;82532:2513:0;;;;;:::i;:::-;;:::i;86878:24::-;;;;;;;;;;-1:-1:-1;86878:24:0;;;;;;;;87263:114;;;;;;;;;;;;;:::i;87385:513::-;;;;;;:::i;:::-;;:::i;54868:234::-;;;;;;;;;;-1:-1:-1;54868:234:0;;;;;:::i;:::-;;:::i;61661:407::-;;;;;;:::i;:::-;;:::i;81029:428::-;;;;;;;;;;-1:-1:-1;81029:428:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;48205:318::-;;;;;;;;;;-1:-1:-1;48205:318:0;;;;;:::i;:::-;;:::i;88465:136::-;;;;;;;;;;-1:-1:-1;88465:136:0;;;;;:::i;:::-;;:::i;55259:164::-;;;;;;;;;;-1:-1:-1;55259:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;55380:25:0;;;55356:4;55380:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;55259:164;25411:220;;;;;;;;;;-1:-1:-1;25411:220:0;;;;;:::i;:::-;;:::i;88301:156::-;;;;;;;;;;-1:-1:-1;88301:156:0;;;;;:::i;:::-;;:::i;46917:639::-;47002:4;-1:-1:-1;;;;;;;;;47326:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;47403:25:0;;;47326:102;:179;;;-1:-1:-1;;;;;;;;;;47480:25:0;;;47326:179;47306:199;46917:639;-1:-1:-1;;46917:639:0:o;47819:100::-;47873:13;47906:5;47899:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47819:100;:::o;54310:218::-;54386:7;54411:16;54419:7;54411;:16::i;:::-;54406:64;;54436:34;;-1:-1:-1;;;54436:34:0;;;;;;;;;;;54406:64;-1:-1:-1;54490:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;54490:30:0;;54310:218::o;53743:408::-;53832:13;53848:16;53856:7;53848;:16::i;:::-;53832:32;-1:-1:-1;78076:10:0;-1:-1:-1;;;;;53881:28:0;;;53877:175;;53929:44;53946:5;78076:10;55259:164;:::i;53929:44::-;53924:128;;54001:35;;-1:-1:-1;;;54001:35:0;;;;;;;;;;;53924:128;54064:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;54064:35:0;-1:-1:-1;;;;;54064:35:0;;;;;;;;;54115:28;;54064:24;;54115:28;;;;;;;53821:330;53743:408;;:::o;89216:352::-;24364:13;:11;:13::i;:::-;89324::::1;;89312:8;89296:13;:11;:13::i;:::-;:24;;;;:::i;:::-;:41;;89288:50;;;::::0;::::1;;89368:1;89357:8;:12;89349:44;;;::::0;-1:-1:-1;;;89349:44:0;;9187:2:1;89349:44:0::1;::::0;::::1;9169:21:1::0;9226:2;9206:18;;;9199:30;-1:-1:-1;;;9245:18:1;;;9238:49;9304:18;;89349:44:0::1;;;;;;;;;89454:13;;89442:8;89426:13;:11;:13::i;:::-;:24;;;;:::i;:::-;:41;;89404:114;;;;-1:-1:-1::0;;;89404:114:0::1;;;;;;;:::i;:::-;89529:31;89539:10;89551:8;89529:9;:31::i;:::-;89216:352:::0;:::o;43570:323::-;87123:1;43844:12;43631:7;43828:13;:28;-1:-1:-1;;43828:46:0;;43570:323::o;57949:2825::-;58091:27;58121;58140:7;58121:18;:27::i;:::-;58091:57;;58206:4;-1:-1:-1;;;;;58165:45:0;58181:19;-1:-1:-1;;;;;58165:45:0;;58161:86;;58219:28;;-1:-1:-1;;;58219:28:0;;;;;;;;;;;58161:86;58261:27;57057:24;;;:15;:24;;;;;57285:26;;78076:10;56682:30;;;-1:-1:-1;;;;;56375:28:0;;56660:20;;;56657:56;58447:180;;58540:43;58557:4;78076:10;55259:164;:::i;58540:43::-;58535:92;;58592:35;;-1:-1:-1;;;58592:35:0;;;;;;;;;;;58535:92;-1:-1:-1;;;;;58644:16:0;;58640:52;;58669:23;;-1:-1:-1;;;58669:23:0;;;;;;;;;;;58640:52;58841:15;58838:160;;;58981:1;58960:19;58953:30;58838:160;-1:-1:-1;;;;;59378:24:0;;;;;;;:18;:24;;;;;;59376:26;;-1:-1:-1;;59376:26:0;;;59447:22;;;;;;;;;59445:24;;-1:-1:-1;59445:24:0;;;52601:11;52576:23;52572:41;52559:63;-1:-1:-1;;;52559:63:0;59740:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;60035:47:0;;:52;;60031:627;;60140:1;60130:11;;60108:19;60263:30;;;:17;:30;;;;;;:35;;60259:384;;60401:13;;60386:11;:28;60382:242;;60548:30;;;;:17;:30;;;;;:52;;;60382:242;60089:569;60031:627;60705:7;60701:2;-1:-1:-1;;;;;60686:27:0;60695:4;-1:-1:-1;;;;;60686:27:0;;;;;;;;;;;60724:42;58080:2694;;;57949:2825;;;:::o;88849:112::-;24364:13;:11;:13::i;:::-;88902:51:::1;::::0;88910:10:::1;::::0;88931:21:::1;88902:51:::0;::::1;;;::::0;::::1;::::0;;;88931:21;88910:10;88902:51;::::1;;;;;;;;;;;;;::::0;::::1;;;;88197:96:::0;24364:13;:11;:13::i;:::-;88265:9:::1;:20:::0;88197:96::o;88609:116::-;24364:13;:11;:13::i;:::-;88687:12:::1;:30:::0;88609:116::o;89099:109::-;24364:13;:11;:13::i;:::-;89180:7:::1;:20;89190:10:::0;89180:7;:20:::1;:::i;:::-;;89099:109:::0;:::o;87140:115::-;24364:13;:11;:13::i;:::-;87204:12:::1;::::0;::::1;;87203:13;87195:22;;;::::0;::::1;;87228:12;:19:::0;;-1:-1:-1;;87228:19:0::1;87243:4;87228:19;::::0;;87140:115::o;60870:193::-;61016:39;61033:4;61039:2;61043:7;61016:39;;;;;;;;;;;;:16;:39::i;:::-;60870:193;;;:::o;87906:283::-;87952:12;;;;87944:21;;;;;;88012:12;;87998:10;87984:25;;;;:13;:25;;;;;;:40;87976:49;;;;;;88065:13;;88044;:11;:13::i;:::-;:17;;88060:1;88044:17;:::i;:::-;:34;;88036:70;;;;-1:-1:-1;;;88036:70:0;;;;;;;:::i;:::-;88119:24;88129:10;88141:1;88119:9;:24::i;:::-;88168:10;88154:25;;;;:13;:25;;;;;:27;;;;;;:::i;:::-;;;;;;87906:283::o;81616:528::-;81760:23;81851:8;81826:22;81851:8;81918:36;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81918:36:0;;-1:-1:-1;;81918:36:0;;;;;;;;;;;;81881:73;;81974:9;81969:125;81990:14;81985:1;:19;81969:125;;82046:32;82066:8;;82075:1;82066:11;;;;;;;:::i;:::-;;;;;;;82046:19;:32::i;:::-;82030:10;82041:1;82030:13;;;;;;;;:::i;:::-;;;;;;;;;;:48;82006:3;;81969:125;;;-1:-1:-1;82115:10:0;81616:528;-1:-1:-1;;;;81616:528:0:o;49212:152::-;49284:7;49327:27;49346:7;49327:18;:27::i;86598:93::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;44754:233::-;44826:7;-1:-1:-1;;;;;44850:19:0;;44846:60;;44878:28;;-1:-1:-1;;;44878:28:0;;;;;;;;;;;44846:60;-1:-1:-1;;;;;;44924:25:0;;;;;:18;:25;;;;;;38913:13;44924:55;;44754:233::o;25153:103::-;24364:13;:11;:13::i;:::-;25218:30:::1;25245:1;25218:18;:30::i;:::-;25153:103::o:0;85492:900::-;85570:16;85624:19;85658:25;85698:22;85723:16;85733:5;85723:9;:16::i;:::-;85698:41;;85754:25;85796:14;85782:29;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;85782:29:0;;85754:57;;85826:31;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85826:31:0;87123:1;85872:472;85921:14;85906:11;:29;85872:472;;85973:15;85986:1;85973:12;:15::i;:::-;85961:27;;86011:9;:16;;;86052:8;86007:73;86102:14;;-1:-1:-1;;;;;86102:28:0;;86098:111;;86175:14;;;-1:-1:-1;86098:111:0;86252:5;-1:-1:-1;;;;;86231:26:0;:17;-1:-1:-1;;;;;86231:26:0;;86227:102;;86308:1;86282:8;86291:13;;;;;;86282:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;86227:102;85937:3;;85872:472;;;-1:-1:-1;86365:8:0;;85492:900;-1:-1:-1;;;;;;85492:900:0:o;47995:104::-;48051:13;48084:7;48077:14;;;;;:::i;82532:2513::-;82675:16;82742:4;82733:5;:13;82729:45;;82755:19;;-1:-1:-1;;;82755:19:0;;;;;;;;;;;82729:45;82789:19;82823:17;82843:14;43312:7;43339:13;;43257:103;82843:14;82823:34;-1:-1:-1;87123:1:0;82935:5;:23;82931:87;;;87123:1;82979:23;;82931:87;83094:9;83087:4;:16;83083:73;;;83131:9;83124:16;;83083:73;83170:25;83198:16;83208:5;83198:9;:16::i;:::-;83170:44;;83392:4;83384:5;:12;83380:278;;;83439:12;;;83474:31;;;83470:111;;;83550:11;83530:31;;83470:111;83398:198;83380:278;;;-1:-1:-1;83641:1:0;83380:278;83672:25;83714:17;83700:32;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;83700:32:0;;83672:60;;83751:17;83772:1;83751:22;83747:78;;83801:8;-1:-1:-1;83794:15:0;;-1:-1:-1;;;83794:15:0;83747:78;83969:31;84003:26;84023:5;84003:19;:26::i;:::-;83969:60;;84044:25;84289:9;:16;;;84284:92;;-1:-1:-1;84346:14:0;;84284:92;84407:5;84390:478;84419:4;84414:1;:9;;:45;;;;;84442:17;84427:11;:32;;84414:45;84390:478;;;84497:15;84510:1;84497:12;:15::i;:::-;84485:27;;84535:9;:16;;;84576:8;84531:73;84626:14;;-1:-1:-1;;;;;84626:28:0;;84622:111;;84699:14;;;-1:-1:-1;84622:111:0;84776:5;-1:-1:-1;;;;;84755:26:0;:17;-1:-1:-1;;;;;84755:26:0;;84751:102;;84832:1;84806:8;84815:13;;;;;;84806:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;84751:102;84461:3;;84390:478;;;-1:-1:-1;;;84953:29:0;;;-1:-1:-1;84960:8:0;;-1:-1:-1;;82532:2513:0;;;;;;:::o;87263:114::-;24364:13;:11;:13::i;:::-;87325:12:::1;::::0;::::1;;87317:21;;;::::0;::::1;;87349:12;:20:::0;;-1:-1:-1;;87349:20:0::1;::::0;;87263:114::o;87385:513::-;87451:12;;;;87443:21;;;;;;87523:17;;87497:10;87483:25;;;;:13;:25;;;;;;:36;;87511:8;;87483:36;:::i;:::-;:57;;87475:66;;;;;;87572:22;;87560:8;:34;;87552:43;;;;;;87608:17;87640:8;87628:9;;:20;;;;:::i;:::-;87608:40;;87680:9;87667;:22;;87659:53;;;;-1:-1:-1;;;87659:53:0;;12536:2:1;87659:53:0;;;12518:21:1;12575:2;12555:18;;;12548:30;-1:-1:-1;;;12594:18:1;;;12587:48;12652:18;;87659:53:0;12334:342:1;87659:53:0;87759:13;;87747:8;87731:13;:11;:13::i;:::-;:24;;;;:::i;:::-;:41;;87723:77;;;;-1:-1:-1;;;87723:77:0;;;;;;;:::i;:::-;87811:31;87821:10;87833:8;87811:9;:31::i;:::-;87867:10;87853:25;;;;:13;:25;;;;;:37;;87882:8;;87853:25;:37;;87882:8;;87853:37;:::i;:::-;;;;-1:-1:-1;;;;87385:513:0:o;54868:234::-;78076:10;54963:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;54963:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;54963:60:0;;;;;;;;;;55039:55;;540:41:1;;;54963:49:0;;78076:10;55039:55;;513:18:1;55039:55:0;;;;;;;54868:234;;:::o;61661:407::-;61836:31;61849:4;61855:2;61859:7;61836:12;:31::i;:::-;-1:-1:-1;;;;;61882:14:0;;;:19;61878:183;;61921:56;61952:4;61958:2;61962:7;61971:5;61921:30;:56::i;:::-;61916:145;;62005:40;;-1:-1:-1;;;62005:40:0;;;;;;;;;;;61916:145;61661:407;;;;:::o;81029:428::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;87123:1:0;81193:7;:25;:54;;;-1:-1:-1;43312:7:0;43339:13;81222:7;:25;;81193:54;81189:103;;;81271:9;81029:428;-1:-1:-1;;81029:428:0:o;81189:103::-;81314:21;81327:7;81314:12;:21::i;:::-;81302:33;;81350:9;:16;;;81346:65;;;81390:9;81029:428;-1:-1:-1;;81029:428:0:o;81346:65::-;81428:21;81441:7;81428:12;:21::i;48205:318::-;48278:13;48309:16;48317:7;48309;:16::i;:::-;48304:59;;48334:29;;-1:-1:-1;;;48334:29:0;;;;;;;;;;;48304:59;48376:21;48400:10;:8;:10::i;:::-;48376:34;;48434:7;48428:21;48453:1;48428:26;:87;;;;;;;;;;;;;;;;;48481:7;48490:18;48500:7;48490:9;:18::i;:::-;48464:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;48421:94;48205:318;-1:-1:-1;;;48205:318:0:o;88465:136::-;24364:13;:11;:13::i;:::-;88553:17:::1;:40:::0;88465:136::o;25411:220::-;24364:13;:11;:13::i;:::-;-1:-1:-1;;;;;25496:22:0;::::1;25492:93;;25542:31;::::0;-1:-1:-1;;;25542:31:0;;25570:1:::1;25542:31;::::0;::::1;1679:51:1::0;1652:18;;25542:31:0::1;1533:203:1::0;25492:93:0::1;25595:28;25614:8;25595:18;:28::i;88301:156::-:0;24364:13;:11;:13::i;:::-;88399:22:::1;:50:::0;88301:156::o;55681:282::-;55746:4;55802:7;87123:1;55783:26;;:66;;;;;55836:13;;55826:7;:23;55783:66;:153;;;;-1:-1:-1;;55887:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;55887:44:0;:49;;55681:282::o;24643:166::-;24551:6;;-1:-1:-1;;;;;24551:6:0;78076:10;24703:23;24699:103;;24750:40;;-1:-1:-1;;;24750:40:0;;78076:10;24750:40;;;1679:51:1;1652:18;;24750:40:0;1533:203:1;71821:112:0;71898:27;71908:2;71912:8;71898:27;;;;;;;;;;;;:9;:27::i;50367:1275::-;50434:7;50469;;87123:1;50518:23;50514:1061;;50571:13;;50564:4;:20;50560:1015;;;50609:14;50626:23;;;:17;:23;;;;;;;-1:-1:-1;;;50715:24:0;;:29;;50711:845;;51380:113;51387:6;51397:1;51387:11;51380:113;;-1:-1:-1;;;51458:6:0;51440:25;;;;:17;:25;;;;;;51380:113;;50711:845;50586:989;50560:1015;51603:31;;-1:-1:-1;;;51603:31:0;;;;;;;;;;;25791:191;25884:6;;;-1:-1:-1;;;;;25901:17:0;;;-1:-1:-1;;;;;;25901:17:0;;;;;;;25934:40;;25884:6;;;25901:17;25884:6;;25934:40;;25865:16;;25934:40;25854:128;25791:191;:::o;49815:161::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49943:24:0;;;;:17;:24;;;;;;49924:44;;:18;:44::i;64152:716::-;64336:88;;-1:-1:-1;;;64336:88:0;;64315:4;;-1:-1:-1;;;;;64336:45:0;;;;;:88;;78076:10;;64403:4;;64409:7;;64418:5;;64336:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;64336:88:0;;;;;;;;-1:-1:-1;;64336:88:0;;;;;;;;;;;;:::i;:::-;;;64332:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64619:6;:13;64636:1;64619:18;64615:235;;64665:40;;-1:-1:-1;;;64665:40:0;;;;;;;;;;;64615:235;64808:6;64802:13;64793:6;64789:2;64785:15;64778:38;64332:529;-1:-1:-1;;;;;;64495:64:0;-1:-1:-1;;;64495:64:0;;-1:-1:-1;64332:529:0;64152:716;;;;;;:::o;49553:166::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49664:47:0;49683:27;49702:7;49683:18;:27::i;:::-;49664:18;:47::i;88733:108::-;88793:13;88826:7;88819:14;;;;;:::i;78196:1745::-;78261:17;78695:4;78688;78682:11;78678:22;78787:1;78781:4;78774:15;78862:4;78859:1;78855:12;78848:19;;;78944:1;78939:3;78932:14;79048:3;79287:5;79269:428;79335:1;79330:3;79326:11;79319:18;;79506:2;79500:4;79496:13;79492:2;79488:22;79483:3;79475:36;79600:2;79590:13;;79657:25;79269:428;79657:25;-1:-1:-1;79727:13:0;;;-1:-1:-1;;79842:14:0;;;79904:19;;;79842:14;78196:1745;-1:-1:-1;78196:1745:0:o;71048:689::-;71179:19;71185:2;71189:8;71179:5;:19::i;:::-;-1:-1:-1;;;;;71240:14:0;;;:19;71236:483;;71280:11;71294:13;71342:14;;;71375:233;71406:62;71445:1;71449:2;71453:7;;;;;;71462:5;71406:30;:62::i;:::-;71401:167;;71504:40;;-1:-1:-1;;;71504:40:0;;;;;;;;;;;71401:167;71603:3;71595:5;:11;71375:233;;71690:3;71673:13;;:20;71669:34;;71695:8;;;71669:34;71261:458;;71048:689;;;:::o;51741:366::-;-1:-1:-1;;;;;;;;;;;;;51851:41:0;;;;39572:3;51937:33;;;51903:68;;-1:-1:-1;;;51903:68:0;-1:-1:-1;;;52001:24:0;;:29;;-1:-1:-1;;;51982:48:0;;;;40093:3;52070:28;;;;-1:-1:-1;;;52041:58:0;-1:-1:-1;51741:366:0:o;65330:2966::-;65403:20;65426:13;;;65454;;;65450:44;;65476:18;;-1:-1:-1;;;65476:18:0;;;;;;;;;;;65450:44;-1:-1:-1;;;;;65982:22:0;;;;;;:18;:22;;;;39051:2;65982:22;;;:71;;66020:32;66008:45;;65982:71;;;66296:31;;;:17;:31;;;;;-1:-1:-1;53032:15:0;;53006:24;53002:46;52601:11;52576:23;52572:41;52569:52;52559:63;;66296:173;;66531:23;;;;66296:31;;65982:22;;67296:25;65982:22;;67149:335;67810:1;67796:12;67792:20;67750:346;67851:3;67842:7;67839:16;67750:346;;68069:7;68059:8;68056:1;68029:25;68026:1;68023;68018:59;67904:1;67891:15;67750:346;;;67754:77;68129:8;68141:1;68129:13;68125:45;;68151:19;;-1:-1:-1;;;68151:19:0;;;;;;;;;;;68125:45;68187:13;:19;-1:-1:-1;60870:193: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;2360:328::-;2437:6;2445;2453;2506:2;2494:9;2485:7;2481:23;2477:32;2474:52;;;2522:1;2519;2512:12;2474:52;2545:29;2564:9;2545:29;:::i;:::-;2535:39;;2593:38;2627:2;2616:9;2612:18;2593:38;:::i;:::-;2583:48;;2678:2;2667:9;2663:18;2650:32;2640:42;;2360:328;;;;;:::o;2693:127::-;2754:10;2749:3;2745:20;2742:1;2735:31;2785:4;2782:1;2775:15;2809:4;2806:1;2799:15;2825:632;2890:5;2920:18;2961:2;2953:6;2950:14;2947:40;;;2967:18;;:::i;:::-;3042:2;3036:9;3010:2;3096:15;;-1:-1:-1;;3092:24:1;;;3118:2;3088:33;3084:42;3072:55;;;3142:18;;;3162:22;;;3139:46;3136:72;;;3188:18;;:::i;:::-;3228:10;3224:2;3217:22;3257:6;3248:15;;3287:6;3279;3272:22;3327:3;3318:6;3313:3;3309:16;3306:25;3303:45;;;3344:1;3341;3334:12;3303:45;3394:6;3389:3;3382:4;3374:6;3370:17;3357:44;3449:1;3442:4;3433:6;3425;3421:19;3417:30;3410:41;;;;2825:632;;;;;:::o;3462:451::-;3531:6;3584:2;3572:9;3563:7;3559:23;3555:32;3552:52;;;3600:1;3597;3590:12;3552:52;3640:9;3627:23;3673:18;3665:6;3662:30;3659:50;;;3705:1;3702;3695:12;3659:50;3728:22;;3781:4;3773:13;;3769:27;-1:-1:-1;3759:55:1;;3810:1;3807;3800:12;3759:55;3833:74;3899:7;3894:2;3881:16;3876:2;3872;3868:11;3833:74;:::i;3918:615::-;4004:6;4012;4065:2;4053:9;4044:7;4040:23;4036:32;4033:52;;;4081:1;4078;4071:12;4033:52;4121:9;4108:23;4150:18;4191:2;4183:6;4180:14;4177:34;;;4207:1;4204;4197:12;4177:34;4245:6;4234:9;4230:22;4220:32;;4290:7;4283:4;4279:2;4275:13;4271:27;4261:55;;4312:1;4309;4302:12;4261:55;4352:2;4339:16;4378:2;4370:6;4367:14;4364:34;;;4394:1;4391;4384:12;4364:34;4447:7;4442:2;4432:6;4429:1;4425:14;4421:2;4417:23;4413:32;4410:45;4407:65;;;4468:1;4465;4458:12;4407:65;4499:2;4491:11;;;;;4521:6;;-1:-1:-1;3918:615:1;;-1:-1:-1;;;;3918:615:1:o;4538:349::-;4622:12;;-1:-1:-1;;;;;4618:38:1;4606:51;;4710:4;4699:16;;;4693:23;4718:18;4689:48;4673:14;;;4666:72;4801:4;4790:16;;;4784:23;4777:31;4770:39;4754:14;;;4747:63;4863:4;4852:16;;;4846:23;4871:8;4842:38;4826:14;;4819:62;4538:349::o;4892:724::-;5127:2;5179:21;;;5249:13;;5152:18;;;5271:22;;;5098:4;;5127:2;5350:15;;;;5324:2;5309:18;;;5098:4;5393:197;5407:6;5404:1;5401:13;5393:197;;;5456:52;5504:3;5495:6;5489:13;5456:52;:::i;:::-;5565:15;;;;5537:4;5528:14;;;;;5429:1;5422:9;5393:197;;5621:186;5680:6;5733:2;5721:9;5712:7;5708:23;5704:32;5701:52;;;5749:1;5746;5739:12;5701:52;5772:29;5791:9;5772:29;:::i;5812:632::-;5983:2;6035:21;;;6105:13;;6008:18;;;6127:22;;;5954:4;;5983:2;6206:15;;;;6180:2;6165:18;;;5954:4;6249:169;6263:6;6260:1;6257:13;6249:169;;;6324:13;;6312:26;;6393:15;;;;6358:12;;;;6285:1;6278:9;6249:169;;6449:322;6526:6;6534;6542;6595:2;6583:9;6574:7;6570:23;6566:32;6563:52;;;6611:1;6608;6601:12;6563:52;6634:29;6653:9;6634:29;:::i;:::-;6624:39;6710:2;6695:18;;6682:32;;-1:-1:-1;6761:2:1;6746:18;;;6733:32;;6449:322;-1:-1:-1;;;6449:322:1:o;6776:347::-;6841:6;6849;6902:2;6890:9;6881:7;6877:23;6873:32;6870:52;;;6918:1;6915;6908:12;6870:52;6941:29;6960:9;6941:29;:::i;:::-;6931:39;;7020:2;7009:9;7005:18;6992:32;7067:5;7060:13;7053:21;7046:5;7043:32;7033:60;;7089:1;7086;7079:12;7033:60;7112:5;7102:15;;;6776:347;;;;;:::o;7128:667::-;7223:6;7231;7239;7247;7300:3;7288:9;7279:7;7275:23;7271:33;7268:53;;;7317:1;7314;7307:12;7268:53;7340:29;7359:9;7340:29;:::i;:::-;7330:39;;7388:38;7422:2;7411:9;7407:18;7388:38;:::i;:::-;7378:48;;7473:2;7462:9;7458:18;7445:32;7435:42;;7528:2;7517:9;7513:18;7500:32;7555:18;7547:6;7544:30;7541:50;;;7587:1;7584;7577:12;7541:50;7610:22;;7663:4;7655:13;;7651:27;-1:-1:-1;7641:55:1;;7692:1;7689;7682:12;7641:55;7715:74;7781:7;7776:2;7763:16;7758:2;7754;7750:11;7715:74;:::i;:::-;7705:84;;;7128:667;;;;;;;:::o;7800:268::-;7998:3;7983:19;;8011:51;7987:9;8044:6;8011:51;:::i;8073:260::-;8141:6;8149;8202:2;8190:9;8181:7;8177:23;8173:32;8170:52;;;8218:1;8215;8208:12;8170:52;8241:29;8260:9;8241:29;:::i;:::-;8231:39;;8289:38;8323:2;8312:9;8308:18;8289:38;:::i;:::-;8279:48;;8073:260;;;;;:::o;8338:380::-;8417:1;8413:12;;;;8460;;;8481:61;;8535:4;8527:6;8523:17;8513:27;;8481:61;8588:2;8580:6;8577:14;8557:18;8554:38;8551:161;;8634:10;8629:3;8625:20;8622:1;8615:31;8669:4;8666:1;8659:15;8697:4;8694:1;8687:15;8551:161;;8338:380;;;:::o;8723:127::-;8784:10;8779:3;8775:20;8772:1;8765:31;8815:4;8812:1;8805:15;8839:4;8836:1;8829:15;8855:125;8920:9;;;8941:10;;;8938:36;;;8954:18;;:::i;9333:347::-;9535:2;9517:21;;;9574:2;9554:18;;;9547:30;9613:25;9608:2;9593:18;;9586:53;9671:2;9656:18;;9333:347::o;9811:545::-;9913:2;9908:3;9905:11;9902:448;;;9949:1;9974:5;9970:2;9963:17;10019:4;10015:2;10005:19;10089:2;10077:10;10073:19;10070:1;10066:27;10060:4;10056:38;10125:4;10113:10;10110:20;10107:47;;;-1:-1:-1;10148:4:1;10107:47;10203:2;10198:3;10194:12;10191:1;10187:20;10181:4;10177:31;10167:41;;10258:82;10276:2;10269:5;10266:13;10258:82;;;10321:17;;;10302:1;10291:13;10258:82;;10532:1352;10658:3;10652:10;10685:18;10677:6;10674:30;10671:56;;;10707:18;;:::i;:::-;10736:97;10826:6;10786:38;10818:4;10812:11;10786:38;:::i;:::-;10780:4;10736:97;:::i;:::-;10888:4;;10952:2;10941:14;;10969:1;10964:663;;;;11671:1;11688:6;11685:89;;;-1:-1:-1;11740:19:1;;;11734:26;11685:89;-1:-1:-1;;10489:1:1;10485:11;;;10481:24;10477:29;10467:40;10513:1;10509:11;;;10464:57;11787:81;;10934:944;;10964:663;9758:1;9751:14;;;9795:4;9782:18;;-1:-1:-1;;11000:20:1;;;11118:236;11132:7;11129:1;11126:14;11118:236;;;11221:19;;;11215:26;11200:42;;11313:27;;;;11281:1;11269:14;;;;11148:19;;11118:236;;;11122:3;11382:6;11373:7;11370:19;11367:201;;;11443:19;;;11437:26;-1:-1:-1;;11526:1:1;11522:14;;;11538:3;11518:24;11514:37;11510:42;11495:58;11480:74;;11367:201;-1:-1:-1;;;;;11614:1:1;11598:14;;;11594:22;11581:36;;-1:-1:-1;10532:1352:1:o;11889:135::-;11928:3;11949:17;;;11946:43;;11969:18;;:::i;:::-;-1:-1:-1;12016:1:1;12005:13;;11889:135::o;12029:127::-;12090:10;12085:3;12081:20;12078:1;12071:31;12121:4;12118:1;12111:15;12145:4;12142:1;12135:15;12161:168;12234:9;;;12265;;12282:15;;;12276:22;;12262:37;12252:71;;12303:18;;:::i;12681:496::-;12860:3;12898:6;12892:13;12914:66;12973:6;12968:3;12961:4;12953:6;12949:17;12914:66;:::i;:::-;13043:13;;13002:16;;;;13065:70;13043:13;13002:16;13112:4;13100:17;;13065:70;:::i;:::-;13151:20;;12681:496;-1:-1:-1;;;;12681:496:1:o;13182:489::-;-1:-1:-1;;;;;13451:15:1;;;13433:34;;13503:15;;13498:2;13483:18;;13476:43;13550:2;13535:18;;13528:34;;;13598:3;13593:2;13578:18;;13571:31;;;13376:4;;13619:46;;13645:19;;13637:6;13619:46;:::i;:::-;13611:54;13182:489;-1:-1:-1;;;;;;13182:489:1:o;13676:249::-;13745:6;13798:2;13786:9;13777:7;13773:23;13769:32;13766:52;;;13814:1;13811;13804:12;13766:52;13846:9;13840:16;13865:30;13889:5;13865:30;:::i

Swarm Source

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