ETH Price: $3,475.53 (+0.80%)

Token

Majestic Ape (MAPE)
 

Overview

Max Total Supply

777 MAPE

Holders

453

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 MAPE
0x79e04731635f4beb1dfb5c926916ba1ecbfff91f
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
MajesticApe

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : hipe.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.16;

import "erc721a/contracts/extensions/ERC721AQueryable.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./OperatorFilter/DefaultOperatorFilterer.sol";

error Reverts(uint8 code);

contract MajesticApe is 
    ERC721AQueryable,
    Ownable,
    ERC2981,
    DefaultOperatorFilterer
{

    bool public isRevealed = false;
    uint256 public collectionSize;
    uint256 public maxBatchSize;
    uint256 public amountForDevs;
    uint256 private withdrawnSoFar;

    struct WhitelistSaleConfig {
    uint32 startTime;
    uint64 price;
    uint64 maxPerAddress;
    }

    WhitelistSaleConfig public whitelistSaleConfig;

    struct PublicSaleConfig {
        uint32 startTime;
        uint64 price;
        uint64 maxPerAddress;
    }

    PublicSaleConfig public publicSaleConfig;

    string private _baseTokenURI;
    string private _defaultTokenURI;

    event PausedX();
    event UnpausedX();
    event WhitelistSaleSetup(uint32 whitelistSaleStartTime_, uint64 whitelistSalePriceWei_, uint64 maxPerAddressDuringWhitelistSaleMint);
    event WhiteListMint(address indexed to, uint256 quantity, uint256 totalSupply);
    event PublicSaleActivated(uint32 publicSaleStartTime_, uint64 publicSalePriceWei_, uint64 maxPerAddressDuringPublicSaleMint);
    event Mint(address indexed to, uint256 quantity, uint256 totalSupply);
    event RevealSet(bool status);
    event BaseUriSet(string baseTokenUri_);
    event DefaultTokenUriSet(string DefaultTokenUri_);
    event CollectionSizeSet(uint256 size_);
    event FundsWithdrawn(uint256 toDonation, uint256 txToThirty, uint256 txToOwner);

    constructor(
        uint256 collectionSize_,
        uint256 maxBatchSize_,
        uint256 amountForDevs_
    ) ERC721A("Majestic Ape", "MAPE") {
        collectionSize = collectionSize_;
        maxBatchSize = maxBatchSize_;
        amountForDevs = amountForDevs_;
    }

    modifier callerIsUser() {
        if (tx.origin != msg.sender) {
            revert Reverts(1);
        }
        _;
    }

    function refundIfOver(uint256 price) private {
        if (msg.value < price) {
            revert Reverts(2);
        }

        if (msg.value > price) {
            payable(msg.sender).transfer(msg.value - price);
        }
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(IERC721A, ERC721A, ERC2981)
        returns (bool)
    {
        return
            ERC721A.supportsInterface(interfaceId) ||
            ERC2981.supportsInterface(interfaceId);  
    }

    function setupWhitelistSale(
        uint32 whitelistSaleStartTime,
        uint64 whitelistSalePriceWei,
        uint64 maxPerAddressDuringWhitelistSaleMint
    ) external onlyOwner {
        whitelistSaleConfig.startTime = whitelistSaleStartTime;
        whitelistSaleConfig.price = whitelistSalePriceWei;
        whitelistSaleConfig.maxPerAddress = maxPerAddressDuringWhitelistSaleMint;
        emit WhitelistSaleSetup(whitelistSaleConfig.startTime, whitelistSaleConfig.price, whitelistSaleConfig.maxPerAddress);
    }
        
    function whitelistSaleMint(uint64 quantity)
        external
        payable
        callerIsUser
    {
        uint256 price = uint256(whitelistSaleConfig.price);
        uint256 saleStartTime = uint256(whitelistSaleConfig.startTime);
        uint64 maxPerAddress = whitelistSaleConfig.maxPerAddress;

        // if (price == 0) {
        //     revert Reverts(3);
        // }
        if (saleStartTime == 0 || block.timestamp < saleStartTime) {
            revert Reverts(3);
        }

        if (totalSupply() + quantity > collectionSize) {
            revert Reverts(4);
        }

        if (_getAux(_msgSender()) + quantity > maxPerAddress) {
            revert Reverts(5);
        }

        _safeMint(_msgSender(), quantity);
        _setAux(_msgSender(), _getAux(_msgSender()) + quantity); 
        refundIfOver(price * quantity);
        emit WhiteListMint(_msgSender(), quantity, totalSupply());
    }

    function devMint(uint256 quantity) external onlyOwner {
        if (quantity % maxBatchSize != 0) {
            // revert IncompatibleBatchSize();
            revert Reverts(6);
        }
        
        uint256 numChunks = quantity / maxBatchSize;
        for(uint256 i = 0; i < numChunks; i++) {
        _safeMint(msg.sender, maxBatchSize);
        }
    }
    
    function endWhitelistSaleAndSetupPublicSale(
        uint32 publicSaleStartTime,
        uint64 publicSalePriceWei,
        uint64 maxPerAddressDuringPublicSaleMint
    ) external onlyOwner {
        whitelistSaleConfig.startTime = 0;

        publicSaleConfig.startTime = publicSaleStartTime;
        publicSaleConfig.price = publicSalePriceWei;
        publicSaleConfig.maxPerAddress = maxPerAddressDuringPublicSaleMint;
        emit PublicSaleActivated(publicSaleConfig.startTime, publicSaleConfig.price, publicSaleConfig.maxPerAddress);
    }
    

    function publicSaleMint(uint64 quantity)
        external
        payable
        callerIsUser
        //nonReentrant
    {
        uint256 price = uint256(publicSaleConfig.price);
        uint256 startTime = uint256(publicSaleConfig.startTime);
        uint64 maxPerAddress = publicSaleConfig.maxPerAddress;

        if (price == 0) {
            revert Reverts(7);
        }
        if (startTime == 0 || block.timestamp < startTime) {
            revert Reverts(7);
        }
        
        if (totalSupply() + quantity > collectionSize) {
            revert Reverts(4);
        }

        if (_numberMinted(_msgSender()) - _getAux(_msgSender()) + quantity > maxPerAddress) {
            revert Reverts(8);
        }
        
        _safeMint(msg.sender, quantity);
        refundIfOver(price * quantity);
        emit Mint(msg.sender, quantity, totalSupply());
    }
        
    function setIsRevealed(bool val) external onlyOwner {
        isRevealed = val;
        emit RevealSet(isRevealed);
    }

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

    function tokenURI(uint256 tokenId)
        public
        view
        override(ERC721A, IERC721A)
        returns (string memory)
    {
        if (isRevealed) {
        return super.tokenURI(tokenId);
        }

        require(tokenId <= totalSupply(), "token not exist");
        return _defaultTokenURI;
    }

    function setBaseURI(string calldata baseURI) external onlyOwner {
        _baseTokenURI = baseURI;
        emit BaseUriSet(_baseTokenURI);
    }
        
    function setDefaultTokenURI(string calldata uri) external onlyOwner {
        _defaultTokenURI = uri; 
        emit DefaultTokenUriSet(_defaultTokenURI);
    }

    function setCollectionSize(uint256 size) external onlyOwner {
        collectionSize = size;
        emit CollectionSizeSet(collectionSize);
    }

    function getContractStatus() external view returns (uint32, uint64, uint64, uint32, uint64, uint64) {
        return (whitelistSaleConfig.startTime, whitelistSaleConfig.price, whitelistSaleConfig.maxPerAddress, publicSaleConfig.startTime, publicSaleConfig.price, publicSaleConfig.maxPerAddress);
    }

    function getTokenInfo() external view returns (string memory, string memory) {
        return (_baseTokenURI, _defaultTokenURI);
    }

    function totalFunds() external view returns (uint256, uint256) {
        return (address(this).balance, withdrawnSoFar);
    }

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

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

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

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

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

    function withdrawMoney() external onlyOwner {
        address  donationWallet = 0x597B15dBEa7322A3fd1E51E28DAF539380305C4A;
        address  developersWallet = 0xdB0CC38DAC5A1494478cF4618B8Ff69Af64742DB;
            
        uint256 donationAmount = address(this).balance * 1/100;
        uint256 developersAmount = address(this).balance * 30/100;
            
        payable(donationWallet).transfer(donationAmount);      
        payable(developersWallet).transfer(developersAmount);
            
        uint256 balanceB4Tx = address(this).balance;
        payable(msg.sender).transfer(address(this).balance);
        withdrawnSoFar += donationAmount + developersAmount + balanceB4Tx;
        emit FundsWithdrawn(donationAmount, developersAmount, balanceB4Tx);
    }

}

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

import {OperatorFilterer} from "./OperatorFilterer.sol";

abstract contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}

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

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

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

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

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

File 4 of 14 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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 14 : ERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

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

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] calldata tokenIds)
        external
        view
        virtual
        override
        returns (TokenOwnership[] memory)
    {
        unchecked {
            uint256 tokenIdsLength = tokenIds.length;
            TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength);
            for (uint256 i; i != tokenIdsLength; ++i) {
                ownerships[i] = explicitOwnershipOf(tokenIds[i]);
            }
            return ownerships;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start < stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view virtual override returns (uint256[] memory) {
        unchecked {
            if (start >= stop) revert InvalidQueryRange();
            uint256 tokenIdsIdx;
            uint256 stopLimit = _nextTokenId();
            // Set `start = max(start, _startTokenId())`.
            if (start < _startTokenId()) {
                start = _startTokenId();
            }
            // Set `stop = min(stop, stopLimit)`.
            if (stop > stopLimit) {
                stop = stopLimit;
            }
            uint256 tokenIdsMaxLength = balanceOf(owner);
            // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`,
            // to cater for cases where `balanceOf(owner)` is too big.
            if (start < stop) {
                uint256 rangeLength = stop - start;
                if (rangeLength < tokenIdsMaxLength) {
                    tokenIdsMaxLength = rangeLength;
                }
            } else {
                tokenIdsMaxLength = 0;
            }
            uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength);
            if (tokenIdsMaxLength == 0) {
                return tokenIds;
            }
            // We need to call `explicitOwnershipOf(start)`,
            // because the slot at `start` may not be initialized.
            TokenOwnership memory ownership = explicitOwnershipOf(start);
            address currOwnershipAddr;
            // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`.
            // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range.
            if (!ownership.burned) {
                currOwnershipAddr = ownership.addr;
            }
            for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) {
                ownership = _ownershipAt(i);
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            // Downsize the array to fit.
            assembly {
                mstore(tokenIds, tokenIdsIdx)
            }
            return tokenIds;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(`totalSupply`) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K collections should be fine).
     */
    function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) {
        unchecked {
            uint256 tokenIdsIdx;
            address currOwnershipAddr;
            uint256 tokenIdsLength = balanceOf(owner);
            uint256[] memory tokenIds = new uint256[](tokenIdsLength);
            TokenOwnership memory ownership;
            for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) {
                ownership = _ownershipAt(i);
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            return tokenIds;
        }
    }
}

File 6 of 14 : 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 14 : IERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../IERC721A.sol';

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

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

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

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

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

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

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";

/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 */
abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

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

    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

File 9 of 14 : 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 10 of 14 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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 11 of 14 : 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 12 of 14 : 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 13 of 14 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}

File 14 of 14 : 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":[{"internalType":"uint256","name":"collectionSize_","type":"uint256"},{"internalType":"uint256","name":"maxBatchSize_","type":"uint256"},{"internalType":"uint256","name":"amountForDevs_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[{"internalType":"uint8","name":"code","type":"uint8"}],"name":"Reverts","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"baseTokenUri_","type":"string"}],"name":"BaseUriSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"size_","type":"uint256"}],"name":"CollectionSizeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"DefaultTokenUri_","type":"string"}],"name":"DefaultTokenUriSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"toDonation","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"txToThirty","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"txToOwner","type":"uint256"}],"name":"FundsWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalSupply","type":"uint256"}],"name":"Mint","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":[],"name":"PausedX","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint32","name":"publicSaleStartTime_","type":"uint32"},{"indexed":false,"internalType":"uint64","name":"publicSalePriceWei_","type":"uint64"},{"indexed":false,"internalType":"uint64","name":"maxPerAddressDuringPublicSaleMint","type":"uint64"}],"name":"PublicSaleActivated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"RevealSet","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"},{"anonymous":false,"inputs":[],"name":"UnpausedX","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalSupply","type":"uint256"}],"name":"WhiteListMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint32","name":"whitelistSaleStartTime_","type":"uint32"},{"indexed":false,"internalType":"uint64","name":"whitelistSalePriceWei_","type":"uint64"},{"indexed":false,"internalType":"uint64","name":"maxPerAddressDuringWhitelistSaleMint","type":"uint64"}],"name":"WhitelistSaleSetup","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"amountForDevs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"collectionSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"publicSaleStartTime","type":"uint32"},{"internalType":"uint64","name":"publicSalePriceWei","type":"uint64"},{"internalType":"uint64","name":"maxPerAddressDuringPublicSaleMint","type":"uint64"}],"name":"endWhitelistSaleAndSetupPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getContractStatus","outputs":[{"internalType":"uint32","name":"","type":"uint32"},{"internalType":"uint64","name":"","type":"uint64"},{"internalType":"uint64","name":"","type":"uint64"},{"internalType":"uint32","name":"","type":"uint32"},{"internalType":"uint64","name":"","type":"uint64"},{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenInfo","outputs":[{"internalType":"string","name":"","type":"string"},{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBatchSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleConfig","outputs":[{"internalType":"uint32","name":"startTime","type":"uint32"},{"internalType":"uint64","name":"price","type":"uint64"},{"internalType":"uint64","name":"maxPerAddress","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"quantity","type":"uint64"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","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":"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":"uint256","name":"size","type":"uint256"}],"name":"setCollectionSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setDefaultTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"val","type":"bool"}],"name":"setIsRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"whitelistSaleStartTime","type":"uint32"},{"internalType":"uint64","name":"whitelistSalePriceWei","type":"uint64"},{"internalType":"uint64","name":"maxPerAddressDuringWhitelistSaleMint","type":"uint64"}],"name":"setupWhitelistSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFunds","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistSaleConfig","outputs":[{"internalType":"uint32","name":"startTime","type":"uint32"},{"internalType":"uint64","name":"price","type":"uint64"},{"internalType":"uint64","name":"maxPerAddress","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"quantity","type":"uint64"}],"name":"whitelistSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdrawMoney","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000600b60006101000a81548160ff0219169083151502179055503480156200002c57600080fd5b5060405162005b6338038062005b63833981810160405281019062000052919062000459565b733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600c81526020017f4d616a65737469632041706500000000000000000000000000000000000000008152506040518060400160405280600481526020017f4d415045000000000000000000000000000000000000000000000000000000008152508160029081620000e6919062000725565b508060039081620000f8919062000725565b50620001096200034660201b60201c565b600081905550505062000131620001256200034b60201b60201c565b6200035360201b60201c565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b111562000326578015620001ec576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b8152600401620001b292919062000851565b600060405180830381600087803b158015620001cd57600080fd5b505af1158015620001e2573d6000803e3d6000fd5b5050505062000325565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614620002a6576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b81526004016200026c92919062000851565b600060405180830381600087803b1580156200028757600080fd5b505af11580156200029c573d6000803e3d6000fd5b5050505062000324565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b8152600401620002ef91906200087e565b600060405180830381600087803b1580156200030a57600080fd5b505af11580156200031f573d6000803e3d6000fd5b505050505b5b5b505082600c8190555081600d8190555080600e819055505050506200089b565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b6000819050919050565b62000433816200041e565b81146200043f57600080fd5b50565b600081519050620004538162000428565b92915050565b60008060006060848603121562000475576200047462000419565b5b6000620004858682870162000442565b9350506020620004988682870162000442565b9250506040620004ab8682870162000442565b9150509250925092565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200053757607f821691505b6020821081036200054d576200054c620004ef565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620005b77fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000578565b620005c3868362000578565b95508019841693508086168417925050509392505050565b6000819050919050565b60006200060662000600620005fa846200041e565b620005db565b6200041e565b9050919050565b6000819050919050565b6200062283620005e5565b6200063a62000631826200060d565b84845462000585565b825550505050565b600090565b6200065162000642565b6200065e81848462000617565b505050565b5b8181101562000686576200067a60008262000647565b60018101905062000664565b5050565b601f821115620006d5576200069f8162000553565b620006aa8462000568565b81016020851015620006ba578190505b620006d2620006c98562000568565b83018262000663565b50505b505050565b600082821c905092915050565b6000620006fa60001984600802620006da565b1980831691505092915050565b6000620007158383620006e7565b9150826002028217905092915050565b6200073082620004b5565b67ffffffffffffffff8111156200074c576200074b620004c0565b5b6200075882546200051e565b620007658282856200068a565b600060209050601f8311600181146200079d576000841562000788578287015190505b62000794858262000707565b86555062000804565b601f198416620007ad8662000553565b60005b82811015620007d757848901518255600182019150602085019450602081019050620007b0565b86831015620007f75784890151620007f3601f891682620006e7565b8355505b6001600288020188555050505b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000839826200080c565b9050919050565b6200084b816200082c565b82525050565b600060408201905062000868600083018562000840565b62000877602083018462000840565b9392505050565b600060208201905062000895600083018462000840565b92915050565b6152b880620008ab6000396000f3fe6080604052600436106102515760003560e01c80638462151c11610139578063aca8ffe7116100b6578063c7fcca6f1161007a578063c7fcca6f1461088f578063c87b56dd146108b8578063d63dd701146108f5578063e985e9c514610911578063f2fde38b1461094e578063fbe1aa511461097757610251565b8063aca8ffe7146107c1578063b88d4fde146107ea578063c032846b14610806578063c0dfc1e914610836578063c23dc68f1461085257610251565b8063a125c824116100fd578063a125c824146106ff578063a22cb46514610728578063a3fd2c4414610751578063abb1dc441461077e578063ac446002146107aa57610251565b80638462151c146106035780638da5cb5b1461064057806395d89b411461066b578063968ed6001461069657806399a2557a146106c257610251565b806341f43434116101d257806355f804b31161019657806355f804b3146104df5780635bbb2177146105085780636352211e14610545578063656cf9181461058257806370a08231146105af578063715018a6146105ec57610251565b806341f434341461041957806342842e0e1461044457806345c0f5331461046057806349a5980a1461048b57806354214f69146104b457610251565b806323b872dd1161021957806323b872dd146103425780632913daa01461035e5780632a55205a14610389578063375a069a146103c7578063419041d8146103f057610251565b806301ffc9a71461025657806306fdde0314610293578063081812fc146102be578063095ea7b3146102fb57806318160ddd14610317575b600080fd5b34801561026257600080fd5b5061027d60048036038101906102789190613990565b6109a2565b60405161028a91906139d8565b60405180910390f35b34801561029f57600080fd5b506102a86109c4565b6040516102b59190613a83565b60405180910390f35b3480156102ca57600080fd5b506102e560048036038101906102e09190613adb565b610a56565b6040516102f29190613b49565b60405180910390f35b61031560048036038101906103109190613b90565b610ad5565b005b34801561032357600080fd5b5061032c610aee565b6040516103399190613bdf565b60405180910390f35b61035c60048036038101906103579190613bfa565b610b05565b005b34801561036a57600080fd5b50610373610b54565b6040516103809190613bdf565b60405180910390f35b34801561039557600080fd5b506103b060048036038101906103ab9190613c4d565b610b5a565b6040516103be929190613c8d565b60405180910390f35b3480156103d357600080fd5b506103ee60048036038101906103e99190613adb565b610d44565b005b3480156103fc57600080fd5b5061041760048036038101906104129190613d32565b610de0565b005b34801561042557600080fd5b5061042e610eeb565b60405161043b9190613de4565b60405180910390f35b61045e60048036038101906104599190613bfa565b610efd565b005b34801561046c57600080fd5b50610475610f4c565b6040516104829190613bdf565b60405180910390f35b34801561049757600080fd5b506104b260048036038101906104ad9190613e2b565b610f52565b005b3480156104c057600080fd5b506104c9610fbd565b6040516104d691906139d8565b60405180910390f35b3480156104eb57600080fd5b5061050660048036038101906105019190613ebd565b610fd0565b005b34801561051457600080fd5b5061052f600480360381019061052a9190613f60565b611026565b60405161053c91906140fc565b60405180910390f35b34801561055157600080fd5b5061056c60048036038101906105679190613adb565b6110e9565b6040516105799190613b49565b60405180910390f35b34801561058e57600080fd5b506105976110fb565b6040516105a69392919061413c565b60405180910390f35b3480156105bb57600080fd5b506105d660048036038101906105d19190614173565b61114b565b6040516105e39190613bdf565b60405180910390f35b3480156105f857600080fd5b50610601611203565b005b34801561060f57600080fd5b5061062a60048036038101906106259190614173565b611217565b604051610637919061425e565b60405180910390f35b34801561064c57600080fd5b5061065561135a565b6040516106629190613b49565b60405180910390f35b34801561067757600080fd5b50610680611384565b60405161068d9190613a83565b60405180910390f35b3480156106a257600080fd5b506106ab611416565b6040516106b9929190614280565b60405180910390f35b3480156106ce57600080fd5b506106e960048036038101906106e491906142a9565b611425565b6040516106f6919061425e565b60405180910390f35b34801561070b57600080fd5b5061072660048036038101906107219190613ebd565b611631565b005b34801561073457600080fd5b5061074f600480360381019061074a91906142fc565b611687565b005b34801561075d57600080fd5b506107666116a0565b6040516107759392919061413c565b60405180910390f35b34801561078a57600080fd5b506107936116f0565b6040516107a192919061433c565b60405180910390f35b3480156107b657600080fd5b506107bf611817565b005b3480156107cd57600080fd5b506107e860048036038101906107e39190613adb565b6119d6565b005b61080460048036038101906107ff91906144a3565b611a21565b005b34801561081257600080fd5b5061081b611a72565b60405161082d96959493929190614526565b60405180910390f35b610850600480360381019061084b9190614587565b611b23565b005b34801561085e57600080fd5b5061087960048036038101906108749190613adb565b611deb565b6040516108869190614609565b60405180910390f35b34801561089b57600080fd5b506108b660048036038101906108b19190613d32565b611e55565b005b3480156108c457600080fd5b506108df60048036038101906108da9190613adb565b611f85565b6040516108ec9190613a83565b60405180910390f35b61090f600480360381019061090a9190614587565b612089565b005b34801561091d57600080fd5b5061093860048036038101906109339190614624565b612382565b60405161094591906139d8565b60405180910390f35b34801561095a57600080fd5b5061097560048036038101906109709190614173565b612416565b005b34801561098357600080fd5b5061098c612499565b6040516109999190613bdf565b60405180910390f35b60006109ad8261249f565b806109bd57506109bc82612531565b5b9050919050565b6060600280546109d390614693565b80601f01602080910402602001604051908101604052809291908181526020018280546109ff90614693565b8015610a4c5780601f10610a2157610100808354040283529160200191610a4c565b820191906000526020600020905b815481529060010190602001808311610a2f57829003601f168201915b5050505050905090565b6000610a61826125ab565b610a97576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610adf8161260a565b610ae98383612707565b505050565b6000610af861284b565b6001546000540303905090565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b4357610b423361260a565b5b610b4e848484612850565b50505050565b600d5481565b6000806000600a60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610cef5760096040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610cf9612b72565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610d2591906146f3565b610d2f919061477c565b90508160000151819350935050509250929050565b610d4c612b7c565b6000600d5482610d5c91906147ad565b14610d9f5760066040517f804388c0000000000000000000000000000000000000000000000000000000008152600401610d969190614826565b60405180910390fd5b6000600d5482610daf919061477c565b905060005b81811015610ddb57610dc833600d54612bfa565b8080610dd390614841565b915050610db4565b505050565b610de8612b7c565b82601060000160006101000a81548163ffffffff021916908363ffffffff16021790555081601060000160046101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550806010600001600c6101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055507ffc1ecc6749c0ed1ffc33ac58e7b26230d1a035c9dae817bd6e38cfb24fa8644b601060000160009054906101000a900463ffffffff16601060000160049054906101000a900467ffffffffffffffff166010600001600c9054906101000a900467ffffffffffffffff16604051610ede9392919061413c565b60405180910390a1505050565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f3b57610f3a3361260a565b5b610f46848484612c18565b50505050565b600c5481565b610f5a612b7c565b80600b60006101000a81548160ff0219169083151502179055507fc55565c1dcceed7a236384f279af4f95930442d66962d8d245a73a1b85e3c9a1600b60009054906101000a900460ff16604051610fb291906139d8565b60405180910390a150565b600b60009054906101000a900460ff1681565b610fd8612b7c565b818160129182610fe9929190614a36565b507fec7aa76ee322bd9ff6b9f70d62a749a4bfadba7751d8b4bb089b22ff0ed09bd2601260405161101a9190614b8a565b60405180910390a15050565b6060600083839050905060008167ffffffffffffffff81111561104c5761104b614378565b5b60405190808252806020026020018201604052801561108557816020015b6110726138d5565b81526020019060019003908161106a5790505b50905060005b8281146110dd576110b48686838181106110a8576110a7614bac565b5b90506020020135611deb565b8282815181106110c7576110c6614bac565b5b602002602001018190525080600101905061108b565b50809250505092915050565b60006110f482612c38565b9050919050565b60108060000160009054906101000a900463ffffffff16908060000160049054906101000a900467ffffffffffffffff169080600001600c9054906101000a900467ffffffffffffffff16905083565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036111b2576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61120b612b7c565b6112156000612d04565b565b606060008060006112278561114b565b905060008167ffffffffffffffff81111561124557611244614378565b5b6040519080825280602002602001820160405280156112735781602001602082028036833780820191505090505b50905061127e6138d5565b600061128861284b565b90505b83861461134c5761129b81612dca565b9150816040015161134157600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff16146112e657816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611340578083878060010198508151811061133357611332614bac565b5b6020026020010181815250505b5b80600101905061128b565b508195505050505050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606003805461139390614693565b80601f01602080910402602001604051908101604052809291908181526020018280546113bf90614693565b801561140c5780601f106113e15761010080835404028352916020019161140c565b820191906000526020600020905b8154815290600101906020018083116113ef57829003601f168201915b5050505050905090565b60008047600f54915091509091565b6060818310611460576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061146b612df5565b905061147561284b565b8510156114875761148461284b565b94505b80841115611493578093505b600061149e8761114b565b9050848610156114c15760008686039050818110156114bb578091505b506114c6565b600090505b60008167ffffffffffffffff8111156114e2576114e1614378565b5b6040519080825280602002602001820160405280156115105781602001602082028036833780820191505090505b50905060008203611527578094505050505061162a565b600061153288611deb565b90506000816040015161154757816000015190505b60008990505b88811415801561155d5750848714155b1561161c5761156b81612dca565b9250826040015161161157600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff16146115b657826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611610578084888060010199508151811061160357611602614bac565b5b6020026020010181815250505b5b80600101905061154d565b508583528296505050505050505b9392505050565b611639612b7c565b81816013918261164a929190614a36565b507fa36fff1c6478d9cebacb70685906c5f6340c1ef345712a19ad41a5fe7d2bcbee601360405161167b9190614b8a565b60405180910390a15050565b816116918161260a565b61169b8383612dfe565b505050565b60118060000160009054906101000a900463ffffffff16908060000160049054906101000a900467ffffffffffffffff169080600001600c9054906101000a900467ffffffffffffffff16905083565b6060806012601381805461170390614693565b80601f016020809104026020016040519081016040528092919081815260200182805461172f90614693565b801561177c5780601f106117515761010080835404028352916020019161177c565b820191906000526020600020905b81548152906001019060200180831161175f57829003601f168201915b5050505050915080805461178f90614693565b80601f01602080910402602001604051908101604052809291908181526020018280546117bb90614693565b80156118085780601f106117dd57610100808354040283529160200191611808565b820191906000526020600020905b8154815290600101906020018083116117eb57829003601f168201915b50505050509050915091509091565b61181f612b7c565b600073597b15dbea7322a3fd1e51e28daf539380305c4a9050600073db0cc38dac5a1494478cf4618b8ff69af64742db90506000606460014761186291906146f3565b61186c919061477c565b905060006064601e4761187f91906146f3565b611889919061477c565b90508373ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f193505050501580156118d1573d6000803e3d6000fd5b508273ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611918573d6000803e3d6000fd5b5060004790503373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611964573d6000803e3d6000fd5b508082846119729190614bdb565b61197c9190614bdb565b600f600082825461198d9190614bdb565b925050819055507fd5550c71ca14cc44783a664cd798ecb70dcefed6b3cfdf323041ce6d221f2d728383836040516119c793929190614c0f565b60405180910390a15050505050565b6119de612b7c565b80600c819055507fe20e127115d125ee9e5585a8fb1b88c761a79582a054e18d8997d22c147e9fa7600c54604051611a169190613bdf565b60405180910390a150565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611a5f57611a5e3361260a565b5b611a6b85858585612f09565b5050505050565b600080600080600080601060000160009054906101000a900463ffffffff16601060000160049054906101000a900467ffffffffffffffff166010600001600c9054906101000a900467ffffffffffffffff16601160000160009054906101000a900463ffffffff16601160000160049054906101000a900467ffffffffffffffff166011600001600c9054906101000a900467ffffffffffffffff16955095509550955095509550909192939495565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611b945760016040517f804388c0000000000000000000000000000000000000000000000000000000008152600401611b8b9190614c81565b60405180910390fd5b6000601060000160049054906101000a900467ffffffffffffffff1667ffffffffffffffff1690506000601060000160009054906101000a900463ffffffff1663ffffffff16905060006010600001600c9054906101000a900467ffffffffffffffff1690506000821480611c0857508142105b15611c4b5760036040517f804388c0000000000000000000000000000000000000000000000000000000008152600401611c429190614cd7565b60405180910390fd5b600c548467ffffffffffffffff16611c61610aee565b611c6b9190614bdb565b1115611caf5760046040517f804388c0000000000000000000000000000000000000000000000000000000008152600401611ca69190614d2d565b60405180910390fd5b8067ffffffffffffffff1684611ccb611cc6612f7c565b612f84565b611cd59190614d48565b67ffffffffffffffff161115611d235760056040517f804388c0000000000000000000000000000000000000000000000000000000008152600401611d1a9190614dbf565b60405180910390fd5b611d3e611d2e612f7c565b8567ffffffffffffffff16612bfa565b611d69611d49612f7c565b85611d5a611d55612f7c565b612f84565b611d649190614d48565b612fd1565b611d878467ffffffffffffffff1684611d8291906146f3565b613087565b611d8f612f7c565b73ffffffffffffffffffffffffffffffffffffffff167f68ce841e0552d5791316c35b51f6a9bb45db01305b07591fe2d79b6bed98d37985611dcf610aee565b604051611ddd929190614e0b565b60405180910390a250505050565b611df36138d5565b611dfb6138d5565b611e0361284b565b831080611e175750611e13612df5565b8310155b15611e255780915050611e50565b611e2e83612dca565b9050806040015115611e435780915050611e50565b611e4c8361312b565b9150505b919050565b611e5d612b7c565b6000601060000160006101000a81548163ffffffff021916908363ffffffff16021790555082601160000160006101000a81548163ffffffff021916908363ffffffff16021790555081601160000160046101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550806011600001600c6101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055507f28c10a27f02a9ef2610984cf2908beac19c3ad1fe5a2e3bed3f7245a4b051b8f601160000160009054906101000a900463ffffffff16601160000160049054906101000a900467ffffffffffffffff166011600001600c9054906101000a900467ffffffffffffffff16604051611f789392919061413c565b60405180910390a1505050565b6060600b60009054906101000a900460ff1615611fac57611fa58261314b565b9050612084565b611fb4610aee565b821115611ff6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fed90614e80565b60405180910390fd5b6013805461200390614693565b80601f016020809104026020016040519081016040528092919081815260200182805461202f90614693565b801561207c5780601f106120515761010080835404028352916020019161207c565b820191906000526020600020905b81548152906001019060200180831161205f57829003601f168201915b505050505090505b919050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146120fa5760016040517f804388c00000000000000000000000000000000000000000000000000000000081526004016120f19190614c81565b60405180910390fd5b6000601160000160049054906101000a900467ffffffffffffffff1667ffffffffffffffff1690506000601160000160009054906101000a900463ffffffff1663ffffffff16905060006011600001600c9054906101000a900467ffffffffffffffff169050600083036121a65760076040517f804388c000000000000000000000000000000000000000000000000000000000815260040161219d9190614edb565b60405180910390fd5b60008214806121b457508142105b156121f75760076040517f804388c00000000000000000000000000000000000000000000000000000000081526004016121ee9190614edb565b60405180910390fd5b600c548467ffffffffffffffff1661220d610aee565b6122179190614bdb565b111561225b5760046040517f804388c00000000000000000000000000000000000000000000000000000000081526004016122529190614d2d565b60405180910390fd5b8067ffffffffffffffff168467ffffffffffffffff1661228161227c612f7c565b612f84565b67ffffffffffffffff1661229b612296612f7c565b6131e9565b6122a59190614ef6565b6122af9190614bdb565b11156122f35760086040517f804388c00000000000000000000000000000000000000000000000000000000081526004016122ea9190614f65565b60405180910390fd5b612307338567ffffffffffffffff16612bfa565b6123258467ffffffffffffffff168461232091906146f3565b613087565b3373ffffffffffffffffffffffffffffffffffffffff167f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f85612366610aee565b604051612374929190614e0b565b60405180910390a250505050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61241e612b7c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361248d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248490614ff2565b60405180910390fd5b61249681612d04565b50565b600e5481565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806124fa57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061252a5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806125a457506125a382613240565b5b9050919050565b6000816125b661284b565b111580156125c5575060005482105b8015612603575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115612704576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401612681929190615012565b602060405180830381865afa15801561269e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126c29190615050565b61270357806040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016126fa9190613b49565b60405180910390fd5b5b50565b6000612712826110e9565b90508073ffffffffffffffffffffffffffffffffffffffff166127336132aa565b73ffffffffffffffffffffffffffffffffffffffff16146127965761275f8161275a6132aa565b612382565b612795576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600090565b600061285b82612c38565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146128c2576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806128ce846132b2565b915091506128e481876128df6132aa565b6132d9565b612930576128f9866128f46132aa565b612382565b61292f576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612996576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6129a3868686600161331d565b80156129ae57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550612a7c85612a58888887613323565b7c02000000000000000000000000000000000000000000000000000000001761334b565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603612b025760006001850190506000600460008381526020019081526020016000205403612b00576000548114612aff578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612b6a8686866001613376565b505050505050565b6000612710905090565b612b84612f7c565b73ffffffffffffffffffffffffffffffffffffffff16612ba261135a565b73ffffffffffffffffffffffffffffffffffffffff1614612bf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bef906150c9565b60405180910390fd5b565b612c1482826040518060200160405280600081525061337c565b5050565b612c3383838360405180602001604052806000815250611a21565b505050565b60008082905080612c4761284b565b11612ccd57600054811015612ccc5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612cca575b60008103612cc0576004600083600190039350838152602001908152602001600020549050612c96565b8092505050612cff565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612dd26138d5565b612dee6004600084815260200190815260200160002054613419565b9050919050565b60008054905090565b8060076000612e0b6132aa565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612eb86132aa565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612efd91906139d8565b60405180910390a35050565b612f14848484610b05565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612f7657612f3f848484846134cf565b612f75576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600033905090565b600060c0600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c9050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600082905060c081901b77ffffffffffffffffffffffffffffffffffffffffffffffff831617915081600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505050565b803410156130cd5760026040517f804388c00000000000000000000000000000000000000000000000000000000081526004016130c49190615124565b60405180910390fd5b80341115613128573373ffffffffffffffffffffffffffffffffffffffff166108fc82346130fb9190614ef6565b9081150290604051600060405180830381858888f19350505050158015613126573d6000803e3d6000fd5b505b50565b6131336138d5565b61314461313f83612c38565b613419565b9050919050565b6060613156826125ab565b61318c576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061319661361f565b905060008151036131b657604051806020016040528060008152506131e1565b806131c0846136b1565b6040516020016131d192919061517b565b6040516020818303038152906040525b915050919050565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861333a868684613701565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b613386838361370a565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461341457600080549050600083820390505b6133c660008683806001019450866134cf565b6133fc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106133b357816000541461341157600080fd5b50505b505050565b6134216138d5565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026134f56132aa565b8786866040518563ffffffff1660e01b815260040161351794939291906151f4565b6020604051808303816000875af192505050801561355357506040513d601f19601f820116820180604052508101906135509190615255565b60015b6135cc573d8060008114613583576040519150601f19603f3d011682016040523d82523d6000602084013e613588565b606091505b5060008151036135c4576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60606012805461362e90614693565b80601f016020809104026020016040519081016040528092919081815260200182805461365a90614693565b80156136a75780601f1061367c576101008083540402835291602001916136a7565b820191906000526020600020905b81548152906001019060200180831161368a57829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b6001156136ec57600184039350600a81066030018453600a81049050806136ca575b50828103602084039350808452505050919050565b60009392505050565b6000805490506000820361374a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613757600084838561331d565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506137ce836137bf6000866000613323565b6137c8856138c5565b1761334b565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461386f57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613834565b50600082036138aa576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506138c06000848385613376565b505050565b60006001821460e11b9050919050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61396d81613938565b811461397857600080fd5b50565b60008135905061398a81613964565b92915050565b6000602082840312156139a6576139a561392e565b5b60006139b48482850161397b565b91505092915050565b60008115159050919050565b6139d2816139bd565b82525050565b60006020820190506139ed60008301846139c9565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613a2d578082015181840152602081019050613a12565b60008484015250505050565b6000601f19601f8301169050919050565b6000613a55826139f3565b613a5f81856139fe565b9350613a6f818560208601613a0f565b613a7881613a39565b840191505092915050565b60006020820190508181036000830152613a9d8184613a4a565b905092915050565b6000819050919050565b613ab881613aa5565b8114613ac357600080fd5b50565b600081359050613ad581613aaf565b92915050565b600060208284031215613af157613af061392e565b5b6000613aff84828501613ac6565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613b3382613b08565b9050919050565b613b4381613b28565b82525050565b6000602082019050613b5e6000830184613b3a565b92915050565b613b6d81613b28565b8114613b7857600080fd5b50565b600081359050613b8a81613b64565b92915050565b60008060408385031215613ba757613ba661392e565b5b6000613bb585828601613b7b565b9250506020613bc685828601613ac6565b9150509250929050565b613bd981613aa5565b82525050565b6000602082019050613bf46000830184613bd0565b92915050565b600080600060608486031215613c1357613c1261392e565b5b6000613c2186828701613b7b565b9350506020613c3286828701613b7b565b9250506040613c4386828701613ac6565b9150509250925092565b60008060408385031215613c6457613c6361392e565b5b6000613c7285828601613ac6565b9250506020613c8385828601613ac6565b9150509250929050565b6000604082019050613ca26000830185613b3a565b613caf6020830184613bd0565b9392505050565b600063ffffffff82169050919050565b613ccf81613cb6565b8114613cda57600080fd5b50565b600081359050613cec81613cc6565b92915050565b600067ffffffffffffffff82169050919050565b613d0f81613cf2565b8114613d1a57600080fd5b50565b600081359050613d2c81613d06565b92915050565b600080600060608486031215613d4b57613d4a61392e565b5b6000613d5986828701613cdd565b9350506020613d6a86828701613d1d565b9250506040613d7b86828701613d1d565b9150509250925092565b6000819050919050565b6000613daa613da5613da084613b08565b613d85565b613b08565b9050919050565b6000613dbc82613d8f565b9050919050565b6000613dce82613db1565b9050919050565b613dde81613dc3565b82525050565b6000602082019050613df96000830184613dd5565b92915050565b613e08816139bd565b8114613e1357600080fd5b50565b600081359050613e2581613dff565b92915050565b600060208284031215613e4157613e4061392e565b5b6000613e4f84828501613e16565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112613e7d57613e7c613e58565b5b8235905067ffffffffffffffff811115613e9a57613e99613e5d565b5b602083019150836001820283011115613eb657613eb5613e62565b5b9250929050565b60008060208385031215613ed457613ed361392e565b5b600083013567ffffffffffffffff811115613ef257613ef1613933565b5b613efe85828601613e67565b92509250509250929050565b60008083601f840112613f2057613f1f613e58565b5b8235905067ffffffffffffffff811115613f3d57613f3c613e5d565b5b602083019150836020820283011115613f5957613f58613e62565b5b9250929050565b60008060208385031215613f7757613f7661392e565b5b600083013567ffffffffffffffff811115613f9557613f94613933565b5b613fa185828601613f0a565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613fe281613b28565b82525050565b613ff181613cf2565b82525050565b614000816139bd565b82525050565b600062ffffff82169050919050565b61401e81614006565b82525050565b60808201600082015161403a6000850182613fd9565b50602082015161404d6020850182613fe8565b5060408201516140606040850182613ff7565b5060608201516140736060850182614015565b50505050565b60006140858383614024565b60808301905092915050565b6000602082019050919050565b60006140a982613fad565b6140b38185613fb8565b93506140be83613fc9565b8060005b838110156140ef5781516140d68882614079565b97506140e183614091565b9250506001810190506140c2565b5085935050505092915050565b60006020820190508181036000830152614116818461409e565b905092915050565b61412781613cb6565b82525050565b61413681613cf2565b82525050565b6000606082019050614151600083018661411e565b61415e602083018561412d565b61416b604083018461412d565b949350505050565b6000602082840312156141895761418861392e565b5b600061419784828501613b7b565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6141d581613aa5565b82525050565b60006141e783836141cc565b60208301905092915050565b6000602082019050919050565b600061420b826141a0565b61421581856141ab565b9350614220836141bc565b8060005b8381101561425157815161423888826141db565b9750614243836141f3565b925050600181019050614224565b5085935050505092915050565b600060208201905081810360008301526142788184614200565b905092915050565b60006040820190506142956000830185613bd0565b6142a26020830184613bd0565b9392505050565b6000806000606084860312156142c2576142c161392e565b5b60006142d086828701613b7b565b93505060206142e186828701613ac6565b92505060406142f286828701613ac6565b9150509250925092565b600080604083850312156143135761431261392e565b5b600061432185828601613b7b565b925050602061433285828601613e16565b9150509250929050565b600060408201905081810360008301526143568185613a4a565b9050818103602083015261436a8184613a4a565b90509392505050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6143b082613a39565b810181811067ffffffffffffffff821117156143cf576143ce614378565b5b80604052505050565b60006143e2613924565b90506143ee82826143a7565b919050565b600067ffffffffffffffff82111561440e5761440d614378565b5b61441782613a39565b9050602081019050919050565b82818337600083830152505050565b6000614446614441846143f3565b6143d8565b90508281526020810184848401111561446257614461614373565b5b61446d848285614424565b509392505050565b600082601f83011261448a57614489613e58565b5b813561449a848260208601614433565b91505092915050565b600080600080608085870312156144bd576144bc61392e565b5b60006144cb87828801613b7b565b94505060206144dc87828801613b7b565b93505060406144ed87828801613ac6565b925050606085013567ffffffffffffffff81111561450e5761450d613933565b5b61451a87828801614475565b91505092959194509250565b600060c08201905061453b600083018961411e565b614548602083018861412d565b614555604083018761412d565b614562606083018661411e565b61456f608083018561412d565b61457c60a083018461412d565b979650505050505050565b60006020828403121561459d5761459c61392e565b5b60006145ab84828501613d1d565b91505092915050565b6080820160008201516145ca6000850182613fd9565b5060208201516145dd6020850182613fe8565b5060408201516145f06040850182613ff7565b5060608201516146036060850182614015565b50505050565b600060808201905061461e60008301846145b4565b92915050565b6000806040838503121561463b5761463a61392e565b5b600061464985828601613b7b565b925050602061465a85828601613b7b565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806146ab57607f821691505b6020821081036146be576146bd614664565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006146fe82613aa5565b915061470983613aa5565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614742576147416146c4565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061478782613aa5565b915061479283613aa5565b9250826147a2576147a161474d565b5b828204905092915050565b60006147b882613aa5565b91506147c383613aa5565b9250826147d3576147d261474d565b5b828206905092915050565b6000819050919050565b600060ff82169050919050565b600061481061480b614806846147de565b613d85565b6147e8565b9050919050565b614820816147f5565b82525050565b600060208201905061483b6000830184614817565b92915050565b600061484c82613aa5565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361487e5761487d6146c4565b5b600182019050919050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026148f67fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826148b9565b61490086836148b9565b95508019841693508086168417925050509392505050565b600061493361492e61492984613aa5565b613d85565b613aa5565b9050919050565b6000819050919050565b61494d83614918565b6149616149598261493a565b8484546148c6565b825550505050565b600090565b614976614969565b614981818484614944565b505050565b5b818110156149a55761499a60008261496e565b600181019050614987565b5050565b601f8211156149ea576149bb81614894565b6149c4846148a9565b810160208510156149d3578190505b6149e76149df856148a9565b830182614986565b50505b505050565b600082821c905092915050565b6000614a0d600019846008026149ef565b1980831691505092915050565b6000614a2683836149fc565b9150826002028217905092915050565b614a408383614889565b67ffffffffffffffff811115614a5957614a58614378565b5b614a638254614693565b614a6e8282856149a9565b6000601f831160018114614a9d5760008415614a8b578287013590505b614a958582614a1a565b865550614afd565b601f198416614aab86614894565b60005b82811015614ad357848901358255600182019150602085019450602081019050614aae565b86831015614af05784890135614aec601f8916826149fc565b8355505b6001600288020188555050505b50505050505050565b60008154614b1381614693565b614b1d81866139fe565b94506001821660008114614b385760018114614b4e57614b81565b60ff198316865281151560200286019350614b81565b614b5785614894565b60005b83811015614b7957815481890152600182019150602081019050614b5a565b808801955050505b50505092915050565b60006020820190508181036000830152614ba48184614b06565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000614be682613aa5565b9150614bf183613aa5565b9250828201905080821115614c0957614c086146c4565b5b92915050565b6000606082019050614c246000830186613bd0565b614c316020830185613bd0565b614c3e6040830184613bd0565b949350505050565b6000819050919050565b6000614c6b614c66614c6184614c46565b613d85565b6147e8565b9050919050565b614c7b81614c50565b82525050565b6000602082019050614c966000830184614c72565b92915050565b6000819050919050565b6000614cc1614cbc614cb784614c9c565b613d85565b6147e8565b9050919050565b614cd181614ca6565b82525050565b6000602082019050614cec6000830184614cc8565b92915050565b6000819050919050565b6000614d17614d12614d0d84614cf2565b613d85565b6147e8565b9050919050565b614d2781614cfc565b82525050565b6000602082019050614d426000830184614d1e565b92915050565b6000614d5382613cf2565b9150614d5e83613cf2565b9250828201905067ffffffffffffffff811115614d7e57614d7d6146c4565b5b92915050565b6000819050919050565b6000614da9614da4614d9f84614d84565b613d85565b6147e8565b9050919050565b614db981614d8e565b82525050565b6000602082019050614dd46000830184614db0565b92915050565b6000614df5614df0614deb84613cf2565b613d85565b613aa5565b9050919050565b614e0581614dda565b82525050565b6000604082019050614e206000830185614dfc565b614e2d6020830184613bd0565b9392505050565b7f746f6b656e206e6f742065786973740000000000000000000000000000000000600082015250565b6000614e6a600f836139fe565b9150614e7582614e34565b602082019050919050565b60006020820190508181036000830152614e9981614e5d565b9050919050565b6000819050919050565b6000614ec5614ec0614ebb84614ea0565b613d85565b6147e8565b9050919050565b614ed581614eaa565b82525050565b6000602082019050614ef06000830184614ecc565b92915050565b6000614f0182613aa5565b9150614f0c83613aa5565b9250828203905081811115614f2457614f236146c4565b5b92915050565b6000819050919050565b6000614f4f614f4a614f4584614f2a565b613d85565b6147e8565b9050919050565b614f5f81614f34565b82525050565b6000602082019050614f7a6000830184614f56565b92915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614fdc6026836139fe565b9150614fe782614f80565b604082019050919050565b6000602082019050818103600083015261500b81614fcf565b9050919050565b60006040820190506150276000830185613b3a565b6150346020830184613b3a565b9392505050565b60008151905061504a81613dff565b92915050565b6000602082840312156150665761506561392e565b5b60006150748482850161503b565b91505092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006150b36020836139fe565b91506150be8261507d565b602082019050919050565b600060208201905081810360008301526150e2816150a6565b9050919050565b6000819050919050565b600061510e615109615104846150e9565b613d85565b6147e8565b9050919050565b61511e816150f3565b82525050565b60006020820190506151396000830184615115565b92915050565b600081905092915050565b6000615155826139f3565b61515f818561513f565b935061516f818560208601613a0f565b80840191505092915050565b6000615187828561514a565b9150615193828461514a565b91508190509392505050565b600081519050919050565b600082825260208201905092915050565b60006151c68261519f565b6151d081856151aa565b93506151e0818560208601613a0f565b6151e981613a39565b840191505092915050565b60006080820190506152096000830187613b3a565b6152166020830186613b3a565b6152236040830185613bd0565b818103606083015261523581846151bb565b905095945050505050565b60008151905061524f81613964565b92915050565b60006020828403121561526b5761526a61392e565b5b600061527984828501615240565b9150509291505056fea2646970667358221220b1e14a5b3fdb7f1c77d61541c89349b4ac51eb8d2e93f1af707e5a7355edd59664736f6c63430008100033000000000000000000000000000000000000000000000000000000000000030900000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001

Deployed Bytecode

0x6080604052600436106102515760003560e01c80638462151c11610139578063aca8ffe7116100b6578063c7fcca6f1161007a578063c7fcca6f1461088f578063c87b56dd146108b8578063d63dd701146108f5578063e985e9c514610911578063f2fde38b1461094e578063fbe1aa511461097757610251565b8063aca8ffe7146107c1578063b88d4fde146107ea578063c032846b14610806578063c0dfc1e914610836578063c23dc68f1461085257610251565b8063a125c824116100fd578063a125c824146106ff578063a22cb46514610728578063a3fd2c4414610751578063abb1dc441461077e578063ac446002146107aa57610251565b80638462151c146106035780638da5cb5b1461064057806395d89b411461066b578063968ed6001461069657806399a2557a146106c257610251565b806341f43434116101d257806355f804b31161019657806355f804b3146104df5780635bbb2177146105085780636352211e14610545578063656cf9181461058257806370a08231146105af578063715018a6146105ec57610251565b806341f434341461041957806342842e0e1461044457806345c0f5331461046057806349a5980a1461048b57806354214f69146104b457610251565b806323b872dd1161021957806323b872dd146103425780632913daa01461035e5780632a55205a14610389578063375a069a146103c7578063419041d8146103f057610251565b806301ffc9a71461025657806306fdde0314610293578063081812fc146102be578063095ea7b3146102fb57806318160ddd14610317575b600080fd5b34801561026257600080fd5b5061027d60048036038101906102789190613990565b6109a2565b60405161028a91906139d8565b60405180910390f35b34801561029f57600080fd5b506102a86109c4565b6040516102b59190613a83565b60405180910390f35b3480156102ca57600080fd5b506102e560048036038101906102e09190613adb565b610a56565b6040516102f29190613b49565b60405180910390f35b61031560048036038101906103109190613b90565b610ad5565b005b34801561032357600080fd5b5061032c610aee565b6040516103399190613bdf565b60405180910390f35b61035c60048036038101906103579190613bfa565b610b05565b005b34801561036a57600080fd5b50610373610b54565b6040516103809190613bdf565b60405180910390f35b34801561039557600080fd5b506103b060048036038101906103ab9190613c4d565b610b5a565b6040516103be929190613c8d565b60405180910390f35b3480156103d357600080fd5b506103ee60048036038101906103e99190613adb565b610d44565b005b3480156103fc57600080fd5b5061041760048036038101906104129190613d32565b610de0565b005b34801561042557600080fd5b5061042e610eeb565b60405161043b9190613de4565b60405180910390f35b61045e60048036038101906104599190613bfa565b610efd565b005b34801561046c57600080fd5b50610475610f4c565b6040516104829190613bdf565b60405180910390f35b34801561049757600080fd5b506104b260048036038101906104ad9190613e2b565b610f52565b005b3480156104c057600080fd5b506104c9610fbd565b6040516104d691906139d8565b60405180910390f35b3480156104eb57600080fd5b5061050660048036038101906105019190613ebd565b610fd0565b005b34801561051457600080fd5b5061052f600480360381019061052a9190613f60565b611026565b60405161053c91906140fc565b60405180910390f35b34801561055157600080fd5b5061056c60048036038101906105679190613adb565b6110e9565b6040516105799190613b49565b60405180910390f35b34801561058e57600080fd5b506105976110fb565b6040516105a69392919061413c565b60405180910390f35b3480156105bb57600080fd5b506105d660048036038101906105d19190614173565b61114b565b6040516105e39190613bdf565b60405180910390f35b3480156105f857600080fd5b50610601611203565b005b34801561060f57600080fd5b5061062a60048036038101906106259190614173565b611217565b604051610637919061425e565b60405180910390f35b34801561064c57600080fd5b5061065561135a565b6040516106629190613b49565b60405180910390f35b34801561067757600080fd5b50610680611384565b60405161068d9190613a83565b60405180910390f35b3480156106a257600080fd5b506106ab611416565b6040516106b9929190614280565b60405180910390f35b3480156106ce57600080fd5b506106e960048036038101906106e491906142a9565b611425565b6040516106f6919061425e565b60405180910390f35b34801561070b57600080fd5b5061072660048036038101906107219190613ebd565b611631565b005b34801561073457600080fd5b5061074f600480360381019061074a91906142fc565b611687565b005b34801561075d57600080fd5b506107666116a0565b6040516107759392919061413c565b60405180910390f35b34801561078a57600080fd5b506107936116f0565b6040516107a192919061433c565b60405180910390f35b3480156107b657600080fd5b506107bf611817565b005b3480156107cd57600080fd5b506107e860048036038101906107e39190613adb565b6119d6565b005b61080460048036038101906107ff91906144a3565b611a21565b005b34801561081257600080fd5b5061081b611a72565b60405161082d96959493929190614526565b60405180910390f35b610850600480360381019061084b9190614587565b611b23565b005b34801561085e57600080fd5b5061087960048036038101906108749190613adb565b611deb565b6040516108869190614609565b60405180910390f35b34801561089b57600080fd5b506108b660048036038101906108b19190613d32565b611e55565b005b3480156108c457600080fd5b506108df60048036038101906108da9190613adb565b611f85565b6040516108ec9190613a83565b60405180910390f35b61090f600480360381019061090a9190614587565b612089565b005b34801561091d57600080fd5b5061093860048036038101906109339190614624565b612382565b60405161094591906139d8565b60405180910390f35b34801561095a57600080fd5b5061097560048036038101906109709190614173565b612416565b005b34801561098357600080fd5b5061098c612499565b6040516109999190613bdf565b60405180910390f35b60006109ad8261249f565b806109bd57506109bc82612531565b5b9050919050565b6060600280546109d390614693565b80601f01602080910402602001604051908101604052809291908181526020018280546109ff90614693565b8015610a4c5780601f10610a2157610100808354040283529160200191610a4c565b820191906000526020600020905b815481529060010190602001808311610a2f57829003601f168201915b5050505050905090565b6000610a61826125ab565b610a97576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610adf8161260a565b610ae98383612707565b505050565b6000610af861284b565b6001546000540303905090565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b4357610b423361260a565b5b610b4e848484612850565b50505050565b600d5481565b6000806000600a60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610cef5760096040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610cf9612b72565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610d2591906146f3565b610d2f919061477c565b90508160000151819350935050509250929050565b610d4c612b7c565b6000600d5482610d5c91906147ad565b14610d9f5760066040517f804388c0000000000000000000000000000000000000000000000000000000008152600401610d969190614826565b60405180910390fd5b6000600d5482610daf919061477c565b905060005b81811015610ddb57610dc833600d54612bfa565b8080610dd390614841565b915050610db4565b505050565b610de8612b7c565b82601060000160006101000a81548163ffffffff021916908363ffffffff16021790555081601060000160046101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550806010600001600c6101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055507ffc1ecc6749c0ed1ffc33ac58e7b26230d1a035c9dae817bd6e38cfb24fa8644b601060000160009054906101000a900463ffffffff16601060000160049054906101000a900467ffffffffffffffff166010600001600c9054906101000a900467ffffffffffffffff16604051610ede9392919061413c565b60405180910390a1505050565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f3b57610f3a3361260a565b5b610f46848484612c18565b50505050565b600c5481565b610f5a612b7c565b80600b60006101000a81548160ff0219169083151502179055507fc55565c1dcceed7a236384f279af4f95930442d66962d8d245a73a1b85e3c9a1600b60009054906101000a900460ff16604051610fb291906139d8565b60405180910390a150565b600b60009054906101000a900460ff1681565b610fd8612b7c565b818160129182610fe9929190614a36565b507fec7aa76ee322bd9ff6b9f70d62a749a4bfadba7751d8b4bb089b22ff0ed09bd2601260405161101a9190614b8a565b60405180910390a15050565b6060600083839050905060008167ffffffffffffffff81111561104c5761104b614378565b5b60405190808252806020026020018201604052801561108557816020015b6110726138d5565b81526020019060019003908161106a5790505b50905060005b8281146110dd576110b48686838181106110a8576110a7614bac565b5b90506020020135611deb565b8282815181106110c7576110c6614bac565b5b602002602001018190525080600101905061108b565b50809250505092915050565b60006110f482612c38565b9050919050565b60108060000160009054906101000a900463ffffffff16908060000160049054906101000a900467ffffffffffffffff169080600001600c9054906101000a900467ffffffffffffffff16905083565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036111b2576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61120b612b7c565b6112156000612d04565b565b606060008060006112278561114b565b905060008167ffffffffffffffff81111561124557611244614378565b5b6040519080825280602002602001820160405280156112735781602001602082028036833780820191505090505b50905061127e6138d5565b600061128861284b565b90505b83861461134c5761129b81612dca565b9150816040015161134157600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff16146112e657816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611340578083878060010198508151811061133357611332614bac565b5b6020026020010181815250505b5b80600101905061128b565b508195505050505050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606003805461139390614693565b80601f01602080910402602001604051908101604052809291908181526020018280546113bf90614693565b801561140c5780601f106113e15761010080835404028352916020019161140c565b820191906000526020600020905b8154815290600101906020018083116113ef57829003601f168201915b5050505050905090565b60008047600f54915091509091565b6060818310611460576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061146b612df5565b905061147561284b565b8510156114875761148461284b565b94505b80841115611493578093505b600061149e8761114b565b9050848610156114c15760008686039050818110156114bb578091505b506114c6565b600090505b60008167ffffffffffffffff8111156114e2576114e1614378565b5b6040519080825280602002602001820160405280156115105781602001602082028036833780820191505090505b50905060008203611527578094505050505061162a565b600061153288611deb565b90506000816040015161154757816000015190505b60008990505b88811415801561155d5750848714155b1561161c5761156b81612dca565b9250826040015161161157600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff16146115b657826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611610578084888060010199508151811061160357611602614bac565b5b6020026020010181815250505b5b80600101905061154d565b508583528296505050505050505b9392505050565b611639612b7c565b81816013918261164a929190614a36565b507fa36fff1c6478d9cebacb70685906c5f6340c1ef345712a19ad41a5fe7d2bcbee601360405161167b9190614b8a565b60405180910390a15050565b816116918161260a565b61169b8383612dfe565b505050565b60118060000160009054906101000a900463ffffffff16908060000160049054906101000a900467ffffffffffffffff169080600001600c9054906101000a900467ffffffffffffffff16905083565b6060806012601381805461170390614693565b80601f016020809104026020016040519081016040528092919081815260200182805461172f90614693565b801561177c5780601f106117515761010080835404028352916020019161177c565b820191906000526020600020905b81548152906001019060200180831161175f57829003601f168201915b5050505050915080805461178f90614693565b80601f01602080910402602001604051908101604052809291908181526020018280546117bb90614693565b80156118085780601f106117dd57610100808354040283529160200191611808565b820191906000526020600020905b8154815290600101906020018083116117eb57829003601f168201915b50505050509050915091509091565b61181f612b7c565b600073597b15dbea7322a3fd1e51e28daf539380305c4a9050600073db0cc38dac5a1494478cf4618b8ff69af64742db90506000606460014761186291906146f3565b61186c919061477c565b905060006064601e4761187f91906146f3565b611889919061477c565b90508373ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f193505050501580156118d1573d6000803e3d6000fd5b508273ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611918573d6000803e3d6000fd5b5060004790503373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611964573d6000803e3d6000fd5b508082846119729190614bdb565b61197c9190614bdb565b600f600082825461198d9190614bdb565b925050819055507fd5550c71ca14cc44783a664cd798ecb70dcefed6b3cfdf323041ce6d221f2d728383836040516119c793929190614c0f565b60405180910390a15050505050565b6119de612b7c565b80600c819055507fe20e127115d125ee9e5585a8fb1b88c761a79582a054e18d8997d22c147e9fa7600c54604051611a169190613bdf565b60405180910390a150565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611a5f57611a5e3361260a565b5b611a6b85858585612f09565b5050505050565b600080600080600080601060000160009054906101000a900463ffffffff16601060000160049054906101000a900467ffffffffffffffff166010600001600c9054906101000a900467ffffffffffffffff16601160000160009054906101000a900463ffffffff16601160000160049054906101000a900467ffffffffffffffff166011600001600c9054906101000a900467ffffffffffffffff16955095509550955095509550909192939495565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611b945760016040517f804388c0000000000000000000000000000000000000000000000000000000008152600401611b8b9190614c81565b60405180910390fd5b6000601060000160049054906101000a900467ffffffffffffffff1667ffffffffffffffff1690506000601060000160009054906101000a900463ffffffff1663ffffffff16905060006010600001600c9054906101000a900467ffffffffffffffff1690506000821480611c0857508142105b15611c4b5760036040517f804388c0000000000000000000000000000000000000000000000000000000008152600401611c429190614cd7565b60405180910390fd5b600c548467ffffffffffffffff16611c61610aee565b611c6b9190614bdb565b1115611caf5760046040517f804388c0000000000000000000000000000000000000000000000000000000008152600401611ca69190614d2d565b60405180910390fd5b8067ffffffffffffffff1684611ccb611cc6612f7c565b612f84565b611cd59190614d48565b67ffffffffffffffff161115611d235760056040517f804388c0000000000000000000000000000000000000000000000000000000008152600401611d1a9190614dbf565b60405180910390fd5b611d3e611d2e612f7c565b8567ffffffffffffffff16612bfa565b611d69611d49612f7c565b85611d5a611d55612f7c565b612f84565b611d649190614d48565b612fd1565b611d878467ffffffffffffffff1684611d8291906146f3565b613087565b611d8f612f7c565b73ffffffffffffffffffffffffffffffffffffffff167f68ce841e0552d5791316c35b51f6a9bb45db01305b07591fe2d79b6bed98d37985611dcf610aee565b604051611ddd929190614e0b565b60405180910390a250505050565b611df36138d5565b611dfb6138d5565b611e0361284b565b831080611e175750611e13612df5565b8310155b15611e255780915050611e50565b611e2e83612dca565b9050806040015115611e435780915050611e50565b611e4c8361312b565b9150505b919050565b611e5d612b7c565b6000601060000160006101000a81548163ffffffff021916908363ffffffff16021790555082601160000160006101000a81548163ffffffff021916908363ffffffff16021790555081601160000160046101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550806011600001600c6101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055507f28c10a27f02a9ef2610984cf2908beac19c3ad1fe5a2e3bed3f7245a4b051b8f601160000160009054906101000a900463ffffffff16601160000160049054906101000a900467ffffffffffffffff166011600001600c9054906101000a900467ffffffffffffffff16604051611f789392919061413c565b60405180910390a1505050565b6060600b60009054906101000a900460ff1615611fac57611fa58261314b565b9050612084565b611fb4610aee565b821115611ff6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fed90614e80565b60405180910390fd5b6013805461200390614693565b80601f016020809104026020016040519081016040528092919081815260200182805461202f90614693565b801561207c5780601f106120515761010080835404028352916020019161207c565b820191906000526020600020905b81548152906001019060200180831161205f57829003601f168201915b505050505090505b919050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146120fa5760016040517f804388c00000000000000000000000000000000000000000000000000000000081526004016120f19190614c81565b60405180910390fd5b6000601160000160049054906101000a900467ffffffffffffffff1667ffffffffffffffff1690506000601160000160009054906101000a900463ffffffff1663ffffffff16905060006011600001600c9054906101000a900467ffffffffffffffff169050600083036121a65760076040517f804388c000000000000000000000000000000000000000000000000000000000815260040161219d9190614edb565b60405180910390fd5b60008214806121b457508142105b156121f75760076040517f804388c00000000000000000000000000000000000000000000000000000000081526004016121ee9190614edb565b60405180910390fd5b600c548467ffffffffffffffff1661220d610aee565b6122179190614bdb565b111561225b5760046040517f804388c00000000000000000000000000000000000000000000000000000000081526004016122529190614d2d565b60405180910390fd5b8067ffffffffffffffff168467ffffffffffffffff1661228161227c612f7c565b612f84565b67ffffffffffffffff1661229b612296612f7c565b6131e9565b6122a59190614ef6565b6122af9190614bdb565b11156122f35760086040517f804388c00000000000000000000000000000000000000000000000000000000081526004016122ea9190614f65565b60405180910390fd5b612307338567ffffffffffffffff16612bfa565b6123258467ffffffffffffffff168461232091906146f3565b613087565b3373ffffffffffffffffffffffffffffffffffffffff167f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f85612366610aee565b604051612374929190614e0b565b60405180910390a250505050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61241e612b7c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361248d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248490614ff2565b60405180910390fd5b61249681612d04565b50565b600e5481565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806124fa57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061252a5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806125a457506125a382613240565b5b9050919050565b6000816125b661284b565b111580156125c5575060005482105b8015612603575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115612704576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401612681929190615012565b602060405180830381865afa15801561269e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126c29190615050565b61270357806040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016126fa9190613b49565b60405180910390fd5b5b50565b6000612712826110e9565b90508073ffffffffffffffffffffffffffffffffffffffff166127336132aa565b73ffffffffffffffffffffffffffffffffffffffff16146127965761275f8161275a6132aa565b612382565b612795576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600090565b600061285b82612c38565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146128c2576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806128ce846132b2565b915091506128e481876128df6132aa565b6132d9565b612930576128f9866128f46132aa565b612382565b61292f576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612996576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6129a3868686600161331d565b80156129ae57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550612a7c85612a58888887613323565b7c02000000000000000000000000000000000000000000000000000000001761334b565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603612b025760006001850190506000600460008381526020019081526020016000205403612b00576000548114612aff578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612b6a8686866001613376565b505050505050565b6000612710905090565b612b84612f7c565b73ffffffffffffffffffffffffffffffffffffffff16612ba261135a565b73ffffffffffffffffffffffffffffffffffffffff1614612bf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bef906150c9565b60405180910390fd5b565b612c1482826040518060200160405280600081525061337c565b5050565b612c3383838360405180602001604052806000815250611a21565b505050565b60008082905080612c4761284b565b11612ccd57600054811015612ccc5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612cca575b60008103612cc0576004600083600190039350838152602001908152602001600020549050612c96565b8092505050612cff565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612dd26138d5565b612dee6004600084815260200190815260200160002054613419565b9050919050565b60008054905090565b8060076000612e0b6132aa565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612eb86132aa565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612efd91906139d8565b60405180910390a35050565b612f14848484610b05565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612f7657612f3f848484846134cf565b612f75576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600033905090565b600060c0600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c9050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600082905060c081901b77ffffffffffffffffffffffffffffffffffffffffffffffff831617915081600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505050565b803410156130cd5760026040517f804388c00000000000000000000000000000000000000000000000000000000081526004016130c49190615124565b60405180910390fd5b80341115613128573373ffffffffffffffffffffffffffffffffffffffff166108fc82346130fb9190614ef6565b9081150290604051600060405180830381858888f19350505050158015613126573d6000803e3d6000fd5b505b50565b6131336138d5565b61314461313f83612c38565b613419565b9050919050565b6060613156826125ab565b61318c576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061319661361f565b905060008151036131b657604051806020016040528060008152506131e1565b806131c0846136b1565b6040516020016131d192919061517b565b6040516020818303038152906040525b915050919050565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861333a868684613701565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b613386838361370a565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461341457600080549050600083820390505b6133c660008683806001019450866134cf565b6133fc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106133b357816000541461341157600080fd5b50505b505050565b6134216138d5565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026134f56132aa565b8786866040518563ffffffff1660e01b815260040161351794939291906151f4565b6020604051808303816000875af192505050801561355357506040513d601f19601f820116820180604052508101906135509190615255565b60015b6135cc573d8060008114613583576040519150601f19603f3d011682016040523d82523d6000602084013e613588565b606091505b5060008151036135c4576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60606012805461362e90614693565b80601f016020809104026020016040519081016040528092919081815260200182805461365a90614693565b80156136a75780601f1061367c576101008083540402835291602001916136a7565b820191906000526020600020905b81548152906001019060200180831161368a57829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b6001156136ec57600184039350600a81066030018453600a81049050806136ca575b50828103602084039350808452505050919050565b60009392505050565b6000805490506000820361374a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613757600084838561331d565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506137ce836137bf6000866000613323565b6137c8856138c5565b1761334b565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461386f57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613834565b50600082036138aa576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506138c06000848385613376565b505050565b60006001821460e11b9050919050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61396d81613938565b811461397857600080fd5b50565b60008135905061398a81613964565b92915050565b6000602082840312156139a6576139a561392e565b5b60006139b48482850161397b565b91505092915050565b60008115159050919050565b6139d2816139bd565b82525050565b60006020820190506139ed60008301846139c9565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613a2d578082015181840152602081019050613a12565b60008484015250505050565b6000601f19601f8301169050919050565b6000613a55826139f3565b613a5f81856139fe565b9350613a6f818560208601613a0f565b613a7881613a39565b840191505092915050565b60006020820190508181036000830152613a9d8184613a4a565b905092915050565b6000819050919050565b613ab881613aa5565b8114613ac357600080fd5b50565b600081359050613ad581613aaf565b92915050565b600060208284031215613af157613af061392e565b5b6000613aff84828501613ac6565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613b3382613b08565b9050919050565b613b4381613b28565b82525050565b6000602082019050613b5e6000830184613b3a565b92915050565b613b6d81613b28565b8114613b7857600080fd5b50565b600081359050613b8a81613b64565b92915050565b60008060408385031215613ba757613ba661392e565b5b6000613bb585828601613b7b565b9250506020613bc685828601613ac6565b9150509250929050565b613bd981613aa5565b82525050565b6000602082019050613bf46000830184613bd0565b92915050565b600080600060608486031215613c1357613c1261392e565b5b6000613c2186828701613b7b565b9350506020613c3286828701613b7b565b9250506040613c4386828701613ac6565b9150509250925092565b60008060408385031215613c6457613c6361392e565b5b6000613c7285828601613ac6565b9250506020613c8385828601613ac6565b9150509250929050565b6000604082019050613ca26000830185613b3a565b613caf6020830184613bd0565b9392505050565b600063ffffffff82169050919050565b613ccf81613cb6565b8114613cda57600080fd5b50565b600081359050613cec81613cc6565b92915050565b600067ffffffffffffffff82169050919050565b613d0f81613cf2565b8114613d1a57600080fd5b50565b600081359050613d2c81613d06565b92915050565b600080600060608486031215613d4b57613d4a61392e565b5b6000613d5986828701613cdd565b9350506020613d6a86828701613d1d565b9250506040613d7b86828701613d1d565b9150509250925092565b6000819050919050565b6000613daa613da5613da084613b08565b613d85565b613b08565b9050919050565b6000613dbc82613d8f565b9050919050565b6000613dce82613db1565b9050919050565b613dde81613dc3565b82525050565b6000602082019050613df96000830184613dd5565b92915050565b613e08816139bd565b8114613e1357600080fd5b50565b600081359050613e2581613dff565b92915050565b600060208284031215613e4157613e4061392e565b5b6000613e4f84828501613e16565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112613e7d57613e7c613e58565b5b8235905067ffffffffffffffff811115613e9a57613e99613e5d565b5b602083019150836001820283011115613eb657613eb5613e62565b5b9250929050565b60008060208385031215613ed457613ed361392e565b5b600083013567ffffffffffffffff811115613ef257613ef1613933565b5b613efe85828601613e67565b92509250509250929050565b60008083601f840112613f2057613f1f613e58565b5b8235905067ffffffffffffffff811115613f3d57613f3c613e5d565b5b602083019150836020820283011115613f5957613f58613e62565b5b9250929050565b60008060208385031215613f7757613f7661392e565b5b600083013567ffffffffffffffff811115613f9557613f94613933565b5b613fa185828601613f0a565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613fe281613b28565b82525050565b613ff181613cf2565b82525050565b614000816139bd565b82525050565b600062ffffff82169050919050565b61401e81614006565b82525050565b60808201600082015161403a6000850182613fd9565b50602082015161404d6020850182613fe8565b5060408201516140606040850182613ff7565b5060608201516140736060850182614015565b50505050565b60006140858383614024565b60808301905092915050565b6000602082019050919050565b60006140a982613fad565b6140b38185613fb8565b93506140be83613fc9565b8060005b838110156140ef5781516140d68882614079565b97506140e183614091565b9250506001810190506140c2565b5085935050505092915050565b60006020820190508181036000830152614116818461409e565b905092915050565b61412781613cb6565b82525050565b61413681613cf2565b82525050565b6000606082019050614151600083018661411e565b61415e602083018561412d565b61416b604083018461412d565b949350505050565b6000602082840312156141895761418861392e565b5b600061419784828501613b7b565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6141d581613aa5565b82525050565b60006141e783836141cc565b60208301905092915050565b6000602082019050919050565b600061420b826141a0565b61421581856141ab565b9350614220836141bc565b8060005b8381101561425157815161423888826141db565b9750614243836141f3565b925050600181019050614224565b5085935050505092915050565b600060208201905081810360008301526142788184614200565b905092915050565b60006040820190506142956000830185613bd0565b6142a26020830184613bd0565b9392505050565b6000806000606084860312156142c2576142c161392e565b5b60006142d086828701613b7b565b93505060206142e186828701613ac6565b92505060406142f286828701613ac6565b9150509250925092565b600080604083850312156143135761431261392e565b5b600061432185828601613b7b565b925050602061433285828601613e16565b9150509250929050565b600060408201905081810360008301526143568185613a4a565b9050818103602083015261436a8184613a4a565b90509392505050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6143b082613a39565b810181811067ffffffffffffffff821117156143cf576143ce614378565b5b80604052505050565b60006143e2613924565b90506143ee82826143a7565b919050565b600067ffffffffffffffff82111561440e5761440d614378565b5b61441782613a39565b9050602081019050919050565b82818337600083830152505050565b6000614446614441846143f3565b6143d8565b90508281526020810184848401111561446257614461614373565b5b61446d848285614424565b509392505050565b600082601f83011261448a57614489613e58565b5b813561449a848260208601614433565b91505092915050565b600080600080608085870312156144bd576144bc61392e565b5b60006144cb87828801613b7b565b94505060206144dc87828801613b7b565b93505060406144ed87828801613ac6565b925050606085013567ffffffffffffffff81111561450e5761450d613933565b5b61451a87828801614475565b91505092959194509250565b600060c08201905061453b600083018961411e565b614548602083018861412d565b614555604083018761412d565b614562606083018661411e565b61456f608083018561412d565b61457c60a083018461412d565b979650505050505050565b60006020828403121561459d5761459c61392e565b5b60006145ab84828501613d1d565b91505092915050565b6080820160008201516145ca6000850182613fd9565b5060208201516145dd6020850182613fe8565b5060408201516145f06040850182613ff7565b5060608201516146036060850182614015565b50505050565b600060808201905061461e60008301846145b4565b92915050565b6000806040838503121561463b5761463a61392e565b5b600061464985828601613b7b565b925050602061465a85828601613b7b565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806146ab57607f821691505b6020821081036146be576146bd614664565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006146fe82613aa5565b915061470983613aa5565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614742576147416146c4565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061478782613aa5565b915061479283613aa5565b9250826147a2576147a161474d565b5b828204905092915050565b60006147b882613aa5565b91506147c383613aa5565b9250826147d3576147d261474d565b5b828206905092915050565b6000819050919050565b600060ff82169050919050565b600061481061480b614806846147de565b613d85565b6147e8565b9050919050565b614820816147f5565b82525050565b600060208201905061483b6000830184614817565b92915050565b600061484c82613aa5565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361487e5761487d6146c4565b5b600182019050919050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026148f67fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826148b9565b61490086836148b9565b95508019841693508086168417925050509392505050565b600061493361492e61492984613aa5565b613d85565b613aa5565b9050919050565b6000819050919050565b61494d83614918565b6149616149598261493a565b8484546148c6565b825550505050565b600090565b614976614969565b614981818484614944565b505050565b5b818110156149a55761499a60008261496e565b600181019050614987565b5050565b601f8211156149ea576149bb81614894565b6149c4846148a9565b810160208510156149d3578190505b6149e76149df856148a9565b830182614986565b50505b505050565b600082821c905092915050565b6000614a0d600019846008026149ef565b1980831691505092915050565b6000614a2683836149fc565b9150826002028217905092915050565b614a408383614889565b67ffffffffffffffff811115614a5957614a58614378565b5b614a638254614693565b614a6e8282856149a9565b6000601f831160018114614a9d5760008415614a8b578287013590505b614a958582614a1a565b865550614afd565b601f198416614aab86614894565b60005b82811015614ad357848901358255600182019150602085019450602081019050614aae565b86831015614af05784890135614aec601f8916826149fc565b8355505b6001600288020188555050505b50505050505050565b60008154614b1381614693565b614b1d81866139fe565b94506001821660008114614b385760018114614b4e57614b81565b60ff198316865281151560200286019350614b81565b614b5785614894565b60005b83811015614b7957815481890152600182019150602081019050614b5a565b808801955050505b50505092915050565b60006020820190508181036000830152614ba48184614b06565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000614be682613aa5565b9150614bf183613aa5565b9250828201905080821115614c0957614c086146c4565b5b92915050565b6000606082019050614c246000830186613bd0565b614c316020830185613bd0565b614c3e6040830184613bd0565b949350505050565b6000819050919050565b6000614c6b614c66614c6184614c46565b613d85565b6147e8565b9050919050565b614c7b81614c50565b82525050565b6000602082019050614c966000830184614c72565b92915050565b6000819050919050565b6000614cc1614cbc614cb784614c9c565b613d85565b6147e8565b9050919050565b614cd181614ca6565b82525050565b6000602082019050614cec6000830184614cc8565b92915050565b6000819050919050565b6000614d17614d12614d0d84614cf2565b613d85565b6147e8565b9050919050565b614d2781614cfc565b82525050565b6000602082019050614d426000830184614d1e565b92915050565b6000614d5382613cf2565b9150614d5e83613cf2565b9250828201905067ffffffffffffffff811115614d7e57614d7d6146c4565b5b92915050565b6000819050919050565b6000614da9614da4614d9f84614d84565b613d85565b6147e8565b9050919050565b614db981614d8e565b82525050565b6000602082019050614dd46000830184614db0565b92915050565b6000614df5614df0614deb84613cf2565b613d85565b613aa5565b9050919050565b614e0581614dda565b82525050565b6000604082019050614e206000830185614dfc565b614e2d6020830184613bd0565b9392505050565b7f746f6b656e206e6f742065786973740000000000000000000000000000000000600082015250565b6000614e6a600f836139fe565b9150614e7582614e34565b602082019050919050565b60006020820190508181036000830152614e9981614e5d565b9050919050565b6000819050919050565b6000614ec5614ec0614ebb84614ea0565b613d85565b6147e8565b9050919050565b614ed581614eaa565b82525050565b6000602082019050614ef06000830184614ecc565b92915050565b6000614f0182613aa5565b9150614f0c83613aa5565b9250828203905081811115614f2457614f236146c4565b5b92915050565b6000819050919050565b6000614f4f614f4a614f4584614f2a565b613d85565b6147e8565b9050919050565b614f5f81614f34565b82525050565b6000602082019050614f7a6000830184614f56565b92915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614fdc6026836139fe565b9150614fe782614f80565b604082019050919050565b6000602082019050818103600083015261500b81614fcf565b9050919050565b60006040820190506150276000830185613b3a565b6150346020830184613b3a565b9392505050565b60008151905061504a81613dff565b92915050565b6000602082840312156150665761506561392e565b5b60006150748482850161503b565b91505092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006150b36020836139fe565b91506150be8261507d565b602082019050919050565b600060208201905081810360008301526150e2816150a6565b9050919050565b6000819050919050565b600061510e615109615104846150e9565b613d85565b6147e8565b9050919050565b61511e816150f3565b82525050565b60006020820190506151396000830184615115565b92915050565b600081905092915050565b6000615155826139f3565b61515f818561513f565b935061516f818560208601613a0f565b80840191505092915050565b6000615187828561514a565b9150615193828461514a565b91508190509392505050565b600081519050919050565b600082825260208201905092915050565b60006151c68261519f565b6151d081856151aa565b93506151e0818560208601613a0f565b6151e981613a39565b840191505092915050565b60006080820190506152096000830187613b3a565b6152166020830186613b3a565b6152236040830185613bd0565b818103606083015261523581846151bb565b905095945050505050565b60008151905061524f81613964565b92915050565b60006020828403121561526b5761526a61392e565b5b600061527984828501615240565b9150509291505056fea2646970667358221220b1e14a5b3fdb7f1c77d61541c89349b4ac51eb8d2e93f1af707e5a7355edd59664736f6c63430008100033

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

000000000000000000000000000000000000000000000000000000000000030900000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001

-----Decoded View---------------
Arg [0] : collectionSize_ (uint256): 777
Arg [1] : maxBatchSize_ (uint256): 1
Arg [2] : amountForDevs_ (uint256): 1

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000309
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000001


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

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