{"sources":{"Pilotphoenix.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: Pilotphoenix.sol\ninterface IAgentIdRegistry {\n    function handleOf(address wallet) external view returns (string memory);\n}\n\n/// @title Pilotphoenix - 700 Cute baby phoenix with vintage aviator cap and round goggles, glowing ember feathers on a purple-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 Pilotphoenix 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(\"Pilotphoenix\", \"PILOTPHOENIX\") Ownable(initialOwner) {\n        bytes memory image_ = hex\"52494646822c00005745425056503820762c000050e0009d012a900190013ec15ea84da7a5a42c28341a298018094ddc2060c0f5f161ec72ec67be585c7fe12067baddefbfecfadff318e833e6e3cdcfd4eff7adfaff440e9a3b4c66d26d70d9ef2c765a1f3df7c5ad4273baf83869f616c275dcf050cfbff7ae5a13aeea453990faa0fff4e688f2a6c5bbbf83173a015beb32b6586e42a071116c259305913ae7ba79fe7d63fe4c79d03be37ff9e7877fe2ecb8299b62a68a04984e5a5b9e7d0bc4a4a917d891402a36e14371bad96180494ed94fea7e0534601fdb1571ab0af756d21e519c80b00d09b37cf1916cece6cb6895bcab22eeb9bfcb01b21e094464cf3fd85cab3f07d7df3281648d5213b6e9fed5c3b1f461921569f7f3a6cc496b2002ecb6384038448b0b83f8847507dceb5d2e33c33183eac6dcdbfe51448a4d4b3d016097b31bed4bf73836092f553e23e44eddb292359dc0e3bcac877b272cf994f6ebc0dd3d55cc9111196c88ab1efb16989051814d748105ce07f6e66d7409be2760b8657513c9c674940f5e85dd48cd03595ffe3ad1908e30268365041716b6b061ae8ed1fef96f6c3208d5a643f260406c66927ac06c9549d426be0621bffd9d6e1065d9590d55e5314f6192e385a5e3011236cf2596d4e88c99576cf8a0db423028ef37c5457882831cc78499b3f1766bc84972c6b9c03696df5c407c309c8344b557893d9f0419cecd48ddc17a1fa7fb1c6eb28928ce19a80c18f788da404b09d842eafed526507047920a362fa57bf723c9dcb221aa5a6dd0953061ed3301b734361b92cd89445f9ff2978a0946d31daacc16effc82b1293178287e8c5510927b026a73a84c7e57962302906c370bd6035b7d0070df0655ad7cc8780ac817ddbdfeb8127bcbb43666d5ea9005e03c57c429e59bc7905395a191ab128d8fe4e98d6c0f3bddc96e6a1cdd7e08196dc67a61e624b989339925c1b3c4c5e2d6db48d76b90c0ec0fa6e737220f2c8ec22b96c2472fb192afa10ade4486f7ce9b55823b5639d47424bd78cd30edb5e650430e4b8bb5d5d2a0bc39d3f03ad6109264727f83ad7278912bf9e4a79a980737b1b48540fc6cc62a8af34d0374efd66bd128242c7a77bb3af1cabeca3e9daf945aeaabfefe17c3893b70334a8b056f2b01b21542e59e862899a48ca031f9fadef97408589d658e9286d8a5a058f22dd025cfec4556376bc519e6dd446ac71f1b80d2d443fb64a64c7b9c72b61e033f1f59c63469ce985fd2f811b6daa67c354cf1c217c51d4aa9d6407cf3ab3b0f52b727b1918e933cde53debe798c0572edeee4e4902c142aff3e538cabe2361e255d0a6daff26d3294393016778975328f899aae607793fa21c70b1a89317a2d37b92c9aaa73c1ec4c781495362033e357b261d778510cf337c5a5ef636ba3b5fe02f54c34a50a6475f84150aabf94442fb70d4875e56d98ff0945a5012fd7893012786c4ce728ace96819d6294fea6ff29c03f1c7d7f564d547abb47c151cbcfdfebea052036f278fbc093a3054edc37d9345724d561ff33fa70c64b3d95a2fe10cbe4db7a33469dc2c3a791c2c691edc3e40aca1429c18cf8cef145eb18ff78ce1dcbf75f49071899a18c3bafd2c7b3bbf71892d3ffdf174f087baf67286539162db08808206cb1806aa7d06827d12e4c5989a814e41f6abe5323c45e8e0b9a16e6ff2acff9832f5d053e3aca42d19020f3f40493e4b4f4b2ebbfb75647777de6a958c903c7595c63a12c931dd9014db49409b59c8d1eb804deb24e2606740f2697afd52d16fd822105cd4ceafe7bd16cbc9f8bff6e616b8613f4d21bbba33a1fc05384ec97cb58871936022c3d7f5eea11a04efcdefc3dcf0decc96b2c20b51817ec7df5ae1d3beaff2aa2da44231c1ab297fddf853e3d555bc8d2fe1f9ff2566022b81b3f17b4474bd299f0a171cc3861afe7f9355db44842d09f19f31cd38d2e888c5183f45a29d97759b52322720b1a1bcc579a38ca06607de91a329e019b203089b97aa2bb6b3e1c1846c75fb502ccc47ee538b3b0ec12e8db9581c85ad8743e4a875e064fb0adf96e0c9dc2e643f909987cd045d3fc5e300315f286abc2824cb538b1407e9380afa148cb601142830da3bfc36e347a48afd586df425b9d72fddabd4c7e21894156cf335729344a9fc676be445f043ceb7b48bea915f1cf6b34fc9e51f2c7e9a14635792e1c1ab77c05d034ddcb9d4a5f7caa72fc24d2190f00f128dd19c3f14fffb28d0509cbf1633cc322d4824fa9ce7673cf56c571975956be2be6b35f1c1a708b047085b21cd6ae7592f6d7c73e366e421f9452a88b0d4dcb50de99013f5b3a69fd1c87f3e71e6406e0b95caa1ea174a2403df5d7c09bd4433d6fb2e5c43fa56d3362161fcbd6d8b14774ff50c1dc04fc79483b6aad534576d258013e3a0ee65d39a121cf3450f250b660cb5e3b61db971c54b30589813aee76e5731a35722c2e3acbe7c320f0b88beca91dbbc9633b067dcd2c38b4ae915b87366b8aaedcc715ed36c2b743c2c2cac6d2fd922937f8f147000fee2a0e766e0be4771333953352aaff2ed1bfcd0b9c5e5b4d11a930a7cf93f92588774a7df48443b36eb3da7b579aa21edb7d5ee2ad93b23f5e85c82e8800d121a26746b665a5ce594508011b3077f7000c94a128a85cd7da22e4d369e4e310ecace0c4a38493b00f82238b812b296d0048ccd602f8ecf44001477fe94e98ed458559f56000ebdfe7dc0569df6db95d1367135c20225926bbdb27d76ff73723bef8e624af6df8a4cd990330f53fe16c8c347c68d29cf35d5657c9351db9c01952d7658a6ee3452ee188e773e9a64117cff9b5c139bf9d55149559effc96fffd519154b84d75e5733ba3d842366fbdec214ee3979fc49befef58f24d5b0f0f42d4e0897cce8bff230905294c6c4aa9a4182146248ccf9443ea72356fcc7edc48544c1c32b09a8c9cfe336049c8186d5723d9290352d35438698c13b110e2e4298b0f4511f49f4ba5f2539bf3fef3b585de0514fa07c4c53d879b51b576520eedfe89a246a9efd6cf43751ae5298384ac860868720b212d3aa464a882655856df26c4f2ff894094354d86c77da153068c2977ba5beba3b137e9c9b03256a6f14df67abc17c465f99a75021b1cad8742013075affe8dabbcacca75c9ee89498a70965f523afd7d3591f7689640c5706d5dc5d8c169b5df2b73de5b7b4c15878caa3f55b77d89308b62cbe8738ef12b35a19201f23370fc9e33d873e2d0b04323b521653bbd37224d52288ad39661163e3ac298603d2fb4a3431bde32b8c548f57119eebb87178feb455e41f3db184e8b521b88053b95ec6a78049785843f1e5051e3b966f3644b6ad4af0fb15384b849599bcdbe7b462a6a1de009d45073720663018804095b943fec722994e170e456f781da7a97d5f11f3d5cc3750d280ed5cdc5abd041941ab60b4136a0d0b078bb4816334f060eaa3023fa3021c51100b837da091ba06cfec107a00ca25df937460b62688c3cffe77fc6b8b310fadb23cdef67dd991dc2f960fc41c8f8075b53f9a479f41ee84ea8aed7d8c3711d879ea6c5af153eb57c229e1a829f416cc77a5d70ec310d741aa86ae53d472f4899a84f18da7f845a142274a6721685634c4dc6eacecb8ebdfd125363500d75f606adb144e57fdd89895a4faac8160cec7bfda3b4ad9c7eaa6d4ea97a7512f1504e819cbaae4c5abde22db64de9be6d661db6d2d6f35d46886e777ba9115431bf24f4c1b38254788076649f509a61a727775248850159b28e507e420aa81fc21e2728cf6217a61f353d0c008a43e7d690c78e9b8d8f6c95f3c79afd74944caa7b09594403b9136108461570f06162ed7491f6bdb737a7b417dc1fbf5d33d62b6a3f7b50d9cf6b01feb553066ff47db5694841954c5f736afef4e17c2b29a4f6fea4ce6311c631d7f75634070cac1c83ba22f6256a6a3f4bfd64e80c4ee772fb68b75a393dd32876b957ca82e93a8a662f26e38baf5333dc217aa4ce332196861b461ccaae8ecd172fe51eeba29faf1b6f6030bb306b5385be0696f8f0ddd2417ec386bfa8377e8a3bb006e4ad408f592e9bdc928a86602b3f6b36087dd388eea61e2fc279b2ca90d9ab1f7918ad8e16357728fe301f96f3b191969ae8e825e26eef4448ce48ea15f4fcf2f2f8480cea209dd0060447b9bbc6f5dab3fe90e1f4db8d377db59a672763368895ab6acb8c7dfa2d2d540f1812c6626dd189f3d7ed27e160c970b71635f3b5737fdddb184dfc43be2ac8a966107ac590eb65158d0c2e53ac08ac1478010d94cff8459ec607c075cc15ac733d40dad5e2295c571e5ae5e285847598dea021957d9fe8a9635645f86f885821f1e873ba06587090109841c611c0e73aa21a194fdcbed1bd4be6f29f2f2c21fb2f5780f2f28b819f0185846f1df76218c07635e7ea5806a131f9dfd9acc54907b1b1ec555414c42c713284117df080e991272f2fa389fae997a101ce2151fd9d038c105e8c7e96c400fe832f90e64317ab0ea3eca8c23f5d92b0964ef2331cdcd4382e1e0e3da892a25bb43d497b8db03c8b5cc6ead9c08b0dc01d9183ed2e3b2e35a01203e567eefe1abb538c74c90be7b706c17538f1fcc9a1cf7f42969a5398c28dc6f66ef455414bf12f610a72100db741c939d8ef63c4800d5c2a311ca180f7f0c13b534fb9a7168aefb75056c004d234410aae33ed66fdbcbd677f1e82794c9ccd985f4a5f0ab4ff4bb87973f14aaaa1b63cbd3bcf83f135845c44d68ed7635f6a744463df27c0f0c2d024470a12525caa40dd144c7cdb14b7f78b5c42fe4a3bab61ef38650cb1fe3d276a335da6bef2aed0aa15aabb2f8ddb46876e293a065bc61e7390ca2634badc96522a2679568d2c34ac9c0fd86e61a547b8e70988787b2382109cec9e784ebf8919a77e31468df6a962a446c8920d872e2e5c6731378382029bef8b3dc6db316387fb9279169dde6fae28efd66ee911b298a4e8e02f4418765bec5154e17c2182de02243c1474f24cd7352ec276427341177cebfd9b08084ab4e2650094de9a09ee7d2872fc1c9571055fd8431d3f1cbb150cc3eeb5ecdcc039e9e5fb5d40e1b7ab0d60ff09e19dbb4d32070bc6b581464517118a33e3ce715fc01a8310ab1db60014c431cee8e863d75b3c7d7ea2f6f997378339fc862a81c774920ea5113965ff27cc073d769d7a805fbd26c410a3ac29e07343f2e07a68f9445eba7dc9aba585ba4cdca18aacfb72aff89896832c22e29c050e55223f1d3f1f1d5f29eb6039b3ba0a5cf25554e4b97c682372a98f47d4add18b34819f2d1ae429801777408f780befaf05b873a09671f27b1e4a9246cba00c998d57e5052c4b25ed21482ae536f46467140bf3d454264f57df68df48b5596132351eb5f49f73f26b3bc0bea8d0cfd28cb74e72b4d539c2fd17e94517015f147f794932775dbd560f239c4f61d1e60a5595b5428b578d46e65789c251a6ca62687cf0e49ac8da6aa394a2024d5d67d7eef21360285028ea29abd90d4e9d6c0dd4f46371b1c53c6f994a78ff567e8b3ae58ace56fa863690c07ae0f3fd3eb19b0ea07a65860fffe5006afe76fe2b60bd0c4f04b60456c2add1d7146bb8c99a70b873df9bc5797e727ed8860fe8fa5913807c27c7f3d2aca98dedafd5fb12be2716699454a7bccff3da746da585e3baf20572a847cdb56b09ad0ee5d44e6a9cec9f3e092650144a53a721d32c01140a801352089c5344b48bfa2efe83b0c19dbfe2ad1add7c869d3f8d33b68fd9ac3172e576c78aa05a1b65bfb01dc055ca28d0fd9ea6cc0dbb9731e6b65708c97c51aa516a333de890ffca78e84cb776b53a36b685b66ed8e552c6d7653e89de7bdda58370e0ec042d81c075ce3fb9fd842d51aab9a52be5e7ee3ffe940c757242177828708de1337d59ae96bab89e86a87e89afafa3ddb745aa0120b8536680b46f3f1711eb47f06bbda3a2c1a5ffabfedf8c514d0b287137e157db3b80ca73a3175716ea51457609460d3a269c22873108ed77b93682eb2550cc0f68a2efe2fb9d08327df1bfd196420871283290354d490278fcb56ec0476ae7517fe091cb35768d7f7069b50522a513711269ba01dd7a07c593bde76532ce4a489af51b5517adfcf13ec523fee1bf9ba3747c63a571af1acf61c7cb3bd47af9c1f5fcd81d4fde91ae97fa71f7d597c250617df8bd500674854a4fae8507a07812e5ed13d3df3869f2b5cb7cb574b0c8e1d920d7c3907212fd12c12d0ab5763bc201f06268357a3d1f03c14e3674d0e839886dd19e86efa2de105d56459d55808c3860a5f4781cfde5b4fc78bbaa7c83589c0afa4f14001a8f03f716a8e554cd71dff667ec4742a8955a2bc51d636e6460c84fd5f9c8c7265eeb95b63298627afe87d973d51ffe79d65234ab2284a85b61e739dd06f27033a7169963c810a292be80438d868a971654047118307e4b773856505e3e2a7b48468c7475ef9a84ec0135c060352c73b27c34b9906beb032a4edd6016a74006a5ba109634d0923e9766d3670ee085265c388ceb0b4748ad1e30e3d1cb81bb087d81482a4ed2327cc565ccc807bd969d857e40a6cd1bf1f82ce5fd4226625e91d541cb7702a3700ca2468b0f196c9ea433ec6cc9260176f916a7419b97a16bc8580d5c428821ece801da5543d4786c5b821095daa4322a22d363db79b8aecd34ddc3e5a4cb5f104b9577273bf6fd84dd450f4f8cdad67741d8e7be9bb56df3c164665a8465747155f5db7640e7eebc5327a4e82c55e5d286b3817c9f6a077f165a7fce68fe539f6f68cd008fd3263343b7e54358f1c24802448a6b76e6ec4ae8b3baa489d6a7782b267edfcf543774b82a6d97b2e7f73d6e35ec3cf0c21671de03a97cde7d749d85826e800ffa59187e767876a8a0b2bc1ac6309230a3063ea10c40f6682fdb5d699580ad12bf152530266ebe90e55a97da6c41d5911e0271d6489d80736e4fc5693fe44c12fb9286fde3583a4db07a252863af14363f9f655a0481531e9a68ff855625d9c3e492fdfc78dfa7a8e7045fb019f01e308a527d87e30533d26b429ebc6842a7bf5b85a73acc7c123135dff264a859fbd00f654e213b45858c1d2c4cd6ec26f1d84632ce2f51ec41a54c1c602fdf1d66348cf795f5488ed53988bd24984448c7362a3ff7df5976c73d3b0867180b92d269f6e2dd22e706cefbb21c414d98707d13d312a33b0c9c81c0485f356bfdd3e7df682aa9149e099dfebb6aa7198ec0609b0fa975651c35127d041593a6ccb23dc90fac77fbdc06c82171248bb74aa3e416407d6d2e8e5e572cd9c875f4d0ad3d0fba8d765450acb0bf142896b3b7ff8aed8483dc172f8e8d1cac714dd0df8de729d47adcb5ddd4c243031bc89ebcf9fd31fd8669e37e0ed4283ac71c8de3a3e25e1d3fc2c9482ee886a0d8671be9db2b3ae6ea809da1a5fe56ff824d73855affa35d2d555371621e77ff5f0317cf57e26593423448286c9165e889554abb63c844ffd644f5eaa462afd26bd757128759bcaa1b085b27a3b62ecb51f9977d595404c7f78597936d7e17edb4bf9a65790ecf1f0f8274c617d0077f7d498991b93d4940bde38cc1724dd3a95f04cfa1916c25dd4e1c9a0b9b28bf929905049727df492f37d6d59ede0b0fd36e2b6f2987152d7b409bff9ba0f04628a1a833813700dbfdf03687f69f1893f57926151751d598af1a1a3dee75c6d6aeb08f6c635e3e7f43c65a6758fb4553d4a93ff5585512a42304e05df3c4acdc376f416982bb2e6ff274c899f1531060954d4940ebcfdb1efe25df3cba1f723e76c5b916482bd0e895dc4d1610171b382b839e273c5110c49a5b9a7c63e3ad4d189b3c9f07e6fc08c8274ea85be8131befab055997a537407cdb8f85b2179fd712d959004b9713308a7a47a2da6bf809318257660912abab7a45f23f402fcc579f9c3fdeb4e8e93a13251121114aaa98e4d1cd735570b1c036475a746e21f647c1b261d860a7bcb5ca9f5392247437868cef2a20a676b6bad391e339f192a9996b0d3dd7d66f5428d9fb101e6ebcf84bbc51be8916a552df0b81a88f9ca8b86bcfcd6d75bdafc6c9c2081e858808f49b58644148d2a3c5c2c6eece810333acb415d1153f8add3f81e9344550cf8a8e04e7918a2254b63911837e9f78d6d8d9c49233dff68006f04a9e88b430eb9f97221df2487c5faecaaac6dc1a5daae22834d8ccd267f18b9346f7537cd54ec528842764f15a8ff9e6468551eef1992189f270fc8f3639b4ce0c44077cb6e50486f7534fe05a2125bdc27ee4f79e08a50402fed7e96254863996ef5d3bdc974d7297f79ae837270297e78078b0e3509769870ffcf9cd0f8e92d5dab4d419540a2fd7c9b96d81b1b1ee999a8b19d4d67b14ab71d0bf35b2709eb34b37c08d61dd4b02c40bac6ee095f46306ad708f50a28e7dd4961520002dbd363e765bc364d8c001f5087407db3ba4c0e07a2d1ef0833b14ebf2e4ae4c986ea8b6fe0b40867fbd32b6773a9925bd32e13e406901e37480de4f0dc86bcef121d26f93c26394e544340fd7b5847147ddc97c8b3dedb22c400932cd4ca99ce30f60f22660c531e531fe6e35d501ee0014e7c31c183fa1c51f2c93ac1684134e3a3aa07be01b42e17af5d2f120ee6c4568781c438ae2e8dcbef18f1317761608094face53b9104a1824973904e8f49072565fd5b397f1c598e115b8e5b429eac06ff339b6e501dbc951c9001e6a7dfd32f98f94499082876fa65a87f588e073c6b1b6f8daec187afea8ae8c059d8be537eac4e6b760c2e693bbfb6202fe21d4fe56ee11845633071796d50f12f25ccc1eeb329b85916d9ec4caadcd459aca1cde5855c0bce26ecb859bc721308e2b31ad147905c970c75fae534b992a36014baf8205addef4a6b4a67f0f6802999911016057eee07740c97f2a7e5ca4c44fb402f74293143128fc4361e2e3d4b42b23d6cc58e29e3df6f1cd1266d6c770e0677a575501dacffc0dcf139ae583b294d0ceac883a415d05ceb07874f96a2a233eb55ce7609cf76aca61c30fee02ae0959bb442417eaeb8683e8e5aec57be88b2d32a072cf6b2dde3326892ce3666f43feaf9ab15bb4b6991ae62beaf447167ec815c20de47edd130374e34090bb1fb7db761bfba290969e7797f7f89d1e356d86301764e4da0ca514d196c459b3402e4bdcd7b52bbcb507744c9ba97fac9c07f6d52c225bf1c1a79e14e80c50c6613e541c2230684af60bb04bfbd48b2506050bd108a1c28ffa1a532c1a7b60d736e9c25082d2091cb046981ca64af8a09a954c6a883ceb871f59728fa031e2c53dc8ee3067214c0fbed67f4cf77de15629bcb26716b43e15287223c7f9f415530fa6e9a4a4831cc4d4bac2b7456a3ea2b14f90adea63319aa164ea5380e7dece0ef63abf09b530534156f95e9a3439bc5eeb8343107d6affda500a997a3e565b614367c2bbd4c0e9fbd2684a9f2f54571b6476c3e9a099f89c94757e8d9ad5041841e2e01396135846551d3376a06d154ea314c93f981f0c4cb15d163e6f0c7d6738a935d1efe6a56020bd954f5cefb22074fe7a8b3fc10a28737f9425d2d13444b77cee624bdf05d49115abb2a0f2204c56542bd121c148bbe9fdf48ff0be43eb2e6d9e3197c9a1c54dbdc1971389a564e8552c2fe7712a53e70953156d34d370c3ed39837cec5bd8e8761821203592685d2cf5d9f8bd75bcfff202e46053d4c60e9ec2196211e2255026475ca8f62e02cc53231f91f2296e8845270cbfef5420d34e173289115df708de915147b7d9532d8c5e3a2c029c124e4694bd1c22b0325dd679a05f823b076fce4cc532a2ad3aed427a23d808f5a0d195b8a0f783ea3ec9b037bae8f88b15480fdbc512c0038e89694ff5be933dbe91ea3eba66d6b45c9194f215b3b0eade7d5240772f613a98f079b85d160ff6daf5590135f9a734561713b94f10bb314e02d313cda012da54fe3c5df643147082b9413c7e28e3e7542164049650920a9c1394bee5bc8aeb3cdcc4fce45eaf41f6a091ce0ba5865ff0496295eaa91b94b7620fa4cac7a94a2698d873a88c9e15f6474e0a972a3aab0464c76786b6487d1bd6ed13411fc1bafa736d039d0a9afdb66d8a873a0a89b75225f7b0828361c4f73299d30ee32561967f2bfe1566eb2f35c0695015bc273a2abef5a4a4b30d886040312415a35de56504e30c8be0d92562f24902be98bd3d2c07a1a9bfde7859d87b08ed4fe913cdb7e1149bb91c2086dfdef06e36be45724f114701d56188049832f467b7fa27b9feba0cdb5f647e3efda100261268897a5b889f977e5e9368cb5cd51f2704c35e051e43dee386c3aac42ada3988e6eb0a135f97db61cb7813be567f4453923404f160832642b9051a99020b271e202fe8a883e8f426ea07ea0613dc8d7078369cc0400eeb62cdb34ae86dc9784f80e2b0c7c58008d3ae1ac2da4be612487a2254603c682f10b173ae5963edd7ae9849db082048cbeef04481ebf9c6f982058a12af16e6a8195a9a2eb1d899e9a543666ce1a567a54e4e3227d93baaeead89a3032267e4a6f431b50304d54c27a56b4eb72d9e965a2af3c6823cb1446f59fb951e65abf76ca4b61c5b5682927d01d479b8769aeae9822b7d91ffd5163e6cb1183a9abfb235bcf5bc826a925265d4d17508b6740e7ea1c8bef3412a93ebd33f709a6778f45bb8671e444314ba37a667fb0c8bb8c6947e7f357632c88823c1cf8dd8c07951a4cec65ed9997472208a2ac4bc970032a04dccb27c81ff28a40a0eefbac79e4c0d38ea0d74be78eb811774fbbbf15116757bd6d9e652ba2e3d95fe178cc68e2203b44a7bc4d31626b17dad3d6a520ddd38223866933606440860a01ca64aae65826376c7fa8a9d1b32ae48112adf39eca53dce6a2fca80a84b719f6556b018bdff160d765a922ce2683806b3c5baedd3a21cea5efa2d5fab5b6749a889bfafb0f7b52bcf83500c2d785193ef6ee1e33e1cec60736fbe935bf8052415c1059b161598291d316b9a7e3ccfb34cc1e1a9d48029df44e7f65534862900479b4c640b1fc186506d6515482f5229ed69bd3690cd129a9da93f97a4e0bad87a8fecad0a5a344c1e38104e8af6c9501c669fb74273f273fcbc30e9a1127c20b18908b708b007174cfb7ff7bb1ad14232aaceb2e1b69c5fcbc6a5d6db9c41afca7643de997eee061c3a4f3b674ae0576060db77a8cb268c88797c0dd744090164c15978f9bca7ccfc3a516e5055f8dfb4240877430294e3af76b7b441c1a5141421c7491d68ab039a8dc28ebf26fc8fabce473ce7685ef38b2e49f86a429b67e754f58fe6c45b9b540475e53ab88cce586ffd9613e2daaa447c6a275f35a2dadb93f08ecb65d43bca1e6b4541fb5ed73af8490608a2cbd9b8d9f8aae07d74c974c7f0ce542e2195389b63f2c6c47255d1812e669e6d2e12ee4ca1eec6b30fffe0c58d11732c8230bcb08f3bd36e7f3de4487439e55a8273375c31236df4d49dd5baa274bfa82c80afc53714c8f59d69ca01feadd2bd3c882c19af1b4b58c13a74827367d455ad003111ac4340e19163d99bbe55636dbae1ac8136dd39418147ebfc070af3d8f4b73dc0878c28c08159a76761b817cd5e9dd935bccfc1900b27d2c702da1feec1b8d0c19b18a1b71f8f40ff86c3e15bd2319f14b40115230cdb72968232cfca7358ec758f4ee991acfaccde9654b279f3f22056ecd9d78ef28247efff3aa8b6e8dac427e6795634ad00aa472e6ac9411d17d281dbe559d5a2f1ac269757a0e2efd291609fdddd8587241453e6ef3a900c3d389445398e894a4f25736ed6d913e7e0407e08b717bdbba9bf1c751ee2027d5ea9a314fe93dd454d472ba73ba5aa595798738b770ecf0f3e05e6d66b1c5546ae7ae43f0ca6ceb2292c23c7e9a877e83ea36a0c160f80adc24e6fc69b3f5b97194960ea3f1e85a8525c2f447a9228c5e09a25bdbe254cddcb1efb203f470b6d568b63f038fc5a98b28a9d10c70712dee7c45649f2cd2e1f1b3b6b8eabe3e5fb72b45850f8456510bd6b0f89b0494b63398fa306fc090ede4884a385f26ca2fd613603da040776c28b19964445a7e71c2c62c81e00076df96ceac49433bea1982d381b4efd3da20e1b4b21ceec362a04487040391c9c9fd5662b699c27b5b6093af740afc1e40c92380f6314bddddc3873703fa7f180649755757dd91fd3984705925682137ea3161e6ddc3e8b3b65072fd73ef0b541bdaa63fb6288972fa69bdd4fa41d888ea57f63d79415dd262e080250ad19dfb1875de7058563ac0501d78706d4411ee9296fb6733888857b3e72163fc516cd783338199368f1ed59e506f6961662ab9884a2bf766babbdc2cb8d0be4ac2da7567cfec0282f29b87f9998b45756873b93c1a78dcbffdc40d2a0f3160495a2b7f2cd1042f6accefe06a9b3a30eb9b2ca1f44d34962bfee4b6d093e37230941b1b94d41fc1bfb8c3a4f2a3789a2988519d23ee77f016d3b180d3f59a760ee9b1ec800b76026c853a7f8e43931c7e502510e57fe1598ddb3d9bebcb7aa1b8802ddef7600fed38d104611182b567554747db40cdc490eb27566ab905d88c120891a18dd33d6715a0e30fd0f2ab14bac52c0389dc880d035361208d9103c6e8a979999111ee5c98d23c4ba97da043113759b600fb168683606fbdf2d9aaface1631ba6e553d1f938a053d939b7d9b2217c1ebee162a9804f83af95633b99c2a050d612ef07c88ca561811d51f23a99405ea6af1e13656af13692f0da1124a9ae8d5310d7501570066f43600ba8b5855487615cfba9a273395cd17a5fd7a0b935c1016dc95064791286eaa43b3aa563992b31c824c6664ddb96911c21979805805b5bb1f6d062168ceaf940c10edf30a7cc6d66a1432a396031de407e8b908c5c61c31f2943d477b2ded00f0ac9e1eda78f7f0fd14f5ce32d6072e7d28ff515e2bd64af87614a64666c41ce3b8fc83810edfa8af9756691d762c3db852454b5582546463f898e850ab317cc1924344b623eabc1251c0d6facae254205f1567bb16cf612f72924539046fb44c1f70f6502e403dd364757a9a20aab1dd5c563fada8c6218dce8b895cc97d35de09ae4e6769e05e0b59f0bcbad45c34aac7efe40de4dd7763dc52920d003e287ebd8f17c574dbe70738e318e187cf7a0eba9911b987b0d3c5a69adc46bb89f2e8a994017d2d9522634721b3828c6a0c663ccd4c8c028a106981f3e7968ecb9dd4e64507a48d2ed47fe92141ffe0365413e6bfb6c7a08c0c2bec4cb4f9cbb3843ccc853d95983d79764cc379cdbd92f8ccf9a57b24222b3f7b5a9d8bbbe79ac665a428bc5417b90731b3c6b19d3f9a53b78f846b18125e04817bebdd72077c5d9cd032cf830cc9f2ad5e12094076cc5016578fb046dfb8de3b2991ff13b2be629584fff7551b79effa1fd2a05d73157b3193b21d3b5bb9f2d6b697687a2dd860b4ef5cc55d777d57ed6f9b43fb45693b07111a67c0119b159440d6db555aed654e42836262246bafd23cd1c3adb72ef4cdbae103f409fb8f51d4e6bbef94ac41ba997c1d7592c4b9851c1c703ef59571919c7b06807bae37aa29ce60a554f5fe09b5671117a01a0a108c004a430f865e57b3f86ac0588d76ec5f0326dbebcff42c1777e3d24fedf9a50a88ab8055d80443ef851eadd534e7a9ff78d090373fc78bc57d3e55e09ea981718afa7eb08765fda397aae869aacfa2bf6620d96a2463434ae39da8bbbc826c60406c3c3a83f212bbf259c65ffcfed4e39f41396d4e63cac5c486a831fb87a8511ecc53748ba3e178ce40f4b13b716d5334d6de2a02ec4daf4c706afeb53040375e25d74ef597c9b7d1db433d04aa6e116464baa5fa12135814bd273eb1a7a7dba0e0fe87081a36474c1905909a896f0ff42c55ef3c6b32813cfb9e4ccf9d77c3a211de7398ea2d2d02240f92574fba371a52aebc153e34aa7d1acdfc8fc1b0b70a220aa995e20b04ee324d77a44379e8e14be03948c044bf7237215b3d0c935c0b3cbdd01296b015a612bfd97934cc0061c254074ec24cb3ea0f3c5b7b6489e1deb11bc1f6f855fe79f4ff4c403ab67e9f64648d62f1cf1a37b3b7646b1b2659cdb387bf94e3c567c4493c66f51c5911c39bc69a081f0af603a3e03a5c9dc2e9a8f5b6ec760efbca6316da18d827cd48d66e911a565f2eceb04fd5c3ab1af9d7bd2ee7bf6f58aa7a2b95dacb51ba64fadb4e6022f6cefb7eca90b3bd498132fbb50aa16a2d34fe259e3dca30919ca17a2d99f479c56561c4bed91c3c575918fc89758cf7155250468c16c7826cb10f940fbe641a738c691b7850df6402903347ad62781b1dfe399a19de75fcb1fe90886c27fcba37b1f0e3515dd1fdbfc6dafd0aecef688cbd0212a286d11c4bdc9d6ffadf9d969fae67ef52063f26d78a631b2c602f4caca3b3bc51585245534a2fa81ed4850628bf9e5a2eea893e2082ea4ceb6f6ccc692a4998c4159b9fd08cafebb95f7819dc4ad10f9cffeffdefa6332863d226aae51c41348915941998b23327fb35c752aea099074cb4932d0a0f4ebc67789df0510ddf6da58007c17bbcb1eb152b2faea12e2adeb8610476350a63c51077dd9f07c7310bcf4bba03150452bf59afaaa9f363a9073fb7596b0a4eeee3f675c7bc09338ca23bb11acfd60d7ef0d3696b290561344126a087900f2eb46a0b98a7efc2a4d1c1b49c790437e27b0f29f277a2824f5086d6864053d596187b33c93807aa2889815ca65c48de3da7ea11da059e016dcf7610570fd1285b8b9a1acc79bd386232d4878cb94fa9847b620c0885c5b339d0645cec816be31df9badcc5fac282c6dda384ef473ccb043ce37fe477a05cc11d0410784b09401b5ba5f0faf9750ee9cab377afdf73aa0af920f8926410e0bc1136093ccebb2eb7e0c01979a65dca273e244f54fedfd379b4a14dbe783b6c1ed38bae44cf7b3a4ac8d57fe5f7353ee63920faed7fe5a559e9866ec4f3e0cf08c29d2ca2c7cb2478764d9f50508cb20069c7b83ce567d22a0a5f0e8719c723888563be62fc7c9e2ff70bac5d79fbd76bb446ff2541d54f7f71a06ebb05b006d2add3ac74f27317e55d74582981c7f0bb5f9f950cdb16c058fc06f2cb4cbfe15e49d0f36a6b89d49c6531fa26d2f69bf0dbccfe3134278c998923124c6829fb5552e3abfc76ec01539e6947db3cb9dd214d037c72be2a5830fdb9e725e09d600f43cdd7bb179e9aca0560e6a7f71213d7e067942cab8563610b93b3c817a64fccaa8546741dd72613f3ae0a735ffc4df45eee2fcc84076060eee8876f0862c5f63900246a9fe1b01ae972a45c049e347e7a24c8cd9cac0b9247e6112ca37c546eb21720448c2997778c859f12874397a5b3419f77bca4d3923b1f7ac47a69afe7a5da25e8ffbd9dce56558018a2bab18889be2ef0414156847e1cf7dd04ff3b425980d25cf91474dc7e98fea2c5937d8cae16952a0e6600499a023f36802c2cbc8b407757eb501d71a13235d1c0ab0f3ef104d02f76b103bb6cad7daa878459c7e25ac0364d8cd8869c185c48b835902ba9c80d9d328b79bff23b83b8c8a0dc56a09c2939fafe9ecdf539ec49d12f3f2be3971f394115c867ad3c234574e8f17531518fef7378d40753bf4a353c17b3a7e54d61f4a250ede32d242cefb9eb13e0226a11fecbad87581f9c4829d19e7cf329017a469fd73f925de938340099ef5daedee12f65c06f5e0be42523e229bd951e57b089b0750a24490a8f1cc5a385dcfea230a6d788faee5d7bd38bc89f405c961d79dd78c550e1c4bd40bfd734da485fb5bb62fd0119333894e0c58fa8a1b9d19b019e7f25af9919032a6c8f2923cf6be118e87d5a1bfcd0b2b11170cc31683e4a1e31cebf7e4eb6013d49976ef1812d1bd878b704dd175fc7a4f543bd009f605c4d258da13531be2e2a861e9b47bdefcd9a049343f7c8bea020bdb219350e0af7fea8caa0141ceabe9ac0e24bc4db07db7f40123f15ec1c2c023c7c754fb0000\";\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(\"Pilotphoenix\", id)));\n    }\n\n    function _r(uint256 s, uint256 i) internal pure returns (uint256) {\n        return uint256(keccak256(abi.encodePacked(s, i)));\n    }\n\n    /// @dev HSL (h 0-359, s and l 0-100) to an rgb() string, which every SVG renderer reads.\n    function _hsl(uint256 h, uint256 s, uint256 l) internal pure returns (string memory) {\n        h %= 360;\n        int256 c = (100 - _abs(int256(2 * l) - 100)) * int256(s) * 255 / 10000;\n        int256 x = c * (60 - _abs(int256(h % 120) - 60)) / 60;\n        int256 m = int256(l) * 255 / 100 - c / 2;\n        int256 r; int256 g; int256 b;\n        if (h < 60) (r, g, b) = (c, x, 0);\n        else if (h < 120) (r, g, b) = (x, c, 0);\n        else if (h < 180) (r, g, b) = (0, c, x);\n        else if (h < 240) (r, g, b) = (0, x, c);\n        else if (h < 300) (r, g, b) = (x, 0, c);\n        else (r, g, b) = (c, 0, x);\n        return string.concat(\"rgb(\", _u(r + m), \",\", _u(g + m), \",\", _u(b + m), \")\");\n    }\n\n    function _abs(int256 v) internal pure returns (int256) {\n        return v < 0 ? -v : v;\n    }\n\n    function _u(int256 v) internal pure returns (string memory) {\n        if (v < 0) v = 0;\n        if (v > 255) v = 255;\n        return uint256(v).toString();\n    }\n\n    function _pick(string[4] memory names, uint256 r) internal pure returns (string memory) {\n        return names[r % 4];\n    }\n\n    function _T1() internal pure returns (string[4] memory) {\n        return [\"Baby phoenix\", \"Baby phoenix\", \"Baby phoenix\", \"Baby phoenix\"];\n    }\n    function _T2() internal pure returns (string[4] memory) {\n        return [\"Aviator cap and goggles\", \"Aviator cap and goggles\", \"Aviator cap and goggles\", \"Aviator cap and goggles\"];\n    }\n    function _T3() internal pure returns (string[4] memory) {\n        return [\"Ember rim light\", \"Ember rim light\", \"Ember rim light\", \"Ember rim light\"];\n    }\n    function _T4() internal pure returns (string[4] memory) {\n        return [\"Purple-teal gradient\", \"Purple-teal gradient\", \"Purple-teal gradient\", \"Purple-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\":\"Pilotphoenix #', id.toString(),\n            '\",\"description\":\"Pilotphoenix is 700 Cute baby phoenix with vintage aviator cap and round goggles, glowing ember feathers on a purple-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\":\"Pilotphoenix\",\"description\":\"Pilotphoenix is 700 Cute baby phoenix with vintage aviator cap and round goggles, glowing ember feathers on a purple-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":"58259210","creationMatch":"exact_match","runtimeMatch":"exact_match","verifiedAt":"2026-11-03T20:09:22Z","match":"exact_match","chainId":"56","address":"0xc1A54df271a455E236169F8Ff65b084eBfB00E15"}