ETH Price: $3,100.34 (-1.01%)
Gas: 8.86 Gwei

Token

Hot Dougs (DOUGS)
 

Overview

Max Total Supply

6,969 DOUGS

Holders

1,561

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
58 DOUGS
0x1d8173b9c02b52faa6e7a9368e708f268f61b6a8
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Hot Dougs is an NFT collection featuring 6,969 editions of “Doug”, an endearing hot dog living in a world of hungry humans. An unlikely hero and endearing underdog, Doug survives by donning elaborate disguises to blend in with the world around him.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
HotDougs

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
No with 200 runs

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

/*
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxdolc,........''',,,;:cloxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxdoc;,...                     ..':ldxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxo:,..                                .:oxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxdc'.                .. ......   ....      .lxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxl'                ..  ........  ......      .cxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxc.    .  ...      ..... ......                .:dxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxl.    .  ...     .  . .                         .,:clodxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxo'       .  .      .. ..            ...  ....         ...,:ldxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxd;    .  .....      ..          .'...''.  ',......'......    .'cdxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxc.    ...  ..              ..    .  .'...''...,'....   ......   ;dxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxo'      ..  ..    .       ...  ..  .'....,'..',.    .   .'. .'.  ;dxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxx;    .. ..  .         ....  ...  ......',...'..       ..... .  .;dxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxo.   . . .. . .      ..','..........   .'.  ..   ...   ..     .,lxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxc.   .                .                      .. .....       .;oxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxx:.      .           ....',,,,;;;;;;;,,,''.....          .';ldxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxc.            ..',;:clooooooooooooooooooooollcc:;'  .':coxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxo.       ..,:loxxdoooooooooooooooooooooooooooooooc. .oxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxd;  .,;:clodxxdl::;;;;;;;;;;;,,,,,,,,,,,,,,,,,,,,'.  ';;;;:lxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxd,  ,oooooodxx:.                                           ,dxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxd'  ;oooooodxxdl:;,'..  .;.                                ;xxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxo' .:ooooooxxxxxxoooo,  oK;              ..               .lxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxo. .:ooooooxxxxxdooooc. :KOl,           .:l;.            .:dxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxo. .:ooooooxxxxxdoooooc'.,dOx;        .,cooo:.          .cdxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxo. .:oooooodxxxxdooooool;.....     ..';;:cc::::,.   .;:ldxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxo. .:oooooodxxxxdooooooooolcc:::::;,'.        .,'  .oxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxo. .:oooooodxxxxdoooooooooooolc;,..                .;:ldxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxo:'  .:oooooodxxxxdoooooooooooc'.                      .;dxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxo:'.     ;oooooooddddoooooooooooooc;'....',;;:::;,'..   .:odxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxo;.  .,;.  .',,;coooooooooooooooooooooooooooooooooooooc. .lxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxl,.  '::'........ ..,:looooooooooooooooooooooooooooooooo:. .oxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxo;.  'cooccldxkkkkxo:'. .,cooooooooooooooooooooooooooooooo,  .,lxthankxyouxbohzxxxxxxxxx
xxxxxxxxxxdc.  'coddkO00000000000Od;. .,cooooooooooooooooooooooooooool.    .,oxxxxxxxxxxxxxxxxxxxxxx
CHENKOxxxo,  .;oddxO000000000000000Ox:. .,looooooooooooooooooooooooooc. .lc. .:dxxxxxxxxxxxxxxxxxxxx
DANGYWING   'coddkO000000000000000000Od,  .cooooooooooooooooooooooooo;. ,k0x;  'lxxxxxxxxxxxxxxxxxxx
HOPPERxl.  ,ldddkO000000000000000000000kc. .:oooooooooooooooooooooooo,  ;O00Ol. .:dxxxxxxxxxxxxxxxxx
xTIG_BO  ;odddkO00000000000000000000000Ol. .cooooooooooooooooooooooo,  cO000Od'  ;dxxxxxxxxxxxxxxxxx
xxxxxo'  ,odddk00000000000000000000000000Oc. .coooooooooooooooooooool' .c000000x,  ;dxxxxxxxxxxxxxxx
xxxxd,  'odddk0000000000000000000000000000k;  ,looooooc::cloooooooool' .l0000000x,  ;dxxxxxxxxxxxxxx
xxxx:. .ldddkO00000000OOxdxkO00000000000000d. .:ooooc'.',,';loooooool' .l00000000d. .cxxxxxxxxxxxxxx
xxxo. .:oddxO0000000Od:.....:x0000000000000Oc  'loo:.'cxOkc.;oooooooo'  c00000000Ol. .oxxxxxxxxxxxxx
xxx:  'ldddk0000000Ol. .','. ,x0000000000000d. .:ol'.cdk00O;.cooooooo,  :O00000000k;  ;dxxxxxxxxxxxx
xxd'  ;oddxO0000000o. .:ooo,  :O000000000000O;  ,ll'.cdxO00d.,ooooooo;  ;O000000000o. .lxxxxxxxxxxxx
xxl. .cdddk0000000k;  ,ooooc. 'x0000000000000l. 'lo:.,oddkOOc.,looooo:. ,k000000000k,  .:dxxxxxxxxxx
xx:. 'odoxO0000000x. .cooool. .o0000000000000o. .coo;.,lddxOOo;',:looc. 'x000000000O:    ,oxxCHENKOx
xx;  ,oddxO0000000o. .cooooo' .c0000000000000d. .:ooo:'.;ldxO0Odc,',cc. .d0000000000l.    ,oxxxxxxxx
xd,  ;dddxO0000000o. .looooo;  :O000000000000x' .:ooool:'.;loxO0K0d,.:' .l0000000000o. ..  ;dxxxxxxx
xd'  :dddxO0000000o. .looooo:. ,k000000000000k, .:ooooool;...,x00KKx'''  :O000000000d. .,. .cxxxxxxx
xd' .:dddk00000000o. .loooooc. 'x000000000000k, .;ooooooool, 'x000KO,',. ,k000000000d. .:,  ,dxxxxxx
xd' .:dddk00000000d. .coooooc. .d000000000000k,  ;ooooooool,.:O00KKd.,:. .d000000000x' .::. .lxxxxxx
xd' .:dddk00000000x' .coooool. .o000000000000k,  ;oooooool,.,x0000O:.:l' .o000000000x' .:c. .:xxxxxx
*/

import "./ERC721A.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

/// @title Hot Dougs
contract HotDougs is Ownable, ReentrancyGuard, ERC721A("Hot Dougs", "DOUGS") {
    using Strings for uint256;
    using MerkleProof for bytes32[];

    /// @notice Max total supply.
    uint256 public dougsMax = 6969;

    /// @notice Max transaction amount.
    uint256 public constant dougsPerTx = 10;

    /// @notice Max Dougs per wallet in pre-sale
    uint256 public constant dougsMintPerWalletPresale = 3;

    /// @notice Total Dougs available in pre-sale
    uint256 public constant maxPreSaleDougs = 3000;

    /// @notice Dougs price.
    uint256 public constant dougsPrice = 0.05 ether;

    /// @notice 0 = closed, 1 = pre-sale, 2 = public
    uint256 public saleState;

    /// @notice Metadata baseURI.
    string public baseURI;

    /// @notice Metadata unrevealed uri.
    string public unrevealedURI;

    /// @notice Metadata baseURI extension.
    string public baseExtension;

    /// @notice OpenSea proxy registry.
    address public opensea = 0xa5409ec958C83C3f309868babACA7c86DCB077c1;

    /// @notice LooksRare marketplace transfer manager.
    address public looksrare = 0xf42aa99F011A1fA7CDA90E5E98b277E306BcA83e;

    /// @notice Check if marketplaces pre-approve is enabled.
    bool public marketplacesApproved = true;

    /// @notice Free mint merkle root.
    bytes32 public freeMintRoot;

    /// @notice Pre-sale merkle root.
    bytes32 public preMintRoot;

    /// @notice Amount minted by address on free mint.
    mapping(address => uint256) public freeMintCount;

    /// @notice Amount minted by address on pre access.
    mapping(address => uint256) public preMintCount;

    /// @notice Authorized callers mapping.
    mapping(address => bool) public auth;

    modifier canMintDougs(uint256 numberOfTokens) {
        require(
            totalSupply() + numberOfTokens <= dougsMax,
            "Not enough Dougs remaining to mint"
        );
        _;
    }

    modifier preSaleActive() {
        require(saleState == 1, "Pre sale is not open");
        _;
    }

    modifier publicSaleActive() {
        require(saleState == 2, "Public sale is not open");
        _;
    }

    modifier isValidMerkleProof(bytes32[] calldata merkleProof, bytes32 root) {
        require(
            MerkleProof.verify(
                merkleProof,
                root,
                keccak256(abi.encodePacked(msg.sender))
            ),
            "Address does not exist in list"
        );
        _;
    }

    modifier isCorrectPayment(uint256 price, uint256 numberOfTokens) {
        require(
            price * numberOfTokens == msg.value,
            "Incorrect ETH value sent"
        );
        _;
    }

    modifier maxDougsPerTransaction(uint256 numberOfTokens) {
        require(
            numberOfTokens <= dougsPerTx,
            "Max Dougs to mint per transaction is 10"
        );
        _;
    }

    constructor(string memory newUnrevealedURI) {
        unrevealedURI = newUnrevealedURI;
    }

    /// @notice Mint one free token and up to 3 pre-sale tokens.
    function mintFree(uint256 numberOfTokens, bytes32[] calldata merkleProof)
        external
        payable
        nonReentrant
        preSaleActive
        isCorrectPayment(dougsPrice, numberOfTokens - 1)
        isValidMerkleProof(merkleProof, freeMintRoot)
    {
        if (msg.sender != owner()) {
            require(
                freeMintCount[msg.sender] == 0,
                "User already minted a free token"
            );
            uint256 numAlreadyMinted = preMintCount[msg.sender];

            require(
                numAlreadyMinted + numberOfTokens - 1 <=
                    dougsMintPerWalletPresale,
                "Max Dougs to mint in pre-sale is three"
            );

            require(
                totalSupply() + numberOfTokens <= maxPreSaleDougs,
                "Not enough Dougs remaining in pre-sale"
            );

            preMintCount[msg.sender] = numAlreadyMinted + numberOfTokens;

            freeMintCount[msg.sender]++;
        }
        _safeMint(msg.sender, numberOfTokens);
    }

    /// @notice Mint one or more tokens for address on pre-sale list.
    function mintPreDoug(uint256 numberOfTokens, bytes32[] calldata merkleProof)
        external
        payable
        nonReentrant
        preSaleActive
        isCorrectPayment(dougsPrice, numberOfTokens)
        isValidMerkleProof(merkleProof, preMintRoot)
    {
        uint256 numAlreadyMinted = preMintCount[msg.sender];

        require(
            numAlreadyMinted + numberOfTokens <= dougsMintPerWalletPresale,
            "Max Dougs to mint in pre-sale is three"
        );

        require(
            totalSupply() + numberOfTokens <= maxPreSaleDougs,
            "Not enough Dougs remaining in pre-sale"
        );

        preMintCount[msg.sender] += numberOfTokens;

        _safeMint(msg.sender, numberOfTokens);
    }

    /// @notice Mint one or more tokens.
    function mintDoug(uint256 numberOfTokens)
        external
        payable
        nonReentrant
        publicSaleActive
        isCorrectPayment(dougsPrice, numberOfTokens)
        canMintDougs(numberOfTokens)
        maxDougsPerTransaction(numberOfTokens)
    {
        _safeMint(msg.sender, numberOfTokens);
    }

    /// @notice Allow contract owner to mint tokens.
    function ownerMint(uint256 numberOfTokens)
        external
        onlyOwner
        canMintDougs(numberOfTokens)
    {
        _safeMint(msg.sender, numberOfTokens);
    }

    /// @notice See {IERC721-tokenURI}.
    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );
        if (bytes(unrevealedURI).length > 0) return unrevealedURI;
        return
            string(
                abi.encodePacked(baseURI, tokenId.toString(), baseExtension)
            );
    }

    /// @notice Set baseURI to `newBaseURI`, baseExtension to `newBaseExtension` and deletes unrevealedURI, triggering a reveal.
    function setBaseURI(
        string memory newBaseURI,
        string memory newBaseExtension
    ) external onlyOwner {
        baseURI = newBaseURI;
        baseExtension = newBaseExtension;
        delete unrevealedURI;
    }

    /// @notice Set unrevealedURI to `newUnrevealedURI`.
    function setUnrevealedURI(string memory newUnrevealedURI)
        external
        onlyOwner
    {
        unrevealedURI = newUnrevealedURI;
    }

    /// @notice Set sale state. 0 = closed 1 = pre-sale 2 = public.
    function setSaleState(uint256 newSaleState) external onlyOwner {
        saleState = newSaleState;
    }

    /// @notice Set freeMintRoot to `newMerkleRoot`.
    function setFreeMintRoot(bytes32 newMerkleRoot) external onlyOwner {
        freeMintRoot = newMerkleRoot;
    }

    /// @notice Set preMintRoot to `newMerkleRoot`.
    function setPreMintRoot(bytes32 newMerkleRoot) external onlyOwner {
        preMintRoot = newMerkleRoot;
    }

    /// @notice Update Total Supply
    function setMaxDougs(uint256 _supply) external onlyOwner {
        dougsMax = _supply;
    }

    /// @notice Toggle marketplaces pre-approve feature.
    function toggleMarketplacesApproved() external onlyOwner {
        marketplacesApproved = !marketplacesApproved;
    }

    /// @notice Withdraw balance to Owner
    function withdrawMoney() external onlyOwner nonReentrant {
        (bool success, ) = msg.sender.call{value: address(this).balance}("");
        require(success, "Transfer failed.");
    }

    /// @notice See {ERC721-isApprovedForAll}.
    function isApprovedForAll(address owner, address operator)
        public
        view
        override
        returns (bool)
    {
        if (!marketplacesApproved)
            return auth[operator] || super.isApprovedForAll(owner, operator);
        return
            auth[operator] ||
            operator == address(ProxyRegistry(opensea).proxies(owner)) ||
            operator == looksrare ||
            super.isApprovedForAll(owner, operator);
    }
}

contract OwnableDelegateProxy {}

contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

File 2 of 14 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
 *
 * Does not support burning tokens to address(0).
 *
 * Assumes that an owner cannot have more than the 2**128 - 1 (max value of uint128) of supply
 */
contract ERC721A is
    Context,
    ERC165,
    IERC721,
    IERC721Metadata,
    IERC721Enumerable
{
    using Address for address;
    using Strings for uint256;

    struct TokenOwnership {
        address addr;
        uint64 startTimestamp;
    }

    struct AddressData {
        uint128 balance;
        uint128 numberMinted;
    }

    uint256 internal currentIndex;

    // 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 ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

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

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

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

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view override returns (uint256) {
        return currentIndex;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index)
        public
        view
        override
        returns (uint256)
    {
        require(index < totalSupply(), "ERC721A: global index out of bounds");
        return index;
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
     * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index)
        public
        view
        override
        returns (uint256)
    {
        require(index < balanceOf(owner), "ERC721A: owner index out of bounds");
        uint256 numMintedSoFar = totalSupply();
        uint256 tokenIdsIdx;
        address currOwnershipAddr;

        // Counter overflow is impossible as the loop breaks when uint256 i is equal to another uint256 numMintedSoFar.
        unchecked {
            for (uint256 i; i < numMintedSoFar; i++) {
                TokenOwnership memory ownership = _ownerships[i];
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    if (tokenIdsIdx == index) {
                        return i;
                    }
                    tokenIdsIdx++;
                }
            }
        }

        revert("ERC721A: unable to get token of owner by index");
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        require(
            owner != address(0),
            "ERC721A: balance query for the zero address"
        );
        return uint256(_addressData[owner].balance);
    }

    function _numberMinted(address owner) internal view returns (uint256) {
        require(
            owner != address(0),
            "ERC721A: number minted query for the zero address"
        );
        return uint256(_addressData[owner].numberMinted);
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function ownershipOf(uint256 tokenId)
        internal
        view
        returns (TokenOwnership memory)
    {
        require(_exists(tokenId), "ERC721A: owner query for nonexistent token");

        unchecked {
            for (uint256 curr = tokenId; curr >= 0; curr--) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (ownership.addr != address(0)) {
                    return ownership;
                }
            }
        }

        revert("ERC721A: unable to determine the owner of token");
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return ownershipOf(tokenId).addr;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );

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

    /**
     * @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, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ERC721A.ownerOf(tokenId);
        require(to != owner, "ERC721A: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721A: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId)
        public
        view
        override
        returns (address)
    {
        require(
            _exists(tokenId),
            "ERC721A: approved query for nonexistent token"
        );

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved)
        public
        override
    {
        require(operator != _msgSender(), "ERC721A: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator)
        public
        view
        virtual
        override
        returns (bool)
    {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public override {
        _transfer(from, to, tokenId);
        require(
            _checkOnERC721Received(from, to, tokenId, _data),
            "ERC721A: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @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 (`_mint`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return tokenId < currentIndex;
    }

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, 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.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        _mint(to, quantity, _data, true);
    }

    /**
     * @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.
     */
    function _mint(
        address to,
        uint256 quantity,
        bytes memory _data,
        bool safe
    ) internal {
        uint256 startTokenId = currentIndex;
        require(to != address(0), "ERC721A: mint to the zero address");
        require(quantity != 0, "ERC721A: quantity must be greater than 0");

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 3.4e38 (2**128) - 1
        // updatedIndex overflows if currentIndex + quantity > 1.56e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint128(quantity);
            _addressData[to].numberMinted += uint128(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;

            for (uint256 i; i < quantity; i++) {
                emit Transfer(address(0), to, updatedIndex);
                if (safe) {
                    require(
                        _checkOnERC721Received(
                            address(0),
                            to,
                            updatedIndex,
                            _data
                        ),
                        "ERC721A: transfer to non ERC721Receiver implementer"
                    );
                }

                updatedIndex++;
            }

            currentIndex = updatedIndex;
        }

        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) private {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
            getApproved(tokenId) == _msgSender() ||
            isApprovedForAll(prevOwnership.addr, _msgSender()));

        require(
            isApprovedOrOwner,
            "ERC721A: transfer caller is not owner nor approved"
        );

        require(
            prevOwnership.addr == from,
            "ERC721A: transfer from incorrect owner"
        );
        require(to != address(0), "ERC721A: transfer to the zero address");

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId, prevOwnership.addr);

        // 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 {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            _ownerships[tokenId].addr = to;
            _ownerships[tokenId].startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            if (_ownerships[nextTokenId].addr == address(0)) {
                if (_exists(nextTokenId)) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership
                        .startTimestamp;
                }
            }
        }

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

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(
        address to,
        uint256 tokenId,
        address owner
    ) private {
        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try
                IERC721Receiver(to).onERC721Received(
                    _msgSender(),
                    from,
                    tokenId,
                    _data
                )
            returns (bytes4 retval) {
                return retval == IERC721Receiver(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert(
                        "ERC721A: transfer to non ERC721Receiver implementer"
                    );
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     *
     * 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`.
     */
    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.
     *
     * 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` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

File 3 of 14 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

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

File 4 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        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 5 of 14 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 6 of 14 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 7 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, 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
    ) external;

    /**
     * @dev Transfers `tokenId` token 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;

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

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

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

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

File 8 of 14 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 9 of 14 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @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);
}

File 10 of 14 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 11 of 14 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 12 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 13 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 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"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"newUnrevealedURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"auth","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dougsMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dougsMintPerWalletPresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dougsPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dougsPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"freeMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeMintRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"looksrare","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketplacesApproved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPreSaleDougs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintDoug","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mintFree","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mintPreDoug","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"opensea","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"preMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preMintRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","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":"nonpayable","type":"function"},{"inputs":[],"name":"saleState","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"newBaseURI","type":"string"},{"internalType":"string","name":"newBaseExtension","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newMerkleRoot","type":"bytes32"}],"name":"setFreeMintRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_supply","type":"uint256"}],"name":"setMaxDougs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newMerkleRoot","type":"bytes32"}],"name":"setPreMintRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newSaleState","type":"uint256"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newUnrevealedURI","type":"string"}],"name":"setUnrevealedURI","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":[],"name":"toggleMarketplacesApproved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unrevealedURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawMoney","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052611b3960095573a5409ec958c83c3f309868babaca7c86dcb077c1600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073f42aa99f011a1fa7cda90e5e98b277e306bca83e600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600f60146101000a81548160ff021916908315150217905550348015620000dc57600080fd5b506040516200607c3803806200607c833981810160405281019062000102919062000502565b6040518060400160405280600981526020017f486f7420446f75677300000000000000000000000000000000000000000000008152506040518060400160405280600581526020017f444f5547530000000000000000000000000000000000000000000000000000008152506200018e62000182620001e960201b60201c565b620001f160201b60201c565b600180819055508160039080519060200190620001ad929190620002b5565b508060049080519060200190620001c6929190620002b5565b50505080600c9080519060200190620001e1929190620002b5565b5050620005b8565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002c39062000582565b90600052602060002090601f016020900481019282620002e7576000855562000333565b82601f106200030257805160ff191683800117855562000333565b8280016001018555821562000333579182015b828111156200033257825182559160200191906001019062000315565b5b50905062000342919062000346565b5090565b5b808211156200036157600081600090555060010162000347565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620003ce8262000383565b810181811067ffffffffffffffff82111715620003f057620003ef62000394565b5b80604052505050565b60006200040562000365565b9050620004138282620003c3565b919050565b600067ffffffffffffffff82111562000436576200043562000394565b5b620004418262000383565b9050602081019050919050565b60005b838110156200046e57808201518184015260208101905062000451565b838111156200047e576000848401525b50505050565b60006200049b620004958462000418565b620003f9565b905082815260208101848484011115620004ba57620004b96200037e565b5b620004c78482856200044e565b509392505050565b600082601f830112620004e757620004e662000379565b5b8151620004f984826020860162000484565b91505092915050565b6000602082840312156200051b576200051a6200036f565b5b600082015167ffffffffffffffff8111156200053c576200053b62000374565b5b6200054a84828501620004cf565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200059b57607f821691505b60208210811415620005b257620005b162000553565b5b50919050565b615ab480620005c86000396000f3fe6080604052600436106102935760003560e01c80636ce5d9991161015a578063a886c377116100c1578063cd5d21181161007a578063cd5d2118146109b9578063e985e9c5146109f6578063f19e75d414610a33578063f2fde38b14610a5c578063fafe84d214610a85578063fe2c7fee14610ac257610293565b8063a886c377146108bb578063a8e90b57146108e6578063ac44600214610911578063b88d4fde14610928578063c668286214610951578063c87b56dd1461097c57610293565b806386a21e1c1161011357806386a21e1c146107bb5780638da5cb5b146107e657806395d89b41146108115780639adef07e1461083c578063a22cb46514610867578063a25ba8f21461089057610293565b80636ce5d999146106cc5780637035bf18146106f757806370a082311461072257806370c425751461075f578063715018a61461078857806373f5e73e1461079f57610293565b8063341927ea116101fe578063603f4d52116101b7578063603f4d52146105be5780636352211e146105e957806364027461146106265780636790a9de1461064f5780636c0360eb146106785780636c9604d2146106a357610293565b8063341927ea146104b857806342842e0e146104d457806349de32ff146104fd5780634f6ccce714610519578063511ed382146105565780635ecf8a801461058157610293565b80630b89ada9116102505780630b89ada9146103ba57806318160ddd146103e557806323b872dd14610410578063278c9871146104395780632f745c591461046457806333c12e17146104a157610293565b806301ffc9a714610298578063026ae102146102d557806306fdde0314610300578063081812fc1461032b578063084c408814610368578063095ea7b314610391575b600080fd5b3480156102a457600080fd5b506102bf60048036038101906102ba9190613d3d565b610aeb565b6040516102cc9190613d85565b60405180910390f35b3480156102e157600080fd5b506102ea610c35565b6040516102f79190613d85565b60405180910390f35b34801561030c57600080fd5b50610315610c48565b6040516103229190613e39565b60405180910390f35b34801561033757600080fd5b50610352600480360381019061034d9190613e91565b610cda565b60405161035f9190613eff565b60405180910390f35b34801561037457600080fd5b5061038f600480360381019061038a9190613e91565b610d5f565b005b34801561039d57600080fd5b506103b860048036038101906103b39190613f46565b610de5565b005b3480156103c657600080fd5b506103cf610efe565b6040516103dc9190613f95565b60405180910390f35b3480156103f157600080fd5b506103fa610f04565b6040516104079190613f95565b60405180910390f35b34801561041c57600080fd5b5061043760048036038101906104329190613fb0565b610f0e565b005b34801561044557600080fd5b5061044e610f1e565b60405161045b9190613f95565b60405180910390f35b34801561047057600080fd5b5061048b60048036038101906104869190613f46565b610f23565b6040516104989190613f95565b60405180910390f35b3480156104ad57600080fd5b506104b6611115565b005b6104d260048036038101906104cd9190614068565b6111bd565b005b3480156104e057600080fd5b506104fb60048036038101906104f69190613fb0565b6115db565b005b61051760048036038101906105129190614068565b6115fb565b005b34801561052557600080fd5b50610540600480360381019061053b9190613e91565b6118f6565b60405161054d9190613f95565b60405180910390f35b34801561056257600080fd5b5061056b611949565b6040516105789190613eff565b60405180910390f35b34801561058d57600080fd5b506105a860048036038101906105a391906140c8565b61196f565b6040516105b59190613f95565b60405180910390f35b3480156105ca57600080fd5b506105d3611987565b6040516105e09190613f95565b60405180910390f35b3480156105f557600080fd5b50610610600480360381019061060b9190613e91565b61198d565b60405161061d9190613eff565b60405180910390f35b34801561063257600080fd5b5061064d60048036038101906106489190613e91565b6119a3565b005b34801561065b57600080fd5b5061067660048036038101906106719190614225565b611a29565b005b34801561068457600080fd5b5061068d611ae5565b60405161069a9190613e39565b60405180910390f35b3480156106af57600080fd5b506106ca60048036038101906106c591906142d3565b611b73565b005b3480156106d857600080fd5b506106e1611bf9565b6040516106ee919061430f565b60405180910390f35b34801561070357600080fd5b5061070c611bff565b6040516107199190613e39565b60405180910390f35b34801561072e57600080fd5b50610749600480360381019061074491906140c8565b611c8d565b6040516107569190613f95565b60405180910390f35b34801561076b57600080fd5b50610786600480360381019061078191906142d3565b611d76565b005b34801561079457600080fd5b5061079d611dfc565b005b6107b960048036038101906107b49190613e91565b611e84565b005b3480156107c757600080fd5b506107d0612022565b6040516107dd9190613f95565b60405180910390f35b3480156107f257600080fd5b506107fb61202d565b6040516108089190613eff565b60405180910390f35b34801561081d57600080fd5b50610826612056565b6040516108339190613e39565b60405180910390f35b34801561084857600080fd5b506108516120e8565b60405161085e9190613f95565b60405180910390f35b34801561087357600080fd5b5061088e60048036038101906108899190614356565b6120ee565b005b34801561089c57600080fd5b506108a561226f565b6040516108b29190613f95565b60405180910390f35b3480156108c757600080fd5b506108d0612274565b6040516108dd919061430f565b60405180910390f35b3480156108f257600080fd5b506108fb61227a565b6040516109089190613eff565b60405180910390f35b34801561091d57600080fd5b506109266122a0565b005b34801561093457600080fd5b5061094f600480360381019061094a9190614437565b612420565b005b34801561095d57600080fd5b5061096661247c565b6040516109739190613e39565b60405180910390f35b34801561098857600080fd5b506109a3600480360381019061099e9190613e91565b61250a565b6040516109b09190613e39565b60405180910390f35b3480156109c557600080fd5b506109e060048036038101906109db91906140c8565b612633565b6040516109ed9190613d85565b60405180910390f35b348015610a0257600080fd5b50610a1d6004803603810190610a1891906144ba565b612653565b604051610a2a9190613d85565b60405180910390f35b348015610a3f57600080fd5b50610a5a6004803603810190610a559190613e91565b61285e565b005b348015610a6857600080fd5b50610a836004803603810190610a7e91906140c8565b612940565b005b348015610a9157600080fd5b50610aac6004803603810190610aa791906140c8565b612a38565b604051610ab99190613f95565b60405180910390f35b348015610ace57600080fd5b50610ae96004803603810190610ae491906144fa565b612a50565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610bb657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c1e57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c2e5750610c2d82612ae6565b5b9050919050565b600f60149054906101000a900460ff1681565b606060038054610c5790614572565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8390614572565b8015610cd05780601f10610ca557610100808354040283529160200191610cd0565b820191906000526020600020905b815481529060010190602001808311610cb357829003601f168201915b5050505050905090565b6000610ce582612b50565b610d24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1b90614616565b60405180910390fd5b6007600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610d67612b5e565b73ffffffffffffffffffffffffffffffffffffffff16610d8561202d565b73ffffffffffffffffffffffffffffffffffffffff1614610ddb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dd290614682565b60405180910390fd5b80600a8190555050565b6000610df08261198d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5890614714565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610e80612b5e565b73ffffffffffffffffffffffffffffffffffffffff161480610eaf5750610eae81610ea9612b5e565b612653565b5b610eee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee5906147a6565b60405180910390fd5b610ef9838383612b66565b505050565b610bb881565b6000600254905090565b610f19838383612c18565b505050565b600381565b6000610f2e83611c8d565b8210610f6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6690614838565b60405180910390fd5b6000610f79610f04565b905060008060005b838110156110d3576000600560008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461107357806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156110c557868414156110bc57819550505050505061110f565b83806001019450505b508080600101915050610f81565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611106906148ca565b60405180910390fd5b92915050565b61111d612b5e565b73ffffffffffffffffffffffffffffffffffffffff1661113b61202d565b73ffffffffffffffffffffffffffffffffffffffff1614611191576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118890614682565b60405180910390fd5b600f60149054906101000a900460ff1615600f60146101000a81548160ff021916908315150217905550565b60026001541415611203576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111fa90614936565b60405180910390fd5b60026001819055506001600a5414611250576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611247906149a2565b60405180910390fd5b66b1a2bc2ec5000060018461126591906149f1565b3481836112729190614a25565b146112b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112a990614acb565b60405180910390fd5b8383601054611329838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050823360405160200161130e9190614b33565b60405160208183030381529060405280519060200120613158565b611368576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135f90614b9a565b60405180910390fd5b61137061202d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146115c0576000601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414611424576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141b90614c06565b60405180910390fd5b6000601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600360018a836114789190614c26565b61148291906149f1565b11156114c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ba90614cee565b60405180910390fd5b610bb8896114cf610f04565b6114d99190614c26565b111561151a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151190614d80565b60405180910390fd5b88816115269190614c26565b601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906115b990614da0565b9190505550505b6115ca338961316f565b505050505060018081905550505050565b6115f683838360405180602001604052806000815250612420565b505050565b60026001541415611641576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163890614936565b60405180910390fd5b60026001819055506001600a541461168e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611685906149a2565b60405180910390fd5b66b1a2bc2ec50000833481836116a49190614a25565b146116e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116db90614acb565b60405180910390fd5b838360115461175b838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505082336040516020016117409190614b33565b60405160208183030381529060405280519060200120613158565b61179a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179190614b9a565b60405180910390fd5b6000601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600389826117ec9190614c26565b111561182d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182490614cee565b60405180910390fd5b610bb889611839610f04565b6118439190614c26565b1115611884576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187b90614d80565b60405180910390fd5b88601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118d39190614c26565b925050819055506118e4338a61316f565b50505050505060018081905550505050565b6000611900610f04565b8210611941576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193890614e5b565b60405180910390fd5b819050919050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60126020528060005260406000206000915090505481565b600a5481565b60006119988261318d565b600001519050919050565b6119ab612b5e565b73ffffffffffffffffffffffffffffffffffffffff166119c961202d565b73ffffffffffffffffffffffffffffffffffffffff1614611a1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1690614682565b60405180910390fd5b8060098190555050565b611a31612b5e565b73ffffffffffffffffffffffffffffffffffffffff16611a4f61202d565b73ffffffffffffffffffffffffffffffffffffffff1614611aa5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9c90614682565b60405180910390fd5b81600b9080519060200190611abb929190613bb4565b5080600d9080519060200190611ad2929190613bb4565b50600c6000611ae19190613c3a565b5050565b600b8054611af290614572565b80601f0160208091040260200160405190810160405280929190818152602001828054611b1e90614572565b8015611b6b5780601f10611b4057610100808354040283529160200191611b6b565b820191906000526020600020905b815481529060010190602001808311611b4e57829003601f168201915b505050505081565b611b7b612b5e565b73ffffffffffffffffffffffffffffffffffffffff16611b9961202d565b73ffffffffffffffffffffffffffffffffffffffff1614611bef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be690614682565b60405180910390fd5b8060118190555050565b60115481565b600c8054611c0c90614572565b80601f0160208091040260200160405190810160405280929190818152602001828054611c3890614572565b8015611c855780601f10611c5a57610100808354040283529160200191611c85565b820191906000526020600020905b815481529060010190602001808311611c6857829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611cfe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf590614eed565b60405180910390fd5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b611d7e612b5e565b73ffffffffffffffffffffffffffffffffffffffff16611d9c61202d565b73ffffffffffffffffffffffffffffffffffffffff1614611df2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de990614682565b60405180910390fd5b8060108190555050565b611e04612b5e565b73ffffffffffffffffffffffffffffffffffffffff16611e2261202d565b73ffffffffffffffffffffffffffffffffffffffff1614611e78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e6f90614682565b60405180910390fd5b611e826000613327565b565b60026001541415611eca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec190614936565b60405180910390fd5b60026001819055506002600a5414611f17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0e90614f59565b60405180910390fd5b66b1a2bc2ec5000081348183611f2d9190614a25565b14611f6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6490614acb565b60405180910390fd5b8260095481611f7a610f04565b611f849190614c26565b1115611fc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fbc90614feb565b60405180910390fd5b83600a81111561200a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120019061507d565b60405180910390fd5b612014338661316f565b505050506001808190555050565b66b1a2bc2ec5000081565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606004805461206590614572565b80601f016020809104026020016040519081016040528092919081815260200182805461209190614572565b80156120de5780601f106120b3576101008083540402835291602001916120de565b820191906000526020600020905b8154815290600101906020018083116120c157829003601f168201915b5050505050905090565b60095481565b6120f6612b5e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612164576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215b906150e9565b60405180910390fd5b8060086000612171612b5e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661221e612b5e565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516122639190613d85565b60405180910390a35050565b600a81565b60105481565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6122a8612b5e565b73ffffffffffffffffffffffffffffffffffffffff166122c661202d565b73ffffffffffffffffffffffffffffffffffffffff161461231c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231390614682565b60405180910390fd5b60026001541415612362576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161235990614936565b60405180910390fd5b600260018190555060003373ffffffffffffffffffffffffffffffffffffffff16476040516123909061513a565b60006040518083038185875af1925050503d80600081146123cd576040519150601f19603f3d011682016040523d82523d6000602084013e6123d2565b606091505b5050905080612416576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161240d9061519b565b60405180910390fd5b5060018081905550565b61242b848484612c18565b612437848484846133eb565b612476576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246d9061522d565b60405180910390fd5b50505050565b600d805461248990614572565b80601f01602080910402602001604051908101604052809291908181526020018280546124b590614572565b80156125025780601f106124d757610100808354040283529160200191612502565b820191906000526020600020905b8154815290600101906020018083116124e557829003601f168201915b505050505081565b606061251582612b50565b612554576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161254b906152bf565b60405180910390fd5b6000600c805461256390614572565b905011156125fd57600c805461257890614572565b80601f01602080910402602001604051908101604052809291908181526020018280546125a490614572565b80156125f15780601f106125c6576101008083540402835291602001916125f1565b820191906000526020600020905b8154815290600101906020018083116125d457829003601f168201915b5050505050905061262e565b600b61260883613573565b600d60405160200161261c939291906153af565b60405160208183030381529060405290505b919050565b60146020528060005260406000206000915054906101000a900460ff1681565b6000600f60149054906101000a900460ff166126ce57601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806126c757506126c683836136d4565b5b9050612858565b601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806127ec5750600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c4552791846040518263ffffffff1660e01b815260040161277c9190613eff565b602060405180830381865afa158015612799573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127bd919061541e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b806128445750600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b80612855575061285483836136d4565b5b90505b92915050565b612866612b5e565b73ffffffffffffffffffffffffffffffffffffffff1661288461202d565b73ffffffffffffffffffffffffffffffffffffffff16146128da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128d190614682565b60405180910390fd5b80600954816128e7610f04565b6128f19190614c26565b1115612932576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292990614feb565b60405180910390fd5b61293c338361316f565b5050565b612948612b5e565b73ffffffffffffffffffffffffffffffffffffffff1661296661202d565b73ffffffffffffffffffffffffffffffffffffffff16146129bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129b390614682565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612a2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a23906154bd565b60405180910390fd5b612a3581613327565b50565b60136020528060005260406000206000915090505481565b612a58612b5e565b73ffffffffffffffffffffffffffffffffffffffff16612a7661202d565b73ffffffffffffffffffffffffffffffffffffffff1614612acc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ac390614682565b60405180910390fd5b80600c9080519060200190612ae2929190613bb4565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600060025482109050919050565b600033905090565b826007600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000612c238261318d565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff16612c4a612b5e565b73ffffffffffffffffffffffffffffffffffffffff161480612ca65750612c6f612b5e565b73ffffffffffffffffffffffffffffffffffffffff16612c8e84610cda565b73ffffffffffffffffffffffffffffffffffffffff16145b80612cc25750612cc18260000151612cbc612b5e565b612653565b5b905080612d04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cfb9061554f565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612d76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d6d906155e1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612de6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ddd90615673565b60405180910390fd5b612df38585856001613768565b612e036000848460000151612b66565b6001600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160392506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550836005600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426005600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166005600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156130e85761304781612b50565b156130e75782600001516005600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516005600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613151858585600161376e565b5050505050565b6000826131658584613774565b1490509392505050565b6131898282604051806020016040528060008152506137e9565b5050565b613195613c7a565b61319e82612b50565b6131dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131d490615705565b60405180910390fd5b60008290505b600081106132e6576000600560008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146132d7578092505050613322565b508080600190039150506131e3565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161331990615797565b60405180910390fd5b919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600061340c8473ffffffffffffffffffffffffffffffffffffffff166137fb565b15613566578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613435612b5e565b8786866040518563ffffffff1660e01b8152600401613457949392919061580c565b6020604051808303816000875af192505050801561349357506040513d601f19601f82011682018060405250810190613490919061586d565b60015b613516573d80600081146134c3576040519150601f19603f3d011682016040523d82523d6000602084013e6134c8565b606091505b5060008151141561350e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135059061522d565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061356b565b600190505b949350505050565b606060008214156135bb576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506136cf565b600082905060005b600082146135ed5780806135d690614da0565b915050600a826135e691906158c9565b91506135c3565b60008167ffffffffffffffff811115613609576136086140fa565b5b6040519080825280601f01601f19166020018201604052801561363b5781602001600182028036833780820191505090505b5090505b600085146136c85760018261365491906149f1565b9150600a8561366391906158fa565b603061366f9190614c26565b60f81b8183815181106136855761368461592b565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856136c191906158c9565b945061363f565b8093505050505b919050565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b50505050565b50505050565b60008082905060005b84518110156137de57600085828151811061379b5761379a61592b565b5b602002602001015190508083116137bd576137b6838261381e565b92506137ca565b6137c7818461381e565b92505b5080806137d690614da0565b91505061377d565b508091505092915050565b6137f68383836001613835565b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082600052816020526040600020905092915050565b60006002549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156138ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138a3906159cc565b60405180910390fd5b60008414156138f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138e790615a5e565b60405180910390fd5b6138fd6000868387613768565b83600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555083600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160108282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550846005600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426005600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b85811015613b9757818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48315613b8257613b4260008884886133eb565b613b81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b789061522d565b60405180910390fd5b5b81806001019250508080600101915050613acb565b508060028190555050613bad600086838761376e565b5050505050565b828054613bc090614572565b90600052602060002090601f016020900481019282613be25760008555613c29565b82601f10613bfb57805160ff1916838001178555613c29565b82800160010185558215613c29579182015b82811115613c28578251825591602001919060010190613c0d565b5b509050613c369190613cb4565b5090565b508054613c4690614572565b6000825580601f10613c585750613c77565b601f016020900490600052602060002090810190613c769190613cb4565b5b50565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b80821115613ccd576000816000905550600101613cb5565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613d1a81613ce5565b8114613d2557600080fd5b50565b600081359050613d3781613d11565b92915050565b600060208284031215613d5357613d52613cdb565b5b6000613d6184828501613d28565b91505092915050565b60008115159050919050565b613d7f81613d6a565b82525050565b6000602082019050613d9a6000830184613d76565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613dda578082015181840152602081019050613dbf565b83811115613de9576000848401525b50505050565b6000601f19601f8301169050919050565b6000613e0b82613da0565b613e158185613dab565b9350613e25818560208601613dbc565b613e2e81613def565b840191505092915050565b60006020820190508181036000830152613e538184613e00565b905092915050565b6000819050919050565b613e6e81613e5b565b8114613e7957600080fd5b50565b600081359050613e8b81613e65565b92915050565b600060208284031215613ea757613ea6613cdb565b5b6000613eb584828501613e7c565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613ee982613ebe565b9050919050565b613ef981613ede565b82525050565b6000602082019050613f146000830184613ef0565b92915050565b613f2381613ede565b8114613f2e57600080fd5b50565b600081359050613f4081613f1a565b92915050565b60008060408385031215613f5d57613f5c613cdb565b5b6000613f6b85828601613f31565b9250506020613f7c85828601613e7c565b9150509250929050565b613f8f81613e5b565b82525050565b6000602082019050613faa6000830184613f86565b92915050565b600080600060608486031215613fc957613fc8613cdb565b5b6000613fd786828701613f31565b9350506020613fe886828701613f31565b9250506040613ff986828701613e7c565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f84011261402857614027614003565b5b8235905067ffffffffffffffff81111561404557614044614008565b5b6020830191508360208202830111156140615761406061400d565b5b9250929050565b60008060006040848603121561408157614080613cdb565b5b600061408f86828701613e7c565b935050602084013567ffffffffffffffff8111156140b0576140af613ce0565b5b6140bc86828701614012565b92509250509250925092565b6000602082840312156140de576140dd613cdb565b5b60006140ec84828501613f31565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61413282613def565b810181811067ffffffffffffffff82111715614151576141506140fa565b5b80604052505050565b6000614164613cd1565b90506141708282614129565b919050565b600067ffffffffffffffff8211156141905761418f6140fa565b5b61419982613def565b9050602081019050919050565b82818337600083830152505050565b60006141c86141c384614175565b61415a565b9050828152602081018484840111156141e4576141e36140f5565b5b6141ef8482856141a6565b509392505050565b600082601f83011261420c5761420b614003565b5b813561421c8482602086016141b5565b91505092915050565b6000806040838503121561423c5761423b613cdb565b5b600083013567ffffffffffffffff81111561425a57614259613ce0565b5b614266858286016141f7565b925050602083013567ffffffffffffffff81111561428757614286613ce0565b5b614293858286016141f7565b9150509250929050565b6000819050919050565b6142b08161429d565b81146142bb57600080fd5b50565b6000813590506142cd816142a7565b92915050565b6000602082840312156142e9576142e8613cdb565b5b60006142f7848285016142be565b91505092915050565b6143098161429d565b82525050565b60006020820190506143246000830184614300565b92915050565b61433381613d6a565b811461433e57600080fd5b50565b6000813590506143508161432a565b92915050565b6000806040838503121561436d5761436c613cdb565b5b600061437b85828601613f31565b925050602061438c85828601614341565b9150509250929050565b600067ffffffffffffffff8211156143b1576143b06140fa565b5b6143ba82613def565b9050602081019050919050565b60006143da6143d584614396565b61415a565b9050828152602081018484840111156143f6576143f56140f5565b5b6144018482856141a6565b509392505050565b600082601f83011261441e5761441d614003565b5b813561442e8482602086016143c7565b91505092915050565b6000806000806080858703121561445157614450613cdb565b5b600061445f87828801613f31565b945050602061447087828801613f31565b935050604061448187828801613e7c565b925050606085013567ffffffffffffffff8111156144a2576144a1613ce0565b5b6144ae87828801614409565b91505092959194509250565b600080604083850312156144d1576144d0613cdb565b5b60006144df85828601613f31565b92505060206144f085828601613f31565b9150509250929050565b6000602082840312156145105761450f613cdb565b5b600082013567ffffffffffffffff81111561452e5761452d613ce0565b5b61453a848285016141f7565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061458a57607f821691505b6020821081141561459e5761459d614543565b5b50919050565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b6000614600602d83613dab565b915061460b826145a4565b604082019050919050565b6000602082019050818103600083015261462f816145f3565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061466c602083613dab565b915061467782614636565b602082019050919050565b6000602082019050818103600083015261469b8161465f565b9050919050565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b60006146fe602283613dab565b9150614709826146a2565b604082019050919050565b6000602082019050818103600083015261472d816146f1565b9050919050565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b6000614790603983613dab565b915061479b82614734565b604082019050919050565b600060208201905081810360008301526147bf81614783565b9050919050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b6000614822602283613dab565b915061482d826147c6565b604082019050919050565b6000602082019050818103600083015261485181614815565b9050919050565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b60006148b4602e83613dab565b91506148bf82614858565b604082019050919050565b600060208201905081810360008301526148e3816148a7565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614920601f83613dab565b915061492b826148ea565b602082019050919050565b6000602082019050818103600083015261494f81614913565b9050919050565b7f5072652073616c65206973206e6f74206f70656e000000000000000000000000600082015250565b600061498c601483613dab565b915061499782614956565b602082019050919050565b600060208201905081810360008301526149bb8161497f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006149fc82613e5b565b9150614a0783613e5b565b925082821015614a1a57614a196149c2565b5b828203905092915050565b6000614a3082613e5b565b9150614a3b83613e5b565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614a7457614a736149c2565b5b828202905092915050565b7f496e636f7272656374204554482076616c75652073656e740000000000000000600082015250565b6000614ab5601883613dab565b9150614ac082614a7f565b602082019050919050565b60006020820190508181036000830152614ae481614aa8565b9050919050565b60008160601b9050919050565b6000614b0382614aeb565b9050919050565b6000614b1582614af8565b9050919050565b614b2d614b2882613ede565b614b0a565b82525050565b6000614b3f8284614b1c565b60148201915081905092915050565b7f4164647265737320646f6573206e6f7420657869737420696e206c6973740000600082015250565b6000614b84601e83613dab565b9150614b8f82614b4e565b602082019050919050565b60006020820190508181036000830152614bb381614b77565b9050919050565b7f5573657220616c7265616479206d696e7465642061206672656520746f6b656e600082015250565b6000614bf0602083613dab565b9150614bfb82614bba565b602082019050919050565b60006020820190508181036000830152614c1f81614be3565b9050919050565b6000614c3182613e5b565b9150614c3c83613e5b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614c7157614c706149c2565b5b828201905092915050565b7f4d617820446f75677320746f206d696e7420696e207072652d73616c6520697360008201527f2074687265650000000000000000000000000000000000000000000000000000602082015250565b6000614cd8602683613dab565b9150614ce382614c7c565b604082019050919050565b60006020820190508181036000830152614d0781614ccb565b9050919050565b7f4e6f7420656e6f75676820446f7567732072656d61696e696e6720696e20707260008201527f652d73616c650000000000000000000000000000000000000000000000000000602082015250565b6000614d6a602683613dab565b9150614d7582614d0e565b604082019050919050565b60006020820190508181036000830152614d9981614d5d565b9050919050565b6000614dab82613e5b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614dde57614ddd6149c2565b5b600182019050919050565b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b6000614e45602383613dab565b9150614e5082614de9565b604082019050919050565b60006020820190508181036000830152614e7481614e38565b9050919050565b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000614ed7602b83613dab565b9150614ee282614e7b565b604082019050919050565b60006020820190508181036000830152614f0681614eca565b9050919050565b7f5075626c69632073616c65206973206e6f74206f70656e000000000000000000600082015250565b6000614f43601783613dab565b9150614f4e82614f0d565b602082019050919050565b60006020820190508181036000830152614f7281614f36565b9050919050565b7f4e6f7420656e6f75676820446f7567732072656d61696e696e6720746f206d6960008201527f6e74000000000000000000000000000000000000000000000000000000000000602082015250565b6000614fd5602283613dab565b9150614fe082614f79565b604082019050919050565b6000602082019050818103600083015261500481614fc8565b9050919050565b7f4d617820446f75677320746f206d696e7420706572207472616e73616374696f60008201527f6e20697320313000000000000000000000000000000000000000000000000000602082015250565b6000615067602783613dab565b91506150728261500b565b604082019050919050565b600060208201905081810360008301526150968161505a565b9050919050565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b60006150d3601a83613dab565b91506150de8261509d565b602082019050919050565b60006020820190508181036000830152615102816150c6565b9050919050565b600081905092915050565b50565b6000615124600083615109565b915061512f82615114565b600082019050919050565b600061514582615117565b9150819050919050565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b6000615185601083613dab565b91506151908261514f565b602082019050919050565b600060208201905081810360008301526151b481615178565b9050919050565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b6000615217603383613dab565b9150615222826151bb565b604082019050919050565b600060208201905081810360008301526152468161520a565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006152a9602f83613dab565b91506152b48261524d565b604082019050919050565b600060208201905081810360008301526152d88161529c565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b6000815461530c81614572565b61531681866152df565b94506001821660008114615331576001811461534257615375565b60ff19831686528186019350615375565b61534b856152ea565b60005b8381101561536d5781548189015260018201915060208101905061534e565b838801955050505b50505092915050565b600061538982613da0565b61539381856152df565b93506153a3818560208601613dbc565b80840191505092915050565b60006153bb82866152ff565b91506153c7828561537e565b91506153d382846152ff565b9150819050949350505050565b60006153eb82613ede565b9050919050565b6153fb816153e0565b811461540657600080fd5b50565b600081519050615418816153f2565b92915050565b60006020828403121561543457615433613cdb565b5b600061544284828501615409565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006154a7602683613dab565b91506154b28261544b565b604082019050919050565b600060208201905081810360008301526154d68161549a565b9050919050565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b6000615539603283613dab565b9150615544826154dd565b604082019050919050565b600060208201905081810360008301526155688161552c565b9050919050565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b60006155cb602683613dab565b91506155d68261556f565b604082019050919050565b600060208201905081810360008301526155fa816155be565b9050919050565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b600061565d602583613dab565b915061566882615601565b604082019050919050565b6000602082019050818103600083015261568c81615650565b9050919050565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b60006156ef602a83613dab565b91506156fa82615693565b604082019050919050565b6000602082019050818103600083015261571e816156e2565b9050919050565b7f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008201527f206f776e6572206f6620746f6b656e0000000000000000000000000000000000602082015250565b6000615781602f83613dab565b915061578c82615725565b604082019050919050565b600060208201905081810360008301526157b081615774565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006157de826157b7565b6157e881856157c2565b93506157f8818560208601613dbc565b61580181613def565b840191505092915050565b60006080820190506158216000830187613ef0565b61582e6020830186613ef0565b61583b6040830185613f86565b818103606083015261584d81846157d3565b905095945050505050565b60008151905061586781613d11565b92915050565b60006020828403121561588357615882613cdb565b5b600061589184828501615858565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006158d482613e5b565b91506158df83613e5b565b9250826158ef576158ee61589a565b5b828204905092915050565b600061590582613e5b565b915061591083613e5b565b9250826159205761591f61589a565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006159b6602183613dab565b91506159c18261595a565b604082019050919050565b600060208201905081810360008301526159e5816159a9565b9050919050565b7f455243373231413a207175616e74697479206d7573742062652067726561746560008201527f72207468616e2030000000000000000000000000000000000000000000000000602082015250565b6000615a48602883613dab565b9150615a53826159ec565b604082019050919050565b60006020820190508181036000830152615a7781615a3b565b905091905056fea264697066735822122093dd61b43de78894a0a09c50e2d39965a57a136521d4cf0c73726683fd16273064736f6c634300080b00330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004b697066733a2f2f516d4e614c61457a57386531366b3678556d524266697839747269616f47594b4b7663544c34734d63694b6841552f486f74446f756750726572657665616c2e6a736f6e000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102935760003560e01c80636ce5d9991161015a578063a886c377116100c1578063cd5d21181161007a578063cd5d2118146109b9578063e985e9c5146109f6578063f19e75d414610a33578063f2fde38b14610a5c578063fafe84d214610a85578063fe2c7fee14610ac257610293565b8063a886c377146108bb578063a8e90b57146108e6578063ac44600214610911578063b88d4fde14610928578063c668286214610951578063c87b56dd1461097c57610293565b806386a21e1c1161011357806386a21e1c146107bb5780638da5cb5b146107e657806395d89b41146108115780639adef07e1461083c578063a22cb46514610867578063a25ba8f21461089057610293565b80636ce5d999146106cc5780637035bf18146106f757806370a082311461072257806370c425751461075f578063715018a61461078857806373f5e73e1461079f57610293565b8063341927ea116101fe578063603f4d52116101b7578063603f4d52146105be5780636352211e146105e957806364027461146106265780636790a9de1461064f5780636c0360eb146106785780636c9604d2146106a357610293565b8063341927ea146104b857806342842e0e146104d457806349de32ff146104fd5780634f6ccce714610519578063511ed382146105565780635ecf8a801461058157610293565b80630b89ada9116102505780630b89ada9146103ba57806318160ddd146103e557806323b872dd14610410578063278c9871146104395780632f745c591461046457806333c12e17146104a157610293565b806301ffc9a714610298578063026ae102146102d557806306fdde0314610300578063081812fc1461032b578063084c408814610368578063095ea7b314610391575b600080fd5b3480156102a457600080fd5b506102bf60048036038101906102ba9190613d3d565b610aeb565b6040516102cc9190613d85565b60405180910390f35b3480156102e157600080fd5b506102ea610c35565b6040516102f79190613d85565b60405180910390f35b34801561030c57600080fd5b50610315610c48565b6040516103229190613e39565b60405180910390f35b34801561033757600080fd5b50610352600480360381019061034d9190613e91565b610cda565b60405161035f9190613eff565b60405180910390f35b34801561037457600080fd5b5061038f600480360381019061038a9190613e91565b610d5f565b005b34801561039d57600080fd5b506103b860048036038101906103b39190613f46565b610de5565b005b3480156103c657600080fd5b506103cf610efe565b6040516103dc9190613f95565b60405180910390f35b3480156103f157600080fd5b506103fa610f04565b6040516104079190613f95565b60405180910390f35b34801561041c57600080fd5b5061043760048036038101906104329190613fb0565b610f0e565b005b34801561044557600080fd5b5061044e610f1e565b60405161045b9190613f95565b60405180910390f35b34801561047057600080fd5b5061048b60048036038101906104869190613f46565b610f23565b6040516104989190613f95565b60405180910390f35b3480156104ad57600080fd5b506104b6611115565b005b6104d260048036038101906104cd9190614068565b6111bd565b005b3480156104e057600080fd5b506104fb60048036038101906104f69190613fb0565b6115db565b005b61051760048036038101906105129190614068565b6115fb565b005b34801561052557600080fd5b50610540600480360381019061053b9190613e91565b6118f6565b60405161054d9190613f95565b60405180910390f35b34801561056257600080fd5b5061056b611949565b6040516105789190613eff565b60405180910390f35b34801561058d57600080fd5b506105a860048036038101906105a391906140c8565b61196f565b6040516105b59190613f95565b60405180910390f35b3480156105ca57600080fd5b506105d3611987565b6040516105e09190613f95565b60405180910390f35b3480156105f557600080fd5b50610610600480360381019061060b9190613e91565b61198d565b60405161061d9190613eff565b60405180910390f35b34801561063257600080fd5b5061064d60048036038101906106489190613e91565b6119a3565b005b34801561065b57600080fd5b5061067660048036038101906106719190614225565b611a29565b005b34801561068457600080fd5b5061068d611ae5565b60405161069a9190613e39565b60405180910390f35b3480156106af57600080fd5b506106ca60048036038101906106c591906142d3565b611b73565b005b3480156106d857600080fd5b506106e1611bf9565b6040516106ee919061430f565b60405180910390f35b34801561070357600080fd5b5061070c611bff565b6040516107199190613e39565b60405180910390f35b34801561072e57600080fd5b50610749600480360381019061074491906140c8565b611c8d565b6040516107569190613f95565b60405180910390f35b34801561076b57600080fd5b50610786600480360381019061078191906142d3565b611d76565b005b34801561079457600080fd5b5061079d611dfc565b005b6107b960048036038101906107b49190613e91565b611e84565b005b3480156107c757600080fd5b506107d0612022565b6040516107dd9190613f95565b60405180910390f35b3480156107f257600080fd5b506107fb61202d565b6040516108089190613eff565b60405180910390f35b34801561081d57600080fd5b50610826612056565b6040516108339190613e39565b60405180910390f35b34801561084857600080fd5b506108516120e8565b60405161085e9190613f95565b60405180910390f35b34801561087357600080fd5b5061088e60048036038101906108899190614356565b6120ee565b005b34801561089c57600080fd5b506108a561226f565b6040516108b29190613f95565b60405180910390f35b3480156108c757600080fd5b506108d0612274565b6040516108dd919061430f565b60405180910390f35b3480156108f257600080fd5b506108fb61227a565b6040516109089190613eff565b60405180910390f35b34801561091d57600080fd5b506109266122a0565b005b34801561093457600080fd5b5061094f600480360381019061094a9190614437565b612420565b005b34801561095d57600080fd5b5061096661247c565b6040516109739190613e39565b60405180910390f35b34801561098857600080fd5b506109a3600480360381019061099e9190613e91565b61250a565b6040516109b09190613e39565b60405180910390f35b3480156109c557600080fd5b506109e060048036038101906109db91906140c8565b612633565b6040516109ed9190613d85565b60405180910390f35b348015610a0257600080fd5b50610a1d6004803603810190610a1891906144ba565b612653565b604051610a2a9190613d85565b60405180910390f35b348015610a3f57600080fd5b50610a5a6004803603810190610a559190613e91565b61285e565b005b348015610a6857600080fd5b50610a836004803603810190610a7e91906140c8565b612940565b005b348015610a9157600080fd5b50610aac6004803603810190610aa791906140c8565b612a38565b604051610ab99190613f95565b60405180910390f35b348015610ace57600080fd5b50610ae96004803603810190610ae491906144fa565b612a50565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610bb657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c1e57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c2e5750610c2d82612ae6565b5b9050919050565b600f60149054906101000a900460ff1681565b606060038054610c5790614572565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8390614572565b8015610cd05780601f10610ca557610100808354040283529160200191610cd0565b820191906000526020600020905b815481529060010190602001808311610cb357829003601f168201915b5050505050905090565b6000610ce582612b50565b610d24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1b90614616565b60405180910390fd5b6007600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610d67612b5e565b73ffffffffffffffffffffffffffffffffffffffff16610d8561202d565b73ffffffffffffffffffffffffffffffffffffffff1614610ddb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dd290614682565b60405180910390fd5b80600a8190555050565b6000610df08261198d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5890614714565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610e80612b5e565b73ffffffffffffffffffffffffffffffffffffffff161480610eaf5750610eae81610ea9612b5e565b612653565b5b610eee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee5906147a6565b60405180910390fd5b610ef9838383612b66565b505050565b610bb881565b6000600254905090565b610f19838383612c18565b505050565b600381565b6000610f2e83611c8d565b8210610f6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6690614838565b60405180910390fd5b6000610f79610f04565b905060008060005b838110156110d3576000600560008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461107357806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156110c557868414156110bc57819550505050505061110f565b83806001019450505b508080600101915050610f81565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611106906148ca565b60405180910390fd5b92915050565b61111d612b5e565b73ffffffffffffffffffffffffffffffffffffffff1661113b61202d565b73ffffffffffffffffffffffffffffffffffffffff1614611191576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118890614682565b60405180910390fd5b600f60149054906101000a900460ff1615600f60146101000a81548160ff021916908315150217905550565b60026001541415611203576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111fa90614936565b60405180910390fd5b60026001819055506001600a5414611250576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611247906149a2565b60405180910390fd5b66b1a2bc2ec5000060018461126591906149f1565b3481836112729190614a25565b146112b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112a990614acb565b60405180910390fd5b8383601054611329838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050823360405160200161130e9190614b33565b60405160208183030381529060405280519060200120613158565b611368576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135f90614b9a565b60405180910390fd5b61137061202d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146115c0576000601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414611424576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141b90614c06565b60405180910390fd5b6000601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600360018a836114789190614c26565b61148291906149f1565b11156114c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ba90614cee565b60405180910390fd5b610bb8896114cf610f04565b6114d99190614c26565b111561151a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151190614d80565b60405180910390fd5b88816115269190614c26565b601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906115b990614da0565b9190505550505b6115ca338961316f565b505050505060018081905550505050565b6115f683838360405180602001604052806000815250612420565b505050565b60026001541415611641576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163890614936565b60405180910390fd5b60026001819055506001600a541461168e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611685906149a2565b60405180910390fd5b66b1a2bc2ec50000833481836116a49190614a25565b146116e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116db90614acb565b60405180910390fd5b838360115461175b838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505082336040516020016117409190614b33565b60405160208183030381529060405280519060200120613158565b61179a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179190614b9a565b60405180910390fd5b6000601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600389826117ec9190614c26565b111561182d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182490614cee565b60405180910390fd5b610bb889611839610f04565b6118439190614c26565b1115611884576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187b90614d80565b60405180910390fd5b88601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118d39190614c26565b925050819055506118e4338a61316f565b50505050505060018081905550505050565b6000611900610f04565b8210611941576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193890614e5b565b60405180910390fd5b819050919050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60126020528060005260406000206000915090505481565b600a5481565b60006119988261318d565b600001519050919050565b6119ab612b5e565b73ffffffffffffffffffffffffffffffffffffffff166119c961202d565b73ffffffffffffffffffffffffffffffffffffffff1614611a1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1690614682565b60405180910390fd5b8060098190555050565b611a31612b5e565b73ffffffffffffffffffffffffffffffffffffffff16611a4f61202d565b73ffffffffffffffffffffffffffffffffffffffff1614611aa5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9c90614682565b60405180910390fd5b81600b9080519060200190611abb929190613bb4565b5080600d9080519060200190611ad2929190613bb4565b50600c6000611ae19190613c3a565b5050565b600b8054611af290614572565b80601f0160208091040260200160405190810160405280929190818152602001828054611b1e90614572565b8015611b6b5780601f10611b4057610100808354040283529160200191611b6b565b820191906000526020600020905b815481529060010190602001808311611b4e57829003601f168201915b505050505081565b611b7b612b5e565b73ffffffffffffffffffffffffffffffffffffffff16611b9961202d565b73ffffffffffffffffffffffffffffffffffffffff1614611bef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be690614682565b60405180910390fd5b8060118190555050565b60115481565b600c8054611c0c90614572565b80601f0160208091040260200160405190810160405280929190818152602001828054611c3890614572565b8015611c855780601f10611c5a57610100808354040283529160200191611c85565b820191906000526020600020905b815481529060010190602001808311611c6857829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611cfe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf590614eed565b60405180910390fd5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b611d7e612b5e565b73ffffffffffffffffffffffffffffffffffffffff16611d9c61202d565b73ffffffffffffffffffffffffffffffffffffffff1614611df2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de990614682565b60405180910390fd5b8060108190555050565b611e04612b5e565b73ffffffffffffffffffffffffffffffffffffffff16611e2261202d565b73ffffffffffffffffffffffffffffffffffffffff1614611e78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e6f90614682565b60405180910390fd5b611e826000613327565b565b60026001541415611eca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec190614936565b60405180910390fd5b60026001819055506002600a5414611f17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0e90614f59565b60405180910390fd5b66b1a2bc2ec5000081348183611f2d9190614a25565b14611f6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6490614acb565b60405180910390fd5b8260095481611f7a610f04565b611f849190614c26565b1115611fc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fbc90614feb565b60405180910390fd5b83600a81111561200a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120019061507d565b60405180910390fd5b612014338661316f565b505050506001808190555050565b66b1a2bc2ec5000081565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606004805461206590614572565b80601f016020809104026020016040519081016040528092919081815260200182805461209190614572565b80156120de5780601f106120b3576101008083540402835291602001916120de565b820191906000526020600020905b8154815290600101906020018083116120c157829003601f168201915b5050505050905090565b60095481565b6120f6612b5e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612164576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215b906150e9565b60405180910390fd5b8060086000612171612b5e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661221e612b5e565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516122639190613d85565b60405180910390a35050565b600a81565b60105481565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6122a8612b5e565b73ffffffffffffffffffffffffffffffffffffffff166122c661202d565b73ffffffffffffffffffffffffffffffffffffffff161461231c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231390614682565b60405180910390fd5b60026001541415612362576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161235990614936565b60405180910390fd5b600260018190555060003373ffffffffffffffffffffffffffffffffffffffff16476040516123909061513a565b60006040518083038185875af1925050503d80600081146123cd576040519150601f19603f3d011682016040523d82523d6000602084013e6123d2565b606091505b5050905080612416576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161240d9061519b565b60405180910390fd5b5060018081905550565b61242b848484612c18565b612437848484846133eb565b612476576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246d9061522d565b60405180910390fd5b50505050565b600d805461248990614572565b80601f01602080910402602001604051908101604052809291908181526020018280546124b590614572565b80156125025780601f106124d757610100808354040283529160200191612502565b820191906000526020600020905b8154815290600101906020018083116124e557829003601f168201915b505050505081565b606061251582612b50565b612554576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161254b906152bf565b60405180910390fd5b6000600c805461256390614572565b905011156125fd57600c805461257890614572565b80601f01602080910402602001604051908101604052809291908181526020018280546125a490614572565b80156125f15780601f106125c6576101008083540402835291602001916125f1565b820191906000526020600020905b8154815290600101906020018083116125d457829003601f168201915b5050505050905061262e565b600b61260883613573565b600d60405160200161261c939291906153af565b60405160208183030381529060405290505b919050565b60146020528060005260406000206000915054906101000a900460ff1681565b6000600f60149054906101000a900460ff166126ce57601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806126c757506126c683836136d4565b5b9050612858565b601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806127ec5750600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c4552791846040518263ffffffff1660e01b815260040161277c9190613eff565b602060405180830381865afa158015612799573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127bd919061541e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b806128445750600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b80612855575061285483836136d4565b5b90505b92915050565b612866612b5e565b73ffffffffffffffffffffffffffffffffffffffff1661288461202d565b73ffffffffffffffffffffffffffffffffffffffff16146128da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128d190614682565b60405180910390fd5b80600954816128e7610f04565b6128f19190614c26565b1115612932576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292990614feb565b60405180910390fd5b61293c338361316f565b5050565b612948612b5e565b73ffffffffffffffffffffffffffffffffffffffff1661296661202d565b73ffffffffffffffffffffffffffffffffffffffff16146129bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129b390614682565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612a2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a23906154bd565b60405180910390fd5b612a3581613327565b50565b60136020528060005260406000206000915090505481565b612a58612b5e565b73ffffffffffffffffffffffffffffffffffffffff16612a7661202d565b73ffffffffffffffffffffffffffffffffffffffff1614612acc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ac390614682565b60405180910390fd5b80600c9080519060200190612ae2929190613bb4565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600060025482109050919050565b600033905090565b826007600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000612c238261318d565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff16612c4a612b5e565b73ffffffffffffffffffffffffffffffffffffffff161480612ca65750612c6f612b5e565b73ffffffffffffffffffffffffffffffffffffffff16612c8e84610cda565b73ffffffffffffffffffffffffffffffffffffffff16145b80612cc25750612cc18260000151612cbc612b5e565b612653565b5b905080612d04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cfb9061554f565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612d76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d6d906155e1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612de6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ddd90615673565b60405180910390fd5b612df38585856001613768565b612e036000848460000151612b66565b6001600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160392506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550836005600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426005600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166005600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156130e85761304781612b50565b156130e75782600001516005600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516005600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613151858585600161376e565b5050505050565b6000826131658584613774565b1490509392505050565b6131898282604051806020016040528060008152506137e9565b5050565b613195613c7a565b61319e82612b50565b6131dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131d490615705565b60405180910390fd5b60008290505b600081106132e6576000600560008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146132d7578092505050613322565b508080600190039150506131e3565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161331990615797565b60405180910390fd5b919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600061340c8473ffffffffffffffffffffffffffffffffffffffff166137fb565b15613566578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613435612b5e565b8786866040518563ffffffff1660e01b8152600401613457949392919061580c565b6020604051808303816000875af192505050801561349357506040513d601f19601f82011682018060405250810190613490919061586d565b60015b613516573d80600081146134c3576040519150601f19603f3d011682016040523d82523d6000602084013e6134c8565b606091505b5060008151141561350e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135059061522d565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061356b565b600190505b949350505050565b606060008214156135bb576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506136cf565b600082905060005b600082146135ed5780806135d690614da0565b915050600a826135e691906158c9565b91506135c3565b60008167ffffffffffffffff811115613609576136086140fa565b5b6040519080825280601f01601f19166020018201604052801561363b5781602001600182028036833780820191505090505b5090505b600085146136c85760018261365491906149f1565b9150600a8561366391906158fa565b603061366f9190614c26565b60f81b8183815181106136855761368461592b565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856136c191906158c9565b945061363f565b8093505050505b919050565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b50505050565b50505050565b60008082905060005b84518110156137de57600085828151811061379b5761379a61592b565b5b602002602001015190508083116137bd576137b6838261381e565b92506137ca565b6137c7818461381e565b92505b5080806137d690614da0565b91505061377d565b508091505092915050565b6137f68383836001613835565b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082600052816020526040600020905092915050565b60006002549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156138ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138a3906159cc565b60405180910390fd5b60008414156138f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138e790615a5e565b60405180910390fd5b6138fd6000868387613768565b83600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555083600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160108282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550846005600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426005600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b85811015613b9757818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48315613b8257613b4260008884886133eb565b613b81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b789061522d565b60405180910390fd5b5b81806001019250508080600101915050613acb565b508060028190555050613bad600086838761376e565b5050505050565b828054613bc090614572565b90600052602060002090601f016020900481019282613be25760008555613c29565b82601f10613bfb57805160ff1916838001178555613c29565b82800160010185558215613c29579182015b82811115613c28578251825591602001919060010190613c0d565b5b509050613c369190613cb4565b5090565b508054613c4690614572565b6000825580601f10613c585750613c77565b601f016020900490600052602060002090810190613c769190613cb4565b5b50565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b80821115613ccd576000816000905550600101613cb5565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613d1a81613ce5565b8114613d2557600080fd5b50565b600081359050613d3781613d11565b92915050565b600060208284031215613d5357613d52613cdb565b5b6000613d6184828501613d28565b91505092915050565b60008115159050919050565b613d7f81613d6a565b82525050565b6000602082019050613d9a6000830184613d76565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613dda578082015181840152602081019050613dbf565b83811115613de9576000848401525b50505050565b6000601f19601f8301169050919050565b6000613e0b82613da0565b613e158185613dab565b9350613e25818560208601613dbc565b613e2e81613def565b840191505092915050565b60006020820190508181036000830152613e538184613e00565b905092915050565b6000819050919050565b613e6e81613e5b565b8114613e7957600080fd5b50565b600081359050613e8b81613e65565b92915050565b600060208284031215613ea757613ea6613cdb565b5b6000613eb584828501613e7c565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613ee982613ebe565b9050919050565b613ef981613ede565b82525050565b6000602082019050613f146000830184613ef0565b92915050565b613f2381613ede565b8114613f2e57600080fd5b50565b600081359050613f4081613f1a565b92915050565b60008060408385031215613f5d57613f5c613cdb565b5b6000613f6b85828601613f31565b9250506020613f7c85828601613e7c565b9150509250929050565b613f8f81613e5b565b82525050565b6000602082019050613faa6000830184613f86565b92915050565b600080600060608486031215613fc957613fc8613cdb565b5b6000613fd786828701613f31565b9350506020613fe886828701613f31565b9250506040613ff986828701613e7c565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f84011261402857614027614003565b5b8235905067ffffffffffffffff81111561404557614044614008565b5b6020830191508360208202830111156140615761406061400d565b5b9250929050565b60008060006040848603121561408157614080613cdb565b5b600061408f86828701613e7c565b935050602084013567ffffffffffffffff8111156140b0576140af613ce0565b5b6140bc86828701614012565b92509250509250925092565b6000602082840312156140de576140dd613cdb565b5b60006140ec84828501613f31565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61413282613def565b810181811067ffffffffffffffff82111715614151576141506140fa565b5b80604052505050565b6000614164613cd1565b90506141708282614129565b919050565b600067ffffffffffffffff8211156141905761418f6140fa565b5b61419982613def565b9050602081019050919050565b82818337600083830152505050565b60006141c86141c384614175565b61415a565b9050828152602081018484840111156141e4576141e36140f5565b5b6141ef8482856141a6565b509392505050565b600082601f83011261420c5761420b614003565b5b813561421c8482602086016141b5565b91505092915050565b6000806040838503121561423c5761423b613cdb565b5b600083013567ffffffffffffffff81111561425a57614259613ce0565b5b614266858286016141f7565b925050602083013567ffffffffffffffff81111561428757614286613ce0565b5b614293858286016141f7565b9150509250929050565b6000819050919050565b6142b08161429d565b81146142bb57600080fd5b50565b6000813590506142cd816142a7565b92915050565b6000602082840312156142e9576142e8613cdb565b5b60006142f7848285016142be565b91505092915050565b6143098161429d565b82525050565b60006020820190506143246000830184614300565b92915050565b61433381613d6a565b811461433e57600080fd5b50565b6000813590506143508161432a565b92915050565b6000806040838503121561436d5761436c613cdb565b5b600061437b85828601613f31565b925050602061438c85828601614341565b9150509250929050565b600067ffffffffffffffff8211156143b1576143b06140fa565b5b6143ba82613def565b9050602081019050919050565b60006143da6143d584614396565b61415a565b9050828152602081018484840111156143f6576143f56140f5565b5b6144018482856141a6565b509392505050565b600082601f83011261441e5761441d614003565b5b813561442e8482602086016143c7565b91505092915050565b6000806000806080858703121561445157614450613cdb565b5b600061445f87828801613f31565b945050602061447087828801613f31565b935050604061448187828801613e7c565b925050606085013567ffffffffffffffff8111156144a2576144a1613ce0565b5b6144ae87828801614409565b91505092959194509250565b600080604083850312156144d1576144d0613cdb565b5b60006144df85828601613f31565b92505060206144f085828601613f31565b9150509250929050565b6000602082840312156145105761450f613cdb565b5b600082013567ffffffffffffffff81111561452e5761452d613ce0565b5b61453a848285016141f7565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061458a57607f821691505b6020821081141561459e5761459d614543565b5b50919050565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b6000614600602d83613dab565b915061460b826145a4565b604082019050919050565b6000602082019050818103600083015261462f816145f3565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061466c602083613dab565b915061467782614636565b602082019050919050565b6000602082019050818103600083015261469b8161465f565b9050919050565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b60006146fe602283613dab565b9150614709826146a2565b604082019050919050565b6000602082019050818103600083015261472d816146f1565b9050919050565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b6000614790603983613dab565b915061479b82614734565b604082019050919050565b600060208201905081810360008301526147bf81614783565b9050919050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b6000614822602283613dab565b915061482d826147c6565b604082019050919050565b6000602082019050818103600083015261485181614815565b9050919050565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b60006148b4602e83613dab565b91506148bf82614858565b604082019050919050565b600060208201905081810360008301526148e3816148a7565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614920601f83613dab565b915061492b826148ea565b602082019050919050565b6000602082019050818103600083015261494f81614913565b9050919050565b7f5072652073616c65206973206e6f74206f70656e000000000000000000000000600082015250565b600061498c601483613dab565b915061499782614956565b602082019050919050565b600060208201905081810360008301526149bb8161497f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006149fc82613e5b565b9150614a0783613e5b565b925082821015614a1a57614a196149c2565b5b828203905092915050565b6000614a3082613e5b565b9150614a3b83613e5b565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614a7457614a736149c2565b5b828202905092915050565b7f496e636f7272656374204554482076616c75652073656e740000000000000000600082015250565b6000614ab5601883613dab565b9150614ac082614a7f565b602082019050919050565b60006020820190508181036000830152614ae481614aa8565b9050919050565b60008160601b9050919050565b6000614b0382614aeb565b9050919050565b6000614b1582614af8565b9050919050565b614b2d614b2882613ede565b614b0a565b82525050565b6000614b3f8284614b1c565b60148201915081905092915050565b7f4164647265737320646f6573206e6f7420657869737420696e206c6973740000600082015250565b6000614b84601e83613dab565b9150614b8f82614b4e565b602082019050919050565b60006020820190508181036000830152614bb381614b77565b9050919050565b7f5573657220616c7265616479206d696e7465642061206672656520746f6b656e600082015250565b6000614bf0602083613dab565b9150614bfb82614bba565b602082019050919050565b60006020820190508181036000830152614c1f81614be3565b9050919050565b6000614c3182613e5b565b9150614c3c83613e5b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614c7157614c706149c2565b5b828201905092915050565b7f4d617820446f75677320746f206d696e7420696e207072652d73616c6520697360008201527f2074687265650000000000000000000000000000000000000000000000000000602082015250565b6000614cd8602683613dab565b9150614ce382614c7c565b604082019050919050565b60006020820190508181036000830152614d0781614ccb565b9050919050565b7f4e6f7420656e6f75676820446f7567732072656d61696e696e6720696e20707260008201527f652d73616c650000000000000000000000000000000000000000000000000000602082015250565b6000614d6a602683613dab565b9150614d7582614d0e565b604082019050919050565b60006020820190508181036000830152614d9981614d5d565b9050919050565b6000614dab82613e5b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614dde57614ddd6149c2565b5b600182019050919050565b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b6000614e45602383613dab565b9150614e5082614de9565b604082019050919050565b60006020820190508181036000830152614e7481614e38565b9050919050565b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000614ed7602b83613dab565b9150614ee282614e7b565b604082019050919050565b60006020820190508181036000830152614f0681614eca565b9050919050565b7f5075626c69632073616c65206973206e6f74206f70656e000000000000000000600082015250565b6000614f43601783613dab565b9150614f4e82614f0d565b602082019050919050565b60006020820190508181036000830152614f7281614f36565b9050919050565b7f4e6f7420656e6f75676820446f7567732072656d61696e696e6720746f206d6960008201527f6e74000000000000000000000000000000000000000000000000000000000000602082015250565b6000614fd5602283613dab565b9150614fe082614f79565b604082019050919050565b6000602082019050818103600083015261500481614fc8565b9050919050565b7f4d617820446f75677320746f206d696e7420706572207472616e73616374696f60008201527f6e20697320313000000000000000000000000000000000000000000000000000602082015250565b6000615067602783613dab565b91506150728261500b565b604082019050919050565b600060208201905081810360008301526150968161505a565b9050919050565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b60006150d3601a83613dab565b91506150de8261509d565b602082019050919050565b60006020820190508181036000830152615102816150c6565b9050919050565b600081905092915050565b50565b6000615124600083615109565b915061512f82615114565b600082019050919050565b600061514582615117565b9150819050919050565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b6000615185601083613dab565b91506151908261514f565b602082019050919050565b600060208201905081810360008301526151b481615178565b9050919050565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b6000615217603383613dab565b9150615222826151bb565b604082019050919050565b600060208201905081810360008301526152468161520a565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006152a9602f83613dab565b91506152b48261524d565b604082019050919050565b600060208201905081810360008301526152d88161529c565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b6000815461530c81614572565b61531681866152df565b94506001821660008114615331576001811461534257615375565b60ff19831686528186019350615375565b61534b856152ea565b60005b8381101561536d5781548189015260018201915060208101905061534e565b838801955050505b50505092915050565b600061538982613da0565b61539381856152df565b93506153a3818560208601613dbc565b80840191505092915050565b60006153bb82866152ff565b91506153c7828561537e565b91506153d382846152ff565b9150819050949350505050565b60006153eb82613ede565b9050919050565b6153fb816153e0565b811461540657600080fd5b50565b600081519050615418816153f2565b92915050565b60006020828403121561543457615433613cdb565b5b600061544284828501615409565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006154a7602683613dab565b91506154b28261544b565b604082019050919050565b600060208201905081810360008301526154d68161549a565b9050919050565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b6000615539603283613dab565b9150615544826154dd565b604082019050919050565b600060208201905081810360008301526155688161552c565b9050919050565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b60006155cb602683613dab565b91506155d68261556f565b604082019050919050565b600060208201905081810360008301526155fa816155be565b9050919050565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b600061565d602583613dab565b915061566882615601565b604082019050919050565b6000602082019050818103600083015261568c81615650565b9050919050565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b60006156ef602a83613dab565b91506156fa82615693565b604082019050919050565b6000602082019050818103600083015261571e816156e2565b9050919050565b7f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008201527f206f776e6572206f6620746f6b656e0000000000000000000000000000000000602082015250565b6000615781602f83613dab565b915061578c82615725565b604082019050919050565b600060208201905081810360008301526157b081615774565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006157de826157b7565b6157e881856157c2565b93506157f8818560208601613dbc565b61580181613def565b840191505092915050565b60006080820190506158216000830187613ef0565b61582e6020830186613ef0565b61583b6040830185613f86565b818103606083015261584d81846157d3565b905095945050505050565b60008151905061586781613d11565b92915050565b60006020828403121561588357615882613cdb565b5b600061589184828501615858565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006158d482613e5b565b91506158df83613e5b565b9250826158ef576158ee61589a565b5b828204905092915050565b600061590582613e5b565b915061591083613e5b565b9250826159205761591f61589a565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006159b6602183613dab565b91506159c18261595a565b604082019050919050565b600060208201905081810360008301526159e5816159a9565b9050919050565b7f455243373231413a207175616e74697479206d7573742062652067726561746560008201527f72207468616e2030000000000000000000000000000000000000000000000000602082015250565b6000615a48602883613dab565b9150615a53826159ec565b604082019050919050565b60006020820190508181036000830152615a7781615a3b565b905091905056fea264697066735822122093dd61b43de78894a0a09c50e2d39965a57a136521d4cf0c73726683fd16273064736f6c634300080b0033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004b697066733a2f2f516d4e614c61457a57386531366b3678556d524266697839747269616f47594b4b7663544c34734d63694b6841552f486f74446f756750726572657665616c2e6a736f6e000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : newUnrevealedURI (string): ipfs://QmNaLaEzW8e16k6xUmRBfix9triaoGYKKvcTL4sMciKhAU/HotDougPrereveal.json

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 000000000000000000000000000000000000000000000000000000000000004b
Arg [2] : 697066733a2f2f516d4e614c61457a57386531366b3678556d52426669783974
Arg [3] : 7269616f47594b4b7663544c34734d63694b6841552f486f74446f7567507265
Arg [4] : 72657665616c2e6a736f6e000000000000000000000000000000000000000000


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.