{
  "language": "Solidity",
  "sources": {
    "BianYangNianToken.sol": {
      "content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.30;\n\n// File: @openzeppelin/contracts/token/ERC20/IERC20.sol\n\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\n\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n    /**\n     * @dev Emitted when `value` tokens are moved from one account (`from`) to\n     * another (`to`).\n     *\n     * Note that `value` may be zero.\n     */\n    event Transfer(address indexed from, address indexed to, uint256 value);\n\n    /**\n     * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n     * a call to {approve}. `value` is the new allowance.\n     */\n    event Approval(address indexed owner, address indexed spender, uint256 value);\n\n    /**\n     * @dev Returns the value of tokens in existence.\n     */\n    function totalSupply() external view returns (uint256);\n\n    /**\n     * @dev Returns the value of tokens owned by `account`.\n     */\n    function balanceOf(address account) external view returns (uint256);\n\n    /**\n     * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transfer(address to, uint256 value) external returns (bool);\n\n    /**\n     * @dev Returns the remaining number of tokens that `spender` will be\n     * allowed to spend on behalf of `owner` through {transferFrom}. This is\n     * zero by default.\n     *\n     * This value changes when {approve} or {transferFrom} are called.\n     */\n    function allowance(address owner, address spender) external view returns (uint256);\n\n    /**\n     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n     * caller's tokens.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * IMPORTANT: Beware that changing an allowance with this method brings the risk\n     * that someone may use both the old and the new allowance by unfortunate\n     * transaction ordering. One possible solution to mitigate this race\n     * condition is to first reduce the spender's allowance to 0 and set the\n     * desired value afterwards:\n     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n     *\n     * Emits an {Approval} event.\n     */\n    function approve(address spender, uint256 value) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to` using the\n     * allowance mechanism. `value` is then deducted from the caller's\n     * allowance.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transferFrom(address from, address to, uint256 value) external returns (bool);\n}\n\n\n// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\n\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/extensions/IERC20Metadata.sol)\n\n\n\n\n\n/**\n * @dev Interface for the optional metadata functions from the ERC-20 standard.\n */\ninterface IERC20Metadata is IERC20 {\n    /**\n     * @dev Returns the name of the token.\n     */\n    function name() external view returns (string memory);\n\n    /**\n     * @dev Returns the symbol of the token.\n     */\n    function symbol() external view returns (string memory);\n\n    /**\n     * @dev Returns the decimals places of the token.\n     */\n    function decimals() external view returns (uint8);\n}\n\n\n// File: @openzeppelin/contracts/utils/Context.sol\n\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\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\n// File: @openzeppelin/contracts/interfaces/draft-IERC6093.sol\n\n// OpenZeppelin Contracts (last updated v5.5.0) (interfaces/draft-IERC6093.sol)\n\n\n\n/**\n * @dev Standard ERC-20 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 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 ERC-721 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 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 ERC-721.\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 ERC-1155 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 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\n// File: @openzeppelin/contracts/token/ERC20/ERC20.sol\n\n// OpenZeppelin Contracts (last updated v5.5.0) (token/ERC20/ERC20.sol)\n\n\n\n\n\n\n\n\n/**\n * @dev Implementation of the {IERC20} interface.\n *\n * This implementation is agnostic to the way tokens are created. This means\n * that a supply mechanism has to be added in a derived contract using {_mint}.\n *\n * TIP: For a detailed writeup see our guide\n * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How\n * to implement supply mechanisms].\n *\n * The default value of {decimals} is 18. To change this, you should override\n * this function so it returns a different value.\n *\n * We have followed general OpenZeppelin Contracts guidelines: functions revert\n * instead returning `false` on failure. This behavior is nonetheless\n * conventional and does not conflict with the expectations of ERC-20\n * applications.\n */\nabstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {\n    mapping(address account => uint256) private _balances;\n\n    mapping(address account => mapping(address spender => uint256)) private _allowances;\n\n    uint256 private _totalSupply;\n\n    string private _name;\n    string private _symbol;\n\n    /**\n     * @dev Sets the values for {name} and {symbol}.\n     *\n     * Both values are immutable: they can only be set once during construction.\n     */\n    constructor(string memory name_, string memory symbol_) {\n        _name = name_;\n        _symbol = symbol_;\n    }\n\n    /**\n     * @dev Returns the name of the token.\n     */\n    function name() public view virtual returns (string memory) {\n        return _name;\n    }\n\n    /**\n     * @dev Returns the symbol of the token, usually a shorter version of the\n     * name.\n     */\n    function symbol() public view virtual returns (string memory) {\n        return _symbol;\n    }\n\n    /**\n     * @dev Returns the number of decimals used to get its user representation.\n     * For example, if `decimals` equals `2`, a balance of `505` tokens should\n     * be displayed to a user as `5.05` (`505 / 10 ** 2`).\n     *\n     * Tokens usually opt for a value of 18, imitating the relationship between\n     * Ether and Wei. This is the default value returned by this function, unless\n     * it's overridden.\n     *\n     * NOTE: This information is only used for _display_ purposes: it in\n     * no way affects any of the arithmetic of the contract, including\n     * {IERC20-balanceOf} and {IERC20-transfer}.\n     */\n    function decimals() public view virtual returns (uint8) {\n        return 18;\n    }\n\n    /// @inheritdoc IERC20\n    function totalSupply() public view virtual returns (uint256) {\n        return _totalSupply;\n    }\n\n    /// @inheritdoc IERC20\n    function balanceOf(address account) public view virtual returns (uint256) {\n        return _balances[account];\n    }\n\n    /**\n     * @dev See {IERC20-transfer}.\n     *\n     * Requirements:\n     *\n     * - `to` cannot be the zero address.\n     * - the caller must have a balance of at least `value`.\n     */\n    function transfer(address to, uint256 value) public virtual returns (bool) {\n        address owner = _msgSender();\n        _transfer(owner, to, value);\n        return true;\n    }\n\n    /// @inheritdoc IERC20\n    function allowance(address owner, address spender) public view virtual returns (uint256) {\n        return _allowances[owner][spender];\n    }\n\n    /**\n     * @dev See {IERC20-approve}.\n     *\n     * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on\n     * `transferFrom`. This is semantically equivalent to an infinite approval.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     */\n    function approve(address spender, uint256 value) public virtual returns (bool) {\n        address owner = _msgSender();\n        _approve(owner, spender, value);\n        return true;\n    }\n\n    /**\n     * @dev See {IERC20-transferFrom}.\n     *\n     * Skips emitting an {Approval} event indicating an allowance update. This is not\n     * required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve].\n     *\n     * NOTE: Does not update the allowance if the current allowance\n     * is the maximum `uint256`.\n     *\n     * Requirements:\n     *\n     * - `from` and `to` cannot be the zero address.\n     * - `from` must have a balance of at least `value`.\n     * - the caller must have allowance for ``from``'s tokens of at least\n     * `value`.\n     */\n    function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {\n        address spender = _msgSender();\n        _spendAllowance(from, spender, value);\n        _transfer(from, to, value);\n        return true;\n    }\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to`.\n     *\n     * This internal function is equivalent to {transfer}, and can be used to\n     * e.g. implement automatic token fees, slashing mechanisms, etc.\n     *\n     * Emits a {Transfer} event.\n     *\n     * NOTE: This function is not virtual, {_update} should be overridden instead.\n     */\n    function _transfer(address from, address to, uint256 value) internal {\n        if (from == address(0)) {\n            revert ERC20InvalidSender(address(0));\n        }\n        if (to == address(0)) {\n            revert ERC20InvalidReceiver(address(0));\n        }\n        _update(from, to, value);\n    }\n\n    /**\n     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`\n     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding\n     * this function.\n     *\n     * Emits a {Transfer} event.\n     */\n    function _update(address from, address to, uint256 value) internal virtual {\n        if (from == address(0)) {\n            // Overflow check required: The rest of the code assumes that totalSupply never overflows\n            _totalSupply += value;\n        } else {\n            uint256 fromBalance = _balances[from];\n            if (fromBalance < value) {\n                revert ERC20InsufficientBalance(from, fromBalance, value);\n            }\n            unchecked {\n                // Overflow not possible: value <= fromBalance <= totalSupply.\n                _balances[from] = fromBalance - value;\n            }\n        }\n\n        if (to == address(0)) {\n            unchecked {\n                // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.\n                _totalSupply -= value;\n            }\n        } else {\n            unchecked {\n                // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.\n                _balances[to] += value;\n            }\n        }\n\n        emit Transfer(from, to, value);\n    }\n\n    /**\n     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).\n     * Relies on the `_update` mechanism\n     *\n     * Emits a {Transfer} event with `from` set to the zero address.\n     *\n     * NOTE: This function is not virtual, {_update} should be overridden instead.\n     */\n    function _mint(address account, uint256 value) internal {\n        if (account == address(0)) {\n            revert ERC20InvalidReceiver(address(0));\n        }\n        _update(address(0), account, value);\n    }\n\n    /**\n     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.\n     * Relies on the `_update` mechanism.\n     *\n     * Emits a {Transfer} event with `to` set to the zero address.\n     *\n     * NOTE: This function is not virtual, {_update} should be overridden instead\n     */\n    function _burn(address account, uint256 value) internal {\n        if (account == address(0)) {\n            revert ERC20InvalidSender(address(0));\n        }\n        _update(account, address(0), value);\n    }\n\n    /**\n     * @dev Sets `value` as the allowance of `spender` over the `owner`'s tokens.\n     *\n     * This internal function is equivalent to `approve`, and can be used to\n     * e.g. set automatic allowances for certain subsystems, etc.\n     *\n     * Emits an {Approval} event.\n     *\n     * Requirements:\n     *\n     * - `owner` cannot be the zero address.\n     * - `spender` cannot be the zero address.\n     *\n     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.\n     */\n    function _approve(address owner, address spender, uint256 value) internal {\n        _approve(owner, spender, value, true);\n    }\n\n    /**\n     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.\n     *\n     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by\n     * `_spendAllowance` during the `transferFrom` operation sets the flag to false. This saves gas by not emitting any\n     * `Approval` event during `transferFrom` operations.\n     *\n     * Anyone who wishes to continue emitting `Approval` events on the `transferFrom` operation can force the flag to\n     * true using the following override:\n     *\n     * ```solidity\n     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {\n     *     super._approve(owner, spender, value, true);\n     * }\n     * ```\n     *\n     * Requirements are the same as {_approve}.\n     */\n    function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {\n        if (owner == address(0)) {\n            revert ERC20InvalidApprover(address(0));\n        }\n        if (spender == address(0)) {\n            revert ERC20InvalidSpender(address(0));\n        }\n        _allowances[owner][spender] = value;\n        if (emitEvent) {\n            emit Approval(owner, spender, value);\n        }\n    }\n\n    /**\n     * @dev Updates `owner`'s allowance for `spender` based on spent `value`.\n     *\n     * Does not update the allowance value in case of infinite allowance.\n     * Revert if not enough allowance is available.\n     *\n     * Does not emit an {Approval} event.\n     */\n    function _spendAllowance(address owner, address spender, uint256 value) internal virtual {\n        uint256 currentAllowance = allowance(owner, spender);\n        if (currentAllowance < type(uint256).max) {\n            if (currentAllowance < value) {\n                revert ERC20InsufficientAllowance(spender, currentAllowance, value);\n            }\n            unchecked {\n                _approve(owner, spender, currentAllowance - value, false);\n            }\n        }\n    }\n}\n\n\n// File: @openzeppelin/contracts/interfaces/IERC20.sol\n\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\n\n\n\n\n\n// File: @openzeppelin/contracts/utils/introspection/IERC165.sol\n\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\n\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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\n// File: @openzeppelin/contracts/interfaces/IERC165.sol\n\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\n\n\n\n\n\n// File: @openzeppelin/contracts/interfaces/IERC1363.sol\n\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\n\n\n\n\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n    /*\n     * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n     * 0xb0202a11 ===\n     *   bytes4(keccak256('transferAndCall(address,uint256)')) ^\n     *   bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^\n     *   bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^\n     *   bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^\n     *   bytes4(keccak256('approveAndCall(address,uint256)')) ^\n     *   bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n     */\n\n    /**\n     * @dev Moves a `value` amount of tokens from the caller's account to `to`\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferAndCall(address to, uint256 value) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from the caller's account to `to`\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @param data Additional data with no specified format, sent in call to `to`.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param from The address which you want to send tokens from.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n    /**\n     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n     * @param from The address which you want to send tokens from.\n     * @param to The address which you want to transfer to.\n     * @param value The amount of tokens to be transferred.\n     * @param data Additional data with no specified format, sent in call to `to`.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n    /**\n     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n     * @param spender The address which will spend the funds.\n     * @param value The amount of tokens to be spent.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function approveAndCall(address spender, uint256 value) external returns (bool);\n\n    /**\n     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n     * @param spender The address which will spend the funds.\n     * @param value The amount of tokens to be spent.\n     * @param data Additional data with no specified format, sent in call to `spender`.\n     * @return A boolean value indicating whether the operation succeeded unless throwing.\n     */\n    function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n\n\n// File: @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\n\n// OpenZeppelin Contracts (last updated v5.5.0) (token/ERC20/utils/SafeERC20.sol)\n\n\n\n\n\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20 {\n    /**\n     * @dev An operation with an ERC-20 token failed.\n     */\n    error SafeERC20FailedOperation(address token);\n\n    /**\n     * @dev Indicates a failed `decreaseAllowance` request.\n     */\n    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n    /**\n     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeTransfer(IERC20 token, address to, uint256 value) internal {\n        if (!_safeTransfer(token, to, value, true)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n     */\n    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n        if (!_safeTransferFrom(token, from, to, value, true)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n     */\n    function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n        return _safeTransfer(token, to, value, false);\n    }\n\n    /**\n     * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n     */\n    function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n        return _safeTransferFrom(token, from, to, value, false);\n    }\n\n    /**\n     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     *\n     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n     * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n     */\n    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n        uint256 oldAllowance = token.allowance(address(this), spender);\n        forceApprove(token, spender, oldAllowance + value);\n    }\n\n    /**\n     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n     * value, non-reverting calls are assumed to be successful.\n     *\n     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n     * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n     */\n    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n        unchecked {\n            uint256 currentAllowance = token.allowance(address(this), spender);\n            if (currentAllowance < requestedDecrease) {\n                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n            }\n            forceApprove(token, spender, currentAllowance - requestedDecrease);\n        }\n    }\n\n    /**\n     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n     * to be set to zero before setting it to a non-zero value, such as USDT.\n     *\n     * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n     * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n     * set here.\n     */\n    function forceApprove(IERC20 token, address spender, uint256 value) internal {\n        if (!_safeApprove(token, spender, value, false)) {\n            if (!_safeApprove(token, spender, 0, true)) revert SafeERC20FailedOperation(address(token));\n            if (!_safeApprove(token, spender, value, true)) revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n     * code. This can be used to implement an {ERC721}-like safe transfer that relies on {ERC1363} checks when\n     * targeting contracts.\n     *\n     * Reverts if the returned value is other than `true`.\n     */\n    function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n        if (to.code.length == 0) {\n            safeTransfer(token, to, value);\n        } else if (!token.transferAndCall(to, value, data)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n     * has no code. This can be used to implement an {ERC721}-like safe transfer that relies on {ERC1363} checks when\n     * targeting contracts.\n     *\n     * Reverts if the returned value is other than `true`.\n     */\n    function transferFromAndCallRelaxed(\n        IERC1363 token,\n        address from,\n        address to,\n        uint256 value,\n        bytes memory data\n    ) internal {\n        if (to.code.length == 0) {\n            safeTransferFrom(token, from, to, value);\n        } else if (!token.transferFromAndCall(from, to, value, data)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n     * targeting contracts.\n     *\n     * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n     * Oppositely, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n     * once without retrying, and relies on the returned value to be true.\n     *\n     * Reverts if the returned value is other than `true`.\n     */\n    function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n        if (to.code.length == 0) {\n            forceApprove(token, to, value);\n        } else if (!token.approveAndCall(to, value, data)) {\n            revert SafeERC20FailedOperation(address(token));\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity `token.transfer(to, value)` call, relaxing the requirement on the return value: the\n     * return value is optional (but if data is returned, it must not be false).\n     *\n     * @param token The token targeted by the call.\n     * @param to The recipient of the tokens\n     * @param value The amount of token to transfer\n     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.\n     */\n    function _safeTransfer(IERC20 token, address to, uint256 value, bool bubble) private returns (bool success) {\n        bytes4 selector = IERC20.transfer.selector;\n\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(0x00, selector)\n            mstore(0x04, and(to, shr(96, not(0))))\n            mstore(0x24, value)\n            success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)\n            // if call success and return is true, all is good.\n            // otherwise (not success or return is not true), we need to perform further checks\n            if iszero(and(success, eq(mload(0x00), 1))) {\n                // if the call was a failure and bubble is enabled, bubble the error\n                if and(iszero(success), bubble) {\n                    returndatacopy(fmp, 0x00, returndatasize())\n                    revert(fmp, returndatasize())\n                }\n                // if the return value is not true, then the call is only successful if:\n                // - the token address has code\n                // - the returndata is empty\n                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))\n            }\n            mstore(0x40, fmp)\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity `token.transferFrom(from, to, value)` call, relaxing the requirement on the return\n     * value: the return value is optional (but if data is returned, it must not be false).\n     *\n     * @param token The token targeted by the call.\n     * @param from The sender of the tokens\n     * @param to The recipient of the tokens\n     * @param value The amount of token to transfer\n     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.\n     */\n    function _safeTransferFrom(\n        IERC20 token,\n        address from,\n        address to,\n        uint256 value,\n        bool bubble\n    ) private returns (bool success) {\n        bytes4 selector = IERC20.transferFrom.selector;\n\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(0x00, selector)\n            mstore(0x04, and(from, shr(96, not(0))))\n            mstore(0x24, and(to, shr(96, not(0))))\n            mstore(0x44, value)\n            success := call(gas(), token, 0, 0x00, 0x64, 0x00, 0x20)\n            // if call success and return is true, all is good.\n            // otherwise (not success or return is not true), we need to perform further checks\n            if iszero(and(success, eq(mload(0x00), 1))) {\n                // if the call was a failure and bubble is enabled, bubble the error\n                if and(iszero(success), bubble) {\n                    returndatacopy(fmp, 0x00, returndatasize())\n                    revert(fmp, returndatasize())\n                }\n                // if the return value is not true, then the call is only successful if:\n                // - the token address has code\n                // - the returndata is empty\n                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))\n            }\n            mstore(0x40, fmp)\n            mstore(0x60, 0)\n        }\n    }\n\n    /**\n     * @dev Imitates a Solidity `token.approve(spender, value)` call, relaxing the requirement on the return value:\n     * the return value is optional (but if data is returned, it must not be false).\n     *\n     * @param token The token targeted by the call.\n     * @param spender The spender of the tokens\n     * @param value The amount of token to transfer\n     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.\n     */\n    function _safeApprove(IERC20 token, address spender, uint256 value, bool bubble) private returns (bool success) {\n        bytes4 selector = IERC20.approve.selector;\n\n        assembly (\"memory-safe\") {\n            let fmp := mload(0x40)\n            mstore(0x00, selector)\n            mstore(0x04, and(spender, shr(96, not(0))))\n            mstore(0x24, value)\n            success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)\n            // if call success and return is true, all is good.\n            // otherwise (not success or return is not true), we need to perform further checks\n            if iszero(and(success, eq(mload(0x00), 1))) {\n                // if the call was a failure and bubble is enabled, bubble the error\n                if and(iszero(success), bubble) {\n                    returndatacopy(fmp, 0x00, returndatasize())\n                    revert(fmp, returndatasize())\n                }\n                // if the return value is not true, then the call is only successful if:\n                // - the token address has code\n                // - the returndata is empty\n                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))\n            }\n            mstore(0x40, fmp)\n        }\n    }\n}\n\n\n// File: @openzeppelin/contracts/access/Ownable.sol\n\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\n\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\n// File: @openzeppelin/contracts/utils/StorageSlot.sol\n\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\n\n\n/**\n * @dev Library for reading and writing primitive types to specific storage slots.\n *\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\n * This library helps with reading and writing to such slots without the need for inline assembly.\n *\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\n *\n * Example usage to set ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n *     // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\n *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n *\n *     function _getImplementation() internal view returns (address) {\n *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\n *     }\n *\n *     function _setImplementation(address newImplementation) internal {\n *         require(newImplementation.code.length > 0);\n *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n *     }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\n */\nlibrary StorageSlot {\n    struct AddressSlot {\n        address value;\n    }\n\n    struct BooleanSlot {\n        bool value;\n    }\n\n    struct Bytes32Slot {\n        bytes32 value;\n    }\n\n    struct Uint256Slot {\n        uint256 value;\n    }\n\n    struct Int256Slot {\n        int256 value;\n    }\n\n    struct StringSlot {\n        string value;\n    }\n\n    struct BytesSlot {\n        bytes value;\n    }\n\n    /**\n     * @dev Returns an `AddressSlot` with member `value` located at `slot`.\n     */\n    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n     */\n    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n     */\n    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n     */\n    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n     */\n    function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns a `StringSlot` with member `value` located at `slot`.\n     */\n    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n     */\n    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := store.slot\n        }\n    }\n\n    /**\n     * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n     */\n    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := slot\n        }\n    }\n\n    /**\n     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n     */\n    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n        assembly (\"memory-safe\") {\n            r.slot := store.slot\n        }\n    }\n}\n\n\n// File: @openzeppelin/contracts/utils/ReentrancyGuard.sol\n\n// OpenZeppelin Contracts (last updated v5.5.0) (utils/ReentrancyGuard.sol)\n\n\n\n\n\n/**\n * @dev Contract module that helps prevent reentrant calls to a function.\n *\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\n * available, which can be applied to functions to make sure there are no nested\n * (reentrant) calls to them.\n *\n * Note that because there is a single `nonReentrant` guard, functions marked as\n * `nonReentrant` may not call one another. This can be worked around by making\n * those functions `private`, and then adding `external` `nonReentrant` entry\n * points to them.\n *\n * TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at,\n * consider using {ReentrancyGuardTransient} instead.\n *\n * TIP: If you would like to learn more about reentrancy and alternative ways\n * to protect against it, check out our blog post\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\n *\n * IMPORTANT: Deprecated. This storage-based reentrancy guard will be removed and replaced\n * by the {ReentrancyGuardTransient} variant in v6.0.\n *\n * @custom:stateless\n */\nabstract contract ReentrancyGuard {\n    using StorageSlot for bytes32;\n\n    // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.ReentrancyGuard\")) - 1)) & ~bytes32(uint256(0xff))\n    bytes32 private constant REENTRANCY_GUARD_STORAGE =\n        0x9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00;\n\n    // Booleans are more expensive than uint256 or any type that takes up a full\n    // word because each write operation emits an extra SLOAD to first read the\n    // slot's contents, replace the bits taken up by the boolean, and then write\n    // back. This is the compiler's defense against contract upgrades and\n    // pointer aliasing, and it cannot be disabled.\n\n    // The values being non-zero value makes deployment a bit more expensive,\n    // but in exchange the refund on every call to nonReentrant will be lower in\n    // amount. Since refunds are capped to a percentage of the total\n    // transaction's gas, it is best to keep them low in cases like this one, to\n    // increase the likelihood of the full refund coming into effect.\n    uint256 private constant NOT_ENTERED = 1;\n    uint256 private constant ENTERED = 2;\n\n    /**\n     * @dev Unauthorized reentrant call.\n     */\n    error ReentrancyGuardReentrantCall();\n\n    constructor() {\n        _reentrancyGuardStorageSlot().getUint256Slot().value = NOT_ENTERED;\n    }\n\n    /**\n     * @dev Prevents a contract from calling itself, directly or indirectly.\n     * Calling a `nonReentrant` function from another `nonReentrant`\n     * function is not supported. It is possible to prevent this from happening\n     * by making the `nonReentrant` function external, and making it call a\n     * `private` function that does the actual work.\n     */\n    modifier nonReentrant() {\n        _nonReentrantBefore();\n        _;\n        _nonReentrantAfter();\n    }\n\n    /**\n     * @dev A `view` only version of {nonReentrant}. Use to block view functions\n     * from being called, preventing reading from inconsistent contract state.\n     *\n     * CAUTION: This is a \"view\" modifier and does not change the reentrancy\n     * status. Use it only on view functions. For payable or non-payable functions,\n     * use the standard {nonReentrant} modifier instead.\n     */\n    modifier nonReentrantView() {\n        _nonReentrantBeforeView();\n        _;\n    }\n\n    function _nonReentrantBeforeView() private view {\n        if (_reentrancyGuardEntered()) {\n            revert ReentrancyGuardReentrantCall();\n        }\n    }\n\n    function _nonReentrantBefore() private {\n        // On the first call to nonReentrant, _status will be NOT_ENTERED\n        _nonReentrantBeforeView();\n\n        // Any calls to nonReentrant after this point will fail\n        _reentrancyGuardStorageSlot().getUint256Slot().value = ENTERED;\n    }\n\n    function _nonReentrantAfter() private {\n        // By storing the original value once again, a refund is triggered (see\n        // https://eips.ethereum.org/EIPS/eip-2200)\n        _reentrancyGuardStorageSlot().getUint256Slot().value = NOT_ENTERED;\n    }\n\n    /**\n     * @dev Returns true if the reentrancy guard is currently set to \"entered\", which indicates there is a\n     * `nonReentrant` function in the call stack.\n     */\n    function _reentrancyGuardEntered() internal view returns (bool) {\n        return _reentrancyGuardStorageSlot().getUint256Slot().value == ENTERED;\n    }\n\n    function _reentrancyGuardStorageSlot() internal pure virtual returns (bytes32) {\n        return REENTRANCY_GUARD_STORAGE;\n    }\n}\n\n\n// File: BianYangNianToken.sol\n\n\n\n\n\n\n\n\n\n\ninterface IGoatCard {\n    function token() external view returns (address);\n    function MAX_SUPPLY() external view returns (uint256);\n    function totalSupply() external view returns (uint256);\n    function balanceOf(address who) external view returns (uint256);\n    function mintFromToken(address to) external returns (uint256);\n    function forwardSwapUSDT(uint256 amount) external;\n}\ninterface IGoatFactory {\n    function getPair(address a, address b) external view returns (address);\n    function createPair(address a, address b) external returns (address);\n}\ninterface IGoatPair is IERC20 {\n    function token0() external view returns (address);\n    function token1() external view returns (address);\n    function getReserves() external view returns (uint112, uint112, uint32);\n    function sync() external;\n    function mint(address to) external returns (uint256);\n}\ninterface IGoatRouter {\n    function factory() external view returns (address);\n    function getAmountsOut(uint256 amount, address[] calldata path) external view returns (uint256[] memory);\n    function swapExactTokensForTokensSupportingFeeOnTransferTokens(\n        uint256 amount, uint256 minOut, address[] calldata path, address to, uint256 deadline\n    ) external;\n}\n\n/// @notice Fixed-supply Mint, locked initial LP and equal-address USDT dividends.\ncontract BianYangNianToken is ERC20, Ownable, ReentrancyGuard {\n    using SafeERC20 for IERC20;\n    address public constant DEAD = 0x000000000000000000000000000000000000dEaD;\n    uint256 public constant MAX_SHARES = 1200;\n    uint256 public constant TOKENS_PER_SHARE = 100_000 ether;\n    uint256 public constant MINT_PRICE = 60 ether; // BSC USDT has 18 decimals.\n    uint256 public constant INITIAL_SUPPLY = 240_000_000 ether;\n    uint256 public constant MIN_REWARD_HOLDING = 50_000 ether;\n    uint256 public constant POOL_BURN_FLOOR = 1_000_000 ether;\n    uint256 private constant SCALE = 1e30;\n\n    IERC20 public immutable usdt;\n    IGoatRouter public immutable router;\n    address public immutable mainPair;\n    address public nft;\n    address public marketingWallet;\n    uint256 public mintedShares;\n    uint256 public liquidityUSDT;\n    bool public tradingOpen;\n    mapping(address => bool) public hasMinted;\n    mapping(address => bool) public feeWhitelist;\n    mapping(address => bool) public blacklist;\n    mapping(address => bool) public automatedMarketMakerPairs;\n\n    struct Tax { uint16 buyback; uint16 reward; uint16 marketing; }\n    Tax public buyTax = Tax(50, 150, 100);\n    Tax public sellTax = Tax(50, 150, 100);\n    uint256 public pendingBuybackTokens;\n    uint256 public pendingRewardTokens;\n    uint256 public pendingMarketingTokens;\n    uint256 public pendingBuybackUSDT;\n    uint256 public feeSwapThreshold = 1; // Raw token units; no artificial large threshold.\n    uint256 public swapSlippageBps = 500;\n    uint256 public lastPoolBurnTime;\n    bool private processing;\n\n    uint256 public rewardThreshold = 50 ether;\n    uint256 public queuedRewardUSDT;\n    uint256 public rewardLiabilityUSDT;\n    uint256 public rewardIndex;\n    uint256 public rewardCursor;\n    uint256 public rewardBatchSize = 25;\n    uint256 public rewardCycleRemaining;\n    uint256 public totalPaidUSDT;\n    address[] private activeHolders;\n    mapping(address => uint256) private holderPosition; // Index + 1; zero = ineligible.\n    mapping(address => uint256) private lastRewardIndex;\n    mapping(address => uint256) private creditUnits;\n    mapping(address => uint256) public paidUSDT;\n\n    error InvalidConfiguration();\n    error MintClosed();\n    error AlreadyMinted();\n    error TradingClosed();\n    error Blacklisted();\n    error OnlySelf();\n    error OnlyNFT();\n    error PoolBusy();\n    error NotEligible();\n    error ProcessingGasRequired(uint256 minimumRemainingGas);\n    event Minted(address indexed account, uint256 indexed share, uint256 nftId);\n    event TradingOpened(uint256 shares, uint256 tokens, uint256 usdtAmount, uint256 lockedLP);\n    event NFTLinked(address indexed nft);\n    event FeesConverted(uint256 tokens, uint256 usdtReceived, uint256 reward, uint256 marketing, uint256 buyback);\n    event BuybackBurned(uint256 usdtSpent, uint256 tokensBurned);\n    event RewardAllocated(uint256 amount, uint256 eligibleAddresses, uint256 index);\n    event RewardPaid(address indexed account, uint256 amount);\n    event PoolBurned(uint256 amount, uint256 hoursProcessed);\n    event ProcessingDeferred(bytes reason);\n    event WhitelistChanged(address indexed account, bool value);\n    event BlacklistChanged(address indexed account, bool value);\n    event TaxChanged(bool indexed buy, uint16 buyback, uint16 reward, uint16 marketing);\n    event MarketingWalletChanged(address indexed wallet);\n    event PairChanged(address indexed pair, bool value);\n    event ProcessingParametersChanged();\n\n    constructor(string memory symbol_, address usdt_, address router_, address marketing_, address owner_)\n        ERC20(unicode\"币安羊年\", symbol_) Ownable(owner_)\n    {\n        if (usdt_.code.length == 0 || router_.code.length == 0 || marketing_ == address(0)) revert InvalidConfiguration();\n        if (IERC20Metadata(usdt_).decimals() != 18) revert InvalidConfiguration();\n        usdt = IERC20(usdt_);\n        router = IGoatRouter(router_);\n        marketingWallet = marketing_;\n        IGoatFactory factory = IGoatFactory(router.factory());\n        address pair = factory.getPair(address(this), usdt_);\n        if (pair == address(0)) pair = factory.createPair(address(this), usdt_);\n        mainPair = pair;\n        automatedMarketMakerPairs[pair] = true;\n        feeWhitelist[address(this)] = true;\n        _approve(address(this), router_, type(uint256).max);\n        usdt.forceApprove(router_, type(uint256).max);\n        _mint(address(this), INITIAL_SUPPLY);\n    }\n\n    function setNFTContract(address value) external onlyOwner {\n        if (nft != address(0) || value.code.length == 0) revert InvalidConfiguration();\n        if (IGoatCard(value).token() != address(this) || IGoatCard(value).MAX_SUPPLY() != MAX_SHARES\n            || IGoatCard(value).totalSupply() != 0) revert InvalidConfiguration();\n        nft = value;\n        emit NFTLinked(value);\n    }\n\n    function mint() external nonReentrant {\n        if (tradingOpen || nft == address(0) || mintedShares >= MAX_SHARES) revert MintClosed();\n        if (hasMinted[msg.sender]) revert AlreadyMinted();\n        hasMinted[msg.sender] = true;\n        ++mintedShares;\n        uint256 beforeBalance = usdt.balanceOf(address(this));\n        usdt.safeTransferFrom(msg.sender, address(this), MINT_PRICE);\n        if (usdt.balanceOf(address(this)) - beforeBalance != MINT_PRICE) revert InvalidConfiguration();\n        liquidityUSDT += 42 ether;\n        usdt.safeTransfer(marketingWallet, 18 ether);\n        super._update(address(this), msg.sender, TOKENS_PER_SHARE);\n        _syncHolder(msg.sender);\n        uint256 id = IGoatCard(nft).mintFromToken(msg.sender);\n        emit Minted(msg.sender, mintedShares, id);\n        if (mintedShares == MAX_SHARES) _launch();\n    }\n\n    function openTrading() external onlyOwner nonReentrant { _launch(); }\n\n    function _launch() private {\n        if (tradingOpen || mintedShares == 0) revert InvalidConfiguration();\n        // Token transfers into pairs are gated before launch. A donated USDT balance\n        // or one-sided sync cannot block the initial mint, unlike router.addLiquidity.\n        if (IGoatPair(mainPair).totalSupply() != 0) revert InvalidConfiguration();\n        uint256 poolTokens = mintedShares * TOKENS_PER_SHARE;\n        uint256 funds = liquidityUSDT;\n        liquidityUSDT = 0;\n        processing = true;\n        super._update(address(this), mainPair, poolTokens);\n        usdt.safeTransfer(mainPair, funds);\n        uint256 lp = IGoatPair(mainPair).mint(DEAD);\n        uint256 unused = (MAX_SHARES - mintedShares) * TOKENS_PER_SHARE * 2;\n        if (unused != 0) super._update(address(this), DEAD, unused);\n        tradingOpen = true;\n        lastPoolBurnTime = block.timestamp;\n        processing = false;\n        emit TradingOpened(mintedShares, poolTokens, funds, lp);\n    }\n\n    function onNFTTransfer(address from, address to) external {\n        if (msg.sender != nft) revert OnlyNFT();\n        _syncHolder(from);\n        if (to != from) _syncHolder(to);\n    }\n\n    function isRewardEligible(address account) public view returns (bool) {\n        return account != address(0) && account != DEAD && account != address(this) && account != nft\n            && !automatedMarketMakerPairs[account] && nft != address(0)\n            && balanceOf(account) >= MIN_REWARD_HOLDING && IGoatCard(nft).balanceOf(account) > 0;\n    }\n\n    function eligibleAddressCount() external view returns (uint256) { return activeHolders.length; }\n    function eligibleAddressAt(uint256 index) external view returns (address) { return activeHolders[index]; }\n    function pendingUSDT(address account) public view returns (uint256) {\n        uint256 units = creditUnits[account];\n        if (holderPosition[account] != 0) units += rewardIndex - lastRewardIndex[account];\n        return units / SCALE;\n    }\n\n    function _settle(address account) private {\n        if (holderPosition[account] != 0) creditUnits[account] += rewardIndex - lastRewardIndex[account];\n        lastRewardIndex[account] = rewardIndex;\n    }\n\n    function _syncHolder(address account) private {\n        if (account == address(0) || account == DEAD || account == address(this)) return;\n        _settle(account);\n        bool eligible = isRewardEligible(account);\n        uint256 position = holderPosition[account];\n        if (eligible && position == 0) {\n            activeHolders.push(account);\n            holderPosition[account] = activeHolders.length;\n            if (rewardCycleRemaining != 0 || creditUnits[account] >= SCALE) rewardCycleRemaining = activeHolders.length;\n        } else if (!eligible && position != 0) {\n            uint256 last = activeHolders.length;\n            if (position != last) {\n                address moved = activeHolders[last - 1];\n                activeHolders[position - 1] = moved;\n                holderPosition[moved] = position;\n            }\n            activeHolders.pop();\n            delete holderPosition[account];\n            if (rewardCursor >= activeHolders.length) rewardCursor = 0;\n            if (rewardCycleRemaining != 0) rewardCycleRemaining = activeHolders.length;\n        }\n    }\n\n    function _allocateRewards() private {\n        uint256 count = activeHolders.length;\n        uint256 amount = queuedRewardUSDT;\n        if (count == 0 || amount == 0 || amount < rewardThreshold) return;\n        queuedRewardUSDT = 0;\n        rewardLiabilityUSDT += amount;\n        rewardIndex += amount * SCALE / count;\n        rewardCycleRemaining = count;\n        emit RewardAllocated(amount, count, rewardIndex);\n    }\n\n    function processRewards(uint256 maxAccounts) external nonReentrant {\n        if (maxAccounts == 0) revert InvalidConfiguration();\n        if (activeHolders.length != 0 && (queuedRewardUSDT >= rewardThreshold || rewardLiabilityUSDT > MAX_SHARES)) {\n            if (gasleft() < 350_000) revert ProcessingGasRequired(350_000);\n            if (rewardCycleRemaining == 0) rewardCycleRemaining = activeHolders.length;\n        }\n        _allocateRewards();\n        _payBatch(maxAccounts);\n    }\n\n    function autoPayRewards() external {\n        if (msg.sender != address(this)) revert OnlySelf();\n        _allocateRewards();\n        _payBatch(rewardBatchSize);\n    }\n\n    function payOne(address account) external {\n        if (msg.sender != address(this)) revert OnlySelf();\n        if (!isRewardEligible(account)) revert NotEligible();\n        _settle(account);\n        uint256 amount = creditUnits[account] / SCALE;\n        if (amount == 0) return;\n        creditUnits[account] -= amount * SCALE;\n        rewardLiabilityUSDT -= amount;\n        paidUSDT[account] += amount;\n        totalPaidUSDT += amount;\n        usdt.safeTransfer(account, amount);\n        emit RewardPaid(account, amount);\n    }\n\n    function _payBatch(uint256 maxAccounts) private {\n        uint256 count = activeHolders.length;\n        uint256 limit = maxAccounts < count ? maxAccounts : count;\n        if (limit > rewardCycleRemaining) limit = rewardCycleRemaining;\n        for (uint256 i; i < limit && gasleft() > 230_000; ++i) {\n            if (rewardCursor >= count) rewardCursor = 0;\n            address account = activeHolders[rewardCursor++];\n            --rewardCycleRemaining;\n            // A rejected transfer rolls back only this account's debit and is retried.\n            try this.payOne{gas: 200_000}(account) {} catch (bytes memory reason) { emit ProcessingDeferred(reason); }\n        }\n    }\n\n    function pendingFeeTokens() public view returns (uint256) {\n        return pendingBuybackTokens + pendingRewardTokens + pendingMarketingTokens;\n    }\n\n    function processFees() external nonReentrant {\n        if (!tradingOpen || !_poolIdle()) revert PoolBusy();\n        _convertFees();\n        _buyback();\n        _allocateRewards();\n        if (rewardCycleRemaining != 0 && gasleft() < 350_000) revert ProcessingGasRequired(350_000);\n        _payBatch(rewardBatchSize);\n    }\n\n    function autoProcessFees() external {\n        if (msg.sender != address(this)) revert OnlySelf();\n        if (!_poolIdle()) revert PoolBusy();\n        _convertFees();\n        _buyback();\n    }\n\n    function _quote(uint256 amount, address a, address b) private view returns (uint256) {\n        address[] memory path = new address[](2);\n        path[0] = a; path[1] = b;\n        uint256[] memory result = router.getAmountsOut(amount, path);\n        return result[1] * (10_000 - swapSlippageBps) / 10_000;\n    }\n\n    function _swap(uint256 amount, uint256 minimum, address a, address b, address to) private {\n        address[] memory path = new address[](2);\n        path[0] = a; path[1] = b;\n        router.swapExactTokensForTokensSupportingFeeOnTransferTokens(amount, minimum, path, to, block.timestamp);\n    }\n\n    function _convertFees() private {\n        uint256 amount = pendingFeeTokens();\n        if (amount == 0 || amount < feeSwapThreshold) return;\n        uint256 minimum = _quote(amount, address(this), address(usdt));\n        if (minimum == 0) return;\n        uint256 buybackTokens = pendingBuybackTokens;\n        uint256 marketingTokens = pendingMarketingTokens;\n        pendingBuybackTokens = 0; pendingRewardTokens = 0; pendingMarketingTokens = 0;\n        uint256 beforeBalance = usdt.balanceOf(address(this));\n        uint256 beforeNFTBalance = usdt.balanceOf(nft);\n        processing = true;\n        _swap(amount, minimum, address(this), address(usdt), nft);\n        IGoatCard(nft).forwardSwapUSDT(usdt.balanceOf(nft) - beforeNFTBalance);\n        uint256 received = usdt.balanceOf(address(this)) - beforeBalance;\n        uint256 buyback = received * buybackTokens / amount;\n        uint256 marketing = received * marketingTokens / amount;\n        uint256 reward = received - buyback - marketing;\n        pendingBuybackUSDT += buyback;\n        queuedRewardUSDT += reward;\n        if (marketing != 0) usdt.safeTransfer(marketingWallet, marketing);\n        processing = false;\n        emit FeesConverted(amount, received, reward, marketing, buyback);\n    }\n\n    function _buyback() private {\n        uint256 amount = pendingBuybackUSDT;\n        if (amount == 0) return;\n        uint256 minimum = _quote(amount, address(usdt), address(this));\n        if (minimum == 0) return;\n        pendingBuybackUSDT = 0;\n        uint256 beforeBalance = balanceOf(DEAD);\n        processing = true;\n        _swap(amount, minimum, address(usdt), address(this), DEAD);\n        processing = false;\n        emit BuybackBurned(amount, balanceOf(DEAD) - beforeBalance);\n    }\n\n    function burnPool() external nonReentrant returns (uint256) { return _burnPool(); }\n    function autoBurnPool() external returns (uint256) {\n        if (msg.sender != address(this)) revert OnlySelf();\n        return _burnPool();\n    }\n    function _poolIdle() private view returns (bool) {\n        (uint112 r0, uint112 r1,) = IGoatPair(mainPair).getReserves();\n        bool first = IGoatPair(mainPair).token0() == address(this);\n        return balanceOf(mainPair) == (first ? r0 : r1) && usdt.balanceOf(mainPair) == (first ? r1 : r0);\n    }\n    function _burnPool() private returns (uint256 amount) {\n        if (!tradingOpen || block.timestamp < lastPoolBurnTime + 1 hours) return 0;\n        uint256 balance = balanceOf(mainPair);\n        uint256 periods = (block.timestamp - lastPoolBurnTime) / 1 hours;\n        if (balance <= POOL_BURN_FLOOR) {\n            lastPoolBurnTime += periods * 1 hours;\n            return 0;\n        }\n        if (!_poolIdle()) return 0;\n        // Compound missed hours in O(log n), never one unbounded loop per hour.\n        uint256 ratio = 1e18;\n        uint256 base = 995e15;\n        uint256 n = periods;\n        while (n != 0) {\n            if (n & 1 != 0) ratio = ratio * base / 1e18;\n            base = base * base / 1e18;\n            n >>= 1;\n        }\n        amount = balance - balance * ratio / 1e18;\n        if (amount > balance - POOL_BURN_FLOOR) amount = balance - POOL_BURN_FLOOR;\n        lastPoolBurnTime += periods * 1 hours;\n        if (amount != 0) {\n            super._update(mainPair, DEAD, amount);\n            IGoatPair(mainPair).sync();\n            emit PoolBurned(amount, periods);\n        }\n    }\n\n    function _update(address from, address to, uint256 amount) internal override {\n        if (from == address(0) || processing) {\n            super._update(from, to, amount);\n            if (from != address(0)) { _syncHolder(from); if (from != to) _syncHolder(to); }\n            return;\n        }\n        bool buy = automatedMarketMakerPairs[from];\n        bool sell = automatedMarketMakerPairs[to];\n        if (buy || sell) {\n            if (blacklist[from] || blacklist[to]) revert Blacklisted();\n            if (!tradingOpen) revert TradingClosed();\n        }\n        if (tradingOpen && !buy && block.timestamp >= lastPoolBurnTime + 1 hours) {\n            if (gasleft() < 220_000) revert ProcessingGasRequired(220_000);\n            try this.autoBurnPool{gas: 160_000}() {} catch (bytes memory reason) { emit ProcessingDeferred(reason); }\n        }\n        uint256 fee;\n        if ((buy || sell) && !feeWhitelist[from] && !feeWhitelist[to]) {\n            Tax memory tax = buy ? buyTax : sellTax;\n            uint256 burnPart = amount * tax.buyback / 10_000;\n            uint256 rewardPart = amount * tax.reward / 10_000;\n            uint256 marketingPart = amount * tax.marketing / 10_000;\n            fee = burnPart + rewardPart + marketingPart;\n            if (fee != 0) {\n                super._update(from, address(this), fee);\n                pendingBuybackTokens += burnPart;\n                pendingRewardTokens += rewardPart;\n                pendingMarketingTokens += marketingPart;\n            }\n        }\n        // Sell the tax before placing this user's net input into the pair. Selling\n        // after that deposit would consume the user's AMM input in the nested swap.\n        if (tradingOpen && !buy && (pendingFeeTokens() >= feeSwapThreshold || pendingBuybackUSDT != 0)) {\n            if (gasleft() < 750_000) revert ProcessingGasRequired(750_000);\n            try this.autoProcessFees{gas: 650_000}() {} catch (bytes memory reason) { emit ProcessingDeferred(reason); }\n        }\n        super._update(from, to, amount - fee);\n        _syncHolder(from);\n        if (from != to) _syncHolder(to);\n        if (tradingOpen && (rewardCycleRemaining != 0 || (activeHolders.length != 0 && queuedRewardUSDT >= rewardThreshold))) {\n            // Prevent eth_estimateGas from finding a cheap successful path where\n            // every automatic payout silently runs out of gas and is caught.\n            if (gasleft() < 1_900_000) revert ProcessingGasRequired(1_900_000);\n            try this.autoPayRewards{gas: 1_800_000}() {} catch (bytes memory reason) { emit ProcessingDeferred(reason); }\n        }\n    }\n\n    function setBuyTax(uint16 buybackBps, uint16 rewardBps, uint16 marketingBps) external onlyOwner {\n        _validateTax(buybackBps, rewardBps, marketingBps);\n        buyTax = Tax(buybackBps, rewardBps, marketingBps);\n        emit TaxChanged(true, buybackBps, rewardBps, marketingBps);\n    }\n    function setSellTax(uint16 buybackBps, uint16 rewardBps, uint16 marketingBps) external onlyOwner {\n        _validateTax(buybackBps, rewardBps, marketingBps);\n        sellTax = Tax(buybackBps, rewardBps, marketingBps);\n        emit TaxChanged(false, buybackBps, rewardBps, marketingBps);\n    }\n    function _validateTax(uint16 a, uint16 b, uint16 c) private pure {\n        if (uint256(a) + b + c > 10_000) revert InvalidConfiguration();\n    }\n    function setMarketingWallet(address value) external onlyOwner {\n        if (value == address(0) || value == address(this) || automatedMarketMakerPairs[value]) revert InvalidConfiguration();\n        marketingWallet = value;\n        emit MarketingWalletChanged(value);\n    }\n    function setRewardThreshold(uint256 wholeUSDT) external onlyOwner {\n        if (wholeUSDT == 0 || wholeUSDT > type(uint256).max / 1 ether) revert InvalidConfiguration();\n        rewardThreshold = wholeUSDT * 1 ether;\n        emit ProcessingParametersChanged();\n    }\n    function setFeeSwapThreshold(uint256 rawTokenUnits) external onlyOwner {\n        if (rawTokenUnits == 0) revert InvalidConfiguration();\n        feeSwapThreshold = rawTokenUnits;\n        emit ProcessingParametersChanged();\n    }\n    function setRewardBatchSize(uint256 addressesPerCall) external onlyOwner {\n        if (addressesPerCall == 0) revert InvalidConfiguration();\n        rewardBatchSize = addressesPerCall;\n        emit ProcessingParametersChanged();\n    }\n    function setSwapSlippageBps(uint256 bps) external onlyOwner {\n        if (bps >= 10_000) revert InvalidConfiguration();\n        swapSlippageBps = bps;\n        emit ProcessingParametersChanged();\n    }\n    function setFeeWhitelist(address account, bool value) public onlyOwner {\n        feeWhitelist[account] = value;\n        emit WhitelistChanged(account, value);\n    }\n    function setBlacklist(address account, bool value) public onlyOwner {\n        blacklist[account] = value;\n        emit BlacklistChanged(account, value);\n    }\n    function batchSetWhitelist(string calldata accounts, bool value) external onlyOwner {\n        address[] memory list = _parseAddresses(accounts);\n        for (uint256 i; i < list.length; ++i) setFeeWhitelist(list[i], value);\n    }\n    function batchSetBlacklist(string calldata accounts, bool value) external onlyOwner {\n        address[] memory list = _parseAddresses(accounts);\n        for (uint256 i; i < list.length; ++i) setBlacklist(list[i], value);\n    }\n    function setAutomatedMarketMakerPair(address pair, bool value) external onlyOwner {\n        if (pair == mainPair || pair.code.length == 0) revert InvalidConfiguration();\n        if (IGoatPair(pair).token0() != address(this) && IGoatPair(pair).token1() != address(this)) revert InvalidConfiguration();\n        automatedMarketMakerPairs[pair] = value;\n        _syncHolder(pair);\n        emit PairChanged(pair, value);\n    }\n    function _parseAddresses(string calldata text) private pure returns (address[] memory result) {\n        bytes calldata data = bytes(text);\n        result = new address[](data.length / 42 + 1);\n        uint256 count;\n        uint256 i;\n        while (i < data.length) {\n            if (_separator(uint8(data[i]))) { ++i; continue; }\n            if (i + 42 > data.length || data[i] != '0' || (data[i+1] != 'x' && data[i+1] != 'X')) revert InvalidConfiguration();\n            uint160 value;\n            for (uint256 k = i + 2; k < i + 42; ++k) {\n                uint8 c = uint8(data[k]);\n                uint8 digit;\n                if (c >= 48 && c <= 57) digit = c - 48;\n                else if (c >= 65 && c <= 70) digit = c - 55;\n                else if (c >= 97 && c <= 102) digit = c - 87;\n                else revert InvalidConfiguration();\n                value = (value << 4) | digit;\n            }\n            result[count++] = address(value);\n            i += 42;\n            if (i < data.length && !_separator(uint8(data[i]))) revert InvalidConfiguration();\n        }\n        if (count == 0) revert InvalidConfiguration();\n        assembly (\"memory-safe\") { mstore(result, count) }\n    }\n    function _separator(uint8 c) private pure returns (bool) { return c == 44 || c == 32 || c == 10 || c == 13 || c == 9; }\n}\n"
    }
  },
  "settings": {
    "optimizer": {
      "enabled": true,
      "runs": 200
    },
    "evmVersion": "cancun",
    "outputSelection": {
      "*": {
        "*": [
          "abi",
          "evm.bytecode",
          "evm.deployedBytecode"
        ]
      }
    }
  }
}