{"sources":{"Chipdroidling.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: Chipdroidling.sol\ninterface IAgentIdRegistry {\n    function handleOf(address wallet) external view returns (string memory);\n}\n\n/// @title Chipdroidling - 700 Friendly chrome robot droid with glowing cyan circuit forehead and twin antennae on a blue-teal gradient for .ai Agent ID holders on BNB Chain\n/// @notice Each wallet gets its first mint free while the 700 free pool lasts (gas only).\n/// Every other mint costs 0.00007 BNB. Max 50 per wallet, 700 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 Chipdroidling is ERC721, ERC2981, Ownable {\n    using Strings for uint256;\n\n    IAgentIdRegistry public constant AGENT_ID = IAgentIdRegistry(0x60B9262456dE011F7d15a54CdD8c48bAaa8B022F);\n    uint256 public constant MAX_SUPPLY = 700;\n    uint256 public constant FREE_SUPPLY = 700;\n    uint256 public constant FREE_PER_WALLET = 2;\n    uint256 public constant MAX_PER_WALLET = 50;\n    uint256 public constant PRICE = 0.00007 ether;\n\n    uint256 public totalSupply;\n    uint256 public freeClaimed;\n    bool public mintOpen = true;\n    mapping(address => uint256) public mintedBy;\n    mapping(address => uint256) public freeUsed;\n\n    error NoAgentId();\n    error OnlyWallets();\n    error MintClosed();\n    error BadQuantity();\n    error SoldOut();\n    error WalletLimit();\n    error WrongPayment();\n    error WithdrawFailed();\n\n    event Launched(address indexed to, uint256 indexed tokenId, string agent);\n\n    /// @notice Contract whose runtime code holds the artwork bytes (WebP), after a leading 0x00 STOP byte.\n    address public immutable IMAGE;\n\n    /// @dev The WebP artwork is embedded in this source and written, in this same deploy transaction,\n    /// into a small storage contract (runtime = 0x00 STOP byte + image bytes) owned by nobody.\n    constructor(address initialOwner) ERC721(\"Chipdroidling\", \"CHIPDROIDLING\") Ownable(initialOwner) {\n        bytes memory image_ = hex\"52494646e02c00005745425056503820d42c000010e4009d012a900190013ec15aa74e27a523ac27d44a91801809636ee108172fb9352cf907ebb7d1f3be33b94c7f9bf67a7cfecbd397d4ff99ff373f517fdc77e9ffb1f4d17ada7f85b5f36c7ff3de6ae89fae788d3ebed29b5b3595f9dbf6fd35f87bfe2fd453c9ffebc7d5f3908076e34414681d9656c0340e8e808e20137d16df4477dbc9806165c42e7cc66c0157f291b6eaabe612d75d5a1d5f5a8eff515fd26ed217902e9c6f4a4f6ba0faf1e08c0c6d29d3dfbf02b72fde7fee41bd582ecd6bf4d9fc268022f421f11acd329ddebd9939441a8ac806b267ccb832e88881d0f45285b54ad341faab13234b55ff65bd3fe8a7ad97baf3ea3901150bc320ab4eda54675bc52e87f6c3188db099abe3ae09dc584ac3e774750dc93472ba1336f2a8bf21fe5703f15e91bc7b867f5f5ae777f328a116900fe2bea6351b43cb469192422654f6e7a0e036a6d017016f965f33abd40a81df9464fe6c14b1d5591dcf60ba520f282d853eeba978ec2eb09e3659a601ceff739b397e5e43eb418e4e124c7ccab9392b680d3b11cbcbd0fd6df444cb8892be1075cf3ba413887d8578f99520cb0376ed9b7a929500e210e09d80df0a32db7368d4fb2467a53ef85c31454d2568ccdc7aa61f96769b86172a7f7d8c9e64435e3419cb5e4ede33b17f46113f96c7d0e51b5791e2bebb3dda19cfdf590d8095bcf9ae6436b389a79ee6988f958a473841be5240f529813db249a5366de4ed1ae046480ce82c9fc958e68123ce45d425de5f06a34db10cd2fc10c3db82ad27f67d6bba4503325609dc1f897b99dcbbfaf904e2b3a4ab81e364242bddfd5c23092e9ab8c5342c058110b82d965fb6d2f1e684be45c36f464cc03a59656dc8ae31e5f545d542562611900fd326d0da176aac482ee10bbe938bfffde4eebe551d1949e1746df4f628e41c7806898f5ba567af56c47adfaaa22832bddf800ccf0558ef85f2b20b16585b1343f2a7510e5caf326578a4ef484019eda16fceb615f70b5654c10f048f084eca9073eb04e039187806a0d3a66864d025e31f9be712d408c7d4aa6fe466ab409592f2f9f0a616c626318d078788e593da5f5f70307d6ad9a23fcb5cb4a46851e75ba874c7f51435b6de10eb40f2dec0293cc3408c31e299f707fb1060e4cbae7ec96323171c90ae761e7f87b0f5a15fdbdf7bc1b83691db13839116d4ce0e69bdec252c31e4a7d491fdeab8b14c220ba9e135c5bde5c4098a7e6f82d7fdb31bbfb865591e0dc88e77f988cc7f7372be7942edca4b869ccab229e8f38b9a948338ee4fd46ff2d1d0c1ed56aeaf6f463e5ced14cab7270fc6bd325db7f63753c3b5eb4550755e632c019f7ff0b5ed1a1f939db4e447899e1afb3f200cfdad5963464a058bd46e59cfa6df3dccc2d09c946a10c0655e08fb47dbd5b69530d87771221252328593c0f4c802feed2ec70092cc031d91d827fc268e5fef9666b68e0a05b57524834c2164d6c79651757b5015ab70a2a2777fec1997f5c00d989c10f5e18e01ff67686f4c27fd7568677320e35521fd3a2f800575420b2e156651d3a2c095f8a79d6db9d8f86a94d722118975d29131d5d88e6bc689bc23ebaa4b96f9ca9a06f3a261090897aae32fa0ef59ded6ee24a64705b080115feee113030043e8029e1ac8d43b7077365d6a5a1aa5cdf3464ad18f6ec81429fc5d0bfab019b2af0ef2c0aa45c087310ed0ef3e0ad64d0c4fdb8628ea4e9fb3e8db1ec6ea00bd5955129b64070a4be52ebe99f5151a432e1e5aee7806dddff76cabf392a234042a7e87f8346e26b32476e156709f2545252189348d51f63d28859bfb691c51672084f151ebcbff4f9af5a2665dba7cce17f1e4ba549b5fa5b38e2cab7f673a0db91c04056dbdbac578c501feb4fe924a9affff8896ba42d568700f5098b6b7d3cfd9a4777faca7cdb4c6aec9eb6d99f1fb3b5e0e020a78af75b64f7094ecbaa3f29b1191720f480b95f5dc7d1011c5c78506d915720c3ad6ed1cef3f4e9a0b31b5fa5bd6aed3ee4dbc9734433234e938f8f6934b802e285a89a7f642271343248b2c6e020d8ae25da280c60b8e4f09bc8bec9f7516fed794f263137d4686214ce25777a9d4c3bd6b5dc4ab8990f89bcba68762ccfa32ac51a0c123f847fa488442d2b7596089ed36cde4ca190100d75aa8e14ef3b0289910ed494aa63a86358f5e0f603991bca93bb1d9393adc38f4fda169126abb4612a7b7c159d37ffd2cd63c3e6174d9b6c08e9341b3f6b15abeb1d62fef5ea7e21c38afb6bc6c60e8abef0aa61940818fda70f3ac8f64184cb4feaa597245911a0b625adde25f791f7052b82ba8d0578c405bba3523995b7f6d387ab6bfc859905e78722dc58a1de582b2d649854199a7b3fc33a8c7453283f5650174b162d057cafd4821cfdafca5d3788201103adbdda5417d3d5138c019566b9bea7b8a3db2bc093dafe521791e4dcd5cefd8ad181b6a1d515527a4a886a55751e80b96c77e50583edf819802a3b30d5527edc74af8fb483ce191a60a346c84c8999739bc44d61660b94ab66bfb2f33f4f38c1bfc7bd20de9d4c000fed136ffe0fe14e13c1fd10ddccd73add3b3ad2d715fd9ec0e39a72c4a90ff4c03b831f5bd87c71e6b7712ab5c7325cab5a80445f77db0e44b8ea42d044aa1ac5885c321d8007440321aa55d157059e3635ab8a4288ab85ed3f502eef7b8f84c7fb8096bc608821ecb5ef41a859aece186310ff87b376ce6df4d9bcba9b86c6a9cbcf2a82fee7d577e18135c82d3c71d6ab611525c3bab6dae4e2f31ae8a4f4ba138d4f8041c027b8483a85e3000000d85240f69128bbdb1dddaa8793b5bc8c6b63313f903742cc787f82e83079f4820216857463383be704a6b98907a95c46b37f47628ec69795fa4e9f35fe8e353d82747aceae07097ba12d896ec79fbb8153f81c1eba5970c1aadbd46b62ee24fcb16567993d2a66b8223391afd4ec7727bced10bcc6a908eac7c0b06f2d417581619af25156ec87ffc56e3ec760c17d37b29a1f5af36dde030c05dc516fed7c7d2847c5fd380edf818700563666a2a2fd4b410524dff7def16c4430c7c05fcf63249496897011c34ef3b785286da221972db4b450c8b0373a05dbc4dc283b6cbbbe5db2c85eaa828a312b87126fb0d28be40e5b15782db98516227d07e35b9fd8ea3bc554be37c69c099b8fa00fea67e2961a8dae4ac691ad44f1de32221274ad9ad5edccc435a5fb8af7d6c5c6785958a5304474fc34c1c16318ce79b05dbec18bd63038eeb4bff36fb252133c1d995622e4186e749a2b50f0cea24099581f9b720e89404f719d96e62a7dfc2b57606c52c75c3094da271c7ddf2a94736e6191101d7c403d4f8fcfa3dd334b35cabc02fc8cc6cb00034093cc7bbd569d230754728e5a4a92bfc4b2d8797937a60f759146209916527fd4d8b02b53da14eff348e8ba2f4d94c43a6aae637477c1ecb0a97169f43afb0472cacb2702ca33744a5785324aa15f8e42c6b9a8299b4ce9382459701a16324c2628dc947244213ad886fdf6b29dadce7cc61701af21a83e8fa11c2b73f74fcd9601573940756d0b1e0763b789fa310959cc369bee56cc1de80e9fba00060453282b1a4cc6ea0d60c9d6b269d08163495e93cb789d4721e768af021f09e08f2b24c2c95698c056153fd7ad52c058331a87028ffe1391f84a0b3f86a4ce45435ae712b7c6f2c32900b93675f5026059a0b182a2d39d48223ac7155bec630ea02b118a457bbdefba6bee16c4d44a7a78605ab0d7b6d3d70a347ad3d6ec98f867e579ff76b68cf1063323b7e5bb8b9527f13f1e4b22084f6af0d046c84f97e7ec4adbd6415cee2a448e46bc2216f3272f5138f3212aa1294bea1a3af801aeef1406f7bbae9850546d8b132bbee72ee289579d74cc5dbf09be7ecba809af6f305393883bf14308517d5b65d6d86eb98c9ea9b26724811442eded10117aefb062d5e68b0f47965e9d12eb71cb27457c2e9d6428a85347e13c3f2165ac0f73a3f42f56a1b578c0e8955ce113dd24b69baa50ff93389e3f03d1796d52ddb32a788806ffcd08949e9786dd225db3a6af37f307f4d61c3f00a6421aa9d38f084a12a584e288d4334eeaec5c6e44fdba3ea34f358ae9ad95ca3e2614cd363f26465bbe2d93d58e3374b3f00b2dd1cc037236b01edc00bce0e1dab517f00fe50ca05f3a800eb65e478a6f19475025d39a4c0da3e1b80f8b740686adb0bb13459b12ab6b14093363c568e0ff724b620a440712455ba2f8d473ebbdf838c717fcc275b2f6b4271612c4db8475b8b905b4f0a628a87e5a74cff70c97927e1d0715b6915a58b878e96951c06bab65772f2aa59ac7e12bcf3e0439d8278472e29121e270a24df91ef3426b43851909457dd6374e7cd8de07191118c5dcd96dec2cf01ea4a50c9f4d1835d8d15378d6953203184522fbb2d54768ba72fcf0f7a1d37c7bc604f34b9cd6626be51d8722a7042fd4ad3d826063f98a87149d04d00c47fe36798826136e727cc816bb6d4e192fdfd5ab75514ff192f3db5d7024d566469e1e7b4157489391164bbc921b3d43d189506fdd2283d51de1e185c09e61a4ee23abd2a33e2465c41fe9edcd7c22a60a7291a5606f7ec5b2167179b912f7e0b2bc224ecdddfc2ad029ab6915e907ddee691929ccac5873fabb0416b9a5724fc024c551ec6c138c05508a0e1df72250c6653edaa786d7817af03ea8d74127535f7d26e04544a4646e19fed49db9f1ed0adcf079da502a7c245c8d273c4006ec1d744ba1a183f368fe8869092c16b305e313f2ce748ab9228e131af1eec32e940763c1fb51749f45d2fe8f44f1b6c0e96f9f18b25ed7303501708cceae22932368c1c5028b8196f9f03b16faa68e346ac0c933c1239269254e5f01fc8ba537f4d903f8800c79196a5f0148cb4d3c28011ac607c12914be5cf4629cf37491adf652e09dea2de24fccb3f3afa8ec4e688f62c3d7d5543403aa5a8e09beb0d26d0bcf93b08c83557f64773e8e41de1e52cc3b70ce2256b75662141df6211f268e368900d288ade88a30e5f38c308e9818b6f84434a9b67354c2010e05b2539b5a9e9dd000002d7b324eb5f4d55b98efb1d0eff10893cbd7711f218ee115bc913176d9b89982f6d67402a5cd6a71f98e6b07026debd0948554b2aa629fc9096967a36218d3c268a63bc130ede85364aa0406fcff987e2a8d9594db82a510e4f8c4f7533dd53f8b8603ba2a12072020aa09764e6ccee6cd8c0da27010d4e2ffbd35b23e207ddcff54b9ed6fb2bafa6cecedd6505e7846421481eed4157d7fa3878e19addbd6a5f73916040a4a96fbb30fd8d9ba8426da373fe521acd5e28dacad135ef1c99c6ac8452155164da426960e0d29bab653cfd8fd06ab57a68b7a3969302e06ab6cbae63470691671e8a2e3acc95d0e3626b88f8e774b71c1082b99e85d4523c3a247fc9855159aba5784ea6481b9a2a4ac486dcc703ef0ed88fc8575a2b690fa73190b3d2c4028499570cff6167ccb0dde692f6dce8acaed6d5d76b59250ab880f5478879a55e130e0bd54b8132db9393ffad5f186cdd9323cc21ef128ab0a54f300f17d3f020e67a5427575ad27a9107ec12d4e20dc1f75b4cf72755cd2a73ea25edd7a9f1e4c550372a3f3bed194313ae071c2ab150301eaadfc1ba099be69a0b575f41ced415711bd9a50fcf3fc0cc3ae67714e1c5541eed43fd3bb7ec5986177bd13d4573977d65018abf73ad4cf69237e954601339e530cd2fcccbd56169672cd974ee30f0c3efad0322421057cbdeea1df3deaab935b41d09676a65cc58be63b5c439a9e3bd4fe189a460730c95ba77567f59facf0c357c770b4efbd145619418d52298a567e125cb9b7f46b49366a36a9b7596f183378c1b14de6a6d261cfe3920d37ffca19c999f8665ae51b9519f7442ca6079e3bb320d6a73b0262fa8f6303096a02a7267358cbd2a8fb0049909e54ba39be745f3791b85c51c6648096cc70388303e3659b2f1df2a45e84bd94c28148fa4a74e6eb5360a165300c5846419ba449bd82796c4cc6208a6da10aa3066f460699e6ea40016ef0357188ce40a7fc33853232a4920906c5df342f35f79537049250801197557dfececa314970b91525ef80ad0886de4807b1cfed3ef4dd9827b4112b3c61f7d3393641014669e39fa868c417e0f5088f792920c1284b338fce688e50ee75487736aa1db7962e2ccd40d378535b50cd8a5d282bb416461a429752e9715774bfdc3448eb0451277d4a1b440369c4fce7c766988a5eb19f158173c160a03b33cdbc2e3294a7b9d6dcbe104b3c3fe3df8ea0498ebb4454047e9d7af85bb260caaf90a4cd0cc3dcc63016559adbcedac9c996013bf10ff91938c5da859992717fe5eda628f5da9f919c780d58ccd2e6d1626eaf7f2db2c0b7a6b275698a2aa38f340652c716decad2de0c22078e422e866654d046a6fe255899a34d4c9cfaf53c319eb4ff46e820532be4c64fc757ab2e7a24be301d13da02cf5b272f050ffac50b7c6fab6fb909892da0caf854e443ad081e0edd7180cf77d2acefea475728d9d3931e9a336df4c172c4dbcb5d1c4c2435b030452a1afbd114bec6686291bacd6509f396f4ae13331c4834dfdbc6c0ce48424fa98b53e0e6cf2ebe3b2e08c69402b16ef4845bea140813c0d220e165b19f8e35a3d6ea6f77ee40ea2af7791829eb849be33cbec64a0de24f93cea682f18b50c4969b27b84624b5c0ed610579e5347716ae73be186aaeaf0e43aea2d6c040d2c41c2482d526ab40b2de8d6dac667a843170021b23a8fb9bbcbb97de5e2013c346c07e6c03b106eba84bea1bd8b9cd73e86eab7d190d140e8706813c031d4cecc9458128965a96a529ba105e2da29660bdb3ba9a75cce29344f5a7e1e957e3702250ee538fbeedac99444993a65a2cfbf39143ae3633bad38233ce0fbb9f3fd7ee0594df2da013c468b67705db61a7708d4b1cde9668a9130a1501c5e54ad2fb91222a2084ab65e073a7161a924ec36416064ff16cdf3b5140f5131ddc89f502bfc2e1f336607f0b518114d01f035d0356767ffe5550b33416b7999744909473396819c9ffceb74f7e9b9f384ff75d8b040c5a418fa53256463cfb1fa0f181b3bf54ce7797374b8522dd796175473a7a89c8b98f8dfd15feb3f6bbac9ba83445c9342716df77af386946cd1e8870bc68d69898b13151b3b644e263aab2de0d5579eea5b2fc9c96aeb8ffeb5ca074afc9841f743343cb12966e2baf592db9f22252ca65c0c1dbf08b124cfb23de1c62bbd8d2b357e8dccc0ee40c85874758dcf5c486057e061e695dc023327d2ad35bd729b3fb5689c7084be4ee8b10fe8e9defe801082c71124a52ecfd8d6f779e7045367372cd488a53a2bc765e9de5d09ff99ab6b49d13b2942f35febf81fe69ece9fa8a85b8cad07c1750ef95b5b7d9bc612110eef15a4597c96a4340af336c1e035a964458310dec6b6cdc574d67d7bdad007abb820e3b283fda4edd5cd2bbe3075a21f3068e0912161ed54a85bad5370dc984092b9babd838bcb5e86a03ca2b67f4a0d3cbadc2b17feb6ca5549649664d9a228e1078004eb8a91ca78fbde90f5fad4975560c00ded519c2da8f1e10e1635949f55ad236ad6598b2c40af5c3196de5831e78ab557a74e7f3dd866f781a258259865423eaae9b51205662a54d5733e94e65d5566eeb3e41f936f904de8b3f5fd90b91ffeb9248bfe87d645e4e16b642cee16c1cf338b6818ff81548be823f02f48a5233a60965e7154dcd86c88509902a3232771401e70a5d257bb3d63b3e97e7d0e91cf433152484b6c700c53515df1575ea9c72acf2aff1901706eccf02df90f6c3c5235c39046d591df5da8fc72930e5be196deb16f17fcd1d2c775f622b1bb649e4dc11ad7dffafa467ec7757a3eabfdf7b62aaf3fa6565867a6c2715616bcf5ed75d3574e4529a603bedd1f1ff57bc7280f63508359e6905faa2dad7cc768c8ca29f56b0e4643c2f96c357bf8e9c88ce3d7056db81686715a2bc75957ae3799f1c2db5e14d2b3b3c03f0ad136cbf1d8012b955380ac8863d5c819acc81064cb707c3eccc40c3305352cdce9ffc15545b009ac53b30526398c7935d4023e2c97360e6e389538f66c4fba427b80fe2fb939230393fea61d67c734300b4bf7f8538d861074193aab6ea4bbc51624338fe0f55bcd7e46e12e91f4a3cb118622f2e4e2fed3e8f2fc886cefe1c0a5ece139cb660502c052d5fbd5e2accea0a5adb3f37c4166cceea62d7d9842fdc38b762d6441f21eb6177f195677a7111f58ac2a551aeedb1eeee72ff98b9718ecaf2451866f6a6e387b36ab9ad351e24b9d933bddcdd3f3b0c7c0345af3e1e7b9689dd8bec4f41c1713cc0c6e509594030439c62cbe8eec3654e070b9ebb5c548cb7bfba81e26756a8f7a5b5591ddae2ecab3e3efc269d753ee40d2b9dc8d5364fff724fe4a002a9ba32f1d39addd139ffadcc5d0d865262204af7b8ec6e5875b1e6598fd5d252bac1039fc322f8346d13e5d135adca7216fdf61b3ee247860dbe4c488b305334461a11ccb255a6bf6a188978034bfb66c4954689abd7acf2e12670c13193f44534b2c0019458861f5fbde37b826107d91000534be7266ae5ff5b4d5cbb4e5fe1f669a35d0564f4a3bde00fac084a64baf40b1bc9a46997bbd594727bb7365ea237eb42a9b47388be1ceeadaf941c461123b4648dccaff53d8fbc3e59f83168f82bcf25dac50f0581e6b57cd111847c29c506f7f1c8f77a0b56b91eb5f659efd0da4e84fea7b5a7d8c70e3ef8bc107c8771ed6756f84c5d259eac038d64031b8e176784afc7f024672d1d8e531cf01cdd36bb9845fdee045ec2aef29ca0e57ded27ec81e66c32a07a4007b7b9c28cff1655ddf85520587f6d0f59550bf109bfebcdc8ce9d426bd242888e19fef9520a53f244dac0f76f92807df899c8ffc853f3625db5a089b7a48413a1e7d8aeaa7dd37ffa9e9f1f32a16ae96dac5563b7e63b74ad40e9be85da321c7acdb2f8dbdc8c2c89466111b9722f9b3077e29600616a66f9f306c82524b79d4d27fa106ed34945cb0cd8f073fa9b6c29eadd1f43fe2fa26a99fc9c58de8e86242b962eff4061a736536d3552035dc032aa62a0aa5a758ff810875b502fd17c677d24d98635668493a4ff35461ba8ce2a1f78240ee1abeaf01ebad84e20959686a7b9a6f89aba06719340d2d9522db27536aafefb7905cf35e9898189f5c63b8c01f86b0c649fb0177613aa4eab38bfc88b550143fb89fae77bdfc88945ce1f10d90f0bfce54385524685d20cd8bd6b9136c85e23a41a69271235cbbf1b52df13c7d81c9923b452331b92a9ebe3427fb13510e02d0109ab80da63774010080a503852f57451c7a68e29ceb2ea0906ad8b2dc7d0dde789058878bde5edda1e1299fd887e0e54e23c6b5a48e5153215736386d21277e92e85cc51f8c7074433207de7f3edb280581971ab6c043497b37ce288f6119224b726f588090d5689a9522b0c8eb52c3b9811c7b8798808173acc43a6479f8301d5db76bbebcc208e8893e1c57b37dba1802ac77ca75b9de3f1b01db615e553961aac9d4e25662c583163e19b023c5098d4097df1ea1b098c1e0e6ff21744f49eabb7ab96e359752ba87535baa1e953e8e68d3277ddee079f4da124d8d77f302a9bf70b2e3344ef9f3ad10b596ea80bcc5a07dc34591cd35b914738f2adec61269d78f9413dc99b9a72e083e2e968cf48a9a073e4e362a8e1cb282e23bb1fa3d052088d42cfe89ffb538db9be3c8353bef53f3980c96e1c7285e134d2695e19ce00fbb2802997130889a24590b3b8607ef7462ad275cc40075299765684f0b4a7c68eb687f6a665808f2012a9ccdf5d90fcca71d66e4387909df2811993646bc49bdbd9802833f933a5c6b105bb397ebbc5eb25553e965b49b7cbbc5001cbc0c308c1977592eb38aa1d2bafa2e8c87b91db5310d47c1102155bbefa939e0041eb01842ec37119b819d571f8d71ce5a94ffe086095db6c4788556179c206b3a7581cbd5541e743695951fd5dd177d9f423edcc9a3d471cc4ac7145f33aee726dcf16d5c8cb25b9295c319841c95890b69b0ea8b612496b35f3220f1a0d7822c7214036844868d4e86928e1c8910fed44685450f86eebee17a7340e1f84f5c82b1fd0302a4b08fae90f3c088d990f9111aa655c24db0026d3ecee83d68ebcabe14c1a5471d41ee58a064725fb08abb8d2d7f99db7259006bd337ac87b38c8e9662c97208b26cf8d448682fb5a4a9c82c92c9f70840d692c4fe09435106fec94f9e7c10002359a46361932e1ccc67dd89b73b715236a7e6a5c82507263b7d83abec9d868188991c339ccc7e63998096a9e3fe69e6448f8d1d6887eba0d528ad97085ac993befd9fcd7c7de3b02620f22ec04d82ea17b1c970725b824bea1048513d6124a4eb08ee865bc4695b51e4b908f3b89cfb921b8564137170da667921624c8bf7b97de07ca8f8c1b4f0226715ca646641feb6736f0a909999906a03175ac6cd8451af5acca435ca2ed22ee3583dab5424aef0efb9d5a4907d4d6ce3022927759464073a82c589701ac4b8674c8083abee4b7f306e46ea9395ba5ba5f0b71310fb6105c628f1780b3d37320cf2c6e841daac272baad11457114f1666d826bc3d635b46abac5a52a5ada91ffc08676d5b476e21dcc163554d631077142518434f2199c49d2d9eb2e46194474bce07998702df2664530c546cca1b25deb65922b84bfc5cc089ce8a3dc23cfad7390df4cfbfb660ee57f3058ddf6b425ec784d4ca9a3ada1af1f249954b39d4dd67c8920bfacf69f497b923808dfc5c92f34d948c1b14b967a233bcf3d378b9efffa29b5a4991327160899efccf9b788e61ed65507f365ad070e0597eba3c5406941ef18513bcdba767fef61d6c33b134c3317bd9ee0a182c723f32bf1da89a40700a90a7c841e4294b5b6b4717c92e71af68b85f143d7d4bc949f02c5c6538a558722d7277265519bc866bb0c62f8d3214fa64cb739d9d0c0b74320676a852ebd74275acf6ae5ed1b61fef50c4f9349f2f4815fdf8a21c30ca160cdc0c432af03f9f8e8e82133710b7c654cbfdf5e5a87c5b7290ab70b9b0f0bcf44b74ae871f3d5d08eb992271679ff380e62572985af8070ed49ffa2f54eaf26241f566c06475f9fa39709f45bb32379912eb8eeabb1fdc594483ae182b9ebc5415f7c98ecbac71ff99abd5bdb37016c56cc42df1186c9be189f843c3c272a4a533072f0218e2d810deb1c8fd333b47385ac768613fe1bd344d063c09f6dabd9809ba7ea4f1cee6fd906b78b2bf44f80049198c4035dd71695dce1617f5df9ad6785730d0d268b50665c4a87288aaf4c0812037b97d47c57d6631baf8f257c86cbebed15fff41c64cbf54a80fbb4022fa9a2220949a942404675e570f2e5c275875415f4e8969d2630a6a21b3a29ee1b5d9776934c5c13edb6707aceddfcd2e495411cb948f3817e5c183f85b282ca7a1e0998a24120035828bb85dd0ca22647340214bb433a970168bfa5a2d8189a358fd004acb4e2e91313eb82400424718e7f562d79d965ed60fd2a44b0f7dc442d8c34ebd6d972dc39b1d50d6f327cacd734bbc5bf2e4452cb56ac2d9a6a8724c689ca27a1401a86a8c800bfcd5ec45c881fa938dc5a7ac561a56084134b4034cd7325ddc7a1d17f38fc0ceb9f7f67a0885a7c0796769a1f0b1dbd43f86efe4548d411b8de4aacc74abc144e96a6c790e3427889c6d49fb36a1f300ac302effd8eb04ed47aee531d7c28270d6ac34fe6e0757dce77bd4216d2a8acaf8e55accdc8183317b15f3014795898a63bc4384aea2cb0bcd99f91f7361dfe2738f3f4c10da23d52f3902cd36fdf12e6853e43ae0170fb9230017834051fea279c6683ff0c23ed880a179df70c5647a4a90149ffbd0a7b7b05ff99da281557fa2117bf981bbdc329cc9ede7f091df007543cc04bf2098fab938d5ed4c50a5c0f7b9b010c377db819fc4b851ec7636dcbfa2bd0dca5b97264d46eed98404c4b7c9afc72e45e2424b10bc1144cc8d1f7aa2e18931fad676ab48c8c720f074e92475fee62e580d66ded6aa64f52593df2c79422a1505c86630bf4226fe3b066d243d5e30628c830b767a25ff309d1e9269d6b96571ee72b77520ed0af4973aeb7ba0de583ae2b2b4421fbfb6031522ec50fc73d71c0a1694dc9baaae0481636570e5f80ec0cb2ebaec7e07c3a1b5b54ffeccfe050585a554367bfc544ebcd965e14ccb17b7d6dc3debe19ecc16ecb2990d20365c81b5509fa683e4279b37e7447c21ca7c4ae2f3675fbc436c70896827db2ba6043cd7cc0c64853501dbdffa4710efe01324655633a89a4c354a49da754b2ef68d5059c92ac73967f1436953d243b9212bb845a01a17aa4c236ae858592cd48ac06dc604e4bbaed439a4d41e8440435d84202684676e09395385fbacdb7f25a2bc008b13c1a1059a827d15554e773f58f33ffe0a9b7c7603b6d4c6c0a38dcd05b7f072ca23141b13bf1783822f91c60edd9dc632f977402b53c32bc644c026f7c6129e014de9f16c1b3c62d701028d49c261d71a641e96271059259cff9f76cc14177e105e86eeedd21d9f83312cb8e925f385caae167b48fec25acb7f0037092537603e915e1afae66f6c2a875331fad178554896975c01216cbf0a6d02c80a8b30411bed5df067f4bcc4af1ebe6b62ea0f8e13e1d40b5a9d5d5deadcc0f472dc66f6f292c48b8e2f109b6fa37dd4ab4a12ecc3c65f09ea725b19b51ebb6a4605da3ffd9c9949a85b2b571449cf8d95dc18dcf22bcffde5d3483d8bb2199ec4d658f7688e92598f107d05f1742b736ea5830aab8dad32ed324369dd8fa4468ddd29843844f596c5e3f2bc1ddfe5d0a68b5bb1452d6c88842717b8542e237ded07ac06e402c07d29c5f874789c09a645f5dcba3be1f7a7855d6b824246f2c95124bdbc0bd8b62e23e486af99eeed73bc5f9c95d9473a26313d0b819648a5945cfa3c811a44b475883b5c1c7dc71fb8832622122b6ca612345bf896f8184e952468c7d6882d70154ae1584034b8bff72feeabe5e4d4af888cf024c4e3a3c5b87e265c0e4d780050cd9c58c6c922dc8a805198b94d7edf3ebc3aeac03ce4c06f4993606c6092716ab50b251be29ccccb750af21b1dee5feb66c0b3c1f77e995e0b0d16996a7d0211e82c5a37d7774d259c4fa9fbdcadd59ab7a41511fb0f80d1071c62b6708893aff30957f9f4bb7d15b9c370d46a6841d559dd9856ce552ded886299fb8a2d06aacbf07edddce25828a12a7ace9b588e730c44ce1f6f9bc18151ebbb703c4fa67b01e3a12ef730245840695d01abb65c558643ca2f65bea28ae9b8cf5297c87a67f220a49cf0ba04924b74e862061b2bb3cdedd0a655b99ed450192ac33717bd2cab7fa2f5ed94f743d076e0e91046c4d133c4a27fb4cad434e676f5ea9c1d88a0b207cfd2b9fa8cfd297b0f2ff1a7cb89ca7bd6093cd17c9812e619f1ecd554956fd18b023bf264c41a26366179040389eeae90c5389bf598027a44365eb580a48c742a9f19d446ef7a3e1daa2886978e1a68bc9abb86045a6551480e841a7d824a98f158c95dc3e39b799296d6f6edc9829f86ecbfe7625567c2ca30804dbf3b15f723cd380b029e5a80b6dc5584dbdb913b8fd7098711a33c026516cf3587b6a3cfd4a4680e962fd1677d6184e8d0db45a45dbae7ab2eeb2b5b004704c19d23a21b5637709673a1d1e32d74ffc81185f8ceb1dfba28a509e734866a02e1ed7a0240209efc5073bf520bbacf0eb3435a27efc26605725bf238b2430e06b03361d8c825b096314e5656487bf2c36f5a4c3604102ea58de55722d8cdf1e41c910ef9b97abcacce34e9ccba13539e94f8f3336516a045c9dfc9355013134bbdf02522acb2ef1f2a916965b9c676faa086a11f512a504af075e864462d303c54c0de51bf89bcb8179de43f9614265fa074cf368a30253d14af225904b2ac0fae6f459e8c75314385cf4c34b56bd356d627ec22ddbd6250fb7f25c4c87a25550b1e135a47f3ad02e30bec6a0b9c10be4a78a4219231d794aaf05239f3eb96bae7235dc203c53157c0748cf3921fc0509a040c362adaf8b8206b75a05e6eb9f19834283d79ec44ad2e5c1edc5710e52bfffa66b96a952ba14f337682edc2a9d05954c262b0a7923e0568f8d5a8e79442b0dc9a63076651288934739878058c48336ec7b03e2a355fd61be475146745bc3338eeed3bf8fa705dbcbffdad9c4f873b7d49146e50bb70085fac483dd077a87d5fab55e964332cab76c5271d661818fb70ebbb234ca1365de0f02936c1a75de58d316473c2ed43cbcab12ac591879d35c143cbd1a430ebac9863af04ab9e470daee858e8424ac9f21ae748cf9f45a762eb0bfd6ce1a1387e44df60ebcc6c6fe6e45976be48f491722fbc5a9272e1766e699c8a3f466bd6cb1346f7b424199f8aef877cd954419472ce4c81e5e18f5163bda07e635c659b8bcb0fbeeab7cf47168c8219647409e250fbe318c237e700d84d177fd856ced85e136a5a7fe2f3e7a80ea1e8e4f333edecace783b9977eeb956559450b2b7ae125284c1b0119c1f33c4a0ce42d364554f16510a037f74105a485d4bc7ebb4fe73bb1c2aa6e7bf8aae072bb94329e8761fa0013a54f640ac99301fb60b2ff276d3462cbce2e6efbc21d2e6a733b8ab6ae07f9c8c6c4956f546237ac2a1f2279c04d5652beec53ee88fb8e84095851308087550c5de9e5b03a8d5c4df6d1617180ab690067db98f37e337cd22bfdcda1978a9849027e86c2120e28ec15a2018367e507308e70837477af33909d5a848bb3abf8c04d82508cb916b5e6c2acf167779ddd8dcd7ae0c5679055cfd7a64751caf2a726ab3954cbab88a077069d5d30c879299ac19416384f88112157bdaddba4b56df7337176488031dc242d131fa314bcea2ac371308c76527d0a5f2e1a73f99e580d8a5d44e35b890761a8b5b7f02a76a9a88fffb6011960b8240897ef3d1988c4004774d6c96f20c221f69808fab172fa2a0fbfe43db61d09ad7c77a480348befdc12d67c3983c5d767a2e5fdeb2add2c7e2e162fb617846839d2a9386cdba67a9b9e15bf992c0d8244b9b570740ae0ce5e19afbc55c3ee049ccb573ce8be08f85f1600eef83e94a55888bde4782bddb25d5b69406a1ac2d58424aad83706c8358fb504920ea7957030f4e0d7562df4b199447bf4c171f004b97afcb0ffa6f1c865170ab128dcf1d46909e36cf8672ffbcf4cc16b065827e3b121fc9957f6f9f3770992158d4cb0335febccff0cdd0a66c84ae671952981faa3e5745ae5ac7f070498c8eeed4e6a1f871097be5b59c16c24795e2e2c23936bb6868168ef77a2e52e0cbdc0be348d19c377af3e523264c6805993219b5ec37d1f64c27f695324eb61221078d122916f01167449f0677f33e524876694bfdae828bad6aac570c6c6a8a45bbe7906f00a892113af010161b48ba70403c2c64fb530ddfe4b2de5cdabfabf8723fb109fb9dd8d3314bcac233b147f159a0942bcd4fb0c07477ea48a9f8a1f129a7a2caa10d222bb162f69d9f92a3b52a95a8969776f993760e69ac329a89f4b003b9934e3af6d75c6f84b22edec67a78e9c91cfcb11227d35c02547fd8eb849b2a25b7b98c118a6116af734f5ee2d51098991c28e1724ec0d5cefc82b334523f14227a0526a70f27b25651dd0fd8754387b434b72f8d15b682408e2d3a6ceb602c4f3b793e6cc7cd857322e6a157b7bd2b4d5fde1fb5e7e9fd49843f6ac9b4cffe733b718e47d3c16554f923801b1b62703122fcdcfcf67c4332d4587cea488f8e49f16a0763f3c30ec1c3a4c1f4dc177c489efb036e3695529fadfebc6d1affb9b9168d6fcddd6f30babe8b21b6b5bf0460ac7a2bc8924d4ba4d97bbe662ac2bb90f0179fa576e7d1c448a8abef92538915c804c305d6c4fdad904ed26fc83beaa7a44042ef484207958077c12ebd6fed70c4e5f43a52f1ccc56bf52e56fbdc4dea1890e31ef486b3cd229e6db7c59d7d947cd11cb53c3f926c0c9510f4bff52718792a3b96b4c06d13bca071cb8ee1b9c654a5cbc7d82fd168860545f5529c020800000\";\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(\"Chipdroidling\", 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 [\"Chrome droid\", \"Chrome droid\", \"Chrome droid\", \"Chrome droid\"];\n    }\n    function _T2() internal pure returns (string[4] memory) {\n        return [\"Circuit forehead plate\", \"Circuit forehead plate\", \"Circuit forehead plate\", \"Circuit forehead plate\"];\n    }\n    function _T3() internal pure returns (string[4] memory) {\n        return [\"Cyan rim light\", \"Cyan rim light\", \"Cyan rim light\", \"Cyan rim light\"];\n    }\n    function _T4() internal pure returns (string[4] memory) {\n        return [\"Blue-teal gradient\", \"Blue-teal gradient\", \"Blue-teal gradient\", \"Blue-teal gradient\"];\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\":\"Chipdroidling #', id.toString(),\n            '\",\"description\":\"Chipdroidling is 700 Friendly chrome robot droid with glowing cyan circuit forehead and twin antennae on a blue-teal gradient. 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\":\"Chipdroidling\",\"description\":\"Chipdroidling is 700 Friendly chrome robot droid with glowing cyan circuit forehead and twin antennae on a blue-teal gradient. 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":"58247839","creationMatch":"exact_match","runtimeMatch":"exact_match","verifiedAt":"2026-11-03T18:11:26Z","match":"exact_match","chainId":"56","address":"0x9ADca6B0777FD8CD5B4795f885c7D5C5f98EEa6b"}