ETH Price: $3,318.10 (+1.35%)
 

Overview

Max Total Supply

79 8DM

Holders

79

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
onenightintokyo.eth
Balance
1 8DM
0x011aaf6b967623cfc55b8ff7fa178faa0b9c0703
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
DAOMember

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : DAOMember.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "erc721a/contracts/ERC721A.sol";
import "erc721a/contracts/extensions/ERC721AQueryable.sol";

contract DAOMember is Ownable, ERC721AQueryable {
    using ECDSA for bytes32;

    enum Status {
        // the status of ready to mint.
        Pending,
        // the status of after member minted.
        Active,
        // the status set by community for security.
        // can be active again.
        Suspended,
        // the status set by community or member reason for member quit.
        // can be active again.
        Archived
    }

    string public baseURI;

    address private signer;
    mapping(uint256 => Status) public memberStatuses;

    event SignerChanged(address operator, address from, address to);
    event BaseURIChanged(
        address operator,
        string fromBaseURI,
        string toBaseURI
    );
    event Minted(address from, address to, uint256 tokenId);
    event StatusChanged(address operator, Status fromStatus, Status toStatus);

    constructor(
        address _signer,
        string memory _baseURI
    ) ERC721A("8DAOMember", "8DM") {
        require(
            _signer != address(0),
            "The signer cannot be initialized zero."
        );
        signer = _signer;

        baseURI = _baseURI;
    }

    function _hashBytes(address from) internal pure returns (bytes32) {
        return keccak256(abi.encode(from));
    }

    function _hashAddress(address sender) internal pure returns (bytes32) {
        return keccak256(abi.encode(sender));
    }

    function _verify(
        bytes32 hash,
        bytes memory token
    ) internal view returns (bool) {
        return (_recover(hash, token) == signer);
    }

    function _recover(
        bytes32 hash,
        bytes memory token
    ) internal pure returns (address) {
        return hash.toEthSignedMessageHash().recover(token);
    }

    function setSigner(address _signer) external onlyOwner {
        emit SignerChanged(_msgSender(), signer, _signer);
        signer = _signer;
    }

    function getSigner() external view onlyOwner returns (address) {
        return signer;
    }

    function updateBaseURI(string calldata _newBaseURI) external onlyOwner {
        emit BaseURIChanged(msg.sender, baseURI, _newBaseURI);
        baseURI = _newBaseURI;
    }

    function mint(bytes calldata signature) external {
        require(balanceOf(_msgSender()) == 0, "The member has already minted.");

        require(
            _verify(_hashBytes(_msgSender()), signature),
            "Invalid signature."
        );

        uint256 tokenId = _nextTokenId();
        _safeMint(_msgSender(), 1);
        memberStatuses[tokenId] = Status.Active;

        emit Minted(_msgSender(), _msgSender(), tokenId);
    }

    function mintAndAirdrop(address[] calldata members) external onlyOwner {
        for (uint256 i = 0; i < members.length; i++) {
            address member = members[i];
            //            require(balanceOf(member) == 0, "The member has already minted.");
            if (balanceOf(member) == 0) {
                uint256 tokenId = _nextTokenId();
                _safeMint(member, 1);
                memberStatuses[tokenId] = Status.Active;

                emit Minted(_msgSender(), member, tokenId);
            }
        }
    }

    function activate(uint256 tokenId) external onlyOwner {
        require(
            memberStatuses[tokenId] == Status.Suspended ||
                memberStatuses[tokenId] == Status.Archived,
            "The member is not suspended or archived now."
        );

        memberStatuses[tokenId] = Status.Active;
        emit StatusChanged(_msgSender(), Status.Pending, Status.Active);
    }

    function suspend(uint256 tokenId) external onlyOwner {
        require(
            memberStatuses[tokenId] == Status.Active,
            "The member is not activating now."
        );

        memberStatuses[tokenId] = Status.Suspended;
        emit StatusChanged(_msgSender(), Status.Active, Status.Suspended);
    }

    function archive(uint256 tokenId) external {
        if (_msgSender() == owner()) {
            _archive(_msgSender(), tokenId);
        } else {
            require(
                ownerOf(tokenId) == _msgSender(),
                "Only owner can archive."
            );
            _archive(_msgSender(), tokenId);
        }
    }

    function _archive(address from, uint256 tokenId) private {
        require(
            memberStatuses[tokenId] == Status.Active,
            "The member is not activating now."
        );

        memberStatuses[tokenId] = Status.Archived;
        emit StatusChanged(from, Status.Active, Status.Archived);
    }

    function approve(
        address,
        uint256
    ) public payable override(ERC721A, IERC721A) {
        require(false, "Cannot approve.");
    }

    function setApprovalForAll(
        address,
        bool
    ) public pure override(ERC721A, IERC721A) {
        require(false, "Cannot setApprovalForAll.");
    }

    function isApprovedForAll(
        address owner,
        address operator
    ) public view override(ERC721A, IERC721A) returns (bool) {
        if (_msgSender() == super.owner()) {
            return true;
        }
        return super.isApprovedForAll(owner, operator);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable override(ERC721A, IERC721A) onlyOwner {
        safeTransferFrom(from, to, tokenId, bytes(""));
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public payable override(ERC721A, IERC721A) onlyOwner {
        _transferToken(from, to, tokenId, _data);
    }

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable override(ERC721A, IERC721A) onlyOwner {
        _transferToken(from, to, tokenId, bytes(""));
    }

    function _transferToken(
        address from,
        address to,
        uint256 tokenId,
        bytes memory
    ) private {
        require(ownerOf(tokenId) == from, "`from` address has no token.");
        require(balanceOf(to) == 0, "`to` address already has token.");
        require(
            memberStatuses[tokenId] == Status.Suspended,
            "The Active or archived token cannot be transfer."
        );

        super.transferFrom(from, to, tokenId);
    }

    function tokenURI(
        uint256 tokenId
    ) public view override(ERC721A, IERC721A) returns (string memory) {
        if (!_exists(tokenId)) {
            return "";
        }
        address owner = this.ownerOf(tokenId);
        return string(abi.encodePacked(baseURI, Strings.toHexString(owner)));
    }

    function tokenIdOfOwner(address owner) public view returns (uint256) {
        require(balanceOf(owner) > 0, "`from` address has no token.");
        uint256[] memory tokens = this.tokensOfOwner(owner);
        return tokens[0];
    }

    function balanceOf8DAOTokens(
        address[] calldata members,
        address token
    ) external view returns (uint256[] memory) {
        uint256[] memory amounts = new uint256[](members.length);
        for (uint256 i = 0; i < members.length; i++) {
            uint256 amount = IERC20(token).balanceOf(members[i]);
            amounts[i] = amount;
        }
        return amounts;
    }
}

File 2 of 11 : ERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// 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) {
        TokenOwnership memory ownership;
        if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) {
            return ownership;
        }
        ownership = _ownershipAt(tokenId);
        if (ownership.burned) {
            return ownership;
        }
        return _ownershipOf(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)
    {
        unchecked {
            uint256 tokenIdsLength = tokenIds.length;
            TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength);
            for (uint256 i; i != tokenIdsLength; ++i) {
                ownerships[i] = explicitOwnershipOf(tokenIds[i]);
            }
            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) {
        unchecked {
            if (start >= stop) revert InvalidQueryRange();
            uint256 tokenIdsIdx;
            uint256 stopLimit = _nextTokenId();
            // Set `start = max(start, _startTokenId())`.
            if (start < _startTokenId()) {
                start = _startTokenId();
            }
            // Set `stop = min(stop, stopLimit)`.
            if (stop > stopLimit) {
                stop = stopLimit;
            }
            uint256 tokenIdsMaxLength = balanceOf(owner);
            // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`,
            // to cater for cases where `balanceOf(owner)` is too big.
            if (start < stop) {
                uint256 rangeLength = stop - start;
                if (rangeLength < tokenIdsMaxLength) {
                    tokenIdsMaxLength = rangeLength;
                }
            } else {
                tokenIdsMaxLength = 0;
            }
            uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength);
            if (tokenIdsMaxLength == 0) {
                return tokenIds;
            }
            // 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;
            }
            for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) {
                ownership = _ownershipAt(i);
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            // Downsize the array to fit.
            assembly {
                mstore(tokenIds, tokenIdsIdx)
            }
            return tokenIds;
        }
    }

    /**
     * @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) {
        unchecked {
            uint256 tokenIdsIdx;
            address currOwnershipAddr;
            uint256 tokenIdsLength = balanceOf(owner);
            uint256[] memory tokenIds = new uint256[](tokenIdsLength);
            TokenOwnership memory ownership;
            for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) {
                ownership = _ownershipAt(i);
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            return tokenIds;
        }
    }
}

File 3 of 11 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// 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()`.
 *
 * 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;

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

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

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

    /**
     * @dev Returns the starting token ID.
     * To change the starting token ID, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @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) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

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

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

    // =============================================================
    //                    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();
        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();

        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 Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal virtual {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & _BITMASK_BURNED == 0) {
                        // 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, `curr` will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed will be zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @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.
     * 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) public payable virtual override {
        address owner = ownerOf(tokenId);

        if (_msgSenderERC721A() != owner)
            if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                revert ApprovalCallerNotOwnerNorApproved();
            }

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

    /**
     * @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();

        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) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not 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);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        (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();

        if (to == address(0)) revert TransferToZeroAddress();

        _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;
                    }
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _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();
            }
    }

    /**
     * @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();
            } else {
                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();

        _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:
            // - `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)
            );

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            // The duplicated `log4` removes an extra check and reduces stack juggling.
            // The assembly, together with the surrounding Solidity code, have been
            // delicately arranged to nudge the compiler into producing optimized opcodes.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // 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`.
                    startTokenId // `tokenId`.
                )

                // The `iszero(eq(,))` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
                // The compiler will optimize the `iszero` away for performance.
                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

            _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();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

        _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)
            );

            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();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

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

    // =============================================================
    //                        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();
        }

        _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 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();
        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)
        }
    }
}

File 4 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 5 of 11 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

    /**
     * @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), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @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) {
        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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        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);
    }
}

File 6 of 11 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV // Deprecated in v4.8
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 7 of 11 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../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.
 *
 * By default, the owner account will be the one that deploys the contract. 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;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @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 {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing 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 {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _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 8 of 11 : IERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// 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 9 of 11 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// 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();

    // =============================================================
    //                            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);
}

File 10 of 11 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @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 up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (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; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 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.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            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 (rounding == Rounding.Up && 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 down.
     *
     * 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 + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * 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 + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * 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 + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * 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 10, 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 + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

File 11 of 11 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @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;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_signer","type":"address"},{"internalType":"string","name":"_baseURI","type":"string"}],"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":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","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":false,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"string","name":"fromBaseURI","type":"string"},{"indexed":false,"internalType":"string","name":"toBaseURI","type":"string"}],"name":"BaseURIChanged","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":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Minted","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":false,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"}],"name":"SignerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"enum DAOMember.Status","name":"fromStatus","type":"uint8"},{"indexed":false,"internalType":"enum DAOMember.Status","name":"toStatus","type":"uint8"}],"name":"StatusChanged","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"activate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"archive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"members","type":"address[]"},{"internalType":"address","name":"token","type":"address"}],"name":"balanceOf8DAOTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"","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":"getSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"memberStatuses","outputs":[{"internalType":"enum DAOMember.Status","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"members","type":"address[]"}],"name":"mintAndAirdrop","outputs":[],"stateMutability":"nonpayable","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","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":"","type":"address"},{"internalType":"bool","name":"","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSigner","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"suspend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokenIdOfOwner","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"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":"totalSupply","outputs":[{"internalType":"uint256","name":"","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":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"updateBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200587638038062005876833981810160405281019062000037919062000495565b6040518060400160405280600a81526020017f3844414f4d656d626572000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f38444d0000000000000000000000000000000000000000000000000000000000815250620000c3620000b7620001cc60201b60201c565b620001d460201b60201c565b8160039081620000d4919062000746565b508060049081620000e6919062000746565b50620000f76200029860201b60201c565b6001819055505050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160362000171576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200016890620008b4565b60405180910390fd5b81600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060099081620001c3919062000746565b505050620008d6565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620002de82620002b1565b9050919050565b620002f081620002d1565b8114620002fc57600080fd5b50565b6000815190506200031081620002e5565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200036b8262000320565b810181811067ffffffffffffffff821117156200038d576200038c62000331565b5b80604052505050565b6000620003a26200029d565b9050620003b0828262000360565b919050565b600067ffffffffffffffff821115620003d357620003d262000331565b5b620003de8262000320565b9050602081019050919050565b60005b838110156200040b578082015181840152602081019050620003ee565b60008484015250505050565b60006200042e6200042884620003b5565b62000396565b9050828152602081018484840111156200044d576200044c6200031b565b5b6200045a848285620003eb565b509392505050565b600082601f8301126200047a576200047962000316565b5b81516200048c84826020860162000417565b91505092915050565b60008060408385031215620004af57620004ae620002a7565b5b6000620004bf85828601620002ff565b925050602083015167ffffffffffffffff811115620004e357620004e2620002ac565b5b620004f18582860162000462565b9150509250929050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200054e57607f821691505b60208210810362000564576200056362000506565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620005ce7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200058f565b620005da86836200058f565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062000627620006216200061b84620005f2565b620005fc565b620005f2565b9050919050565b6000819050919050565b620006438362000606565b6200065b62000652826200062e565b8484546200059c565b825550505050565b600090565b6200067262000663565b6200067f81848462000638565b505050565b5b81811015620006a7576200069b60008262000668565b60018101905062000685565b5050565b601f821115620006f657620006c0816200056a565b620006cb846200057f565b81016020851015620006db578190505b620006f3620006ea856200057f565b83018262000684565b50505b505050565b600082821c905092915050565b60006200071b60001984600802620006fb565b1980831691505092915050565b600062000736838362000708565b9150826002028217905092915050565b6200075182620004fb565b67ffffffffffffffff8111156200076d576200076c62000331565b5b62000779825462000535565b62000786828285620006ab565b600060209050601f831160018114620007be5760008415620007a9578287015190505b620007b5858262000728565b86555062000825565b601f198416620007ce866200056a565b60005b82811015620007f857848901518255600182019150602085019450602081019050620007d1565b8683101562000818578489015162000814601f89168262000708565b8355505b6001600288020188555050505b505050505050565b600082825260208201905092915050565b7f546865207369676e65722063616e6e6f7420626520696e697469616c697a656460008201527f207a65726f2e0000000000000000000000000000000000000000000000000000602082015250565b60006200089c6026836200082d565b9150620008a9826200083e565b604082019050919050565b60006020820190508181036000830152620008cf816200088d565b9050919050565b614f9080620008e66000396000f3fe6080604052600436106101ee5760003560e01c80637ba0e2e71161010d578063a22cb465116100a0578063c87b56dd1161006f578063c87b56dd146106e9578063da87741b14610726578063e5c2a5af14610763578063e985e9c5146107a0578063f2fde38b146107dd576101ee565b8063a22cb4651461063e578063b260c42a14610667578063b88d4fde14610690578063c23dc68f146106ac576101ee565b8063931688cb116100dc578063931688cb1461058457806393c829fc146105ad57806395d89b41146105d657806399a2557a14610601576101ee565b80637ba0e2e7146104ca5780637f7880cf146104f35780638462151c1461051c5780638da5cb5b14610559576101ee565b80634b865846116101855780636c19e783116101545780636c19e7831461042257806370a082311461044b578063715018a6146104885780637ac3c02f1461049f576101ee565b80634b865846146103545780635bbb21771461037d5780636352211e146103ba5780636c0360eb146103f7576101ee565b8063095ea7b3116101c1578063095ea7b3146102d557806318160ddd146102f157806323b872dd1461031c57806342842e0e14610338576101ee565b806301ffc9a7146101f357806302d625a61461023057806306fdde031461026d578063081812fc14610298575b600080fd5b3480156101ff57600080fd5b5061021a600480360381019061021591906131b2565b610806565b60405161022791906131fa565b60405180910390f35b34801561023c57600080fd5b506102576004803603810190610252919061324b565b610898565b60405161026491906132ef565b60405180910390f35b34801561027957600080fd5b506102826108b8565b60405161028f919061339a565b60405180910390f35b3480156102a457600080fd5b506102bf60048036038101906102ba919061324b565b61094a565b6040516102cc91906133fd565b60405180910390f35b6102ef60048036038101906102ea9190613444565b6109c9565b005b3480156102fd57600080fd5b50610306610a0e565b6040516103139190613493565b60405180910390f35b610336600480360381019061033191906134ae565b610a25565b005b610352600480360381019061034d91906134ae565b610a4d565b005b34801561036057600080fd5b5061037b6004803603810190610376919061324b565b610a75565b005b34801561038957600080fd5b506103a4600480360381019061039f9190613566565b610b87565b6040516103b19190613716565b60405180910390f35b3480156103c657600080fd5b506103e160048036038101906103dc919061324b565b610c4a565b6040516103ee91906133fd565b60405180910390f35b34801561040357600080fd5b5061040c610c5c565b604051610419919061339a565b60405180910390f35b34801561042e57600080fd5b5061044960048036038101906104449190613738565b610cea565b005b34801561045757600080fd5b50610472600480360381019061046d9190613738565b610d9a565b60405161047f9190613493565b60405180910390f35b34801561049457600080fd5b5061049d610e52565b005b3480156104ab57600080fd5b506104b4610e66565b6040516104c191906133fd565b60405180910390f35b3480156104d657600080fd5b506104f160048036038101906104ec91906137bb565b610e98565b005b3480156104ff57600080fd5b5061051a6004803603810190610515919061385e565b61102e565b005b34801561052857600080fd5b50610543600480360381019061053e9190613738565b611130565b6040516105509190613969565b60405180910390f35b34801561056557600080fd5b5061056e611273565b60405161057b91906133fd565b60405180910390f35b34801561059057600080fd5b506105ab60048036038101906105a691906139e1565b61129c565b005b3480156105b957600080fd5b506105d460048036038101906105cf919061324b565b6112f8565b005b3480156105e257600080fd5b506105eb6113e1565b6040516105f8919061339a565b60405180910390f35b34801561060d57600080fd5b5061062860048036038101906106239190613a2e565b611473565b6040516106359190613969565b60405180910390f35b34801561064a57600080fd5b5061066560048036038101906106609190613aad565b61167f565b005b34801561067357600080fd5b5061068e6004803603810190610689919061324b565b6116c4565b005b6106aa60048036038101906106a59190613c1d565b611824565b005b3480156106b857600080fd5b506106d360048036038101906106ce919061324b565b61183e565b6040516106e09190613cf5565b60405180910390f35b3480156106f557600080fd5b50610710600480360381019061070b919061324b565b6118a8565b60405161071d919061339a565b60405180910390f35b34801561073257600080fd5b5061074d60048036038101906107489190613738565b611980565b60405161075a9190613493565b60405180910390f35b34801561076f57600080fd5b5061078a60048036038101906107859190613d10565b611a73565b6040516107979190613969565b60405180910390f35b3480156107ac57600080fd5b506107c760048036038101906107c29190613d70565b611bb8565b6040516107d491906131fa565b60405180910390f35b3480156107e957600080fd5b5061080460048036038101906107ff9190613738565b611c17565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061086157506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108915750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600b6020528060005260406000206000915054906101000a900460ff1681565b6060600380546108c790613ddf565b80601f01602080910402602001604051908101604052809291908181526020018280546108f390613ddf565b80156109405780601f1061091557610100808354040283529160200191610940565b820191906000526020600020905b81548152906001019060200180831161092357829003601f168201915b5050505050905090565b600061095582611c9a565b61098b576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0190613e5c565b60405180910390fd5b5050565b6000610a18611cf9565b6002546001540303905090565b610a2d611cfe565b610a4883838360405180602001604052806000815250611d7c565b505050565b610a55611cfe565b610a7083838360405180602001604052806000815250611824565b505050565b610a7d611cfe565b60016003811115610a9157610a90613278565b5b600b600083815260200190815260200160002060009054906101000a900460ff166003811115610ac457610ac3613278565b5b14610b04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610afb90613eee565b60405180910390fd5b6002600b600083815260200190815260200160002060006101000a81548160ff02191690836003811115610b3b57610b3a613278565b5b02179055507fc56724748fe631e640d2e2bbd30de531a5d329ff1956ecdd93ac3755bd511c1e610b69611ed5565b60016002604051610b7c93929190613f0e565b60405180910390a150565b6060600083839050905060008167ffffffffffffffff811115610bad57610bac613af2565b5b604051908082528060200260200182016040528015610be657816020015b610bd36130f7565b815260200190600190039081610bcb5790505b50905060005b828114610c3e57610c15868683818110610c0957610c08613f45565b5b9050602002013561183e565b828281518110610c2857610c27613f45565b5b6020026020010181905250806001019050610bec565b50809250505092915050565b6000610c5582611edd565b9050919050565b60098054610c6990613ddf565b80601f0160208091040260200160405190810160405280929190818152602001828054610c9590613ddf565b8015610ce25780601f10610cb757610100808354040283529160200191610ce2565b820191906000526020600020905b815481529060010190602001808311610cc557829003601f168201915b505050505081565b610cf2611cfe565b7f24779ce5fe2429146fb350e3dc834be089e40e789d4f53dac6905a26cbc97a8b610d1b611ed5565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683604051610d4e93929190613f74565b60405180910390a180600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e01576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b610e5a611cfe565b610e646000611fa9565b565b6000610e70611cfe565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000610eaa610ea5611ed5565b610d9a565b14610eea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee190613ff7565b60405180910390fd5b610f47610efd610ef8611ed5565b61206d565b83838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061209d565b610f86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7d90614063565b60405180910390fd5b6000610f90612101565b9050610fa4610f9d611ed5565b600161210b565b6001600b600083815260200190815260200160002060006101000a81548160ff02191690836003811115610fdb57610fda613278565b5b02179055507f9d228d69b5fdb8d273a2336f8fb8612d039631024ea9bf09c424a9503aa078f0611009611ed5565b611011611ed5565b8360405161102193929190614083565b60405180910390a1505050565b611036611cfe565b60005b8282905081101561112b57600083838381811061105957611058613f45565b5b905060200201602081019061106e9190613738565b9050600061107b82610d9a565b0361111757600061108a612101565b905061109782600161210b565b6001600b600083815260200190815260200160002060006101000a81548160ff021916908360038111156110ce576110cd613278565b5b02179055507f9d228d69b5fdb8d273a2336f8fb8612d039631024ea9bf09c424a9503aa078f06110fc611ed5565b838360405161110d93929190614083565b60405180910390a1505b508080611123906140e9565b915050611039565b505050565b6060600080600061114085610d9a565b905060008167ffffffffffffffff81111561115e5761115d613af2565b5b60405190808252806020026020018201604052801561118c5781602001602082028036833780820191505090505b5090506111976130f7565b60006111a1611cf9565b90505b838614611265576111b481612129565b9150816040015161125a57600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff16146111ff57816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611259578083878060010198508151811061124c5761124b613f45565b5b6020026020010181815250505b5b8060010190506111a4565b508195505050505050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6112a4611cfe565b7f92bf6a7b8937c17e6781a68d61f9fe6a5ce08604b96ca2206f311049a3a295ea33600984846040516112da94939291906141f7565b60405180910390a18181600991826112f39291906143e0565b505050565b611300611273565b73ffffffffffffffffffffffffffffffffffffffff1661131e611ed5565b73ffffffffffffffffffffffffffffffffffffffff160361134f5761134a611344611ed5565b82612154565b6113de565b611357611ed5565b73ffffffffffffffffffffffffffffffffffffffff1661137682610c4a565b73ffffffffffffffffffffffffffffffffffffffff16146113cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113c3906144fc565b60405180910390fd5b6113dd6113d7611ed5565b82612154565b5b50565b6060600480546113f090613ddf565b80601f016020809104026020016040519081016040528092919081815260200182805461141c90613ddf565b80156114695780601f1061143e57610100808354040283529160200191611469565b820191906000526020600020905b81548152906001019060200180831161144c57829003601f168201915b5050505050905090565b60608183106114ae576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806114b9612101565b90506114c3611cf9565b8510156114d5576114d2611cf9565b94505b808411156114e1578093505b60006114ec87610d9a565b90508486101561150f576000868603905081811015611509578091505b50611514565b600090505b60008167ffffffffffffffff8111156115305761152f613af2565b5b60405190808252806020026020018201604052801561155e5781602001602082028036833780820191505090505b509050600082036115755780945050505050611678565b60006115808861183e565b90506000816040015161159557816000015190505b60008990505b8881141580156115ab5750848714155b1561166a576115b981612129565b9250826040015161165f57600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff161461160457826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361165e578084888060010199508151811061165157611650613f45565b5b6020026020010181815250505b5b80600101905061159b565b508583528296505050505050505b9392505050565b60006116c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b790614568565b60405180910390fd5b5050565b6116cc611cfe565b600260038111156116e0576116df613278565b5b600b600083815260200190815260200160002060009054906101000a900460ff16600381111561171357611712613278565b5b1480611762575060038081111561172d5761172c613278565b5b600b600083815260200190815260200160002060009054906101000a900460ff1660038111156117605761175f613278565b5b145b6117a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611798906145fa565b60405180910390fd5b6001600b600083815260200190815260200160002060006101000a81548160ff021916908360038111156117d8576117d7613278565b5b02179055507fc56724748fe631e640d2e2bbd30de531a5d329ff1956ecdd93ac3755bd511c1e611806611ed5565b6000600160405161181993929190613f0e565b60405180910390a150565b61182c611cfe565b61183884848484611d7c565b50505050565b6118466130f7565b61184e6130f7565b611856611cf9565b83108061186a5750611866612101565b8310155b1561187857809150506118a3565b61188183612129565b905080604001511561189657809150506118a3565b61189f83612258565b9150505b919050565b60606118b382611c9a565b6118ce5760405180602001604052806000815250905061197b565b60003073ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b81526004016119099190613493565b602060405180830381865afa158015611926573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061194a919061462f565b9050600961195782612278565b60405160200161196892919061471b565b6040516020818303038152906040529150505b919050565b60008061198c83610d9a565b116119cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c39061478b565b60405180910390fd5b60003073ffffffffffffffffffffffffffffffffffffffff16638462151c846040518263ffffffff1660e01b8152600401611a0791906133fd565b600060405180830381865afa158015611a24573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611a4d9190614883565b905080600081518110611a6357611a62613f45565b5b6020026020010151915050919050565b606060008484905067ffffffffffffffff811115611a9457611a93613af2565b5b604051908082528060200260200182016040528015611ac25781602001602082028036833780820191505090505b50905060005b85859050811015611bac5760008473ffffffffffffffffffffffffffffffffffffffff166370a08231888885818110611b0457611b03613f45565b5b9050602002016020810190611b199190613738565b6040518263ffffffff1660e01b8152600401611b3591906133fd565b602060405180830381865afa158015611b52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b7691906148cc565b905080838381518110611b8c57611b8b613f45565b5b602002602001018181525050508080611ba4906140e9565b915050611ac8565b50809150509392505050565b6000611bc2611273565b73ffffffffffffffffffffffffffffffffffffffff16611be0611ed5565b73ffffffffffffffffffffffffffffffffffffffff1603611c045760019050611c11565b611c0e83836122a5565b90505b92915050565b611c1f611cfe565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611c8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c859061496b565b60405180910390fd5b611c9781611fa9565b50565b600081611ca5611cf9565b11158015611cb4575060015482105b8015611cf2575060007c0100000000000000000000000000000000000000000000000000000000600560008581526020019081526020016000205416145b9050919050565b600090565b611d06611ed5565b73ffffffffffffffffffffffffffffffffffffffff16611d24611273565b73ffffffffffffffffffffffffffffffffffffffff1614611d7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d71906149d7565b60405180910390fd5b565b8373ffffffffffffffffffffffffffffffffffffffff16611d9c83610c4a565b73ffffffffffffffffffffffffffffffffffffffff1614611df2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de99061478b565b60405180910390fd5b6000611dfd84610d9a565b14611e3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e3490614a43565b60405180910390fd5b60026003811115611e5157611e50613278565b5b600b600084815260200190815260200160002060009054906101000a900460ff166003811115611e8457611e83613278565b5b14611ec4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ebb90614ad5565b60405180910390fd5b611ecf848484612339565b50505050565b600033905090565b60008082905080611eec611cf9565b11611f7257600154811015611f715760006005600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611f6f575b60008103611f65576005600083600190039350838152602001908152602001600020549050611f3b565b8092505050611fa4565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008160405160200161208091906133fd565b604051602081830303815290604052805190602001209050919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166120e2848461265b565b73ffffffffffffffffffffffffffffffffffffffff1614905092915050565b6000600154905090565b612125828260405180602001604052806000815250612680565b5050565b6121316130f7565b61214d600560008481526020019081526020016000205461271e565b9050919050565b6001600381111561216857612167613278565b5b600b600083815260200190815260200160002060009054906101000a900460ff16600381111561219b5761219a613278565b5b146121db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d290613eee565b60405180910390fd5b6003600b600083815260200190815260200160002060006101000a81548160ff0219169083600381111561221257612211613278565b5b02179055507fc56724748fe631e640d2e2bbd30de531a5d329ff1956ecdd93ac3755bd511c1e826001600360405161224c93929190613f0e565b60405180910390a15050565b6122606130f7565b61227161226c83611edd565b61271e565b9050919050565b606061229e8273ffffffffffffffffffffffffffffffffffffffff16601460ff166127d4565b9050919050565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600061234482611edd565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146123ab576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806123b784612a10565b915091506123cd81876123c8612a37565b612a3f565b612419576123e2866123dd612a37565b611bb8565b612418576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361247f576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61248c8686866001612a83565b801561249757600082555b600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061256585612541888887612a89565b7c020000000000000000000000000000000000000000000000000000000017612ab1565b600560008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036125eb57600060018501905060006005600083815260200190815260200160002054036125e95760015481146125e8578360056000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46126538686866001612adc565b505050505050565b60006126788261266a85612ae2565b612b1290919063ffffffff16565b905092915050565b61268a8383612b39565b60008373ffffffffffffffffffffffffffffffffffffffff163b146127195760006001549050600083820390505b6126cb6000868380600101945086612cf5565b612701576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106126b857816001541461271657600080fd5b50505b505050565b6127266130f7565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b6060600060028360026127e79190614af5565b6127f19190614b37565b67ffffffffffffffff81111561280a57612809613af2565b5b6040519080825280601f01601f19166020018201604052801561283c5781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061287457612873613f45565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106128d8576128d7613f45565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026129189190614af5565b6129229190614b37565b90505b60018111156129c2577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061296457612963613f45565b5b1a60f81b82828151811061297b5761297a613f45565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806129bb90614b6b565b9050612925565b5060008414612a06576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129fd90614be0565b60405180910390fd5b8091505092915050565b60008060006007600085815260200190815260200160002090508092508254915050915091565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612aa0868684612e45565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600081604051602001612af59190614c77565b604051602081830303815290604052805190602001209050919050565b6000806000612b218585612e4e565b91509150612b2e81612e9f565b819250505092915050565b6000600154905060008203612b7a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612b876000848385612a83565b600160406001901b178202600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612bfe83612bef6000866000612a89565b612bf885613005565b17612ab1565b6005600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114612c9f57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612c64565b5060008203612cda576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806001819055505050612cf06000848385612adc565b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612d1b612a37565b8786866040518563ffffffff1660e01b8152600401612d3d9493929190614cf2565b6020604051808303816000875af1925050508015612d7957506040513d601f19601f82011682018060405250810190612d769190614d53565b60015b612df2573d8060008114612da9576040519150601f19603f3d011682016040523d82523d6000602084013e612dae565b606091505b506000815103612dea576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60009392505050565b6000806041835103612e8f5760008060006020860151925060408601519150606086015160001a9050612e8387828585613015565b94509450505050612e98565b60006002915091505b9250929050565b60006004811115612eb357612eb2613278565b5b816004811115612ec657612ec5613278565b5b03156130025760016004811115612ee057612edf613278565b5b816004811115612ef357612ef2613278565b5b03612f33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f2a90614dcc565b60405180910390fd5b60026004811115612f4757612f46613278565b5b816004811115612f5a57612f59613278565b5b03612f9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f9190614e38565b60405180910390fd5b60036004811115612fae57612fad613278565b5b816004811115612fc157612fc0613278565b5b03613001576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ff890614eca565b60405180910390fd5b5b50565b60006001821460e11b9050919050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156130505760006003915091506130ee565b6000600187878787604051600081526020016040526040516130759493929190614f15565b6020604051602081039080840390855afa158015613097573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036130e5576000600192509250506130ee565b80600092509250505b94509492505050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61318f8161315a565b811461319a57600080fd5b50565b6000813590506131ac81613186565b92915050565b6000602082840312156131c8576131c7613150565b5b60006131d68482850161319d565b91505092915050565b60008115159050919050565b6131f4816131df565b82525050565b600060208201905061320f60008301846131eb565b92915050565b6000819050919050565b61322881613215565b811461323357600080fd5b50565b6000813590506132458161321f565b92915050565b60006020828403121561326157613260613150565b5b600061326f84828501613236565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600481106132b8576132b7613278565b5b50565b60008190506132c9826132a7565b919050565b60006132d9826132bb565b9050919050565b6132e9816132ce565b82525050565b600060208201905061330460008301846132e0565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613344578082015181840152602081019050613329565b60008484015250505050565b6000601f19601f8301169050919050565b600061336c8261330a565b6133768185613315565b9350613386818560208601613326565b61338f81613350565b840191505092915050565b600060208201905081810360008301526133b48184613361565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006133e7826133bc565b9050919050565b6133f7816133dc565b82525050565b600060208201905061341260008301846133ee565b92915050565b613421816133dc565b811461342c57600080fd5b50565b60008135905061343e81613418565b92915050565b6000806040838503121561345b5761345a613150565b5b60006134698582860161342f565b925050602061347a85828601613236565b9150509250929050565b61348d81613215565b82525050565b60006020820190506134a86000830184613484565b92915050565b6000806000606084860312156134c7576134c6613150565b5b60006134d58682870161342f565b93505060206134e68682870161342f565b92505060406134f786828701613236565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f84011261352657613525613501565b5b8235905067ffffffffffffffff81111561354357613542613506565b5b60208301915083602082028301111561355f5761355e61350b565b5b9250929050565b6000806020838503121561357d5761357c613150565b5b600083013567ffffffffffffffff81111561359b5761359a613155565b5b6135a785828601613510565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6135e8816133dc565b82525050565b600067ffffffffffffffff82169050919050565b61360b816135ee565b82525050565b61361a816131df565b82525050565b600062ffffff82169050919050565b61363881613620565b82525050565b60808201600082015161365460008501826135df565b5060208201516136676020850182613602565b50604082015161367a6040850182613611565b50606082015161368d606085018261362f565b50505050565b600061369f838361363e565b60808301905092915050565b6000602082019050919050565b60006136c3826135b3565b6136cd81856135be565b93506136d8836135cf565b8060005b838110156137095781516136f08882613693565b97506136fb836136ab565b9250506001810190506136dc565b5085935050505092915050565b6000602082019050818103600083015261373081846136b8565b905092915050565b60006020828403121561374e5761374d613150565b5b600061375c8482850161342f565b91505092915050565b60008083601f84011261377b5761377a613501565b5b8235905067ffffffffffffffff81111561379857613797613506565b5b6020830191508360018202830111156137b4576137b361350b565b5b9250929050565b600080602083850312156137d2576137d1613150565b5b600083013567ffffffffffffffff8111156137f0576137ef613155565b5b6137fc85828601613765565b92509250509250929050565b60008083601f84011261381e5761381d613501565b5b8235905067ffffffffffffffff81111561383b5761383a613506565b5b6020830191508360208202830111156138575761385661350b565b5b9250929050565b6000806020838503121561387557613874613150565b5b600083013567ffffffffffffffff81111561389357613892613155565b5b61389f85828601613808565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6138e081613215565b82525050565b60006138f283836138d7565b60208301905092915050565b6000602082019050919050565b6000613916826138ab565b61392081856138b6565b935061392b836138c7565b8060005b8381101561395c57815161394388826138e6565b975061394e836138fe565b92505060018101905061392f565b5085935050505092915050565b60006020820190508181036000830152613983818461390b565b905092915050565b60008083601f8401126139a1576139a0613501565b5b8235905067ffffffffffffffff8111156139be576139bd613506565b5b6020830191508360018202830111156139da576139d961350b565b5b9250929050565b600080602083850312156139f8576139f7613150565b5b600083013567ffffffffffffffff811115613a1657613a15613155565b5b613a228582860161398b565b92509250509250929050565b600080600060608486031215613a4757613a46613150565b5b6000613a558682870161342f565b9350506020613a6686828701613236565b9250506040613a7786828701613236565b9150509250925092565b613a8a816131df565b8114613a9557600080fd5b50565b600081359050613aa781613a81565b92915050565b60008060408385031215613ac457613ac3613150565b5b6000613ad28582860161342f565b9250506020613ae385828601613a98565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613b2a82613350565b810181811067ffffffffffffffff82111715613b4957613b48613af2565b5b80604052505050565b6000613b5c613146565b9050613b688282613b21565b919050565b600067ffffffffffffffff821115613b8857613b87613af2565b5b613b9182613350565b9050602081019050919050565b82818337600083830152505050565b6000613bc0613bbb84613b6d565b613b52565b905082815260208101848484011115613bdc57613bdb613aed565b5b613be7848285613b9e565b509392505050565b600082601f830112613c0457613c03613501565b5b8135613c14848260208601613bad565b91505092915050565b60008060008060808587031215613c3757613c36613150565b5b6000613c458782880161342f565b9450506020613c568782880161342f565b9350506040613c6787828801613236565b925050606085013567ffffffffffffffff811115613c8857613c87613155565b5b613c9487828801613bef565b91505092959194509250565b608082016000820151613cb660008501826135df565b506020820151613cc96020850182613602565b506040820151613cdc6040850182613611565b506060820151613cef606085018261362f565b50505050565b6000608082019050613d0a6000830184613ca0565b92915050565b600080600060408486031215613d2957613d28613150565b5b600084013567ffffffffffffffff811115613d4757613d46613155565b5b613d5386828701613808565b93509350506020613d668682870161342f565b9150509250925092565b60008060408385031215613d8757613d86613150565b5b6000613d958582860161342f565b9250506020613da68582860161342f565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613df757607f821691505b602082108103613e0a57613e09613db0565b5b50919050565b7f43616e6e6f7420617070726f76652e0000000000000000000000000000000000600082015250565b6000613e46600f83613315565b9150613e5182613e10565b602082019050919050565b60006020820190508181036000830152613e7581613e39565b9050919050565b7f546865206d656d626572206973206e6f742061637469766174696e67206e6f7760008201527f2e00000000000000000000000000000000000000000000000000000000000000602082015250565b6000613ed8602183613315565b9150613ee382613e7c565b604082019050919050565b60006020820190508181036000830152613f0781613ecb565b9050919050565b6000606082019050613f2360008301866133ee565b613f3060208301856132e0565b613f3d60408301846132e0565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000606082019050613f8960008301866133ee565b613f9660208301856133ee565b613fa360408301846133ee565b949350505050565b7f546865206d656d6265722068617320616c7265616479206d696e7465642e0000600082015250565b6000613fe1601e83613315565b9150613fec82613fab565b602082019050919050565b6000602082019050818103600083015261401081613fd4565b9050919050565b7f496e76616c6964207369676e61747572652e0000000000000000000000000000600082015250565b600061404d601283613315565b915061405882614017565b602082019050919050565b6000602082019050818103600083015261407c81614040565b9050919050565b600060608201905061409860008301866133ee565b6140a560208301856133ee565b6140b26040830184613484565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006140f482613215565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614126576141256140ba565b5b600182019050919050565b60008190508160005260206000209050919050565b6000815461415381613ddf565b61415d8186613315565b94506001821660008114614178576001811461418e576141c1565b60ff1983168652811515602002860193506141c1565b61419785614131565b60005b838110156141b95781548189015260018201915060208101905061419a565b808801955050505b50505092915050565b60006141d68385613315565b93506141e3838584613b9e565b6141ec83613350565b840190509392505050565b600060608201905061420c60008301876133ee565b818103602083015261421e8186614146565b905081810360408301526142338184866141ca565b905095945050505050565b600082905092915050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026142967fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614259565b6142a08683614259565b95508019841693508086168417925050509392505050565b6000819050919050565b60006142dd6142d86142d384613215565b6142b8565b613215565b9050919050565b6000819050919050565b6142f7836142c2565b61430b614303826142e4565b848454614266565b825550505050565b600090565b614320614313565b61432b8184846142ee565b505050565b5b8181101561434f57614344600082614318565b600181019050614331565b5050565b601f8211156143945761436581614131565b61436e84614249565b8101602085101561437d578190505b61439161438985614249565b830182614330565b50505b505050565b600082821c905092915050565b60006143b760001984600802614399565b1980831691505092915050565b60006143d083836143a6565b9150826002028217905092915050565b6143ea838361423e565b67ffffffffffffffff81111561440357614402613af2565b5b61440d8254613ddf565b614418828285614353565b6000601f8311600181146144475760008415614435578287013590505b61443f85826143c4565b8655506144a7565b601f19841661445586614131565b60005b8281101561447d57848901358255600182019150602085019450602081019050614458565b8683101561449a5784890135614496601f8916826143a6565b8355505b6001600288020188555050505b50505050505050565b7f4f6e6c79206f776e65722063616e20617263686976652e000000000000000000600082015250565b60006144e6601783613315565b91506144f1826144b0565b602082019050919050565b60006020820190508181036000830152614515816144d9565b9050919050565b7f43616e6e6f7420736574417070726f76616c466f72416c6c2e00000000000000600082015250565b6000614552601983613315565b915061455d8261451c565b602082019050919050565b6000602082019050818103600083015261458181614545565b9050919050565b7f546865206d656d626572206973206e6f742073757370656e646564206f72206160008201527f72636869766564206e6f772e0000000000000000000000000000000000000000602082015250565b60006145e4602c83613315565b91506145ef82614588565b604082019050919050565b60006020820190508181036000830152614613816145d7565b9050919050565b60008151905061462981613418565b92915050565b60006020828403121561464557614644613150565b5b60006146538482850161461a565b91505092915050565b600081905092915050565b6000815461467481613ddf565b61467e818661465c565b9450600182166000811461469957600181146146ae576146e1565b60ff19831686528115158202860193506146e1565b6146b785614131565b60005b838110156146d9578154818901526001820191506020810190506146ba565b838801955050505b50505092915050565b60006146f58261330a565b6146ff818561465c565b935061470f818560208601613326565b80840191505092915050565b60006147278285614667565b915061473382846146ea565b91508190509392505050565b7f6066726f6d60206164647265737320686173206e6f20746f6b656e2e00000000600082015250565b6000614775601c83613315565b91506147808261473f565b602082019050919050565b600060208201905081810360008301526147a481614768565b9050919050565b600067ffffffffffffffff8211156147c6576147c5613af2565b5b602082029050602081019050919050565b6000815190506147e68161321f565b92915050565b60006147ff6147fa846147ab565b613b52565b905080838252602082019050602084028301858111156148225761482161350b565b5b835b8181101561484b578061483788826147d7565b845260208401935050602081019050614824565b5050509392505050565b600082601f83011261486a57614869613501565b5b815161487a8482602086016147ec565b91505092915050565b60006020828403121561489957614898613150565b5b600082015167ffffffffffffffff8111156148b7576148b6613155565b5b6148c384828501614855565b91505092915050565b6000602082840312156148e2576148e1613150565b5b60006148f0848285016147d7565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614955602683613315565b9150614960826148f9565b604082019050919050565b6000602082019050818103600083015261498481614948565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006149c1602083613315565b91506149cc8261498b565b602082019050919050565b600060208201905081810360008301526149f0816149b4565b9050919050565b7f60746f60206164647265737320616c72656164792068617320746f6b656e2e00600082015250565b6000614a2d601f83613315565b9150614a38826149f7565b602082019050919050565b60006020820190508181036000830152614a5c81614a20565b9050919050565b7f54686520416374697665206f7220617263686976656420746f6b656e2063616e60008201527f6e6f74206265207472616e736665722e00000000000000000000000000000000602082015250565b6000614abf603083613315565b9150614aca82614a63565b604082019050919050565b60006020820190508181036000830152614aee81614ab2565b9050919050565b6000614b0082613215565b9150614b0b83613215565b9250828202614b1981613215565b91508282048414831517614b3057614b2f6140ba565b5b5092915050565b6000614b4282613215565b9150614b4d83613215565b9250828201905080821115614b6557614b646140ba565b5b92915050565b6000614b7682613215565b915060008203614b8957614b886140ba565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000614bca602083613315565b9150614bd582614b94565b602082019050919050565b60006020820190508181036000830152614bf981614bbd565b9050919050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000614c36601c8361465c565b9150614c4182614c00565b601c82019050919050565b6000819050919050565b6000819050919050565b614c71614c6c82614c4c565b614c56565b82525050565b6000614c8282614c29565b9150614c8e8284614c60565b60208201915081905092915050565b600081519050919050565b600082825260208201905092915050565b6000614cc482614c9d565b614cce8185614ca8565b9350614cde818560208601613326565b614ce781613350565b840191505092915050565b6000608082019050614d0760008301876133ee565b614d1460208301866133ee565b614d216040830185613484565b8181036060830152614d338184614cb9565b905095945050505050565b600081519050614d4d81613186565b92915050565b600060208284031215614d6957614d68613150565b5b6000614d7784828501614d3e565b91505092915050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000614db6601883613315565b9150614dc182614d80565b602082019050919050565b60006020820190508181036000830152614de581614da9565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000614e22601f83613315565b9150614e2d82614dec565b602082019050919050565b60006020820190508181036000830152614e5181614e15565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000614eb4602283613315565b9150614ebf82614e58565b604082019050919050565b60006020820190508181036000830152614ee381614ea7565b9050919050565b614ef381614c4c565b82525050565b600060ff82169050919050565b614f0f81614ef9565b82525050565b6000608082019050614f2a6000830187614eea565b614f376020830186614f06565b614f446040830185614eea565b614f516060830184614eea565b9594505050505056fea26469706673582212209b975172eda6850892a90015fd2d4d1a2a9153ec81b70eadde2469e2626127b664736f6c6343000811003300000000000000000000000081549024347f1efe4415805d5445c1f70f2dff9b0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000002368747470733a2f2f6170692e3864616f2e696f2f6d656d6265722f6d657461646174610000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101ee5760003560e01c80637ba0e2e71161010d578063a22cb465116100a0578063c87b56dd1161006f578063c87b56dd146106e9578063da87741b14610726578063e5c2a5af14610763578063e985e9c5146107a0578063f2fde38b146107dd576101ee565b8063a22cb4651461063e578063b260c42a14610667578063b88d4fde14610690578063c23dc68f146106ac576101ee565b8063931688cb116100dc578063931688cb1461058457806393c829fc146105ad57806395d89b41146105d657806399a2557a14610601576101ee565b80637ba0e2e7146104ca5780637f7880cf146104f35780638462151c1461051c5780638da5cb5b14610559576101ee565b80634b865846116101855780636c19e783116101545780636c19e7831461042257806370a082311461044b578063715018a6146104885780637ac3c02f1461049f576101ee565b80634b865846146103545780635bbb21771461037d5780636352211e146103ba5780636c0360eb146103f7576101ee565b8063095ea7b3116101c1578063095ea7b3146102d557806318160ddd146102f157806323b872dd1461031c57806342842e0e14610338576101ee565b806301ffc9a7146101f357806302d625a61461023057806306fdde031461026d578063081812fc14610298575b600080fd5b3480156101ff57600080fd5b5061021a600480360381019061021591906131b2565b610806565b60405161022791906131fa565b60405180910390f35b34801561023c57600080fd5b506102576004803603810190610252919061324b565b610898565b60405161026491906132ef565b60405180910390f35b34801561027957600080fd5b506102826108b8565b60405161028f919061339a565b60405180910390f35b3480156102a457600080fd5b506102bf60048036038101906102ba919061324b565b61094a565b6040516102cc91906133fd565b60405180910390f35b6102ef60048036038101906102ea9190613444565b6109c9565b005b3480156102fd57600080fd5b50610306610a0e565b6040516103139190613493565b60405180910390f35b610336600480360381019061033191906134ae565b610a25565b005b610352600480360381019061034d91906134ae565b610a4d565b005b34801561036057600080fd5b5061037b6004803603810190610376919061324b565b610a75565b005b34801561038957600080fd5b506103a4600480360381019061039f9190613566565b610b87565b6040516103b19190613716565b60405180910390f35b3480156103c657600080fd5b506103e160048036038101906103dc919061324b565b610c4a565b6040516103ee91906133fd565b60405180910390f35b34801561040357600080fd5b5061040c610c5c565b604051610419919061339a565b60405180910390f35b34801561042e57600080fd5b5061044960048036038101906104449190613738565b610cea565b005b34801561045757600080fd5b50610472600480360381019061046d9190613738565b610d9a565b60405161047f9190613493565b60405180910390f35b34801561049457600080fd5b5061049d610e52565b005b3480156104ab57600080fd5b506104b4610e66565b6040516104c191906133fd565b60405180910390f35b3480156104d657600080fd5b506104f160048036038101906104ec91906137bb565b610e98565b005b3480156104ff57600080fd5b5061051a6004803603810190610515919061385e565b61102e565b005b34801561052857600080fd5b50610543600480360381019061053e9190613738565b611130565b6040516105509190613969565b60405180910390f35b34801561056557600080fd5b5061056e611273565b60405161057b91906133fd565b60405180910390f35b34801561059057600080fd5b506105ab60048036038101906105a691906139e1565b61129c565b005b3480156105b957600080fd5b506105d460048036038101906105cf919061324b565b6112f8565b005b3480156105e257600080fd5b506105eb6113e1565b6040516105f8919061339a565b60405180910390f35b34801561060d57600080fd5b5061062860048036038101906106239190613a2e565b611473565b6040516106359190613969565b60405180910390f35b34801561064a57600080fd5b5061066560048036038101906106609190613aad565b61167f565b005b34801561067357600080fd5b5061068e6004803603810190610689919061324b565b6116c4565b005b6106aa60048036038101906106a59190613c1d565b611824565b005b3480156106b857600080fd5b506106d360048036038101906106ce919061324b565b61183e565b6040516106e09190613cf5565b60405180910390f35b3480156106f557600080fd5b50610710600480360381019061070b919061324b565b6118a8565b60405161071d919061339a565b60405180910390f35b34801561073257600080fd5b5061074d60048036038101906107489190613738565b611980565b60405161075a9190613493565b60405180910390f35b34801561076f57600080fd5b5061078a60048036038101906107859190613d10565b611a73565b6040516107979190613969565b60405180910390f35b3480156107ac57600080fd5b506107c760048036038101906107c29190613d70565b611bb8565b6040516107d491906131fa565b60405180910390f35b3480156107e957600080fd5b5061080460048036038101906107ff9190613738565b611c17565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061086157506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108915750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600b6020528060005260406000206000915054906101000a900460ff1681565b6060600380546108c790613ddf565b80601f01602080910402602001604051908101604052809291908181526020018280546108f390613ddf565b80156109405780601f1061091557610100808354040283529160200191610940565b820191906000526020600020905b81548152906001019060200180831161092357829003601f168201915b5050505050905090565b600061095582611c9a565b61098b576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0190613e5c565b60405180910390fd5b5050565b6000610a18611cf9565b6002546001540303905090565b610a2d611cfe565b610a4883838360405180602001604052806000815250611d7c565b505050565b610a55611cfe565b610a7083838360405180602001604052806000815250611824565b505050565b610a7d611cfe565b60016003811115610a9157610a90613278565b5b600b600083815260200190815260200160002060009054906101000a900460ff166003811115610ac457610ac3613278565b5b14610b04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610afb90613eee565b60405180910390fd5b6002600b600083815260200190815260200160002060006101000a81548160ff02191690836003811115610b3b57610b3a613278565b5b02179055507fc56724748fe631e640d2e2bbd30de531a5d329ff1956ecdd93ac3755bd511c1e610b69611ed5565b60016002604051610b7c93929190613f0e565b60405180910390a150565b6060600083839050905060008167ffffffffffffffff811115610bad57610bac613af2565b5b604051908082528060200260200182016040528015610be657816020015b610bd36130f7565b815260200190600190039081610bcb5790505b50905060005b828114610c3e57610c15868683818110610c0957610c08613f45565b5b9050602002013561183e565b828281518110610c2857610c27613f45565b5b6020026020010181905250806001019050610bec565b50809250505092915050565b6000610c5582611edd565b9050919050565b60098054610c6990613ddf565b80601f0160208091040260200160405190810160405280929190818152602001828054610c9590613ddf565b8015610ce25780601f10610cb757610100808354040283529160200191610ce2565b820191906000526020600020905b815481529060010190602001808311610cc557829003601f168201915b505050505081565b610cf2611cfe565b7f24779ce5fe2429146fb350e3dc834be089e40e789d4f53dac6905a26cbc97a8b610d1b611ed5565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683604051610d4e93929190613f74565b60405180910390a180600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e01576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b610e5a611cfe565b610e646000611fa9565b565b6000610e70611cfe565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000610eaa610ea5611ed5565b610d9a565b14610eea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee190613ff7565b60405180910390fd5b610f47610efd610ef8611ed5565b61206d565b83838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061209d565b610f86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7d90614063565b60405180910390fd5b6000610f90612101565b9050610fa4610f9d611ed5565b600161210b565b6001600b600083815260200190815260200160002060006101000a81548160ff02191690836003811115610fdb57610fda613278565b5b02179055507f9d228d69b5fdb8d273a2336f8fb8612d039631024ea9bf09c424a9503aa078f0611009611ed5565b611011611ed5565b8360405161102193929190614083565b60405180910390a1505050565b611036611cfe565b60005b8282905081101561112b57600083838381811061105957611058613f45565b5b905060200201602081019061106e9190613738565b9050600061107b82610d9a565b0361111757600061108a612101565b905061109782600161210b565b6001600b600083815260200190815260200160002060006101000a81548160ff021916908360038111156110ce576110cd613278565b5b02179055507f9d228d69b5fdb8d273a2336f8fb8612d039631024ea9bf09c424a9503aa078f06110fc611ed5565b838360405161110d93929190614083565b60405180910390a1505b508080611123906140e9565b915050611039565b505050565b6060600080600061114085610d9a565b905060008167ffffffffffffffff81111561115e5761115d613af2565b5b60405190808252806020026020018201604052801561118c5781602001602082028036833780820191505090505b5090506111976130f7565b60006111a1611cf9565b90505b838614611265576111b481612129565b9150816040015161125a57600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff16146111ff57816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611259578083878060010198508151811061124c5761124b613f45565b5b6020026020010181815250505b5b8060010190506111a4565b508195505050505050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6112a4611cfe565b7f92bf6a7b8937c17e6781a68d61f9fe6a5ce08604b96ca2206f311049a3a295ea33600984846040516112da94939291906141f7565b60405180910390a18181600991826112f39291906143e0565b505050565b611300611273565b73ffffffffffffffffffffffffffffffffffffffff1661131e611ed5565b73ffffffffffffffffffffffffffffffffffffffff160361134f5761134a611344611ed5565b82612154565b6113de565b611357611ed5565b73ffffffffffffffffffffffffffffffffffffffff1661137682610c4a565b73ffffffffffffffffffffffffffffffffffffffff16146113cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113c3906144fc565b60405180910390fd5b6113dd6113d7611ed5565b82612154565b5b50565b6060600480546113f090613ddf565b80601f016020809104026020016040519081016040528092919081815260200182805461141c90613ddf565b80156114695780601f1061143e57610100808354040283529160200191611469565b820191906000526020600020905b81548152906001019060200180831161144c57829003601f168201915b5050505050905090565b60608183106114ae576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806114b9612101565b90506114c3611cf9565b8510156114d5576114d2611cf9565b94505b808411156114e1578093505b60006114ec87610d9a565b90508486101561150f576000868603905081811015611509578091505b50611514565b600090505b60008167ffffffffffffffff8111156115305761152f613af2565b5b60405190808252806020026020018201604052801561155e5781602001602082028036833780820191505090505b509050600082036115755780945050505050611678565b60006115808861183e565b90506000816040015161159557816000015190505b60008990505b8881141580156115ab5750848714155b1561166a576115b981612129565b9250826040015161165f57600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff161461160457826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361165e578084888060010199508151811061165157611650613f45565b5b6020026020010181815250505b5b80600101905061159b565b508583528296505050505050505b9392505050565b60006116c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b790614568565b60405180910390fd5b5050565b6116cc611cfe565b600260038111156116e0576116df613278565b5b600b600083815260200190815260200160002060009054906101000a900460ff16600381111561171357611712613278565b5b1480611762575060038081111561172d5761172c613278565b5b600b600083815260200190815260200160002060009054906101000a900460ff1660038111156117605761175f613278565b5b145b6117a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611798906145fa565b60405180910390fd5b6001600b600083815260200190815260200160002060006101000a81548160ff021916908360038111156117d8576117d7613278565b5b02179055507fc56724748fe631e640d2e2bbd30de531a5d329ff1956ecdd93ac3755bd511c1e611806611ed5565b6000600160405161181993929190613f0e565b60405180910390a150565b61182c611cfe565b61183884848484611d7c565b50505050565b6118466130f7565b61184e6130f7565b611856611cf9565b83108061186a5750611866612101565b8310155b1561187857809150506118a3565b61188183612129565b905080604001511561189657809150506118a3565b61189f83612258565b9150505b919050565b60606118b382611c9a565b6118ce5760405180602001604052806000815250905061197b565b60003073ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b81526004016119099190613493565b602060405180830381865afa158015611926573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061194a919061462f565b9050600961195782612278565b60405160200161196892919061471b565b6040516020818303038152906040529150505b919050565b60008061198c83610d9a565b116119cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c39061478b565b60405180910390fd5b60003073ffffffffffffffffffffffffffffffffffffffff16638462151c846040518263ffffffff1660e01b8152600401611a0791906133fd565b600060405180830381865afa158015611a24573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611a4d9190614883565b905080600081518110611a6357611a62613f45565b5b6020026020010151915050919050565b606060008484905067ffffffffffffffff811115611a9457611a93613af2565b5b604051908082528060200260200182016040528015611ac25781602001602082028036833780820191505090505b50905060005b85859050811015611bac5760008473ffffffffffffffffffffffffffffffffffffffff166370a08231888885818110611b0457611b03613f45565b5b9050602002016020810190611b199190613738565b6040518263ffffffff1660e01b8152600401611b3591906133fd565b602060405180830381865afa158015611b52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b7691906148cc565b905080838381518110611b8c57611b8b613f45565b5b602002602001018181525050508080611ba4906140e9565b915050611ac8565b50809150509392505050565b6000611bc2611273565b73ffffffffffffffffffffffffffffffffffffffff16611be0611ed5565b73ffffffffffffffffffffffffffffffffffffffff1603611c045760019050611c11565b611c0e83836122a5565b90505b92915050565b611c1f611cfe565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611c8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c859061496b565b60405180910390fd5b611c9781611fa9565b50565b600081611ca5611cf9565b11158015611cb4575060015482105b8015611cf2575060007c0100000000000000000000000000000000000000000000000000000000600560008581526020019081526020016000205416145b9050919050565b600090565b611d06611ed5565b73ffffffffffffffffffffffffffffffffffffffff16611d24611273565b73ffffffffffffffffffffffffffffffffffffffff1614611d7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d71906149d7565b60405180910390fd5b565b8373ffffffffffffffffffffffffffffffffffffffff16611d9c83610c4a565b73ffffffffffffffffffffffffffffffffffffffff1614611df2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de99061478b565b60405180910390fd5b6000611dfd84610d9a565b14611e3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e3490614a43565b60405180910390fd5b60026003811115611e5157611e50613278565b5b600b600084815260200190815260200160002060009054906101000a900460ff166003811115611e8457611e83613278565b5b14611ec4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ebb90614ad5565b60405180910390fd5b611ecf848484612339565b50505050565b600033905090565b60008082905080611eec611cf9565b11611f7257600154811015611f715760006005600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611f6f575b60008103611f65576005600083600190039350838152602001908152602001600020549050611f3b565b8092505050611fa4565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008160405160200161208091906133fd565b604051602081830303815290604052805190602001209050919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166120e2848461265b565b73ffffffffffffffffffffffffffffffffffffffff1614905092915050565b6000600154905090565b612125828260405180602001604052806000815250612680565b5050565b6121316130f7565b61214d600560008481526020019081526020016000205461271e565b9050919050565b6001600381111561216857612167613278565b5b600b600083815260200190815260200160002060009054906101000a900460ff16600381111561219b5761219a613278565b5b146121db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d290613eee565b60405180910390fd5b6003600b600083815260200190815260200160002060006101000a81548160ff0219169083600381111561221257612211613278565b5b02179055507fc56724748fe631e640d2e2bbd30de531a5d329ff1956ecdd93ac3755bd511c1e826001600360405161224c93929190613f0e565b60405180910390a15050565b6122606130f7565b61227161226c83611edd565b61271e565b9050919050565b606061229e8273ffffffffffffffffffffffffffffffffffffffff16601460ff166127d4565b9050919050565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600061234482611edd565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146123ab576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806123b784612a10565b915091506123cd81876123c8612a37565b612a3f565b612419576123e2866123dd612a37565b611bb8565b612418576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361247f576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61248c8686866001612a83565b801561249757600082555b600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061256585612541888887612a89565b7c020000000000000000000000000000000000000000000000000000000017612ab1565b600560008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036125eb57600060018501905060006005600083815260200190815260200160002054036125e95760015481146125e8578360056000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46126538686866001612adc565b505050505050565b60006126788261266a85612ae2565b612b1290919063ffffffff16565b905092915050565b61268a8383612b39565b60008373ffffffffffffffffffffffffffffffffffffffff163b146127195760006001549050600083820390505b6126cb6000868380600101945086612cf5565b612701576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106126b857816001541461271657600080fd5b50505b505050565b6127266130f7565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b6060600060028360026127e79190614af5565b6127f19190614b37565b67ffffffffffffffff81111561280a57612809613af2565b5b6040519080825280601f01601f19166020018201604052801561283c5781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061287457612873613f45565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106128d8576128d7613f45565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026129189190614af5565b6129229190614b37565b90505b60018111156129c2577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061296457612963613f45565b5b1a60f81b82828151811061297b5761297a613f45565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806129bb90614b6b565b9050612925565b5060008414612a06576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129fd90614be0565b60405180910390fd5b8091505092915050565b60008060006007600085815260200190815260200160002090508092508254915050915091565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612aa0868684612e45565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600081604051602001612af59190614c77565b604051602081830303815290604052805190602001209050919050565b6000806000612b218585612e4e565b91509150612b2e81612e9f565b819250505092915050565b6000600154905060008203612b7a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612b876000848385612a83565b600160406001901b178202600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612bfe83612bef6000866000612a89565b612bf885613005565b17612ab1565b6005600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114612c9f57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612c64565b5060008203612cda576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806001819055505050612cf06000848385612adc565b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612d1b612a37565b8786866040518563ffffffff1660e01b8152600401612d3d9493929190614cf2565b6020604051808303816000875af1925050508015612d7957506040513d601f19601f82011682018060405250810190612d769190614d53565b60015b612df2573d8060008114612da9576040519150601f19603f3d011682016040523d82523d6000602084013e612dae565b606091505b506000815103612dea576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60009392505050565b6000806041835103612e8f5760008060006020860151925060408601519150606086015160001a9050612e8387828585613015565b94509450505050612e98565b60006002915091505b9250929050565b60006004811115612eb357612eb2613278565b5b816004811115612ec657612ec5613278565b5b03156130025760016004811115612ee057612edf613278565b5b816004811115612ef357612ef2613278565b5b03612f33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f2a90614dcc565b60405180910390fd5b60026004811115612f4757612f46613278565b5b816004811115612f5a57612f59613278565b5b03612f9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f9190614e38565b60405180910390fd5b60036004811115612fae57612fad613278565b5b816004811115612fc157612fc0613278565b5b03613001576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ff890614eca565b60405180910390fd5b5b50565b60006001821460e11b9050919050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156130505760006003915091506130ee565b6000600187878787604051600081526020016040526040516130759493929190614f15565b6020604051602081039080840390855afa158015613097573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036130e5576000600192509250506130ee565b80600092509250505b94509492505050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61318f8161315a565b811461319a57600080fd5b50565b6000813590506131ac81613186565b92915050565b6000602082840312156131c8576131c7613150565b5b60006131d68482850161319d565b91505092915050565b60008115159050919050565b6131f4816131df565b82525050565b600060208201905061320f60008301846131eb565b92915050565b6000819050919050565b61322881613215565b811461323357600080fd5b50565b6000813590506132458161321f565b92915050565b60006020828403121561326157613260613150565b5b600061326f84828501613236565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600481106132b8576132b7613278565b5b50565b60008190506132c9826132a7565b919050565b60006132d9826132bb565b9050919050565b6132e9816132ce565b82525050565b600060208201905061330460008301846132e0565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613344578082015181840152602081019050613329565b60008484015250505050565b6000601f19601f8301169050919050565b600061336c8261330a565b6133768185613315565b9350613386818560208601613326565b61338f81613350565b840191505092915050565b600060208201905081810360008301526133b48184613361565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006133e7826133bc565b9050919050565b6133f7816133dc565b82525050565b600060208201905061341260008301846133ee565b92915050565b613421816133dc565b811461342c57600080fd5b50565b60008135905061343e81613418565b92915050565b6000806040838503121561345b5761345a613150565b5b60006134698582860161342f565b925050602061347a85828601613236565b9150509250929050565b61348d81613215565b82525050565b60006020820190506134a86000830184613484565b92915050565b6000806000606084860312156134c7576134c6613150565b5b60006134d58682870161342f565b93505060206134e68682870161342f565b92505060406134f786828701613236565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f84011261352657613525613501565b5b8235905067ffffffffffffffff81111561354357613542613506565b5b60208301915083602082028301111561355f5761355e61350b565b5b9250929050565b6000806020838503121561357d5761357c613150565b5b600083013567ffffffffffffffff81111561359b5761359a613155565b5b6135a785828601613510565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6135e8816133dc565b82525050565b600067ffffffffffffffff82169050919050565b61360b816135ee565b82525050565b61361a816131df565b82525050565b600062ffffff82169050919050565b61363881613620565b82525050565b60808201600082015161365460008501826135df565b5060208201516136676020850182613602565b50604082015161367a6040850182613611565b50606082015161368d606085018261362f565b50505050565b600061369f838361363e565b60808301905092915050565b6000602082019050919050565b60006136c3826135b3565b6136cd81856135be565b93506136d8836135cf565b8060005b838110156137095781516136f08882613693565b97506136fb836136ab565b9250506001810190506136dc565b5085935050505092915050565b6000602082019050818103600083015261373081846136b8565b905092915050565b60006020828403121561374e5761374d613150565b5b600061375c8482850161342f565b91505092915050565b60008083601f84011261377b5761377a613501565b5b8235905067ffffffffffffffff81111561379857613797613506565b5b6020830191508360018202830111156137b4576137b361350b565b5b9250929050565b600080602083850312156137d2576137d1613150565b5b600083013567ffffffffffffffff8111156137f0576137ef613155565b5b6137fc85828601613765565b92509250509250929050565b60008083601f84011261381e5761381d613501565b5b8235905067ffffffffffffffff81111561383b5761383a613506565b5b6020830191508360208202830111156138575761385661350b565b5b9250929050565b6000806020838503121561387557613874613150565b5b600083013567ffffffffffffffff81111561389357613892613155565b5b61389f85828601613808565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6138e081613215565b82525050565b60006138f283836138d7565b60208301905092915050565b6000602082019050919050565b6000613916826138ab565b61392081856138b6565b935061392b836138c7565b8060005b8381101561395c57815161394388826138e6565b975061394e836138fe565b92505060018101905061392f565b5085935050505092915050565b60006020820190508181036000830152613983818461390b565b905092915050565b60008083601f8401126139a1576139a0613501565b5b8235905067ffffffffffffffff8111156139be576139bd613506565b5b6020830191508360018202830111156139da576139d961350b565b5b9250929050565b600080602083850312156139f8576139f7613150565b5b600083013567ffffffffffffffff811115613a1657613a15613155565b5b613a228582860161398b565b92509250509250929050565b600080600060608486031215613a4757613a46613150565b5b6000613a558682870161342f565b9350506020613a6686828701613236565b9250506040613a7786828701613236565b9150509250925092565b613a8a816131df565b8114613a9557600080fd5b50565b600081359050613aa781613a81565b92915050565b60008060408385031215613ac457613ac3613150565b5b6000613ad28582860161342f565b9250506020613ae385828601613a98565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613b2a82613350565b810181811067ffffffffffffffff82111715613b4957613b48613af2565b5b80604052505050565b6000613b5c613146565b9050613b688282613b21565b919050565b600067ffffffffffffffff821115613b8857613b87613af2565b5b613b9182613350565b9050602081019050919050565b82818337600083830152505050565b6000613bc0613bbb84613b6d565b613b52565b905082815260208101848484011115613bdc57613bdb613aed565b5b613be7848285613b9e565b509392505050565b600082601f830112613c0457613c03613501565b5b8135613c14848260208601613bad565b91505092915050565b60008060008060808587031215613c3757613c36613150565b5b6000613c458782880161342f565b9450506020613c568782880161342f565b9350506040613c6787828801613236565b925050606085013567ffffffffffffffff811115613c8857613c87613155565b5b613c9487828801613bef565b91505092959194509250565b608082016000820151613cb660008501826135df565b506020820151613cc96020850182613602565b506040820151613cdc6040850182613611565b506060820151613cef606085018261362f565b50505050565b6000608082019050613d0a6000830184613ca0565b92915050565b600080600060408486031215613d2957613d28613150565b5b600084013567ffffffffffffffff811115613d4757613d46613155565b5b613d5386828701613808565b93509350506020613d668682870161342f565b9150509250925092565b60008060408385031215613d8757613d86613150565b5b6000613d958582860161342f565b9250506020613da68582860161342f565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613df757607f821691505b602082108103613e0a57613e09613db0565b5b50919050565b7f43616e6e6f7420617070726f76652e0000000000000000000000000000000000600082015250565b6000613e46600f83613315565b9150613e5182613e10565b602082019050919050565b60006020820190508181036000830152613e7581613e39565b9050919050565b7f546865206d656d626572206973206e6f742061637469766174696e67206e6f7760008201527f2e00000000000000000000000000000000000000000000000000000000000000602082015250565b6000613ed8602183613315565b9150613ee382613e7c565b604082019050919050565b60006020820190508181036000830152613f0781613ecb565b9050919050565b6000606082019050613f2360008301866133ee565b613f3060208301856132e0565b613f3d60408301846132e0565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000606082019050613f8960008301866133ee565b613f9660208301856133ee565b613fa360408301846133ee565b949350505050565b7f546865206d656d6265722068617320616c7265616479206d696e7465642e0000600082015250565b6000613fe1601e83613315565b9150613fec82613fab565b602082019050919050565b6000602082019050818103600083015261401081613fd4565b9050919050565b7f496e76616c6964207369676e61747572652e0000000000000000000000000000600082015250565b600061404d601283613315565b915061405882614017565b602082019050919050565b6000602082019050818103600083015261407c81614040565b9050919050565b600060608201905061409860008301866133ee565b6140a560208301856133ee565b6140b26040830184613484565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006140f482613215565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614126576141256140ba565b5b600182019050919050565b60008190508160005260206000209050919050565b6000815461415381613ddf565b61415d8186613315565b94506001821660008114614178576001811461418e576141c1565b60ff1983168652811515602002860193506141c1565b61419785614131565b60005b838110156141b95781548189015260018201915060208101905061419a565b808801955050505b50505092915050565b60006141d68385613315565b93506141e3838584613b9e565b6141ec83613350565b840190509392505050565b600060608201905061420c60008301876133ee565b818103602083015261421e8186614146565b905081810360408301526142338184866141ca565b905095945050505050565b600082905092915050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026142967fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614259565b6142a08683614259565b95508019841693508086168417925050509392505050565b6000819050919050565b60006142dd6142d86142d384613215565b6142b8565b613215565b9050919050565b6000819050919050565b6142f7836142c2565b61430b614303826142e4565b848454614266565b825550505050565b600090565b614320614313565b61432b8184846142ee565b505050565b5b8181101561434f57614344600082614318565b600181019050614331565b5050565b601f8211156143945761436581614131565b61436e84614249565b8101602085101561437d578190505b61439161438985614249565b830182614330565b50505b505050565b600082821c905092915050565b60006143b760001984600802614399565b1980831691505092915050565b60006143d083836143a6565b9150826002028217905092915050565b6143ea838361423e565b67ffffffffffffffff81111561440357614402613af2565b5b61440d8254613ddf565b614418828285614353565b6000601f8311600181146144475760008415614435578287013590505b61443f85826143c4565b8655506144a7565b601f19841661445586614131565b60005b8281101561447d57848901358255600182019150602085019450602081019050614458565b8683101561449a5784890135614496601f8916826143a6565b8355505b6001600288020188555050505b50505050505050565b7f4f6e6c79206f776e65722063616e20617263686976652e000000000000000000600082015250565b60006144e6601783613315565b91506144f1826144b0565b602082019050919050565b60006020820190508181036000830152614515816144d9565b9050919050565b7f43616e6e6f7420736574417070726f76616c466f72416c6c2e00000000000000600082015250565b6000614552601983613315565b915061455d8261451c565b602082019050919050565b6000602082019050818103600083015261458181614545565b9050919050565b7f546865206d656d626572206973206e6f742073757370656e646564206f72206160008201527f72636869766564206e6f772e0000000000000000000000000000000000000000602082015250565b60006145e4602c83613315565b91506145ef82614588565b604082019050919050565b60006020820190508181036000830152614613816145d7565b9050919050565b60008151905061462981613418565b92915050565b60006020828403121561464557614644613150565b5b60006146538482850161461a565b91505092915050565b600081905092915050565b6000815461467481613ddf565b61467e818661465c565b9450600182166000811461469957600181146146ae576146e1565b60ff19831686528115158202860193506146e1565b6146b785614131565b60005b838110156146d9578154818901526001820191506020810190506146ba565b838801955050505b50505092915050565b60006146f58261330a565b6146ff818561465c565b935061470f818560208601613326565b80840191505092915050565b60006147278285614667565b915061473382846146ea565b91508190509392505050565b7f6066726f6d60206164647265737320686173206e6f20746f6b656e2e00000000600082015250565b6000614775601c83613315565b91506147808261473f565b602082019050919050565b600060208201905081810360008301526147a481614768565b9050919050565b600067ffffffffffffffff8211156147c6576147c5613af2565b5b602082029050602081019050919050565b6000815190506147e68161321f565b92915050565b60006147ff6147fa846147ab565b613b52565b905080838252602082019050602084028301858111156148225761482161350b565b5b835b8181101561484b578061483788826147d7565b845260208401935050602081019050614824565b5050509392505050565b600082601f83011261486a57614869613501565b5b815161487a8482602086016147ec565b91505092915050565b60006020828403121561489957614898613150565b5b600082015167ffffffffffffffff8111156148b7576148b6613155565b5b6148c384828501614855565b91505092915050565b6000602082840312156148e2576148e1613150565b5b60006148f0848285016147d7565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614955602683613315565b9150614960826148f9565b604082019050919050565b6000602082019050818103600083015261498481614948565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006149c1602083613315565b91506149cc8261498b565b602082019050919050565b600060208201905081810360008301526149f0816149b4565b9050919050565b7f60746f60206164647265737320616c72656164792068617320746f6b656e2e00600082015250565b6000614a2d601f83613315565b9150614a38826149f7565b602082019050919050565b60006020820190508181036000830152614a5c81614a20565b9050919050565b7f54686520416374697665206f7220617263686976656420746f6b656e2063616e60008201527f6e6f74206265207472616e736665722e00000000000000000000000000000000602082015250565b6000614abf603083613315565b9150614aca82614a63565b604082019050919050565b60006020820190508181036000830152614aee81614ab2565b9050919050565b6000614b0082613215565b9150614b0b83613215565b9250828202614b1981613215565b91508282048414831517614b3057614b2f6140ba565b5b5092915050565b6000614b4282613215565b9150614b4d83613215565b9250828201905080821115614b6557614b646140ba565b5b92915050565b6000614b7682613215565b915060008203614b8957614b886140ba565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000614bca602083613315565b9150614bd582614b94565b602082019050919050565b60006020820190508181036000830152614bf981614bbd565b9050919050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000614c36601c8361465c565b9150614c4182614c00565b601c82019050919050565b6000819050919050565b6000819050919050565b614c71614c6c82614c4c565b614c56565b82525050565b6000614c8282614c29565b9150614c8e8284614c60565b60208201915081905092915050565b600081519050919050565b600082825260208201905092915050565b6000614cc482614c9d565b614cce8185614ca8565b9350614cde818560208601613326565b614ce781613350565b840191505092915050565b6000608082019050614d0760008301876133ee565b614d1460208301866133ee565b614d216040830185613484565b8181036060830152614d338184614cb9565b905095945050505050565b600081519050614d4d81613186565b92915050565b600060208284031215614d6957614d68613150565b5b6000614d7784828501614d3e565b91505092915050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000614db6601883613315565b9150614dc182614d80565b602082019050919050565b60006020820190508181036000830152614de581614da9565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000614e22601f83613315565b9150614e2d82614dec565b602082019050919050565b60006020820190508181036000830152614e5181614e15565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000614eb4602283613315565b9150614ebf82614e58565b604082019050919050565b60006020820190508181036000830152614ee381614ea7565b9050919050565b614ef381614c4c565b82525050565b600060ff82169050919050565b614f0f81614ef9565b82525050565b6000608082019050614f2a6000830187614eea565b614f376020830186614f06565b614f446040830185614eea565b614f516060830184614eea565b9594505050505056fea26469706673582212209b975172eda6850892a90015fd2d4d1a2a9153ec81b70eadde2469e2626127b664736f6c63430008110033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000081549024347f1efe4415805d5445c1f70f2dff9b0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000002368747470733a2f2f6170692e3864616f2e696f2f6d656d6265722f6d657461646174610000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _signer (address): 0x81549024347f1eFe4415805D5445C1f70F2dFF9b
Arg [1] : _baseURI (string): https://api.8dao.io/member/metadata

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 00000000000000000000000081549024347f1efe4415805d5445c1f70f2dff9b
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000023
Arg [3] : 68747470733a2f2f6170692e3864616f2e696f2f6d656d6265722f6d65746164
Arg [4] : 6174610000000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.