{"sources":{"Gearotter.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.24;\n\n// File: @openzeppelin/contracts/utils/introspection/IERC165.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)\n\n\n/**\n * @dev Interface of the ERC165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n    /**\n     * @dev Returns true if this contract implements the interface defined by\n     * `interfaceId`. See the corresponding\n     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\n     * to learn more about how these ids are created.\n     *\n     * This function call must use less than 30 000 gas.\n     */\n    function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n\n// File: @openzeppelin/contracts/token/ERC721/IERC721.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol)\n\n\n\n/**\n * @dev Required interface of an ERC721 compliant contract.\n */\ninterface IERC721 is IERC165 {\n    /**\n     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.\n     */\n    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);\n\n    /**\n     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.\n     */\n    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);\n\n    /**\n     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.\n     */\n    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);\n\n    /**\n     * @dev Returns the number of tokens in ``owner``'s account.\n     */\n    function balanceOf(address owner) external view returns (uint256 balance);\n\n    /**\n     * @dev Returns the owner of the `tokenId` token.\n     *\n     * Requirements:\n     *\n     * - `tokenId` must exist.\n     */\n    function ownerOf(uint256 tokenId) external view returns (address owner);\n\n    /**\n     * @dev Safely transfers `tokenId` token from `from` to `to`.\n     *\n     * Requirements:\n     *\n     * - `from` cannot be the zero address.\n     * - `to` cannot be the zero address.\n     * - `tokenId` token must exist and be owned by `from`.\n     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\n     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon\n     *   a safe transfer.\n     *\n     * Emits a {Transfer} event.\n     */\n    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;\n\n    /**\n     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients\n     * are aware of the ERC721 protocol to prevent tokens from being forever locked.\n     *\n     * Requirements:\n     *\n     * - `from` cannot be the zero address.\n     * - `to` cannot be the zero address.\n     * - `tokenId` token must exist and be owned by `from`.\n     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or\n     *   {setApprovalForAll}.\n     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon\n     *   a safe transfer.\n     *\n     * Emits a {Transfer} event.\n     */\n    function safeTransferFrom(address from, address to, uint256 tokenId) external;\n\n    /**\n     * @dev Transfers `tokenId` token from `from` to `to`.\n     *\n     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721\n     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must\n     * understand this adds an external call which potentially creates a reentrancy vulnerability.\n     *\n     * Requirements:\n     *\n     * - `from` cannot be the zero address.\n     * - `to` cannot be the zero address.\n     * - `tokenId` token must be owned by `from`.\n     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transferFrom(address from, address to, uint256 tokenId) external;\n\n    /**\n     * @dev Gives permission to `to` to transfer `tokenId` token to another account.\n     * The approval is cleared when the token is transferred.\n     *\n     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.\n     *\n     * Requirements:\n     *\n     * - The caller must own the token or be an approved operator.\n     * - `tokenId` must exist.\n     *\n     * Emits an {Approval} event.\n     */\n    function approve(address to, uint256 tokenId) external;\n\n    /**\n     * @dev Approve or remove `operator` as an operator for the caller.\n     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.\n     *\n     * Requirements:\n     *\n     * - The `operator` cannot be the address zero.\n     *\n     * Emits an {ApprovalForAll} event.\n     */\n    function setApprovalForAll(address operator, bool approved) external;\n\n    /**\n     * @dev Returns the account approved for `tokenId` token.\n     *\n     * Requirements:\n     *\n     * - `tokenId` must exist.\n     */\n    function getApproved(uint256 tokenId) external view returns (address operator);\n\n    /**\n     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.\n     *\n     * See {setApprovalForAll}\n     */\n    function isApprovedForAll(address owner, address operator) external view returns (bool);\n}\n\n// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721Receiver.sol)\n\n\n/**\n * @title ERC721 token receiver interface\n * @dev Interface for any contract that wants to support safeTransfers\n * from ERC721 asset contracts.\n */\ninterface IERC721Receiver {\n    /**\n     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}\n     * by `operator` from `from`, this function is called.\n     *\n     * It must return its Solidity selector to confirm the token transfer.\n     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be\n     * reverted.\n     *\n     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.\n     */\n    function onERC721Received(\n        address operator,\n        address from,\n        uint256 tokenId,\n        bytes calldata data\n    ) external returns (bytes4);\n}\n\n// File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Metadata.sol)\n\n\n\n/**\n * @title ERC-721 Non-Fungible Token Standard, optional metadata extension\n * @dev See https://eips.ethereum.org/EIPS/eip-721\n */\ninterface IERC721Metadata is IERC721 {\n    /**\n     * @dev Returns the token collection name.\n     */\n    function name() external view returns (string memory);\n\n    /**\n     * @dev Returns the token collection symbol.\n     */\n    function symbol() external view returns (string memory);\n\n    /**\n     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.\n     */\n    function tokenURI(uint256 tokenId) external view returns (string memory);\n}\n\n// File: @openzeppelin/contracts/utils/Context.sol\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n    function _msgSender() internal view virtual returns (address) {\n        return msg.sender;\n    }\n\n    function _msgData() internal view virtual returns (bytes calldata) {\n        return msg.data;\n    }\n\n    function _contextSuffixLength() internal view virtual returns (uint256) {\n        return 0;\n    }\n}\n\n// File: @openzeppelin/contracts/utils/math/Math.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)\n\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n    /**\n     * @dev Muldiv operation overflow.\n     */\n    error MathOverflowedMulDiv();\n\n    enum Rounding {\n        Floor, // Toward negative infinity\n        Ceil, // Toward positive infinity\n        Trunc, // Toward zero\n        Expand // Away from zero\n    }\n\n    /**\n     * @dev Returns the addition of two unsigned integers, with an overflow flag.\n     */\n    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n        unchecked {\n            uint256 c = a + b;\n            if (c < a) return (false, 0);\n            return (true, c);\n        }\n    }\n\n    /**\n     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.\n     */\n    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n        unchecked {\n            if (b > a) return (false, 0);\n            return (true, a - b);\n        }\n    }\n\n    /**\n     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\n     */\n    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n        unchecked {\n            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\n            // benefit is lost if 'b' is also tested.\n            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\n            if (a == 0) return (true, 0);\n            uint256 c = a * b;\n            if (c / a != b) return (false, 0);\n            return (true, c);\n        }\n    }\n\n    /**\n     * @dev Returns the division of two unsigned integers, with a division by zero flag.\n     */\n    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n        unchecked {\n            if (b == 0) return (false, 0);\n            return (true, a / b);\n        }\n    }\n\n    /**\n     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\n     */\n    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n        unchecked {\n            if (b == 0) return (false, 0);\n            return (true, a % b);\n        }\n    }\n\n    /**\n     * @dev Returns the largest of two numbers.\n     */\n    function max(uint256 a, uint256 b) internal pure returns (uint256) {\n        return a > b ? a : b;\n    }\n\n    /**\n     * @dev Returns the smallest of two numbers.\n     */\n    function min(uint256 a, uint256 b) internal pure returns (uint256) {\n        return a < b ? a : b;\n    }\n\n    /**\n     * @dev Returns the average of two numbers. The result is rounded towards\n     * zero.\n     */\n    function average(uint256 a, uint256 b) internal pure returns (uint256) {\n        // (a + b) / 2 can overflow.\n        return (a & b) + (a ^ b) / 2;\n    }\n\n    /**\n     * @dev Returns the ceiling of the division of two numbers.\n     *\n     * This differs from standard division with `/` in that it rounds towards infinity instead\n     * of rounding towards zero.\n     */\n    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n        if (b == 0) {\n            // Guarantee the same behavior as in a regular Solidity division.\n            return a / b;\n        }\n\n        // (a + b - 1) / b can overflow on addition, so we distribute.\n        return a == 0 ? 0 : (a - 1) / b + 1;\n    }\n\n    /**\n     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n     * denominator == 0.\n     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n     * Uniswap Labs also under MIT license.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n        unchecked {\n            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\n            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n            // variables such that product = prod1 * 2^256 + prod0.\n            uint256 prod0 = x * y; // Least significant 256 bits of the product\n            uint256 prod1; // Most significant 256 bits of the product\n            assembly {\n                let mm := mulmod(x, y, not(0))\n                prod1 := sub(sub(mm, prod0), lt(mm, prod0))\n            }\n\n            // Handle non-overflow cases, 256 by 256 division.\n            if (prod1 == 0) {\n                // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n                // The surrounding unchecked block does not change this fact.\n                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n                return prod0 / denominator;\n            }\n\n            // Make sure the result is less than 2^256. Also prevents denominator == 0.\n            if (denominator <= prod1) {\n                revert MathOverflowedMulDiv();\n            }\n\n            ///////////////////////////////////////////////\n            // 512 by 256 division.\n            ///////////////////////////////////////////////\n\n            // Make division exact by subtracting the remainder from [prod1 prod0].\n            uint256 remainder;\n            assembly {\n                // Compute remainder using mulmod.\n                remainder := mulmod(x, y, denominator)\n\n                // Subtract 256 bit number from 512 bit number.\n                prod1 := sub(prod1, gt(remainder, prod0))\n                prod0 := sub(prod0, remainder)\n            }\n\n            // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n            // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n            uint256 twos = denominator & (0 - denominator);\n            assembly {\n                // Divide denominator by twos.\n                denominator := div(denominator, twos)\n\n                // Divide [prod1 prod0] by twos.\n                prod0 := div(prod0, twos)\n\n                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\n                twos := add(div(sub(0, twos), twos), 1)\n            }\n\n            // Shift in bits from prod1 into prod0.\n            prod0 |= prod1 * twos;\n\n            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\n            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\n            // four bits. That is, denominator * inv = 1 mod 2^4.\n            uint256 inverse = (3 * denominator) ^ 2;\n\n            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n            // works in modular arithmetic, doubling the correct bits in each step.\n            inverse *= 2 - denominator * inverse; // inverse mod 2^8\n            inverse *= 2 - denominator * inverse; // inverse mod 2^16\n            inverse *= 2 - denominator * inverse; // inverse mod 2^32\n            inverse *= 2 - denominator * inverse; // inverse mod 2^64\n            inverse *= 2 - denominator * inverse; // inverse mod 2^128\n            inverse *= 2 - denominator * inverse; // inverse mod 2^256\n\n            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\n            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\n            // is no longer required.\n            result = prod0 * inverse;\n            return result;\n        }\n    }\n\n    /**\n     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n        uint256 result = mulDiv(x, y, denominator);\n        if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {\n            result += 1;\n        }\n        return result;\n    }\n\n    /**\n     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n     * towards zero.\n     *\n     * Inspired by Henry S. Warren, Jr.'s \"Hacker's Delight\" (Chapter 11).\n     */\n    function sqrt(uint256 a) internal pure returns (uint256) {\n        if (a == 0) {\n            return 0;\n        }\n\n        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\n        //\n        // We know that the \"msb\" (most significant bit) of our target number `a` is a power of 2 such that we have\n        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\n        //\n        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\n        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\n        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\n        //\n        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\n        uint256 result = 1 << (log2(a) >> 1);\n\n        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\n        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\n        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\n        // into the expected uint128 result.\n        unchecked {\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            return min(result, a / result);\n        }\n    }\n\n    /**\n     * @notice Calculates sqrt(a), following the selected rounding direction.\n     */\n    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = sqrt(a);\n            return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 2 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >> 128 > 0) {\n                value >>= 128;\n                result += 128;\n            }\n            if (value >> 64 > 0) {\n                value >>= 64;\n                result += 64;\n            }\n            if (value >> 32 > 0) {\n                value >>= 32;\n                result += 32;\n            }\n            if (value >> 16 > 0) {\n                value >>= 16;\n                result += 16;\n            }\n            if (value >> 8 > 0) {\n                value >>= 8;\n                result += 8;\n            }\n            if (value >> 4 > 0) {\n                value >>= 4;\n                result += 4;\n            }\n            if (value >> 2 > 0) {\n                value >>= 2;\n                result += 2;\n            }\n            if (value >> 1 > 0) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log2(value);\n            return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 10 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >= 10 ** 64) {\n                value /= 10 ** 64;\n                result += 64;\n            }\n            if (value >= 10 ** 32) {\n                value /= 10 ** 32;\n                result += 32;\n            }\n            if (value >= 10 ** 16) {\n                value /= 10 ** 16;\n                result += 16;\n            }\n            if (value >= 10 ** 8) {\n                value /= 10 ** 8;\n                result += 8;\n            }\n            if (value >= 10 ** 4) {\n                value /= 10 ** 4;\n                result += 4;\n            }\n            if (value >= 10 ** 2) {\n                value /= 10 ** 2;\n                result += 2;\n            }\n            if (value >= 10 ** 1) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log10(value);\n            return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 256 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     *\n     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n     */\n    function log256(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >> 128 > 0) {\n                value >>= 128;\n                result += 16;\n            }\n            if (value >> 64 > 0) {\n                value >>= 64;\n                result += 8;\n            }\n            if (value >> 32 > 0) {\n                value >>= 32;\n                result += 4;\n            }\n            if (value >> 16 > 0) {\n                value >>= 16;\n                result += 2;\n            }\n            if (value >> 8 > 0) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log256(value);\n            return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n     */\n    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n        return uint8(rounding) % 2 == 1;\n    }\n}\n\n// File: @openzeppelin/contracts/utils/math/SignedMath.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)\n\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n    /**\n     * @dev Returns the largest of two signed numbers.\n     */\n    function max(int256 a, int256 b) internal pure returns (int256) {\n        return a > b ? a : b;\n    }\n\n    /**\n     * @dev Returns the smallest of two signed numbers.\n     */\n    function min(int256 a, int256 b) internal pure returns (int256) {\n        return a < b ? a : b;\n    }\n\n    /**\n     * @dev Returns the average of two signed numbers without overflow.\n     * The result is rounded towards zero.\n     */\n    function average(int256 a, int256 b) internal pure returns (int256) {\n        // Formula from the book \"Hacker's Delight\"\n        int256 x = (a & b) + ((a ^ b) >> 1);\n        return x + (int256(uint256(x) >> 255) & (a ^ b));\n    }\n\n    /**\n     * @dev Returns the absolute unsigned value of a signed value.\n     */\n    function abs(int256 n) internal pure returns (uint256) {\n        unchecked {\n            // must be unchecked in order to support `n = type(int256).min`\n            return uint256(n >= 0 ? n : -n);\n        }\n    }\n}\n\n// File: @openzeppelin/contracts/utils/Strings.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)\n\n\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n    bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n    uint8 private constant ADDRESS_LENGTH = 20;\n\n    /**\n     * @dev The `value` string doesn't fit in the specified `length`.\n     */\n    error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n     */\n    function toString(uint256 value) internal pure returns (string memory) {\n        unchecked {\n            uint256 length = Math.log10(value) + 1;\n            string memory buffer = new string(length);\n            uint256 ptr;\n            /// @solidity memory-safe-assembly\n            assembly {\n                ptr := add(buffer, add(32, length))\n            }\n            while (true) {\n                ptr--;\n                /// @solidity memory-safe-assembly\n                assembly {\n                    mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\n                }\n                value /= 10;\n                if (value == 0) break;\n            }\n            return buffer;\n        }\n    }\n\n    /**\n     * @dev Converts a `int256` to its ASCII `string` decimal representation.\n     */\n    function toStringSigned(int256 value) internal pure returns (string memory) {\n        return string.concat(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value)));\n    }\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n     */\n    function toHexString(uint256 value) internal pure returns (string memory) {\n        unchecked {\n            return toHexString(value, Math.log256(value) + 1);\n        }\n    }\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n     */\n    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n        uint256 localValue = value;\n        bytes memory buffer = new bytes(2 * length + 2);\n        buffer[0] = \"0\";\n        buffer[1] = \"x\";\n        for (uint256 i = 2 * length + 1; i > 1; --i) {\n            buffer[i] = HEX_DIGITS[localValue & 0xf];\n            localValue >>= 4;\n        }\n        if (localValue != 0) {\n            revert StringsInsufficientHexLength(value, length);\n        }\n        return string(buffer);\n    }\n\n    /**\n     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\n     * representation.\n     */\n    function toHexString(address addr) internal pure returns (string memory) {\n        return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\n    }\n\n    /**\n     * @dev Returns true if the two strings are equal.\n     */\n    function equal(string memory a, string memory b) internal pure returns (bool) {\n        return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\n    }\n}\n\n// File: @openzeppelin/contracts/utils/introspection/ERC165.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol)\n\n\n\n/**\n * @dev Implementation of the {IERC165} interface.\n *\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\n * for the additional interface id that will be supported. For example:\n *\n * ```solidity\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\n * }\n * ```\n */\nabstract contract ERC165 is IERC165 {\n    /**\n     * @dev See {IERC165-supportsInterface}.\n     */\n    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {\n        return interfaceId == type(IERC165).interfaceId;\n    }\n}\n\n// File: @openzeppelin/contracts/interfaces/draft-IERC6093.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)\n\n/**\n * @dev Standard ERC20 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.\n */\ninterface IERC20Errors {\n    /**\n     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     * @param balance Current balance for the interacting account.\n     * @param needed Minimum amount required to perform a transfer.\n     */\n    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);\n\n    /**\n     * @dev Indicates a failure with the token `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     */\n    error ERC20InvalidSender(address sender);\n\n    /**\n     * @dev Indicates a failure with the token `receiver`. Used in transfers.\n     * @param receiver Address to which tokens are being transferred.\n     */\n    error ERC20InvalidReceiver(address receiver);\n\n    /**\n     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.\n     * @param spender Address that may be allowed to operate on tokens without being their owner.\n     * @param allowance Amount of tokens a `spender` is allowed to operate with.\n     * @param needed Minimum amount required to perform a transfer.\n     */\n    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);\n\n    /**\n     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n     * @param approver Address initiating an approval operation.\n     */\n    error ERC20InvalidApprover(address approver);\n\n    /**\n     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.\n     * @param spender Address that may be allowed to operate on tokens without being their owner.\n     */\n    error ERC20InvalidSpender(address spender);\n}\n\n/**\n * @dev Standard ERC721 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.\n */\ninterface IERC721Errors {\n    /**\n     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.\n     * Used in balance queries.\n     * @param owner Address of the current owner of a token.\n     */\n    error ERC721InvalidOwner(address owner);\n\n    /**\n     * @dev Indicates a `tokenId` whose `owner` is the zero address.\n     * @param tokenId Identifier number of a token.\n     */\n    error ERC721NonexistentToken(uint256 tokenId);\n\n    /**\n     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     * @param tokenId Identifier number of a token.\n     * @param owner Address of the current owner of a token.\n     */\n    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);\n\n    /**\n     * @dev Indicates a failure with the token `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     */\n    error ERC721InvalidSender(address sender);\n\n    /**\n     * @dev Indicates a failure with the token `receiver`. Used in transfers.\n     * @param receiver Address to which tokens are being transferred.\n     */\n    error ERC721InvalidReceiver(address receiver);\n\n    /**\n     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     * @param tokenId Identifier number of a token.\n     */\n    error ERC721InsufficientApproval(address operator, uint256 tokenId);\n\n    /**\n     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n     * @param approver Address initiating an approval operation.\n     */\n    error ERC721InvalidApprover(address approver);\n\n    /**\n     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     */\n    error ERC721InvalidOperator(address operator);\n}\n\n/**\n * @dev Standard ERC1155 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.\n */\ninterface IERC1155Errors {\n    /**\n     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     * @param balance Current balance for the interacting account.\n     * @param needed Minimum amount required to perform a transfer.\n     * @param tokenId Identifier number of a token.\n     */\n    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);\n\n    /**\n     * @dev Indicates a failure with the token `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     */\n    error ERC1155InvalidSender(address sender);\n\n    /**\n     * @dev Indicates a failure with the token `receiver`. Used in transfers.\n     * @param receiver Address to which tokens are being transferred.\n     */\n    error ERC1155InvalidReceiver(address receiver);\n\n    /**\n     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     * @param owner Address of the current owner of a token.\n     */\n    error ERC1155MissingApprovalForAll(address operator, address owner);\n\n    /**\n     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n     * @param approver Address initiating an approval operation.\n     */\n    error ERC1155InvalidApprover(address approver);\n\n    /**\n     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     */\n    error ERC1155InvalidOperator(address operator);\n\n    /**\n     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.\n     * Used in batch transfers.\n     * @param idsLength Length of the array of token identifiers\n     * @param valuesLength Length of the array of token amounts\n     */\n    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);\n}\n\n// File: @openzeppelin/contracts/token/ERC721/ERC721.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/ERC721.sol)\n\n\n\n/**\n * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including\n * the Metadata extension, but not including the Enumerable extension, which is available separately as\n * {ERC721Enumerable}.\n */\nabstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Errors {\n    using Strings for uint256;\n\n    // Token name\n    string private _name;\n\n    // Token symbol\n    string private _symbol;\n\n    mapping(uint256 tokenId => address) private _owners;\n\n    mapping(address owner => uint256) private _balances;\n\n    mapping(uint256 tokenId => address) private _tokenApprovals;\n\n    mapping(address owner => mapping(address operator => bool)) private _operatorApprovals;\n\n    /**\n     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.\n     */\n    constructor(string memory name_, string memory symbol_) {\n        _name = name_;\n        _symbol = symbol_;\n    }\n\n    /**\n     * @dev See {IERC165-supportsInterface}.\n     */\n    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {\n        return\n            interfaceId == type(IERC721).interfaceId ||\n            interfaceId == type(IERC721Metadata).interfaceId ||\n            super.supportsInterface(interfaceId);\n    }\n\n    /**\n     * @dev See {IERC721-balanceOf}.\n     */\n    function balanceOf(address owner) public view virtual returns (uint256) {\n        if (owner == address(0)) {\n            revert ERC721InvalidOwner(address(0));\n        }\n        return _balances[owner];\n    }\n\n    /**\n     * @dev See {IERC721-ownerOf}.\n     */\n    function ownerOf(uint256 tokenId) public view virtual returns (address) {\n        return _requireOwned(tokenId);\n    }\n\n    /**\n     * @dev See {IERC721Metadata-name}.\n     */\n    function name() public view virtual returns (string memory) {\n        return _name;\n    }\n\n    /**\n     * @dev See {IERC721Metadata-symbol}.\n     */\n    function symbol() public view virtual returns (string memory) {\n        return _symbol;\n    }\n\n    /**\n     * @dev See {IERC721Metadata-tokenURI}.\n     */\n    function tokenURI(uint256 tokenId) public view virtual returns (string memory) {\n        _requireOwned(tokenId);\n\n        string memory baseURI = _baseURI();\n        return bytes(baseURI).length > 0 ? string.concat(baseURI, tokenId.toString()) : \"\";\n    }\n\n    /**\n     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each\n     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty\n     * by default, can be overridden in child contracts.\n     */\n    function _baseURI() internal view virtual returns (string memory) {\n        return \"\";\n    }\n\n    /**\n     * @dev See {IERC721-approve}.\n     */\n    function approve(address to, uint256 tokenId) public virtual {\n        _approve(to, tokenId, _msgSender());\n    }\n\n    /**\n     * @dev See {IERC721-getApproved}.\n     */\n    function getApproved(uint256 tokenId) public view virtual returns (address) {\n        _requireOwned(tokenId);\n\n        return _getApproved(tokenId);\n    }\n\n    /**\n     * @dev See {IERC721-setApprovalForAll}.\n     */\n    function setApprovalForAll(address operator, bool approved) public virtual {\n        _setApprovalForAll(_msgSender(), operator, approved);\n    }\n\n    /**\n     * @dev See {IERC721-isApprovedForAll}.\n     */\n    function isApprovedForAll(address owner, address operator) public view virtual returns (bool) {\n        return _operatorApprovals[owner][operator];\n    }\n\n    /**\n     * @dev See {IERC721-transferFrom}.\n     */\n    function transferFrom(address from, address to, uint256 tokenId) public virtual {\n        if (to == address(0)) {\n            revert ERC721InvalidReceiver(address(0));\n        }\n        // Setting an \"auth\" arguments enables the `_isAuthorized` check which verifies that the token exists\n        // (from != 0). Therefore, it is not needed to verify that the return value is not 0 here.\n        address previousOwner = _update(to, tokenId, _msgSender());\n        if (previousOwner != from) {\n            revert ERC721IncorrectOwner(from, tokenId, previousOwner);\n        }\n    }\n\n    /**\n     * @dev See {IERC721-safeTransferFrom}.\n     */\n    function safeTransferFrom(address from, address to, uint256 tokenId) public {\n        safeTransferFrom(from, to, tokenId, \"\");\n    }\n\n    /**\n     * @dev See {IERC721-safeTransferFrom}.\n     */\n    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual {\n        transferFrom(from, to, tokenId);\n        _checkOnERC721Received(from, to, tokenId, data);\n    }\n\n    /**\n     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist\n     *\n     * IMPORTANT: Any overrides to this function that add ownership of tokens not tracked by the\n     * core ERC721 logic MUST be matched with the use of {_increaseBalance} to keep balances\n     * consistent with ownership. The invariant to preserve is that for any address `a` the value returned by\n     * `balanceOf(a)` must be equal to the number of tokens such that `_ownerOf(tokenId)` is `a`.\n     */\n    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {\n        return _owners[tokenId];\n    }\n\n    /**\n     * @dev Returns the approved address for `tokenId`. Returns 0 if `tokenId` is not minted.\n     */\n    function _getApproved(uint256 tokenId) internal view virtual returns (address) {\n        return _tokenApprovals[tokenId];\n    }\n\n    /**\n     * @dev Returns whether `spender` is allowed to manage `owner`'s tokens, or `tokenId` in\n     * particular (ignoring whether it is owned by `owner`).\n     *\n     * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this\n     * assumption.\n     */\n    function _isAuthorized(address owner, address spender, uint256 tokenId) internal view virtual returns (bool) {\n        return\n            spender != address(0) &&\n            (owner == spender || isApprovedForAll(owner, spender) || _getApproved(tokenId) == spender);\n    }\n\n    /**\n     * @dev Checks if `spender` can operate on `tokenId`, assuming the provided `owner` is the actual owner.\n     * Reverts if `spender` does not have approval from the provided `owner` for the given token or for all its assets\n     * the `spender` for the specific `tokenId`.\n     *\n     * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this\n     * assumption.\n     */\n    function _checkAuthorized(address owner, address spender, uint256 tokenId) internal view virtual {\n        if (!_isAuthorized(owner, spender, tokenId)) {\n            if (owner == address(0)) {\n                revert ERC721NonexistentToken(tokenId);\n            } else {\n                revert ERC721InsufficientApproval(spender, tokenId);\n            }\n        }\n    }\n\n    /**\n     * @dev Unsafe write access to the balances, used by extensions that \"mint\" tokens using an {ownerOf} override.\n     *\n     * NOTE: the value is limited to type(uint128).max. This protect against _balance overflow. It is unrealistic that\n     * a uint256 would ever overflow from increments when these increments are bounded to uint128 values.\n     *\n     * WARNING: Increasing an account's balance using this function tends to be paired with an override of the\n     * {_ownerOf} function to resolve the ownership of the corresponding tokens so that balances and ownership\n     * remain consistent with one another.\n     */\n    function _increaseBalance(address account, uint128 value) internal virtual {\n        unchecked {\n            _balances[account] += value;\n        }\n    }\n\n    /**\n     * @dev Transfers `tokenId` from its current owner to `to`, or alternatively mints (or burns) if the current owner\n     * (or `to`) is the zero address. Returns the owner of the `tokenId` before the update.\n     *\n     * The `auth` argument is optional. If the value passed is non 0, then this function will check that\n     * `auth` is either the owner of the token, or approved to operate on the token (by the owner).\n     *\n     * Emits a {Transfer} event.\n     *\n     * NOTE: If overriding this function in a way that tracks balances, see also {_increaseBalance}.\n     */\n    function _update(address to, uint256 tokenId, address auth) internal virtual returns (address) {\n        address from = _ownerOf(tokenId);\n\n        // Perform (optional) operator check\n        if (auth != address(0)) {\n            _checkAuthorized(from, auth, tokenId);\n        }\n\n        // Execute the update\n        if (from != address(0)) {\n            // Clear approval. No need to re-authorize or emit the Approval event\n            _approve(address(0), tokenId, address(0), false);\n\n            unchecked {\n                _balances[from] -= 1;\n            }\n        }\n\n        if (to != address(0)) {\n            unchecked {\n                _balances[to] += 1;\n            }\n        }\n\n        _owners[tokenId] = to;\n\n        emit Transfer(from, to, tokenId);\n\n        return from;\n    }\n\n    /**\n     * @dev Mints `tokenId` and transfers it to `to`.\n     *\n     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible\n     *\n     * Requirements:\n     *\n     * - `tokenId` must not exist.\n     * - `to` cannot be the zero address.\n     *\n     * Emits a {Transfer} event.\n     */\n    function _mint(address to, uint256 tokenId) internal {\n        if (to == address(0)) {\n            revert ERC721InvalidReceiver(address(0));\n        }\n        address previousOwner = _update(to, tokenId, address(0));\n        if (previousOwner != address(0)) {\n            revert ERC721InvalidSender(address(0));\n        }\n    }\n\n    /**\n     * @dev Mints `tokenId`, transfers it to `to` and checks for `to` acceptance.\n     *\n     * Requirements:\n     *\n     * - `tokenId` must not exist.\n     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n     *\n     * Emits a {Transfer} event.\n     */\n    function _safeMint(address to, uint256 tokenId) internal {\n        _safeMint(to, tokenId, \"\");\n    }\n\n    /**\n     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is\n     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.\n     */\n    function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual {\n        _mint(to, tokenId);\n        _checkOnERC721Received(address(0), to, tokenId, data);\n    }\n\n    /**\n     * @dev Destroys `tokenId`.\n     * The approval is cleared when the token is burned.\n     * This is an internal function that does not check if the sender is authorized to operate on the token.\n     *\n     * Requirements:\n     *\n     * - `tokenId` must exist.\n     *\n     * Emits a {Transfer} event.\n     */\n    function _burn(uint256 tokenId) internal {\n        address previousOwner = _update(address(0), tokenId, address(0));\n        if (previousOwner == address(0)) {\n            revert ERC721NonexistentToken(tokenId);\n        }\n    }\n\n    /**\n     * @dev Transfers `tokenId` from `from` to `to`.\n     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.\n     *\n     * Requirements:\n     *\n     * - `to` cannot be the zero address.\n     * - `tokenId` token must be owned by `from`.\n     *\n     * Emits a {Transfer} event.\n     */\n    function _transfer(address from, address to, uint256 tokenId) internal {\n        if (to == address(0)) {\n            revert ERC721InvalidReceiver(address(0));\n        }\n        address previousOwner = _update(to, tokenId, address(0));\n        if (previousOwner == address(0)) {\n            revert ERC721NonexistentToken(tokenId);\n        } else if (previousOwner != from) {\n            revert ERC721IncorrectOwner(from, tokenId, previousOwner);\n        }\n    }\n\n    /**\n     * @dev Safely transfers `tokenId` token from `from` to `to`, checking that contract recipients\n     * are aware of the ERC721 standard to prevent tokens from being forever locked.\n     *\n     * `data` is additional data, it has no specified format and it is sent in call to `to`.\n     *\n     * This internal function is like {safeTransferFrom} in the sense that it invokes\n     * {IERC721Receiver-onERC721Received} on the receiver, and can be used to e.g.\n     * implement alternative mechanisms to perform token transfer, such as signature-based.\n     *\n     * Requirements:\n     *\n     * - `tokenId` token must exist and be owned by `from`.\n     * - `to` cannot be the zero address.\n     * - `from` cannot be the zero address.\n     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n     *\n     * Emits a {Transfer} event.\n     */\n    function _safeTransfer(address from, address to, uint256 tokenId) internal {\n        _safeTransfer(from, to, tokenId, \"\");\n    }\n\n    /**\n     * @dev Same as {xref-ERC721-_safeTransfer-address-address-uint256-}[`_safeTransfer`], with an additional `data` parameter which is\n     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.\n     */\n    function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual {\n        _transfer(from, to, tokenId);\n        _checkOnERC721Received(from, to, tokenId, data);\n    }\n\n    /**\n     * @dev Approve `to` to operate on `tokenId`\n     *\n     * The `auth` argument is optional. If the value passed is non 0, then this function will check that `auth` is\n     * either the owner of the token, or approved to operate on all tokens held by this owner.\n     *\n     * Emits an {Approval} event.\n     *\n     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.\n     */\n    function _approve(address to, uint256 tokenId, address auth) internal {\n        _approve(to, tokenId, auth, true);\n    }\n\n    /**\n     * @dev Variant of `_approve` with an optional flag to enable or disable the {Approval} event. The event is not\n     * emitted in the context of transfers.\n     */\n    function _approve(address to, uint256 tokenId, address auth, bool emitEvent) internal virtual {\n        // Avoid reading the owner unless necessary\n        if (emitEvent || auth != address(0)) {\n            address owner = _requireOwned(tokenId);\n\n            // We do not use _isAuthorized because single-token approvals should not be able to call approve\n            if (auth != address(0) && owner != auth && !isApprovedForAll(owner, auth)) {\n                revert ERC721InvalidApprover(auth);\n            }\n\n            if (emitEvent) {\n                emit Approval(owner, to, tokenId);\n            }\n        }\n\n        _tokenApprovals[tokenId] = to;\n    }\n\n    /**\n     * @dev Approve `operator` to operate on all of `owner` tokens\n     *\n     * Requirements:\n     * - operator can't be the address zero.\n     *\n     * Emits an {ApprovalForAll} event.\n     */\n    function _setApprovalForAll(address owner, address operator, bool approved) internal virtual {\n        if (operator == address(0)) {\n            revert ERC721InvalidOperator(operator);\n        }\n        _operatorApprovals[owner][operator] = approved;\n        emit ApprovalForAll(owner, operator, approved);\n    }\n\n    /**\n     * @dev Reverts if the `tokenId` doesn't have a current owner (it hasn't been minted, or it has been burned).\n     * Returns the owner.\n     *\n     * Overrides to ownership logic should be done to {_ownerOf}.\n     */\n    function _requireOwned(uint256 tokenId) internal view returns (address) {\n        address owner = _ownerOf(tokenId);\n        if (owner == address(0)) {\n            revert ERC721NonexistentToken(tokenId);\n        }\n        return owner;\n    }\n\n    /**\n     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target address. This will revert if the\n     * recipient doesn't accept the token transfer. The call is not executed if the target address is not a contract.\n     *\n     * @param from address representing the previous owner of the given token ID\n     * @param to target address that will receive the tokens\n     * @param tokenId uint256 ID of the token to be transferred\n     * @param data bytes optional data to send along with the call\n     */\n    function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory data) private {\n        if (to.code.length > 0) {\n            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {\n                if (retval != IERC721Receiver.onERC721Received.selector) {\n                    revert ERC721InvalidReceiver(to);\n                }\n            } catch (bytes memory reason) {\n                if (reason.length == 0) {\n                    revert ERC721InvalidReceiver(to);\n                } else {\n                    /// @solidity memory-safe-assembly\n                    assembly {\n                        revert(add(32, reason), mload(reason))\n                    }\n                }\n            }\n        }\n    }\n}\n\n// File: @openzeppelin/contracts/interfaces/IERC2981.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC2981.sol)\n\n\n\n/**\n * @dev Interface for the NFT Royalty Standard.\n *\n * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal\n * support for royalty payments across all NFT marketplaces and ecosystem participants.\n */\ninterface IERC2981 is IERC165 {\n    /**\n     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of\n     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.\n     */\n    function royaltyInfo(\n        uint256 tokenId,\n        uint256 salePrice\n    ) external view returns (address receiver, uint256 royaltyAmount);\n}\n\n// File: @openzeppelin/contracts/token/common/ERC2981.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (token/common/ERC2981.sol)\n\n\n\n/**\n * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.\n *\n * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for\n * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.\n *\n * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the\n * fee is specified in basis points by default.\n *\n * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See\n * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to\n * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.\n */\nabstract contract ERC2981 is IERC2981, ERC165 {\n    struct RoyaltyInfo {\n        address receiver;\n        uint96 royaltyFraction;\n    }\n\n    RoyaltyInfo private _defaultRoyaltyInfo;\n    mapping(uint256 tokenId => RoyaltyInfo) private _tokenRoyaltyInfo;\n\n    /**\n     * @dev The default royalty set is invalid (eg. (numerator / denominator) >= 1).\n     */\n    error ERC2981InvalidDefaultRoyalty(uint256 numerator, uint256 denominator);\n\n    /**\n     * @dev The default royalty receiver is invalid.\n     */\n    error ERC2981InvalidDefaultRoyaltyReceiver(address receiver);\n\n    /**\n     * @dev The royalty set for an specific `tokenId` is invalid (eg. (numerator / denominator) >= 1).\n     */\n    error ERC2981InvalidTokenRoyalty(uint256 tokenId, uint256 numerator, uint256 denominator);\n\n    /**\n     * @dev The royalty receiver for `tokenId` is invalid.\n     */\n    error ERC2981InvalidTokenRoyaltyReceiver(uint256 tokenId, address receiver);\n\n    /**\n     * @dev See {IERC165-supportsInterface}.\n     */\n    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) {\n        return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId);\n    }\n\n    /**\n     * @inheritdoc IERC2981\n     */\n    function royaltyInfo(uint256 tokenId, uint256 salePrice) public view virtual returns (address, uint256) {\n        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[tokenId];\n\n        if (royalty.receiver == address(0)) {\n            royalty = _defaultRoyaltyInfo;\n        }\n\n        uint256 royaltyAmount = (salePrice * royalty.royaltyFraction) / _feeDenominator();\n\n        return (royalty.receiver, royaltyAmount);\n    }\n\n    /**\n     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a\n     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an\n     * override.\n     */\n    function _feeDenominator() internal pure virtual returns (uint96) {\n        return 10000;\n    }\n\n    /**\n     * @dev Sets the royalty information that all ids in this contract will default to.\n     *\n     * Requirements:\n     *\n     * - `receiver` cannot be the zero address.\n     * - `feeNumerator` cannot be greater than the fee denominator.\n     */\n    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {\n        uint256 denominator = _feeDenominator();\n        if (feeNumerator > denominator) {\n            // Royalty fee will exceed the sale price\n            revert ERC2981InvalidDefaultRoyalty(feeNumerator, denominator);\n        }\n        if (receiver == address(0)) {\n            revert ERC2981InvalidDefaultRoyaltyReceiver(address(0));\n        }\n\n        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);\n    }\n\n    /**\n     * @dev Removes default royalty information.\n     */\n    function _deleteDefaultRoyalty() internal virtual {\n        delete _defaultRoyaltyInfo;\n    }\n\n    /**\n     * @dev Sets the royalty information for a specific token id, overriding the global default.\n     *\n     * Requirements:\n     *\n     * - `receiver` cannot be the zero address.\n     * - `feeNumerator` cannot be greater than the fee denominator.\n     */\n    function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual {\n        uint256 denominator = _feeDenominator();\n        if (feeNumerator > denominator) {\n            // Royalty fee will exceed the sale price\n            revert ERC2981InvalidTokenRoyalty(tokenId, feeNumerator, denominator);\n        }\n        if (receiver == address(0)) {\n            revert ERC2981InvalidTokenRoyaltyReceiver(tokenId, address(0));\n        }\n\n        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);\n    }\n\n    /**\n     * @dev Resets royalty information for the token id back to the global default.\n     */\n    function _resetTokenRoyalty(uint256 tokenId) internal virtual {\n        delete _tokenRoyaltyInfo[tokenId];\n    }\n}\n\n// File: @openzeppelin/contracts/access/Ownable.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\n\n\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * The initial owner is set to the address provided by the deployer. This can\n * later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\nabstract contract Ownable is Context {\n    address private _owner;\n\n    /**\n     * @dev The caller account is not authorized to perform an operation.\n     */\n    error OwnableUnauthorizedAccount(address account);\n\n    /**\n     * @dev The owner is not a valid owner account. (eg. `address(0)`)\n     */\n    error OwnableInvalidOwner(address owner);\n\n    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n    /**\n     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n     */\n    constructor(address initialOwner) {\n        if (initialOwner == address(0)) {\n            revert OwnableInvalidOwner(address(0));\n        }\n        _transferOwnership(initialOwner);\n    }\n\n    /**\n     * @dev Throws if called by any account other than the owner.\n     */\n    modifier onlyOwner() {\n        _checkOwner();\n        _;\n    }\n\n    /**\n     * @dev Returns the address of the current owner.\n     */\n    function owner() public view virtual returns (address) {\n        return _owner;\n    }\n\n    /**\n     * @dev Throws if the sender is not the owner.\n     */\n    function _checkOwner() internal view virtual {\n        if (owner() != _msgSender()) {\n            revert OwnableUnauthorizedAccount(_msgSender());\n        }\n    }\n\n    /**\n     * @dev Leaves the contract without owner. It will not be possible to call\n     * `onlyOwner` functions. Can only be called by the current owner.\n     *\n     * NOTE: Renouncing ownership will leave the contract without an owner,\n     * thereby disabling any functionality that is only available to the owner.\n     */\n    function renounceOwnership() public virtual onlyOwner {\n        _transferOwnership(address(0));\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\n     * Can only be called by the current owner.\n     */\n    function transferOwnership(address newOwner) public virtual onlyOwner {\n        if (newOwner == address(0)) {\n            revert OwnableInvalidOwner(address(0));\n        }\n        _transferOwnership(newOwner);\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\n     * Internal function without access restriction.\n     */\n    function _transferOwnership(address newOwner) internal virtual {\n        address oldOwner = _owner;\n        _owner = newOwner;\n        emit OwnershipTransferred(oldOwner, newOwner);\n    }\n}\n\n// File: @openzeppelin/contracts/utils/Base64.sol\n// OpenZeppelin Contracts (last updated v5.0.2) (utils/Base64.sol)\n\n\n/**\n * @dev Provides a set of functions to operate with Base64 strings.\n */\nlibrary Base64 {\n    /**\n     * @dev Base64 Encoding/Decoding Table\n     */\n    string internal constant _TABLE = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\n\n    /**\n     * @dev Converts a `bytes` to its Bytes64 `string` representation.\n     */\n    function encode(bytes memory data) internal pure returns (string memory) {\n        /**\n         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence\n         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol\n         */\n        if (data.length == 0) return \"\";\n\n        // Loads the table into memory\n        string memory table = _TABLE;\n\n        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter\n        // and split into 4 numbers of 6 bits.\n        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up\n        // - `data.length + 2`  -> Round up\n        // - `/ 3`              -> Number of 3-bytes chunks\n        // - `4 *`              -> 4 characters for each chunk\n        string memory result = new string(4 * ((data.length + 2) / 3));\n\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Prepare the lookup table (skip the first \"length\" byte)\n            let tablePtr := add(table, 1)\n\n            // Prepare result pointer, jump over length\n            let resultPtr := add(result, 0x20)\n            let dataPtr := data\n            let endPtr := add(data, mload(data))\n\n            // In some cases, the last iteration will read bytes after the end of the data. We cache the value, and\n            // set it to zero to make sure no dirty bytes are read in that section.\n            let afterPtr := add(endPtr, 0x20)\n            let afterCache := mload(afterPtr)\n            mstore(afterPtr, 0x00)\n\n            // Run over the input, 3 bytes at a time\n            for {\n\n            } lt(dataPtr, endPtr) {\n\n            } {\n                // Advance 3 bytes\n                dataPtr := add(dataPtr, 3)\n                let input := mload(dataPtr)\n\n                // To write each character, shift the 3 byte (24 bits) chunk\n                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)\n                // and apply logical AND with 0x3F to bitmask the least significant 6 bits.\n                // Use this as an index into the lookup table, mload an entire word\n                // so the desired character is in the least significant byte, and\n                // mstore8 this least significant byte into the result and continue.\n\n                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))\n                resultPtr := add(resultPtr, 1) // Advance\n\n                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))\n                resultPtr := add(resultPtr, 1) // Advance\n\n                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))\n                resultPtr := add(resultPtr, 1) // Advance\n\n                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))\n                resultPtr := add(resultPtr, 1) // Advance\n            }\n\n            // Reset the value that was cached\n            mstore(afterPtr, afterCache)\n\n            // When data `bytes` is not exactly 3 bytes long\n            // it is padded with `=` characters at the end\n            switch mod(mload(data), 3)\n            case 1 {\n                mstore8(sub(resultPtr, 1), 0x3d)\n                mstore8(sub(resultPtr, 2), 0x3d)\n            }\n            case 2 {\n                mstore8(sub(resultPtr, 1), 0x3d)\n            }\n        }\n\n        return result;\n    }\n}\n\n// File: Gearotter.sol\ninterface IAgentIdRegistry {\n    function handleOf(address wallet) external view returns (string memory);\n}\n\n/// @title Gearotter - 3300 Friendly copper robot otter with green eyes in a bright tech workshop for .ai Agent ID holders on BNB Chain\n/// @notice Each wallet gets its first mint free while the 301 free pool lasts (gas only).\n/// Every other mint costs 0.00005 BNB. Max 50 per wallet, 3300 total. Collectible only, not an investment.\n/// @dev Art and metadata are generated fully on-chain from each token id. No IPFS, no reveal, nothing to set after deploy.\ncontract Gearotter is ERC721, ERC2981, Ownable {\n    using Strings for uint256;\n\n    IAgentIdRegistry public constant AGENT_ID = IAgentIdRegistry(0x60B9262456dE011F7d15a54CdD8c48bAaa8B022F);\n    uint256 public constant MAX_SUPPLY = 3300;\n    uint256 public constant FREE_SUPPLY = 301;\n    uint256 public constant FREE_PER_WALLET = 1;\n    uint256 public constant MAX_PER_WALLET = 50;\n    uint256 public constant PRICE = 0.00005 ether;\n\n    uint256 public totalSupply;\n    uint256 public freeClaimed;\n    bool public mintOpen = true;\n    mapping(address => uint256) public mintedBy;\n    mapping(address => uint256) public freeUsed;\n\n    error NoAgentId();\n    error OnlyWallets();\n    error MintClosed();\n    error BadQuantity();\n    error SoldOut();\n    error WalletLimit();\n    error WrongPayment();\n    error WithdrawFailed();\n\n    event Launched(address indexed to, uint256 indexed tokenId, string agent);\n\n    /// @notice Contract whose runtime code holds the artwork bytes (WebP), after a leading 0x00 STOP byte.\n    address public immutable IMAGE;\n\n    /// @dev The WebP artwork is embedded in this source and written, in this same deploy transaction,\n    /// into a small storage contract (runtime = 0x00 STOP byte + image bytes) owned by nobody.\n    constructor(address initialOwner) ERC721(\"Gearotter\", \"GEAROTTER\") Ownable(initialOwner) {\n        bytes memory image_ = hex\"524946461a43000057454250565038200e4300001051019d012a900190013ec154a24d27a4a73fa9962cb3f01809626ec2500c8961b774a98f8dccddda970c6830dd277fe5adc93e3c02bbb19f0fd39ff56de39e74fcd4fd4cff63dfc4deb6c71c99078ef61f68844e1dcd810420dc70fd1f3afed97b02f0c05013f54fa49e8cfec6f619e9ae8477a51e8c6a6c3a0cac3769664d873c426bdabb40752e857efb42d50a883cd11d59eab43ffa1912b7d6f5bad9c1572c897a02bc8dc3ac6b9012658fb62512c6e3138e1da9dbab842a16b8125d7cc5a80c6852ddb249ca32f4635361d06552809747d29aa29614d682001b2b0416ea8ac00817ecf360b17be0107fa110ed179d60254d81ee8146acce58fb63363dbf9ead29da8e57dd69eb6058efe5c80e82eee363069920ba22db5a2012cc496c96d8fdb949190bb7a13d89db73830db1028f912ca6d190cda8e2ddeb9be23bdaec8154c3ef9714e149dc08cd602169404b946dfa8d356cf6879b3aff70873dee735049d3a661b826f670b3ea832e2a373ffbcc91d498a54f186393807a51b8e0cee8667b325fa9c54f32c983731a1149dece9fcbc6d7da2b889db18f1856516ce7c5386f362b9987cf5a11701492b5c2bffe8022f29220e7b623732215a993c81f9258fe1db792132a333f7cc5b47376cf3ef738dc648cebd2cd65a551efcc0a2cb6b2597cb38fc9cceeade6abfd80ffc28c5810d57f7d9e2c26174612eab8c6a138623fc06c2e1e510e3cdecac33bb0fd7fbdf76ea749f01efb0b0cae12fbae00bf7635aa9b5db88a8d4e5539f13c9bd7019f0d58a2ae27e4cf3e7305b137213691be57cfc1f822069eaf87a7bce92beac6483ad80c84f620a2d2ed34cbaa31d3c22b4c927fecf8c39132f5d9456d5dff010ca5ec8005e18effdc7909a7a9942d43abdbc62fd2a4ef6e0a961d6ec65fea3e0c2eb7af9f02e27881fa16b6079eec2feb731150f95c270b8286f5bc72c04cf1f5c73887af31ce8eda35a62a810cea298e85c229d63d7d1a71b5f6e73d75bd561baa237425737a4be1677d6cafaf6b01da11c1e0cbc850b857eace8709c144d7def8f3fcc97e9e5a3177be4b131e7d30263e0b26da4f5cf93f519e3814087a65a933019546f49c278e2ac97e78d4256ca3ee5733f0503d342fa83fb8a98e881fa59fdb62b01b6a2422b1a27af8600ca0374fcf0757f9f164d80e9e99ad026892cf223059741bdd4390b747831a15dce0e0636a01acbda04ee91abf7ef3ae32e6654ca004e12131eeff659722d6d2954d0856baab63ed06a553030a9a10144c9e32dac787596b811c1e5279cd923a1e02d40eaa17f22dbad11ee69c1cdb97a19a4842103dcdaca967d5cacdb375fa7741b1d08d285212eaca926e39b1c1a96544230f0bd9ab2716062c9b3c19a3aa7b2ebed626108732e7b0f2aeaca91f5bc741d65a47373821cf9d72fc42c9b867b8fb29d52292651d8033cb2b89f5c9fc14c616513865439e227d4b04a114b4369a63fad68e8884cd03f99c653169c769e650f40986485cc32fb81f68d8a0bc4fd0e1945cfef1174c9cc75f965c00cab696ae6f71e49b5065942e3f283d99cb57ecc5f140123f3492b71f44c2cf451e357e4840be8fb49d21150db073b151c1b71d976f77ad12e9d9b68e7e25f3cfc9159f58b095fc24d37a5283f05e6b363a1432370a0a9d9a74a2f981f72cb5f3121343f3cba2407af1f6da024aa9e8c9d4c8c637727634aaff1a9d20d9e1f93e1724b6f52ea736b8c2c3a5a4ca3c191e09cf1db8907d33c66d06524816610f040d00d45a700f49fadd505f54af3feba6499bdbeb8416edcf971ccd27b2f34cc5429d8eff97ee782cc9ffdd08d07e62c8ad8f7973a702ab3c633265453065cdc760219b71c00fbff0ebde291cfc5daa41d6ca80331b934900daed17944bdd2578f0ff31f878f7fec6e43eb7507b0188de4b74f88de02160add81f999c29a4061417db082acdc8c9ba148d9a0d586dba4db3e29ccfbfa757aa68fb92a57ade893476b3c13a545f1456d8002b5fffe100485e48b9584c27ce772be0dca097abcd4e10be0fcd81ad881190cb286f31279173355103e83ada9c82c221d61302c9a80a6fd0698ec2d0fd7aec9824952635f65f8c178b6af7acbba12dc12cff5ce88c779777267ffc5307bd9afb1e6e23c4674b9fc9c8b63bd8c59bf299678d8a99f223fc3c7d75249ae9016793fef6f6a5926fa1301d5755f30e8c260f6e4912ac1fcebccb3f3cb9465d094b5fee85152a676ac81c6f8b5a2c2bf327532b63079100e7f39c369845a9c515d66a495fea43019ddd80cfca4f984d3282bfcd1ae6496286499ad08b6ace6554c24ef153ef87a8e63145ef1e72a2635276226dde9192826f4b0ac5ac137e869908da6bc8384a89404d641d2a0598b71c5549725f74e0cd16f97402161a4c3a9b04fe6a900c87989254ed771a22431d76f71bb94410d64bee06c3fd9ef2fe977650bcd724d6508d1c210e8b8ed3621fc4869303fb3d73c0c5b20bd0447b7d493ea01953295f0f16c0f6b0edacb82fff16c74a8b24ad2f6ade398d48a5305e9d0a628398662a95aa7c2d51ed1368b6e3c30786a5c5174bca6482fa605ee45134df32f9c83a38dc648687a6148c4b2fcaf1b69d464f7b64f5a6682e542a305320d7cc05f391bb2e7b6f466c94c4c3d479a94b16720ce0ec20071a4a38f5e76341c90d2e1f3a17f46e39bdf7aa9dac9d5e911c02fe976f606df25a5ee32cec5225cb770537b1a4524dd5a7bfc1e64963cf9443fbda7348c33497cde94914c9557cea1f6f9d90a134e60a9ce1242f84cf52db393bedd35ad83a3ae9e08eabeffec69ebd210db087506bc31f00f6630420d31416342c6fff0f7eb7a02cff88fe421ffc5618cdf32fa94085628781c65f9ee33dd1e69faf3109c548acfd18dfcccabd37552e5d2b85d5a8299d9c8d4bd46f24884795d843a1bf4514496a5c52afc61b5d37eaed2107d273fa966886bbcfa5a7467fa77e63ac42bf335538671ab920445efdb6dd961e2175f3faf4fa838f251de81e1d7af59f966d875a8cd05741569b7e843ece456840fa0c0e4ba875b72ccbe9ecceb35ec8cb845a87650b18761c78f7ca389f14a0c77695fa0494672b1b1a680aff9e7f5fda33e780904938809054525a4465e1859ef937c4b2df23b7e80f33f3cc3cca0261bd9c094fec8c85a128e60fda41b56aaf43f3f149eac162f1ffff50d7adda6275ff8b24eedd8004cb1c0647ad3d65f01b6876db33b88bfd309981ccb4db53abec415586e81ccb41af31325e73e6b901095929dc84bcf6e9660ab1192d0cd6c1afe21de3c3270a39de3400835649d98fb6bbf929015be35979728db1b7a6180b2b7c6daf34248672e75d0fa4b150d20fddd645cab27d02bf12ea860e9a838b494f4d9e5cd753962590955d446fb5722cfb715f5563d76e7c22784720fbcb1bc6ccea0424a8c53fb2727ff66169dca6fe74e76d55c17c08687b493d8a2a8e85cbd63a6d36e704f6e47766ef12457791871260f8c042122230cd375134d75b4396cd4986ce3fedf919dcd74f94f030a6483a0dda05b7af4b31095cc5a7519291eb03278b389749c6a1e90a4cc74d0a8f6604a34b81fd48c5683c23d3f916bab49b57194685e48d2bd19de4dd874afb812a30437a08cb11224a941640b8f25126de841f35c838514da09793389b67ee77b8c0185a9f1b5e927ade602578ad981d9b276a0fc2f689731595925ce1d6e273d5bd6cd0b83632d9c57bc851d864112d5a1d53b79a805abfd2f32a4a0d5169e23757fe96b53fe6ff3686f52c73556e141a716a7facdf0000fef45a7417916229cf3a83137746638639d34bbaf781f4be6585e630405b6cf606a6fb12f15e8b937845efe5dac7d31de13c039e02ba3db93045a922769680e5839ee70934a8b925d7e0c2c961534fdb2be2d6ae39515900979c9d7b485898b7c2e1b99b45d98854f126698be349b0bcbacc22bc68399c638e25e3748a1c5ff8f14e3c72efb5e6351a717c792095171f9aa30896666b7948189e8a9d0847e5493b1d572c3091c0004bd858d039cc3b2320b0ba438d80a007ca5dd95f3fa8cf9f031796befbd0081c19e2d82cb1de171a24f9da077de0eee9be692390e1ae7a697d3bd676534ae6f0666fc075f917835df636f1020ad3bd8c739d3d0bcdd29b7063c38e041301dcc151b5f4331465044b8c8ad6b1439ce73af6e33f6c9077ab2a6ae44c7b08f4ae148f1e87621b8981b322aedf8cbd7c5ad3edf854006f2ac867e56f48adebff20528e504b2c6847383284c8870e9dc6f29cc067934480118b853972a4263c3deb9829c47e523f0651d79052e162a563f1a33255e70f5233be69695135f3caea3efe408baf18f85a1c8e16427b9ae1623c8c6efffb431b872798420a3cae657d9730e1908dfdce7096974cf5731bd382782e1cfc57c1c92e7d17f168399d7dd5a8881e0c5718d08e53af920378af7d39fcdf84be36ed667a079ac077d77168c4399c1b5736f9de792e54ffad654f77c58eb74ddfb4bbf856247fd363ad4aef5c50c75bab6a2a0985181e19e77e300f8f95c107621c70f53b5b84d9b0c798b07731d255bc8eed7fcad79bec3faa00d9bc084a8166876614bffea1e2dceabae8ae9c5e0b047a078289b14dedbbf3c7c3a3e4e7821a8976df64539ab35de6d1f1a4eee31512ce0869c12e1554cc320ed694ee3f960b0b5e3e64635531d3665e6207785cb4cc84689c007ccdf259187b7f1f16bda3543f20606972690caf8f504ac84fe3ba7fd1fa335fe1c38164d83a66fab3e8ce7b8d241f8d17b977e226a41f0548602f44aaed3379fb65e8ee82b0b8cb70e62bd448f43246b9cd86e796706d52452a757f23b2adf12cbc316381efc2d2675d626036625d2e2198a319c84aa88336aca30d6bd5fbd89e879659a09b2144bc27c37830b776cc573e46b7db8eda36e391124d1b9221ae0bc54ea71f91454c8d9db9eb37b1b86b6586d109c4b11874582572964862f6dfc0d379da944134f050b7fe70ac0d1899e75197013856246a991a772d47c288b8ef986c713f4a1fff5e4bf30db933ee20638f5e0b00fa93f25ec37932f9587bb2d04438bfc08c5cbc4c087d5cd87dd681d1b204a2cdaa6c5506baedf1b6b871bdbfa720904c64164c4e129bb368ce8f7d6b3e63cd9bbd8261c4070b45f83c6a684b519d23edc1fbf51354dc4ca8869d761bbb4a85753ba93504a8e266d4a344e3f4b69d933868187594a8073afab071468599005c92deb2cde1dfa2073cb2eb3a6740f53efb96c88bd4c62fc587c392465e0f57b1c6470113fabf398a97532b57d2dafb6dd2800dbc26fb9f9d042a923b49ccf1f7aba77172e3accdddb854507cada5ff603ba886e2d9b95c4af89951ad529bd1175d2e10968f22413d26c72d4ffa46c76be0b713b77bc1e78d8ef317b1f96c1c6cabc8c7d43e08cb77d9d8f734e9a943dc62da90fa9ba97988a647604e7097081288c41be9da2693e09352d85c57e917bff1eca7bb3ff52ae687cf51a6e350ba2bce01a2be45632b0d8aee03c914df68da8795ff530cee7cf5da441faf7b0009306dc152fe4b1f06dbebffd8db4563cef9dc074865004344dea2204affa4676cf5148654ec6d50d8ff7ac28c87a3ed54c60c2f58f527cc837b6c7d5409c3e7cb6b05b0fade7a8a0356b475d0483f29818ff6e221022e8560589efbc7a5c5d9c2723cb162a22346a7f28913f501a5ba27917f50b3674a75f6211776eff25b6096ae0b75066a4d855c7513e27f45b578058199ee06e2f76be7fab41d7b90a80c04945e83009ca6071456fee85baab0f2c58644f3a0992023bea3f23444e438d0658545de96cfb4db3247e3b17fb37ba4beb8b8a4c17670d8c899090eab142d793462341cba3e4b27fad76ec9ee1ad1770cc50827591698a6e450bc9ceac6d0965aac08eb0e25c315a3bcdb4429f2e23ccc3494e85d7ed23055ed38b29ca1ccf9de4f143c13dfb8b1f55f40c111a5a2f858a8a4a3317e9a01ec536c9d4366b0721b9f81e9f90736669a9e6c8375c396a6c55275c4cbbe136999efc2ad3b888a7fb8e3267b2929083a0e268c8ce7dc75a9b015abeaec563e6e94c4ed4887008610f02b4e641976f1d0dc6c149d3c84c8653bf8b6f6ac896be7967311c72647164992854552fbf29ed1c42231eea8fe5a290fcad7fe037b975de942045ad40a690f44db6831678e65638e29f8f66bb832de18515504eb239cf0a4fa983890fcad2d21fc5443d530724449b084134074728bd1905124a41bffc91bb72969b729714f878343542a83d1e1dec879e8b8b3b5367d7c994fb886a6de344ddd1023d2958d4be3f9fe1754337fbaebf52b6e3297c92e9ab0d035adac3a1b8314acc79350852ef8215a9a0f2a14de0cf5a056a5afb6a1a93e2a285826be9483831656011f95b7d02e2c6c3565fa51239bd532655948c1d9b6f89b2b6770dec327f8f4444e58a9b5613ab3eff7a83edcbc3c4b98d62387f5cb548289f1200041194ac33f26f588366017f1034378fb85045a64c5c6704d4b59e27586220355d9cfa123b80528d44dae2827d486d25fac88a20ab956264059d03e44eb139b1cfab468aee263545d9b9e368c81c1049157c6c41499ef986cd25f54378a071735cec73e6ea5b6496bc70ac47979913a758466dceea53c43b89f73217306d7b1f9b2953967711b6a04c5ab2860c2c59e93bcb4404ec1cf485c790a23c92ffbb10d485ba1221ef6c114f5875df06a6b575aae12e6fb01b60432d36cda7422fd6c2df975a530c71923102d7da339200392d3c23b64a13cdeadd418326cff9c25f00e79f1f9bbdba81a762575702d30ad09ea993d8097f4bbf19da27ab64ab14c3c509764ab349e8c33595d2b168d2717a2dd6c6baffbd5cdbd333a45d6e5959ee927ce8d4860605e3b5d6292c9eda3de36b2e7ebcb6279be415b7de1517c23503aff225e4aa562dc18105239ba82d045a336c05858fd00297f9809b2ca1c1912bc9fa32f6db817fe4f3e35b3be5c3af946f1ff8792e0f266cb8b060610ef25ded3a07a876e4d248ee3d856a829569be3b3d1877007c152afb95c594e794dda6ca16e73b27b5f484b1d1c19e3b7edd4ee13c0687f00c3d46ebf10c7f81c6284603d933dd584b1d3e7f5993fcc38c352f47691a841a25252b52c7364bb669a4b633dc880aef903ab3e1273a52a3d28f523f2a384d0ea05371a58c80d0499d7c8b5ca108ab18571c984fe4a3b17093367f0039f5a6ac79a8006257b604c77ad197787a6b7bca34754aa3a73aa944ff741f17538b77bc0e8c3470ef9a4aa3505e3f900cf7057432016f01c1274d836cb8fd4ceb0520374173de49db5c6d9c153f5d9764dae08186ce84cf63ad61b16efb43bfa0cdd62e5e4de6955fac2b290d167f7c16cbc11060e73d75617b9d10fd6857f8a7336a07b287ee3c1e40f1931e0c11b66d6b615f9a9d2fe0a50d1fcb319f5c991f25a505fe7fd5053d5f8081315c25fe77eff16332214bd0cc5d7dfe20e7e1cff1131b63bd61f5de526a9a457d356b38a0ca2444eb51e2d166a48fceb6a3c730c366cf1dc61b80c994ebe639a7988d4dc6f4e297e2c16301f8848f70042014fe3d856d0b443f82ee2ae904b25bf86a511d603383fcb014bfc21b7491103ae24b0d97206943e595e26edecdf5936e741f09ce3cda3e6db8f32ada909edc4ebdea6b57ceb5e2437b4b9d4d8fee96ab3129697fbc515f723f173ab05abc638a09b9170600fbaa2c2062ee61cc338d4c77d65a8e7bdc656996937df9d4ce3e57f8c149a51015bf68277aee07f13f644de81b96e20f0ef8658208d7c869bf9c22695e0bf70ec9b77bcfd5ea8561b83e04adb78a634eddc20774f1a3fb0a1d9f5ba9706aa737b08163354148a1a242af762462b6e5464c836cfca183eadf24af4be11aa28176f7ae4e1463b87d089b02520ed3fce7e77c825d726d85857ff431538878603974f179ab9bc9f89c8872a57cea0afd584583f502271a25bab45e3a1fee080d2ccb32e3d71d324d61bf04a3ee843e7c2f9f28dc79d51b408f88c4ff35729f5937a63b3d76be7855fde5a30fbdaca6b366b8e4a3989408ff25859c0f7764ad46a448cb3a6b3ba5e9c81b255bcb5bfe497b77b471d3b73742c84c60200737caecd99e2c4bdde76602b207795c7d68b2f707119e33c5a34dbbf462a5da35e08cb2854d464cba790a99468badea93eadbff53f7ee523ecbf32a3cb2f17a53355fca79b592a698b4720401447b9f85a5525805010b68b6c1efbc4de4317aeed6f260a73b6718dc0ece0715cbd6d91e0c7d728fdf55bef8bc66ee6afb29fbbe2d6efd345b0b85bee46a3849712c148fae6ffd308272354798ddba2fd92cd830681a96a886c12f666e43152d780bef62fd1872705be69c15f9e51e495d0ebb2c3f5827ffe61a5a133262fe18ba33b11e7660d34f80f35fa9d605cf982aca48805a7aeae226352c44d5b0af62deb955f1b0e2f16d192773b817a697a33972e4dd0c2a46f8570baf08d1e3def0baaea5b2f832aa265edbda57124a9d8359e84f5f8d84a15655ccc13128d3e9ca755eca678a4fa554089d7274ee7dfb3ed0373ba7a8d8b33c745feeb9d4e5129552ce9b87f308709a00cc9755bb9407d8eabd1c4fd0dac99579d87cc45b3a16c3dbe74289590adab81a8fa842fb79ae5d3d4ea8bed2cad14cfb4daa0521cb81ec34a2c882b4f9713b9b5445d96582a7815044bc14da169cdc601fab69c45f20c745923c9e5842f1d2027424716e1d835ab9cf40e305eb3903c0c2372e1ac7ff30b2c5f97031d9fa331e548c3633723ffe8197941ee5598126f3e622db470a68ada556b20c7ca3a242566387c0018c97f29133e53cba293a9a9bffc980bba7f1b9e0eb047d5e083868ec77dd059c227b2d87072fcad067e6a37b91d2800956d61b6a916d9e1642d10489a24876ae38c9493010ee6671f5cafce51871894044efa8ac25ad0a111eb7f4e262ceac779bcf5ad09cba45b2e5930ab67fee2688c71bcdd1785debd0e0425477cead0de1489af2969a93184b961424c595803e04f28b24522d1c54039d415c615967d76a2897b4e446b812c0d0850917357c1be5610189058c68a9932ab212ee4c126099d98a5d2fc15ffc42528f41a978fd4829c96c56d5c897615bfd25faa4ad4ef31afba6bb910149aadd1f257994847bf9085d4eea86bb9bd06c53f2123d1b6f25cc323f7081461828d878e30e14ef13afd58c635103bbaa5a92be210c32edfe529dec72ce820e4f321680bd2773f92faa93b1390681a815dd44d810571e04adf387354a61fbeb5efbdf693b89adbe1ef8e53e22462ef1a03f8fe54b78568b9a30de2f72afbb4bcfcdfe7791d9846f85a7b1c7d015307981ebac660eab09e940c81965c39752179925ce297eae5bc970e153b13d9968df725301ade42517a5247fa6146a8a621766bda1c70cbebfc99dac14fd13a9366160404b191bcfcd2be4dac05e5b195f668b538938788a53574cf1145644c1d69a3a0309d496e255724415a57fa83a24387fdd7a0f55a97d79e250b2185e9fe76fbb6a7ec055071268e2bcf2a60f9a663499ed732d7db024ce0f1b7fcf9f71a5ea54035028f0aca54d9dc3623dde0a05e77c3c77c3718641e0745572b77786f44c1542e4c42c922ccb12e46c8973cf9c97537a3ccc3d222bdd8b8a5d90852e30e581458990954bf8c358856865dfea533340a5ba833daf3c8106a08f4f57f33b02255a2ef578cdf035d40f3a41697a88c87b0bec7ddf79acc33b7155a41c23782129be2e69eeebc9e4953297a092bdd981adca2930719b4dde28cd3e1476fb3a37635151ce40f3c474b81324f243ba329e6bc9067e10551ed10d2975ed4af66f71fd190a138bdb408888d6142fbef42e562aba691e9732e1fc8df2d9d808544d0784bf53b831671589d4d0ba8c8ebba70ab325a8a6a5895fc73c273dd1f45772f2be746fe71613ef42e3e80ed66ffa90adf5a49bfac5e5256fbf522ae230f3c0c6051bfd7e4090a906c75c2dd4c06a8e7d54214ac87ee59fbb203e9e4a78ed3bf1262d2b667b60144fd07e9cdb73107402435691433d03e6f3527f486d166a88a928d0eca0f444c86aa900f31b1f03319b9b1e3384bf25b7e874d615876311fa46ff2f5e0aa3b0a6e0cd22a9da9bffb626fbe6b9306e49e21bc62a433e96bdb7ec82e19e1d76dcebce4fc7f0f95e21cf2f93cbe4942d2c8c6cf926f19b544863b81c88bf9d3f15e81f65a97f417ff99cfa9f4bcfe21ad8c4aa5199feee9ef2cc4db27b83b2b4be4ce8199d62243abb98e6de6df4f1f32a2c34b3b28d3871b47f50381b423ddb81c9ed90aa64a70cf98bade4eca6941921f881eb389ddae024a81e0eda4fcb3d422093406be1cd11f005413f539b5dbc4ea8877e2a0137624c800bf2f67f25e69a724837f186c3268c02d1c398d98ea8e6b40eae5e5f8cdc35fd996cb48c7ac915d10abb4e5d23725b22ca6e06863e5194a5b548b1dbd70b3817a0a488e7e0f73b038e33de4ce940b2bc97dcc0ce5b9699bdef5c5f33fa8198a2409cd303ac988690b405852832e6c7aab5cd7b811347193eeba9f7b74b3cdd2fe1b4e1f734147c4d41e17997a0778bfdacb37a7a44f5b99c54471917c713b104e5d62dbda30ba1162afece3d8f51eb7ac44078d2ecc54af04cefa47053e0fe35df8f0efec5c15927aed97922b11ef9478a39a04308f46d732edb39f2aff2d2526b27d0e89afdd8e717d30f023f28a7cb997fc7624be30b4b1e7ac1de96d9d0343eea9a92ab32deabfcf31da245c47a5497cefb2b7ab62d3f16258dbc915b6900c7d2ce497652d2ab5bc0e21c6f4fc65be044b8ba43526f7709f7c1a17fbba843995a8db770e78cd97a88d2030c173f6e1f28d94014c2eb6f44e6af9dcab8198c3a9e5ad2082df4a3302d60e759f2c48485eb84418a80310ad58871cc338aa36213124648e907f73c3db35340448795f67c785fd314515737e6908f3603ae7c4e185ea9fc1539331a004ed2d58ccb69dfdb621634c4a440191604d6036f54dba5b12935ceac4f872acdfed8648c9d4662da45a77db4b9507996bc5a669d37b2f35d1f048215610755cc7ab1a3310dca63a09dbbc2fe2cdc41b4f4b7cfb71d1b779eacf3ba73866657913ad8109377068177fcefd63bf3c9e84c7ba1574466b4fb254ee13c65bcf34284df9a41061871c0905d496f877480eb49e977849ec4193a4e6b0b97ef5774d6c264e258a6675ca3e78502631847a9790977ded4eb5295e123c64a0d0a5f7d6591076a5dde6d39e91652c545b02d21785131836bc8d65106b0340dc4ba8a838c0bbe22a256768c40a960fb4d271d71237b736b0125a525de38c041e27b0fae69288786b48b1b3c483bc37baf80936b2f44de8beaa49e26d280cef7a191fd13b5b4c418893962be37c66d3d5111bd0602d1633ee68cdf0df515c8da91711c011a8835fe6768846819d1025401a6109fc6c834e3c00cb33b69e65bcaa1e623e07a53ee551c3435413cc95adc5113cb8cd7b96421a40cabad7b6c0f6082985fcebd5090da0ac67b1de2f00a744b80696fc709738faa82bfd91cd0e0c56bdbfb6ad4ae3c918c00d1cb0f02109d9bb5a4c44f60d7debd86b80bb6cecef8ae65a1b10f0072d08fb2c794048fe650cc53e28bbda3db751df97e9b393bc608b65a301ac0aa44f373300cc6255ef77304eb02d96aa019201348ac62e41c87f0a2d0d0fa6b3f27dad4bd0b06c88c2b5881ee1d2774455bad3e4d0cb91a013802ef87cec3324f574262d49a0c7a5f68315dd9f985dcbde9d033fb993ce62d113581645fd355a8d27833c239916ba2fc5122074a837aea871f7c91f9c209c919c9041eb8aba8c39d6c9d857cc74d348b06b3961c6f7deef659d146b8bb8703010611bc6900ec13ee9dc5cff9fb092c1a836b3c5ec09f4b23a51c4c61bffdbcb622cfc863b063749e020186622f95b5c5b92ae45c0f6d569a431978dd86acac12d2fe42a834bf6f5e6034be0fd7756204a5096cc08347a0efb848b89bf6734d0f91ea8ea77dde7afb3c26e801a6feb674b4f78dbf7d30ac960c723e6c024d419c59fdffed84a62f7b871ea6e426e868a755c9c5603799e4ffcefad92573035b77e7f446b2274a26232d3f5315e8258dcbac69f3b7561401f100596ba3622cd0945fb93d5d570519ca4a5554d9c9c882aad8c4b5e7233cf6c2735c910be3138cddfacef4217cc3b5d535b318e7e378530e3a3cfe10275f43ca6b780c07d43c84d0f8139824e29bd4976b0528116bd3b751b1f0687aeefd7c8a08e3cf9192d86b10c5280f9f556e1cb532185a7010f3de6e9954d859e38e5c012cc6b2cf3ffa0b0d994721d1cc385c21901f6811449904ad4747f518351164b7f10c5d00265c02874184996daf02bb86da06280c457f854b6ca5421fe90faf67819b14aacb9ceaa09a963c8975ad7e7342eca64da09c92ac0e0dd5144a59004a3a40375cc41367b8047d391a1a9443d18344a5fed98553dc09b63fbae2b4b53296b796922e08db423dda4a8195e66389a3e4f2b447a6f2e43bd4a4a4ea562cbb230aa0db5666f6e3156dae85170875181e84e2d4fadad2cb7e3f8e21e18427cbfcec7b001833922f1b5c727d57d7452281b87bff61d9855854b363fa3a6a5ba7bfaca225e9908beba83be19109d0128e3481ff4da4b509ac3e5946c5aa7244bca7058f862e5e7591bd90a4ed0816189bf887c0d0dac8cec1cda0aeb48b68d835d01551b00cff698e7436b82fcc52ca48590b6b3fdc50e1ae16a34c19bbf2737b72105b321a1cae6492f5d89ba3ee3773fc26a29499c1b159f60bebd3cfc85ac3d1a5545b7b1c1e857e5a8b08b63c3fe37286a1c3ffd89d14779b2b6a8142005bcbf603e5efd1a1d20aae06ce1383c5c418329bf97c626cc3ff2088f14af42c052c26c9a89a9151fd9e2c57e69eb5aafb11e54431f08ed7cda7eac0a2f7498ed17f8cb9b40b0828efd570f836d41b5d036841c713a22fae897997bc9848cb85e0e39c5842366c0a8c4aa7a69811711b7881c676c0278e5a2c583b87b16785a68f2de198f142d0e4f703f21d789fab42dd731c79e350863aaf6db58ec50d20f900cc73b057e1e5dce8c7f56ab0fbae6bda961f1550524416204fcc4061489678a0ed02b22ac99aa46527710f77f525a9511f6cff8be8566acf3e78e854956ae0b8b237721f89a94b998b3e9b3d5367e7369be561be66cebd7850070bd7d10d8d37a3159118a7c865058c9b116a1d97cf0f2ac433fcddcbff36f7ec6eecd6ba914abf4d08234d579c7c202250f8cc774fadb556b0b28974948e2afb3ea1fb9e61851e71a82be999bd932dacdf60fda14ccf27dfcbf02e140d6c374d3f2f4df164cf57b4fd1ccf8fc4155bfc65a7fc60670af05f35a77a550615f7f7cfbee48ee5fdb40fa08b7616cc342a5e65965f6b3143df22916162c46eee9680aa5ffb55fcff54e41a6860e92317aeb8d07c3a0ce7d6f96b7f474c00b6adc23c62f75784382028ade1a84b66dac10715c5234174ca4aac3ef0ad16949cbb5e12f1fcb996d4db49d60378a47ca625eef9b5c125e9828081d895fcbfd0146ddae40ca699e337f07de4ce5d7bfb342caaa214475bff10e9f3425e4510a129fcf483d01636f5370aacd025922227de8841a366f128f7b4b84ab4b67e5281fb4d0e65a1d0c2b53246262c7e9cbc692d2b994b3669f68b4f35040e5c5cc48702f5b63e99008bcffcf5b69df9c6d53dcba04b5e816d683639526ea6d4a90b397af3a175e80effb1d24233c191403eac0702ea79be005fa97ac6f0f995aa7c4bc6740116ae53e768ef1f3a8c4cb80c66f38fba7653a4309261429ec5fd6c8f8995dc207b22c5567c50df75d894353ce823b13708e248d0c20a3bc8fa09b1a1b21d5d5fefe6442cc6b608249002fff5210c9b2d7e44e7e55a07f704da257189428ab6590365826fc86e7134b2ed165620b6081252dc6f2950c4e53fe6bed900c51a5cccd69f5691bf7a902c2eece5d5e5c98990c5276eec6626adfeb7a88585261cd124bbdd4ed80414b6f6127f3cfc92971cd55a684407e4840abf101e38f5b6588eacabbf90aaa4983951cfe9d872d3bf45415a8db0d37d8c8f71772cc827779536ea34c4b586445ca43dc428b467ae34bf9173561e971288e85911bf4a609e247eddab3487d20d62abd35a86bf4ea938f9f4a856af5dbe1156c04aa84150d0149fd954b5d84e446601a4bf7d96cfde718d70e7fe7f33ddeb3dc1f6b6a99b121f8567015f47d2d0768105e285f6bd9839e055a1227d20df8870a0d79dad05f5e78dbb1461d7b8b909d14ddd92b33bfb4bd2a8de694d708cea6a4f106c65d352580ea530f419baf786a5e521bd3820f5f01075dbd58af7d6712c32b70afd9ec1e412dd21892361becbeb39ac4334cdd1327e29ffe95a78c64fdf902d7a27c879a6f78226816447e508f64cbf2293c7cdca6b14b326e050fc3540e1d1b858a2d8825ac97de4ba2ea3f0d503bf16457b8c8e5bc8f4cdf79d8dc1b4b16e253985fbabb1ad6aed92cb0aeb9984f73dc8cd2e9dc97eb38af4f3e5fec1419786b0437a283e17e68905f670919e66a2f591b99667b7bdb1af30a80e9d06aad94ee0f1d478b0752248b41423b5cd4aea993fa4e5c6ff9ff4a804d0475353694f66b552d32d792e8c298dacd2095d2dc3baae3fd5df430534b5fd484141b6b50e0a4e3c76b846020fe035db2dc81d9f540aadadcd732c687d8996e252446f9744525f57f9033ec879a2038dc613b9d049f5ac63702ad9aa1d7b20cc30e095d0b077c0277f1e2915678682eff8a31364895a1150095d76bc26ee43419a2203beef5b0cdc66b6083bc79614bc5eeaedb14a779afa960b4bd64c09c60821599ae91ee7eec009414a98baae2dcd18781fec1e47caac3e80e5a2e1a988b349c60f096e044c5362845e77035b8ba1fc45e1d8ed5a94437aa7b6c3c06f9247d73c22720d64004156d3c74d891444e4d6b95b6d45aa70ef2260863921ac20b02f6a7be58b7e78bd8605f8e0696451ccd1f93160c3a2acecc112c064d740fa5b4c915a399d46e1483ae280526cde47018601c874a0642a71a8a466c2f7b49cbb85bd7e416b9f0182c6b604ec94f1c34262d383f1e42534f4e366c4a93b66732c23607bc2371d9f791bc1f9d5407abd1450f72a5334687c59a1f69e2e2dacd99282ece8b50114b0532724f56282e22c23550ca024148494593bac270d5e7b89dc6d8699bbc77b647388800c7a2039589581b0f2a046bc3d2266e5c3009d6e55e87cc51d6ef1843efe1771adc62b23242b19d0045812b8e43753f63f004a9583b1d5be4e95695461ab5eff5fc25a22afe9f73cd83aad6aa7a1589e2e7d155ffcdf058a96a574fd3e282a42c5bdd32c52a94af1ff50d072655dbcbb20d21ecbba8ade5608bebd8dfd2964ed2f48fd98abe1dd7758f4cef69c2a142d301b75fc1dedc5a3c761637758c4045b067c6d217f32b5e2bb694847ee14d212f53e2b9e8192dbe0d9a30475d8aecb681125d22d0e0f02c29371908f9b75b2e40bed0dcefefc7895400ba1c2b14c019d8563d038645238b4ee07fc49b96317580c4c7b312b1a765ab8d5683926e12a521738c4334243fe8c3e4133d066617af255f6c9b32a5478ebfa1d8caa273b30a980d950e69488ae04f3cd732c958ad2731ddd7e29411d6c5d830a9ddc2c0937a133e4a0a6f050971ca95713f3cc8975c2ae95a2a2c6d6ff094df9fe3e776a098c4aa001ffda4cb17afd441865d50f96fd0c251d25b6a5e4fd3930e3d50f4e56c759a00751b1caf39c5efacd4a07763620da3b0caa7dc139e6d8da7f79df962af4386f603726c51483c19050fb1db43a8867347b91b6f6c80b1c913dd41214c2b2092b546d9a7f0cdf956023184a1f4dbe14b5ac171a709a78ee42fd7a9726f9409cb360a26242bb34d9c463914695d4a9a17375dcd05bc8fe5324875ad6b5ab52d85c97e06e76fab18a9ca3a2d33520e54edaefa0f03e4bc554d44bdb74fed5ef37292fe8fe6c19ca074510d0234142fe1d1883d581239cb44e2b6db73659cd765a74946fbedb3f8d72c84874f702e6975babc995e8cc1d4b57a66020dcb25886c69764372030cf81265d3a4586ead542b523ca82fa4a7071390503cbe6b371274a928628817dc2412c2897cc861c572bece84ff057af015a5685257cda4564934368cb244241eac741c1c1f2f8ca186464dbf13db74f77d3a6c7b1e1f415785ce31b233e24b6001f5723dda314c49c27ebb5ebb85210da15c1a0372fdbecee0a0f4ac77eb789d2a39783fff59d9e0f58cc24463d1f353dc662d211a0e6d411d1f2e300bb06885f35cd2ab65e6a5ff15dd448416b9589ba9278227fff36287d38786d815e39281ed0cb81c061ae9e2d806bb763d3c86c1feb7418f2479389f0d4313385742ab0382d150c5fb901d5f19020f57ab5691a508687974182952a986cfab1d6b0066b42515d57089a04d458af3378fae03abbe02abe68f3899e46889b3066bd6c8fcd859b240e83176286268f4c8a63fc354244df75307e775498ff2ab8536c5e3f0317f016a436d7f1b4c1a8f701bf5ffb69a8c5da9cdb2f0b3d7ae8068fd23d88b243ab953f407e04f672712e04b29107b68c6fe89e7c54a86f51e10f2cf9c7a1ac89ffe3732103dd635e99a6c4526bdf971fe200a8d80b7ec56dace67132cdc4f4796b5afe014f1d95fcc7cc99aea7f148e8ddff8bc13b354922d3dfc3b3cbeadf540d9d0777e118cb79dcb49aedf9a204c82e7bfcc5515143333deffab3a6d979347f85b6fd528c29a43cb5aaeba97f1d6e0c87394b5188f0c02b3a0407b0b4a410d5aff6b7cb92c34dbf13839d5552bce7fdcf3e85d1d0f81c8fedbb12dcede0a5df99ff10d19c6cc598cf8024c662a7ca6d8e2fb8a36e1ad256c3d63b547c49be17f738236d18201495720aae37f70b3b0687ab97e0cb066108246ea8c55ead59f03287854b436b2d8d407d7d38df0014bad5e1fcd0f84aedf4abf9f082433b25853ad1cfe6e694d707763d72d02e4e92001975d181c0ecd3a6dbb79d7ef0b7b2519d127db868de213ed140b71c82cbf67e71a4759d0e1c36c69f622ed619f698c64e077d637310682449d8178d53b5ff60a4c6c66b5488b8e7c22dbcd45dd4821f3522b94d7ca332c5566c0a9fc457cca632c5e6963d70adbfc0945c59c549fe58c96d8b6c40e5c868f64e863b68ec440862c871dc9ec262cca2b53ddfede2f0eb6747444b20afe82e5c124e93f56208a41be5e45333aa379b605186050849c7cca5443886a38ce411acd4ad236f4c14a07fc83195cd0e9cea215be8f0dc64bd8d094456f2885282e23468356ba93b5e34f122e4e74a6c93b59f8154f3f543120b4ded64d66b769e31f2df3289f612ffe379762e8bfa76e768d9ea1f8950f9916fb68cee444a7ed0762a15d96799d64ff2d893bf511248abb43647e058b390de984c8961d1bae18742548399df3432bbe3f12a5001d0db4c42c7d0eef600aa15b9b44aa7954324bbac0b3de7edba72a10f46e36e6ccbfb3d5bb0f6f5fa29c6f8708256e35799be41ed37636071cbc7cac568cdf5f749acd9d9a29ca758d4d2796b0a431a0227a59b54bce9e6bfc343a0b27e833e10c76ed23f15676eb85a320f11422c38e2edcdd558638e30127e9842ff69e935943a2361f24980bf444bf89054ab7be97a6e7f896ca74e46492416261ec0570406ae0f3da856949a66de5243eeab37a69aaf701d58b1e758584df6bca469489e06aa6496a40127cf76fe2e00828b1af8c28b08f0d877453e3daa3a07d365a9ad61b9bf7144fadd33b6389f8f702afd54cb52f6917bb7d2358c147f633f9b9eaf7cac8576d5fa53233a95a8dca173a5228cec140bb99d589fc9caf214c1b68d853638609d049ef2d8105eb508654cfef226765cdefb20d9531e30e5c17a3eb131a5cf39997225e36a17a0fa7d45d62e73d679190f4f54daef2b71c75056ef87fa7466b28be053bb429ba88d689b732473b38540b6a032ffb5dc2c4c441946e21101a873c1fd9394fbfdd28c704180c91743ca616159439669a8fdc125dacb3ca471df99a70ebd3c7ec9cbfcaa655dce33975243c760d0008a042de197ff870d6b46c2d30dc1202ea4008b7ed30c7ac6864685beadf9656973cdd8a7332ada3364d47571708be2e4a81d48b9d3bda1e8c903b7893d2595948a5c5dc7a4a2f14159830fd129b5ce7d352933312e9dcb0b295ce658016f13c9cc4cff415b653de5103838645a00f81a674507ae91219a0f535639f5a661620a52b727a577713a025aa3f0c666ec43464ba6f8ec1acf273b3306e9f26c9ca7519fceadae7069e2ac2c332aabad408900b1213eb55a43973ea11579b289b739d3c2973d72454fffd26e6fb00cd3e99d50ca4e540294bc4987e5e3fdeb68fdf5f4b6469b6e369f87ea7ab660d554d52cff0f365c6f203dfe366b0e060dee33e97668da29f7eda1a8be9173923debd887144e35d2422574b1816c96e4673691b13c66ef40c1f6d3c52f4f52c4d044a7ca6489fbf489edac2c3c049a2c5b8ccbb44825f54b2b451633512d5e3f82e3861a87a15cf35c1b29601edd7094724e894498599af67b21f2d03d4fef17dba4e1ed3569a0b3d45a5a8d61ebf594630faa9eb811898811a8155b91482daef7b0b574fd10f9a0a1819a2877c4aee597d758d1d0ca8957dee0f414e49bbc0d1d5e879d9022fc9f183136dc41870f6170356f6a4e23b4257eb52d057174f83ed7d7cb32c7bf0a3a852187a664d3998648d186cad52466ecc69d2b49cc5b75a8243f22d3b0ef725c18afa68cf311c0df49b7f7f300c27e569d27fef5c70bd9b8b6b241cff7f699aa462b171340e4330f2f0062cb4243a69e0dda7b30bea88c498a2ccb4566e9f50e7e344b5e30cd7685b2b6f1bc50a98e1ab90b214ec7ef515b51a7634a5b06b4f624f9f9a6f14a6fac38271af6fa076fea11009de78c61051c993789ae48128a579fc25cdd1296544cbdef5cd40a873d0f71e15d5a918a7ea76077bbf1801bfb830cee0ab76d5590ee7777bb8b6429c5c309c0331f93096e626557ef88ab7e72833ee194d9816800185f8c1a5a7a99d0ed903e0ed8553266cf06961b82e52f2d0eed8ddae94206661f728f76efc9c67fa93246ea2d7374134c3e0718bd8208bfd1bf84e24a46912720420862bb539801b15c34b26db5d73d901b70ca7e98a3856ea1682ef60805e64c0cb6de5f12383f5b14fb803d09fe776f34422c140d02a7f15f391f8b3afc4b09026b8d665cbbc767991d51b81464b988ec14d5a008808e698dea2bc1a9104c62af2ee597bf9cca3b381bbc9da0f9b980b609dca88b3c77023947e229fefc9a9be3b5ab548bc9d536e7c83a876fb4001b1016b38b05dea3b4742af8919ca91c1ad82bd2296aff83e8619049d892e8fb66cceea3620e50db9cde40455e0f97bb4c65a794730c335c8a9f4181914441cbbb19a845b2a257bd01a4db455ef018fd80313c5887e7bb52675351c13b8cd7083055f4f48c0c5eba25c379e1ccd349946faf656489e86e0d7e713ebeaccf6dfd84c1a4fa9d33744ccfe4a13c261521e0eb315730fadef6560a8a70505888aa0e8d7d95bcd90205ed85e9c8ca724357cad07e6fc0df7019fa1c5a0053392eba3abbdb7c5c98ca4cecc9d8df4d66bba37f5f7911dff82cb4f9c7500db0297cd3442caae272e1c9bda606f2089e2130231f4aa3c3502d7496b5a86d6a534bf330486c23afbeb7a691a5b7107a0da9799105aac0265f29ffe73bbcc6ff1f51bd36e9e0a86245c0077da5034818447c7c8e69d9e00874510621f5364c8f06c84ee4e41045478c7c580a8aae4eddcb619c0f15815a0c4b6c0f5113bbdba849a175136c279c1f71b5a498b5de3301b6e6992c83a7561bf8fe763d35c2804bfbbf154f8e6cb373af372b464fb5a12f708caed56e422ec3eff84e92ec8a111d88b94ea7461ad76d48ce7e03e61989a7242da3bf2210184578a206af9029e20183512d60bba6050b9b3cce5035cefcafde50f90c88ef0d20a25ea69d09c7d7da2b0b4613649881aa8ae0af48ef48e6c461d3c63661d4523e4182ea58ba0e5f4b5bbb803267bf54623aa066a8cf299e140d9a665011566d74e01d0f646e2eddd05509d356421d30c22e240eafcda382e93696ba5c2fb77b368bc98f2034035e9390e9fa1d109833d0343d1912ccf17a69a12509de402c7a5fa6b9f6262543bac2193dc8cf6ae7218376856c13e9288eaddf63ac507d49ea19817d4b9858d868c113ae2428235faa5bc81c426e18e9c7172c8b900754f389f82e2d25b799ef59a7448e18e1f485dd684271089a5b4b8f734adf8c4f8250a737d5198a6f4b410888739a231465eb29010570748c47da8201ebe79643a9690d4a98a8bac600c1d5ba6a0b01700475d3af3116628b50acbc32e0c1b586ff479bc7b73fbdb1869e9de3fcfeee2b0b41da739f3198d870ef82382d4916c7bdbfd5ecf021355e953e4fdd3c53307c1e6488c4cbde6de90d9ad7516e1b80a8eab318df2e99913b1b8a0b8e1825e50b13179e8b695e953260c2dd9edc66413dfe1d254e770eae3a7b8da29bc16f003190609c04d638c09f8b56e7e0fe2e855865b349d55da3eaf80cd65e902f1711a105754868383500002159e227926cb038f6f6a472d0f401604cc750615a2969de7252c8c769355a765ee97f594ebbdb0ed276ac50ed203e1bdbcd05733b2128658cb6fd0c92bddcaed3ba4a1d3a545c9f6dce48555d15b58544c50872aa570e3487f5aa7c8f070b4d83f63e5ac07f79a9deadd90a729d26cfdd65be0d51cc528b5a574b23adeac1891958ef2843d22c2e9f53fc7241d9972b227b200d9ac369f133f7757fe537290aa9672a2f1c38c1e070ea01ea30b72d688bb1e4f39ad55ddcddb5b2c67d7af81cdaa79ca41a5045a13bd624bac7f1b247f8192630e57296e78d9bc1c8f8e34573fd39fcadaaf8586694e0a455849d00db2fb3c0ddff76677dd8e588cd3d09806d969023393f49c05ead72741e4aa197d192d24f6d98c761eb4ed80f6b24526ef70140e8533bb9b3e7d12cdf9d4280f1c78a2c1cfe4b942caaf25c363c5f1123fc64b25bb4a1ceb32be095b30cfe94c9c19583dbf7c5ed2d5417b6194642124e1c086ee4220a9f0aa39be349f1b7f67567d7039658c50297b9b950174c7f8a0d1b6f811888620ff29dbfb2c71a2843ead61ab0c522ff8b6ad0649f0b92b8416e6a0ba33f9196a90e59867115e57db421007910e6048ba92acca597188c14ef3c643ab7dce86199f5534d817edd7c8fcc887a50b28c456a60e3ec7f9e4519cd5be629a48511427152c0a8307aca927a451b438e5820cd51ab6c7345076f044c919b24275737b18d74e0921b2f67ad59fc3439fc53c9c16279d2e27dda245379ac99ac4e3f226897b302a1f0051a64eaf2fc713857dfa584fdd6e0e050c37ee1d1202ff2c1aa58407d0cb46fd0826a792e6a91e1e1a551cc2dd4cce951b95ea01c10049115136a772c4fff3d79be16914d35c6b521f87ac50e4137557f646321129051e531a5975ae691d1caa31d7142e4e66b422e68de7fbf9874770d4313f4ed9ccf8d7d66fa6e296a242c1ad61d7a62052cf854206e8d0861efe446e1f38a79a5e45c8a11939eb636c897a842539385977d79cac7b8bdcbb32892948e85f0306943bf097b4601f25c24a2431c54b9a5ae3ceda4e6989a533d0005d4fceb30d535b82c56b625494c33f458d3e513c9bec70b7c8cd222a9621a74abfacb456a105f1fd717aaf3f73617dab2caab2bd430e9e72e53d1b99350ebd558b7f3899bbc3808b945e5d221f182dcf2fa867dc30bfcadc80a59f3364efdde900834275d2798bb82fd04d46de4890d5c8708d4c5d9d5b94fdfcaef0107774f99bbb5508d219a305d07b7246081319ee860564212d33cd150a85b6f0164240101142f0033f5df6d861e7b90be03bada8ef209618310b71a908299d40f78a31fdb15c50e47ff7d560882bbd59966e274bf108e90dd82aa0dd640d64ae91b3e44269d871e25ef7f85066d5b3965e5f8c5133a3c60a3cfc154df3890ba4e4715f5493af103353171e875f9514ba0ea7bb4bedd2cf6e972bfb5d861af3181d2bdac08542ea8cbc7f86efcb47df9728ffea8b831888cfe6edceb931927d805d804f702e9e41920ecf5dd2068c60acb4f10be6b86d79e644d4b775655511b08c9436903dc82ad49b0130a799d28c4288caa49b0e3839e0966b2ce3dadf4d087b31b64f142f056a5b075754e784e0bb80b77f9139cf8f618c8659039cd558df43981a4ddd603e4e884f6637fa6943a767a1a2bb2fb76247c1c02559292c2df2117b826c87f0b4ccebcbc5c74124c0646c7bdc599e43cc53577952b65158fc0db2d994429da9fe05944589b94a11f7ea7787d53b7bd5efe829c4bc5683abf85b2092ea55c74c97fdf85697b59874d8258392cdca5e3bfa6009de711dbf76b5bc191d6ff4cfc60bb5ce13517b9a63f1b317b7f3b8e8a0fdeefd12e717af2b5253e91452c66da4d99ae94e1a4e2badba0961c559ec476b9d1c94bfb318d9267c9edcd988f7ed5a1aaab9325066ed5a008b1c4690c6022f0a1860110b5f9203816fee8debd2ecf06639489ba46a35caec2e91de209ab2c3ec2a5fbf90fe6c93386e7aa242dde22c485fc73c885d64d2ac91d3b009898fee7b36a4176e5aa1099031391895d078cbb67cd907f1dcb20afb008c43791e4ff7631ce8d378a4b48466abcbc4297dc8974c607aa9f880afe65cecf4ad13710dd1ff8ce03ed8280008b3375e1142d48fb3a01a293537e7014d01d28b13bbc855cec6481c34e1f3ab31483ab2c41bc90b76381e49f4e3cdfd306fc556eacf8cde34cd082720fd60800f2790442e801b82b3769a63d365674296787c8605fc1116474466226c02f72b1122e86278675928ea57bf7258f925a11093b39e4f76a714457b84d23b1762b412323de23878e2b45704c8baa7b297310c21a3d8f6b27e0b857ac698e2c16f22f9734251630766c04dec1fc3092257cde7ba3bce3d43a96f7e4f4b0f69fd85d893449619eefc3285bcef69d7613de3b689163cb0696cb2f68d63474262a0ed7da3f05bfb28ff9fb494b3d5fc8422e783bc3301c8ae3a7732b45ffabf54a9d74b31ad242f6feb3533ecc39298fa2c5091bcd6dbe8f7876bc1bce67f4b9c4ffbc316714c57961ccd23e33d50cb003ad7947a22e83c5c7d4ae3c3ece25f4d7018cd9f93da4b451d8c942e462452569cf395e9abd96b01ce15211da1b708011a8a436d9e5a473a61d6877368c6f02233a4da43270639d4077b1be1039b7706f46b51d3c9616e5f56e535f2461e902bd2b508dac39e743be6c0bb8e983ac23350760194faf4b5a7a6fe2a0896b459c626b88883067773b0c4a9bd547c478fcc9f9c35181153b4a66e16138f6b86d2aceafdbe1e2a4e4bb674174b59a1ffe1f336d41dd07e824bc356c8aed49029eb79a3bdf08f440c1f3bd8ef983dd1f1541984f1153a39b00420face7e8ac2b71c86fab41b1ade6a18b455258e8abde8500f5501f81e58cc84811d8da480e2ad686e642c75db2b1811f255d566cc497c49a6b5ff75fa0887e836f624923b7369fbc18a1f54a222ecdb2b70f140edeaee9c16aba96c5a60bb4a1a36e10e4fefbfdaa89391a22fb5559610302174637e393b5a1ea17bd81a2c349d2116b8a7002cad5b4c109705750ba7fd4bd3e640237b6fdc367e1a445a0241678c7384feb7465d50c6b67fc9a2584337c0baa085034a3b94c76b120dac5d9ee1e3ae20359a633bf7f556296b58bf83e67bc585dacba7e060b014a42a4d32bdb79d00387cd57938ac3d575757cd44f70c90387db8076cb98da576c96e9fa25868b9c3ce2ab3ffb7d28632ee4792af4cce5d8c0d43708c7d39fc64b6290e18df99781fe369ee4e9bd78f49b867aae762b9ff379f0f0f90b48ea6e2fcb8583caba970c194b76c4067efdbdf88ebeb3ac854474d14b35a25ce2f8b3b025443c470deafbc1b565bee2c252da1613c129eeb93526d90f9516982b817da5442fe84a2696cd40c8046d4bbf2e6733b8adb39556f6149d6a7a2ca65a2015e4c971c0f0058780cf9ba3fea2ba6241451d45dfb4936f349026972bf23265215005fc000\";\n        uint256 len = image_.length + 1;\n        require(len <= 24576, \"image too big\");\n        bytes memory code = abi.encodePacked(hex\"61\", uint16(len), hex\"80600c6000396000f300\", image_);\n        address a;\n        assembly {\n            a := create(0, add(code, 32), mload(code))\n        }\n        require(a != address(0), \"image store failed\");\n        IMAGE = a;\n        _setDefaultRoyalty(initialOwner, 500); // 5%\n    }\n\n    /// @notice How many of `qty` mints would be free for this wallet right now.\n    function freeFor(address wallet, uint256 qty) public view returns (uint256 n) {\n        uint256 w = FREE_PER_WALLET - freeUsed[wallet];\n        uint256 p = FREE_SUPPLY - freeClaimed;\n        n = w < p ? w : p;\n        if (qty < n) n = qty;\n    }\n\n    /// @notice Free mints this wallet still has (limited by the remaining free pool).\n    function freeLeft(address wallet) external view returns (uint256) {\n        return freeFor(wallet, FREE_PER_WALLET);\n    }\n\n    /// @notice Exact BNB (wei) a wallet must send to mint qty.\n    function quote(address wallet, uint256 qty) public view returns (uint256) {\n        return (qty - freeFor(wallet, qty)) * PRICE;\n    }\n\n    function mint(uint256 qty) external payable {\n        if (msg.sender != tx.origin) revert OnlyWallets();\n        if (!mintOpen) revert MintClosed();\n        if (qty == 0) revert BadQuantity();\n        if (totalSupply + qty > MAX_SUPPLY) revert SoldOut();\n        if (mintedBy[msg.sender] + qty > MAX_PER_WALLET) revert WalletLimit();\n        string memory handle;\n        try AGENT_ID.handleOf(msg.sender) returns (string memory h) {\n            handle = h;\n        } catch {\n            revert NoAgentId();\n        }\n        if (bytes(handle).length == 0) revert NoAgentId();\n        uint256 free = freeFor(msg.sender, qty);\n        if (msg.value != (qty - free) * PRICE) revert WrongPayment();\n\n        if (free > 0) {\n            freeUsed[msg.sender] += free;\n            freeClaimed += free;\n        }\n        mintedBy[msg.sender] += qty;\n        for (uint256 i; i < qty; ++i) {\n            uint256 id = ++totalSupply;\n            _mint(msg.sender, id);\n            emit Launched(msg.sender, id, handle);\n        }\n    }\n\n    // ---------------- on-chain art ----------------\n\n    function _seed(uint256 id) internal pure returns (uint256) {\n        return uint256(keccak256(abi.encodePacked(\"Gearotter\", id)));\n    }\n\n    function _r(uint256 s, uint256 i) internal pure returns (uint256) {\n        return uint256(keccak256(abi.encodePacked(s, i)));\n    }\n\n    /// @dev HSL (h 0-359, s and l 0-100) to an rgb() string, which every SVG renderer reads.\n    function _hsl(uint256 h, uint256 s, uint256 l) internal pure returns (string memory) {\n        h %= 360;\n        int256 c = (100 - _abs(int256(2 * l) - 100)) * int256(s) * 255 / 10000;\n        int256 x = c * (60 - _abs(int256(h % 120) - 60)) / 60;\n        int256 m = int256(l) * 255 / 100 - c / 2;\n        int256 r; int256 g; int256 b;\n        if (h < 60) (r, g, b) = (c, x, 0);\n        else if (h < 120) (r, g, b) = (x, c, 0);\n        else if (h < 180) (r, g, b) = (0, c, x);\n        else if (h < 240) (r, g, b) = (0, x, c);\n        else if (h < 300) (r, g, b) = (x, 0, c);\n        else (r, g, b) = (c, 0, x);\n        return string.concat(\"rgb(\", _u(r + m), \",\", _u(g + m), \",\", _u(b + m), \")\");\n    }\n\n    function _abs(int256 v) internal pure returns (int256) {\n        return v < 0 ? -v : v;\n    }\n\n    function _u(int256 v) internal pure returns (string memory) {\n        if (v < 0) v = 0;\n        if (v > 255) v = 255;\n        return uint256(v).toString();\n    }\n\n    function _pick(string[4] memory names, uint256 r) internal pure returns (string memory) {\n        return names[r % 4];\n    }\n\n    function _T1() internal pure returns (string[4] memory) {\n        return [\"Robot otter\", \"Robot otter\", \"Robot otter\", \"Robot otter\"];\n    }\n    function _T2() internal pure returns (string[4] memory) {\n        return [\"Copper white plating\", \"Copper white plating\", \"Copper white plating\", \"Copper white plating\"];\n    }\n    function _T3() internal pure returns (string[4] memory) {\n        return [\"Warm rim light\", \"Warm rim light\", \"Warm rim light\", \"Warm rim light\"];\n    }\n    function _T4() internal pure returns (string[4] memory) {\n        return [\"Tech workshop\", \"Tech workshop\", \"Tech workshop\", \"Tech workshop\"];\n    }\n\n\n    /// @notice Raw artwork bytes read from the IMAGE data contract.\n    function _img() internal view returns (bytes memory b) {\n        address a = IMAGE;\n        uint256 n = a.code.length - 1;\n        b = new bytes(n);\n        assembly {\n            extcodecopy(a, add(b, 32), 1, n)\n        }\n    }\n\n    function _svg(uint256) internal view returns (string memory) {\n        return string.concat('<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 400 400\"><image width=\"400\" height=\"400\" href=\"data:image/webp;base64,', Base64.encode(_img()), '\"/></svg>');\n    }\n\n    function _attributes(uint256 s) internal pure returns (string memory) {\n        return string.concat(\n            '[{\"trait_type\":\"Character\",\"value\":\"', _pick(_T1(), s), '\"},',\n            '{\"trait_type\":\"Outfit\",\"value\":\"', _pick(_T2(), s >> 8), '\"},',\n            '{\"trait_type\":\"Light\",\"value\":\"', _pick(_T3(), s >> 16), '\"},',\n            '{\"trait_type\":\"Background\",\"value\":\"', _pick(_T4(), s >> 80), '\"}]'\n        );\n    }\n\n    /// @notice The token's SVG image.\n    function image(uint256 id) public view returns (string memory) {\n        _requireOwned(id);\n        return _svg(_seed(id));\n    }\n\n    function tokenURI(uint256 id) public view override returns (string memory) {\n        _requireOwned(id);\n        uint256 s = _seed(id);\n        string memory json = string.concat(\n            '{\"name\":\"Gearotter #', id.toString(),\n            '\",\"description\":\"Gearotter is 3300 Friendly copper robot otter with green eyes in a bright tech workshop. Art generated fully on-chain on BNB Chain. Minted by .ai Agent ID holders.\",',\n            '\"image\":\"data:image/svg+xml;base64,', Base64.encode(bytes(_svg(s))),\n            '\",\"attributes\":', _attributes(s), '}'\n        );\n        return string.concat(\"data:application/json;base64,\", Base64.encode(bytes(json)));\n    }\n\n    /// @notice Collection-level metadata for marketplaces.\n    function contractURI() external pure returns (string memory) {\n        string memory json = string.concat(\n            '{\"name\":\"Gearotter\",\"description\":\"Gearotter is 3300 Friendly copper robot otter with green eyes in a bright tech workshop. Art generated fully on-chain on BNB Chain. Mint is gated to .ai Agent ID holders.\",',\n            '\"seller_fee_basis_points\":500}'\n        );\n        return string.concat(\"data:application/json;base64,\", Base64.encode(bytes(json)));\n    }\n\n    // ---------------- owner ----------------\n\n    function setMintOpen(bool open) external onlyOwner {\n        mintOpen = open;\n    }\n\n    function setRoyalty(address receiver, uint96 feeBps) external onlyOwner {\n        _setDefaultRoyalty(receiver, feeBps);\n    }\n\n    function withdraw() external onlyOwner {\n        (bool ok,) = owner().call{value: address(this).balance}(\"\");\n        if (!ok) revert WithdrawFailed();\n    }\n\n    function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC2981) returns (bool) {\n        return super.supportsInterface(interfaceId);\n    }\n}"}},"abi":[{"type":"constructor","inputs":[{"name":"initialOwner","type":"address","internalType":"address"}],"stateMutability":"nonpayable"},{"name":"BadQuantity","type":"error","inputs":[]},{"name":"ERC2981InvalidDefaultRoyalty","type":"error","inputs":[{"name":"numerator","type":"uint256","internalType":"uint256"},{"name":"denominator","type":"uint256","internalType":"uint256"}]},{"name":"ERC2981InvalidDefaultRoyaltyReceiver","type":"error","inputs":[{"name":"receiver","type":"address","internalType":"address"}]},{"name":"ERC2981InvalidTokenRoyalty","type":"error","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"numerator","type":"uint256","internalType":"uint256"},{"name":"denominator","type":"uint256","internalType":"uint256"}]},{"name":"ERC2981InvalidTokenRoyaltyReceiver","type":"error","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"receiver","type":"address","internalType":"address"}]},{"name":"ERC721IncorrectOwner","type":"error","inputs":[{"name":"sender","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"owner","type":"address","internalType":"address"}]},{"name":"ERC721InsufficientApproval","type":"error","inputs":[{"name":"operator","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}]},{"name":"ERC721InvalidApprover","type":"error","inputs":[{"name":"approver","type":"address","internalType":"address"}]},{"name":"ERC721InvalidOperator","type":"error","inputs":[{"name":"operator","type":"address","internalType":"address"}]},{"name":"ERC721InvalidOwner","type":"error","inputs":[{"name":"owner","type":"address","internalType":"address"}]},{"name":"ERC721InvalidReceiver","type":"error","inputs":[{"name":"receiver","type":"address","internalType":"address"}]},{"name":"ERC721InvalidSender","type":"error","inputs":[{"name":"sender","type":"address","internalType":"address"}]},{"name":"ERC721NonexistentToken","type":"error","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}]},{"name":"MintClosed","type":"error","inputs":[]},{"name":"NoAgentId","type":"error","inputs":[]},{"name":"OnlyWallets","type":"error","inputs":[]},{"name":"OwnableInvalidOwner","type":"error","inputs":[{"name":"owner","type":"address","internalType":"address"}]},{"name":"OwnableUnauthorizedAccount","type":"error","inputs":[{"name":"account","type":"address","internalType":"address"}]},{"name":"SoldOut","type":"error","inputs":[]},{"name":"WalletLimit","type":"error","inputs":[]},{"name":"WithdrawFailed","type":"error","inputs":[]},{"name":"WrongPayment","type":"error","inputs":[]},{"name":"Approval","type":"event","inputs":[{"name":"owner","type":"address","indexed":true,"internalType":"address"},{"name":"approved","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"name":"ApprovalForAll","type":"event","inputs":[{"name":"owner","type":"address","indexed":true,"internalType":"address"},{"name":"operator","type":"address","indexed":true,"internalType":"address"},{"name":"approved","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"name":"Launched","type":"event","inputs":[{"name":"to","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"agent","type":"string","indexed":false,"internalType":"string"}],"anonymous":false},{"name":"OwnershipTransferred","type":"event","inputs":[{"name":"previousOwner","type":"address","indexed":true,"internalType":"address"},{"name":"newOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"Transfer","type":"event","inputs":[{"name":"from","type":"address","indexed":true,"internalType":"address"},{"name":"to","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"name":"AGENT_ID","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IAgentIdRegistry"}],"stateMutability":"view"},{"name":"FREE_PER_WALLET","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"FREE_SUPPLY","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"IMAGE","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"MAX_PER_WALLET","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"MAX_SUPPLY","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"PRICE","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"approve","type":"function","inputs":[{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"balanceOf","type":"function","inputs":[{"name":"owner","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"contractURI","type":"function","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"pure"},{"name":"freeClaimed","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"freeFor","type":"function","inputs":[{"name":"wallet","type":"address","internalType":"address"},{"name":"qty","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"n","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"freeLeft","type":"function","inputs":[{"name":"wallet","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"freeUsed","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getApproved","type":"function","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"image","type":"function","inputs":[{"name":"id","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"name":"isApprovedForAll","type":"function","inputs":[{"name":"owner","type":"address","internalType":"address"},{"name":"operator","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"mint","type":"function","inputs":[{"name":"qty","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"payable"},{"name":"mintOpen","type":"function","inputs":[],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"mintedBy","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"name","type":"function","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"name":"owner","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"ownerOf","type":"function","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"quote","type":"function","inputs":[{"name":"wallet","type":"address","internalType":"address"},{"name":"qty","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"renounceOwnership","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"royaltyInfo","type":"function","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"salePrice","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"safeTransferFrom","type":"function","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"safeTransferFrom","type":"function","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"data","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setApprovalForAll","type":"function","inputs":[{"name":"operator","type":"address","internalType":"address"},{"name":"approved","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setMintOpen","type":"function","inputs":[{"name":"open","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setRoyalty","type":"function","inputs":[{"name":"receiver","type":"address","internalType":"address"},{"name":"feeBps","type":"uint96","internalType":"uint96"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"supportsInterface","type":"function","inputs":[{"name":"interfaceId","type":"bytes4","internalType":"bytes4"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"symbol","type":"function","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"name":"tokenURI","type":"function","inputs":[{"name":"id","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"name":"totalSupply","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"transferFrom","type":"function","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"transferOwnership","type":"function","inputs":[{"name":"newOwner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"withdraw","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"}],"matchId":"58035372","creationMatch":"exact_match","runtimeMatch":"exact_match","verifiedAt":"2026-11-02T03:54:18Z","match":"exact_match","chainId":"56","address":"0xF25E1c4dBE48383e93f5992B2E7FE7331B5a9AD0"}