ETH Price: $2,366.54 (-4.15%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...210681882024-10-29 2:04:116 days ago1730167451IN
0x143b3403...822fFf5b4
0 ETH0.000583979.69467639
Set Approval For...208586222024-09-29 20:14:5936 days ago1727640899IN
0x143b3403...822fFf5b4
0 ETH0.000502118.33227403
Set Approval For...208555442024-09-29 9:57:2336 days ago1727603843IN
0x143b3403...822fFf5b4
0 ETH0.000494368.20703181
Safe Transfer Fr...208462632024-09-28 2:51:3537 days ago1727491895IN
0x143b3403...822fFf5b4
0 ETH0.000303926.2645738
Set Approval For...207478602024-09-14 9:09:3551 days ago1726304975IN
0x143b3403...822fFf5b4
0 ETH0.000145552.41633071
Set Approval For...203151052024-07-15 23:11:11111 days ago1721085071IN
0x143b3403...822fFf5b4
0 ETH0.000519548.62501482
Withdraw199228162024-05-22 3:41:47166 days ago1716349307IN
0x143b3403...822fFf5b4
0 ETH0.000257777.74644765
Set Approval For...199223962024-05-22 2:17:11166 days ago1716344231IN
0x143b3403...822fFf5b4
0 ETH0.000596689.90561587
Transfer From198968782024-05-18 12:38:35170 days ago1716035915IN
0x143b3403...822fFf5b4
0 ETH0.000145223.35440056
Safe Transfer Fr...198968222024-05-18 12:27:23170 days ago1716035243IN
0x143b3403...822fFf5b4
0 ETH0.000301813.26597432
Set Approval For...198913892024-05-17 18:10:59171 days ago1715969459IN
0x143b3403...822fFf5b4
0 ETH0.000397896.60542432
Transfer Ownersh...198900782024-05-17 13:46:11171 days ago1715953571IN
0x143b3403...822fFf5b4
0 ETH0.000180096.19445954
Set Approval For...198872192024-05-17 4:09:23171 days ago1715918963IN
0x143b3403...822fFf5b4
0 ETH0.000194193.22391485
Set Approval For...198871402024-05-17 3:53:35171 days ago1715918015IN
0x143b3403...822fFf5b4
0 ETH0.000206663.42604099
Set Claim Enable...198849822024-05-16 20:40:35172 days ago1715892035IN
0x143b3403...822fFf5b4
0 ETH0.000107823.70688034
Set Paused198849752024-05-16 20:39:11172 days ago1715891951IN
0x143b3403...822fFf5b4
0 ETH0.000119394.11289572
Set Approval For...198849552024-05-16 20:34:59172 days ago1715891699IN
0x143b3403...822fFf5b4
0 ETH0.000263464.37376109
Claim198847122024-05-16 19:45:59172 days ago1715888759IN
0x143b3403...822fFf5b4
0 ETH0.001242615.09878769
Mint198846292024-05-16 19:29:23172 days ago1715887763IN
0x143b3403...822fFf5b4
0.0738 ETH0.000478315.3388544
Claim198845542024-05-16 19:14:23172 days ago1715886863IN
0x143b3403...822fFf5b4
0 ETH0.003496915.08749221
Claim198845202024-05-16 19:07:35172 days ago1715886455IN
0x143b3403...822fFf5b4
0 ETH0.003299056.16560093
Claim198844372024-05-16 18:50:59172 days ago1715885459IN
0x143b3403...822fFf5b4
0 ETH0.00083344.23902325
Claim198844232024-05-16 18:48:11172 days ago1715885291IN
0x143b3403...822fFf5b4
0 ETH0.001028395.2308168
Claim198843232024-05-16 18:27:59172 days ago1715884079IN
0x143b3403...822fFf5b4
0 ETH0.000880774.59206915
Claim198842992024-05-16 18:22:59172 days ago1715883779IN
0x143b3403...822fFf5b4
0 ETH0.007727294.61972009
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
199228162024-05-22 3:41:47166 days ago1716349307
0x143b3403...822fFf5b4
0.2583 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Dwellers

Compiler Version
v0.8.25+commit.b61c2a91

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : Dwellers.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.13 <0.9.0;

import "erc721a/contracts/extensions/ERC721AQueryable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "operator-filter-registry/src/DefaultOperatorFilterer.sol";

contract Dwellers is
    ERC721AQueryable,
    Ownable,
    ReentrancyGuard,
    DefaultOperatorFilterer
{
    using Strings for uint256;


    mapping(uint256 => bool) public tokensClaimed;
    mapping(uint256 => bool) public blacklistedTokens;

    string public uriPrefix = "";
    string public uriSuffix = ".json";
    string public hiddenMetadataUri;

    uint256 public cost = 0.0369 ether;
    uint256 public maxSupply = 3333;
    uint256 public maxMintAmountPerTx = 20;
    bool public paused = true;
    bool public claimEnabled = false;
    bool public revealed = false;

    uint256 public tokensToBurn = 2;
    address public dwellersAddress = 0x6bF14d09F5600eD683abce94b6C43F7Cb429d308;
    address public burnAddress = 0x000000000000000000000000000000000000dEaD;
    constructor() ERC721A("dwellers", "DWLR") Ownable(msg.sender) {}

    modifier mintCompliance(uint256 _mintAmount) {
        require(
            totalSupply() + _mintAmount <= maxSupply,
            "Max supply exceeded!"
        );
        require(
            _mintAmount > 0 && _mintAmount <= maxMintAmountPerTx,
            "Invalid mint amount!"
        );
        _;
    }

    modifier mintPriceCompliance(uint256 _mintAmount) {
        require(msg.value >= cost * _mintAmount, "Insufficient funds!");
        _;
    }

    function claim(uint256[] calldata tokenIds) external {
        
        uint256 totalPairs = tokenIds.length / 2;
        require(claimEnabled, "Claim is not enabled!");
        require(tokenIds.length % 2 == 0, "Tokens must be in 2 pairs!");
        require(totalPairs <= maxMintAmountPerTx, "Max mint amount exceeded!");
        require(
            totalSupply() + totalPairs <= maxSupply,
            "Max supply exceeded!"
        );

        IERC721 dwellers = IERC721(dwellersAddress);

        for (uint256 i = 0; i < tokenIds.length; i++) {
            require(
                dwellers.ownerOf(tokenIds[i]) == msg.sender,
                "You do not own this token!"
            );
            require(
                blacklistedTokens[tokenIds[i]] == false,
                "Token is blacklisted!"
            );
            require(
                tokensClaimed[tokenIds[i]] == false,
                "Token has already been claimed!"
            );

            dwellers.transferFrom(msg.sender, burnAddress, tokenIds[i]);
            tokensClaimed[tokenIds[i]] = true;
        }
        _safeMint(msg.sender, totalPairs);
    }

    function mint(
        uint256 _mintAmount
    )
        public
        payable
        mintCompliance(_mintAmount)
        mintPriceCompliance(_mintAmount)
        nonReentrant
    {
        require(!paused, "The contract is paused!");
        _safeMint(_msgSender(), _mintAmount);
    }

    function airdrop(uint256 _mintAmount, address _receiver) public onlyOwner {
        require(
            totalSupply() + _mintAmount <= maxSupply,
            "Max supply exceeded!"
        );
        _safeMint(_receiver, _mintAmount);
    }

    function _startTokenId() internal view virtual override returns (uint256) {
        return 1;
    }

    function _baseURI()
        internal
        view
        virtual
        override(ERC721A)
        returns (string memory)
    {
        return uriPrefix;
    }

    function tokenURI(
        uint256 _tokenId
    ) public view virtual override(ERC721A, IERC721A) returns (string memory) {
        require(
            _exists(_tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );

        if (revealed == false) {
            return hiddenMetadataUri;
        }

        string memory currentBaseURI = _baseURI();
        return
            bytes(currentBaseURI).length > 0
                ? string(
                    abi.encodePacked(
                        currentBaseURI,
                        _tokenId.toString(),
                        uriSuffix
                    )
                )
                : "";
    }

    function setRevealed(bool _state) public onlyOwner {
        revealed = _state;
    }

    function setCost(uint256 _cost) public onlyOwner {
        cost = _cost;
    }

    function setMaxSupply(uint256 _maxSupply) public onlyOwner {
        maxSupply = _maxSupply;
    }

    function setMaxMintAmountPerTx(
        uint256 _maxMintAmountPerTx
    ) public onlyOwner {
        maxMintAmountPerTx = _maxMintAmountPerTx;
    }

    function setClaimEnabled(bool _state) public onlyOwner {
        claimEnabled = _state;
    }

    function setTokensToBurn(uint256 _tokensToBurn) public onlyOwner {
        tokensToBurn = _tokensToBurn;
    }

    function setDwellersAddress(address _dwellersAddress) public onlyOwner {
        dwellersAddress = _dwellersAddress;
    }

    function setBurnAddress(address _burnAddress) public onlyOwner {
        burnAddress = _burnAddress;
    }

    function setBlacklistedToken(
        uint256[] memory _tokenId,
        bool _state
    ) public onlyOwner {
        for (uint256 i = 0; i < _tokenId.length; i++) {
            blacklistedTokens[_tokenId[i]] = _state;
        }
    }

    function setHiddenMetadataUri(
        string memory _hiddenMetadataUri
    ) public onlyOwner {
        hiddenMetadataUri = _hiddenMetadataUri;
    }

    function setUriPrefix(string memory _uriPrefix) public onlyOwner {
        uriPrefix = _uriPrefix;
    }

    function setUriSuffix(string memory _uriSuffix) public onlyOwner {
        uriSuffix = _uriSuffix;
    }

    function setPaused(bool _state) public onlyOwner {
        paused = _state;
    }

    function setApprovalForAll(
        address operator,
        bool approved
    ) public override(ERC721A, IERC721A) onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }

    function approve(
        address operator,
        uint256 tokenId
    )
        public
        payable
        override(ERC721A, IERC721A)
        onlyAllowedOperatorApproval(operator)
    {
        super.approve(operator, tokenId);
    }

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable override(ERC721A, IERC721A) onlyAllowedOperator(from) {
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable override(ERC721A, IERC721A) onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public payable override(ERC721A, IERC721A) onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId, data);
    }

    function withdraw() public onlyOwner nonReentrant {
        (bool wf, ) = payable(owner()).call{value: address(this).balance}("");
        require(wf);
    }
}

File 2 of 17 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";
import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol";
/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 * @dev    Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract DefaultOperatorFilterer is OperatorFilterer {
    /// @dev The constructor that is called when the contract is being deployed.
    constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {}
}

File 3 of 17 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

File 4 of 17 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)

pragma solidity ^0.8.20;

import {Math} from "./math/Math.sol";
import {SignedMath} from "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant HEX_DIGITS = "0123456789abcdef";
    uint8 private constant ADDRESS_LENGTH = 20;

    /**
     * @dev The `value` string doesn't fit in the specified `length`.
     */
    error StringsInsufficientHexLength(uint256 value, uint256 length);

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toStringSigned(int256 value) internal pure returns (string memory) {
        return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value)));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        uint256 localValue = value;
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = HEX_DIGITS[localValue & 0xf];
            localValue >>= 4;
        }
        if (localValue != 0) {
            revert StringsInsufficientHexLength(value, length);
        }
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal
     * representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 5 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * The initial owner is set to the address provided by the deployer. This can
 * later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 6 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon
     *   a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or
     *   {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon
     *   a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the address zero.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

File 7 of 17 : ERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721AQueryable.sol';
import '../ERC721A.sol';

/**
 * @title ERC721AQueryable.
 *
 * @dev ERC721A subclass with convenience query functions.
 */
abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable {
    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *
     * - `addr = address(0)`
     * - `startTimestamp = 0`
     * - `burned = false`
     * - `extraData = 0`
     *
     * If the `tokenId` is burned:
     *
     * - `addr = <Address of owner before token was burned>`
     * - `startTimestamp = <Timestamp when token was burned>`
     * - `burned = true`
     * - `extraData = <Extra data when token was burned>`
     *
     * Otherwise:
     *
     * - `addr = <Address of owner>`
     * - `startTimestamp = <Timestamp of start of ownership>`
     * - `burned = false`
     * - `extraData = <Extra data at start of ownership>`
     */
    function explicitOwnershipOf(uint256 tokenId)
        public
        view
        virtual
        override
        returns (TokenOwnership memory ownership)
    {
        unchecked {
            if (tokenId >= _startTokenId()) {
                if (tokenId > _sequentialUpTo()) return _ownershipAt(tokenId);

                if (tokenId < _nextTokenId()) {
                    // If the `tokenId` is within bounds,
                    // scan backwards for the initialized ownership slot.
                    while (!_ownershipIsInitialized(tokenId)) --tokenId;
                    return _ownershipAt(tokenId);
                }
            }
        }
    }

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] calldata tokenIds)
        external
        view
        virtual
        override
        returns (TokenOwnership[] memory)
    {
        TokenOwnership[] memory ownerships;
        uint256 i = tokenIds.length;
        assembly {
            // Grab the free memory pointer.
            ownerships := mload(0x40)
            // Store the length.
            mstore(ownerships, i)
            // Allocate one word for the length,
            // `tokenIds.length` words for the pointers.
            i := shl(5, i) // Multiply `i` by 32.
            mstore(0x40, add(add(ownerships, 0x20), i))
        }
        while (i != 0) {
            uint256 tokenId;
            assembly {
                i := sub(i, 0x20)
                tokenId := calldataload(add(tokenIds.offset, i))
            }
            TokenOwnership memory ownership = explicitOwnershipOf(tokenId);
            assembly {
                // Store the pointer of `ownership` in the `ownerships` array.
                mstore(add(add(ownerships, 0x20), i), ownership)
            }
        }
        return ownerships;
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start < stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view virtual override returns (uint256[] memory) {
        return _tokensOfOwnerIn(owner, start, stop);
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(`totalSupply`) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K collections should be fine).
     */
    function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) {
        // If spot mints are enabled, full-range scan is disabled.
        if (_sequentialUpTo() != type(uint256).max) _revert(NotCompatibleWithSpotMints.selector);
        uint256 start = _startTokenId();
        uint256 stop = _nextTokenId();
        uint256[] memory tokenIds;
        if (start != stop) tokenIds = _tokensOfOwnerIn(owner, start, stop);
        return tokenIds;
    }

    /**
     * @dev Helper function for returning an array of token IDs owned by `owner`.
     *
     * Note that this function is optimized for smaller bytecode size over runtime gas,
     * since it is meant to be called off-chain.
     */
    function _tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) private view returns (uint256[] memory tokenIds) {
        unchecked {
            if (start >= stop) _revert(InvalidQueryRange.selector);
            // Set `start = max(start, _startTokenId())`.
            if (start < _startTokenId()) start = _startTokenId();
            uint256 nextTokenId = _nextTokenId();
            // If spot mints are enabled, scan all the way until the specified `stop`.
            uint256 stopLimit = _sequentialUpTo() != type(uint256).max ? stop : nextTokenId;
            // Set `stop = min(stop, stopLimit)`.
            if (stop >= stopLimit) stop = stopLimit;
            // Number of tokens to scan.
            uint256 tokenIdsMaxLength = balanceOf(owner);
            // Set `tokenIdsMaxLength` to zero if the range contains no tokens.
            if (start >= stop) tokenIdsMaxLength = 0;
            // If there are one or more tokens to scan.
            if (tokenIdsMaxLength != 0) {
                // Set `tokenIdsMaxLength = min(balanceOf(owner), tokenIdsMaxLength)`.
                if (stop - start <= tokenIdsMaxLength) tokenIdsMaxLength = stop - start;
                uint256 m; // Start of available memory.
                assembly {
                    // Grab the free memory pointer.
                    tokenIds := mload(0x40)
                    // Allocate one word for the length, and `tokenIdsMaxLength` words
                    // for the data. `shl(5, x)` is equivalent to `mul(32, x)`.
                    m := add(tokenIds, shl(5, add(tokenIdsMaxLength, 1)))
                    mstore(0x40, m)
                }
                // We need to call `explicitOwnershipOf(start)`,
                // because the slot at `start` may not be initialized.
                TokenOwnership memory ownership = explicitOwnershipOf(start);
                address currOwnershipAddr;
                // If the starting slot exists (i.e. not burned),
                // initialize `currOwnershipAddr`.
                // `ownership.address` will not be zero,
                // as `start` is clamped to the valid token ID range.
                if (!ownership.burned) currOwnershipAddr = ownership.addr;
                uint256 tokenIdsIdx;
                // Use a do-while, which is slightly more efficient for this case,
                // as the array will at least contain one element.
                do {
                    if (_sequentialUpTo() != type(uint256).max) {
                        // Skip the remaining unused sequential slots.
                        if (start == nextTokenId) start = _sequentialUpTo() + 1;
                        // Reset `currOwnershipAddr`, as each spot-minted token is a batch of one.
                        if (start > _sequentialUpTo()) currOwnershipAddr = address(0);
                    }
                    ownership = _ownershipAt(start); // This implicitly allocates memory.
                    assembly {
                        switch mload(add(ownership, 0x40))
                        // if `ownership.burned == false`.
                        case 0 {
                            // if `ownership.addr != address(0)`.
                            // The `addr` already has it's upper 96 bits clearned,
                            // since it is written to memory with regular Solidity.
                            if mload(ownership) {
                                currOwnershipAddr := mload(ownership)
                            }
                            // if `currOwnershipAddr == owner`.
                            // The `shl(96, x)` is to make the comparison agnostic to any
                            // dirty upper 96 bits in `owner`.
                            if iszero(shl(96, xor(currOwnershipAddr, owner))) {
                                tokenIdsIdx := add(tokenIdsIdx, 1)
                                mstore(add(tokenIds, shl(5, tokenIdsIdx)), start)
                            }
                        }
                        // Otherwise, reset `currOwnershipAddr`.
                        // This handles the case of batch burned tokens
                        // (burned bit of first slot set, remaining slots left uninitialized).
                        default {
                            currOwnershipAddr := 0
                        }
                        start := add(start, 1)
                        // Free temporary memory implicitly allocated for ownership
                        // to avoid quadratic memory expansion costs.
                        mstore(0x40, m)
                    }
                } while (!(start == stop || tokenIdsIdx == tokenIdsMaxLength));
                // Store the length of the array.
                assembly {
                    mstore(tokenIds, tokenIdsIdx)
                }
            }
        }
    }
}

File 8 of 17 : Constants.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E;
address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;

File 9 of 17 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";
import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol";
/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 *         Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract OperatorFilterer {
    /// @dev Emitted when an operator is not allowed.
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS);

    /// @dev The constructor that is called when the contract is being deployed.
    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    /**
     * @dev A helper function to check if an operator approval is allowed.
     */
    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            // under normal circumstances, this function will revert rather than return false, but inheriting contracts
            // may specify their own OperatorFilterRegistry implementations, which may behave differently
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

File 10 of 17 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @dev Interface of ERC721 token receiver.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * The `_sequentialUpTo()` function can be overriden to enable spot mints
 * (i.e. non-consecutive mints) for `tokenId`s greater than `_sequentialUpTo()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================

    // Mask of an entry in packed address data.
    uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant _BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant _BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant _BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant _BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant _BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The bit position of `extraData` in packed ownership.
    uint256 private constant _BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with {_mintERC2309}.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID to be minted.
    uint256 private _currentIndex;

    // The number of tokens burned.
    uint256 private _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See {_packedOwnershipOf} implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

    // Mapping from token ID to approved address.
    mapping(uint256 => TokenApprovalRef) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    // The amount of tokens minted above `_sequentialUpTo()`.
    // We call these spot mints (i.e. non-sequential mints).
    uint256 private _spotMinted;

    // =============================================================
    //                          CONSTRUCTOR
    // =============================================================

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();

        if (_sequentialUpTo() < _startTokenId()) _revert(SequentialUpToTooSmall.selector);
    }

    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

    /**
     * @dev Returns the starting token ID for sequential mints.
     *
     * Override this function to change the starting token ID for sequential mints.
     *
     * Note: The value returned must never change after any tokens have been minted.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Returns the maximum token ID (inclusive) for sequential mints.
     *
     * Override this function to return a value less than 2**256 - 1,
     * but greater than `_startTokenId()`, to enable spot (non-sequential) mints.
     *
     * Note: The value returned must never change after any tokens have been minted.
     */
    function _sequentialUpTo() internal view virtual returns (uint256) {
        return type(uint256).max;
    }

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view virtual returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() public view virtual override returns (uint256 result) {
        // Counter underflow is impossible as `_burnCounter` cannot be incremented
        // more than `_currentIndex + _spotMinted - _startTokenId()` times.
        unchecked {
            // With spot minting, the intermediate `result` can be temporarily negative,
            // and the computation must be unchecked.
            result = _currentIndex - _burnCounter - _startTokenId();
            if (_sequentialUpTo() != type(uint256).max) result += _spotMinted;
        }
    }

    /**
     * @dev Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view virtual returns (uint256 result) {
        // Counter underflow is impossible as `_currentIndex` does not decrement,
        // and it is initialized to `_startTokenId()`.
        unchecked {
            result = _currentIndex - _startTokenId();
            if (_sequentialUpTo() != type(uint256).max) result += _spotMinted;
        }
    }

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view virtual returns (uint256) {
        return _burnCounter;
    }

    /**
     * @dev Returns the total number of tokens that are spot-minted.
     */
    function _totalSpotMinted() internal view virtual returns (uint256) {
        return _spotMinted;
    }

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        if (owner == address(0)) _revert(BalanceQueryForZeroAddress.selector);
        return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return uint64(_packedAddressData[owner] >> _BITPOS_AUX);
    }

    /**
     * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal virtual {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes
        // of the XOR of all function selectors in the interface.
        // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
        // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

    /**
     * @dev Returns the token collection name.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) _revert(URIQueryForNonexistentToken.selector);

        string memory baseURI = _baseURI();
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : '';
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @dev Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around over time.
     */
    function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Returns whether the ownership slot at `index` is initialized.
     * An uninitialized slot does not necessarily mean that the slot has no owner.
     */
    function _ownershipIsInitialized(uint256 index) internal view virtual returns (bool) {
        return _packedOwnerships[index] != 0;
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal virtual {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * @dev Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256 packed) {
        if (_startTokenId() <= tokenId) {
            packed = _packedOwnerships[tokenId];

            if (tokenId > _sequentialUpTo()) {
                if (_packedOwnershipExists(packed)) return packed;
                _revert(OwnerQueryForNonexistentToken.selector);
            }

            // If the data at the starting slot does not exist, start the scan.
            if (packed == 0) {
                if (tokenId >= _currentIndex) _revert(OwnerQueryForNonexistentToken.selector);
                // Invariant:
                // There will always be an initialized ownership slot
                // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                // before an unintialized ownership slot
                // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                // Hence, `tokenId` will not underflow.
                //
                // We can directly compare the packed value.
                // If the address is zero, packed will be zero.
                for (;;) {
                    unchecked {
                        packed = _packedOwnerships[--tokenId];
                    }
                    if (packed == 0) continue;
                    if (packed & _BITMASK_BURNED == 0) return packed;
                    // Otherwise, the token is burned, and we must revert.
                    // This handles the case of batch burned tokens, where only the burned bit
                    // of the starting slot is set, and remaining slots are left uninitialized.
                    _revert(OwnerQueryForNonexistentToken.selector);
                }
            }
            // Otherwise, the data exists and we can skip the scan.
            // This is possible because we have already achieved the target condition.
            // This saves 2143 gas on transfers of initialized tokens.
            // If the token is not burned, return `packed`. Otherwise, revert.
            if (packed & _BITMASK_BURNED == 0) return packed;
        }
        _revert(OwnerQueryForNonexistentToken.selector);
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
        ownership.burned = packed & _BITMASK_BURNED != 0;
        ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
            result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account. See {ERC721A-_approve}.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     */
    function approve(address to, uint256 tokenId) public payable virtual override {
        _approve(to, tokenId, true);
    }

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) _revert(ApprovalQueryForNonexistentToken.selector);

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom}
     * for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool result) {
        if (_startTokenId() <= tokenId) {
            if (tokenId > _sequentialUpTo()) return _packedOwnershipExists(_packedOwnerships[tokenId]);

            if (tokenId < _currentIndex) {
                uint256 packed;
                while ((packed = _packedOwnerships[tokenId]) == 0) --tokenId;
                result = packed & _BITMASK_BURNED == 0;
            }
        }
    }

    /**
     * @dev Returns whether `packed` represents a token that exists.
     */
    function _packedOwnershipExists(uint256 packed) private pure returns (bool result) {
        assembly {
            // The following is equivalent to `owner != address(0) && burned == false`.
            // Symbolically tested.
            result := gt(and(packed, _BITMASK_ADDRESS), and(packed, _BITMASK_BURNED))
        }
    }

    /**
     * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
     */
    function _isSenderApprovedOrOwner(
        address approvedAddress,
        address owner,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, _BITMASK_ADDRESS)
            // `msgSender == owner || msgSender == approvedAddress`.
            result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     * by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean.
        from = address(uint160(uint256(uint160(from)) & _BITMASK_ADDRESS));

        if (address(uint160(prevOwnershipPacked)) != from) _revert(TransferFromIncorrectOwner.selector);

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) _revert(TransferCallerNotOwnerNorApproved.selector);

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
        uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS;
        assembly {
            // Emit the `Transfer` event.
            log4(
                0, // Start of data (0, since no data).
                0, // End of data (0, since no data).
                _TRANSFER_EVENT_SIGNATURE, // Signature.
                from, // `from`.
                toMasked, // `to`.
                tokenId // `tokenId`.
            )
        }
        if (toMasked == 0) _revert(TransferToZeroAddress.selector);

        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     * by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                _revert(TransferToNonERC721ReceiverImplementer.selector);
            }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token IDs
     * are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token IDs
     * have been transferred. This includes minting.
     * And also called after one token has been burned.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * `from` - Previous owner of the given token ID.
     * `to` - Target address that will receive the token.
     * `tokenId` - Token ID to be transferred.
     * `_data` - Optional data to send along with the call.
     *
     * Returns whether the call correctly returned the expected magic value.
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                _revert(TransferToNonERC721ReceiverImplementer.selector);
            }
            assembly {
                revert(add(32, reason), mload(reason))
            }
        }
    }

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _mint(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (quantity == 0) _revert(MintZeroQuantity.selector);

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
            uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS;

            if (toMasked == 0) _revert(MintToZeroAddress.selector);

            uint256 end = startTokenId + quantity;
            uint256 tokenId = startTokenId;

            if (end - 1 > _sequentialUpTo()) _revert(SequentialMintExceedsLimit.selector);

            do {
                assembly {
                    // Emit the `Transfer` event.
                    log4(
                        0, // Start of data (0, since no data).
                        0, // End of data (0, since no data).
                        _TRANSFER_EVENT_SIGNATURE, // Signature.
                        0, // `address(0)`.
                        toMasked, // `to`.
                        tokenId // `tokenId`.
                    )
                }
                // The `!=` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
            } while (++tokenId != end);

            _currentIndex = end;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) _revert(MintToZeroAddress.selector);
        if (quantity == 0) _revert(MintZeroQuantity.selector);
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) _revert(MintERC2309QuantityExceedsLimit.selector);

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            if (startTokenId + quantity - 1 > _sequentialUpTo()) _revert(SequentialMintExceedsLimit.selector);

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

            _currentIndex = startTokenId + quantity;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * See {_mint}.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        _mint(to, quantity);

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        _revert(TransferToNonERC721ReceiverImplementer.selector);
                    }
                } while (index < end);
                // This prevents reentrancy to `_safeMint`.
                // It does not prevent reentrancy to `_safeMintSpot`.
                if (_currentIndex != end) revert();
            }
        }
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, '');
    }

    /**
     * @dev Mints a single token at `tokenId`.
     *
     * Note: A spot-minted `tokenId` that has been burned can be re-minted again.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` must be greater than `_sequentialUpTo()`.
     * - `tokenId` must not exist.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _mintSpot(address to, uint256 tokenId) internal virtual {
        if (tokenId <= _sequentialUpTo()) _revert(SpotMintTokenIdTooSmall.selector);
        uint256 prevOwnershipPacked = _packedOwnerships[tokenId];
        if (_packedOwnershipExists(prevOwnershipPacked)) _revert(TokenAlreadyExists.selector);

        _beforeTokenTransfers(address(0), to, tokenId, 1);

        // Overflows are incredibly unrealistic.
        // The `numberMinted` for `to` is incremented by 1, and has a max limit of 2**64 - 1.
        // `_spotMinted` is incremented by 1, and has a max limit of 2**256 - 1.
        unchecked {
            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `true` (as `quantity == 1`).
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(1) | _nextExtraData(address(0), to, prevOwnershipPacked)
            );

            // Updates:
            // - `balance += 1`.
            // - `numberMinted += 1`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += (1 << _BITPOS_NUMBER_MINTED) | 1;

            // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
            uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS;

            if (toMasked == 0) _revert(MintToZeroAddress.selector);

            assembly {
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    tokenId // `tokenId`.
                )
            }

            ++_spotMinted;
        }

        _afterTokenTransfers(address(0), to, tokenId, 1);
    }

    /**
     * @dev Safely mints a single token at `tokenId`.
     *
     * Note: A spot-minted `tokenId` that has been burned can be re-minted again.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}.
     * - `tokenId` must be greater than `_sequentialUpTo()`.
     * - `tokenId` must not exist.
     *
     * See {_mintSpot}.
     *
     * Emits a {Transfer} event.
     */
    function _safeMintSpot(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mintSpot(to, tokenId);

        unchecked {
            if (to.code.length != 0) {
                uint256 currentSpotMinted = _spotMinted;
                if (!_checkContractOnERC721Received(address(0), to, tokenId, _data)) {
                    _revert(TransferToNonERC721ReceiverImplementer.selector);
                }
                // This prevents reentrancy to `_safeMintSpot`.
                // It does not prevent reentrancy to `_safeMint`.
                if (_spotMinted != currentSpotMinted) revert();
            }
        }
    }

    /**
     * @dev Equivalent to `_safeMintSpot(to, tokenId, '')`.
     */
    function _safeMintSpot(address to, uint256 tokenId) internal virtual {
        _safeMintSpot(to, tokenId, '');
    }

    // =============================================================
    //                       APPROVAL OPERATIONS
    // =============================================================

    /**
     * @dev Equivalent to `_approve(to, tokenId, false)`.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _approve(to, tokenId, false);
    }

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the
     * zero address clears previous approvals.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function _approve(
        address to,
        uint256 tokenId,
        bool approvalCheck
    ) internal virtual {
        address owner = ownerOf(tokenId);

        if (approvalCheck && _msgSenderERC721A() != owner)
            if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                _revert(ApprovalCallerNotOwnerNorApproved.selector);
            }

        _tokenApprovals[tokenId].value = to;
        emit Approval(owner, to, tokenId);
    }

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        address from = address(uint160(prevOwnershipPacked));

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) _revert(TransferCallerNotOwnerNorApproved.selector);
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                from,
                (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as `_burnCounter` cannot be exceed `_currentIndex + _spotMinted` times.
        unchecked {
            _burnCounter++;
        }
    }

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) _revert(OwnershipNotInitializedForExtraData.selector);
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
    }

    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value) internal pure virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
            // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

            // Cache the end of the memory to calculate the length later.
            let end := str

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }

    /**
     * @dev For more efficient reverts.
     */
    function _revert(bytes4 errorSelector) internal pure {
        assembly {
            mstore(0x00, errorSelector)
            revert(0x00, 0x04)
        }
    }
}

File 11 of 17 : IERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../IERC721A.sol';

/**
 * @dev Interface of ERC721AQueryable.
 */
interface IERC721AQueryable is IERC721A {
    /**
     * Invalid query range (`start` >= `stop`).
     */
    error InvalidQueryRange();

    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *
     * - `addr = address(0)`
     * - `startTimestamp = 0`
     * - `burned = false`
     * - `extraData = 0`
     *
     * If the `tokenId` is burned:
     *
     * - `addr = <Address of owner before token was burned>`
     * - `startTimestamp = <Timestamp when token was burned>`
     * - `burned = true`
     * - `extraData = <Extra data when token was burned>`
     *
     * Otherwise:
     *
     * - `addr = <Address of owner>`
     * - `startTimestamp = <Timestamp of start of ownership>`
     * - `burned = false`
     * - `extraData = <Extra data at start of ownership>`
     */
    function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory);

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start < stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view returns (uint256[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(`totalSupply`) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K collections should be fine).
     */
    function tokensOfOwner(address owner) external view returns (uint256[] memory);
}

File 12 of 17 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 13 of 17 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Muldiv operation overflow.
     */
    error MathOverflowedMulDiv();

    enum Rounding {
        Floor, // Toward negative infinity
        Ceil, // Toward positive infinity
        Trunc, // Toward zero
        Expand // Away from zero
    }

    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds towards infinity instead
     * of rounding towards zero.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        if (b == 0) {
            // Guarantee the same behavior as in a regular Solidity division.
            return a / b;
        }

        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or
     * denominator == 0.
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by
     * Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0 = x * y; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            if (denominator <= prod1) {
                revert MathOverflowedMulDiv();
            }

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator.
            // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.

            uint256 twos = denominator & (0 - denominator);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also
            // works in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
     * towards zero.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
        }
    }

    /**
     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
     */
    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
        return uint8(rounding) % 2 == 1;
    }
}

File 14 of 17 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 15 of 17 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 16 of 17 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    /**
     * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns
     *         true if supplied registrant address is not registered.
     */
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);

    /**
     * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner.
     */
    function register(address registrant) external;

    /**
     * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes.
     */
    function registerAndSubscribe(address registrant, address subscription) external;

    /**
     * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another
     *         address without subscribing.
     */
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;

    /**
     * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner.
     *         Note that this does not remove any filtered addresses or codeHashes.
     *         Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes.
     */
    function unregister(address addr) external;

    /**
     * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered.
     */
    function updateOperator(address registrant, address operator, bool filtered) external;

    /**
     * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates.
     */
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;

    /**
     * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered.
     */
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;

    /**
     * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates.
     */
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;

    /**
     * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous
     *         subscription if present.
     *         Note that accounts with subscriptions may go on to subscribe to other accounts - in this case,
     *         subscriptions will not be forwarded. Instead the former subscription's existing entries will still be
     *         used.
     */
    function subscribe(address registrant, address registrantToSubscribe) external;

    /**
     * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes.
     */
    function unsubscribe(address registrant, bool copyExistingEntries) external;

    /**
     * @notice Get the subscription address of a given registrant, if any.
     */
    function subscriptionOf(address addr) external returns (address registrant);

    /**
     * @notice Get the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscribers(address registrant) external returns (address[] memory);

    /**
     * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscriberAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr.
     */
    function copyEntriesOf(address registrant, address registrantToCopy) external;

    /**
     * @notice Returns true if operator is filtered by a given address or its subscription.
     */
    function isOperatorFiltered(address registrant, address operator) external returns (bool);

    /**
     * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription.
     */
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);

    /**
     * @notice Returns true if a codeHash is filtered by a given address or its subscription.
     */
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);

    /**
     * @notice Returns a list of filtered operators for a given address or its subscription.
     */
    function filteredOperators(address addr) external returns (address[] memory);

    /**
     * @notice Returns the set of filtered codeHashes for a given address or its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);

    /**
     * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);

    /**
     * @notice Returns true if an address has registered
     */
    function isRegistered(address addr) external returns (bool);

    /**
     * @dev Convenience method to compute the code hash of an arbitrary contract
     */
    function codeHashOf(address addr) external returns (bytes32);
}

File 17 of 17 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of ERC721A.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the
     * ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    /**
     * `_sequentialUpTo()` must be greater than `_startTokenId()`.
     */
    error SequentialUpToTooSmall();

    /**
     * The `tokenId` of a sequential mint exceeds `_sequentialUpTo()`.
     */
    error SequentialMintExceedsLimit();

    /**
     * Spot minting requires a `tokenId` greater than `_sequentialUpTo()`.
     */
    error SpotMintTokenIdTooSmall();

    /**
     * Cannot mint over a token that already exists.
     */
    error TokenAlreadyExists();

    /**
     * The feature is not compatible with spot mints.
     */
    error NotCompatibleWithSpotMints();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    // =============================================================
    //                            IERC721
    // =============================================================

    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables
     * (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`,
     * checking first that contract recipients are aware of the ERC721 protocol
     * to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move
     * this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external payable;

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom}
     * whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     * by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the
     * zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external payable;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom}
     * for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NotCompatibleWithSpotMints","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"SequentialMintExceedsLimit","type":"error"},{"inputs":[],"name":"SequentialUpToTooSmall","type":"error"},{"inputs":[],"name":"SpotMintTokenIdTooSmall","type":"error"},{"inputs":[],"name":"TokenAlreadyExists","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"blacklistedTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dwellersAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"ownership","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hiddenMetadataUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenId","type":"uint256[]"},{"internalType":"bool","name":"_state","type":"bool"}],"name":"setBlacklistedToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_burnAddress","type":"address"}],"name":"setBurnAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setClaimEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_dwellersAddress","type":"address"}],"name":"setDwellersAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_hiddenMetadataUri","type":"string"}],"name":"setHiddenMetadataUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintAmountPerTx","type":"uint256"}],"name":"setMaxMintAmountPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokensToBurn","type":"uint256"}],"name":"setTokensToBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriPrefix","type":"string"}],"name":"setUriPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriSuffix","type":"string"}],"name":"setUriSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokensClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensToBurn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uriPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260405180602001604052805f815250600d908161002191906107fa565b506040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600e908161006691906107fa565b506683185ac0364000601055610d056011556014601255600160135f6101000a81548160ff0219169083151502179055505f601360016101000a81548160ff0219169083151502179055505f601360026101000a81548160ff0219169083151502179055506002601455736bf14d09f5600ed683abce94b6c43f7cb429d30860155f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061dead60165f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550348015610171575f80fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb66001336040518060400160405280600881526020017f6477656c6c6572730000000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f44574c5200000000000000000000000000000000000000000000000000000000815250816002908161020591906107fa565b50806003908161021591906107fa565b506102246104c660201b60201c565b5f819055506102376104c660201b60201c565b6102456104ce60201b60201c565b10156102625761026163fed8210f60e01b6104f560201b60201c565b5b50505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036102d4575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016102cb9190610908565b60405180910390fd5b6102e3816104fd60201b60201c565b506001600a819055505f6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156104bf57801561039a576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b8152600401610368929190610921565b5f604051808303815f87803b15801561037f575f80fd5b505af1158015610391573d5f803e3d5ffd5b505050506104be565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614610448576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b8152600401610416929190610921565b5f604051808303815f87803b15801561042d575f80fd5b505af115801561043f573d5f803e3d5ffd5b505050506104bd565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b815260040161048f9190610908565b5f604051808303815f87803b1580156104a6575f80fd5b505af11580156104b8573d5f803e3d5ffd5b505050505b5b5b5050610948565b5f6001905090565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff905090565b805f5260045ffd5b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061063b57607f821691505b60208210810361064e5761064d6105f7565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026106b07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82610675565b6106ba8683610675565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f6106fe6106f96106f4846106d2565b6106db565b6106d2565b9050919050565b5f819050919050565b610717836106e4565b61072b61072382610705565b848454610681565b825550505050565b5f90565b61073f610733565b61074a81848461070e565b505050565b5b8181101561076d576107625f82610737565b600181019050610750565b5050565b601f8211156107b25761078381610654565b61078c84610666565b8101602085101561079b578190505b6107af6107a785610666565b83018261074f565b50505b505050565b5f82821c905092915050565b5f6107d25f19846008026107b7565b1980831691505092915050565b5f6107ea83836107c3565b9150826002028217905092915050565b610803826105c0565b67ffffffffffffffff81111561081c5761081b6105ca565b5b6108268254610624565b610831828285610771565b5f60209050601f831160018114610862575f8415610850578287015190505b61085a85826107df565b8655506108c1565b601f19841661087086610654565b5f5b8281101561089757848901518255600182019150602085019450602081019050610872565b868310156108b457848901516108b0601f8916826107c3565b8355505b6001600288020188555050505b505050505050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6108f2826108c9565b9050919050565b610902816108e8565b82525050565b5f60208201905061091b5f8301846108f9565b92915050565b5f6040820190506109345f8301856108f9565b61094160208301846108f9565b9392505050565b614bdd806109555f395ff3fe608060405260043610610319575f3560e01c80636ba4c138116101aa578063a22cb465116100f6578063c23dc68f11610094578063e0a808531161006e578063e0a8085314610b61578063e985e9c514610b89578063f2fde38b14610bc5578063f574d9c214610bed57610319565b8063c23dc68f14610abf578063c87b56dd14610afb578063d5abeb0114610b3757610319565b8063b277219a116100d0578063b277219a14610a29578063b3c2343014610a51578063b88d4fde14610a7b578063bc63f02e14610a9757610319565b8063a22cb465146109af578063a45ba8e7146109d7578063b071401b14610a0157610319565b80638462151c1161016357806394354fd01161013d57806394354fd01461090357806395d89b411461092d57806399a2557a14610957578063a0712d681461099357610319565b80638462151c146108755780638da5cb5b146108b157806392929a09146108db57610319565b80636ba4c138146107815780636f8b44b0146107a957806370a08231146107d157806370d5ae051461080d578063715018a6146108375780637ec4a6591461084d57610319565b80633f522c8a116102695780634fdd43cb116102225780635bbb2177116101fc5780635bbb2177146106b55780635c975abb146106f157806362b99ad41461071b5780636352211e1461074557610319565b80634fdd43cb1461063957806351830227146106615780635503a0e81461068b57610319565b80633f522c8a1461053f57806340de73921461057b57806341f43434146105a357806342842e0e146105cd57806344a0d68a146105e95780634b0e72161461061157610319565b806316ba10e0116102d657806323b872dd116102b057806323b872dd146104a75780632866ed21146104c357806328c56b99146104ed5780633ccfd60b1461052957610319565b806316ba10e01461042d57806316c38b3c1461045557806318160ddd1461047d57610319565b806301ffc9a71461031d5780630287f8141461035957806306fdde0314610381578063081812fc146103ab578063095ea7b3146103e757806313faede614610403575b5f80fd5b348015610328575f80fd5b50610343600480360381019061033e91906133ef565b610c17565b6040516103509190613434565b60405180910390f35b348015610364575f80fd5b5061037f600480360381019061037a91906135fa565b610ca8565b005b34801561038c575f80fd5b50610395610d0f565b6040516103a291906136b4565b60405180910390f35b3480156103b6575f80fd5b506103d160048036038101906103cc91906136d4565b610d9f565b6040516103de919061373e565b60405180910390f35b61040160048036038101906103fc9190613781565b610df8565b005b34801561040e575f80fd5b50610417610e11565b60405161042491906137ce565b60405180910390f35b348015610438575f80fd5b50610453600480360381019061044e9190613897565b610e17565b005b348015610460575f80fd5b5061047b600480360381019061047691906138de565b610e32565b005b348015610488575f80fd5b50610491610e56565b60405161049e91906137ce565b60405180910390f35b6104c160048036038101906104bc9190613909565b610ea1565b005b3480156104ce575f80fd5b506104d7610ef0565b6040516104e49190613434565b60405180910390f35b3480156104f8575f80fd5b50610513600480360381019061050e91906136d4565b610f03565b6040516105209190613434565b60405180910390f35b348015610534575f80fd5b5061053d610f20565b005b34801561054a575f80fd5b50610565600480360381019061056091906136d4565b610fb3565b6040516105729190613434565b60405180910390f35b348015610586575f80fd5b506105a1600480360381019061059c91906136d4565b610fd0565b005b3480156105ae575f80fd5b506105b7610fe2565b6040516105c491906139b4565b60405180910390f35b6105e760048036038101906105e29190613909565b610ff4565b005b3480156105f4575f80fd5b5061060f600480360381019061060a91906136d4565b611043565b005b34801561061c575f80fd5b50610637600480360381019061063291906139cd565b611055565b005b348015610644575f80fd5b5061065f600480360381019061065a9190613897565b6110a0565b005b34801561066c575f80fd5b506106756110bb565b6040516106829190613434565b60405180910390f35b348015610696575f80fd5b5061069f6110ce565b6040516106ac91906136b4565b60405180910390f35b3480156106c0575f80fd5b506106db60048036038101906106d69190613a51565b61115a565b6040516106e89190613bf4565b60405180910390f35b3480156106fc575f80fd5b506107056111b6565b6040516107129190613434565b60405180910390f35b348015610726575f80fd5b5061072f6111c8565b60405161073c91906136b4565b60405180910390f35b348015610750575f80fd5b5061076b600480360381019061076691906136d4565b611254565b604051610778919061373e565b60405180910390f35b34801561078c575f80fd5b506107a760048036038101906107a29190613a51565b611265565b005b3480156107b4575f80fd5b506107cf60048036038101906107ca91906136d4565b6116e0565b005b3480156107dc575f80fd5b506107f760048036038101906107f291906139cd565b6116f2565b60405161080491906137ce565b60405180910390f35b348015610818575f80fd5b50610821611786565b60405161082e919061373e565b60405180910390f35b348015610842575f80fd5b5061084b6117ab565b005b348015610858575f80fd5b50610873600480360381019061086e9190613897565b6117be565b005b348015610880575f80fd5b5061089b600480360381019061089691906139cd565b6117d9565b6040516108a89190613ccb565b60405180910390f35b3480156108bc575f80fd5b506108c5611852565b6040516108d2919061373e565b60405180910390f35b3480156108e6575f80fd5b5061090160048036038101906108fc91906138de565b61187a565b005b34801561090e575f80fd5b5061091761189f565b60405161092491906137ce565b60405180910390f35b348015610938575f80fd5b506109416118a5565b60405161094e91906136b4565b60405180910390f35b348015610962575f80fd5b5061097d60048036038101906109789190613ceb565b611935565b60405161098a9190613ccb565b60405180910390f35b6109ad60048036038101906109a891906136d4565b61194b565b005b3480156109ba575f80fd5b506109d560048036038101906109d09190613d3b565b611ab9565b005b3480156109e2575f80fd5b506109eb611ad2565b6040516109f891906136b4565b60405180910390f35b348015610a0c575f80fd5b50610a276004803603810190610a2291906136d4565b611b5e565b005b348015610a34575f80fd5b50610a4f6004803603810190610a4a91906139cd565b611b70565b005b348015610a5c575f80fd5b50610a65611bbb565b604051610a72919061373e565b60405180910390f35b610a956004803603810190610a909190613e17565b611be0565b005b348015610aa2575f80fd5b50610abd6004803603810190610ab89190613e97565b611c31565b005b348015610aca575f80fd5b50610ae56004803603810190610ae091906136d4565b611c9e565b604051610af29190613f28565b60405180910390f35b348015610b06575f80fd5b50610b216004803603810190610b1c91906136d4565b611d13565b604051610b2e91906136b4565b60405180910390f35b348015610b42575f80fd5b50610b4b611e65565b604051610b5891906137ce565b60405180910390f35b348015610b6c575f80fd5b50610b876004803603810190610b8291906138de565b611e6b565b005b348015610b94575f80fd5b50610baf6004803603810190610baa9190613f41565b611e90565b604051610bbc9190613434565b60405180910390f35b348015610bd0575f80fd5b50610beb6004803603810190610be691906139cd565b611f1e565b005b348015610bf8575f80fd5b50610c01611fa2565b604051610c0e91906137ce565b60405180910390f35b5f6301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c7157506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610ca15750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b610cb0611fa8565b5f5b8251811015610d0a5781600c5f858481518110610cd257610cd1613f7f565b5b602002602001015181526020019081526020015f205f6101000a81548160ff0219169083151502179055508080600101915050610cb2565b505050565b606060028054610d1e90613fd9565b80601f0160208091040260200160405190810160405280929190818152602001828054610d4a90613fd9565b8015610d955780601f10610d6c57610100808354040283529160200191610d95565b820191905f5260205f20905b815481529060010190602001808311610d7857829003601f168201915b5050505050905090565b5f610da98261202f565b610dbe57610dbd63cf4700e460e01b6120d2565b5b60065f8381526020019081526020015f205f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610e02816120da565b610e0c83836121d4565b505050565b60105481565b610e1f611fa8565b80600e9081610e2e919061419d565b5050565b610e3a611fa8565b8060135f6101000a81548160ff02191690831515021790555050565b5f610e5f6121e4565b6001545f54030390507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610e916121ec565b14610e9e57600854810190505b90565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610edf57610ede336120da565b5b610eea848484612213565b50505050565b601360019054906101000a900460ff1681565b600c602052805f5260405f205f915054906101000a900460ff1681565b610f28611fa8565b610f306124be565b5f610f39611852565b73ffffffffffffffffffffffffffffffffffffffff1647604051610f5c90614299565b5f6040518083038185875af1925050503d805f8114610f96576040519150601f19603f3d011682016040523d82523d5f602084013e610f9b565b606091505b5050905080610fa8575f80fd5b50610fb161250d565b565b600b602052805f5260405f205f915054906101000a900460ff1681565b610fd8611fa8565b8060148190555050565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461103257611031336120da565b5b61103d848484612517565b50505050565b61104b611fa8565b8060108190555050565b61105d611fa8565b8060165f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6110a8611fa8565b80600f90816110b7919061419d565b5050565b601360029054906101000a900460ff1681565b600e80546110db90613fd9565b80601f016020809104026020016040519081016040528092919081815260200182805461110790613fd9565b80156111525780601f1061112957610100808354040283529160200191611152565b820191905f5260205f20905b81548152906001019060200180831161113557829003601f168201915b505050505081565b6060805f84849050905060405191508082528060051b90508060208301016040525b5f81146111ab575f6020820391508186013590505f61119a82611c9e565b90508083602086010152505061117c565b819250505092915050565b60135f9054906101000a900460ff1681565b600d80546111d590613fd9565b80601f016020809104026020016040519081016040528092919081815260200182805461120190613fd9565b801561124c5780601f106112235761010080835404028352916020019161124c565b820191905f5260205f20905b81548152906001019060200180831161122f57829003601f168201915b505050505081565b5f61125e82612536565b9050919050565b5f6002838390506112769190614307565b9050601360019054906101000a900460ff166112c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112be90614381565b60405180910390fd5b5f6002848490506112d8919061439f565b14611318576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130f90614419565b60405180910390fd5b60125481111561135d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135490614481565b60405180910390fd5b60115481611369610e56565b611373919061449f565b11156113b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ab9061451c565b60405180910390fd5b5f60155f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505f5b848490508110156116cf573373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16636352211e87878581811061142c5761142b613f7f565b5b905060200201356040518263ffffffff1660e01b815260040161144f91906137ce565b602060405180830381865afa15801561146a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061148e919061454e565b73ffffffffffffffffffffffffffffffffffffffff16146114e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114db906145c3565b60405180910390fd5b5f1515600c5f8787858181106114fd576114fc613f7f565b5b9050602002013581526020019081526020015f205f9054906101000a900460ff16151514611560576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115579061462b565b60405180910390fd5b5f1515600b5f87878581811061157957611578613f7f565b5b9050602002013581526020019081526020015f205f9054906101000a900460ff161515146115dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d390614693565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166323b872dd3360165f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1688888681811061162e5761162d613f7f565b5b905060200201356040518463ffffffff1660e01b8152600401611653939291906146b1565b5f604051808303815f87803b15801561166a575f80fd5b505af115801561167c573d5f803e3d5ffd5b505050506001600b5f87878581811061169857611697613f7f565b5b9050602002013581526020019081526020015f205f6101000a81548160ff02191690831515021790555080806001019150506113db565b506116da3383612645565b50505050565b6116e8611fa8565b8060118190555050565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361173757611736638f4eb60460e01b6120d2565b5b67ffffffffffffffff60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054169050919050565b60165f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6117b3611fa8565b6117bc5f612662565b565b6117c6611fa8565b80600d90816117d5919061419d565b5050565b60607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6118046121ec565b1461181a5761181963bdba09d760e01b6120d2565b5b5f6118236121e4565b90505f61182e612725565b905060608183146118475761184485848461272d565b90505b809350505050919050565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611882611fa8565b80601360016101000a81548160ff02191690831515021790555050565b60125481565b6060600380546118b490613fd9565b80601f01602080910402602001604051908101604052809291908181526020018280546118e090613fd9565b801561192b5780601f106119025761010080835404028352916020019161192b565b820191905f5260205f20905b81548152906001019060200180831161190e57829003601f168201915b5050505050905090565b606061194284848461272d565b90509392505050565b8060115481611958610e56565b611962919061449f565b11156119a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199a9061451c565b60405180910390fd5b5f811180156119b457506012548111155b6119f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ea90614730565b60405180910390fd5b8180601054611a02919061474e565b341015611a44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3b906147d9565b60405180910390fd5b611a4c6124be565b60135f9054906101000a900460ff1615611a9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9290614841565b60405180910390fd5b611aac611aa66128dc565b84612645565b611ab461250d565b505050565b81611ac3816120da565b611acd83836128e3565b505050565b600f8054611adf90613fd9565b80601f0160208091040260200160405190810160405280929190818152602001828054611b0b90613fd9565b8015611b565780601f10611b2d57610100808354040283529160200191611b56565b820191905f5260205f20905b815481529060010190602001808311611b3957829003601f168201915b505050505081565b611b66611fa8565b8060128190555050565b611b78611fa8565b8060155f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60155f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611c1e57611c1d336120da565b5b611c2a858585856129e9565b5050505050565b611c39611fa8565b60115482611c45610e56565b611c4f919061449f565b1115611c90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c879061451c565b60405180910390fd5b611c9a8183612645565b5050565b611ca661333e565b611cae6121e4565b8210611d0d57611cbc6121ec565b821115611cd357611ccc82612a3a565b9050611d0e565b611cdb612725565b821015611d0c575b611cec82612a63565b611cfc5781600190039150611ce3565b611d0582612a3a565b9050611d0e565b5b5b919050565b6060611d1e8261202f565b611d5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d54906148cf565b60405180910390fd5b5f1515601360029054906101000a900460ff16151503611e0757600f8054611d8490613fd9565b80601f0160208091040260200160405190810160405280929190818152602001828054611db090613fd9565b8015611dfb5780601f10611dd257610100808354040283529160200191611dfb565b820191905f5260205f20905b815481529060010190602001808311611dde57829003601f168201915b50505050509050611e60565b5f611e10612a80565b90505f815111611e2e5760405180602001604052805f815250611e5c565b80611e3884612b10565b600e604051602001611e4c939291906149a7565b6040516020818303038152906040525b9150505b919050565b60115481565b611e73611fa8565b80601360026101000a81548160ff02191690831515021790555050565b5f60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b611f26611fa8565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611f96575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401611f8d919061373e565b60405180910390fd5b611f9f81612662565b50565b60145481565b611fb06128dc565b73ffffffffffffffffffffffffffffffffffffffff16611fce611852565b73ffffffffffffffffffffffffffffffffffffffff161461202d57611ff16128dc565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401612024919061373e565b60405180910390fd5b565b5f816120396121e4565b116120cc576120466121ec565b82111561206e5761206760045f8481526020019081526020015f2054612bda565b90506120cd565b5f548210156120cb575f5b5f60045f8581526020019081526020015f2054915081036120a5578261209e906149d7565b9250612079565b5f7c01000000000000000000000000000000000000000000000000000000008216149150505b5b5b919050565b805f5260045ffd5b5f6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156121d1576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b81526004016121509291906149fe565b602060405180830381865afa15801561216b573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061218f9190614a39565b6121d057806040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016121c7919061373e565b60405180910390fd5b5b50565b6121e082826001612c1a565b5050565b5f6001905090565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff905090565b5f61221d82612536565b905073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161693508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146122925761229163a114810060e01b6120d2565b5b5f8061229d84612d44565b915091506122b381876122ae612d67565b612d6e565b6122de576122c8866122c3612d67565b611e90565b6122dd576122dc6359c896be60e01b6120d2565b5b5b6122eb8686866001612db1565b80156122f5575f82555b60055f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600190039190508190555060055f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600101919050819055506123bd85612399888887612db7565b7c020000000000000000000000000000000000000000000000000000000017612dde565b60045f8681526020019081526020015f20819055505f7c0200000000000000000000000000000000000000000000000000000000841603612439575f6001850190505f60045f8381526020019081526020015f205403612437575f548114612436578360045f8381526020019081526020015f20819055505b5b505b5f73ffffffffffffffffffffffffffffffffffffffff8673ffffffffffffffffffffffffffffffffffffffff161690508481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a45f81036124a8576124a763ea553b3460e01b6120d2565b5b6124b58787876001612e08565b50505050505050565b6002600a5403612503576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124fa90614aae565b60405180910390fd5b6002600a81905550565b6001600a81905550565b61253183838360405180602001604052805f815250611be0565b505050565b5f816125406121e4565b1161262f5760045f8381526020019081526020015f205490506125616121ec565b8211156125865761257181612bda565b6126405761258563df2d9b4260e01b6120d2565b5b5f8103612607575f5482106125a6576125a563df2d9b4260e01b6120d2565b5b5b60045f836001900393508381526020019081526020015f205490505f810315612602575f7c0100000000000000000000000000000000000000000000000000000000821603156126405761260163df2d9b4260e01b6120d2565b5b6125a7565b5f7c010000000000000000000000000000000000000000000000000000000082160315612640575b61263f63df2d9b4260e01b6120d2565b5b919050565b61265e828260405180602001604052805f815250612e0e565b5050565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f8054905090565b6060818310612747576127466332c1995a60e01b6120d2565b5b61274f6121e4565b8310156127615761275e6121e4565b92505b5f61276a612725565b90505f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6127966121ec565b036127a157816127a3565b835b90508084106127b0578093505b5f6127ba876116f2565b90508486106127c7575f90505b5f81146128d25780868603116127dd5785850390505b5f60405194506001820160051b85019050806040525f6127fc88611c9e565b90505f816040015161280f57815f015190505b5f5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61283a6121ec565b1461286857868a036128545760016128506121ec565b0199505b61285c6121ec565b8a1115612867575f91505b5b6128718a612a3a565b925060408301515f8114612887575f92506128ad565b83511561289357835192505b8b831860601b6128ac576001820191508a8260051b8a01525b5b5060018a01995083604052888a14806128c557508481145b1561281157808852505050505b5050509392505050565b5f33905090565b8060075f6128ef612d67565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612998612d67565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516129dd9190613434565b60405180910390a35050565b6129f4848484610ea1565b5f8373ffffffffffffffffffffffffffffffffffffffff163b14612a3457612a1e84848484612e84565b612a3357612a3263d1a57ed660e01b6120d2565b5b5b50505050565b612a4261333e565b612a5c60045f8481526020019081526020015f2054612fae565b9050919050565b5f8060045f8481526020019081526020015f205414159050919050565b6060600d8054612a8f90613fd9565b80601f0160208091040260200160405190810160405280929190818152602001828054612abb90613fd9565b8015612b065780601f10612add57610100808354040283529160200191612b06565b820191905f5260205f20905b815481529060010190602001808311612ae957829003601f168201915b5050505050905090565b60605f6001612b1e84613062565b0190505f8167ffffffffffffffff811115612b3c57612b3b613461565b5b6040519080825280601f01601f191660200182016040528015612b6e5781602001600182028036833780820191505090505b5090505f82602001820190505b600115612bcf578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612bc457612bc36142ad565b5b0494505f8503612b7b575b819350505050919050565b5f7c0100000000000000000000000000000000000000000000000000000000821673ffffffffffffffffffffffffffffffffffffffff8316119050919050565b5f612c2483611254565b9050818015612c6657508073ffffffffffffffffffffffffffffffffffffffff16612c4d612d67565b73ffffffffffffffffffffffffffffffffffffffff1614155b15612c9257612c7c81612c77612d67565b611e90565b612c9157612c9063cfb3b94260e01b6120d2565b5b5b8360065f8581526020019081526020015f205f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550828473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a450505050565b5f805f60065f8581526020019081526020015f2090508092508254915050915091565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b5f8060e883901c905060e8612dcd8686846131b3565b62ffffff16901b9150509392505050565b5f73ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b612e1883836131bb565b5f8373ffffffffffffffffffffffffffffffffffffffff163b14612e7f575f805490505f83820390505b612e545f868380600101945086612e84565b612e6957612e6863d1a57ed660e01b6120d2565b5b818110612e4257815f5414612e7c575f80fd5b50505b505050565b5f8373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612ea9612d67565b8786866040518563ffffffff1660e01b8152600401612ecb9493929190614b1e565b6020604051808303815f875af1925050508015612f0657506040513d601f19601f82011682018060405250810190612f039190614b7c565b60015b612f5b573d805f8114612f34576040519150601f19603f3d011682016040523d82523d5f602084013e612f39565b606091505b505f815103612f5357612f5263d1a57ed660e01b6120d2565b5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b612fb661333e565b81815f019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff16815250505f7c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b5f805f90507a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106130be577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816130b4576130b36142ad565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106130fb576d04ee2d6d415b85acef810000000083816130f1576130f06142ad565b5b0492506020810190505b662386f26fc10000831061312a57662386f26fc1000083816131205761311f6142ad565b5b0492506010810190505b6305f5e1008310613153576305f5e1008381613149576131486142ad565b5b0492506008810190505b612710831061317857612710838161316e5761316d6142ad565b5b0492506004810190505b6064831061319b5760648381613191576131906142ad565b5b0492506002810190505b600a83106131aa576001810190505b80915050919050565b5f9392505050565b5f805490505f82036131d8576131d763b562e8dd60e01b6120d2565b5b6131e45f848385612db1565b613202836131f35f865f612db7565b6131fc8561332f565b17612dde565b60045f8381526020019081526020015f2081905550600160406001901b17820260055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505f73ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161690505f81036132b3576132b2632e07630060e01b6120d2565b5b5f83830190505f8390506132c56121ec565b6001830311156132e0576132df6381647e3a60e01b6120d2565b5b5b80835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a48181600101915081036132e157815f8190555050505061332a5f848385612e08565b505050565b5f6001821460e11b9050919050565b60405180608001604052805f73ffffffffffffffffffffffffffffffffffffffff1681526020015f67ffffffffffffffff1681526020015f151581526020015f62ffffff1681525090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6133ce8161339a565b81146133d8575f80fd5b50565b5f813590506133e9816133c5565b92915050565b5f6020828403121561340457613403613392565b5b5f613411848285016133db565b91505092915050565b5f8115159050919050565b61342e8161341a565b82525050565b5f6020820190506134475f830184613425565b92915050565b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b61349782613451565b810181811067ffffffffffffffff821117156134b6576134b5613461565b5b80604052505050565b5f6134c8613389565b90506134d4828261348e565b919050565b5f67ffffffffffffffff8211156134f3576134f2613461565b5b602082029050602081019050919050565b5f80fd5b5f819050919050565b61351a81613508565b8114613524575f80fd5b50565b5f8135905061353581613511565b92915050565b5f61354d613548846134d9565b6134bf565b905080838252602082019050602084028301858111156135705761356f613504565b5b835b8181101561359957806135858882613527565b845260208401935050602081019050613572565b5050509392505050565b5f82601f8301126135b7576135b661344d565b5b81356135c784826020860161353b565b91505092915050565b6135d98161341a565b81146135e3575f80fd5b50565b5f813590506135f4816135d0565b92915050565b5f80604083850312156136105761360f613392565b5b5f83013567ffffffffffffffff81111561362d5761362c613396565b5b613639858286016135a3565b925050602061364a858286016135e6565b9150509250929050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f61368682613654565b613690818561365e565b93506136a081856020860161366e565b6136a981613451565b840191505092915050565b5f6020820190508181035f8301526136cc818461367c565b905092915050565b5f602082840312156136e9576136e8613392565b5b5f6136f684828501613527565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f613728826136ff565b9050919050565b6137388161371e565b82525050565b5f6020820190506137515f83018461372f565b92915050565b6137608161371e565b811461376a575f80fd5b50565b5f8135905061377b81613757565b92915050565b5f806040838503121561379757613796613392565b5b5f6137a48582860161376d565b92505060206137b585828601613527565b9150509250929050565b6137c881613508565b82525050565b5f6020820190506137e15f8301846137bf565b92915050565b5f80fd5b5f67ffffffffffffffff82111561380557613804613461565b5b61380e82613451565b9050602081019050919050565b828183375f83830152505050565b5f61383b613836846137eb565b6134bf565b905082815260208101848484011115613857576138566137e7565b5b61386284828561381b565b509392505050565b5f82601f83011261387e5761387d61344d565b5b813561388e848260208601613829565b91505092915050565b5f602082840312156138ac576138ab613392565b5b5f82013567ffffffffffffffff8111156138c9576138c8613396565b5b6138d58482850161386a565b91505092915050565b5f602082840312156138f3576138f2613392565b5b5f613900848285016135e6565b91505092915050565b5f805f606084860312156139205761391f613392565b5b5f61392d8682870161376d565b935050602061393e8682870161376d565b925050604061394f86828701613527565b9150509250925092565b5f819050919050565b5f61397c613977613972846136ff565b613959565b6136ff565b9050919050565b5f61398d82613962565b9050919050565b5f61399e82613983565b9050919050565b6139ae81613994565b82525050565b5f6020820190506139c75f8301846139a5565b92915050565b5f602082840312156139e2576139e1613392565b5b5f6139ef8482850161376d565b91505092915050565b5f80fd5b5f8083601f840112613a1157613a1061344d565b5b8235905067ffffffffffffffff811115613a2e57613a2d6139f8565b5b602083019150836020820283011115613a4a57613a49613504565b5b9250929050565b5f8060208385031215613a6757613a66613392565b5b5f83013567ffffffffffffffff811115613a8457613a83613396565b5b613a90858286016139fc565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b613ace8161371e565b82525050565b5f67ffffffffffffffff82169050919050565b613af081613ad4565b82525050565b613aff8161341a565b82525050565b5f62ffffff82169050919050565b613b1c81613b05565b82525050565b608082015f820151613b365f850182613ac5565b506020820151613b496020850182613ae7565b506040820151613b5c6040850182613af6565b506060820151613b6f6060850182613b13565b50505050565b5f613b808383613b22565b60808301905092915050565b5f602082019050919050565b5f613ba282613a9c565b613bac8185613aa6565b9350613bb783613ab6565b805f5b83811015613be7578151613bce8882613b75565b9750613bd983613b8c565b925050600181019050613bba565b5085935050505092915050565b5f6020820190508181035f830152613c0c8184613b98565b905092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b613c4681613508565b82525050565b5f613c578383613c3d565b60208301905092915050565b5f602082019050919050565b5f613c7982613c14565b613c838185613c1e565b9350613c8e83613c2e565b805f5b83811015613cbe578151613ca58882613c4c565b9750613cb083613c63565b925050600181019050613c91565b5085935050505092915050565b5f6020820190508181035f830152613ce38184613c6f565b905092915050565b5f805f60608486031215613d0257613d01613392565b5b5f613d0f8682870161376d565b9350506020613d2086828701613527565b9250506040613d3186828701613527565b9150509250925092565b5f8060408385031215613d5157613d50613392565b5b5f613d5e8582860161376d565b9250506020613d6f858286016135e6565b9150509250929050565b5f67ffffffffffffffff821115613d9357613d92613461565b5b613d9c82613451565b9050602081019050919050565b5f613dbb613db684613d79565b6134bf565b905082815260208101848484011115613dd757613dd66137e7565b5b613de284828561381b565b509392505050565b5f82601f830112613dfe57613dfd61344d565b5b8135613e0e848260208601613da9565b91505092915050565b5f805f8060808587031215613e2f57613e2e613392565b5b5f613e3c8782880161376d565b9450506020613e4d8782880161376d565b9350506040613e5e87828801613527565b925050606085013567ffffffffffffffff811115613e7f57613e7e613396565b5b613e8b87828801613dea565b91505092959194509250565b5f8060408385031215613ead57613eac613392565b5b5f613eba85828601613527565b9250506020613ecb8582860161376d565b9150509250929050565b608082015f820151613ee95f850182613ac5565b506020820151613efc6020850182613ae7565b506040820151613f0f6040850182613af6565b506060820151613f226060850182613b13565b50505050565b5f608082019050613f3b5f830184613ed5565b92915050565b5f8060408385031215613f5757613f56613392565b5b5f613f648582860161376d565b9250506020613f758582860161376d565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680613ff057607f821691505b60208210810361400357614002613fac565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026140657fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261402a565b61406f868361402a565b95508019841693508086168417925050509392505050565b5f6140a161409c61409784613508565b613959565b613508565b9050919050565b5f819050919050565b6140ba83614087565b6140ce6140c6826140a8565b848454614036565b825550505050565b5f90565b6140e26140d6565b6140ed8184846140b1565b505050565b5b81811015614110576141055f826140da565b6001810190506140f3565b5050565b601f8211156141555761412681614009565b61412f8461401b565b8101602085101561413e578190505b61415261414a8561401b565b8301826140f2565b50505b505050565b5f82821c905092915050565b5f6141755f198460080261415a565b1980831691505092915050565b5f61418d8383614166565b9150826002028217905092915050565b6141a682613654565b67ffffffffffffffff8111156141bf576141be613461565b5b6141c98254613fd9565b6141d4828285614114565b5f60209050601f831160018114614205575f84156141f3578287015190505b6141fd8582614182565b865550614264565b601f19841661421386614009565b5f5b8281101561423a57848901518255600182019150602085019450602081019050614215565b868310156142575784890151614253601f891682614166565b8355505b6001600288020188555050505b505050505050565b5f81905092915050565b50565b5f6142845f8361426c565b915061428f82614276565b5f82019050919050565b5f6142a382614279565b9150819050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61431182613508565b915061431c83613508565b92508261432c5761432b6142ad565b5b828204905092915050565b7f436c61696d206973206e6f7420656e61626c65642100000000000000000000005f82015250565b5f61436b60158361365e565b915061437682614337565b602082019050919050565b5f6020820190508181035f8301526143988161435f565b9050919050565b5f6143a982613508565b91506143b483613508565b9250826143c4576143c36142ad565b5b828206905092915050565b7f546f6b656e73206d75737420626520696e2032207061697273210000000000005f82015250565b5f614403601a8361365e565b915061440e826143cf565b602082019050919050565b5f6020820190508181035f830152614430816143f7565b9050919050565b7f4d6178206d696e7420616d6f756e7420657863656564656421000000000000005f82015250565b5f61446b60198361365e565b915061447682614437565b602082019050919050565b5f6020820190508181035f8301526144988161445f565b9050919050565b5f6144a982613508565b91506144b483613508565b92508282019050808211156144cc576144cb6142da565b5b92915050565b7f4d617820737570706c79206578636565646564210000000000000000000000005f82015250565b5f61450660148361365e565b9150614511826144d2565b602082019050919050565b5f6020820190508181035f830152614533816144fa565b9050919050565b5f8151905061454881613757565b92915050565b5f6020828403121561456357614562613392565b5b5f6145708482850161453a565b91505092915050565b7f596f7520646f206e6f74206f776e207468697320746f6b656e210000000000005f82015250565b5f6145ad601a8361365e565b91506145b882614579565b602082019050919050565b5f6020820190508181035f8301526145da816145a1565b9050919050565b7f546f6b656e20697320626c61636b6c69737465642100000000000000000000005f82015250565b5f61461560158361365e565b9150614620826145e1565b602082019050919050565b5f6020820190508181035f83015261464281614609565b9050919050565b7f546f6b656e2068617320616c7265616479206265656e20636c61696d656421005f82015250565b5f61467d601f8361365e565b915061468882614649565b602082019050919050565b5f6020820190508181035f8301526146aa81614671565b9050919050565b5f6060820190506146c45f83018661372f565b6146d1602083018561372f565b6146de60408301846137bf565b949350505050565b7f496e76616c6964206d696e7420616d6f756e74210000000000000000000000005f82015250565b5f61471a60148361365e565b9150614725826146e6565b602082019050919050565b5f6020820190508181035f8301526147478161470e565b9050919050565b5f61475882613508565b915061476383613508565b925082820261477181613508565b91508282048414831517614788576147876142da565b5b5092915050565b7f496e73756666696369656e742066756e647321000000000000000000000000005f82015250565b5f6147c360138361365e565b91506147ce8261478f565b602082019050919050565b5f6020820190508181035f8301526147f0816147b7565b9050919050565b7f54686520636f6e747261637420697320706175736564210000000000000000005f82015250565b5f61482b60178361365e565b9150614836826147f7565b602082019050919050565b5f6020820190508181035f8301526148588161481f565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f5f8201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b5f6148b9602f8361365e565b91506148c48261485f565b604082019050919050565b5f6020820190508181035f8301526148e6816148ad565b9050919050565b5f81905092915050565b5f61490182613654565b61490b81856148ed565b935061491b81856020860161366e565b80840191505092915050565b5f815461493381613fd9565b61493d81866148ed565b9450600182165f8114614957576001811461496c5761499e565b60ff198316865281151582028601935061499e565b61497585614009565b5f5b8381101561499657815481890152600182019150602081019050614977565b838801955050505b50505092915050565b5f6149b282866148f7565b91506149be82856148f7565b91506149ca8284614927565b9150819050949350505050565b5f6149e182613508565b91505f82036149f3576149f26142da565b5b600182039050919050565b5f604082019050614a115f83018561372f565b614a1e602083018461372f565b9392505050565b5f81519050614a33816135d0565b92915050565b5f60208284031215614a4e57614a4d613392565b5b5f614a5b84828501614a25565b91505092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f614a98601f8361365e565b9150614aa382614a64565b602082019050919050565b5f6020820190508181035f830152614ac581614a8c565b9050919050565b5f81519050919050565b5f82825260208201905092915050565b5f614af082614acc565b614afa8185614ad6565b9350614b0a81856020860161366e565b614b1381613451565b840191505092915050565b5f608082019050614b315f83018761372f565b614b3e602083018661372f565b614b4b60408301856137bf565b8181036060830152614b5d8184614ae6565b905095945050505050565b5f81519050614b76816133c5565b92915050565b5f60208284031215614b9157614b90613392565b5b5f614b9e84828501614b68565b9150509291505056fea2646970667358221220330abc69be303ca33d59c89b27af7cebedbc9b52e417dc0f6755a1aad714d92264736f6c63430008190033

Deployed Bytecode

0x608060405260043610610319575f3560e01c80636ba4c138116101aa578063a22cb465116100f6578063c23dc68f11610094578063e0a808531161006e578063e0a8085314610b61578063e985e9c514610b89578063f2fde38b14610bc5578063f574d9c214610bed57610319565b8063c23dc68f14610abf578063c87b56dd14610afb578063d5abeb0114610b3757610319565b8063b277219a116100d0578063b277219a14610a29578063b3c2343014610a51578063b88d4fde14610a7b578063bc63f02e14610a9757610319565b8063a22cb465146109af578063a45ba8e7146109d7578063b071401b14610a0157610319565b80638462151c1161016357806394354fd01161013d57806394354fd01461090357806395d89b411461092d57806399a2557a14610957578063a0712d681461099357610319565b80638462151c146108755780638da5cb5b146108b157806392929a09146108db57610319565b80636ba4c138146107815780636f8b44b0146107a957806370a08231146107d157806370d5ae051461080d578063715018a6146108375780637ec4a6591461084d57610319565b80633f522c8a116102695780634fdd43cb116102225780635bbb2177116101fc5780635bbb2177146106b55780635c975abb146106f157806362b99ad41461071b5780636352211e1461074557610319565b80634fdd43cb1461063957806351830227146106615780635503a0e81461068b57610319565b80633f522c8a1461053f57806340de73921461057b57806341f43434146105a357806342842e0e146105cd57806344a0d68a146105e95780634b0e72161461061157610319565b806316ba10e0116102d657806323b872dd116102b057806323b872dd146104a75780632866ed21146104c357806328c56b99146104ed5780633ccfd60b1461052957610319565b806316ba10e01461042d57806316c38b3c1461045557806318160ddd1461047d57610319565b806301ffc9a71461031d5780630287f8141461035957806306fdde0314610381578063081812fc146103ab578063095ea7b3146103e757806313faede614610403575b5f80fd5b348015610328575f80fd5b50610343600480360381019061033e91906133ef565b610c17565b6040516103509190613434565b60405180910390f35b348015610364575f80fd5b5061037f600480360381019061037a91906135fa565b610ca8565b005b34801561038c575f80fd5b50610395610d0f565b6040516103a291906136b4565b60405180910390f35b3480156103b6575f80fd5b506103d160048036038101906103cc91906136d4565b610d9f565b6040516103de919061373e565b60405180910390f35b61040160048036038101906103fc9190613781565b610df8565b005b34801561040e575f80fd5b50610417610e11565b60405161042491906137ce565b60405180910390f35b348015610438575f80fd5b50610453600480360381019061044e9190613897565b610e17565b005b348015610460575f80fd5b5061047b600480360381019061047691906138de565b610e32565b005b348015610488575f80fd5b50610491610e56565b60405161049e91906137ce565b60405180910390f35b6104c160048036038101906104bc9190613909565b610ea1565b005b3480156104ce575f80fd5b506104d7610ef0565b6040516104e49190613434565b60405180910390f35b3480156104f8575f80fd5b50610513600480360381019061050e91906136d4565b610f03565b6040516105209190613434565b60405180910390f35b348015610534575f80fd5b5061053d610f20565b005b34801561054a575f80fd5b50610565600480360381019061056091906136d4565b610fb3565b6040516105729190613434565b60405180910390f35b348015610586575f80fd5b506105a1600480360381019061059c91906136d4565b610fd0565b005b3480156105ae575f80fd5b506105b7610fe2565b6040516105c491906139b4565b60405180910390f35b6105e760048036038101906105e29190613909565b610ff4565b005b3480156105f4575f80fd5b5061060f600480360381019061060a91906136d4565b611043565b005b34801561061c575f80fd5b50610637600480360381019061063291906139cd565b611055565b005b348015610644575f80fd5b5061065f600480360381019061065a9190613897565b6110a0565b005b34801561066c575f80fd5b506106756110bb565b6040516106829190613434565b60405180910390f35b348015610696575f80fd5b5061069f6110ce565b6040516106ac91906136b4565b60405180910390f35b3480156106c0575f80fd5b506106db60048036038101906106d69190613a51565b61115a565b6040516106e89190613bf4565b60405180910390f35b3480156106fc575f80fd5b506107056111b6565b6040516107129190613434565b60405180910390f35b348015610726575f80fd5b5061072f6111c8565b60405161073c91906136b4565b60405180910390f35b348015610750575f80fd5b5061076b600480360381019061076691906136d4565b611254565b604051610778919061373e565b60405180910390f35b34801561078c575f80fd5b506107a760048036038101906107a29190613a51565b611265565b005b3480156107b4575f80fd5b506107cf60048036038101906107ca91906136d4565b6116e0565b005b3480156107dc575f80fd5b506107f760048036038101906107f291906139cd565b6116f2565b60405161080491906137ce565b60405180910390f35b348015610818575f80fd5b50610821611786565b60405161082e919061373e565b60405180910390f35b348015610842575f80fd5b5061084b6117ab565b005b348015610858575f80fd5b50610873600480360381019061086e9190613897565b6117be565b005b348015610880575f80fd5b5061089b600480360381019061089691906139cd565b6117d9565b6040516108a89190613ccb565b60405180910390f35b3480156108bc575f80fd5b506108c5611852565b6040516108d2919061373e565b60405180910390f35b3480156108e6575f80fd5b5061090160048036038101906108fc91906138de565b61187a565b005b34801561090e575f80fd5b5061091761189f565b60405161092491906137ce565b60405180910390f35b348015610938575f80fd5b506109416118a5565b60405161094e91906136b4565b60405180910390f35b348015610962575f80fd5b5061097d60048036038101906109789190613ceb565b611935565b60405161098a9190613ccb565b60405180910390f35b6109ad60048036038101906109a891906136d4565b61194b565b005b3480156109ba575f80fd5b506109d560048036038101906109d09190613d3b565b611ab9565b005b3480156109e2575f80fd5b506109eb611ad2565b6040516109f891906136b4565b60405180910390f35b348015610a0c575f80fd5b50610a276004803603810190610a2291906136d4565b611b5e565b005b348015610a34575f80fd5b50610a4f6004803603810190610a4a91906139cd565b611b70565b005b348015610a5c575f80fd5b50610a65611bbb565b604051610a72919061373e565b60405180910390f35b610a956004803603810190610a909190613e17565b611be0565b005b348015610aa2575f80fd5b50610abd6004803603810190610ab89190613e97565b611c31565b005b348015610aca575f80fd5b50610ae56004803603810190610ae091906136d4565b611c9e565b604051610af29190613f28565b60405180910390f35b348015610b06575f80fd5b50610b216004803603810190610b1c91906136d4565b611d13565b604051610b2e91906136b4565b60405180910390f35b348015610b42575f80fd5b50610b4b611e65565b604051610b5891906137ce565b60405180910390f35b348015610b6c575f80fd5b50610b876004803603810190610b8291906138de565b611e6b565b005b348015610b94575f80fd5b50610baf6004803603810190610baa9190613f41565b611e90565b604051610bbc9190613434565b60405180910390f35b348015610bd0575f80fd5b50610beb6004803603810190610be691906139cd565b611f1e565b005b348015610bf8575f80fd5b50610c01611fa2565b604051610c0e91906137ce565b60405180910390f35b5f6301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c7157506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610ca15750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b610cb0611fa8565b5f5b8251811015610d0a5781600c5f858481518110610cd257610cd1613f7f565b5b602002602001015181526020019081526020015f205f6101000a81548160ff0219169083151502179055508080600101915050610cb2565b505050565b606060028054610d1e90613fd9565b80601f0160208091040260200160405190810160405280929190818152602001828054610d4a90613fd9565b8015610d955780601f10610d6c57610100808354040283529160200191610d95565b820191905f5260205f20905b815481529060010190602001808311610d7857829003601f168201915b5050505050905090565b5f610da98261202f565b610dbe57610dbd63cf4700e460e01b6120d2565b5b60065f8381526020019081526020015f205f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610e02816120da565b610e0c83836121d4565b505050565b60105481565b610e1f611fa8565b80600e9081610e2e919061419d565b5050565b610e3a611fa8565b8060135f6101000a81548160ff02191690831515021790555050565b5f610e5f6121e4565b6001545f54030390507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610e916121ec565b14610e9e57600854810190505b90565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610edf57610ede336120da565b5b610eea848484612213565b50505050565b601360019054906101000a900460ff1681565b600c602052805f5260405f205f915054906101000a900460ff1681565b610f28611fa8565b610f306124be565b5f610f39611852565b73ffffffffffffffffffffffffffffffffffffffff1647604051610f5c90614299565b5f6040518083038185875af1925050503d805f8114610f96576040519150601f19603f3d011682016040523d82523d5f602084013e610f9b565b606091505b5050905080610fa8575f80fd5b50610fb161250d565b565b600b602052805f5260405f205f915054906101000a900460ff1681565b610fd8611fa8565b8060148190555050565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461103257611031336120da565b5b61103d848484612517565b50505050565b61104b611fa8565b8060108190555050565b61105d611fa8565b8060165f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6110a8611fa8565b80600f90816110b7919061419d565b5050565b601360029054906101000a900460ff1681565b600e80546110db90613fd9565b80601f016020809104026020016040519081016040528092919081815260200182805461110790613fd9565b80156111525780601f1061112957610100808354040283529160200191611152565b820191905f5260205f20905b81548152906001019060200180831161113557829003601f168201915b505050505081565b6060805f84849050905060405191508082528060051b90508060208301016040525b5f81146111ab575f6020820391508186013590505f61119a82611c9e565b90508083602086010152505061117c565b819250505092915050565b60135f9054906101000a900460ff1681565b600d80546111d590613fd9565b80601f016020809104026020016040519081016040528092919081815260200182805461120190613fd9565b801561124c5780601f106112235761010080835404028352916020019161124c565b820191905f5260205f20905b81548152906001019060200180831161122f57829003601f168201915b505050505081565b5f61125e82612536565b9050919050565b5f6002838390506112769190614307565b9050601360019054906101000a900460ff166112c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112be90614381565b60405180910390fd5b5f6002848490506112d8919061439f565b14611318576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130f90614419565b60405180910390fd5b60125481111561135d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135490614481565b60405180910390fd5b60115481611369610e56565b611373919061449f565b11156113b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ab9061451c565b60405180910390fd5b5f60155f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505f5b848490508110156116cf573373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16636352211e87878581811061142c5761142b613f7f565b5b905060200201356040518263ffffffff1660e01b815260040161144f91906137ce565b602060405180830381865afa15801561146a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061148e919061454e565b73ffffffffffffffffffffffffffffffffffffffff16146114e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114db906145c3565b60405180910390fd5b5f1515600c5f8787858181106114fd576114fc613f7f565b5b9050602002013581526020019081526020015f205f9054906101000a900460ff16151514611560576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115579061462b565b60405180910390fd5b5f1515600b5f87878581811061157957611578613f7f565b5b9050602002013581526020019081526020015f205f9054906101000a900460ff161515146115dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d390614693565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166323b872dd3360165f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1688888681811061162e5761162d613f7f565b5b905060200201356040518463ffffffff1660e01b8152600401611653939291906146b1565b5f604051808303815f87803b15801561166a575f80fd5b505af115801561167c573d5f803e3d5ffd5b505050506001600b5f87878581811061169857611697613f7f565b5b9050602002013581526020019081526020015f205f6101000a81548160ff02191690831515021790555080806001019150506113db565b506116da3383612645565b50505050565b6116e8611fa8565b8060118190555050565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361173757611736638f4eb60460e01b6120d2565b5b67ffffffffffffffff60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054169050919050565b60165f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6117b3611fa8565b6117bc5f612662565b565b6117c6611fa8565b80600d90816117d5919061419d565b5050565b60607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6118046121ec565b1461181a5761181963bdba09d760e01b6120d2565b5b5f6118236121e4565b90505f61182e612725565b905060608183146118475761184485848461272d565b90505b809350505050919050565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611882611fa8565b80601360016101000a81548160ff02191690831515021790555050565b60125481565b6060600380546118b490613fd9565b80601f01602080910402602001604051908101604052809291908181526020018280546118e090613fd9565b801561192b5780601f106119025761010080835404028352916020019161192b565b820191905f5260205f20905b81548152906001019060200180831161190e57829003601f168201915b5050505050905090565b606061194284848461272d565b90509392505050565b8060115481611958610e56565b611962919061449f565b11156119a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199a9061451c565b60405180910390fd5b5f811180156119b457506012548111155b6119f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ea90614730565b60405180910390fd5b8180601054611a02919061474e565b341015611a44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3b906147d9565b60405180910390fd5b611a4c6124be565b60135f9054906101000a900460ff1615611a9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9290614841565b60405180910390fd5b611aac611aa66128dc565b84612645565b611ab461250d565b505050565b81611ac3816120da565b611acd83836128e3565b505050565b600f8054611adf90613fd9565b80601f0160208091040260200160405190810160405280929190818152602001828054611b0b90613fd9565b8015611b565780601f10611b2d57610100808354040283529160200191611b56565b820191905f5260205f20905b815481529060010190602001808311611b3957829003601f168201915b505050505081565b611b66611fa8565b8060128190555050565b611b78611fa8565b8060155f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60155f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611c1e57611c1d336120da565b5b611c2a858585856129e9565b5050505050565b611c39611fa8565b60115482611c45610e56565b611c4f919061449f565b1115611c90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c879061451c565b60405180910390fd5b611c9a8183612645565b5050565b611ca661333e565b611cae6121e4565b8210611d0d57611cbc6121ec565b821115611cd357611ccc82612a3a565b9050611d0e565b611cdb612725565b821015611d0c575b611cec82612a63565b611cfc5781600190039150611ce3565b611d0582612a3a565b9050611d0e565b5b5b919050565b6060611d1e8261202f565b611d5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d54906148cf565b60405180910390fd5b5f1515601360029054906101000a900460ff16151503611e0757600f8054611d8490613fd9565b80601f0160208091040260200160405190810160405280929190818152602001828054611db090613fd9565b8015611dfb5780601f10611dd257610100808354040283529160200191611dfb565b820191905f5260205f20905b815481529060010190602001808311611dde57829003601f168201915b50505050509050611e60565b5f611e10612a80565b90505f815111611e2e5760405180602001604052805f815250611e5c565b80611e3884612b10565b600e604051602001611e4c939291906149a7565b6040516020818303038152906040525b9150505b919050565b60115481565b611e73611fa8565b80601360026101000a81548160ff02191690831515021790555050565b5f60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b611f26611fa8565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611f96575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401611f8d919061373e565b60405180910390fd5b611f9f81612662565b50565b60145481565b611fb06128dc565b73ffffffffffffffffffffffffffffffffffffffff16611fce611852565b73ffffffffffffffffffffffffffffffffffffffff161461202d57611ff16128dc565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401612024919061373e565b60405180910390fd5b565b5f816120396121e4565b116120cc576120466121ec565b82111561206e5761206760045f8481526020019081526020015f2054612bda565b90506120cd565b5f548210156120cb575f5b5f60045f8581526020019081526020015f2054915081036120a5578261209e906149d7565b9250612079565b5f7c01000000000000000000000000000000000000000000000000000000008216149150505b5b5b919050565b805f5260045ffd5b5f6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156121d1576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b81526004016121509291906149fe565b602060405180830381865afa15801561216b573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061218f9190614a39565b6121d057806040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016121c7919061373e565b60405180910390fd5b5b50565b6121e082826001612c1a565b5050565b5f6001905090565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff905090565b5f61221d82612536565b905073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161693508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146122925761229163a114810060e01b6120d2565b5b5f8061229d84612d44565b915091506122b381876122ae612d67565b612d6e565b6122de576122c8866122c3612d67565b611e90565b6122dd576122dc6359c896be60e01b6120d2565b5b5b6122eb8686866001612db1565b80156122f5575f82555b60055f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600190039190508190555060055f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600101919050819055506123bd85612399888887612db7565b7c020000000000000000000000000000000000000000000000000000000017612dde565b60045f8681526020019081526020015f20819055505f7c0200000000000000000000000000000000000000000000000000000000841603612439575f6001850190505f60045f8381526020019081526020015f205403612437575f548114612436578360045f8381526020019081526020015f20819055505b5b505b5f73ffffffffffffffffffffffffffffffffffffffff8673ffffffffffffffffffffffffffffffffffffffff161690508481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a45f81036124a8576124a763ea553b3460e01b6120d2565b5b6124b58787876001612e08565b50505050505050565b6002600a5403612503576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124fa90614aae565b60405180910390fd5b6002600a81905550565b6001600a81905550565b61253183838360405180602001604052805f815250611be0565b505050565b5f816125406121e4565b1161262f5760045f8381526020019081526020015f205490506125616121ec565b8211156125865761257181612bda565b6126405761258563df2d9b4260e01b6120d2565b5b5f8103612607575f5482106125a6576125a563df2d9b4260e01b6120d2565b5b5b60045f836001900393508381526020019081526020015f205490505f810315612602575f7c0100000000000000000000000000000000000000000000000000000000821603156126405761260163df2d9b4260e01b6120d2565b5b6125a7565b5f7c010000000000000000000000000000000000000000000000000000000082160315612640575b61263f63df2d9b4260e01b6120d2565b5b919050565b61265e828260405180602001604052805f815250612e0e565b5050565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f8054905090565b6060818310612747576127466332c1995a60e01b6120d2565b5b61274f6121e4565b8310156127615761275e6121e4565b92505b5f61276a612725565b90505f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6127966121ec565b036127a157816127a3565b835b90508084106127b0578093505b5f6127ba876116f2565b90508486106127c7575f90505b5f81146128d25780868603116127dd5785850390505b5f60405194506001820160051b85019050806040525f6127fc88611c9e565b90505f816040015161280f57815f015190505b5f5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61283a6121ec565b1461286857868a036128545760016128506121ec565b0199505b61285c6121ec565b8a1115612867575f91505b5b6128718a612a3a565b925060408301515f8114612887575f92506128ad565b83511561289357835192505b8b831860601b6128ac576001820191508a8260051b8a01525b5b5060018a01995083604052888a14806128c557508481145b1561281157808852505050505b5050509392505050565b5f33905090565b8060075f6128ef612d67565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612998612d67565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516129dd9190613434565b60405180910390a35050565b6129f4848484610ea1565b5f8373ffffffffffffffffffffffffffffffffffffffff163b14612a3457612a1e84848484612e84565b612a3357612a3263d1a57ed660e01b6120d2565b5b5b50505050565b612a4261333e565b612a5c60045f8481526020019081526020015f2054612fae565b9050919050565b5f8060045f8481526020019081526020015f205414159050919050565b6060600d8054612a8f90613fd9565b80601f0160208091040260200160405190810160405280929190818152602001828054612abb90613fd9565b8015612b065780601f10612add57610100808354040283529160200191612b06565b820191905f5260205f20905b815481529060010190602001808311612ae957829003601f168201915b5050505050905090565b60605f6001612b1e84613062565b0190505f8167ffffffffffffffff811115612b3c57612b3b613461565b5b6040519080825280601f01601f191660200182016040528015612b6e5781602001600182028036833780820191505090505b5090505f82602001820190505b600115612bcf578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612bc457612bc36142ad565b5b0494505f8503612b7b575b819350505050919050565b5f7c0100000000000000000000000000000000000000000000000000000000821673ffffffffffffffffffffffffffffffffffffffff8316119050919050565b5f612c2483611254565b9050818015612c6657508073ffffffffffffffffffffffffffffffffffffffff16612c4d612d67565b73ffffffffffffffffffffffffffffffffffffffff1614155b15612c9257612c7c81612c77612d67565b611e90565b612c9157612c9063cfb3b94260e01b6120d2565b5b5b8360065f8581526020019081526020015f205f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550828473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a450505050565b5f805f60065f8581526020019081526020015f2090508092508254915050915091565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b5f8060e883901c905060e8612dcd8686846131b3565b62ffffff16901b9150509392505050565b5f73ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b612e1883836131bb565b5f8373ffffffffffffffffffffffffffffffffffffffff163b14612e7f575f805490505f83820390505b612e545f868380600101945086612e84565b612e6957612e6863d1a57ed660e01b6120d2565b5b818110612e4257815f5414612e7c575f80fd5b50505b505050565b5f8373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612ea9612d67565b8786866040518563ffffffff1660e01b8152600401612ecb9493929190614b1e565b6020604051808303815f875af1925050508015612f0657506040513d601f19601f82011682018060405250810190612f039190614b7c565b60015b612f5b573d805f8114612f34576040519150601f19603f3d011682016040523d82523d5f602084013e612f39565b606091505b505f815103612f5357612f5263d1a57ed660e01b6120d2565b5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b612fb661333e565b81815f019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff16815250505f7c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b5f805f90507a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106130be577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816130b4576130b36142ad565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106130fb576d04ee2d6d415b85acef810000000083816130f1576130f06142ad565b5b0492506020810190505b662386f26fc10000831061312a57662386f26fc1000083816131205761311f6142ad565b5b0492506010810190505b6305f5e1008310613153576305f5e1008381613149576131486142ad565b5b0492506008810190505b612710831061317857612710838161316e5761316d6142ad565b5b0492506004810190505b6064831061319b5760648381613191576131906142ad565b5b0492506002810190505b600a83106131aa576001810190505b80915050919050565b5f9392505050565b5f805490505f82036131d8576131d763b562e8dd60e01b6120d2565b5b6131e45f848385612db1565b613202836131f35f865f612db7565b6131fc8561332f565b17612dde565b60045f8381526020019081526020015f2081905550600160406001901b17820260055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505f73ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161690505f81036132b3576132b2632e07630060e01b6120d2565b5b5f83830190505f8390506132c56121ec565b6001830311156132e0576132df6381647e3a60e01b6120d2565b5b5b80835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a48181600101915081036132e157815f8190555050505061332a5f848385612e08565b505050565b5f6001821460e11b9050919050565b60405180608001604052805f73ffffffffffffffffffffffffffffffffffffffff1681526020015f67ffffffffffffffff1681526020015f151581526020015f62ffffff1681525090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6133ce8161339a565b81146133d8575f80fd5b50565b5f813590506133e9816133c5565b92915050565b5f6020828403121561340457613403613392565b5b5f613411848285016133db565b91505092915050565b5f8115159050919050565b61342e8161341a565b82525050565b5f6020820190506134475f830184613425565b92915050565b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b61349782613451565b810181811067ffffffffffffffff821117156134b6576134b5613461565b5b80604052505050565b5f6134c8613389565b90506134d4828261348e565b919050565b5f67ffffffffffffffff8211156134f3576134f2613461565b5b602082029050602081019050919050565b5f80fd5b5f819050919050565b61351a81613508565b8114613524575f80fd5b50565b5f8135905061353581613511565b92915050565b5f61354d613548846134d9565b6134bf565b905080838252602082019050602084028301858111156135705761356f613504565b5b835b8181101561359957806135858882613527565b845260208401935050602081019050613572565b5050509392505050565b5f82601f8301126135b7576135b661344d565b5b81356135c784826020860161353b565b91505092915050565b6135d98161341a565b81146135e3575f80fd5b50565b5f813590506135f4816135d0565b92915050565b5f80604083850312156136105761360f613392565b5b5f83013567ffffffffffffffff81111561362d5761362c613396565b5b613639858286016135a3565b925050602061364a858286016135e6565b9150509250929050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f61368682613654565b613690818561365e565b93506136a081856020860161366e565b6136a981613451565b840191505092915050565b5f6020820190508181035f8301526136cc818461367c565b905092915050565b5f602082840312156136e9576136e8613392565b5b5f6136f684828501613527565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f613728826136ff565b9050919050565b6137388161371e565b82525050565b5f6020820190506137515f83018461372f565b92915050565b6137608161371e565b811461376a575f80fd5b50565b5f8135905061377b81613757565b92915050565b5f806040838503121561379757613796613392565b5b5f6137a48582860161376d565b92505060206137b585828601613527565b9150509250929050565b6137c881613508565b82525050565b5f6020820190506137e15f8301846137bf565b92915050565b5f80fd5b5f67ffffffffffffffff82111561380557613804613461565b5b61380e82613451565b9050602081019050919050565b828183375f83830152505050565b5f61383b613836846137eb565b6134bf565b905082815260208101848484011115613857576138566137e7565b5b61386284828561381b565b509392505050565b5f82601f83011261387e5761387d61344d565b5b813561388e848260208601613829565b91505092915050565b5f602082840312156138ac576138ab613392565b5b5f82013567ffffffffffffffff8111156138c9576138c8613396565b5b6138d58482850161386a565b91505092915050565b5f602082840312156138f3576138f2613392565b5b5f613900848285016135e6565b91505092915050565b5f805f606084860312156139205761391f613392565b5b5f61392d8682870161376d565b935050602061393e8682870161376d565b925050604061394f86828701613527565b9150509250925092565b5f819050919050565b5f61397c613977613972846136ff565b613959565b6136ff565b9050919050565b5f61398d82613962565b9050919050565b5f61399e82613983565b9050919050565b6139ae81613994565b82525050565b5f6020820190506139c75f8301846139a5565b92915050565b5f602082840312156139e2576139e1613392565b5b5f6139ef8482850161376d565b91505092915050565b5f80fd5b5f8083601f840112613a1157613a1061344d565b5b8235905067ffffffffffffffff811115613a2e57613a2d6139f8565b5b602083019150836020820283011115613a4a57613a49613504565b5b9250929050565b5f8060208385031215613a6757613a66613392565b5b5f83013567ffffffffffffffff811115613a8457613a83613396565b5b613a90858286016139fc565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b613ace8161371e565b82525050565b5f67ffffffffffffffff82169050919050565b613af081613ad4565b82525050565b613aff8161341a565b82525050565b5f62ffffff82169050919050565b613b1c81613b05565b82525050565b608082015f820151613b365f850182613ac5565b506020820151613b496020850182613ae7565b506040820151613b5c6040850182613af6565b506060820151613b6f6060850182613b13565b50505050565b5f613b808383613b22565b60808301905092915050565b5f602082019050919050565b5f613ba282613a9c565b613bac8185613aa6565b9350613bb783613ab6565b805f5b83811015613be7578151613bce8882613b75565b9750613bd983613b8c565b925050600181019050613bba565b5085935050505092915050565b5f6020820190508181035f830152613c0c8184613b98565b905092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b613c4681613508565b82525050565b5f613c578383613c3d565b60208301905092915050565b5f602082019050919050565b5f613c7982613c14565b613c838185613c1e565b9350613c8e83613c2e565b805f5b83811015613cbe578151613ca58882613c4c565b9750613cb083613c63565b925050600181019050613c91565b5085935050505092915050565b5f6020820190508181035f830152613ce38184613c6f565b905092915050565b5f805f60608486031215613d0257613d01613392565b5b5f613d0f8682870161376d565b9350506020613d2086828701613527565b9250506040613d3186828701613527565b9150509250925092565b5f8060408385031215613d5157613d50613392565b5b5f613d5e8582860161376d565b9250506020613d6f858286016135e6565b9150509250929050565b5f67ffffffffffffffff821115613d9357613d92613461565b5b613d9c82613451565b9050602081019050919050565b5f613dbb613db684613d79565b6134bf565b905082815260208101848484011115613dd757613dd66137e7565b5b613de284828561381b565b509392505050565b5f82601f830112613dfe57613dfd61344d565b5b8135613e0e848260208601613da9565b91505092915050565b5f805f8060808587031215613e2f57613e2e613392565b5b5f613e3c8782880161376d565b9450506020613e4d8782880161376d565b9350506040613e5e87828801613527565b925050606085013567ffffffffffffffff811115613e7f57613e7e613396565b5b613e8b87828801613dea565b91505092959194509250565b5f8060408385031215613ead57613eac613392565b5b5f613eba85828601613527565b9250506020613ecb8582860161376d565b9150509250929050565b608082015f820151613ee95f850182613ac5565b506020820151613efc6020850182613ae7565b506040820151613f0f6040850182613af6565b506060820151613f226060850182613b13565b50505050565b5f608082019050613f3b5f830184613ed5565b92915050565b5f8060408385031215613f5757613f56613392565b5b5f613f648582860161376d565b9250506020613f758582860161376d565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680613ff057607f821691505b60208210810361400357614002613fac565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026140657fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261402a565b61406f868361402a565b95508019841693508086168417925050509392505050565b5f6140a161409c61409784613508565b613959565b613508565b9050919050565b5f819050919050565b6140ba83614087565b6140ce6140c6826140a8565b848454614036565b825550505050565b5f90565b6140e26140d6565b6140ed8184846140b1565b505050565b5b81811015614110576141055f826140da565b6001810190506140f3565b5050565b601f8211156141555761412681614009565b61412f8461401b565b8101602085101561413e578190505b61415261414a8561401b565b8301826140f2565b50505b505050565b5f82821c905092915050565b5f6141755f198460080261415a565b1980831691505092915050565b5f61418d8383614166565b9150826002028217905092915050565b6141a682613654565b67ffffffffffffffff8111156141bf576141be613461565b5b6141c98254613fd9565b6141d4828285614114565b5f60209050601f831160018114614205575f84156141f3578287015190505b6141fd8582614182565b865550614264565b601f19841661421386614009565b5f5b8281101561423a57848901518255600182019150602085019450602081019050614215565b868310156142575784890151614253601f891682614166565b8355505b6001600288020188555050505b505050505050565b5f81905092915050565b50565b5f6142845f8361426c565b915061428f82614276565b5f82019050919050565b5f6142a382614279565b9150819050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61431182613508565b915061431c83613508565b92508261432c5761432b6142ad565b5b828204905092915050565b7f436c61696d206973206e6f7420656e61626c65642100000000000000000000005f82015250565b5f61436b60158361365e565b915061437682614337565b602082019050919050565b5f6020820190508181035f8301526143988161435f565b9050919050565b5f6143a982613508565b91506143b483613508565b9250826143c4576143c36142ad565b5b828206905092915050565b7f546f6b656e73206d75737420626520696e2032207061697273210000000000005f82015250565b5f614403601a8361365e565b915061440e826143cf565b602082019050919050565b5f6020820190508181035f830152614430816143f7565b9050919050565b7f4d6178206d696e7420616d6f756e7420657863656564656421000000000000005f82015250565b5f61446b60198361365e565b915061447682614437565b602082019050919050565b5f6020820190508181035f8301526144988161445f565b9050919050565b5f6144a982613508565b91506144b483613508565b92508282019050808211156144cc576144cb6142da565b5b92915050565b7f4d617820737570706c79206578636565646564210000000000000000000000005f82015250565b5f61450660148361365e565b9150614511826144d2565b602082019050919050565b5f6020820190508181035f830152614533816144fa565b9050919050565b5f8151905061454881613757565b92915050565b5f6020828403121561456357614562613392565b5b5f6145708482850161453a565b91505092915050565b7f596f7520646f206e6f74206f776e207468697320746f6b656e210000000000005f82015250565b5f6145ad601a8361365e565b91506145b882614579565b602082019050919050565b5f6020820190508181035f8301526145da816145a1565b9050919050565b7f546f6b656e20697320626c61636b6c69737465642100000000000000000000005f82015250565b5f61461560158361365e565b9150614620826145e1565b602082019050919050565b5f6020820190508181035f83015261464281614609565b9050919050565b7f546f6b656e2068617320616c7265616479206265656e20636c61696d656421005f82015250565b5f61467d601f8361365e565b915061468882614649565b602082019050919050565b5f6020820190508181035f8301526146aa81614671565b9050919050565b5f6060820190506146c45f83018661372f565b6146d1602083018561372f565b6146de60408301846137bf565b949350505050565b7f496e76616c6964206d696e7420616d6f756e74210000000000000000000000005f82015250565b5f61471a60148361365e565b9150614725826146e6565b602082019050919050565b5f6020820190508181035f8301526147478161470e565b9050919050565b5f61475882613508565b915061476383613508565b925082820261477181613508565b91508282048414831517614788576147876142da565b5b5092915050565b7f496e73756666696369656e742066756e647321000000000000000000000000005f82015250565b5f6147c360138361365e565b91506147ce8261478f565b602082019050919050565b5f6020820190508181035f8301526147f0816147b7565b9050919050565b7f54686520636f6e747261637420697320706175736564210000000000000000005f82015250565b5f61482b60178361365e565b9150614836826147f7565b602082019050919050565b5f6020820190508181035f8301526148588161481f565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f5f8201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b5f6148b9602f8361365e565b91506148c48261485f565b604082019050919050565b5f6020820190508181035f8301526148e6816148ad565b9050919050565b5f81905092915050565b5f61490182613654565b61490b81856148ed565b935061491b81856020860161366e565b80840191505092915050565b5f815461493381613fd9565b61493d81866148ed565b9450600182165f8114614957576001811461496c5761499e565b60ff198316865281151582028601935061499e565b61497585614009565b5f5b8381101561499657815481890152600182019150602081019050614977565b838801955050505b50505092915050565b5f6149b282866148f7565b91506149be82856148f7565b91506149ca8284614927565b9150819050949350505050565b5f6149e182613508565b91505f82036149f3576149f26142da565b5b600182039050919050565b5f604082019050614a115f83018561372f565b614a1e602083018461372f565b9392505050565b5f81519050614a33816135d0565b92915050565b5f60208284031215614a4e57614a4d613392565b5b5f614a5b84828501614a25565b91505092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f614a98601f8361365e565b9150614aa382614a64565b602082019050919050565b5f6020820190508181035f830152614ac581614a8c565b9050919050565b5f81519050919050565b5f82825260208201905092915050565b5f614af082614acc565b614afa8185614ad6565b9350614b0a81856020860161366e565b614b1381613451565b840191505092915050565b5f608082019050614b315f83018761372f565b614b3e602083018661372f565b614b4b60408301856137bf565b8181036060830152614b5d8184614ae6565b905095945050505050565b5f81519050614b76816133c5565b92915050565b5f60208284031215614b9157614b90613392565b5b5f614b9e84828501614b68565b9150509291505056fea2646970667358221220330abc69be303ca33d59c89b27af7cebedbc9b52e417dc0f6755a1aad714d92264736f6c63430008190033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.