{"sources":{"Mantikoo.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: Mantikoo.sol\ninterface IAgentIdRegistry {\n    function handleOf(address wallet) external view returns (string memory);\n}\n\n/// @title Mantikoo - 949 Baby manticore cub with an amber mane red bat wings and a scorpion tail in golden desert ruins for .ai Agent ID holders on BNB Chain\n/// @notice Each wallet gets its first mint free while the 310 free pool lasts (gas only).\n/// Every other mint costs 0.00005 BNB. Max 50 per wallet, 949 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 Mantikoo is ERC721, ERC2981, Ownable {\n    using Strings for uint256;\n\n    IAgentIdRegistry public constant AGENT_ID = IAgentIdRegistry(0x60B9262456dE011F7d15a54CdD8c48bAaa8B022F);\n    uint256 public constant MAX_SUPPLY = 949;\n    uint256 public constant FREE_SUPPLY = 310;\n    uint256 public constant FREE_PER_WALLET = 1;\n    uint256 public constant MAX_PER_WALLET = 50;\n    uint256 public constant PRICE = 0.00005 ether;\n\n    uint256 public totalSupply;\n    uint256 public freeClaimed;\n    bool public mintOpen = true;\n    mapping(address => uint256) public mintedBy;\n    mapping(address => uint256) public freeUsed;\n\n    error NoAgentId();\n    error OnlyWallets();\n    error MintClosed();\n    error BadQuantity();\n    error SoldOut();\n    error WalletLimit();\n    error WrongPayment();\n    error WithdrawFailed();\n\n    event Launched(address indexed to, uint256 indexed tokenId, string agent);\n\n    /// @notice Contract whose runtime code holds the artwork bytes (WebP), after a leading 0x00 STOP byte.\n    address public immutable IMAGE;\n\n    /// @dev The WebP artwork is embedded in this source and written, in this same deploy transaction,\n    /// into a small storage contract (runtime = 0x00 STOP byte + image bytes) owned by nobody.\n    constructor(address initialOwner) ERC721(\"Mantikoo\", \"MANTIKOO\") Ownable(initialOwner) {\n        bytes memory image_ = hex\"52494646f62c00005745425056503820ea2c0000d02f019d012a900190013ec156a44da7a4abaf29123c49e018094417da9dbcfdc187c1f66adf1afd173ffeb5f7f0bb222f639f547b922ef5a990e640e08e05ff76505e54f6424e7645ddd33be849dfffffffffe02082083af985ccd6b72ba2c49b93e547e3556206c5dee463adb52b8b59e33285d9e5151554638e0563e3e57488d77e2ba9eed51558a363c4f4c585d666c311829fb7609177e16783c3cd79c42806ebca1dcc116a6cc052b04fed299af7e05f6b87495e252ad5156b0925bac530329e753a4d0dcb59a0614fbafa8aad78b42621e78af31e0f7ddebcbbc94b0ecf9e5e52ee7a52dc63db5dcb97a258df396c16234db499235901b95193a222ccb1792e05eae8137e60a5342e2ca64ebcd69c50ef8ce078c5af0e145a00b0a9964044e9ee426b9a0fbcba4409501497f409552033a69cf04244d08e060a793c868ef8642d605327efa407aec8d0d5ba3dd28dc67e66ccc5177970970d76e3412c5851d9d71040a32f9e7fc4e16fce94c219cf09b9b5efd1db85f6b088f1fbbdb5bfeb60ce30a14c3e93bacded9ed583ff12410bfde8b990e18811f11ec8b64dec3d0174196000938ca336bddba42582d7f2fb3a3b8f3d0c0a1a208577e45683a16a77092d38f92a818368d0c7f125507bba70d3dd2b1d93296e27c916f8221e1e9db47e3c75f154688e0e739982e51dd736b1815ad0256d99f9bd801136d3dae49098c2b47032015393d28a4bc9287496cb5345cf1a4a5fee3991c785ac155cdc2004d5402f66799395af379df605461d52d913255ce562e65683d6fbdcafbff69f3d7e3fce505b078f8eb58f68022966018f6c87bd9c2d72933dc620daa68f9136fe4686b729c917d513a5eb6811038ed5ea6a9a24b114fab945382e69b66861bbb20115eadfbae4180e231b21ea4b0501b762c3c57555e00ed24da1f7edf54f0e2dd9bc53fb58c6b87bc771a8bb4f701fee8ccf2ff32b16adf0ed5e9c25593944c045af04cdf7b0fec9f8d87a5167de7beb5d2f890e8ffc205a00e6fb0ae153eed9325abc9fab464bc9883607b902e4fd469c90dd6792bc420fe37462fa68c331b3ee980ec95ee029b0c3b59c60bd9e508b02753f62b6f1f2b5ecfebf83f36901820c85a7dba9675101feb9d98a996dc8f99a41570ce37f6e8cff65f2e38aaaca7e59f53b9ab7de97fbe27f38c559b272dde6adaf139d2ccb30df47342700e545e02af87931cdfef0f2099fbf056db10853b0d2030e9f8cd6479eed47f56c16aac262945a40226c01891b3b25e692558b2e0e6d1df2cf9f340b2b9a4f8f4c0902a1e221e29325ab456e66ecd98c3d35e0c858c62160890afab0f7ffde2c81a9ae51ed15ea32768d884f70f38521bac29afbe2d80ba184f8a8333d2bdd04c512ffa185b8d8cd7eafb4b520c4613c24b0d14df6492b60eaf47494300c335560b6038660caadef148e969205754c47cff3d1151bf881842f087ea4f2c2e94d2ae1eb82172474dd5cab48c0b2358b1e6f72e6c6141baa63c1fe6df123b49950812edeb33c5a1731d8e7f75a483eb9ae1a86f138654d5af60524ea925e36f2771233e84d94270d79f91aece309940ca44356853230fd133ca5ce8716e5a9f238960eb2079f125af0f0d723e2a7905340924dde5543953887c6f8086bd2bc5815cce0a4f736ada75f6b89b95297ee4704a773bf26a98a18d66f86e4cff02e2ac3dce08a8e931c0263c09ed3becbf10d1ff98491d4d3263ebe813ce0142728229dad6fb9eadab76818d1f247bea7bf0f6b2df10684948c5a4ba7e6860a3722920b254795dfda6807c7a2cc4784a491cb7258187ce126861a651ccdccbca44cd4af4451a4e40b825495616d37b01937f52e46f6c8df987f5e8e9a270b72c28d116a465768264e26e550795f95c9fa3d336fb90e52e3f5e93c41a5ae99c9d72324cf1131847cedc13c2ba497e465ff0812e8d8041263a6e61d70795253cd0ef1c40ec85f9cfc505af6c1c71f87a8cff33d559b16133ded459f25280cb8fb524696025ca88f7de612198ebb7f920dc0485956baa2f86afa5f925b6197861644819c839247b3cf67923df08142f1df517def82fd4cdbae8c231f76f20604413174fb11133e4dd3817ae8dc4912417ac08369e853e5b50c0772344a3bf3c4e3183118932897cc0b8bb2cb3a4567bd41cfda5946a8b14cf89ae7f6876d31616a75f21c8e8a1a97732f74925619e5a607b910d5c8057fb799475ee755f6eba09d1b03acb73c46088ed1839842895bb02b2ca60bd4f74f2c26c79b287d227e4261dd07d41184610396dc0032c85e08cb174ef69ed94ec3c2f2458a329d85a77bbadb40d944699009784e38ccd432203b7596d5843c31ecc78d34c02062fb353019d60938ed598f1fd123ffae74604a98d16476f1842f010d8bb8f39e6e197d673bd80b0955e8a3d943fa426c93907ad8f1d95b5334035efcd826a76660805906ce4a06ec1635f5a19edcae0f4e0b8a685e63bd24f856ffb301db01b7eed30bc2540c23a0a19229082b0f68e50df9ee744a155427b5ef7fdeb9299b3a166d621ae4343760f17ef402e6f08428ddec055d3537363865623fdddf34e706bff12eab9f43f8165a7593205df9dabb77f986a840bc373bdf1c36d22539da94477e200fa3928662d0784faa6e0245d740a4bcd112d551c9046d921e1fa444a3ca633ed09bd48d8f2c6932a44333948455b057c29c0cef54b76d1ce5bb6c72f092319dea18026779b91d9928fe138a78cc6ca8441ce33617088263235b417512e320502bbe62ba91a1a2e9513d0ce09742853c3b8034b4c6d56a475c0b407d360b09fbb03ffac2a5c7d0ce3871b0cc73bd4aa37b6b3625b34794a605826f35db00c3b95444b4386ba904d5676697cc94ab6447e027194dc7638a9bf1528181d99848dacce0180027a82998877740be46e8e32e5e1a3211b93d0d5d8c4a6744048514f1ef90e24ff858b9962c5b31c2cef687541841646ae2308118f807966277f2bb7266aa732b8a2b94bf55bdd7e2592d29f4a858da2da6dc0efeac8bb48649171057cdbaa5c860aeb795301642a8695c88bbc1a7ab9f5ccf47129fa15c793b39fe357dd57ecaa1e91d08451b82de1c0ac599253ec55bfd2b6135591573c3a490828f23c996c5ad7b467a37a9bdcf2f0da8d209098b0a7764565af93939aed8db45801a2b3f9f86d8b8cc2c32d8b5aa96e8fac0f909fdc7308c33c8472911a4468be91ebc0cc4896f47a47ef50163d4c4baadf3820526dd46771fc8ada16a2dc753885c6ddb7778bb207734bb384ba285f8604eb113e238af76ab56dfe895a6f959a7600b17a8723e40755bdc84ee726cedc9db17a6c62d7bdb08684d10914c01ca7dd99916cf7d5cef2d9817ecce9daf6a888f64077f8768e88094a8d9bd9ea87e95f1c95fc660f0857b82d7320a73b00000fef0612f660429664c5fc963b887f3213c202b73acdccab92fe4173e6d13bdb74a7cc76f67ca1b3b3a5e9de256d60a9e9ab295cc33ad35c748695c5705426197cd2bea797cf3bfebd8e77b01f9c31f7875a633dfe5efc5a89db314d97fe3df0d4582d4400607b35a0cfeb8c08c99f84d102cf56f9915f5f48e29eb2072c8d660d193d0a237a18a747f948c2dd9c0291283d90137af9c5a3edc5b590d09cb82000275990e2cb3846d619982cac4d9eab8ed49e72fad1ae4928d85611b19359aa29da09b4166e273f5eef81a8ede917cb5f1e182ab214fa5cd6b7c0617f0814c178fabbb0d10cb311ad310622a8cfcd318d4039675647994d06aa0f40344ecd5fb215b5fa956459f7f3e096a747aa3b7d525d4fcbb651ae442081016f974170f25a5a73a79ccf648d10d796df2b40e0ee0fcb08df310523bd3903972ccbf24e519a522cde29ead54bda2d4911c28d03bd39720afbbbcb68620ad7b5948663f5d5ea8ad1c0383e8e17a027ac2366af17ae71bbc52b7a8b07b94d97beb090262d780c18c605641d334e5876384ee2879255699633016be6269f5313426ba468b45be54a45a2a31d038e010d0edd9aa591a17303c17b22ad064d1e5e507c67e18b652109e673805bbfe0832426d147c14d1bebf5246f30e1945bf8d5d5b4877a3a53b709f25294bedcfa993bad607e5a30bc904499af548208ce728ecb4123f600d1921f83157963790452f99ee9c7881b4cb633d75a73fce18d4c185075103957798b173775ec611e9da183ac687c7815b7be04320c602f3c8789b83538dec5eb04a20fa17751c0764b234c219f7692f6b37cd3803a12cb078578ddc1081dc91a86bb5b301831bf7832ca8316189a461cce05eb4640290dea5726a915aaaaa458aa868d918a72e351e8c4a3c1c4d1fd42569ed44b1f4de5fbb862b10f6701eb8f31533991b44a8a9d85e7077b21c60f0dcd4a4481dfd65b43ea8484c3e678fb0283df826d47c6cc8fa0ee8527c7580cab76d913591ac8e326ae6d03ceed111053eef6ae0bcfce330121865356fc246d71125cf047ad086946b189e6e49a9d3c1743b08a0be9e36d8b27b482ceea21306df48c962893a5d1b1eb3fa2f9b18188da6240c60b95169ac88e73199acba73b240a3c0ca7cfeffb1667f789919460e5888d9233b23d7ac0d45fa5bb74ccd92afb8a0efabf151205f90eaa6d04dd4068d9dd4f9bd519e46da047e0c7a379d11eb99e41ea3d29a6f33aceedbd7a8412c49ea0ef0edf04fe0d5c5ce412284fe84307fb120a6eb3e6071974ac5827158d3253ff53495f84c9af9bd807f9582b938075e167bd553496d26725a1f450d7ca229c5a97946a6770ea1f8c69f0388fc8de489d6b1f9183c4a7883fda1fbcd7ed8d181ad17b91c3b839b2f3eb8bf0af98ae7009a18f964339402e226a7d91569949eb0222e7388d5e0f425f170680e1a1db1770731d8603ee349e04d88fab5e2e3b5c026420941e8bfabb31c54275485bd6bd5eb65952cba8b876320bf2f5c82d8d8f5f001485b318347818455b1326582464d4652735cef13145524f42f8b90690d5fe120b95646dc352e832768085c6675521d03b62ccc6d50c7e67bdd271d1d937f049360496024a615e1452ceeabcfbfbcb9bbd0483d0d2064ac45c7f2e832f1ee8c44df66e94c6eb8dc7587926115c184df892ee94e8bafe84b622866dad29e82c6ebaa55034792b769874dd220d56bca3634a61d56545d88affeb420faece290e0e67caced2e67cf23282215e2564d1cac93721b337c6c6464b384c56e33e58a79f7eeec61ac3b2f94898da64d1a6c1de21e54a59bed4df85d9056a50f57f71bf7c2e750e5a3f63c9867a019e724b35edd4d36eeb31756ff1f3808211d1d1c4b38aae3f80a28752be92a20483d9a69458960fa5c7897be83fa60c89f7daf1351dcbfda9854cc461571e5a137f36a2bcbdd3acce9a171f399f0dd72ad893b2b961805c5b644be90abd2430e0f991d38c47495841a8a10b93a2fcf2ce8cf23f25b3200870e77dbcf50c2b0128884352f50aca9d42a6352b94313b8f6df8d03c1410b52633d29aa33833dc0823afd895f88cdb498fe59619ca9c9d3fd207096a1eb5c35f33bb487fa42db1f87421941176367967b2e0b95481886211cd585a48b312f2dfc5fdd6630ce582591478d83b46f82dfb3b97024d99afd7c8af80c9ce522f874b5091a5aca7a869262ac165a2baa49165e8ab3808e5097b6622f7479845ee30306b7981d52f45d7436b75b66de75e29ce8d21eb14e5b83f4977183bd72c98d3f1eac799c2d71345df5577e8c0964bbfbe549c07ca4d60a2c9f3924ff9e8dfec0b926c3bb6594dd9a3d54989c3a6587ccbc87989517bbe2472730e5c68047b77980bca21e4240ce82ae9313b06f9caf1ffd28c8e3d74764872c8f6b79cd9685c3c648e659d731356d36cd1971ca02d800d293fe231d636a9cf5a4ab0f6476e7e9e5afdef1a313539d1865d16743a2bce58b356901c2ec7430f532bd7147056668305ee5349c0139aa9c54cc5147402d60a2f78b05b0bb00f4e02b57f47dd3e26084fa6f7b39de2855fdc8bbe00d704dfad8439bb41917cbf6c004346d40ecc1da99b3865b4b0beefd9b81a2d3fb0df8d35982c8143b2f3f4180216e07d266da6976adb0a7e383506ddf33687811940d2bd4660a832c4a82ff39c6a1913511a5228763ebec54a1069fec173da7b683bd04932e08df616ab8cb8e5f4df322f1315183d80f2b5149442f5fdd721339e6e871cd277a79c3902c19c17e14708a1dfb6d782fa758f98ae68b01bfd0fed6d4e98026fffb6dee1cdabf863b28ab1acccb79701c693e3126122a493a38f3b849f29938065f1b53b7d2f76778cb5ba4b4d8bbc2bd1626880c58283c124b3efb72b717f37076c4acd50f034410e047d75b2abb1c638f4e908546bdd9a08c2b3cc9864f1f3f611e7c4a4577e4a1752988a9a7dbb9b9e369c77795784ede2fd0b9b1133eb28263d58879b9e851fd499a4e17cdd66638baafe36d2884a3385879ed5756b608d402080a49f0f01486e33c67c229ac3870d0c6bc8b0e3139814b943bbe29ec287e4e9205139e3ef32b8d464988dd6b254eab1321090fb3040e08e95e336eba7f752c3e5960386207dfc50115c9b5bfe61f688acf376a046955b8972b76082ffe242acbd8990bf9c02008899b0a5d03d2d54c708c800e9485ad2706ce3236a760f769e3f183c25529ee8d303c7accfc5e0fa966bfa6be5a6712c26a6ea750aa3f3d8d92d1589a413d2f02dbbae96bffe36ad234aa3b29b15adddef12aa52af55e408e5303820127f73f2d7614ecf6458cd00f9f9731260df668e7dad93c6c249567be78e8106326399be869dd7ed60a927b2dfb80e192150f803079b72bd02774490759b6aa9eb36cad9acef4c0f1d863a93b5f4722f557949ea77063dae829eb10b3db6f1684ecee25dd423db50957115a98708abb425e9541fd2ea50bd1c241ca5b5ed1f61d5470847b97f197a5e731c00127300a364e4211b6725f61d7f36c2478c4911687d634eb6327b06114749956d0e880c3ed923bb5152ae4d86d9de2b02acd521dba4f47c40f51aa94f610f59776bde686700dfd94cf3e4acaca74861c2a3fe02c8efbc32b3e295f6e6c8892c98daf03cf47303894b0da1b53a03eda8f721d637e8ff993c4774f18ad2a76599d63cfd86f7bfd5052a2d784d57630c91ad07cbe7a8bf117e7801aa35d106441af2383051fa2178fb4eac3ce8f4b93eda0097baa99e84a68e40a08eb4c94a42a83a4207f620419fc683a61c3d466679a8dae4b7be2a8153839753e63252986bda3375c42ed19ce9d920b55a4269bb7c2b6e2181e87a21e7582d46ba65d70ecbd9a9fcf9caf2cd1cef5fef07a583d191e2d594eda520286401c4d1cb4a11e8320e380eeb6b9025fabcfc76e141a8a8a3651faacc03a1b4875e4468cb69093ff93ac021d9490c06adfa01688db3786fcdf5e8369bd5e537d92546d0972e6f705036701736375b0f2b02c89202e8d33102097be2316bcfa42dc734298c342ea3a68af80d4b37e7f0126d1a925247069976b80835e57dfe32c2c28411581202a77506de61bdc46833bbea0b0fdd81e32bcd4fea202baeabc85f42ad4db0f67e51803b64cbd18c4a246d9ed366ee367af66dc27a8cccae6898adbb8fde0418e6d3e79a0487f269bbfe238f9234bdc29f6a7f82dad2aa2f51fdad2663ef858fb9b4ebaa7ab4e50a2cd077f712cd2f42ebe3162d780e2ef286eb1512a75ad88a0d4625e2b81118b19dc6b0aaf3f7ee1c0065b5a63e2a7bccdc9b545077fc5a12fba71c8fb3d135ccf513751e64a498f4a502d7fa20330729205ebe2a62352cd3e833d7215aa5743a75bed17f1c5a9e5f237cacdc6f02e2494741f27d9b624708d1a4c065e2e027e88cada203263834f3be81f6b5aae8fa752d7087c5925cd18c8522f4c81569711d119acb5f4fb745995ce9748a7ba968664cbdf4653dbf5049980f3695795c2c5ae3f453b463b69e70f49719a0948f0a640e0a3e1f02e996cff711b1237a2bc24d29eaf9523e905a2cc835d00217a788f470481d0b8b6314e00a6d386b8b9e1bd7f0d70e9c8de10dcee0cc885ab4f7d4ce4e96bf1088d48939e5e4c9ae25ae635b235d3fcc0b286358e117a2e69e15ec57db5ddd1694c54c1078af37dc6a540b28c440eb70815e8b114b322de76dd8bbecd10ee26681a2306db61d2c3091dac456e802034efb3adcafe7606ec778c322c04c44d724f11d2139bc47f67f1b03ae9bb4a58b9693ee86a2378d2c1088dd15b4399f3a2d698543ca9829fc7b640dc1290dbac3b3ee24441e54a327cce04f92995d6f2224cb9c732ae5d8eff7ca5ccd188937c906d398de4d399ddd3141c7e68bedcfd56dac96675b995b558f0d5c583e4cf7ab72167ae86bed973fa71643ede645a9318121e13419c5f2694dcd6fd28c5d89df8fbddb9ef6ba7689dc7f58e8aacb8d23c6ac02a5681be8097a46576301a63084ab0b8052a7d71ee3e0e26cf2a959e73a497e5a598140677e057297045edc536e74bef7af87d3e686a0b73c4bbade041e56e52a084eb0ea2c02f594c7f0e92900552f1b84ea7d3250bdcdfc8d5417d1618cce8467c4178099c74634953a94d2c3a31253b15ea90e26f33b855a6a6bebf05a05e3e44e2dbac19b1a0af567104b724d9ddf315367d0e596e633caa6b5368d0aa68691250a0e4ca9366b0c54f664a40d363fe1f838959033f085b58cc27632e88820752397c9074f85307bffa5f7540aad036adb0b605352cb9d1df12931e09646d33ab2ef464e97192694f637bbee697976aeb1363c130bdf78e3283029805338b411aded6557fa9ba393f8801273dea9d1714348b51a06a27f38640d507e1c041ca662227494e5a48e67a5f34c0e118b852e4ab96f00f35c3fd68df369b4175294bc06f3a8f82cd1d73ae745892c8685f49f4c244094a9aa3064f5d0101979e40e590bd4ff75d65313ba978b55e40941ad791f200d4265670c5f53e0cb7abb94d2250803e37e7a4144a056dc4a9ef5cfd469c849d044d3d4907e15ce13226843c1b01967cfcdbb1ae386be52d5570211e08ecf2cb23f06b7b7ea0732df6b47e61ab59351a32da361ebfd03fd333aacd323cc6afd2b6700fe306a1ba95f3552cbec114875f089ab9abbcd945c2f5618246c139a24e1ce86043f2d94bae3501b35aed286830101c30c5b55ba455035df4b3a713cbc5d3c27aa17df133e531b79ee79bb2394cbbe52e1a5069e9a963bb52276c089226821abce04dcd326dd6d3aed91d2cb4c4843c42e68afabb67dbafc1f9f14bd0a7ee37491a063cc895262115c35edd11ac7beb96ddf5e61e2e5c7b538c0ff6a3c6af3cdae4952adcf7fb54bac7966ee5a893215d4dc0f9b135219fb1d489c67bdae8bcd646e3e4b22ffc1b6ab6456797fff7cc52debe025c3aa9291cd1983e154a63ed86cdc72ffc2acd027daecf9f3ba24159a745c8db003f7aa52e15a6135dc14df97d2486b38f05525365013a7c53ff97b0e3a0afbf757fd067c44f15028e35627f8590947f159891e93e38c6f96bbc4a3cb3b444b344d754fc713915090f3c3cbf4f0e896bc9120ac1b8afde89869e3a5f9b38cc5337cd5f23785edcf57f5eceb7c952c2e4870d7b33c71fad1fa24fd128a084e1ca7ea63dea9481bfcdee38e6f3c7261a890010513801c7f86bf8b76ab704373e33d374b0ef3121d71fbe120cc29e4b0acaf91db1f1ad16291ae6466809601a31035adc8d7ee8a0abf17dcb0b5a844968cbbd5e3a86d67ed41c443b50f97e0305b3b46f22fde662300be709f45c98d0d55e2e8ad3d99ed6d981bebfa0d2b99168304a892625799fbd14cc2bdee7b2d3344fadc409ecaa75c1fd227b2122b0421832b57968f845f03b42cc427e7601585c2a90e511cd577cf1f356e7e978a7184fa1c52db61e6aa24eefc07675c7ff6daecfcce203cb1dce126ad1f74232c86a93ccf5bcbcf57afe8b593933bbf0b367d56f3a6cbfbaa8ec88be69847ca293b16a08d521fa1344bc3dc7b1073377c4065617b9913ff2e8dcc00714bc3e259b7e6eaa0be66b25e8608bb4e64e70909315b3dd8ef9962d6442dc3c4d5853b529e3001ef600a2e3cfe41949aa8403a1c531b4f6453a2ee777d067369e63f9d77a4c3b5dade8f03a9ea53a20afa06bb6da3fb40f453eb58511b26b111bc33d088cc96f18029aa62d5000e6cd94d617b1c7857ecf58272ff2a2ca5c533cd02ac169014dec8e22f8f9f61d04e461d200226c57e9f7c17fc9b64e24d92a0f088bcc87c9875c7922ca942da245ade3b6e03508b8b00ea035a646e6bba18e34a75a0934896027c8606cffe0eb2dc7b085fad121edac7410c3838de9d80abcd65f3321fec4ce1cae57ce17557f216476faca02c0c6f0cfa56c6d781af6989df06e655c1541c4e48a01aece2f6607da9613e6238bb10b5e3023a14d062e949eca6895bbccb6212a6d55cd1273d82e3d64bd258d9cdb032172e5e56e6cf64124f251383f3f5df4ed5a8924ece0aa7ed3a6f897b582249eaad658590705898a926cab9d43ab5d985de2d972d0c0ff001820c3173df682273bb996a6519ece61a63e7b4602e75870687998eed0750424bb65665f257309b321696763b836911f15dd352f9b5d3d91e6fc2494653d8acfb62a3793ee64ee435f36e749fb866342b2dce329571ba17ebacc6735fffe61b2ce335b9894f5604540ac35c0f4dbdb28ec410be6080846c3eab02f4fce7176e15ae71ab5322f4c0d1ca314de2345a44eaf8101258bdd91f9e2c7f1440e73cbc141b6663d448cae91b1fff7b893e64151cb32aeeddea89424ec82f3e4c5e740271092c7a30730fadd9405cd7f2ac156890542ca2d50904ab08e70c8d7715944e2a523f6dde19444408f527b4604ba5d90854df84d4c6512599d121e2544d002537f9dad604b914b52e74e72095d90e126b89ead9b83f5b9844763f9544163ffb14f6fdfd2869d4dced41c68778a2b7346a8fc4fd48244f2be4a26eec2f31d856bdcb544a86c487c6d38faa80ecbfa5a3c2ec9f724c26faa06075f9cf66eaa03cf458c38f0bbd72679370df655fc1dd9fbef993cf9aa911fe075295b90b2c2b38925fc6b46e5894b9d79369d92bbe62c1c9cde5739d2c452a29a2bf2b5f4df468003cb0b98601a12e683d7af557e5d86206a9debe1335c29d9f5798cab9121c2146f5db268490a88f80d80460b26f57bb531db866cd64cef0eb7996c354b67ec41be3496602507cbcac7a8da5e70c9353f1dbd7e237aba0d1cc9571330b1cd75c05b0f280109da1f4d129792879cef290391d8879b625ffeca78bb02f39de3d6de4aaf1fd3e48c4778aa5338c414a6bd894522641263b765b262ee50f1f7268038767b817797923945f7f081daac29ff8dffd2d81f4693e8f4bc154264f73e984277c4516f71d33ffaae715e1795a2869c6ad9a79bc9ca4766f6864dd54be9de03a79d37fb4426138831e86471382ab702107be3a30d6f1c05840a4c870394d5ee7458c6021c7113bfbb10b2e73e49c53e728e87dcc5f7d87959f1673697401d8d7e77fec9bc14278ad5e8389a6d805866e4b26e49ca058a244535521f3bbc8a73e226965e33e91af4c641bae175ffa54025e9d0ecace279b12f03ae465d0a2eb888fffc7bb566f175a497d1e650952bd84f05ffd8cc08bec7e4ff9a976791faeed2a8c7d6fe81cdfcd7cc69e7f900e33cb7fd7ce8b56477e48f99faae29c57504f7ee98b996c3743fc625a6e13d683cb997b760f1e8c2e010b9fbf17104a87b755a11d0dc988c39a0b43d57cd1a816f2fab1336753aa837c4cd51044a532e56043db7b0407d72a94c212951cdfcb23d51e6251fce0ea6a964986e7cb5d74b3fdc01cf94b0e3c67a4b03e00c91f19ddbf0a10057b5e49a82258d3ff3fed115653f2ae277d07c5330c4a3f66940760ebc753272dd4d4e42259126513a5c539ed774cffda3fe5ba7560d1eead89bdd6ea149068ab4c4e3a47afaa1f20c1aaf17766f88ce4edf6f80f7f5395dc80803c77e3891078bcf94f9454710077ad60ccb6096cf0c3b90838ab99e9c2ce44320efd94488dadda4deb5df5893a02b5328949198752109ac0d507fc44a9a4c78ac82ada5bc5e451c95008b5b9af0145f38ff8ec64d6e5105ad4dfeab1a7f4e52f685a4b9a16034dddea9f63f1c975cd41b0eb8c8dce290c2dc1517c6b9ec801e9be7c34c23984272ae0042a2f68e5f3a2128b20008c0f083bb5a49ff74aed2af05d4defbd1c5f95c0b4466082be316fb14139cac7913d05f703eba2a52f3a159f9bcb18e462f7c16a6cb32f290b7a22712e9c10714c5ab336b07e9cad203fa396810a89ac2f2a561b2ebee9a4a585aad74efaf7f1fefc50054a16a28a546b76d362c2189a0be6d43e5dc29fc648939cdc984c1fb8f88ade7e3de6735c8ad56f4fc85284750316750fd77900f003042e928afc1fb742caea8cf6de8a44223d31bc852fedd82ba9f3d71eea531d042bc344245e3b2e67fd6d76692e13134a8e5ff937997e914aa56cd548f0956db3bc4cfd49121f1344e7e54a3985b0f59dd594aa9b80d5339d9cfcd4807f14d89e5450dd0638896de837e3f124c1072b125add331ff947a6e8a05095486e30656291126b437f33b3217f2d9630ca97fea2d4b78f80928175914c2a2adade9237025425500b3e6d9f64faaaa7d45003bb445456dfe6479c41756a427df1dfb8a4bdd5206ea90955044cf4359f928d5405b4258df2204fb8b9c13a4e072d4f6313031f06e1deb81eff8ce7b7751d9d0e801eea3ba7b77300dc26e98c50ba7d9a6ebc2066ecfd4d70e995e467522a3a7a095afa95d91cc53df4e2feaf60d7d7fac2c10992e495755326cdb479faac572146609149e703be7dc0c080bc570f09c0d16c568000dfb0d58d30d36c98d041117e330dbe51c27d60c89aae180c31d0a9868fcce5a557a64ce7726ce2746945a2ff5ef3313eadf3c87c5e6e12b1da13df075de8aa5f1896a5bfff98078eea7bc2e6e47d5345fe0a363a688a985e4f66c134d4fdb690bb45e5bbd5e878b3b050905ef5ece42191e758d3c829d2671dc9477ae90482faccf9ccddf44f26f5d9d16d534b3deaebcd1666c90ab7e82d89e91956c9c3f591b0427c2a2a222026aadddd71cfbfcae0da90fd588c8554a961b551160033ccaa71f407e503e99a511789372f808ba2d369f5196039345860223f1364ff1debec6d0298e00910ff2198a4f1626f175decc9a4c4b2152a9f2812e2a6897fccbc3aa5fd6be1f20aa53558581db913be063c2119172f53935ff79fcafc59d92472928ca98afd66be83147b46383445aa688706a939e5621ee28ede7bc585e88c7bada15e343fd8dbd7d286bfd968bf807f852c79f33da0e9a1cbdc636846d0f1dfde589489a22c315484977b21c325e427160ffcff2e4e4770ff5071a5c9c3b77ff9ebdc54f708631e9a96efeddc8f1efe10c57c39a0eb3113c89c6c34af1e3f8572caf89211a0a5dbebd0cfbc48ca6603c1a2a25db407e3c98c8537cfc31b50e0a31fd8a5810cc3f2dacfdb2d64a9a02021f2ae4bf8afe34335c161276872a06a766b57440473a3c0083ea96b2863165eb044a1f89d61f342f35f8337adb204e666a0f4ad4adf3e1d5de0cc03ed4adf0569072570d6cf731aaf8cd253b84d8e9500ef8434f5bafbbf4081611b26ba04a3d6e0ac104eb275013b8113f6353c40da566bd30aa2b871774daa01186ba17380ffda78b191e7ecb8080ef1d5ebf88569310230790653bd7c77657fc372ce155ccdb53a984aecc15f8556dfc2779fa066f9c9801fd4ff6bb0d24c35dc36a391628939f56d78ce2d17f29b0e407bad465a2d82c9c3d62ef91719e105dab6e50d547a62cb755fceaba05c77eea64cee04f2c8de0170f8beacb7ee21816c2e269b576ca097d1d5ffae93510de39cede1f539797b2ec0ae95add9e891ce8885e9ee470dffc1cfb806a271f94a399966d5ee078c5c842733d04635a38f82f5bfdb184f06025cb7e21ee37f321558853829b4b51e9e26039a2da22afaa9fc81674e9d3fe00e1959f3870960ed4047b2d132e2e0b3633a3c533784924eb8731a4274c24b932061bdc2a8a77f354e2558254909eb27c04bc17cf407abd7d17bd057957a8f39276ee89256f9fd090478e1beb9eb483e154900f6c51752005dd5a5e22f5f5a87ec2fbb288f3e2195cb59126a2028a8fb930aedd767d5c5c0aa486b01b2c295d51854393ae1f5958c0d4e86fbd2963a787f4642d3214d1381bd820c2559be5b2b9c31c14082aaae55773db04c12a26633600b215f77081a3049d4db34fb3fb2a160c894386a7cec22d9e4b2b496e554e1c88b42d85565f639308d1f4752b06cecf52cd5a7b70f68b3d8fdaf9392cb1a45a4278bd7177299873a2256d87b81375b710a0b28d571736b768d56b32cca8787ddd7c2bc8c5ceea99e77066f252dbe6a5b812a19354566042d9c2390678e53b74f17eb96f514870f2939e0d7214611e5ab652be649a8e3b389857d29ed3268009c25b1c0a1c25865ea473bf4fc85240620979cabbc0869bb99b9b7b4e96352cd1250de65b8d28d80dcfc0784cf7209c10b95a80c94d8ba950510ea4204dadec831b4a788a2b2256986714c2d4f1148f975cf07674324dabe0a645725ca3b5ce13babc96ac6c639580e78dfd11874ba408f35f1c045fb16fc39aabf388bae9d3da0b01291cf1988d757cbdab48d3f4f5cbd4da3474eac6e27d473f2018713802361ead9220b2cff37589c49e5886017e6acb2fac684b5c60468add922a9d94b64584ed08f757379743cac819c4dd31962841c9ff32182e67e62f7b4f3b9f85da97c65a9a7a5a7d3470449654aabfce8d94c10701804accb8fa32f04585946fcc4f79736c74be67107191929b2309c730308ce8398404e603456136914f494860b5967c07c5fa2f1b4785d1e08d5963ac631e704e2786a1e74f435a68d8fadda0be2850fda9d9c7218d82cfbd4ba275a126cd8d8ffef098b2b2cac6072a3fba4d3bae340b72b084d9ef6826b6266d74158d92f1dd0d0de01b72ff5a165aca1f8032ffc4c2a37c517e2b0397d09409d803a27fd0d240b75908a97b7841bc4f50752849e07eb4d58c327139035c381a140f8ae26b91d864ef602f5a8407e98faacd98bd4847fbdd4e5e7dbeb56574142ecf2735379bc5dd2581a753e328891a43ea4f869c6b2e5292269d718d9be9837a63ecd4a1c2532aa6bad9688508757c08506c45e60728b257b4b622ced81315ec8e12ed66a8bb2511eb03e6738779dbbf2d02ec2c40d35cf9d7cd2c9d379c868657e182d0942b9c05bd2617c5ddfcc1b8ba1f3224fd99500cb09ff458c1e91c7372f28d906b4cc25ecb3dcc864b38ee5c7779856e73039fa3674574f25dabfd1b388443c3392dbe01816b309efa01310a309753668e25295a5e938f4fef7b1a2b03a9da9f6751c9b217b0cda29422f868a884a2445ff5f8d0cd0b07a4988dce223379a251a236ac1d2538d9dd3ddff6da3ffdaecda13b730d8d0fc857042524fdd7e8efa7c75516f428240f0115e99b7c9e34b6567d59c4b002c45029856efc800825a4ba49cac2e543bb9c58c6490098123c87e0a6f03ddf569b2344b18b9f562f311fb99684692d77f4ec3aeaf72a0868fb4ccf9939b59248df0e78856168221f752be0ff4417865adefd2b2871cff967856d510116a0ab7b5ac00b038c02eec0f226379e43e75651d57677961b6ad9919869ffd43bda96607e8100ccb0e207519b47193114728d85626b55322c9b275129724f921ea9d530aaa29b484e7b0673e19e495d48ce3c7d70fcdfec73419c19ef7b8be94621a541b3d1fa0a541bea540993f9cd41ee22c0a2e7da2a8d65e7c8f8f3125359c8b19426f8df39799858c226d5a5a2bdeacee239fa0ff2c9d44f3b448b4789f4a3db207d44f7d8fe0c0450f0744b75a991cf91dd101997b1dc9bdd7b8903645e324076590d0a37bddd4b2ba94e9056b69a7f56aeac9f013fa927cb4dabdc83bc0879adcdc888f07ad1c923f137b6f63a587696ec2a4fdbef9cbafed4ce598292e8357b498dd49cb58c43748fc2d3b17e1db58f8c5442d72983b9248110d2fe77d947993fee6ad1a42c4857c4ba124a6571e75a0da3b385a9fa50df6348b16cd4aa546430cd538eeee4a4a369db67444c36ce7fef0af1ed0067c0353e1eb86d444265b0675f1280b3a626ad430ec91a9dc5000000\";\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(\"Mantikoo\", 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 [\"Baby manticore\", \"Baby manticore\", \"Baby manticore\", \"Baby manticore\"];\n    }\n    function _T2() internal pure returns (string[4] memory) {\n        return [\"Bronze ruby collar\", \"Bronze ruby collar\", \"Bronze ruby collar\", \"Bronze ruby collar\"];\n    }\n    function _T3() internal pure returns (string[4] memory) {\n        return [\"Sunset rim light\", \"Sunset rim light\", \"Sunset rim light\", \"Sunset rim light\"];\n    }\n    function _T4() internal pure returns (string[4] memory) {\n        return [\"Desert ruins\", \"Desert ruins\", \"Desert ruins\", \"Desert ruins\"];\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\":\"Mantikoo #', id.toString(),\n            '\",\"description\":\"Mantikoo is 949 Baby manticore cub with an amber mane red bat wings and a scorpion tail in golden desert ruins. 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\":\"Mantikoo\",\"description\":\"Mantikoo is 949 Baby manticore cub with an amber mane red bat wings and a scorpion tail in golden desert ruins. 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":"58027559","creationMatch":"exact_match","runtimeMatch":"exact_match","verifiedAt":"2026-11-02T01:54:31Z","match":"exact_match","chainId":"56","address":"0x0B9FF9e1A7C2b73a86344d314A38c9fc5B102833"}