ETH Price: $3,423.56 (-2.21%)
Gas: 3 Gwei

Contract

0x67b8afDDb494C16b779E6F23e1de5Dbf3437F857
 
Transaction Hash
Method
Block
From
To
Value
Set Approval For...201540222024-06-23 11:14:2310 hrs ago1719141263IN
Mintify: MNFGEN Token
0 ETH0.000194323.1380462
Set Approval For...201471242024-06-22 12:04:1134 hrs ago1719057851IN
Mintify: MNFGEN Token
0 ETH0.000153412.47407604
Set Approval For...201469352024-06-22 11:25:4734 hrs ago1719055547IN
Mintify: MNFGEN Token
0 ETH0.000179062.89163307
Set Approval For...201462762024-06-22 9:13:1136 hrs ago1719047591IN
Mintify: MNFGEN Token
0 ETH0.000145092.34309093
Safe Transfer Fr...201435522024-06-22 0:04:2346 hrs ago1719014663IN
Mintify: MNFGEN Token
0 ETH0.000224564.40695222
Safe Transfer Fr...201434122024-06-21 23:36:1146 hrs ago1719012971IN
Mintify: MNFGEN Token
0 ETH0.000267615.25165456
Safe Transfer Fr...201434062024-06-21 23:34:5946 hrs ago1719012899IN
Mintify: MNFGEN Token
0 ETH0.000259695.09627532
Safe Transfer Fr...201433882024-06-21 23:31:1146 hrs ago1719012671IN
Mintify: MNFGEN Token
0 ETH0.000230724.52769516
Safe Transfer Fr...201433792024-06-21 23:29:2346 hrs ago1719012563IN
Mintify: MNFGEN Token
0 ETH0.000231564.54423521
Safe Transfer Fr...201433732024-06-21 23:28:1146 hrs ago1719012491IN
Mintify: MNFGEN Token
0 ETH0.000229994.51347993
Safe Transfer Fr...201433452024-06-21 23:22:3546 hrs ago1719012155IN
Mintify: MNFGEN Token
0 ETH0.000224644.4084846
Safe Transfer Fr...201433382024-06-21 23:21:1146 hrs ago1719012071IN
Mintify: MNFGEN Token
0 ETH0.000298934.39228682
Set Approval For...201355242024-06-20 21:09:353 days ago1718917775IN
Mintify: MNFGEN Token
0 ETH0.000316525.11143656
Set Approval For...201349042024-06-20 19:04:233 days ago1718910263IN
Mintify: MNFGEN Token
0 ETH0.000437537.06564612
Set Approval For...201345652024-06-20 17:55:593 days ago1718906159IN
Mintify: MNFGEN Token
0 ETH0.000486977.85338384
Set Approval For...201201362024-06-18 17:29:355 days ago1718731775IN
Mintify: MNFGEN Token
0 ETH0.000614939.93045883
Set Approval For...201200272024-06-18 17:07:475 days ago1718730467IN
Mintify: MNFGEN Token
0 ETH0.000410839.7566596
Set Approval For...201200272024-06-18 17:07:475 days ago1718730467IN
Mintify: MNFGEN Token
0 ETH0.000604999.7566596
Set Approval For...201200252024-06-18 17:07:235 days ago1718730443IN
Mintify: MNFGEN Token
0 ETH0.000609189.82436006
Set Approval For...201198042024-06-18 16:23:115 days ago1718727791IN
Mintify: MNFGEN Token
0 ETH0.000535798.64246165
Set Approval For...201195842024-06-18 15:38:475 days ago1718725127IN
Mintify: MNFGEN Token
0 ETH0.0007648512.35149084
Set Approval For...201195622024-06-18 15:33:595 days ago1718724839IN
Mintify: MNFGEN Token
0 ETH0.000712611.50769269
Set Approval For...201168672024-06-18 6:28:595 days ago1718692139IN
Mintify: MNFGEN Token
0 ETH0.000281014.53197007
Safe Transfer Fr...201167192024-06-18 5:59:235 days ago1718690363IN
Mintify: MNFGEN Token
0 ETH0.000446774.98198168
Set Approval For...201143542024-06-17 22:01:476 days ago1718661707IN
Mintify: MNFGEN Token
0 ETH0.000278384.48944056
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To Value
178287342023-08-02 17:14:35326 days ago1690996475
Mintify: MNFGEN Token
21.3957 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MintifyGenesis

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
No with 200 runs

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

import {ERC721A} from "erc721a/contracts/ERC721A.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {ERC2981} from "@openzeppelin/contracts/token/common/ERC2981.sol";
import {BitMaps} from "@openzeppelin/contracts/utils/structs/BitMaps.sol";
import {OperatorFilterer} from "closedsea/src/OperatorFilterer.sol";

error MaxPerOrderExceeded();
error MaxSupplyExceeded();
error MaxPerWalletExceeded();
error PresaleClosed();
error NotInPresaleList();
error PublicSaleClosed();
error BridgingClosed();
error NoTokenIdsProvided();
error AlreadyBridged();
error NotTokenOwner();
error TransfersLocked();
error NotAllowedByRegistry();
error RegistryNotSet();
error WrongWeiSent();
error MaxFeeExceeded();
error InputLengthsMismatch();
error EmptyInput();
error NotSnapshotOwner();

interface IERC721 {
    function ownerOf(uint256 tokenId) external view returns (address owner);
    function transferFrom(address from, address to, uint256 tokenId) external;
}

interface IRegistry {
    function isAllowedOperator(address operator) external view returns (bool);
}

contract MintifyGenesis is Ownable, OperatorFilterer, ERC2981, ERC721A {
    using BitMaps for BitMaps.BitMap;

    IERC721 private constant LIFETIME_PASS = IERC721(0x6712545A0d1d8595D1045Ea18f2f386ffcA7CA90);
    IERC721 private constant LITE_PASS = IERC721(0x0eB82f969ff477AdC95F7f17Eb4099c6CBF14912);
    IERC721 private constant FUTR_ONE = IERC721(0xB948f35C1C35206a5fB23b77F9e52a01B793c909);

    bool public presaleOpen;
    bool public publicOpen;
    bool public bridgeOpen;
    uint256 private maxSupply;
    uint256 private maxPerWallet;
    uint256 private maxPerOrder;
    uint256 private publicPrice = 6900000000000000;
    uint256 private presalePrice = 5000000000000000;

    BitMaps.BitMap private lifetimePassClaims;
    BitMaps.BitMap private litePassClaims;
    BitMaps.BitMap private futrOneClaims;
    BitMaps.BitMap private tier1Tokens;
    BitMaps.BitMap private tier2Tokens;
    mapping(address => bool) public allowlist;
    mapping(uint256 => address) public futrOneSnapshot;

    bool public operatorFilteringEnabled = true;
    bool public initialTransferLockOn = true;
    bool public isRegistryActive;
    address public registryAddress;

    string public _baseTokenURI = "https://genesis-metas.mintify.xyz";

    constructor() ERC721A("Mintify Genesis", "MNFGEN") {
        _registerForOperatorFiltering();

        // Set initial 2.5% royalty
        _setDefaultRoyalty(owner(), 250);
    }


    // PreSale Mint
    function presaleMint(uint256 quantity) external payable {
        if (maxPerOrder != 0 && quantity > maxPerOrder) {
            revert MaxPerOrderExceeded();
        }
        if (maxSupply != 0 && totalSupply() + quantity > maxSupply) {
            revert MaxSupplyExceeded();
        }
        if (maxPerWallet != 0 && balanceOf(msg.sender) + quantity > maxPerWallet) {
            revert MaxPerWalletExceeded();
        }
        if (!presaleOpen) {
            revert PresaleClosed();
        }
        if (msg.value != (presalePrice * quantity)) {
            revert WrongWeiSent();
        }
        if (!allowlist[msg.sender]) {
            revert NotInPresaleList();
        }
        allowlist[msg.sender] = false;
         _mint(msg.sender, quantity);
    }

    // Public Mint
    function publicMint(uint256 quantity) external payable {
        if (maxPerOrder != 0 && quantity > maxPerOrder) {
            revert MaxPerOrderExceeded();
        }
        if (maxSupply != 0 && totalSupply() + quantity > maxSupply) {
            revert MaxSupplyExceeded();
        }
        if (maxPerWallet != 0 && balanceOf(msg.sender) + quantity > maxPerWallet) {
            revert MaxPerWalletExceeded();
        }
        if (!publicOpen) {
            revert PublicSaleClosed();
        }
        if (msg.value != (publicPrice * quantity)) {
            revert WrongWeiSent();
        }
        _mint(msg.sender, quantity);
    }


    // Bridge Lifetime Passes
     function lifetimeBridge(uint256[] calldata lifeTimeIds) external {

        if (!bridgeOpen) {
            revert BridgingClosed();
        }
        uint256 quantity;
        if (lifeTimeIds.length == 0) {
            revert NoTokenIdsProvided();
        }
        for (; quantity < lifeTimeIds.length;) {
            if (lifetimePassClaims.get(lifeTimeIds[quantity])) {
                revert AlreadyBridged();
            }
            if (LIFETIME_PASS.ownerOf(lifeTimeIds[quantity]) != msg.sender) {
                revert NotTokenOwner();
            }

            // Require burn here
            LIFETIME_PASS.transferFrom(msg.sender, 0x000000000000000000000000000000000000dEaD, lifeTimeIds[quantity]);

            lifetimePassClaims.set(lifeTimeIds[quantity]);
            unchecked {
                ++quantity;
            }
        }
        uint256 currentIdCursor = totalSupply() + 1;
        _mint(msg.sender, quantity);
        for (uint256 i = currentIdCursor; i <= totalSupply();) {
            tier1Tokens.set(i);
            unchecked {
                i++;
            }
        }
        
    }

    // Bridge Lite Passes
     function liteBridge(uint256[] calldata liteIds) external {

        if (!bridgeOpen) {
            revert BridgingClosed();
        }
        uint256 quantity;
        if (liteIds.length == 0) {
            revert NoTokenIdsProvided();
        }
        for (; quantity < liteIds.length;) {
            if (litePassClaims.get(liteIds[quantity])) {
                revert AlreadyBridged();
            }
            if (LITE_PASS.ownerOf(liteIds[quantity]) != msg.sender) {
                revert NotTokenOwner();
            }

            // Require burn here
            LITE_PASS.transferFrom(msg.sender, 0x000000000000000000000000000000000000dEaD, liteIds[quantity]);

            litePassClaims.set(liteIds[quantity]);
            unchecked {
                ++quantity;
            }
        }
        uint256 currentIdCursor = totalSupply() + 1;
        _mint(msg.sender, quantity);
        for (uint256 i = currentIdCursor; i <= totalSupply();) {
            tier2Tokens.set(i); 
            unchecked {
                i++;
            }
        }
        
    }

    // Claim FutrOne Passes
     function futrOneClaim(uint256[] calldata futrOneIds) external {

        if (!bridgeOpen) {
            revert BridgingClosed();
        }
        uint256 quantity;
        if (futrOneIds.length == 0) {
            revert NoTokenIdsProvided();
        }
        for (; quantity < futrOneIds.length;) {
            if (futrOneClaims.get(futrOneIds[quantity])) {
                revert AlreadyBridged();
            }
            if (futrOneSnapshot[futrOneIds[quantity]] != msg.sender) {
                revert NotSnapshotOwner();
            }
            futrOneClaims.set(futrOneIds[quantity]);
            unchecked {
                ++quantity;
            }
        }
        _mint(msg.sender, quantity);
        
    }


    // =========================================================================
    //                           Owner Only Functions
    // =========================================================================

    // Owner unrestricted mint
    function ownerMint(address to, uint256 quantity) external onlyOwner {
        if (maxSupply != 0 && totalSupply() + quantity > maxSupply) {
            revert MaxSupplyExceeded();
        }
        _mint(to, quantity);
    }

    // Enables or disables public sale
    function setPublicState(bool newState) external onlyOwner {
        publicOpen = newState;
    }

    // Enables or disables presale
    function setPresaleState(bool newState) external onlyOwner {
        presaleOpen = newState;
    }

    // Enables or disables bridging
    function setBridgeState(bool newState) external onlyOwner {
        bridgeOpen = newState;
    }

    // Add to allowlist
    function setAllowlist(address[] calldata addresses) external onlyOwner {
        if (addresses.length == 0) {
            revert EmptyInput();
        }
        for (uint256 i; i < addresses.length;) {
            allowlist[addresses[i]] = true;
            unchecked {
                ++i;
            }
        }
    }

    // Remove from allowlist
    function removeAllowlist(address[] calldata addresses) external onlyOwner {
        for (uint256 i; i < addresses.length;) {
            delete allowlist[addresses[i]];
            unchecked {
                ++i;
            }
        }
    }

    // Add to allowlist
    function setFutrOneSnapshot(uint256[] calldata tokenIds, address[] calldata addresses) external onlyOwner {
        if (tokenIds.length == 0) {
            revert EmptyInput();
        }
        if (tokenIds.length != addresses.length) {
            revert InputLengthsMismatch();
        }
        for (uint256 i; i < tokenIds.length;) {
            futrOneSnapshot[tokenIds[i]] = addresses[i];
            unchecked {
                ++i;
            }
        }
    }

    // Set max supply
    function setMaxSupply(uint256 newMaxSupply) external onlyOwner {
        maxSupply = newMaxSupply;
    }

    // Set max per wallet
    function setMaxPerWallet(uint256 newMaxPerWallet) external onlyOwner {
        maxPerWallet = newMaxPerWallet;
    }

    // Set max per order
    function setMaxPerOrder(uint256 newMaxPerOrder) external onlyOwner {
        maxPerOrder = newMaxPerOrder;
    }

    // Set public sale price
    function setPublicSalePrice(uint256 newPrice) external onlyOwner {
        publicPrice = newPrice;
    }

    // Set presale price
    function setPresalePrice(uint256 newPrice) external onlyOwner {
        presalePrice = newPrice;
    }

    // Withdraw Balance to owner
    function withdraw() public onlyOwner {
        payable(owner()).transfer(address(this).balance);
    }

    // Withdraw Balance to Address
    function withdrawTo(address payable _to) public onlyOwner {
        _to.transfer(address(this).balance);
    }

    // Break Transfer Lock
    function breakLock() external onlyOwner {
        initialTransferLockOn = false;
    }

    // =========================================================================
    //                             ERC721A Misc
    // =========================================================================

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

    // =========================================================================
    //                           Operator filtering
    // =========================================================================

    function setApprovalForAll(address operator, bool approved)
        public
        override (ERC721A)
        onlyAllowedOperatorApproval(operator)
    {
        if (initialTransferLockOn) {
            revert TransfersLocked();
        }
        super.setApprovalForAll(operator, approved);
    }

    function approve(address operator, uint256 tokenId)
        public
        payable
        override (ERC721A)
        onlyAllowedOperatorApproval(operator)
    {
        if (initialTransferLockOn) {
            revert TransfersLocked();
        }
        super.approve(operator, tokenId);
    }

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

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

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

    function setOperatorFilteringEnabled(bool value) public onlyOwner {
        operatorFilteringEnabled = value;
    }

    function _operatorFilteringEnabled() internal view override returns (bool) {
        return operatorFilteringEnabled;
    }

    // =========================================================================
    //                             Registry Check
    // =========================================================================
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal override {
        if (initialTransferLockOn && from != address(0) && to != address(0)) {
            revert TransfersLocked();
        }
        if (_isValidAgainstRegistry(msg.sender)) {
            super._beforeTokenTransfers(from, to, startTokenId, quantity);
        } else {
            revert NotAllowedByRegistry();
        }
    }

    function _isValidAgainstRegistry(address operator)
        internal
        view
        returns (bool)
    {
        if (isRegistryActive) {
            IRegistry registry = IRegistry(registryAddress);
            return registry.isAllowedOperator(operator);
        }
        return true;
    }

    function setIsRegistryActive(bool _isRegistryActive) external onlyOwner {
        if (registryAddress == address(0)) revert RegistryNotSet();
        isRegistryActive = _isRegistryActive;
    }

    function setRegistryAddress(address _registryAddress) external onlyOwner {
        registryAddress = _registryAddress;
    }

    // =========================================================================
    //                                  ERC165
    // =========================================================================

    function supportsInterface(bytes4 interfaceId) public view override (ERC721A, ERC2981) returns (bool) {
        // Supports the following `interfaceId`s:
        // - IERC165: 0x01ffc9a7
        // - IERC721: 0x80ac58cd
        // - IERC721Metadata: 0x5b5e139f
        // - IERC2981: 0x2a55205a
        return ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId);
    }

    // =========================================================================
    //                                 ERC2891
    // =========================================================================

    function setDefaultRoyalty(address receiver, uint96 feeNumerator) public onlyOwner {
        if (feeNumerator > 1000) {
            revert MaxFeeExceeded();
        }
        _setDefaultRoyalty(receiver, feeNumerator);
    }

    function setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) external onlyOwner {
        if (feeNumerator > 1000) {
            revert MaxFeeExceeded();
        }
        _setTokenRoyalty(tokenId, receiver, feeNumerator);
    }

    // =========================================================================
    //                                 Metadata
    // =========================================================================

    function setBaseURI(string calldata baseURI) external onlyOwner {
        _baseTokenURI = baseURI;
    }

    function _baseURI() internal view override returns (string memory) {
        return _baseTokenURI;
    }

    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        string memory baseURI = _baseURI();
        if (tier1Tokens.get(tokenId)) {
            return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, "/tier1/", _toString(tokenId))) : "";
        }
        else if (tier2Tokens.get(tokenId)) {
            return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, "/tier2/", _toString(tokenId))) : "";
        }
        else {
            return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, "/tier3/", _toString(tokenId))) : "";
        }
    }

    function isTier1(uint256 tokenId) public view returns (bool) {
        return tier1Tokens.get(tokenId);
    }

    function isTier2(uint256 tokenId) public view returns (bool) {
        return tier2Tokens.get(tokenId);
    }
}

File 2 of 11 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/// @notice Optimized and flexible operator filterer to abide to OpenSea's
/// mandatory on-chain royalty enforcement in order for new collections to
/// receive royalties.
/// For more information, see:
/// See: https://github.com/ProjectOpenSea/operator-filter-registry
abstract contract OperatorFilterer {
    /// @dev The default OpenSea operator blocklist subscription.
    address internal constant _DEFAULT_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;

    /// @dev The OpenSea operator filter registry.
    address internal constant _OPERATOR_FILTER_REGISTRY = 0x000000000000AAeB6D7670E522A718067333cd4E;

    /// @dev Registers the current contract to OpenSea's operator filter,
    /// and subscribe to the default OpenSea operator blocklist.
    /// Note: Will not revert nor update existing settings for repeated registration.
    function _registerForOperatorFiltering() internal virtual {
        _registerForOperatorFiltering(_DEFAULT_SUBSCRIPTION, true);
    }

    /// @dev Registers the current contract to OpenSea's operator filter.
    /// Note: Will not revert nor update existing settings for repeated registration.
    function _registerForOperatorFiltering(address subscriptionOrRegistrantToCopy, bool subscribe)
        internal
        virtual
    {
        /// @solidity memory-safe-assembly
        assembly {
            let functionSelector := 0x7d3e3dbe // `registerAndSubscribe(address,address)`.

            // Clean the upper 96 bits of `subscriptionOrRegistrantToCopy` in case they are dirty.
            subscriptionOrRegistrantToCopy := shr(96, shl(96, subscriptionOrRegistrantToCopy))

            for {} iszero(subscribe) {} {
                if iszero(subscriptionOrRegistrantToCopy) {
                    functionSelector := 0x4420e486 // `register(address)`.
                    break
                }
                functionSelector := 0xa0af2903 // `registerAndCopyEntries(address,address)`.
                break
            }
            // Store the function selector.
            mstore(0x00, shl(224, functionSelector))
            // Store the `address(this)`.
            mstore(0x04, address())
            // Store the `subscriptionOrRegistrantToCopy`.
            mstore(0x24, subscriptionOrRegistrantToCopy)
            // Register into the registry.
            if iszero(call(gas(), _OPERATOR_FILTER_REGISTRY, 0, 0x00, 0x44, 0x00, 0x04)) {
                // If the function selector has not been overwritten,
                // it is an out-of-gas error.
                if eq(shr(224, mload(0x00)), functionSelector) {
                    // To prevent gas under-estimation.
                    revert(0, 0)
                }
            }
            // Restore the part of the free memory pointer that was overwritten,
            // which is guaranteed to be zero, because of Solidity's memory size limits.
            mstore(0x24, 0)
        }
    }

    /// @dev Modifier to guard a function and revert if the caller is a blocked operator.
    modifier onlyAllowedOperator(address from) virtual {
        if (from != msg.sender) {
            if (!_isPriorityOperator(msg.sender)) {
                if (_operatorFilteringEnabled()) _revertIfBlocked(msg.sender);
            }
        }
        _;
    }

    /// @dev Modifier to guard a function from approving a blocked operator..
    modifier onlyAllowedOperatorApproval(address operator) virtual {
        if (!_isPriorityOperator(operator)) {
            if (_operatorFilteringEnabled()) _revertIfBlocked(operator);
        }
        _;
    }

    /// @dev Helper function that reverts if the `operator` is blocked by the registry.
    function _revertIfBlocked(address operator) private view {
        /// @solidity memory-safe-assembly
        assembly {
            // Store the function selector of `isOperatorAllowed(address,address)`,
            // shifted left by 6 bytes, which is enough for 8tb of memory.
            // We waste 6-3 = 3 bytes to save on 6 runtime gas (PUSH1 0x224 SHL).
            mstore(0x00, 0xc6171134001122334455)
            // Store the `address(this)`.
            mstore(0x1a, address())
            // Store the `operator`.
            mstore(0x3a, operator)

            // `isOperatorAllowed` always returns true if it does not revert.
            if iszero(staticcall(gas(), _OPERATOR_FILTER_REGISTRY, 0x16, 0x44, 0x00, 0x00)) {
                // Bubble up the revert if the staticcall reverts.
                returndatacopy(0x00, 0x00, returndatasize())
                revert(0x00, returndatasize())
            }

            // We'll skip checking if `from` is inside the blacklist.
            // Even though that can block transferring out of wrapper contracts,
            // we don't want tokens to be stuck.

            // Restore the part of the free memory pointer that was overwritten,
            // which is guaranteed to be zero, if less than 8tb of memory is used.
            mstore(0x3a, 0)
        }
    }

    /// @dev For deriving contracts to override, so that operator filtering
    /// can be turned on / off.
    /// Returns true by default.
    function _operatorFilteringEnabled() internal view virtual returns (bool) {
        return true;
    }

    /// @dev For deriving contracts to override, so that preferred marketplaces can
    /// skip operator filtering, helping users save gas.
    /// Returns false for all inputs by default.
    function _isPriorityOperator(address) internal view virtual returns (bool) {
        return false;
    }
}

File 3 of 11 : BitMaps.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/structs/BitMaps.sol)
pragma solidity ^0.8.0;

/**
 * @dev Library for managing uint256 to bool mapping in a compact and efficient way, providing the keys are sequential.
 * Largely inspired by Uniswap's https://github.com/Uniswap/merkle-distributor/blob/master/contracts/MerkleDistributor.sol[merkle-distributor].
 */
library BitMaps {
    struct BitMap {
        mapping(uint256 => uint256) _data;
    }

    /**
     * @dev Returns whether the bit at `index` is set.
     */
    function get(BitMap storage bitmap, uint256 index) internal view returns (bool) {
        uint256 bucket = index >> 8;
        uint256 mask = 1 << (index & 0xff);
        return bitmap._data[bucket] & mask != 0;
    }

    /**
     * @dev Sets the bit at `index` to the boolean `value`.
     */
    function setTo(BitMap storage bitmap, uint256 index, bool value) internal {
        if (value) {
            set(bitmap, index);
        } else {
            unset(bitmap, index);
        }
    }

    /**
     * @dev Sets the bit at `index`.
     */
    function set(BitMap storage bitmap, uint256 index) internal {
        uint256 bucket = index >> 8;
        uint256 mask = 1 << (index & 0xff);
        bitmap._data[bucket] |= mask;
    }

    /**
     * @dev Unsets the bit at `index`.
     */
    function unset(BitMap storage bitmap, uint256 index) internal {
        uint256 bucket = index >> 8;
        uint256 mask = 1 << (index & 0xff);
        bitmap._data[bucket] &= ~mask;
    }
}

File 4 of 11 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) {
        return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 5 of 11 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        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 6 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 7 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 8 of 11 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 9 of 11 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "../utils/introspection/IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(
        uint256 tokenId,
        uint256 salePrice
    ) external view returns (address receiver, uint256 royaltyAmount);
}

File 10 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;
    }
}

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyBridged","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"BridgingClosed","type":"error"},{"inputs":[],"name":"EmptyInput","type":"error"},{"inputs":[],"name":"InputLengthsMismatch","type":"error"},{"inputs":[],"name":"MaxFeeExceeded","type":"error"},{"inputs":[],"name":"MaxPerOrderExceeded","type":"error"},{"inputs":[],"name":"MaxPerWalletExceeded","type":"error"},{"inputs":[],"name":"MaxSupplyExceeded","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NoTokenIdsProvided","type":"error"},{"inputs":[],"name":"NotAllowedByRegistry","type":"error"},{"inputs":[],"name":"NotInPresaleList","type":"error"},{"inputs":[],"name":"NotSnapshotOwner","type":"error"},{"inputs":[],"name":"NotTokenOwner","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"PresaleClosed","type":"error"},{"inputs":[],"name":"PublicSaleClosed","type":"error"},{"inputs":[],"name":"RegistryNotSet","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"TransfersLocked","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"WrongWeiSent","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"_baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowlist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"breakLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bridgeOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"futrOneIds","type":"uint256[]"}],"name":"futrOneClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"futrOneSnapshot","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"initialTransferLockOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRegistryActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isTier1","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isTier2","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"lifeTimeIds","type":"uint256[]"}],"name":"lifetimeBridge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"liteIds","type":"uint256[]"}],"name":"liteBridge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorFilteringEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presaleOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"registryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"removeAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"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":"addresses","type":"address[]"}],"name":"setAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newState","type":"bool"}],"name":"setBridgeState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"setFutrOneSnapshot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isRegistryActive","type":"bool"}],"name":"setIsRegistryActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxPerOrder","type":"uint256"}],"name":"setMaxPerOrder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxPerWallet","type":"uint256"}],"name":"setMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setOperatorFilteringEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPresalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newState","type":"bool"}],"name":"setPresaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPublicSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newState","type":"bool"}],"name":"setPublicState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_registryAddress","type":"address"}],"name":"setRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_to","type":"address"}],"name":"withdrawTo","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526618838370f34000600f556611c37937e080006010556001601860006101000a81548160ff0219169083151502179055506001601860016101000a81548160ff02191690831515021790555060405180606001604052806021815260200162005d8060219139601990816200007a919062000751565b503480156200008857600080fd5b506040518060400160405280600f81526020017f4d696e746966792047656e6573697300000000000000000000000000000000008152506040518060400160405280600681526020017f4d4e4647454e000000000000000000000000000000000000000000000000000081525062000115620001096200018960201b60201c565b6200019160201b60201c565b816005908162000126919062000751565b50806006908162000138919062000751565b50620001496200025560201b60201c565b6003819055505050620001616200025e60201b60201c565b62000183620001756200028760201b60201c565b60fa620002b060201b60201c565b62000953565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006001905090565b62000285733cc6cdda760b79bafa08df41ecfa224f810dceb660016200045360201b60201c565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b620002c0620004cd60201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111562000321576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200031890620008bf565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160362000393576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200038a9062000931565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600160008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b637d3e3dbe8260601b60601c9250816200048257826200047a57634420e486905062000482565b63a0af290390505b8060e01b60005230600452826024526004600060446000806daaeb6d7670e522a718067333cd4e5af1620004c3578060005160e01c03620004c257600080fd5b5b6000602452505050565b6000612710905090565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200055957607f821691505b6020821081036200056f576200056e62000511565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620005d97fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200059a565b620005e586836200059a565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620006326200062c6200062684620005fd565b62000607565b620005fd565b9050919050565b6000819050919050565b6200064e8362000611565b620006666200065d8262000639565b848454620005a7565b825550505050565b600090565b6200067d6200066e565b6200068a81848462000643565b505050565b5b81811015620006b257620006a660008262000673565b60018101905062000690565b5050565b601f8211156200070157620006cb8162000575565b620006d6846200058a565b81016020851015620006e6578190505b620006fe620006f5856200058a565b8301826200068f565b50505b505050565b600082821c905092915050565b6000620007266000198460080262000706565b1980831691505092915050565b600062000741838362000713565b9150826002028217905092915050565b6200075c82620004d7565b67ffffffffffffffff811115620007785762000777620004e2565b5b62000784825462000540565b62000791828285620006b6565b600060209050601f831160018114620007c95760008415620007b4578287015190505b620007c0858262000733565b86555062000830565b601f198416620007d98662000575565b60005b828110156200080357848901518255600182019150602085019450602081019050620007dc565b868310156200082357848901516200081f601f89168262000713565b8355505b6001600288020188555050505b505050505050565b600082825260208201905092915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000620008a7602a8362000838565b9150620008b48262000849565b604082019050919050565b60006020820190508181036000830152620008da8162000898565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b60006200091960198362000838565b91506200092682620008e1565b602082019050919050565b600060208201905081810360008301526200094c816200090a565b9050919050565b61541d80620009636000396000f3fe60806040526004361061036b5760003560e01c8063791a2519116101c6578063bee6348a116100f7578063d93d93a211610095578063ed9aab511161006f578063ed9aab5114610c31578063f2fde38b14610c5c578063f4f4aadc14610c85578063fb796e6c14610cae5761036b565b8063d93d93a214610ba2578063e268e4d314610bcb578063e985e9c514610bf45761036b565b8063c87b56dd116100d1578063c87b56dd14610af5578063c9b298f114610b32578063c9ea7b6314610b4e578063cfc86f7b14610b775761036b565b8063bee6348a14610a64578063c0a5846614610a8f578063c48156af14610acc5761036b565b8063a7cd52cb11610164578063b7c0b8e81161013e578063b7c0b8e8146109cb578063b88d4fde146109f4578063ba70c51514610a10578063bce4d6ae14610a3b5761036b565b8063a7cd52cb1461093a578063ab7b499314610977578063abd017ea146109a05761036b565b806395d89b41116101a057806395d89b41146108925780639da44949146108bd578063a22cb465146108fa578063a70138c1146109235761036b565b8063791a2519146108155780638da5cb5b1461083e5780639387e6dd146108695761036b565b80633c2d4cd3116102a05780635944c7531161023e578063708b8a8011610218578063708b8a801461076f57806370a0823114610798578063715018a6146107d557806372b0d90c146107ec5761036b565b80635944c753146106e05780636352211e146107095780636f8b44b0146107465761036b565b806346fff98d1161027a57806346fff98d1461063c578063484b973c14610665578063552b818b1461068e57806355f804b3146106b75761036b565b80633c2d4cd3146105e05780633ccfd60b1461060957806342842e0e146106205761036b565b8063095ea7b31161030d57806323b872dd116102e757806323b872dd146105415780632a55205a1461055d5780632db115441461059b5780633549345e146105b75761036b565b8063095ea7b3146104cf57806312b36510146104eb57806318160ddd146105165761036b565b806306fdde031161034957806306fdde03146103ff57806307a440f51461042a578063081812fc1461046757806308702e09146104a45761036b565b806301ffc9a71461037057806304634d8d146103ad57806304811cfa146103d6575b600080fd5b34801561037c57600080fd5b506103976004803603810190610392919061407f565b610cd9565b6040516103a491906140c7565b60405180910390f35b3480156103b957600080fd5b506103d460048036038101906103cf9190614184565b610cfb565b005b3480156103e257600080fd5b506103fd60048036038101906103f89190614229565b610d5b565b005b34801561040b57600080fd5b50610414610f47565b6040516104219190614306565b60405180910390f35b34801561043657600080fd5b50610451600480360381019061044c919061435e565b610fd9565b60405161045e91906140c7565b60405180910390f35b34801561047357600080fd5b5061048e6004803603810190610489919061435e565b610ff6565b60405161049b919061439a565b60405180910390f35b3480156104b057600080fd5b506104b9611075565b6040516104c691906140c7565b60405180910390f35b6104e960048036038101906104e491906143b5565b611088565b005b3480156104f757600080fd5b50610500611104565b60405161050d91906140c7565b60405180910390f35b34801561052257600080fd5b5061052b611117565b6040516105389190614404565b60405180910390f35b61055b6004803603810190610556919061441f565b61112e565b005b34801561056957600080fd5b50610584600480360381019061057f9190614472565b611199565b6040516105929291906144b2565b60405180910390f35b6105b560048036038101906105b0919061435e565b611383565b005b3480156105c357600080fd5b506105de60048036038101906105d9919061435e565b611522565b005b3480156105ec57600080fd5b5061060760048036038101906106029190614229565b611534565b005b34801561061557600080fd5b5061061e611867565b005b61063a6004803603810190610635919061441f565b6118bf565b005b34801561064857600080fd5b50610663600480360381019061065e9190614507565b61192a565b005b34801561067157600080fd5b5061068c600480360381019061068791906143b5565b6119d7565b005b34801561069a57600080fd5b506106b560048036038101906106b0919061458a565b611a4a565b005b3480156106c357600080fd5b506106de60048036038101906106d9919061462d565b611b2c565b005b3480156106ec57600080fd5b506107076004803603810190610702919061467a565b611b4a565b005b34801561071557600080fd5b50610730600480360381019061072b919061435e565b611bac565b60405161073d919061439a565b60405180910390f35b34801561075257600080fd5b5061076d6004803603810190610768919061435e565b611bbe565b005b34801561077b57600080fd5b5061079660048036038101906107919190614507565b611bd0565b005b3480156107a457600080fd5b506107bf60048036038101906107ba91906146cd565b611bf5565b6040516107cc9190614404565b60405180910390f35b3480156107e157600080fd5b506107ea611cad565b005b3480156107f857600080fd5b50610813600480360381019061080e9190614738565b611cc1565b005b34801561082157600080fd5b5061083c6004803603810190610837919061435e565b611d13565b005b34801561084a57600080fd5b50610853611d25565b604051610860919061439a565b60405180910390f35b34801561087557600080fd5b50610890600480360381019061088b919061458a565b611d4e565b005b34801561089e57600080fd5b506108a7611dea565b6040516108b49190614306565b60405180910390f35b3480156108c957600080fd5b506108e460048036038101906108df919061435e565b611e7c565b6040516108f191906140c7565b60405180910390f35b34801561090657600080fd5b50610921600480360381019061091c9190614765565b611e99565b005b34801561092f57600080fd5b50610938611f15565b005b34801561094657600080fd5b50610961600480360381019061095c91906146cd565b611f3a565b60405161096e91906140c7565b60405180910390f35b34801561098357600080fd5b5061099e600480360381019061099991906146cd565b611f5a565b005b3480156109ac57600080fd5b506109b5611fa6565b6040516109c291906140c7565b60405180910390f35b3480156109d757600080fd5b506109f260048036038101906109ed9190614507565b611fb9565b005b610a0e6004803603810190610a0991906148d5565b611fde565b005b348015610a1c57600080fd5b50610a2561204b565b604051610a3291906140c7565b60405180910390f35b348015610a4757600080fd5b50610a626004803603810190610a5d9190614507565b61205e565b005b348015610a7057600080fd5b50610a79612083565b604051610a8691906140c7565b60405180910390f35b348015610a9b57600080fd5b50610ab66004803603810190610ab1919061435e565b612096565b604051610ac3919061439a565b60405180910390f35b348015610ad857600080fd5b50610af36004803603810190610aee9190614507565b6120c9565b005b348015610b0157600080fd5b50610b1c6004803603810190610b17919061435e565b6120ee565b604051610b299190614306565b60405180910390f35b610b4c6004803603810190610b47919061435e565b612261565b005b348015610b5a57600080fd5b50610b756004803603810190610b709190614229565b6124db565b005b348015610b8357600080fd5b50610b8c61280e565b604051610b999190614306565b60405180910390f35b348015610bae57600080fd5b50610bc96004803603810190610bc4919061435e565b61289c565b005b348015610bd757600080fd5b50610bf26004803603810190610bed919061435e565b6128ae565b005b348015610c0057600080fd5b50610c1b6004803603810190610c169190614958565b6128c0565b604051610c2891906140c7565b60405180910390f35b348015610c3d57600080fd5b50610c46612954565b604051610c53919061439a565b60405180910390f35b348015610c6857600080fd5b50610c836004803603810190610c7e91906146cd565b61297a565b005b348015610c9157600080fd5b50610cac6004803603810190610ca79190614998565b6129fd565b005b348015610cba57600080fd5b50610cc3612b33565b604051610cd091906140c7565b60405180910390f35b6000610ce482612b46565b80610cf45750610cf382612bd8565b5b9050919050565b610d03612c52565b6103e8816bffffffffffffffffffffffff161115610d4d576040517ff4df6ae500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d578282612cd0565b5050565b600b60029054906101000a900460ff16610da1576040517ffdeb6cc200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000808383905003610ddf576040517f39c8340e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b82829050811015610f3857610e18838383818110610e0157610e00614a19565b5b905060200201356013612e6590919063ffffffff16565b15610e4f576040517f4cd4ddb700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff1660176000858585818110610e7d57610e7c614a19565b5b90506020020135815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f00576040517f258b0b9e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f2d838383818110610f1657610f15614a19565b5b905060200201356013612ea190919063ffffffff16565b806001019050610de0565b610f423382612edf565b505050565b606060058054610f5690614a77565b80601f0160208091040260200160405190810160405280929190818152602001828054610f8290614a77565b8015610fcf5780601f10610fa457610100808354040283529160200191610fcf565b820191906000526020600020905b815481529060010190602001808311610fb257829003601f168201915b5050505050905090565b6000610fef826014612e6590919063ffffffff16565b9050919050565b60006110018261309b565b611037576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6009600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600b60029054906101000a900460ff1681565b81611092816130fa565b6110ae5761109e613101565b156110ad576110ac81613118565b5b5b601860019054906101000a900460ff16156110f5576040517fdb89e3f400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6110ff838361315c565b505050565b601860019054906101000a900460ff1681565b60006111216132a0565b6004546003540303905090565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146111885761116b336130fa565b61118757611177613101565b156111865761118533613118565b5b5b5b6111938484846132a9565b50505050565b6000806000600260008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff160361132e5760016040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b60006113386135cb565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866113649190614ad7565b61136e9190614b48565b90508160000151819350935050509250929050565b6000600e54141580156113975750600e5481115b156113ce576040517fadc57a4c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600c54141580156113f45750600c54816113e8611117565b6113f29190614b79565b115b1561142b576040517f8a164f6300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600d54141580156114525750600d548161144633611bf5565b6114509190614b79565b115b15611489576040517ff560625a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b60019054906101000a900460ff166114cf576040517fdd4e010600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600f546114dd9190614ad7565b3414611515576040517f327c6a5600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61151f3382612edf565b50565b61152a612c52565b8060108190555050565b600b60029054906101000a900460ff1661157a576040517ffdeb6cc200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008083839050036115b8576040517f39c8340e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b82829050811015611809576115f18383838181106115da576115d9614a19565b5b905060200201356011612e6590919063ffffffff16565b15611628576040517f4cd4ddb700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16736712545a0d1d8595d1045ea18f2f386ffca7ca9073ffffffffffffffffffffffffffffffffffffffff16636352211e85858581811061168257611681614a19565b5b905060200201356040518263ffffffff1660e01b81526004016116a59190614404565b602060405180830381865afa1580156116c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e69190614bc2565b73ffffffffffffffffffffffffffffffffffffffff1614611733576040517f59dc379f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b736712545a0d1d8595d1045ea18f2f386ffca7ca9073ffffffffffffffffffffffffffffffffffffffff166323b872dd3361dead86868681811061177a57611779614a19565b5b905060200201356040518463ffffffff1660e01b815260040161179f93929190614bef565b600060405180830381600087803b1580156117b957600080fd5b505af11580156117cd573d6000803e3d6000fd5b505050506117fe8383838181106117e7576117e6614a19565b5b905060200201356011612ea190919063ffffffff16565b8060010190506115b9565b60006001611815611117565b61181f9190614b79565b905061182b3383612edf565b60008190505b611839611117565b811161186057611853816014612ea190919063ffffffff16565b8080600101915050611831565b5050505050565b61186f612c52565b611877611d25565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156118bc573d6000803e3d6000fd5b50565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611919576118fc336130fa565b61191857611908613101565b156119175761191633613118565b5b5b5b6119248484846135d5565b50505050565b611932612c52565b600073ffffffffffffffffffffffffffffffffffffffff16601860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036119ba576040517fe048e71000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80601860026101000a81548160ff02191690831515021790555050565b6119df612c52565b6000600c5414158015611a055750600c54816119f9611117565b611a039190614b79565b115b15611a3c576040517f8a164f6300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611a468282612edf565b5050565b611a52612c52565b60008282905003611a8f576040517fa447fc5300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b82829050811015611b2757600160166000858585818110611ab657611ab5614a19565b5b9050602002016020810190611acb91906146cd565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550806001019050611a92565b505050565b611b34612c52565b818160199182611b45929190614ddd565b505050565b611b52612c52565b6103e8816bffffffffffffffffffffffff161115611b9c576040517ff4df6ae500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611ba78383836135f5565b505050565b6000611bb78261379c565b9050919050565b611bc6612c52565b80600c8190555050565b611bd8612c52565b80600b60026101000a81548160ff02191690831515021790555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c5c576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611cb5612c52565b611cbf6000613868565b565b611cc9612c52565b8073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611d0f573d6000803e3d6000fd5b5050565b611d1b612c52565b80600f8190555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611d56612c52565b60005b82829050811015611de55760166000848484818110611d7b57611d7a614a19565b5b9050602002016020810190611d9091906146cd565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549060ff0219169055806001019050611d59565b505050565b606060068054611df990614a77565b80601f0160208091040260200160405190810160405280929190818152602001828054611e2590614a77565b8015611e725780601f10611e4757610100808354040283529160200191611e72565b820191906000526020600020905b815481529060010190602001808311611e5557829003601f168201915b5050505050905090565b6000611e92826015612e6590919063ffffffff16565b9050919050565b81611ea3816130fa565b611ebf57611eaf613101565b15611ebe57611ebd81613118565b5b5b601860019054906101000a900460ff1615611f06576040517fdb89e3f400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611f10838361392c565b505050565b611f1d612c52565b6000601860016101000a81548160ff021916908315150217905550565b60166020528060005260406000206000915054906101000a900460ff1681565b611f62612c52565b80601860036101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b601860029054906101000a900460ff1681565b611fc1612c52565b80601860006101000a81548160ff02191690831515021790555050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146120385761201b336130fa565b61203757612027613101565b156120365761203533613118565b5b5b5b61204485858585613a37565b5050505050565b600b60019054906101000a900460ff1681565b612066612c52565b80600b60006101000a81548160ff02191690831515021790555050565b600b60009054906101000a900460ff1681565b60176020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6120d1612c52565b80600b60016101000a81548160ff02191690831515021790555050565b60606120f98261309b565b61212f576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612139613aaa565b905061214f836014612e6590919063ffffffff16565b156121a5576000815103612172576040518060200160405280600081525061219d565b8061217c84613b3c565b60405160200161218d929190614f35565b6040516020818303038152906040525b91505061225c565b6121b9836015612e6590919063ffffffff16565b1561220f5760008151036121dc5760405180602001604052806000815250612207565b806121e684613b3c565b6040516020016121f7929190614fb0565b6040516020818303038152906040525b91505061225c565b600081510361222d5760405180602001604052806000815250612258565b8061223784613b3c565b60405160200161224892919061502b565b6040516020818303038152906040525b9150505b919050565b6000600e54141580156122755750600e5481115b156122ac576040517fadc57a4c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600c54141580156122d25750600c54816122c6611117565b6122d09190614b79565b115b15612309576040517f8a164f6300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600d54141580156123305750600d548161232433611bf5565b61232e9190614b79565b115b15612367576040517ff560625a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b60009054906101000a900460ff166123ad576040517f178883df00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806010546123bb9190614ad7565b34146123f3576040517f327c6a5600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16612476576040517fec68639a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506124d83382612edf565b50565b600b60029054906101000a900460ff16612521576040517ffdeb6cc200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080838390500361255f576040517f39c8340e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b828290508110156127b05761259883838381811061258157612580614a19565b5b905060200201356012612e6590919063ffffffff16565b156125cf576040517f4cd4ddb700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16730eb82f969ff477adc95f7f17eb4099c6cbf1491273ffffffffffffffffffffffffffffffffffffffff16636352211e85858581811061262957612628614a19565b5b905060200201356040518263ffffffff1660e01b815260040161264c9190614404565b602060405180830381865afa158015612669573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061268d9190614bc2565b73ffffffffffffffffffffffffffffffffffffffff16146126da576040517f59dc379f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b730eb82f969ff477adc95f7f17eb4099c6cbf1491273ffffffffffffffffffffffffffffffffffffffff166323b872dd3361dead86868681811061272157612720614a19565b5b905060200201356040518463ffffffff1660e01b815260040161274693929190614bef565b600060405180830381600087803b15801561276057600080fd5b505af1158015612774573d6000803e3d6000fd5b505050506127a583838381811061278e5761278d614a19565b5b905060200201356012612ea190919063ffffffff16565b806001019050612560565b600060016127bc611117565b6127c69190614b79565b90506127d23383612edf565b60008190505b6127e0611117565b8111612807576127fa816015612ea190919063ffffffff16565b80806001019150506127d8565b5050505050565b6019805461281b90614a77565b80601f016020809104026020016040519081016040528092919081815260200182805461284790614a77565b80156128945780601f1061286957610100808354040283529160200191612894565b820191906000526020600020905b81548152906001019060200180831161287757829003601f168201915b505050505081565b6128a4612c52565b80600e8190555050565b6128b6612c52565b80600d8190555050565b6000600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b601860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b612982612c52565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036129f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129e8906150cc565b60405180910390fd5b6129fa81613868565b50565b612a05612c52565b60008484905003612a42576040517fa447fc5300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818190508484905014612a81576040517ffc4c603600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b84849050811015612b2c57828282818110612aa257612aa1614a19565b5b9050602002016020810190612ab791906146cd565b60176000878785818110612ace57612acd614a19565b5b90506020020135815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550806001019050612a84565b5050505050565b601860009054906101000a900460ff1681565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612ba157506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612bd15750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612c4b5750612c4a82613b8c565b5b9050919050565b612c5a613bf6565b73ffffffffffffffffffffffffffffffffffffffff16612c78611d25565b73ffffffffffffffffffffffffffffffffffffffff1614612cce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cc590615138565b60405180910390fd5b565b612cd86135cb565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612d36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d2d906151ca565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612da5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d9c90615236565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600160008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b600080600883901c9050600060ff84166001901b9050600081866000016000858152602001908152602001600020541614159250505092915050565b6000600882901c9050600060ff83166001901b9050808460000160008481526020019081526020016000206000828254179250508190555050505050565b6000600354905060008203612f20576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612f2d6000848385613bfe565b600160406001901b178202600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612fa483612f956000866000613d0e565b612f9e85613d36565b17613d46565b6007600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461304557808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460018101905061300a565b5060008203613080576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060038190555050506130966000848385613d71565b505050565b6000816130a66132a0565b111580156130b5575060035482105b80156130f3575060007c0100000000000000000000000000000000000000000000000000000000600760008581526020019081526020016000205416145b9050919050565b6000919050565b6000601860009054906101000a900460ff16905090565b69c617113400112233445560005230601a5280603a52600080604460166daaeb6d7670e522a718067333cd4e5afa613154573d6000803e3d6000fd5b6000603a5250565b600061316782611bac565b90508073ffffffffffffffffffffffffffffffffffffffff16613188613d77565b73ffffffffffffffffffffffffffffffffffffffff16146131eb576131b4816131af613d77565b6128c0565b6131ea576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826009600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001905090565b60006132b48261379c565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461331b576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061332784613d7f565b9150915061333d8187613338613d77565b613da6565b613389576133528661334d613d77565b6128c0565b613388576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036133ef576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6133fc8686866001613bfe565b801561340757600082555b600860008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506134d5856134b1888887613d0e565b7c020000000000000000000000000000000000000000000000000000000017613d46565b600760008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361355b5760006001850190506000600760008381526020019081526020016000205403613559576003548114613558578360076000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46135c38686866001613d71565b505050505050565b6000612710905090565b6135f083838360405180602001604052806000815250611fde565b505050565b6135fd6135cb565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111561365b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613652906151ca565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036136ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136c1906152a2565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff168152506002600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550905050505050565b600080829050806137ab6132a0565b11613831576003548110156138305760006007600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082160361382e575b600081036138245760076000836001900393508381526020019081526020016000205490506137fa565b8092505050613863565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80600a6000613939613d77565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166139e6613d77565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051613a2b91906140c7565b60405180910390a35050565b613a4284848461112e565b60008373ffffffffffffffffffffffffffffffffffffffff163b14613aa457613a6d84848484613dea565b613aa3576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b606060198054613ab990614a77565b80601f0160208091040260200160405190810160405280929190818152602001828054613ae590614a77565b8015613b325780601f10613b0757610100808354040283529160200191613b32565b820191906000526020600020905b815481529060010190602001808311613b1557829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b600115613b7757600184039350600a81066030018453600a8104905080613b55575b50828103602084039350808452505050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b601860019054906101000a900460ff168015613c475750600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614155b8015613c805750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b15613cb7576040517fdb89e3f400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613cc033613f3a565b15613cd657613cd184848484614004565b613d08565b6040517f4c80d8be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b60008060e883901c905060e8613d2586868461400a565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b60008060006009600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613e10613d77565b8786866040518563ffffffff1660e01b8152600401613e329493929190615317565b6020604051808303816000875af1925050508015613e6e57506040513d601f19601f82011682018060405250810190613e6b9190615378565b60015b613ee7573d8060008114613e9e576040519150601f19603f3d011682016040523d82523d6000602084013e613ea3565b606091505b506000815103613edf576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6000601860029054906101000a900460ff1615613ffa576000601860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff1663e18bc08a846040518263ffffffff1660e01b8152600401613fb1919061439a565b602060405180830381865afa158015613fce573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ff291906153ba565b915050613fff565b600190505b919050565b50505050565b60009392505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61405c81614027565b811461406757600080fd5b50565b60008135905061407981614053565b92915050565b6000602082840312156140955761409461401d565b5b60006140a38482850161406a565b91505092915050565b60008115159050919050565b6140c1816140ac565b82525050565b60006020820190506140dc60008301846140b8565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061410d826140e2565b9050919050565b61411d81614102565b811461412857600080fd5b50565b60008135905061413a81614114565b92915050565b60006bffffffffffffffffffffffff82169050919050565b61416181614140565b811461416c57600080fd5b50565b60008135905061417e81614158565b92915050565b6000806040838503121561419b5761419a61401d565b5b60006141a98582860161412b565b92505060206141ba8582860161416f565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f8401126141e9576141e86141c4565b5b8235905067ffffffffffffffff811115614206576142056141c9565b5b602083019150836020820283011115614222576142216141ce565b5b9250929050565b600080602083850312156142405761423f61401d565b5b600083013567ffffffffffffffff81111561425e5761425d614022565b5b61426a858286016141d3565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b60005b838110156142b0578082015181840152602081019050614295565b60008484015250505050565b6000601f19601f8301169050919050565b60006142d882614276565b6142e28185614281565b93506142f2818560208601614292565b6142fb816142bc565b840191505092915050565b6000602082019050818103600083015261432081846142cd565b905092915050565b6000819050919050565b61433b81614328565b811461434657600080fd5b50565b60008135905061435881614332565b92915050565b6000602082840312156143745761437361401d565b5b600061438284828501614349565b91505092915050565b61439481614102565b82525050565b60006020820190506143af600083018461438b565b92915050565b600080604083850312156143cc576143cb61401d565b5b60006143da8582860161412b565b92505060206143eb85828601614349565b9150509250929050565b6143fe81614328565b82525050565b600060208201905061441960008301846143f5565b92915050565b6000806000606084860312156144385761443761401d565b5b60006144468682870161412b565b93505060206144578682870161412b565b925050604061446886828701614349565b9150509250925092565b600080604083850312156144895761448861401d565b5b600061449785828601614349565b92505060206144a885828601614349565b9150509250929050565b60006040820190506144c7600083018561438b565b6144d460208301846143f5565b9392505050565b6144e4816140ac565b81146144ef57600080fd5b50565b600081359050614501816144db565b92915050565b60006020828403121561451d5761451c61401d565b5b600061452b848285016144f2565b91505092915050565b60008083601f84011261454a576145496141c4565b5b8235905067ffffffffffffffff811115614567576145666141c9565b5b602083019150836020820283011115614583576145826141ce565b5b9250929050565b600080602083850312156145a1576145a061401d565b5b600083013567ffffffffffffffff8111156145bf576145be614022565b5b6145cb85828601614534565b92509250509250929050565b60008083601f8401126145ed576145ec6141c4565b5b8235905067ffffffffffffffff81111561460a576146096141c9565b5b602083019150836001820283011115614626576146256141ce565b5b9250929050565b600080602083850312156146445761464361401d565b5b600083013567ffffffffffffffff81111561466257614661614022565b5b61466e858286016145d7565b92509250509250929050565b6000806000606084860312156146935761469261401d565b5b60006146a186828701614349565b93505060206146b28682870161412b565b92505060406146c38682870161416f565b9150509250925092565b6000602082840312156146e3576146e261401d565b5b60006146f18482850161412b565b91505092915050565b6000614705826140e2565b9050919050565b614715816146fa565b811461472057600080fd5b50565b6000813590506147328161470c565b92915050565b60006020828403121561474e5761474d61401d565b5b600061475c84828501614723565b91505092915050565b6000806040838503121561477c5761477b61401d565b5b600061478a8582860161412b565b925050602061479b858286016144f2565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6147e2826142bc565b810181811067ffffffffffffffff82111715614801576148006147aa565b5b80604052505050565b6000614814614013565b905061482082826147d9565b919050565b600067ffffffffffffffff8211156148405761483f6147aa565b5b614849826142bc565b9050602081019050919050565b82818337600083830152505050565b600061487861487384614825565b61480a565b905082815260208101848484011115614894576148936147a5565b5b61489f848285614856565b509392505050565b600082601f8301126148bc576148bb6141c4565b5b81356148cc848260208601614865565b91505092915050565b600080600080608085870312156148ef576148ee61401d565b5b60006148fd8782880161412b565b945050602061490e8782880161412b565b935050604061491f87828801614349565b925050606085013567ffffffffffffffff8111156149405761493f614022565b5b61494c878288016148a7565b91505092959194509250565b6000806040838503121561496f5761496e61401d565b5b600061497d8582860161412b565b925050602061498e8582860161412b565b9150509250929050565b600080600080604085870312156149b2576149b161401d565b5b600085013567ffffffffffffffff8111156149d0576149cf614022565b5b6149dc878288016141d3565b9450945050602085013567ffffffffffffffff8111156149ff576149fe614022565b5b614a0b87828801614534565b925092505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614a8f57607f821691505b602082108103614aa257614aa1614a48565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614ae282614328565b9150614aed83614328565b9250828202614afb81614328565b91508282048414831517614b1257614b11614aa8565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614b5382614328565b9150614b5e83614328565b925082614b6e57614b6d614b19565b5b828204905092915050565b6000614b8482614328565b9150614b8f83614328565b9250828201905080821115614ba757614ba6614aa8565b5b92915050565b600081519050614bbc81614114565b92915050565b600060208284031215614bd857614bd761401d565b5b6000614be684828501614bad565b91505092915050565b6000606082019050614c04600083018661438b565b614c11602083018561438b565b614c1e60408301846143f5565b949350505050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614c937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614c56565b614c9d8683614c56565b95508019841693508086168417925050509392505050565b6000819050919050565b6000614cda614cd5614cd084614328565b614cb5565b614328565b9050919050565b6000819050919050565b614cf483614cbf565b614d08614d0082614ce1565b848454614c63565b825550505050565b600090565b614d1d614d10565b614d28818484614ceb565b505050565b5b81811015614d4c57614d41600082614d15565b600181019050614d2e565b5050565b601f821115614d9157614d6281614c31565b614d6b84614c46565b81016020851015614d7a578190505b614d8e614d8685614c46565b830182614d2d565b50505b505050565b600082821c905092915050565b6000614db460001984600802614d96565b1980831691505092915050565b6000614dcd8383614da3565b9150826002028217905092915050565b614de78383614c26565b67ffffffffffffffff811115614e0057614dff6147aa565b5b614e0a8254614a77565b614e15828285614d50565b6000601f831160018114614e445760008415614e32578287013590505b614e3c8582614dc1565b865550614ea4565b601f198416614e5286614c31565b60005b82811015614e7a57848901358255600182019150602085019450602081019050614e55565b86831015614e975784890135614e93601f891682614da3565b8355505b6001600288020188555050505b50505050505050565b600081905092915050565b6000614ec382614276565b614ecd8185614ead565b9350614edd818560208601614292565b80840191505092915050565b7f2f74696572312f00000000000000000000000000000000000000000000000000600082015250565b6000614f1f600783614ead565b9150614f2a82614ee9565b600782019050919050565b6000614f418285614eb8565b9150614f4c82614f12565b9150614f588284614eb8565b91508190509392505050565b7f2f74696572322f00000000000000000000000000000000000000000000000000600082015250565b6000614f9a600783614ead565b9150614fa582614f64565b600782019050919050565b6000614fbc8285614eb8565b9150614fc782614f8d565b9150614fd38284614eb8565b91508190509392505050565b7f2f74696572332f00000000000000000000000000000000000000000000000000600082015250565b6000615015600783614ead565b915061502082614fdf565b600782019050919050565b60006150378285614eb8565b915061504282615008565b915061504e8284614eb8565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006150b6602683614281565b91506150c18261505a565b604082019050919050565b600060208201905081810360008301526150e5816150a9565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615122602083614281565b915061512d826150ec565b602082019050919050565b6000602082019050818103600083015261515181615115565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b60006151b4602a83614281565b91506151bf82615158565b604082019050919050565b600060208201905081810360008301526151e3816151a7565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000615220601983614281565b915061522b826151ea565b602082019050919050565b6000602082019050818103600083015261524f81615213565b9050919050565b7f455243323938313a20496e76616c696420706172616d65746572730000000000600082015250565b600061528c601b83614281565b915061529782615256565b602082019050919050565b600060208201905081810360008301526152bb8161527f565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006152e9826152c2565b6152f381856152cd565b9350615303818560208601614292565b61530c816142bc565b840191505092915050565b600060808201905061532c600083018761438b565b615339602083018661438b565b61534660408301856143f5565b818103606083015261535881846152de565b905095945050505050565b60008151905061537281614053565b92915050565b60006020828403121561538e5761538d61401d565b5b600061539c84828501615363565b91505092915050565b6000815190506153b4816144db565b92915050565b6000602082840312156153d0576153cf61401d565b5b60006153de848285016153a5565b9150509291505056fea2646970667358221220123aa6eaa634f8a90f336c0fc5f4de0b3865553e53310a4bdf2e5148674eafda64736f6c6343000812003368747470733a2f2f67656e657369732d6d657461732e6d696e746966792e78797a

Deployed Bytecode

0x60806040526004361061036b5760003560e01c8063791a2519116101c6578063bee6348a116100f7578063d93d93a211610095578063ed9aab511161006f578063ed9aab5114610c31578063f2fde38b14610c5c578063f4f4aadc14610c85578063fb796e6c14610cae5761036b565b8063d93d93a214610ba2578063e268e4d314610bcb578063e985e9c514610bf45761036b565b8063c87b56dd116100d1578063c87b56dd14610af5578063c9b298f114610b32578063c9ea7b6314610b4e578063cfc86f7b14610b775761036b565b8063bee6348a14610a64578063c0a5846614610a8f578063c48156af14610acc5761036b565b8063a7cd52cb11610164578063b7c0b8e81161013e578063b7c0b8e8146109cb578063b88d4fde146109f4578063ba70c51514610a10578063bce4d6ae14610a3b5761036b565b8063a7cd52cb1461093a578063ab7b499314610977578063abd017ea146109a05761036b565b806395d89b41116101a057806395d89b41146108925780639da44949146108bd578063a22cb465146108fa578063a70138c1146109235761036b565b8063791a2519146108155780638da5cb5b1461083e5780639387e6dd146108695761036b565b80633c2d4cd3116102a05780635944c7531161023e578063708b8a8011610218578063708b8a801461076f57806370a0823114610798578063715018a6146107d557806372b0d90c146107ec5761036b565b80635944c753146106e05780636352211e146107095780636f8b44b0146107465761036b565b806346fff98d1161027a57806346fff98d1461063c578063484b973c14610665578063552b818b1461068e57806355f804b3146106b75761036b565b80633c2d4cd3146105e05780633ccfd60b1461060957806342842e0e146106205761036b565b8063095ea7b31161030d57806323b872dd116102e757806323b872dd146105415780632a55205a1461055d5780632db115441461059b5780633549345e146105b75761036b565b8063095ea7b3146104cf57806312b36510146104eb57806318160ddd146105165761036b565b806306fdde031161034957806306fdde03146103ff57806307a440f51461042a578063081812fc1461046757806308702e09146104a45761036b565b806301ffc9a71461037057806304634d8d146103ad57806304811cfa146103d6575b600080fd5b34801561037c57600080fd5b506103976004803603810190610392919061407f565b610cd9565b6040516103a491906140c7565b60405180910390f35b3480156103b957600080fd5b506103d460048036038101906103cf9190614184565b610cfb565b005b3480156103e257600080fd5b506103fd60048036038101906103f89190614229565b610d5b565b005b34801561040b57600080fd5b50610414610f47565b6040516104219190614306565b60405180910390f35b34801561043657600080fd5b50610451600480360381019061044c919061435e565b610fd9565b60405161045e91906140c7565b60405180910390f35b34801561047357600080fd5b5061048e6004803603810190610489919061435e565b610ff6565b60405161049b919061439a565b60405180910390f35b3480156104b057600080fd5b506104b9611075565b6040516104c691906140c7565b60405180910390f35b6104e960048036038101906104e491906143b5565b611088565b005b3480156104f757600080fd5b50610500611104565b60405161050d91906140c7565b60405180910390f35b34801561052257600080fd5b5061052b611117565b6040516105389190614404565b60405180910390f35b61055b6004803603810190610556919061441f565b61112e565b005b34801561056957600080fd5b50610584600480360381019061057f9190614472565b611199565b6040516105929291906144b2565b60405180910390f35b6105b560048036038101906105b0919061435e565b611383565b005b3480156105c357600080fd5b506105de60048036038101906105d9919061435e565b611522565b005b3480156105ec57600080fd5b5061060760048036038101906106029190614229565b611534565b005b34801561061557600080fd5b5061061e611867565b005b61063a6004803603810190610635919061441f565b6118bf565b005b34801561064857600080fd5b50610663600480360381019061065e9190614507565b61192a565b005b34801561067157600080fd5b5061068c600480360381019061068791906143b5565b6119d7565b005b34801561069a57600080fd5b506106b560048036038101906106b0919061458a565b611a4a565b005b3480156106c357600080fd5b506106de60048036038101906106d9919061462d565b611b2c565b005b3480156106ec57600080fd5b506107076004803603810190610702919061467a565b611b4a565b005b34801561071557600080fd5b50610730600480360381019061072b919061435e565b611bac565b60405161073d919061439a565b60405180910390f35b34801561075257600080fd5b5061076d6004803603810190610768919061435e565b611bbe565b005b34801561077b57600080fd5b5061079660048036038101906107919190614507565b611bd0565b005b3480156107a457600080fd5b506107bf60048036038101906107ba91906146cd565b611bf5565b6040516107cc9190614404565b60405180910390f35b3480156107e157600080fd5b506107ea611cad565b005b3480156107f857600080fd5b50610813600480360381019061080e9190614738565b611cc1565b005b34801561082157600080fd5b5061083c6004803603810190610837919061435e565b611d13565b005b34801561084a57600080fd5b50610853611d25565b604051610860919061439a565b60405180910390f35b34801561087557600080fd5b50610890600480360381019061088b919061458a565b611d4e565b005b34801561089e57600080fd5b506108a7611dea565b6040516108b49190614306565b60405180910390f35b3480156108c957600080fd5b506108e460048036038101906108df919061435e565b611e7c565b6040516108f191906140c7565b60405180910390f35b34801561090657600080fd5b50610921600480360381019061091c9190614765565b611e99565b005b34801561092f57600080fd5b50610938611f15565b005b34801561094657600080fd5b50610961600480360381019061095c91906146cd565b611f3a565b60405161096e91906140c7565b60405180910390f35b34801561098357600080fd5b5061099e600480360381019061099991906146cd565b611f5a565b005b3480156109ac57600080fd5b506109b5611fa6565b6040516109c291906140c7565b60405180910390f35b3480156109d757600080fd5b506109f260048036038101906109ed9190614507565b611fb9565b005b610a0e6004803603810190610a0991906148d5565b611fde565b005b348015610a1c57600080fd5b50610a2561204b565b604051610a3291906140c7565b60405180910390f35b348015610a4757600080fd5b50610a626004803603810190610a5d9190614507565b61205e565b005b348015610a7057600080fd5b50610a79612083565b604051610a8691906140c7565b60405180910390f35b348015610a9b57600080fd5b50610ab66004803603810190610ab1919061435e565b612096565b604051610ac3919061439a565b60405180910390f35b348015610ad857600080fd5b50610af36004803603810190610aee9190614507565b6120c9565b005b348015610b0157600080fd5b50610b1c6004803603810190610b17919061435e565b6120ee565b604051610b299190614306565b60405180910390f35b610b4c6004803603810190610b47919061435e565b612261565b005b348015610b5a57600080fd5b50610b756004803603810190610b709190614229565b6124db565b005b348015610b8357600080fd5b50610b8c61280e565b604051610b999190614306565b60405180910390f35b348015610bae57600080fd5b50610bc96004803603810190610bc4919061435e565b61289c565b005b348015610bd757600080fd5b50610bf26004803603810190610bed919061435e565b6128ae565b005b348015610c0057600080fd5b50610c1b6004803603810190610c169190614958565b6128c0565b604051610c2891906140c7565b60405180910390f35b348015610c3d57600080fd5b50610c46612954565b604051610c53919061439a565b60405180910390f35b348015610c6857600080fd5b50610c836004803603810190610c7e91906146cd565b61297a565b005b348015610c9157600080fd5b50610cac6004803603810190610ca79190614998565b6129fd565b005b348015610cba57600080fd5b50610cc3612b33565b604051610cd091906140c7565b60405180910390f35b6000610ce482612b46565b80610cf45750610cf382612bd8565b5b9050919050565b610d03612c52565b6103e8816bffffffffffffffffffffffff161115610d4d576040517ff4df6ae500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d578282612cd0565b5050565b600b60029054906101000a900460ff16610da1576040517ffdeb6cc200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000808383905003610ddf576040517f39c8340e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b82829050811015610f3857610e18838383818110610e0157610e00614a19565b5b905060200201356013612e6590919063ffffffff16565b15610e4f576040517f4cd4ddb700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff1660176000858585818110610e7d57610e7c614a19565b5b90506020020135815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f00576040517f258b0b9e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f2d838383818110610f1657610f15614a19565b5b905060200201356013612ea190919063ffffffff16565b806001019050610de0565b610f423382612edf565b505050565b606060058054610f5690614a77565b80601f0160208091040260200160405190810160405280929190818152602001828054610f8290614a77565b8015610fcf5780601f10610fa457610100808354040283529160200191610fcf565b820191906000526020600020905b815481529060010190602001808311610fb257829003601f168201915b5050505050905090565b6000610fef826014612e6590919063ffffffff16565b9050919050565b60006110018261309b565b611037576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6009600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600b60029054906101000a900460ff1681565b81611092816130fa565b6110ae5761109e613101565b156110ad576110ac81613118565b5b5b601860019054906101000a900460ff16156110f5576040517fdb89e3f400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6110ff838361315c565b505050565b601860019054906101000a900460ff1681565b60006111216132a0565b6004546003540303905090565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146111885761116b336130fa565b61118757611177613101565b156111865761118533613118565b5b5b5b6111938484846132a9565b50505050565b6000806000600260008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff160361132e5760016040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b60006113386135cb565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866113649190614ad7565b61136e9190614b48565b90508160000151819350935050509250929050565b6000600e54141580156113975750600e5481115b156113ce576040517fadc57a4c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600c54141580156113f45750600c54816113e8611117565b6113f29190614b79565b115b1561142b576040517f8a164f6300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600d54141580156114525750600d548161144633611bf5565b6114509190614b79565b115b15611489576040517ff560625a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b60019054906101000a900460ff166114cf576040517fdd4e010600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600f546114dd9190614ad7565b3414611515576040517f327c6a5600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61151f3382612edf565b50565b61152a612c52565b8060108190555050565b600b60029054906101000a900460ff1661157a576040517ffdeb6cc200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008083839050036115b8576040517f39c8340e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b82829050811015611809576115f18383838181106115da576115d9614a19565b5b905060200201356011612e6590919063ffffffff16565b15611628576040517f4cd4ddb700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16736712545a0d1d8595d1045ea18f2f386ffca7ca9073ffffffffffffffffffffffffffffffffffffffff16636352211e85858581811061168257611681614a19565b5b905060200201356040518263ffffffff1660e01b81526004016116a59190614404565b602060405180830381865afa1580156116c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e69190614bc2565b73ffffffffffffffffffffffffffffffffffffffff1614611733576040517f59dc379f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b736712545a0d1d8595d1045ea18f2f386ffca7ca9073ffffffffffffffffffffffffffffffffffffffff166323b872dd3361dead86868681811061177a57611779614a19565b5b905060200201356040518463ffffffff1660e01b815260040161179f93929190614bef565b600060405180830381600087803b1580156117b957600080fd5b505af11580156117cd573d6000803e3d6000fd5b505050506117fe8383838181106117e7576117e6614a19565b5b905060200201356011612ea190919063ffffffff16565b8060010190506115b9565b60006001611815611117565b61181f9190614b79565b905061182b3383612edf565b60008190505b611839611117565b811161186057611853816014612ea190919063ffffffff16565b8080600101915050611831565b5050505050565b61186f612c52565b611877611d25565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156118bc573d6000803e3d6000fd5b50565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611919576118fc336130fa565b61191857611908613101565b156119175761191633613118565b5b5b5b6119248484846135d5565b50505050565b611932612c52565b600073ffffffffffffffffffffffffffffffffffffffff16601860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036119ba576040517fe048e71000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80601860026101000a81548160ff02191690831515021790555050565b6119df612c52565b6000600c5414158015611a055750600c54816119f9611117565b611a039190614b79565b115b15611a3c576040517f8a164f6300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611a468282612edf565b5050565b611a52612c52565b60008282905003611a8f576040517fa447fc5300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b82829050811015611b2757600160166000858585818110611ab657611ab5614a19565b5b9050602002016020810190611acb91906146cd565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550806001019050611a92565b505050565b611b34612c52565b818160199182611b45929190614ddd565b505050565b611b52612c52565b6103e8816bffffffffffffffffffffffff161115611b9c576040517ff4df6ae500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611ba78383836135f5565b505050565b6000611bb78261379c565b9050919050565b611bc6612c52565b80600c8190555050565b611bd8612c52565b80600b60026101000a81548160ff02191690831515021790555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c5c576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611cb5612c52565b611cbf6000613868565b565b611cc9612c52565b8073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611d0f573d6000803e3d6000fd5b5050565b611d1b612c52565b80600f8190555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611d56612c52565b60005b82829050811015611de55760166000848484818110611d7b57611d7a614a19565b5b9050602002016020810190611d9091906146cd565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549060ff0219169055806001019050611d59565b505050565b606060068054611df990614a77565b80601f0160208091040260200160405190810160405280929190818152602001828054611e2590614a77565b8015611e725780601f10611e4757610100808354040283529160200191611e72565b820191906000526020600020905b815481529060010190602001808311611e5557829003601f168201915b5050505050905090565b6000611e92826015612e6590919063ffffffff16565b9050919050565b81611ea3816130fa565b611ebf57611eaf613101565b15611ebe57611ebd81613118565b5b5b601860019054906101000a900460ff1615611f06576040517fdb89e3f400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611f10838361392c565b505050565b611f1d612c52565b6000601860016101000a81548160ff021916908315150217905550565b60166020528060005260406000206000915054906101000a900460ff1681565b611f62612c52565b80601860036101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b601860029054906101000a900460ff1681565b611fc1612c52565b80601860006101000a81548160ff02191690831515021790555050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146120385761201b336130fa565b61203757612027613101565b156120365761203533613118565b5b5b5b61204485858585613a37565b5050505050565b600b60019054906101000a900460ff1681565b612066612c52565b80600b60006101000a81548160ff02191690831515021790555050565b600b60009054906101000a900460ff1681565b60176020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6120d1612c52565b80600b60016101000a81548160ff02191690831515021790555050565b60606120f98261309b565b61212f576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612139613aaa565b905061214f836014612e6590919063ffffffff16565b156121a5576000815103612172576040518060200160405280600081525061219d565b8061217c84613b3c565b60405160200161218d929190614f35565b6040516020818303038152906040525b91505061225c565b6121b9836015612e6590919063ffffffff16565b1561220f5760008151036121dc5760405180602001604052806000815250612207565b806121e684613b3c565b6040516020016121f7929190614fb0565b6040516020818303038152906040525b91505061225c565b600081510361222d5760405180602001604052806000815250612258565b8061223784613b3c565b60405160200161224892919061502b565b6040516020818303038152906040525b9150505b919050565b6000600e54141580156122755750600e5481115b156122ac576040517fadc57a4c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600c54141580156122d25750600c54816122c6611117565b6122d09190614b79565b115b15612309576040517f8a164f6300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600d54141580156123305750600d548161232433611bf5565b61232e9190614b79565b115b15612367576040517ff560625a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b60009054906101000a900460ff166123ad576040517f178883df00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806010546123bb9190614ad7565b34146123f3576040517f327c6a5600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16612476576040517fec68639a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506124d83382612edf565b50565b600b60029054906101000a900460ff16612521576040517ffdeb6cc200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080838390500361255f576040517f39c8340e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b828290508110156127b05761259883838381811061258157612580614a19565b5b905060200201356012612e6590919063ffffffff16565b156125cf576040517f4cd4ddb700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16730eb82f969ff477adc95f7f17eb4099c6cbf1491273ffffffffffffffffffffffffffffffffffffffff16636352211e85858581811061262957612628614a19565b5b905060200201356040518263ffffffff1660e01b815260040161264c9190614404565b602060405180830381865afa158015612669573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061268d9190614bc2565b73ffffffffffffffffffffffffffffffffffffffff16146126da576040517f59dc379f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b730eb82f969ff477adc95f7f17eb4099c6cbf1491273ffffffffffffffffffffffffffffffffffffffff166323b872dd3361dead86868681811061272157612720614a19565b5b905060200201356040518463ffffffff1660e01b815260040161274693929190614bef565b600060405180830381600087803b15801561276057600080fd5b505af1158015612774573d6000803e3d6000fd5b505050506127a583838381811061278e5761278d614a19565b5b905060200201356012612ea190919063ffffffff16565b806001019050612560565b600060016127bc611117565b6127c69190614b79565b90506127d23383612edf565b60008190505b6127e0611117565b8111612807576127fa816015612ea190919063ffffffff16565b80806001019150506127d8565b5050505050565b6019805461281b90614a77565b80601f016020809104026020016040519081016040528092919081815260200182805461284790614a77565b80156128945780601f1061286957610100808354040283529160200191612894565b820191906000526020600020905b81548152906001019060200180831161287757829003601f168201915b505050505081565b6128a4612c52565b80600e8190555050565b6128b6612c52565b80600d8190555050565b6000600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b601860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b612982612c52565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036129f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129e8906150cc565b60405180910390fd5b6129fa81613868565b50565b612a05612c52565b60008484905003612a42576040517fa447fc5300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818190508484905014612a81576040517ffc4c603600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b84849050811015612b2c57828282818110612aa257612aa1614a19565b5b9050602002016020810190612ab791906146cd565b60176000878785818110612ace57612acd614a19565b5b90506020020135815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550806001019050612a84565b5050505050565b601860009054906101000a900460ff1681565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612ba157506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612bd15750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612c4b5750612c4a82613b8c565b5b9050919050565b612c5a613bf6565b73ffffffffffffffffffffffffffffffffffffffff16612c78611d25565b73ffffffffffffffffffffffffffffffffffffffff1614612cce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cc590615138565b60405180910390fd5b565b612cd86135cb565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612d36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d2d906151ca565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612da5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d9c90615236565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600160008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b600080600883901c9050600060ff84166001901b9050600081866000016000858152602001908152602001600020541614159250505092915050565b6000600882901c9050600060ff83166001901b9050808460000160008481526020019081526020016000206000828254179250508190555050505050565b6000600354905060008203612f20576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612f2d6000848385613bfe565b600160406001901b178202600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612fa483612f956000866000613d0e565b612f9e85613d36565b17613d46565b6007600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461304557808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460018101905061300a565b5060008203613080576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060038190555050506130966000848385613d71565b505050565b6000816130a66132a0565b111580156130b5575060035482105b80156130f3575060007c0100000000000000000000000000000000000000000000000000000000600760008581526020019081526020016000205416145b9050919050565b6000919050565b6000601860009054906101000a900460ff16905090565b69c617113400112233445560005230601a5280603a52600080604460166daaeb6d7670e522a718067333cd4e5afa613154573d6000803e3d6000fd5b6000603a5250565b600061316782611bac565b90508073ffffffffffffffffffffffffffffffffffffffff16613188613d77565b73ffffffffffffffffffffffffffffffffffffffff16146131eb576131b4816131af613d77565b6128c0565b6131ea576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826009600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001905090565b60006132b48261379c565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461331b576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061332784613d7f565b9150915061333d8187613338613d77565b613da6565b613389576133528661334d613d77565b6128c0565b613388576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036133ef576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6133fc8686866001613bfe565b801561340757600082555b600860008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506134d5856134b1888887613d0e565b7c020000000000000000000000000000000000000000000000000000000017613d46565b600760008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361355b5760006001850190506000600760008381526020019081526020016000205403613559576003548114613558578360076000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46135c38686866001613d71565b505050505050565b6000612710905090565b6135f083838360405180602001604052806000815250611fde565b505050565b6135fd6135cb565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111561365b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613652906151ca565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036136ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136c1906152a2565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff168152506002600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550905050505050565b600080829050806137ab6132a0565b11613831576003548110156138305760006007600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082160361382e575b600081036138245760076000836001900393508381526020019081526020016000205490506137fa565b8092505050613863565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80600a6000613939613d77565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166139e6613d77565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051613a2b91906140c7565b60405180910390a35050565b613a4284848461112e565b60008373ffffffffffffffffffffffffffffffffffffffff163b14613aa457613a6d84848484613dea565b613aa3576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b606060198054613ab990614a77565b80601f0160208091040260200160405190810160405280929190818152602001828054613ae590614a77565b8015613b325780601f10613b0757610100808354040283529160200191613b32565b820191906000526020600020905b815481529060010190602001808311613b1557829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b600115613b7757600184039350600a81066030018453600a8104905080613b55575b50828103602084039350808452505050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b601860019054906101000a900460ff168015613c475750600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614155b8015613c805750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b15613cb7576040517fdb89e3f400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613cc033613f3a565b15613cd657613cd184848484614004565b613d08565b6040517f4c80d8be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b60008060e883901c905060e8613d2586868461400a565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b60008060006009600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613e10613d77565b8786866040518563ffffffff1660e01b8152600401613e329493929190615317565b6020604051808303816000875af1925050508015613e6e57506040513d601f19601f82011682018060405250810190613e6b9190615378565b60015b613ee7573d8060008114613e9e576040519150601f19603f3d011682016040523d82523d6000602084013e613ea3565b606091505b506000815103613edf576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6000601860029054906101000a900460ff1615613ffa576000601860039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff1663e18bc08a846040518263ffffffff1660e01b8152600401613fb1919061439a565b602060405180830381865afa158015613fce573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ff291906153ba565b915050613fff565b600190505b919050565b50505050565b60009392505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61405c81614027565b811461406757600080fd5b50565b60008135905061407981614053565b92915050565b6000602082840312156140955761409461401d565b5b60006140a38482850161406a565b91505092915050565b60008115159050919050565b6140c1816140ac565b82525050565b60006020820190506140dc60008301846140b8565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061410d826140e2565b9050919050565b61411d81614102565b811461412857600080fd5b50565b60008135905061413a81614114565b92915050565b60006bffffffffffffffffffffffff82169050919050565b61416181614140565b811461416c57600080fd5b50565b60008135905061417e81614158565b92915050565b6000806040838503121561419b5761419a61401d565b5b60006141a98582860161412b565b92505060206141ba8582860161416f565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f8401126141e9576141e86141c4565b5b8235905067ffffffffffffffff811115614206576142056141c9565b5b602083019150836020820283011115614222576142216141ce565b5b9250929050565b600080602083850312156142405761423f61401d565b5b600083013567ffffffffffffffff81111561425e5761425d614022565b5b61426a858286016141d3565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b60005b838110156142b0578082015181840152602081019050614295565b60008484015250505050565b6000601f19601f8301169050919050565b60006142d882614276565b6142e28185614281565b93506142f2818560208601614292565b6142fb816142bc565b840191505092915050565b6000602082019050818103600083015261432081846142cd565b905092915050565b6000819050919050565b61433b81614328565b811461434657600080fd5b50565b60008135905061435881614332565b92915050565b6000602082840312156143745761437361401d565b5b600061438284828501614349565b91505092915050565b61439481614102565b82525050565b60006020820190506143af600083018461438b565b92915050565b600080604083850312156143cc576143cb61401d565b5b60006143da8582860161412b565b92505060206143eb85828601614349565b9150509250929050565b6143fe81614328565b82525050565b600060208201905061441960008301846143f5565b92915050565b6000806000606084860312156144385761443761401d565b5b60006144468682870161412b565b93505060206144578682870161412b565b925050604061446886828701614349565b9150509250925092565b600080604083850312156144895761448861401d565b5b600061449785828601614349565b92505060206144a885828601614349565b9150509250929050565b60006040820190506144c7600083018561438b565b6144d460208301846143f5565b9392505050565b6144e4816140ac565b81146144ef57600080fd5b50565b600081359050614501816144db565b92915050565b60006020828403121561451d5761451c61401d565b5b600061452b848285016144f2565b91505092915050565b60008083601f84011261454a576145496141c4565b5b8235905067ffffffffffffffff811115614567576145666141c9565b5b602083019150836020820283011115614583576145826141ce565b5b9250929050565b600080602083850312156145a1576145a061401d565b5b600083013567ffffffffffffffff8111156145bf576145be614022565b5b6145cb85828601614534565b92509250509250929050565b60008083601f8401126145ed576145ec6141c4565b5b8235905067ffffffffffffffff81111561460a576146096141c9565b5b602083019150836001820283011115614626576146256141ce565b5b9250929050565b600080602083850312156146445761464361401d565b5b600083013567ffffffffffffffff81111561466257614661614022565b5b61466e858286016145d7565b92509250509250929050565b6000806000606084860312156146935761469261401d565b5b60006146a186828701614349565b93505060206146b28682870161412b565b92505060406146c38682870161416f565b9150509250925092565b6000602082840312156146e3576146e261401d565b5b60006146f18482850161412b565b91505092915050565b6000614705826140e2565b9050919050565b614715816146fa565b811461472057600080fd5b50565b6000813590506147328161470c565b92915050565b60006020828403121561474e5761474d61401d565b5b600061475c84828501614723565b91505092915050565b6000806040838503121561477c5761477b61401d565b5b600061478a8582860161412b565b925050602061479b858286016144f2565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6147e2826142bc565b810181811067ffffffffffffffff82111715614801576148006147aa565b5b80604052505050565b6000614814614013565b905061482082826147d9565b919050565b600067ffffffffffffffff8211156148405761483f6147aa565b5b614849826142bc565b9050602081019050919050565b82818337600083830152505050565b600061487861487384614825565b61480a565b905082815260208101848484011115614894576148936147a5565b5b61489f848285614856565b509392505050565b600082601f8301126148bc576148bb6141c4565b5b81356148cc848260208601614865565b91505092915050565b600080600080608085870312156148ef576148ee61401d565b5b60006148fd8782880161412b565b945050602061490e8782880161412b565b935050604061491f87828801614349565b925050606085013567ffffffffffffffff8111156149405761493f614022565b5b61494c878288016148a7565b91505092959194509250565b6000806040838503121561496f5761496e61401d565b5b600061497d8582860161412b565b925050602061498e8582860161412b565b9150509250929050565b600080600080604085870312156149b2576149b161401d565b5b600085013567ffffffffffffffff8111156149d0576149cf614022565b5b6149dc878288016141d3565b9450945050602085013567ffffffffffffffff8111156149ff576149fe614022565b5b614a0b87828801614534565b925092505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614a8f57607f821691505b602082108103614aa257614aa1614a48565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614ae282614328565b9150614aed83614328565b9250828202614afb81614328565b91508282048414831517614b1257614b11614aa8565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614b5382614328565b9150614b5e83614328565b925082614b6e57614b6d614b19565b5b828204905092915050565b6000614b8482614328565b9150614b8f83614328565b9250828201905080821115614ba757614ba6614aa8565b5b92915050565b600081519050614bbc81614114565b92915050565b600060208284031215614bd857614bd761401d565b5b6000614be684828501614bad565b91505092915050565b6000606082019050614c04600083018661438b565b614c11602083018561438b565b614c1e60408301846143f5565b949350505050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614c937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614c56565b614c9d8683614c56565b95508019841693508086168417925050509392505050565b6000819050919050565b6000614cda614cd5614cd084614328565b614cb5565b614328565b9050919050565b6000819050919050565b614cf483614cbf565b614d08614d0082614ce1565b848454614c63565b825550505050565b600090565b614d1d614d10565b614d28818484614ceb565b505050565b5b81811015614d4c57614d41600082614d15565b600181019050614d2e565b5050565b601f821115614d9157614d6281614c31565b614d6b84614c46565b81016020851015614d7a578190505b614d8e614d8685614c46565b830182614d2d565b50505b505050565b600082821c905092915050565b6000614db460001984600802614d96565b1980831691505092915050565b6000614dcd8383614da3565b9150826002028217905092915050565b614de78383614c26565b67ffffffffffffffff811115614e0057614dff6147aa565b5b614e0a8254614a77565b614e15828285614d50565b6000601f831160018114614e445760008415614e32578287013590505b614e3c8582614dc1565b865550614ea4565b601f198416614e5286614c31565b60005b82811015614e7a57848901358255600182019150602085019450602081019050614e55565b86831015614e975784890135614e93601f891682614da3565b8355505b6001600288020188555050505b50505050505050565b600081905092915050565b6000614ec382614276565b614ecd8185614ead565b9350614edd818560208601614292565b80840191505092915050565b7f2f74696572312f00000000000000000000000000000000000000000000000000600082015250565b6000614f1f600783614ead565b9150614f2a82614ee9565b600782019050919050565b6000614f418285614eb8565b9150614f4c82614f12565b9150614f588284614eb8565b91508190509392505050565b7f2f74696572322f00000000000000000000000000000000000000000000000000600082015250565b6000614f9a600783614ead565b9150614fa582614f64565b600782019050919050565b6000614fbc8285614eb8565b9150614fc782614f8d565b9150614fd38284614eb8565b91508190509392505050565b7f2f74696572332f00000000000000000000000000000000000000000000000000600082015250565b6000615015600783614ead565b915061502082614fdf565b600782019050919050565b60006150378285614eb8565b915061504282615008565b915061504e8284614eb8565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006150b6602683614281565b91506150c18261505a565b604082019050919050565b600060208201905081810360008301526150e5816150a9565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615122602083614281565b915061512d826150ec565b602082019050919050565b6000602082019050818103600083015261515181615115565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b60006151b4602a83614281565b91506151bf82615158565b604082019050919050565b600060208201905081810360008301526151e3816151a7565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000615220601983614281565b915061522b826151ea565b602082019050919050565b6000602082019050818103600083015261524f81615213565b9050919050565b7f455243323938313a20496e76616c696420706172616d65746572730000000000600082015250565b600061528c601b83614281565b915061529782615256565b602082019050919050565b600060208201905081810360008301526152bb8161527f565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006152e9826152c2565b6152f381856152cd565b9350615303818560208601614292565b61530c816142bc565b840191505092915050565b600060808201905061532c600083018761438b565b615339602083018661438b565b61534660408301856143f5565b818103606083015261535881846152de565b905095945050505050565b60008151905061537281614053565b92915050565b60006020828403121561538e5761538d61401d565b5b600061539c84828501615363565b91505092915050565b6000815190506153b4816144db565b92915050565b6000602082840312156153d0576153cf61401d565b5b60006153de848285016153a5565b9150509291505056fea2646970667358221220123aa6eaa634f8a90f336c0fc5f4de0b3865553e53310a4bdf2e5148674eafda64736f6c63430008120033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

OVERVIEW

Accumulate XP, claim rewards, and level up your trading game through our suite of NFT Data Intelligence products powered by $ME.

Validator Index Block Amount
View All Withdrawals

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

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