{"sources":{"Hivemars.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: Hivemars.sol\ninterface IAgentIdRegistry {\n    function handleOf(address wallet) external view returns (string memory);\n}\n\n/// @title Hivemars - 500 Cute Mars creature with rusty cratered skin, honeycomb collar and tiny golden bees orbiting like moons in starry space for .ai Agent ID holders on BNB Chain\n/// @notice Each wallet gets its first mint free while the 500 free pool lasts (gas only).\n/// Every other mint costs 0.00007 BNB. Max 50 per wallet, 500 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 Hivemars is ERC721, ERC2981, Ownable {\n    using Strings for uint256;\n\n    IAgentIdRegistry public constant AGENT_ID = IAgentIdRegistry(0x60B9262456dE011F7d15a54CdD8c48bAaa8B022F);\n    uint256 public constant MAX_SUPPLY = 500;\n    uint256 public constant FREE_SUPPLY = 500;\n    uint256 public constant FREE_PER_WALLET = 2;\n    uint256 public constant MAX_PER_WALLET = 50;\n    uint256 public constant PRICE = 0.00007 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(\"Hivemars\", \"HIVEMARS\") Ownable(initialOwner) {\n        bytes memory image_ = hex\"524946463643000057454250565038202a4300009034019d012a900190013ec156a34d27a4a325aa757b50f018094d9374eac1d3f04bd302f8c013ff7cbabf3eab7ab88fbe43f18e37d8cd74a66b7ee7deebd32ee25f38fe70be6d1bf8dbd738dc932af22ec4ecd60a83a57008c48ee4edefcca6fc7c50d355a0379337804fb77d85d505763c3deebe375ab127009578f7efc25c2a6675550f9d38fc9eec0cd2ee46550060fc75d35a0621c3dd7ab9c14be279a62fc8b2e4eba83882ea149f3835a88e132a59215cac52839cdb469bcaaa138d3c141d88532b7c01f148b6de316d1fb908be8d17db0a75d29e957df79e6d8d4b7168ce78018ff3f8dab5f71c36ffdf29975a79f4227400057e6df14289505c3c07103953f6f91f65dd87cbbdd85b09d865529d1212bc5a4c76a1a02f55c6b458052309cc9b6a8000fd6fe74de6990b0b4a91d2689f941f3cc9b3e6232a25f40e269afeb9cb46e466ff36c178f2159b83b3b3676c5da39a35d4166c3933adc185a9a7e920b46411b94e3befaee095839a5e87e30a5249904ea70608d4afd754f1feab1f2ac7d5150f4f9075f3aac41c4793bdc29501a704205417de280c25812afc1cce881badf5f426a302fdf2b8ca3a82cc3a59ca7f5fa6b9065ade11ee96cfd4b957da91e86b3fe8dfbfa46fbd51612da776c598c50e0cdfd39f45e4897d66b4e2aa5c48c5e213c5697e115dd80d38c73b28eb0386594911029e9856abe7af33e81fdc0c7c13fa023be41d2d6a4faad1e2294797275f40325e619383234d78cec7fd491054c738a90596aee7782fbfd41ce8057647da322bf8cf1c4aa80d156ee2a53a02474b5318c5c01ca7228ad242053ab8b234cce370eab27da86f61a877526b63273160c4fb55857097481e47f0e9e5675c9a7ff9fe9e766144db9a901aaaef88219f7d589b3ba3a3b2297bab6ed918bc88201a9360c305f8b902f140363c2e07b75682303ea4baf0a057ddaed151e17124701decc070e8021a174c3b909a9696df1810cd3c5f3e4b590a65ac8b024d5e1db8091c0d71ecf46138f6353423d6b805673c67f4753a3ba3e3bc2ef499c8131942a4404cb4979dfafc05a4f3563f0da72e93e9e7e6e1556b1787eaaa27c614f4838406ec8cb6b49bd7723a18d0fa7be677be644337966d78bf8bfdb41a8bb50d60a4d6e8a382c21046a25c3d1476599edae12e4cc1ef60d8c2ee596fc4a57f4b3612addf4ec6ceb6687b1f9f2ab4de2d7347214b6deff9cf87f2d939b55eacc4e494f2a682a65b72bd08a148409dd2b41b452dfb28397bc588afe57eabaccf34e83d4a5dcb33233f60f84defb2da74b28f42d499bb35aec70a53f10a78dc60d66c26746f5466b6dbb6cd5bd871fca405f85ae1e8b9f111b90778deb3ed091e5b8be1fe603a59f7ab7c0849ec8604851972553a8ef9ef0ea3596f5972761b7f7401a57eaccded3ac2e1b5150b2ce8d8f0597e3c48d0bb76f61522c1ca898d6039044e744dec696fa7b1523a914a7f9197859ca10983f1876fa46741c8e5a1568b38d0df790dd055e4d3393f57f7f7ad77318bf0ace22de772ec556524761ca7fa7a81fdb2c426ad81424df8fda31402df5886abc67789aa104f39f6603b5d4df331909add19a39d1aa6bd64ff175c0a162cbef680f998401e4c0154cac9370912dec0f0b57a47fa939e624f5ac26e74610b2b518e2af4040341b45f9ebc65d8bc5c9354ff01489280e93673718efd77ddd7573e4ed30b619d4306e699417397095cc9a3f062bd403273b8f86083da24ee2dc1b6ea45eacdf7de066e816a481ae2be20f0031c2cd4edc36aefe9f9778315d7e9d2a6750950092da0991f24ab4bc372608237ea468c13576e8d44059950c32e724a38871273eb902b44b4d838cbb2e921dd5b12fd873737c4bc206d9ed01ad90f0e7917c43d676328bd35df57d1876e7eedf55e49db47b3898a7f4fde25403f751e2c8f8d28f04831807365a5f499b50f9d4db248b5acb1b1f9651c3b46f89960f821fd049b1d5cfccb9e302aa3b69e8527ccb6604ad38c1a6f43f35f2de47f4b43f0f059050bb518921e4859abed26de43e4e7917d6ddf08093388633abf9e92a5b3c1be44d0751168a66df84d9c56b6d2e69a883b27cc89e547e0f38350e37be0a92d106e28b938ed8ee89356f586b6cbe8d5be9336eabc40772dc84ef2ae09b263375929b6ff8c647bef6eb8c42475fe691a8ce9eb9002d03d5f822ddf112f8aa1788c7054f75eb16426a264d1113617eee3fdd59ac1b635f15c5e91af752b7805e93e7a91f70e7c436318090a5d97f4c861b046f61cc0230676e0f61eb3bbe464c6ae5e37d0d916049fedad1d44c399cf86b070a201fcb48a43b0896e221474301dbe84844f3cb75fd709b32a45e54972481fb1be9ec0df021f0381c2c6cb78222079337c250d466a17463179b7b7f1d0ae262caa15c1bbc7662d579aaa014b0308d6b7e72842f6fe99ed6005fba0a8a4e6a758a6df5cde4800667e11a557994b19ae5d8b00c22eb8d78db7d565fb1dd30c3c9a1bb997485b0d0a050df1f8148e1021557041ade9ce5c2486ccc12599b2994dc1483c2fea518d77c929841f012d79d4e2311a6e2a04222ff0c38f3e5603076ced6fa95395bbd9f4a19b82221f8acd36d065156c9686cf1d58fd398343d9b8aac44bf2aa2df3fc7bdc347ac8475a121a335b41071e4651835bc512cb5ab4db7b90408e8d4a5fc4e0aad575b761eeb2afa3929f82d0620a976bc87afccf3782e2a1b029841cabf819ec53696f2d9aeac0f1bf28fbe12afb92f30176e61563a61ad6037269d7f65e20d4fd7d823258fa0d440327b32253213d550e7ff62dff6df2f766540b675527b50c5a29c3f47fb8641b1e538f4ccf1e19cc643534b94cea6e224b5708aa59a793e8a9aa525dfd8bfd194943bf7337fb64326fb838d6f948a43ccd30392e07cbc342bc35c3bf079179e38df04128a941c3cccbc1bbc816b553e827e1fad29bf21a80b9f91d2854cde1fdde5b5164d301ff15f18944446835877fabf56c93b5274c61ba2acd92bb2f67c149c9157e6be993bffb36a48bea5d4182904be291ac363ac066b0596d16ceeaa55873c92bed85dfede66fc408ce56d96c446cbbfa09eb065d6cd82edf6e4c06c409f5fef4547b2f3e832a218978f59a202816fa8394bb044b7c059b2d8f45f3fc098587812f186a532d5e97781a319bbf769524770d659eda5a08d95d40bb4f22199b46aec394df4475f5b0378c061307fd3a215f3419bf97a020071daad69fab93d31600898faeafc135f7d18a87b5c0acf661ec81ab632edc3292abf6a7ba2b3e43dbf833a6802defdaac9f7bea45a122594f4993ff0e1a367ad08eb9ec64308dabfc0888f286c0bb32f445fa4c0962e5d1918cc47eeb1985c624711776426e93e6b48918ba09701ce11b4e4b8a4a91d2a56235c5e9d7851730e6622e5ab11fca6df7cedf531e3095b096a29df486a031fbd9cb945f51dd51eae198641a26b8cb0000fefdf5a20e1b12530e7ddde898fb905d986514410b9573ffc87faa220f118aa803f547c7a05279bfda6f15ee1a5b1b5cd540dd7215d2e0914ee036f9537738928a1c443166704336d87fdf5c9200763c3f2c4826439922e43d650205b3865d3b987c4a37476fd31ad6a09784dcf29caf4b6fbca9fea2a2ae8a647628510b65d6809067961b32e9576e43feee99b0a0ac5bfecbc0f20abbc1b30e97c40b0ee31eb975f62db803bc9eda3b5458b1e311480db492b70d241f56a1180fb1903216e1e0904df01671805fe4c4c245694911074bd1ef07590e03904b8b2fdefb5e1b0329e33780927ff086d20820a9a174bd1adfd2a22f8d317dbee5afd0db0d6a7d2a1e9a92d55330000153bfa620f40335f656680f85a6d57df42b4ff1520e0fd0d7368fb63dd24bc1e0e2991c0132001587a4dd45bff2a7c4a82a3e6d11160c3cbe915da2b885acf6754fcbbd21ea21c7b2596ea4b231737469445c13ce8a2514301cb0d2d26538309e7d6c99172c4d506cd635492c90c4b50998d99067a07b99026ef879e8cc0ab4cb20c6c0f054d497381ec76a3b5058b89ec496b6175d075d81430725808cc6bef3d33fcdb3733d6ef32dc4298c9cfa2e33b355080fabf4e4d111f239a2609257147ab579de8ed20512048f49d8f530926f0db6184e93b6599ce0387e5756e146707b604895aa98eb0c8f878dd29c95775e602a1ec72d83dfc10b1bba2e73b2ee9d2b94f6ccbda79d776e7fce2fe47c1b87b0d3eb65889329ab1c8b7072d4d49e79e2e1ba0066ec321ee7665394ca571a78943fb664389eddf00418a40f600576f8b4aaa2c480ae209b91dc628a2a5af56a645074cad81ee658dfa8012fd73a48f9cf290aa4d859b01d379470762ec66588c15c1dc1722798e633665722f85a8f412df4b9ffa19c111e307046e01b47cdaa7e6fe01218f59ee8cd0797718d22758dc5f1bab8deaa0f59907c8c7f5afa0fa49e6dc233ea4ebcd69274819adbcc6130840cdb2c107661daa3ac0507988b9adbc7131cbea934412916455630cc52320513e8a1e0f09493ee78c4ddac3a25edb3cf1fb214dc12d297829337572c0440b363c350cec6032dcc25b91780e69b082e41dc98175cf52816f11aabfb26167f39031d4376ee48b8cd301736d775d85b3002bfd25bacb4d4c04dc7827cd27c19ff261772b80c87c9913cf163fc2086d83a07f4a605624ed4812def5aa50f934e80a4499cbaa3819ed0a2921661e37665c73bdce0ee7820b10bdd538b8665152305d2ee86aee8ec5afdf1a7c38a78d92b13c974b3f9ef4529503e03698b7d698dbba809da80e39e21be587b8fd2414849a12276bb43bbc86ce393a0493fb0fdaf66362595091616550ac12f6f4ea37cae11274f0ffc1fe7aaf7538abe7a6b325c071099ed7633d483f1ba8da816377a5bad8712ce61f825eb0ea78c32f3ede44cbc5aef470a6231c07d530b54c2e0de6b3b1651da018f347117a657f64347efca1f185c65e0f9efff4eb78541a33a375956ccb502ae2045578bf11c8089354779326f3588940230637529a2db747f8971bf6197069652eaa493108784e5007e893cda8ef3ff822e833f942610b8264a7b33b9155113edb3b23558cc67473a23f495f580a5c254ee3e2b5cb2b34a545283c9397e1251ebf972d271fa96c3f24b356463c79d660deb4c07e52260a236680cdde27a8d285ab5fbaf7242ed858823cc6c48c4624ec95363b13a78540ccc20f095d928b257c257c63382dd14ff9a78ec78eb4251d8495c23eb30a3b458acc721cca67c3b5546ab661a0151a86cf173a20917f99758f920d4d17718c186066a923bc38a1d25aa4788c11fd26fbb2ead75797497417120c5634461d8ad0f04bb4aca037eb3182b75a9e7eb169e9eb96f4204e25258b6e044e82753c0a1fb695f1e1695c640c093bced8f31cc90a791689b12881f6fbadeb74f8e194f19c0af7a1188f2d774c3092af27d90e1ee60c6ca1b361f704f9fa8c8340cf7c80ce3123068065920174b7634fec024b356072c1d801c895437d40e396dbda54cd5a77832e4ce34a614ecca16cb6598abaee56ab49b6278cae27e37318012d81b0a0da852a444b8de279af6ba71b0bdc776563b57c09d5f9a5bcc52041785c6db8a06675fdcd9b319d0c913bb32492992e45969ec733d53c1539ca4c020171d08e7aecd44663ec377d59879c52e91da1ab808908b01102f1da4d539e8bbe3ffa093615503d1855a4fc1326a580e6ac597af9c3483b353222b6884c735b1e93471c84550f541dec977c36e65aa1f411aa692f16e73e374be2eefcbec46a57904dc63c02ae7d1fb6c212a5fe417b9d64b7863f5eacd6e7dbca69c533e58d56c67ea2ade003d41d4fdb62ce171d07d828f33ebec552ba8153c3221fb443bd7d9046653a08d70eeaee275f3dea8b29047f666431b6b8a00ed7209470f2e7cd35b6e21aefb1c7bb8ebe8d70e66d342e0c1dc75bf5c024c31a7f27112afdf54d6ca621f98af8b2f578e50b4f4e9699af8b5a17dc14ca464da0135d0ad16040682fb94929cf20c324cc36be3537cfc17930c357ada3c05ba7a5c3aa474cd640a417300bdb0dda75cd6af379644de6f6f4da3e6db66b94aeae25a0ed3238451995ebdca961387da08745b18a578a80cd8aba02379eb1b328ca475c6de4b0b22a3ce48b09b21fb940441a7c8ecbda5cfc110d6f76fd950b631bdca38eeceb4fce1005355f57a97f678719056bc10a8ba602594f1a93a622e2971beef8e87550a388398b1ee3150f0a28729172b1c61f9414537d7e56d484400acb7e4884221d1c34344629b35ce8b96668f093b40435cb7467ff08bf06434592ace54942c9f656e0fb6347b6c81f9cf1d91b569f283db0065b5c0bfeb530a071455e63017e34669cba6ebd9afe30548671128a0507b0fa00e092421713f89581c5e1770d7653d88f45bb954ea9a3ed5f0660171303c54d568bfa9b4fd0d358111c267043eb1380d4d453deab6dc05bd36fb008994dba0a989685f88fbd4d21de071962725c3a85de56f413c85c0f525b941a43118bb53ec9adebb96a9be20915ed3b92db1a2cf3ba9eeee60d697ef26e4139f2c09db8b6254105bd0b16fa98aa6b014c6f3fee7aa35a63dc1303b4da2941dcb6327089f758b7cd637022498c848406a211d3f65406135072d5c2d9e1a15fb69660ec0077f82faa149e9016017a9e1157f9a4e24ee571516fd577c72eecacc34c6dc4c3454a56981dd8931970044fd85a8ac37a7ccdd4f5e125e7409e486d9d92696a8e1da6684e36120d99f6e034ea406f8790713a8e149d9bd31ecc41dcdd62b28ee1c5ab40d009bee60c7744b3a3f22837e2bdb1c1b0f29fb00a2cef7bc78673d9829eafa9c8bddebea521c3de22de5c8772807d60cf80825fd90766f883c4c261207de06708f150c62e690fdfcb6b453058b4117d1e6c75cc2c860c3b4a9892f639e1dda5756a343044b2c9a3d2d4945aecd8dd54c5bbe68f9c87ad51ab19efbeda8eee9ad683ad566092587cefc76302fdef74e2800e4e79c7774b4de93c41e8a59d907f91162aac29da5a4480a1a48a6c87488f417745f0f37bd1adc486c51ac5d26122962d7d416d63a3325efea43b53815dff6a170a8ffc571769c0456b9ce3b7fccb0b9a592b01a29673e496c29cbc110bca7a9ddfe008b1152e35b754919d118098f33f3c1de4f2d1acd02230fe6b382635c80d52721e696d97614ea28d6d388d691ba215cf52251d0153af17f60605a91cd3bf38f9f1047fe3196ddbf0a1d5fff3f00c45eed55c9260312d592801caf3c9212f9985e9bb44dc7ea45ab86dbadc5753c2072ff9054f6b7ead2802092dfa198119c2bbc667f831008e41d0bf755a70c3a749f4eb4ab6b03520e41b6da90fbf48548c948bea702e171405da5ec8907d9e89acda2f5ac3ccf45b6c788796e5a3006b946734dac9347f4fcf7d887eac72972396b700c86f9debba71c2b18b6cd234371a926307c6936895b76248d3d5f46b8f9d62d029bb5e4bca22e673dfefd9e50c14ab27ddd36f7a8a0f09060cbf193c345cd7a659849c32fc5e7044a97f70a610f48f03da66b85998fface0751031371af7cb924471838f38c379ac881c637346fc964d8902b865533fafefc83ee45ae759398896573d09a00235e7ba50b16286e133922de87fdaaaaab35acd7e175288b514d022741331fd6454d2ede8d6c5014f48497fd6521ddbe6e04a56fc4197a31223326c7e6ad5a175a65cef03b76884c9a1ebe69a0ae1aabf0b538c31b687d96e609be3d2f67e080ff57b7d6bd7dca55ba27204cfbcd8a79fbee315e59d0d30a106a8d3c423b7de5baddc0d71ff15a50cec81b3980727e2f4c1e1b6dab2a540c44fe6f69146ae44a0d2b522cd0aacde417383dd0ee6c477d1e2cfebb348c39297a9f4c436d61af907ea2e8ba9017ce80225693b7adbef7bb5f11be59027bc17ff54b0f802413e4e9918a9cc3e6e44cc5c6a6f5e9b0de3458232de331b340e8b22fc596001c66ec82f6e51a5ed9aae7f32bcdd00a701a2803f54ef82502688113bb0463e0de0d2b6a9cd8fd539fbeff8922cb2e8a9cfcf83d69863d5761a424c2b2fdf56e857c051476b087ceef4e73cfb96ce5e5e12050d67a6849cf90117138235c9af5d95107342ef55a56dbd461b5b35a21a03602976cf9c15932f4256f160821a13086419d1c901550f28fe9b33b6b2bcdd8d48db339223707822fbc9cb109fe9b56e5194548509d1a248471c43d77b3a78c3245088b306e576503a956d922d706bd8cbe6efdd1ef4e822aa0ae8156813e11bf86a7594db4d1eec8771bdc79b060a2ef7c3bdbc31386b5ed5626691084942f44778d814c8d5cd357d6cc5ba79074b5bd4ba036f7c255c845ccca3e69b8397760b206a51e1fd46b12e4e3a06eb974920bacd59c327773b054bbb6bb4bbb27961688fbb0e6e3ce7ecc1d487485388bf4cdf5a5e80281cba7c5466bad16dcd09da5f7d1953ca54030d18697ef5700dded1aaab852951eb2f32031c7136baba0e2cd655eea51570318cc8482230de352451899b04b532a382e8b601ca62e1c4512580fe8e2a4758e62f3342bd79cbadd4d0762b6ff84b1091712fb0b289268b1dc72f45e5d361df3d8848c3ce5204c755b69973086344e6ec40c19cf3a7a88919a7141dde411055af1fc7b63df71b7097565f3673e7df36e1b548d7a09a3f92942bacaa82c1985ddb01d80495a45652a4148fa7144cc41e42ae14fd70c4555db45dbd0c33f585019b88537fcbff22a2ae2f130060d2d34c9a0dd6e64a124dc8e376c5202af3b5ee03d5d1ca2bc2b9bd34c13663e8ca23cb9dc5c17521f18f036043f2c85e4d7114c3c5bc6d144fcefeea1ecc6a20f45c6ec93f1665f618c31488a0410796e3250e60c39720d32e75c6a1876cb607238750cd90a82f156229f814e5587ccd6578001d2275ec9e128f4a1837cc42da2815ca1cfb4ec54064ff0ec98ced5ebd2a45c117d018875f56dbb2c08fdbbde0c26b3c4adf693cd546ac8f7fd431784dc045450c48268fdae96c7feba48aef21cdc58b749a6cb05b07946628a83d788dfee0a94b8d02e80a29a9cd7c170548ab49e859484c802799e7207329d309b83d959f69953a5c973334be9e0666ae79476c619e86169aa739bd6ec8cc4958517890659e118d379aa5d5663b919b555750576056d9102cb5778c1e0803627fd46bb1440ea7db39ccd3a6c47b8bd8e5a90f2d388f967d58699c0c81e3a0cba3e8d540901734ade2115b5bcc7dd6cd2714dace992f29a9e98f4b0d9046a907552418bcccd6ffdaa8c864a6f3d69c06ce9716af129a98d4027cc32b510bd43e874090c93aa6485e1dc718e1c679a9fcbb1b19fed4ce0b590976b046f55009da660c525633636cc59dda1e9911ec863fcd5616ae37389c17813be03f327d4d4dfd6f37cf3648b39560a47858cb1baec72a2213c099d076a1419d06dfa82c1da202428c4d67ad0db55c67417b16e2513173ee0bbb8626d5595fea1b84ca002d50d9f48d7c34f738b3ddfab7c5fa92d8b6c45e5a105d78dd5ebd2467a36cb6baac6f17ca085c85b8b18bbf14bdf4a7ff894b2f2d83d116f4410d8bc45d61ca48dc258c7f19558f76ca6843e15d48efee004e6ae03357845d06e320dc66952efa0fb72d8db8ad974c278d1de82fb546eedd2baed65a1dd1fd67f0dbb33066121956a7769fce77a5d8377b0adf8bd8d7838f232bfb62a2050846e7e49d4a881e85ff329d8ed68804b2ed4d84d7f443e3c0c296d61b4a7f988c0f9ceb3849d62bac5afe5cd2ff7b7f84e3fd04efc3f511f200b89c33d8251f983c42c371d586b0fc4549df070e0b9949d0e916c5461a6b99c1669b7dfbd4bbe69d6d358a77a9510cd47ad865a59e2605db0abf92d5c6eeee452a2ab4d96424a0f0f18ef0025a680a2fe0e970a7addaa492dfcfdf20d451dd994a92ed1deb41ad1eab1c450b6388a03401fe4105508be189f9133f78bf77b8bb2fd3a050effa50dfe7dfa448b8f0e981aed52b005f0c62259c417205888e8163a4424e1c2b47cc9b640174a0f709ef5e09aa69d6a91e373729f3b5a34a3fd4346e7c51f4f614b0b1b47a38b068980cb07eec724f0e14e951f7952e8f55a6e869da50d6754ee829f49ff6e562d28bcaec950bceaa39821fb02cf9390e01b57c7d560ab19b20dfec858bff7fc5cf84a860d3fd3915a835bbedb237f6abcf839b817c9a2df4eac145421a32a59a701ee4ace778e13bfef72ec1905e6f17aaa85c053424eab3cfdcbf66ea7f19a00d8cbe51d37961f30802431c3da48df83b9c23b7aeaa95608eab7855eef10a7fb126ced845286074f4ac7f61980abe45ad2c0c8c5b6000611a8540f62c69160d42165e118f0d6883f8bfd136da6a49bdac516bd544323facbdf68db90f9aff5452f739632c7fa5b39e8e6ef5a6b5145ba110bb20f8c84e9455687c0593a4efe2a84eea48c85ff3f827aba35597419cb97f4fb71c1be398f30e05e5e1f8ad7c68f61d391d1ea223346b30adb6a3f1a295151bb57fdc56f5adfcd6ffc14220c346b447cd4a66e0cf4d60be955c63884cf7433a0a163a7ad173ce0e8fbb067c99bc67e0f40005e5133273c9d080dc92c5a29b6b397671501df3f7b4b01c133b512a5469b09ecc2ccfd5c935d8125dfc632b7eb3cd8c914ffdfd18e105c8a878b4f9f5f02f29c4fbee10d1e6447ce0d14e5abcb7c06bd202cc1b99b59350903ca643d15ed7286cadf6f14f004496cd452d07a4b9148bcda7c68d8d8f82c90c3e11f2f473110b8d1efb0d640d7ea51445ce4ab94947ee4c5e0c97f12abf6082f609c86e3ccfdd5c7e575c963ce93ea06b43eac31cde795cc386a6c47978babb4fb354f7306d470045eeeeded2db58a97e79b823aef1960ccb48df6d07c19f61f08b136b5e40710b24c34477c214ae671ae468bd5501275c5435be0f3df9009c4108795a7e740fbc401e959e6f23a7d48628c27429ecba7021bff1cdaac96ed6d3678d029eed1a917e575512b1e80ce8101f021223fb003988a78a055f33461532fa459163d2bcfbf75a63e9539173fe781984609641ff3d7ef22fbc944f4c04ffd895496d7635b6f8c415c984f35eff8e74f5b3bd70744e99990260ed9e4a5dda2b5cb03e79fc293e01777257a63afbbfea394b93a3dba926265acf778cf1aec982285f5518bc395d96d7805cdfae727cec6db341495b56e116af6473cc3af8663b7cd87bdfccbba6ec560d85979f4c3e135a6fb08997fc5015d88a518c41a96a01d82e6322a72854d67ee68d06c81a90cf1da89501cbd853475e981a11a327622940e53d2548cd961def3e1c87192e835dc37935bba56840aee105c1a74ab009d920e39e4be9ea54bae853ba478f08c6e25dd91e9933c343b22767b6cf474895bfef50e220fd248aedc226935bad403e290274c2321fc1f2cd77267f8ce447eee4f87a704cc0b9847285e29e791f45f1a5690310923388086ed7d92097c9b41df9a26c5b414f60371df9d9f339b24a089703901871d8c6b3486710fd006dbcbf3bc2e584f5b80c60e8566d9cdc47bd2f6d878a90b90c5ef85091205d4630b99c7f0bd35c65d89c9ab321507060e3f93949ca0c529987f47d0530d9714d76d338b19f58fa471181b9d98ded6d87035cc0f3e9bff1277b99eea60c55c0349f0031b3e1414837af2f556dbf02b3a5f185aabc3c8e3070be02ced321df4d677dcf43b4f2d4ab67c4be148b7121118e6220a6cffdca4655e39792880f0bffa62a702487c44dd29e4f8fab77c4fa3cddb03baf7488557cabd447237f78a62398affd3e7cdce613be8865a40324eab9b6b38c69f6071c94163c2d5ac5aedc6ad1b400d74cbfc5b56cb4b2d62e53d79e9b561cd46772589a161e5e4de74d6e631c2563da8f3f453b62b54d2d23fefc79d947eb0cfc6796f52adff9b9610fc727d2a502701126a07cd880f1d60cd89c4baf965aa6bd7caf97a0bf76a3fa5ed21028873e87f31618c197ad1ff197ff3d72018aa4fdd72a1e21c9bb864f59f195ecacb8cf0b95c7df2e138eb786ffceb7941b841fa42a5f10db812e51bac46af2387186d755b051d9783c3dc496afad4e9bc54bdaa2e673e8c0b86dbdd35ede3382730dd4466479fcdca734a173723fb2fc898f94ee1153aa31e8d76422823aba986e7e52ff26a669edfa634c398ebf7b245660301498453ae9105182e66a176ee888c57f988ee685b147c4cd424b4c3665243742a28864d2392a052c6d2fe8fa6c66ad25570311669468fb8a617f76c386f904eae4bf00f2ea873890f1ca94c6a2ccfdfd7d781d0e09ec5ac373c0ada32d2368aed2574be693388fd52ff6d025b426239e6651e7b3f5feff749ddd567ff317c5dcc1e9bb39d225a1c533924f7eb84651468c876b1efd339c7b307c6a1c1a611d67e3dd4569c5b93e70477c549493c93c7eeddc6f54d6500792847103e796c80dd5c8092e4570b6d0dc2f7d63db308b2ec8537f96e15659a07d1ee03b7a3c9158b8eb97d7e7a3d114d56b023e49085e25fde4a95070a85768923ea0ec2ad926686366e08489f43af09494b957080945d7e3409da270a851d58796b1a6d5f4ba1d719e1c64aaf440e128858b871bd0d75d0818ea43ea96fd89e6bca40b91a3ac709d31dd842ce4f8e378d507ddca995f4eeb5b7a51e9de480cce2d139da6adebce66eada7ca637c6af1f1231247ec09ac8bea8a13adfbe65c3b2de511c302974f71dea5cbca80349210bc54b7f182e5cfe66c8fec30cd180ba9251276ee64770c1b9161c02d68edb81d4e0c2bf993bc0a379acf41466375a6d9ca0177f7c367c4028a3a9180e97ff9cbb23efb812ae436f2effca82b5c1750102217eeaf0a3b4d35717f242570c275241d01f652960d693a760a56fceb441eb6ff5101b75a74efd70117b0fb7340a28a0542bbcf8db464f0fb9cd5ae3506864a52c7668d377339bcbd407a861b3d7068e63b08ec1d27d86afa0516bb6a6f568f09bf304b50421844cecafdbbdb5fc2d7d7911a97ff350281efe7e3919a4b3cd99e5d0736f6adfd571dac0ddbd4fcfd820c2301531059348cd66e431601f463e1468671f8426c49abd6f878897413f4777cbe9273a94c033c4d2be5645d7dbfd3dca06879a9ed35022c2a13ebf751b8f3271407619d5f097cca8639b805e705fae5d17d303f75bf52b99d35e9685ba6077d43a1a37a38649085de30fe8e45e676d409a947166b5d09caf152cd1f47067f04226f01d256f09db4fb90ec22e3f5e28061e70c1ed47224e48913d85c428961e16d2a7825115a707715b5c1b5b1a4c12a004fcdef4a7c06f6b6a16f204fdde319279cea3ba55ad0f82b604f1451e7cac44982b19b46686740db6081cf80c855f4094d73c62e19a11e6239312c9227adc8654d6b1723bcdc85293c48d05bac11c758a991ef1451b49abf6b85551e941ba70e9198964d7904e3699546303eb4f56d3053a3bbca578ea674f7771a2877f41431fb5d951d9a63733417efb5071ef9d3282c6c387c7f799cf6a4c4e523e2949f56c9407ee3d958fb22a2df46465d8574843e65a4660b1dd75de670f18fc79abc4f5c8ea54ff7a7c56ea4721032630d5247c57561b2ba18b50f1d1778a81ee0b770500d0fd5bea2f1f33141c2c9919c643e4d1e2319949f1f38d7dc7588be7aaa261c3fdb514321419336f634c2e23e040b83fa07f9a5773f30ab140b40cb070ad1e6a34b443292eceea5c8195625537ca4fa71a1ada9f98a998286f110c99d354957a0db3454a84e0f3070c5480157dc24ba2e3e57926bd901482b06d7f95db7737e3bb5b1f350001769f09aaa402ca20d7f82ff0ef1bba0d6325897a64b5422882c108e640b71ff924a5764876428301d35b32b112da876264db255486b78aca760003c6b615cedc14b34d907f7c55fdd94baf0931f3ed7c168bc83d5f0c87ecf37c62e26778c533e7f206468d0a8ffbc6bb571998b4b3d8d8f9d9603b17efe5acc9f95d991355770696c53c8593082c26ca931509a91d5f9fdd891d723cab60d4932cad3b4e7d42620b1d4189b3fa7c723579bc24a608675556521722f77c75395c957f00b61b66d86fc63109dde930e856e95be4e29e52a017a96dd710d8bfeb5033292b9ec87f8624cf01113f6ef31c20014ab644888a0f49a9658cc86fd6e56d7adf36467bf9ca751095d23183e742d479e5bd2afe0c3959f894a1c11dd11b250966ae96bea0265ecf3224b32867c52460a759562df91d24fe3cd056d6c07bfad54c2e3d572ae4963c5bd655e8afc2f85a39e021bb5a3b01d77cffa545990be29c17f18baf2455a8ac517adb5e7593c9d9bccbe19a8315f50e2230b4078774dc03419a8814c4b27477edc7155b590f31405717ddb180ad84a109f024eb2ae34c51b3692a2a8301e081411ec5d5c27cf9215db57678c2b776816c26ea44f430c35279e164ec2afb051fb4b57b9b5e107f15068b2a3e98a579a1086ac35c7d31a69ac381ac672348f00dc98bde7d9fbeb84fcc06a95004a6a800491eead558602a9d8229ffc3110cd1dbf9dd7988983e1c723265fb5cabe66cf928483e437b59427a43f8f931ae75a2296e4035f96c78c106d664fe6956e20a9d76bd3b997c5f3451de5465da2320a9fdc28d5daf2b5295c849c554de40ae2be89a8fbe6ec8131d803f515ecdc5e68e161d52d9f091f81b68f26f0a463f2db5e8479ada15d7141ae8d4b4cbebd2f7efe10c8a076d5e3a8c892b1c0025c5e1e0fa69f4a069e5bd8d4ae0c83d9d1e54ebd4a6b8718faadfa60f50fa010b23196e12b3cbc156e049789e44cc8cfab7264be52b060c07e1d3569e02dbb6c0644be39036c76aa45510dfa701f3ae685f245a8229fb59251bc480e861f704a2aace691e78253a57dfa793dfc548b1f6ce8c1b278a96c7f47cd04de600dabe846e5a1df26301d8ba41ea02d28056f04f5188b29744578ca8ccb5bdf14f27776b04da464b1d1f9c5a7e94dd81a8488422c81402c95d82bb4426ac937fd61bf66a426705fc694c900c64319d483abebb98ee5ec8c964f86fb7d07d7bad401af884f5d7311918843af81f94d3a5afb16a44e414afae43bb8be9cde22b087b1c4f5e1560cdcb9f09391a288dca18a015657c4db2bbb4f25ed8c3940c8c668f614a281d55c1ac723a4355c72e295b17bd861fb8fc01290faa31d8a2145b6d7767008fac3bc4cf280b5477ae50cdf4113aa68c53950999e3e72b98131549eb14bb5ca005382a0b3e4f351ace0f1e685325acaa375243fabcda9a8a3086355061c5144a03ed5b3d78ab9c4a61fa4a99c245b2bd1e92002ebc5d9f7d9335be8c00fb014c3fbc54d3ebf660f102d8716df415b68b3441b3292dbc74fdaa096bb26d7751ed9e7300f4323b712209b300ac3d0eff85a08fb550be027a22adc0421f4bc72feebb8317b0f61f39981fb2381e5593fc585012ddce84f6398634ab65108d48b683a3ed1acc844c68714d73e937b6eba3a075ce4febe82e2ce05b2238e2159042a5e6e9d9b8cd276c2aba5a2cba4ff19da40efd24c4252c2424e58d71cf3156e3af6f5e181d4fbd6e3467fbf429593d8c883f2384419e35275ed25e1e1b560d3d34fed2bac91d3adfa18198f4fba46c1d9450b27c9cf3e8d8bb28a9425b9bb2d5f18e8a2264efaa2a2f856e24dfa8f29705a93ba9ba610df931e0ac72cede9d1165eb936da69dbb5befacd25ce469d852187bea5981d769293b05a77ada677efd6eb792bd9a7f9a0047b9d2af5da766b5fe0eaa6b430196edd9ba4fc5b0b59af3ac4033a05e7c924ed7fa2536343833f9044c3dba81a6711e6b3b7b714148bab3dfdfe96e7e717fc6eff5d8374395cab7a94d9b8b957fb5992e087875cdecc093924be90914670547ef4fbca70ea17dd154501fd7472e544edcdb6828de6daf5712b113979aad3b0abd201984dc9b445c411dec263040c0e39bff2862d5022c80c8108870b839010292d57c646a67ad642cb8be9e5ade6b70eb174cc832a946acc065eb0a9d9a1ee8210044858bbd8f04b5de54ba957bd8ffaf9e8e951a59209f226daed351e5eb21edb216c1c971798d91fde202d6cf95d252757f4b9a53f195e89203d3453b18e6cf8dcde6817ff1558622e214bff264660e56767c9f70705ae75b376ec1062a06e96ca6f322c829eacfe7d4ca278502c8d8918d9584412aa1b3616967262eb29e2c7ec18750467451bd70c2617a267125cfd6057a820880a53589971cfabc08d453888992f56759c604c5cc20cee0ed52bbb7607cb45134cd16f9a20313202dcf25adc39bb0d997086804d2bcba66ba452fb475b5642d6ca61cf15dad294a5b7dbdc82a8dc56bc690732534dcd9b844ab8b568bb5186577728f6a55526b6747ecbdd4910f629ae15a72184c81c334a725ad2fd40e85ff9fda752b7758f2c2f29874f655469a9d424b7567d646306e417f3ce043194e486384f73120399fce10093c8541bdf8cc8fda06135b42f03fd640fe339e2ce29bf69b6562a6f96067f1301fade61bc1df1496888d2bb635af26570f416a75a970dbc8773207177347422b8ada4a8793ae1504f2ae7de05de88d6d0d371b74a5e4564317578d15630fb31b732412f73a7258e98247a66d5e0569b7cdce398566994511204b0ebe35bf1f3ceb8b81a193d92f380f57cdf17299b1f6cbcc99b7ff88f28d329afd92962f47844297eaffeac301b7ecccb1a32b1e9eace04032775eb5558b8acc1e599fa7f350fbe6fb20855e4dbba88c23ecd8830db3d812a52f072d689340684f5356fa7d94f621562cd135ec07698eee5adb9ab56be7a315199315813c8ee29312f2159c16f9dd6f59974df5682f4d4399391ecf96a222027156d36c26d1e9d52c98dc38ee1999db9d1ac8d4243369718702bc2d1206464e2c5a0609f3e8ac0318fbd08945d776c88dc2e54115a977fbf62d69f4267d9c836e43c960b5cf8f66a50252a4c831b80b42c75d1ac468e9b88bfd37f7ba6bd5de23b7a1200bb4497431ccab8e24c683668cc94d9ee24910aa6af16ecb7eca0c4b168c8776517f9c804d29d450438936449d434b8364d01ca7b748488f4ea32772c8c99fcf96b26ae484d21587ffbaa320cf67f5a8ecf179768cabcda3e0187f24e37db6fcc9f999d03e305168f9e37f036c95511bd1dce633bc4546be13a3e26b8c5b9a7bf6082c297eee10a31999be49e89b7fa887db9daa9e88a89b5d57aa33487edfad88cc0d5912d9a58a93becba5ed2cef3d385839f23c6a6311642e5a9e21a16ce3d7bfd01f06d38965313e981c78fa87ee3e0685333a9647274cd5a1b037da5fb8c16abf7b9736c015d1e0e5360b54eec02b17b854935179587406857b109823c00818a44bbaaba0d9f1f3f06fd77691d4c4c22311cd5a2143fd2f585eea36f36aefc5ad902dd6a041ffa564e460efee80088729288b3fecf775eb9ddd59aef07236a8a9649f594be52d0b021af2660dab2f9319995b674d79013a4f4014833586d10fb068c63e669648a458ce1e808e7ecc695bcd498b729d3de370e43146601a3e2fdcc5bf38145bc2af147c9b1cb405b4958fee8a91a2b520fa32d7aa4e0778c0f258a063b5147c4a299949fee337ef9289b1a0ee3f973a8aa910672a11ec8856d52a325e6d17a8782ab5e268aefda329b94ed5fcba9a22b25dd454a16e28f2da7799789841c62759994f6f2d914e81c6cb93dc63972149796ab73aa6bfcdb492e52f75401871728b0472ded5a49380ceb1fb463b9605a524d6057b2fb2baa108757bf0713be722433ff32f46a28ebfdb59e2173b550b36fa750919980b9e4ef1335cd881b22945e8cd152a34d8827cc0df430d111d3b8160a04454bfb2171a017d7fd8f3b9ec47c0277fef316adb1a8393e9f465029302a097d5c16b47c5949485b2369fe2243ec5e796f47116f36ed891385db26a87effec247f7f2d3958fb201106b84ece3f82a2518fa753ec27652212094f404c2e6f66d5d37d646cb95f6bfa1898bc35516a5f29fbf35a90087944396cd2281b71f606055ab61342fe53feab3ff91f6f72db1022c6ce2e0e12db63aeba00f13916d804446eb5f5aa74db65919a4d45d1cb7752e8f01688c2744ac2d53227806b6a1d1e2e1758f6fb52016bd5654b79f52b421ede12539a32ec6afb1023a395ec82cc91e740dba5174062f261d48bb81adab88aa03bc275b100bf73cb3e7e606af2c446cc4eebc330adb98118df4262dbfae51c10f892cba53280220b60188437d7226dae32b607c8fdcf2f1faec4c97db831f4e50282e9e1a1588ac1849a831d74c685f6834446488957a0ca7fb264612bda57dfc399d28adaf7a869bb8751ad526f67b9151547f11d195e87e08f183a5dfd7623040ab60591eb4d509dc7241d56854f58b4b95888a66e5ca3a3867c2b73c070c485b5edd4cee821955676507b232c0351ffdd1d53a92b0f1d6dcbe30d61035d57e2bd250e3f65855a351d02aed1f16f68511c0dc60dacadb1eced88c3cd72c6737e11f3e4a6dbae7e6f3fa6cf775674b808d9c6eaa8cf8e9569031d7c801a3b9e500bbfc1fefd30e92f5681a3e2acf7403aae899664a65f5fe384695541ab936dbacda8f9e34b7aadd6a2956ec950e67f48a6605291a953640ea475903fc6db6def8faa07f757b58996365e238e6affbca62293bf6bb18da38aec1554a4612343efd7754e4a4d3989b8c48a66aeb08aa095334b0c9d5dbc4d95c69f564d3f16da6c8c3b027f8ed5fa750080c0e922d6ccae24f005772b66a4de73019e53a7f7d4b0630f4127cbdc6a51af4e1c866ecdf3e9f3512dcf52c8436c562c2264fb39a4f3d15fd67967dc4e767c8bc7a0373e103210d6155c041510a96d354a807154c4a4d5812ff428e2b9479fd00d3a3474899478fc71fe65f7acb3628432ee8550f9924ccf4cabfca067bc6c4312b517f29943ff5dbc304541ae3ad6c104bd4f15ffab49b8afe0e46a060ad1fc37e93638dfeb16c3e493b507e55a9177d62cf81ac7c0eb577b6ebc831ade55f415bc2660502d075a43dbc02324d443bc5d8774936aceae8de170db7d991de2ecf16a4bc424a426102a552f7aaa61fbfb535f954b4d3f322f634d4d34c23e4adae61812de2b22f84adabcfae2651078cd8d2746c9d5dabddf2401342e96f90a4c0ddcfba1ab5880b6cbe95e99f0bd81d4c33a124c90c51c7390c2d2159e80e1c119b7369981ef21e3c2c738f6728c5a817d2904fe801c62b382a720526fe1f571bdcf9f9e1fcfcf0b864c852ff50eaa58c35709b2d5c2bc14b75519c9a5093afdeebd37fa9b664a85b53083c9558bac144a91f80b56afc4d54bb59946372d253d9f1b950fcb3539ed6feb542c38a3196cb3c584b052395dbf7e32e13aec37b68ebf76e5a5def25a23110ae62350481fa76fcd16db5d3f2ff62603964e18fedb6e065b1909985e9aa6ee5166a3a30e1baad5e258b220a4179d8cba2353626d3adb33d61d1b5ef4351422a52a859e53b163abd8c6ba5117de33cce57e2120e8099af68089e83ce54480d7bb10cecd138a50145862f4ba2228b2eb2c3e53566f770c2e3f674b8f79b118c6a0fe96f7433e3c04a59dffa292c1cf4ad3bed888cc876b34798b6c67a8dbc21a06a324d8d611faea3c81176be418de27ceaff7063979782e6f294017645c824351cbecb05aeef67eab19610852ecae381a1d273bd378135783780e1c1237199b772c0560d803384a40c946290ae748993e1f8cc22f9c1fdedfb94208c559c3c663528487520979c5193fae119c0bf6bd09dd52210db2c68d02f78660dd8cb790183fc30857b2ad1200bbc5e2182d461674508a31c30758c107c23474da2da89eeb112bc2de26c5e70d5ceac9177a8946732f75b771b5d6b6a5adc9c8c777ca2b72269be61d04d56acf24130a3b8472148c58cbe49db9f15bb19293cd1d4d60d7f5e655564edbceba70aa3c5746e39a6e3743ca2e2bb364698636c7e7f027c47634f11f6f998b167a50e05b211d3f401b5fbfbfb6932f536f4940b14375893dd7b69a0534ca699a26597ab80be2c825ccefe0bb535437655a860ef21e7c3e08f4efa2f72e1aa3b722fdb0bb4d2f61d4f43eab27d397b6e2a7021c940dc6fdf4c41a23392f6748064d862d8395c3dde17e0379982e032a4ac90cb56d58ec25fe0d0b16f8f52ecb0364c5dea1220c10de720ed26f3bcf98de136b794699583e04b2de0a6a77dd84a3ecb82f4f8bd16c1300da1a74c349e9ed4b75f29565cf525d25b9845c00562e3614c9667bc7c61735a72bec1cf98b89c9575f695a7b7baea78f190d677fea04b3108b82aba1973fe9b8d1b18f62b40a3d0dcfe1aeb7bee4fc4f6681b161e99ac17a58ed643667c49eafbdeb4ea78107229ad04f20651ae56a00cd36170042e9e3bcecbc44dc2e08e478487b129b3202b869cbc1b98d92ac938e834eacc0de7cea448f85c96465233b54ca2d3b1f1e6f055797ba50022094eaa037b9ab9e2b76280baee50cc2c6d6c282f281749267cdc09b4b6c89ab81068532385ba09df40e36ad440cb1b7d6db98e7233c6314ac539a738d1339885ee4977be7321c6b1837803bb8a0d0923246134fcb48b618d48a8a4730f5f2562e5c8e85535b5372cdd13bb62a051eaa2aa93e8e1635b1d0c88905de43b0abdfd53fbfd968a8df3d99c31fa4c214a28237b9b2de0a17147108074d4b1bcf6d0d54c53d426673788e95ad84a1ffc3f85bca8ef0e1f5d2b4e6229dc9a48e112cc79d70a2d0e2184d7e139678d9b253a351b2851295a1c42c6cf7fccea8efe106607f0e56ea83082d321e54b733e365b88980aedd5844a934bee9a89f9423f49a72a08dbad5e3a94724e6d42d37f9258245102770ac7e7523f63494c0df9561a5faec7dcb1c65a7978a2a75dabfa097fa058d702f00da468d3c3863233aa295ad0dd21ceebe0baa69c07a18e77249c03b0a0c3dc02a91de068170ac1d47f5053ea0bb750e3bfc170460274ac4bc217e06adff6bcc93769d1aff3e45babf6ec034c0a14f586cabff985820c6002878b96c38d55db4e5fa08c3d1020c9e0e4ea22207d723db0ea1405714bc8674cfe89a12be8e7a28993fb404802190d39ee46b51c0f4edc0a26b13e4959743932bd85d33d36b21b267d800d28b57b86e49313035388ac54b7744d8e0fb8b4de5386364a1fcec39bd609b941472463408bfcc5ac270f80fcadfcf87dd712034da93c01474eb6ce680ceb0f0180a52f2d70ebbfb6999722987f87d50b7f25fe49bb53a182323dd36e3ef4fd8d8c9f6697bd94d19f053f667eb79eb8466f94efdba0e7bd545f82a156fcd21e64277d560b816642f233a2fca92eeab31b6ecd8edf6acbf2efdad584dfdd77c33eef29a06aca82bfa6f30043276395cec37fac3071b891de335ee105950322dc6bc7d66a7f2691e1d6014d2821f3c37dc5c39bc6219318051d4af8aa32dcb847acb385ad09ec1f396004e6beab8f04ff7bec82e6bb96bf8ab0ff430fd579bca65361f99a0cf633f74c8b7dd8539d1c6f9c1865cea62d8defdcf793898bd5a3ce2118ddc74258d67313cdb4f2ab867d2bc1bb71425da2e6d849f7aa234651193070639d4fc0c6da8e055b5cb7b55bbe834f6c41c6f659380bf909be4e7d71a62f1aeaf633fa0a208c92aee3112547891e9d94e0c0f0ee4d11b38125f00e8d59d332ebc379e825e304f211c8a5571c32a749d79c67a53af571b407a3050840e10d4be854d34bdf7e42e7e25efe7cf642f04990af318fc9f1b19e0c3d0d1832748fdd1f42f46fde98a4ac5e3e3096502d4efa49df0e95fb808a998b7d11ffca86421d63bc979594fa167edec6d60f319635b2e74af07c7f28c41fecbb77363a899ba42ed5f8208ee18e186b9f1de2651f3d26f35c08891e0c710e47e44cc9694f8c992df4a752ca0c065f6babc986507f24912f02cc3f98349006c57aef93f158f7ac10e57bd3b595911e2acf4a49373f239ac7da0e9666e4b124418471f107d59a9bfc554fdbb097821cd4e529f0a1d4b9bf1f7c10fe270e136070623f030e0a4ac346a546b39ae7f420a49b292de7c76f5f13cb7d7cd3aff6e367eb3e36e9695e640e399d0f0a712a0dd21722ff1f7a1ea63bde61b0cd7f9f8944284b280eb9fa7416a82fc2010649e6339f2bd8803464b3df9ed4662ee7f61507cdabf9167e9936f041af9f93eb31e470e667f9f37adb6927422772c248797524c51a2fcfe0b96356cab560e124c32363fd30031612abfcee62a192e104d4c69fb204a3b5713a1aa33bd5a4c8262dbb3cbfc27916f7ee83b9259dddd5a8428b545587dd1dd559f68cf0851d13ebde5f7581fb9d51008c7a9fbfea07f22d483ef64799dd423e5c42df5eebaa00096f1026b57a0f07e7030d875d8a685842e808b8e7744757f144d2f7cd3ff142de9e29826523b8e0913393b7371fd57a21b82f78cb0ba9f127ee74d8fd7ce29dbde0f1a6ad1d05ce51a4f6b1a77353c3f4652206b7267f132aab665b8db4b95ee6543731c2387b8614904872f2a5e9900881cd223f9a09fe9ee279a15b5b953981eb3b2302cbea8d34bde888925364804e5b85157d6f0d49ebe47fed5df4f6b300e924ab6d3c816da59304bdbbc8f3c3d0a111a1efe5c639075edf66cf459e35be919d68bcfd37dd7e063b66b517678820dde58f3eeaaa7a9c19501a2e4ed3ff015c1a7ff58010c8b2f6cc45664e77a2e9a7f288b986b26795bab81a776b0754179db242476358709b99ef864c1a17ea86da50655dec62a1ed020102c027e0c3fd7282be1e6df970bd69ff54494856bd8a4fc5c8742d0f4d253e2e5749300100da5a252d224f2cdab030319111146cc45f35d8044b70a53280ef5524a051e94888bfd57cf46b499aa820802dd72ce43c88e9c71f3ffcc8017cbf90914c4a1e75d6a1eb0a4b51e813408e2f7d40b9e6386d854b1998d718443e4c56804a676becc99686b3fc8b81b3524bc06dc99463b5f9e4c0b04578bcaf99f5bea34ce7460702c3f577258791de11625e040cf38077c8cef01aa57d7fd9faa2ac3c7d0fbb842f987c76e3fe6f85f4d9fd191a913a6efe9b220384a08acf5111f08c270b9f71e6363372971b2c0401066410077ad99a434af2439be143e13f2f3991b2d53836322c40f401fe67bb67957e5b5e399cd388bf930233c5c70140df47854ae01d337cdb4b1c06a9054c61070278b1fa7b55c9863c5d8e35fe84d7afa45a663bb03d138d4dea0d0a4adb704350e2b706bb2bcfd31ff105e8f912c7d806e07380ac50d1a6a7279adb6314dfe0e5bc71d4f251c5c1f38c2097383e9bbee88dcb2147db396410d5afc499ff6a601b946c6c9865de6fee02a0eb5086605ebef517ecadd989c915d1acf6fb1be307cf238534981340a6d11f9472df147dd5321b6a5901c68205f8a735497ffed5baea0635c2b0b787c854e3b44650f1633e530c8716e481154e4332b5456949a38f28982d1b6c713c3558e512e83060ff9582de2dc512cd86cb0698ba8b1423d91fd86887fd5a0e5dd79bf31907ca13912c3dd1f7e06345ec76ef73221a074423997e37da50dbdccc8fc4823e05fd4c99041f044305d2ea670fb7000bf8256fcd5c0981c874c49dacf2053d8300043907c64b674bdf653d85e0c7f952b48c9e6238c9bbad12e412a76e795c37cf0cd29f499582e8bbbcbf24a80775bf8e3c6b26fb08405b049f883cbf0bd09fd112724eea51f991738a71af6b9dd7ce844232583d7604071ae7df69f75fd75b66106169b53ea755560dd7c49eb36741e908ae7d22ee4484d24c6d55d44ddfaadcfcb0dfe3df86f8d2d62a494f6570d120dd7cf9d9092d539cb9728f0b262650ba57db237f31469860bae6eca3d599b96542d81a4ad709d98837a53a62e4153485729f74a169964e41352f2ead5da49a95c009684759eecfc8ce1cc00d60f601793edfa8bed0a67b0cac363184209a8ac7f98783194ab67199e06ecf4661171f96d4b6232c8f0bfc3afeb56d97d4f7a5d1033b4abba47b7f2dfa8bbe66948ee212ea22a732bc94c1b6283f895bf68c28c3be972fc9bd2eb8798eb20295ae7727d65ea3f19f438493d82a07e4de082d85514647f5ac6099c863d78baa7b21f281339747c0d52828e40893f847e9c3fecec0f0534392c4fd120e13048e3c45b9713d0f6b2600388364d13b7f92a81c18a819043e546f847cb9e5ec8018c0a5b9f6687cff0ed8a23ed3eae9a6a25df9952092f8d8ce028848287333137b0e641d4a5d00000\";\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(\"Hivemars\", 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 [\"Mars creature\", \"Mars creature\", \"Mars creature\", \"Mars creature\"];\n    }\n    function _T2() internal pure returns (string[4] memory) {\n        return [\"Honeycomb collar\", \"Honeycomb collar\", \"Honeycomb collar\", \"Honeycomb collar\"];\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 [\"Starry space\", \"Starry space\", \"Starry space\", \"Starry space\"];\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\":\"Hivemars #', id.toString(),\n            '\",\"description\":\"Hivemars is 500 Cute Mars creature with rusty cratered skin, honeycomb collar and tiny golden bees orbiting like moons in starry space. 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\":\"Hivemars\",\"description\":\"Hivemars is 500 Cute Mars creature with rusty cratered skin, honeycomb collar and tiny golden bees orbiting like moons in starry space. 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":"58372314","creationMatch":"exact_match","runtimeMatch":"exact_match","verifiedAt":"2026-11-04T14:00:39Z","match":"exact_match","chainId":"56","address":"0x6FCa439919D1BC309e6957D8e677f46C4ca657c5"}