ETH Price: $3,410.84 (-0.99%)
Gas: 2 Gwei

Token

Based Ghouls (GHLS)
 

Overview

Max Total Supply

849 GHLS

Holders

789

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 GHLS
0xF6AAFb44BC183D3083BFAe12D743d947Ca376562
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

6666 Based Ghouls. Consumed in the destruction of Moonbase. Summoned anew with the occult technology of financial power. Rise from your grave.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
BasedGhouls

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : BasedGhoulsNFT.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/common/ERC2981Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/cryptography/MerkleProofUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol";

import "./BatchReveal.sol";

contract BasedGhouls is ERC721Upgradeable, ERC2981Upgradeable, AccessControlUpgradeable, BatchReveal {
    using StringsUpgradeable for uint256;

    mapping (address => bool) public allowListRedemption;
    mapping (address => uint16[]) public ownedNFTs;

    bool public isMintable;
    uint16 public totalSupply;
    uint16 public maxGhouls;

    string public baseURI;
    string public unrevealedURI;

    bytes32 public MERKLE_ROOT;

    function initialize() initializer public {
        __ERC721_init("Based Ghouls", "GHLS");
        maxGhouls = 6666;
        baseURI = "https://ghlstest.s3.amazonaws.com/json/";
        unrevealedURI = "https://ghlsprereveal.s3.amazonaws.com/json/Shallow_Grave.json";
        MERKLE_ROOT = 0x43462521f09038fad70d2515b4dd7ed043b8e5802b16b42885cb8887d14b5d48;
        lastTokenRevealed = 0;
        isMintable = false;
        totalSupply = 0;
        _setDefaultRoyalty(0x475dcAA08A69fA462790F42DB4D3bbA1563cb474, 690);
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
        grantRole(DEFAULT_ADMIN_ROLE, 0x98CCf605c43A0bF9D6795C3cf3b5fEd836330511);
    }

    function updateBaseURI(string calldata _newURI) public onlyRole(DEFAULT_ADMIN_ROLE) {
        baseURI = _newURI;
    }

    function updateUnrevealedURI(string calldata _newURI) public onlyRole(DEFAULT_ADMIN_ROLE) {
        unrevealedURI = _newURI;
    }
 
    function setMintability(bool _mintability) public onlyRole(DEFAULT_ADMIN_ROLE) {
        isMintable = _mintability;
    }

    // u gotta... GOTTA... send the merkleproof in w the mint request. 
    function mint(bytes32[] calldata _merkleProof) public {
        require(isMintable, "NYM");
        require(totalSupply < maxGhouls, "OOG");
        address minter = msg.sender;
        require(!allowListRedemption[minter], "TMG");
        bytes32 leaf = keccak256(abi.encodePacked(minter));
        bool isLeaf = MerkleProofUpgradeable.verify(_merkleProof, MERKLE_ROOT, leaf);
        require(isLeaf, "NBG");
        allowListRedemption[minter] = true;
        totalSupply = totalSupply + 1;
        ownedNFTs[minter].push(totalSupply - 1);
        _mint(minter, totalSupply - 1);
        if(totalSupply >= (lastTokenRevealed + REVEAL_BATCH_SIZE)) {
            uint256 seed;
            unchecked {
                seed = uint256(blockhash(block.number - 69)) * uint256(block.timestamp % 69);
            }
            setBatchSeed(seed);
        }
    }


    function tokenURI(uint256 id) public view override returns (string memory) {
        if(id >= lastTokenRevealed){
            return unrevealedURI;
        } else {
             return string(abi.encodePacked(baseURI, getShuffledTokenId(id).toString(), ".json"));
        }
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControlUpgradeable, ERC2981Upgradeable, ERC721Upgradeable) returns (bool) {
        return
            interfaceId == type(IERC721Upgradeable).interfaceId ||
            interfaceId == type(IERC721MetadataUpgradeable).interfaceId ||
            interfaceId == type(IAccessControlUpgradeable).interfaceId ||
            interfaceId == type(IERC2981Upgradeable).interfaceId ||
            super.supportsInterface(interfaceId);
    }
}

File 2 of 17 : ERC721Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721Upgradeable.sol";
import "./IERC721ReceiverUpgradeable.sol";
import "./extensions/IERC721MetadataUpgradeable.sol";
import "../../utils/AddressUpgradeable.sol";
import "../../utils/ContextUpgradeable.sol";
import "../../utils/StringsUpgradeable.sol";
import "../../utils/introspection/ERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable {
    using AddressUpgradeable for address;
    using StringsUpgradeable for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    function __ERC721_init(string memory name_, string memory symbol_) internal onlyInitializing {
        __ERC721_init_unchained(name_, symbol_);
    }

    function __ERC721_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing {
        _name = name_;
        _symbol = symbol_;
    }

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

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

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @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 virtual override {
        address owner = ERC721Upgradeable.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_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 {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _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 virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @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.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: 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`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721Upgradeable.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId);
    }

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

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * 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
    ) internal virtual {
        require(ERC721Upgradeable.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @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 IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721ReceiverUpgradeable.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[44] private __gap;
}

File 3 of 17 : ERC2981Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981Upgradeable.sol";
import "../../utils/introspection/ERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.sol";

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

    function __ERC2981_init_unchained() internal onlyInitializing {
    }
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

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

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

    /**
     * @inheritdoc IERC2981Upgradeable
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
        external
        view
        virtual
        override
        returns (address, uint256)
    {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

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

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

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

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

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[48] private __gap;
}

File 4 of 17 : AccessControlUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControlUpgradeable.sol";
import "../utils/ContextUpgradeable.sol";
import "../utils/StringsUpgradeable.sol";
import "../utils/introspection/ERC165Upgradeable.sol";
import "../proxy/utils/Initializable.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControlUpgradeable is Initializable, ContextUpgradeable, IAccessControlUpgradeable, ERC165Upgradeable {
    function __AccessControl_init() internal onlyInitializing {
    }

    function __AccessControl_init_unchained() internal onlyInitializing {
    }
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        StringsUpgradeable.toHexString(uint160(account), 20),
                        " is missing role ",
                        StringsUpgradeable.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 5 of 17 : MerkleProofUpgradeable.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 MerkleProofUpgradeable {
    /**
     * @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 6 of 17 : StringsUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library StringsUpgradeable {
    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 7 of 17 : BatchReveal.sol
//SPDX-License-Identifier: CC0
pragma solidity ^0.8.0;

/*
  See ../../randomness.md
*/
abstract contract BatchReveal {
    uint constant public TOKEN_LIMIT = 6666;
    uint constant public REVEAL_BATCH_SIZE = 66;
    mapping(uint => uint) public batchToSeed;
    uint public lastTokenRevealed;

    struct Range{
        int128 start;
        int128 end;
    }

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

    uint constant RANGE_LENGTH = (TOKEN_LIMIT/REVEAL_BATCH_SIZE)*2;
    int128 constant intTOKEN_LIMIT = int128(int(TOKEN_LIMIT));

    // ranges include the start but not the end [start, end)
    function addRange(Range[RANGE_LENGTH] memory ranges, int128 start, int128 end, uint lastIndex) pure private returns (uint) {
        uint positionToAssume = lastIndex;
        for(uint j=0; j<lastIndex; j++){
            int128 rangeStart = ranges[j].start;
            int128 rangeEnd = ranges[j].end;
            if(start < rangeStart && positionToAssume == lastIndex){
                positionToAssume = j;
            }
            if(
                (start < rangeStart && end > rangeStart) ||
                (rangeStart <= start &&  end <= rangeEnd) ||
                (start < rangeEnd && end > rangeEnd)
            ){
                int128 length = end-start;
                start = min(start, rangeStart);
                end = start + length + (rangeEnd-rangeStart);
                ranges[j] = Range(-1,-1); // Delete
            }
        }
        for(uint pos = lastIndex; pos > positionToAssume; pos--){
            ranges[pos] = ranges[pos-1];
        }
        ranges[positionToAssume] = Range(start, min(end, intTOKEN_LIMIT));
        lastIndex++;
        if(end > intTOKEN_LIMIT){
            addRange(ranges, 0, end - intTOKEN_LIMIT, lastIndex);
            lastIndex++;
        }
        return lastIndex;
    }

    function buildJumps(uint lastBatch) view private returns (Range[RANGE_LENGTH] memory) {
        Range[RANGE_LENGTH] memory ranges;
        uint lastIndex = 0;
        for(uint i=0; i<lastBatch; i++){
            int128 start = int128(int(getFreeTokenId(batchToSeed[i], ranges)));
            int128 end = start + int128(int(REVEAL_BATCH_SIZE));
            lastIndex = addRange(ranges, start, end, lastIndex);
        }
        return ranges;
    }

    function getShuffledTokenId(uint startId) view internal returns (uint) {
        uint batch = startId/REVEAL_BATCH_SIZE;
        Range[RANGE_LENGTH] memory ranges = buildJumps(batch);
        uint positionsToMove = (startId % REVEAL_BATCH_SIZE) + batchToSeed[batch];
        return getFreeTokenId(positionsToMove, ranges);
    }

    function getFreeTokenId(uint positionsToMoveStart, Range[RANGE_LENGTH] memory ranges) pure private returns (uint) {
        int128 positionsToMove = int128(int(positionsToMoveStart));
        int128 id = 0;

        for(uint round = 0; round<2; round++){
            for(uint i=0; i<RANGE_LENGTH; i++){
                int128 start = ranges[i].start;
                int128 end = ranges[i].end;
                if(id < start){
                    int128 finalId = id + positionsToMove;
                    if(finalId < start){
                        return uint(uint128(finalId));
                    } else {
                        positionsToMove -= start - id;
                        id = end;
                    }
                } else if(id < end){
                    id = end;
                }
            }
            if((id + positionsToMove) >= intTOKEN_LIMIT){
                positionsToMove -= intTOKEN_LIMIT - id;
                id = 0;
            }
        }
        return uint(uint128(id + positionsToMove));
    }

    function setBatchSeed(uint randomness) internal {
        uint batchNumber;
        unchecked {
            batchNumber = lastTokenRevealed/REVEAL_BATCH_SIZE;
            lastTokenRevealed += REVEAL_BATCH_SIZE;
        }
        // not perfectly random since the folding doesn't match bounds perfectly, but difference is small
        batchToSeed[batchNumber] = randomness % (TOKEN_LIMIT - (batchNumber*REVEAL_BATCH_SIZE));
    }
}

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

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721Upgradeable is IERC165Upgradeable {
    /**
     * @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 9 of 17 : IERC721ReceiverUpgradeable.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 IERC721ReceiverUpgradeable {
    /**
     * @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 10 of 17 : IERC721MetadataUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721Upgradeable.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721MetadataUpgradeable is IERC721Upgradeable {
    /**
     * @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 11 of 17 : AddressUpgradeable.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 AddressUpgradeable {
    /**
     * @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 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 17 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 13 of 17 : ERC165Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.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 ERC165Upgradeable is Initializable, IERC165Upgradeable {
    function __ERC165_init() internal onlyInitializing {
    }

    function __ERC165_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165Upgradeable).interfaceId;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

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

pragma solidity ^0.8.0;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the
        // contract may have been reentered.
        require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} modifier, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}

File 15 of 17 : IERC165Upgradeable.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 IERC165Upgradeable {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 16 of 17 : IERC2981Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

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

File 17 of 17 : IAccessControlUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControlUpgradeable {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

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

Contract Security Audit

Contract ABI

[{"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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MERKLE_ROOT","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REVEAL_BATCH_SIZE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowListRedemption","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"batchToSeed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","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":"isMintable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTokenRevealed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxGhouls","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"ownedNFTs","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_mintability","type":"bool"}],"name":"setMintability","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"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":[],"name":"unrevealedURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_newURI","type":"string"}],"name":"updateBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newURI","type":"string"}],"name":"updateUnrevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061567580620000216000396000f3fe608060405234801561001057600080fd5b50600436106102275760003560e01c80636c0360eb11610130578063a217fddf116100b8578063c87b56dd1161007c578063c87b56dd14610679578063d547741f146106a9578063e5ef873d146106c5578063e985e9c5146106e1578063f43191951461071157610227565b8063a217fddf146105e9578063a22cb46514610607578063a57a806f14610623578063b77a147b14610641578063b88d4fde1461065d57610227565b80638129fc1c116100ff5780638129fc1c1461055757806391d1485414610561578063931688cb1461059157806395d89b41146105ad5780639f2063da146105cb57610227565b80636c0360eb146104bb5780637035bf18146104d957806370a08231146104f7578063777c90911461052757610227565b8063248a9ca3116101b357806342842e0e1161018257806342842e0e1461041757806346b45af7146104335780634e429f131461045157806351e75e8b1461046d5780636352211e1461048b57610227565b8063248a9ca31461037e5780632a55205a146103ae5780632f2ff15d146103df57806336568abe146103fb57610227565b8063095ea7b3116101fa578063095ea7b3146102c857806318160ddd146102e45780631944b8da146103025780631a72b87d1461033257806323b872dd1461036257610227565b806301ffc9a71461022c578063031bd4c41461025c57806306fdde031461027a578063081812fc14610298575b600080fd5b61024660048036038101906102419190613e82565b61072f565b60405161025391906145a4565b60405180910390f35b6102646108e1565b60405161027191906148f7565b60405180910390f35b6102826108e7565b60405161028f91906145da565b60405180910390f35b6102b260048036038101906102ad9190613f19565b610979565b6040516102bf9190614514565b60405180910390f35b6102e260048036038101906102dd9190613d73565b6109fe565b005b6102ec610b16565b6040516102f991906148dc565b60405180910390f35b61031c60048036038101906103179190613c08565b610b2a565b60405161032991906145a4565b60405180910390f35b61034c60048036038101906103479190613d73565b610b4a565b60405161035991906148dc565b60405180910390f35b61037c60048036038101906103779190613c6d565b610b91565b005b61039860048036038101906103939190613e1d565b610bf1565b6040516103a591906145bf565b60405180910390f35b6103c860048036038101906103c39190613f42565b610c11565b6040516103d692919061457b565b60405180910390f35b6103f960048036038101906103f49190613e46565b610dfc565b005b61041560048036038101906104109190613e46565b610e25565b005b610431600480360381019061042c9190613c6d565b610ea8565b005b61043b610ec8565b60405161044891906145a4565b60405180910390f35b61046b60048036038101906104669190613df4565b610edb565b005b610475610f0e565b60405161048291906145bf565b60405180910390f35b6104a560048036038101906104a09190613f19565b610f15565b6040516104b29190614514565b60405180910390f35b6104c3610fc7565b6040516104d091906145da565b60405180910390f35b6104e1611056565b6040516104ee91906145da565b60405180910390f35b610511600480360381019061050c9190613c08565b6110e5565b60405161051e91906148f7565b60405180910390f35b610541600480360381019061053c9190613f19565b61119d565b60405161054e91906148f7565b60405180910390f35b61055f6111b5565b005b61057b60048036038101906105769190613e46565b611446565b60405161058891906145a4565b60405180910390f35b6105ab60048036038101906105a69190613ed4565b6114b1565b005b6105b56114de565b6040516105c291906145da565b60405180910390f35b6105d3611570565b6040516105e091906148f7565b60405180910390f35b6105f1611575565b6040516105fe91906145bf565b60405180910390f35b610621600480360381019061061c9190613d37565b61157c565b005b61062b611592565b60405161063891906148dc565b60405180910390f35b61065b60048036038101906106569190613daf565b6115a6565b005b61067760048036038101906106729190613cbc565b61198d565b005b610693600480360381019061068e9190613f19565b6119ef565b6040516106a091906145da565b60405180910390f35b6106c360048036038101906106be9190613e46565b611ac9565b005b6106df60048036038101906106da9190613ed4565b611af2565b005b6106fb60048036038101906106f69190613c31565b611b1f565b60405161070891906145a4565b60405180910390f35b610719611bb3565b60405161072691906148f7565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107fa57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061086257507f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108ca57507f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108da57506108d982611bb9565b5b9050919050565b611a0a81565b6060606580546108f690614d4e565b80601f016020809104026020016040519081016040528092919081815260200182805461092290614d4e565b801561096f5780601f106109445761010080835404028352916020019161096f565b820191906000526020600020905b81548152906001019060200180831161095257829003601f168201915b5050505050905090565b600061098482611c33565b6109c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ba906147dc565b60405180910390fd5b6069600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a0982610f15565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a719061481c565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a99611c9f565b73ffffffffffffffffffffffffffffffffffffffff161480610ac85750610ac781610ac2611c9f565b611b1f565b5b610b07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610afe9061471c565b60405180910390fd5b610b118383611ca7565b505050565b60ff60019054906101000a900461ffff1681565b60fd6020528060005260406000206000915054906101000a900460ff1681565b60fe6020528160005260406000208181548110610b6657600080fd5b9060005260206000209060109182820401919006600202915091509054906101000a900461ffff1681565b610ba2610b9c611c9f565b82611d60565b610be1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd89061483c565b60405180910390fd5b610bec838383611e3e565b505050565b600060c96000838152602001908152602001600020600101549050919050565b6000806000609860008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161415610da75760976040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610db16120a5565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610ddd9190614b03565b610de79190614ad2565b90508160000151819350935050509250929050565b610e0582610bf1565b610e1681610e11611c9f565b6120af565b610e20838361214c565b505050565b610e2d611c9f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610e9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e91906148bc565b60405180910390fd5b610ea4828261222d565b5050565b610ec38383836040518060200160405280600081525061198d565b505050565b60ff60009054906101000a900460ff1681565b6000801b610ef081610eeb611c9f565b6120af565b8160ff60006101000a81548160ff0219169083151502179055505050565b6101025481565b6000806067600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610fbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb59061475c565b60405180910390fd5b80915050919050565b6101008054610fd590614d4e565b80601f016020809104026020016040519081016040528092919081815260200182805461100190614d4e565b801561104e5780601f106110235761010080835404028352916020019161104e565b820191906000526020600020905b81548152906001019060200180831161103157829003601f168201915b505050505081565b610101805461106490614d4e565b80601f016020809104026020016040519081016040528092919081815260200182805461109090614d4e565b80156110dd5780601f106110b2576101008083540402835291602001916110dd565b820191906000526020600020905b8154815290600101906020018083116110c057829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611156576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114d9061473c565b60405180910390fd5b606860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60fb6020528060005260406000206000915090505481565b600060019054906101000a900460ff166111dd5760008054906101000a900460ff16156111e6565b6111e561230f565b5b611225576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121c9061477c565b60405180910390fd5b60008060019054906101000a900460ff161590508015611275576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6112e96040518060400160405280600c81526020017f42617365642047686f756c7300000000000000000000000000000000000000008152506040518060400160405280600481526020017f47484c5300000000000000000000000000000000000000000000000000000000815250612320565b611a0a60ff60036101000a81548161ffff021916908361ffff1602179055506040518060600160405280602781526020016155db602791396101009080519060200190611337929190613917565b506040518060600160405280603e8152602001615602603e91396101019080519060200190611367929190613917565b507f43462521f09038fad70d2515b4dd7ed043b8e5802b16b42885cb8887d14b5d4860001b61010281905550600060fc81905550600060ff60006101000a81548160ff021916908315150217905550600060ff60016101000a81548161ffff021916908361ffff1602179055506113f473475dcaa08a69fa462790f42db4d3bba1563cb4746102b261237d565b6114016000801b33612513565b6114226000801b7398ccf605c43a0bf9d6795c3cf3b5fed836330511610dfc565b80156114435760008060016101000a81548160ff0219169083151502179055505b50565b600060c9600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b6114c6816114c1611c9f565b6120af565b828261010091906114d892919061399d565b50505050565b6060606680546114ed90614d4e565b80601f016020809104026020016040519081016040528092919081815260200182805461151990614d4e565b80156115665780601f1061153b57610100808354040283529160200191611566565b820191906000526020600020905b81548152906001019060200180831161154957829003601f168201915b5050505050905090565b604281565b6000801b81565b61158e611587611c9f565b8383612521565b5050565b60ff60039054906101000a900461ffff1681565b60ff60009054906101000a900460ff166115f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ec9061479c565b60405180910390fd5b60ff60039054906101000a900461ffff1661ffff1660ff60019054906101000a900461ffff1661ffff161061165f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611656906147fc565b60405180910390fd5b600033905060fd60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156116f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e89061467c565b60405180910390fd5b6000816040516020016117049190614490565b604051602081830303815290604052805190602001209050600061176d858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050610102548461268e565b9050806117af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a6906146dc565b60405180910390fd5b600160fd60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600160ff60019054906101000a900461ffff166118249190614a44565b60ff60016101000a81548161ffff021916908361ffff16021790555060fe60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600160ff60019054906101000a900461ffff1661189c9190614be1565b90806001815401808255809150506001900390600052602060002090601091828204019190066002029091909190916101000a81548161ffff021916908361ffff16021790555061190d83600160ff60019054906101000a900461ffff166119049190614be1565b61ffff166126a5565b604260fc5461191c9190614a7c565b60ff60019054906101000a900461ffff1661ffff16106119865760006045428161196f577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b06604543034060001c0290506119848161287f565b505b5050505050565b61199e611998611c9f565b83611d60565b6119dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119d49061483c565b60405180910390fd5b6119e98484848461290e565b50505050565b606060fc548210611a8d576101018054611a0890614d4e565b80601f0160208091040260200160405190810160405280929190818152602001828054611a3490614d4e565b8015611a815780601f10611a5657610100808354040283529160200191611a81565b820191906000526020600020905b815481529060010190602001808311611a6457829003601f168201915b50505050509050611ac4565b610100611aa1611a9c8461296a565b6129cc565b604051602001611ab29291906144ab565b60405160208183030381529060405290505b919050565b611ad282610bf1565b611ae381611ade611c9f565b6120af565b611aed838361222d565b505050565b6000801b611b0781611b02611c9f565b6120af565b82826101019190611b1992919061399d565b50505050565b6000606a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60fc5481565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611c2c5750611c2b82612b79565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166067600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816069600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611d1a83610f15565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611d6b82611c33565b611daa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da1906146fc565b60405180910390fd5b6000611db583610f15565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611e2457508373ffffffffffffffffffffffffffffffffffffffff16611e0c84610979565b73ffffffffffffffffffffffffffffffffffffffff16145b80611e355750611e348185611b1f565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611e5e82610f15565b73ffffffffffffffffffffffffffffffffffffffff1614611eb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eab9061463c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611f24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1b9061469c565b60405180910390fd5b611f2f838383612bf3565b611f3a600082611ca7565b6001606860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f8a9190614c15565b925050819055506001606860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611fe19190614a7c565b92505081905550816067600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46120a0838383612bf8565b505050565b6000612710905090565b6120b98282611446565b612148576120de8173ffffffffffffffffffffffffffffffffffffffff166014612bfd565b6120ec8360001c6020612bfd565b6040516020016120fd9291906144da565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213f91906145da565b60405180910390fd5b5050565b6121568282611446565b61222957600160c9600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506121ce611c9f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6122378282611446565b1561230b57600060c9600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506122b0611c9f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600061231a30612ef7565b15905090565b600060019054906101000a900460ff1661236f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123669061485c565b60405180910390fd5b6123798282612f1a565b5050565b6123856120a5565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff1611156123e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123da9061487c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612453576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244a9061489c565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250609760008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b61251d828261214c565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612590576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612587906146bc565b60405180910390fd5b80606a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161268191906145a4565b60405180910390a3505050565b60008261269b8584612f9b565b1490509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612715576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270c906147bc565b60405180910390fd5b61271e81611c33565b1561275e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127559061465c565b60405180910390fd5b61276a60008383612bf3565b6001606860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127ba9190614a7c565b92505081905550816067600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461287b60008383612bf8565b5050565b6000604260fc54816128ba577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b049050604260fc600082825401925050819055506042816128db9190614b03565b611a0a6128e89190614c15565b826128f39190614e1e565b60fb6000838152602001908152602001600020819055505050565b612919848484611e3e565b61292584848484613036565b612964576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161295b9061461c565b60405180910390fd5b50505050565b60008060428361297a9190614ad2565b90506000612987826131cd565b9050600060fb6000848152602001908152602001600020546042866129ac9190614e1e565b6129b69190614a7c565b90506129c28183613249565b9350505050919050565b60606000821415612a14576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612b74565b600082905060005b60008214612a46578080612a2f90614db1565b915050600a82612a3f9190614ad2565b9150612a1c565b60008167ffffffffffffffff811115612a88577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612aba5781602001600182028036833780820191505090505b5090505b60008514612b6d57600182612ad39190614c15565b9150600a85612ae29190614e1e565b6030612aee9190614a7c565b60f81b818381518110612b2a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612b669190614ad2565b9450612abe565b8093505050505b919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612bec5750612beb8261341c565b5b9050919050565b505050565b505050565b606060006002836002612c109190614b03565b612c1a9190614a7c565b67ffffffffffffffff811115612c59577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612c8b5781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612ce9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612d73577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002612db39190614b03565b612dbd9190614a7c565b90505b6001811115612ea9577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110612e25577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110612e62577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080612ea290614d24565b9050612dc0565b5060008414612eed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ee4906145fc565b60405180910390fd5b8091505092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff16612f69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f609061485c565b60405180910390fd5b8160659080519060200190612f7f929190613917565b508060669080519060200190612f96929190613917565b505050565b60008082905060005b845181101561302b576000858281518110612fe8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905080831161300a5761300383826134fe565b9250613017565b61301481846134fe565b92505b50808061302390614db1565b915050612fa4565b508091505092915050565b60006130578473ffffffffffffffffffffffffffffffffffffffff16612ef7565b156131c0578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613080611c9f565b8786866040518563ffffffff1660e01b81526004016130a2949392919061452f565b602060405180830381600087803b1580156130bc57600080fd5b505af19250505080156130ed57506040513d601f19601f820116820180604052508101906130ea9190613eab565b60015b613170573d806000811461311d576040519150601f19603f3d011682016040523d82523d6000602084013e613122565b606091505b50600081511415613168576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161315f9061461c565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506131c5565b600190505b949350505050565b6131d5613a23565b6131dd613a23565b6000805b8481101561323e57600061320860fb60008481526020019081526020016000205485613249565b9050600060428261321991906149c0565b905061322785838387613515565b93505050808061323690614db1565b9150506131e1565b508192505050919050565b6000808390506000805b60028110156133f25760005b60026042611a0a6132709190614ad2565b61327a9190614b03565b8110156133a4576000868260ca81106132bc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201516000015190506000878360ca8110613302577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002015160200151905081600f0b85600f0b121561337c576000868661332991906149c0565b905082600f0b81600f0b121561335a57806fffffffffffffffffffffffffffffffff16975050505050505050613416565b85836133669190614b5d565b876133719190614b5d565b96508195505061338f565b80600f0b85600f0b121561338e578094505b5b5050808061339c90614db1565b91505061325f565b50611a0a600f0b83836133b791906149c0565b600f0b126133df5781611a0a6133cd9190614b5d565b836133d89190614b5d565b9250600091505b80806133ea90614db1565b915050613253565b5081816133ff91906149c0565b6fffffffffffffffffffffffffffffffff16925050505b92915050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806134e757507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806134f757506134f68261388e565b5b9050919050565b600082600052816020526040600020905092915050565b60008082905060005b83811015613725576000878260ca8110613561577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201516000015190506000888360ca81106135a7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002015160200151905081600f0b88600f0b1280156135c657508584145b156135cf578293505b81600f0b88600f0b1280156135e9575081600f0b87600f0b135b8061360c575087600f0b82600f0b1315801561360b575080600f0b87600f0b13155b5b8061362d575080600f0b88600f0b12801561362c575080600f0b87600f0b135b5b1561371057600088886136409190614b5d565b905061364c89846138f8565b9850828261365a9190614b5d565b818a61366691906149c0565b61367091906149c0565b975060405180604001604052807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600f0b81526020017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600f0b8152508a8560ca8110613706577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020181905250505b5050808061371d90614db1565b91505061351e565b5060008390505b818111156137d257866001826137429190614c15565b60ca8110613779577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020151878260ca81106137b7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002018190525080806137ca90614d24565b91505061372c565b50604051806040016040528086600f0b81526020016137f386611a0a6138f8565b600f0b815250868260ca8110613832577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020181905250828061384590614db1565b935050611a0a600f0b84600f0b131561388257613872866000611a0a8761386c9190614b5d565b86613515565b50828061387e90614db1565b9350505b82915050949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081600f0b83600f0b1261390d578161390f565b825b905092915050565b82805461392390614d4e565b90600052602060002090601f016020900481019282613945576000855561398c565b82601f1061395e57805160ff191683800117855561398c565b8280016001018555821561398c579182015b8281111561398b578251825591602001919060010190613970565b5b5090506139999190613a51565b5090565b8280546139a990614d4e565b90600052602060002090601f0160209004810192826139cb5760008555613a12565b82601f106139e457803560ff1916838001178555613a12565b82800160010185558215613a12579182015b82811115613a115782358255916020019190600101906139f6565b5b509050613a1f9190613a51565b5090565b60405180611940016040528060ca905b613a3b613a6e565b815260200190600190039081613a335790505090565b5b80821115613a6a576000816000905550600101613a52565b5090565b60405180604001604052806000600f0b81526020016000600f0b81525090565b6000613aa1613a9c84614937565b614912565b905082815260208101848484011115613ab957600080fd5b613ac4848285614ce2565b509392505050565b600081359050613adb81615567565b92915050565b60008083601f840112613af357600080fd5b8235905067ffffffffffffffff811115613b0c57600080fd5b602083019150836020820283011115613b2457600080fd5b9250929050565b600081359050613b3a8161557e565b92915050565b600081359050613b4f81615595565b92915050565b600081359050613b64816155ac565b92915050565b600081519050613b79816155ac565b92915050565b600082601f830112613b9057600080fd5b8135613ba0848260208601613a8e565b91505092915050565b60008083601f840112613bbb57600080fd5b8235905067ffffffffffffffff811115613bd457600080fd5b602083019150836001820283011115613bec57600080fd5b9250929050565b600081359050613c02816155c3565b92915050565b600060208284031215613c1a57600080fd5b6000613c2884828501613acc565b91505092915050565b60008060408385031215613c4457600080fd5b6000613c5285828601613acc565b9250506020613c6385828601613acc565b9150509250929050565b600080600060608486031215613c8257600080fd5b6000613c9086828701613acc565b9350506020613ca186828701613acc565b9250506040613cb286828701613bf3565b9150509250925092565b60008060008060808587031215613cd257600080fd5b6000613ce087828801613acc565b9450506020613cf187828801613acc565b9350506040613d0287828801613bf3565b925050606085013567ffffffffffffffff811115613d1f57600080fd5b613d2b87828801613b7f565b91505092959194509250565b60008060408385031215613d4a57600080fd5b6000613d5885828601613acc565b9250506020613d6985828601613b2b565b9150509250929050565b60008060408385031215613d8657600080fd5b6000613d9485828601613acc565b9250506020613da585828601613bf3565b9150509250929050565b60008060208385031215613dc257600080fd5b600083013567ffffffffffffffff811115613ddc57600080fd5b613de885828601613ae1565b92509250509250929050565b600060208284031215613e0657600080fd5b6000613e1484828501613b2b565b91505092915050565b600060208284031215613e2f57600080fd5b6000613e3d84828501613b40565b91505092915050565b60008060408385031215613e5957600080fd5b6000613e6785828601613b40565b9250506020613e7885828601613acc565b9150509250929050565b600060208284031215613e9457600080fd5b6000613ea284828501613b55565b91505092915050565b600060208284031215613ebd57600080fd5b6000613ecb84828501613b6a565b91505092915050565b60008060208385031215613ee757600080fd5b600083013567ffffffffffffffff811115613f0157600080fd5b613f0d85828601613ba9565b92509250509250929050565b600060208284031215613f2b57600080fd5b6000613f3984828501613bf3565b91505092915050565b60008060408385031215613f5557600080fd5b6000613f6385828601613bf3565b9250506020613f7485828601613bf3565b9150509250929050565b613f8781614c49565b82525050565b613f9e613f9982614c49565b614dfa565b82525050565b613fad81614c5b565b82525050565b613fbc81614c67565b82525050565b6000613fcd8261497d565b613fd78185614993565b9350613fe7818560208601614cf1565b613ff081614f0b565b840191505092915050565b600061400682614988565b61401081856149a4565b9350614020818560208601614cf1565b61402981614f0b565b840191505092915050565b600061403f82614988565b61404981856149b5565b9350614059818560208601614cf1565b80840191505092915050565b6000815461407281614d4e565b61407c81866149b5565b9450600182166000811461409757600181146140a8576140db565b60ff198316865281860193506140db565b6140b185614968565b60005b838110156140d3578154818901526001820191506020810190506140b4565b838801955050505b50505092915050565b60006140f16020836149a4565b91506140fc82614f29565b602082019050919050565b60006141146032836149a4565b915061411f82614f52565b604082019050919050565b60006141376025836149a4565b915061414282614fa1565b604082019050919050565b600061415a601c836149a4565b915061416582614ff0565b602082019050919050565b600061417d6003836149a4565b915061418882615019565b602082019050919050565b60006141a06024836149a4565b91506141ab82615042565b604082019050919050565b60006141c36019836149a4565b91506141ce82615091565b602082019050919050565b60006141e66003836149a4565b91506141f1826150ba565b602082019050919050565b6000614209602c836149a4565b9150614214826150e3565b604082019050919050565b600061422c6038836149a4565b915061423782615132565b604082019050919050565b600061424f602a836149a4565b915061425a82615181565b604082019050919050565b60006142726029836149a4565b915061427d826151d0565b604082019050919050565b6000614295602e836149a4565b91506142a08261521f565b604082019050919050565b60006142b86003836149a4565b91506142c38261526e565b602082019050919050565b60006142db6020836149a4565b91506142e682615297565b602082019050919050565b60006142fe602c836149a4565b9150614309826152c0565b604082019050919050565b60006143216005836149b5565b915061432c8261530f565b600582019050919050565b60006143446003836149a4565b915061434f82615338565b602082019050919050565b60006143676021836149a4565b915061437282615361565b604082019050919050565b600061438a6031836149a4565b9150614395826153b0565b604082019050919050565b60006143ad602b836149a4565b91506143b8826153ff565b604082019050919050565b60006143d06017836149b5565b91506143db8261544e565b601782019050919050565b60006143f3602a836149a4565b91506143fe82615477565b604082019050919050565b60006144166019836149a4565b9150614421826154c6565b602082019050919050565b60006144396011836149b5565b9150614444826154ef565b601182019050919050565b600061445c602f836149a4565b915061446782615518565b604082019050919050565b61447b81614caa565b82525050565b61448a81614cd8565b82525050565b600061449c8284613f8d565b60148201915081905092915050565b60006144b78285614065565b91506144c38284614034565b91506144ce82614314565b91508190509392505050565b60006144e5826143c3565b91506144f18285614034565b91506144fc8261442c565b91506145088284614034565b91508190509392505050565b60006020820190506145296000830184613f7e565b92915050565b60006080820190506145446000830187613f7e565b6145516020830186613f7e565b61455e6040830185614481565b81810360608301526145708184613fc2565b905095945050505050565b60006040820190506145906000830185613f7e565b61459d6020830184614481565b9392505050565b60006020820190506145b96000830184613fa4565b92915050565b60006020820190506145d46000830184613fb3565b92915050565b600060208201905081810360008301526145f48184613ffb565b905092915050565b60006020820190508181036000830152614615816140e4565b9050919050565b6000602082019050818103600083015261463581614107565b9050919050565b600060208201905081810360008301526146558161412a565b9050919050565b600060208201905081810360008301526146758161414d565b9050919050565b6000602082019050818103600083015261469581614170565b9050919050565b600060208201905081810360008301526146b581614193565b9050919050565b600060208201905081810360008301526146d5816141b6565b9050919050565b600060208201905081810360008301526146f5816141d9565b9050919050565b60006020820190508181036000830152614715816141fc565b9050919050565b600060208201905081810360008301526147358161421f565b9050919050565b6000602082019050818103600083015261475581614242565b9050919050565b6000602082019050818103600083015261477581614265565b9050919050565b6000602082019050818103600083015261479581614288565b9050919050565b600060208201905081810360008301526147b5816142ab565b9050919050565b600060208201905081810360008301526147d5816142ce565b9050919050565b600060208201905081810360008301526147f5816142f1565b9050919050565b6000602082019050818103600083015261481581614337565b9050919050565b600060208201905081810360008301526148358161435a565b9050919050565b600060208201905081810360008301526148558161437d565b9050919050565b60006020820190508181036000830152614875816143a0565b9050919050565b60006020820190508181036000830152614895816143e6565b9050919050565b600060208201905081810360008301526148b581614409565b9050919050565b600060208201905081810360008301526148d58161444f565b9050919050565b60006020820190506148f16000830184614472565b92915050565b600060208201905061490c6000830184614481565b92915050565b600061491c61492d565b90506149288282614d80565b919050565b6000604051905090565b600067ffffffffffffffff82111561495257614951614edc565b5b61495b82614f0b565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006149cb82614c9d565b91506149d683614c9d565b9250816f7fffffffffffffffffffffffffffffff03831360008312151615614a0157614a00614e4f565b5b817fffffffffffffffffffffffffffffffff80000000000000000000000000000000038312600083121615614a3957614a38614e4f565b5b828201905092915050565b6000614a4f82614caa565b9150614a5a83614caa565b92508261ffff03821115614a7157614a70614e4f565b5b828201905092915050565b6000614a8782614cd8565b9150614a9283614cd8565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614ac757614ac6614e4f565b5b828201905092915050565b6000614add82614cd8565b9150614ae883614cd8565b925082614af857614af7614e7e565b5b828204905092915050565b6000614b0e82614cd8565b9150614b1983614cd8565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614b5257614b51614e4f565b5b828202905092915050565b6000614b6882614c9d565b9150614b7383614c9d565b9250827fffffffffffffffffffffffffffffffff8000000000000000000000000000000001821260008412151615614bae57614bad614e4f565b5b826f7fffffffffffffffffffffffffffffff018213600084121615614bd657614bd5614e4f565b5b828203905092915050565b6000614bec82614caa565b9150614bf783614caa565b925082821015614c0a57614c09614e4f565b5b828203905092915050565b6000614c2082614cd8565b9150614c2b83614cd8565b925082821015614c3e57614c3d614e4f565b5b828203905092915050565b6000614c5482614cb8565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600081600f0b9050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015614d0f578082015181840152602081019050614cf4565b83811115614d1e576000848401525b50505050565b6000614d2f82614cd8565b91506000821415614d4357614d42614e4f565b5b600182039050919050565b60006002820490506001821680614d6657607f821691505b60208210811415614d7a57614d79614ead565b5b50919050565b614d8982614f0b565b810181811067ffffffffffffffff82111715614da857614da7614edc565b5b80604052505050565b6000614dbc82614cd8565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614def57614dee614e4f565b5b600182019050919050565b6000614e0582614e0c565b9050919050565b6000614e1782614f1c565b9050919050565b6000614e2982614cd8565b9150614e3483614cd8565b925082614e4457614e43614e7e565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f544d470000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4e42470000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b7f4e594d0000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f4f470000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b61557081614c49565b811461557b57600080fd5b50565b61558781614c5b565b811461559257600080fd5b50565b61559e81614c67565b81146155a957600080fd5b50565b6155b581614c71565b81146155c057600080fd5b50565b6155cc81614cd8565b81146155d757600080fd5b5056fe68747470733a2f2f67686c73746573742e73332e616d617a6f6e6177732e636f6d2f6a736f6e2f68747470733a2f2f67686c7370726572657665616c2e73332e616d617a6f6e6177732e636f6d2f6a736f6e2f5368616c6c6f775f47726176652e6a736f6ea2646970667358221220cc8c3bd5a490d02b36c5ddbd6ff69fe9ee8a1788def0458b7ed8643d2a231c3264736f6c63430008040033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102275760003560e01c80636c0360eb11610130578063a217fddf116100b8578063c87b56dd1161007c578063c87b56dd14610679578063d547741f146106a9578063e5ef873d146106c5578063e985e9c5146106e1578063f43191951461071157610227565b8063a217fddf146105e9578063a22cb46514610607578063a57a806f14610623578063b77a147b14610641578063b88d4fde1461065d57610227565b80638129fc1c116100ff5780638129fc1c1461055757806391d1485414610561578063931688cb1461059157806395d89b41146105ad5780639f2063da146105cb57610227565b80636c0360eb146104bb5780637035bf18146104d957806370a08231146104f7578063777c90911461052757610227565b8063248a9ca3116101b357806342842e0e1161018257806342842e0e1461041757806346b45af7146104335780634e429f131461045157806351e75e8b1461046d5780636352211e1461048b57610227565b8063248a9ca31461037e5780632a55205a146103ae5780632f2ff15d146103df57806336568abe146103fb57610227565b8063095ea7b3116101fa578063095ea7b3146102c857806318160ddd146102e45780631944b8da146103025780631a72b87d1461033257806323b872dd1461036257610227565b806301ffc9a71461022c578063031bd4c41461025c57806306fdde031461027a578063081812fc14610298575b600080fd5b61024660048036038101906102419190613e82565b61072f565b60405161025391906145a4565b60405180910390f35b6102646108e1565b60405161027191906148f7565b60405180910390f35b6102826108e7565b60405161028f91906145da565b60405180910390f35b6102b260048036038101906102ad9190613f19565b610979565b6040516102bf9190614514565b60405180910390f35b6102e260048036038101906102dd9190613d73565b6109fe565b005b6102ec610b16565b6040516102f991906148dc565b60405180910390f35b61031c60048036038101906103179190613c08565b610b2a565b60405161032991906145a4565b60405180910390f35b61034c60048036038101906103479190613d73565b610b4a565b60405161035991906148dc565b60405180910390f35b61037c60048036038101906103779190613c6d565b610b91565b005b61039860048036038101906103939190613e1d565b610bf1565b6040516103a591906145bf565b60405180910390f35b6103c860048036038101906103c39190613f42565b610c11565b6040516103d692919061457b565b60405180910390f35b6103f960048036038101906103f49190613e46565b610dfc565b005b61041560048036038101906104109190613e46565b610e25565b005b610431600480360381019061042c9190613c6d565b610ea8565b005b61043b610ec8565b60405161044891906145a4565b60405180910390f35b61046b60048036038101906104669190613df4565b610edb565b005b610475610f0e565b60405161048291906145bf565b60405180910390f35b6104a560048036038101906104a09190613f19565b610f15565b6040516104b29190614514565b60405180910390f35b6104c3610fc7565b6040516104d091906145da565b60405180910390f35b6104e1611056565b6040516104ee91906145da565b60405180910390f35b610511600480360381019061050c9190613c08565b6110e5565b60405161051e91906148f7565b60405180910390f35b610541600480360381019061053c9190613f19565b61119d565b60405161054e91906148f7565b60405180910390f35b61055f6111b5565b005b61057b60048036038101906105769190613e46565b611446565b60405161058891906145a4565b60405180910390f35b6105ab60048036038101906105a69190613ed4565b6114b1565b005b6105b56114de565b6040516105c291906145da565b60405180910390f35b6105d3611570565b6040516105e091906148f7565b60405180910390f35b6105f1611575565b6040516105fe91906145bf565b60405180910390f35b610621600480360381019061061c9190613d37565b61157c565b005b61062b611592565b60405161063891906148dc565b60405180910390f35b61065b60048036038101906106569190613daf565b6115a6565b005b61067760048036038101906106729190613cbc565b61198d565b005b610693600480360381019061068e9190613f19565b6119ef565b6040516106a091906145da565b60405180910390f35b6106c360048036038101906106be9190613e46565b611ac9565b005b6106df60048036038101906106da9190613ed4565b611af2565b005b6106fb60048036038101906106f69190613c31565b611b1f565b60405161070891906145a4565b60405180910390f35b610719611bb3565b60405161072691906148f7565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107fa57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061086257507f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108ca57507f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108da57506108d982611bb9565b5b9050919050565b611a0a81565b6060606580546108f690614d4e565b80601f016020809104026020016040519081016040528092919081815260200182805461092290614d4e565b801561096f5780601f106109445761010080835404028352916020019161096f565b820191906000526020600020905b81548152906001019060200180831161095257829003601f168201915b5050505050905090565b600061098482611c33565b6109c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ba906147dc565b60405180910390fd5b6069600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a0982610f15565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a719061481c565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a99611c9f565b73ffffffffffffffffffffffffffffffffffffffff161480610ac85750610ac781610ac2611c9f565b611b1f565b5b610b07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610afe9061471c565b60405180910390fd5b610b118383611ca7565b505050565b60ff60019054906101000a900461ffff1681565b60fd6020528060005260406000206000915054906101000a900460ff1681565b60fe6020528160005260406000208181548110610b6657600080fd5b9060005260206000209060109182820401919006600202915091509054906101000a900461ffff1681565b610ba2610b9c611c9f565b82611d60565b610be1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd89061483c565b60405180910390fd5b610bec838383611e3e565b505050565b600060c96000838152602001908152602001600020600101549050919050565b6000806000609860008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161415610da75760976040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610db16120a5565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610ddd9190614b03565b610de79190614ad2565b90508160000151819350935050509250929050565b610e0582610bf1565b610e1681610e11611c9f565b6120af565b610e20838361214c565b505050565b610e2d611c9f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610e9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e91906148bc565b60405180910390fd5b610ea4828261222d565b5050565b610ec38383836040518060200160405280600081525061198d565b505050565b60ff60009054906101000a900460ff1681565b6000801b610ef081610eeb611c9f565b6120af565b8160ff60006101000a81548160ff0219169083151502179055505050565b6101025481565b6000806067600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610fbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb59061475c565b60405180910390fd5b80915050919050565b6101008054610fd590614d4e565b80601f016020809104026020016040519081016040528092919081815260200182805461100190614d4e565b801561104e5780601f106110235761010080835404028352916020019161104e565b820191906000526020600020905b81548152906001019060200180831161103157829003601f168201915b505050505081565b610101805461106490614d4e565b80601f016020809104026020016040519081016040528092919081815260200182805461109090614d4e565b80156110dd5780601f106110b2576101008083540402835291602001916110dd565b820191906000526020600020905b8154815290600101906020018083116110c057829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611156576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114d9061473c565b60405180910390fd5b606860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60fb6020528060005260406000206000915090505481565b600060019054906101000a900460ff166111dd5760008054906101000a900460ff16156111e6565b6111e561230f565b5b611225576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121c9061477c565b60405180910390fd5b60008060019054906101000a900460ff161590508015611275576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6112e96040518060400160405280600c81526020017f42617365642047686f756c7300000000000000000000000000000000000000008152506040518060400160405280600481526020017f47484c5300000000000000000000000000000000000000000000000000000000815250612320565b611a0a60ff60036101000a81548161ffff021916908361ffff1602179055506040518060600160405280602781526020016155db602791396101009080519060200190611337929190613917565b506040518060600160405280603e8152602001615602603e91396101019080519060200190611367929190613917565b507f43462521f09038fad70d2515b4dd7ed043b8e5802b16b42885cb8887d14b5d4860001b61010281905550600060fc81905550600060ff60006101000a81548160ff021916908315150217905550600060ff60016101000a81548161ffff021916908361ffff1602179055506113f473475dcaa08a69fa462790f42db4d3bba1563cb4746102b261237d565b6114016000801b33612513565b6114226000801b7398ccf605c43a0bf9d6795c3cf3b5fed836330511610dfc565b80156114435760008060016101000a81548160ff0219169083151502179055505b50565b600060c9600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b6114c6816114c1611c9f565b6120af565b828261010091906114d892919061399d565b50505050565b6060606680546114ed90614d4e565b80601f016020809104026020016040519081016040528092919081815260200182805461151990614d4e565b80156115665780601f1061153b57610100808354040283529160200191611566565b820191906000526020600020905b81548152906001019060200180831161154957829003601f168201915b5050505050905090565b604281565b6000801b81565b61158e611587611c9f565b8383612521565b5050565b60ff60039054906101000a900461ffff1681565b60ff60009054906101000a900460ff166115f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ec9061479c565b60405180910390fd5b60ff60039054906101000a900461ffff1661ffff1660ff60019054906101000a900461ffff1661ffff161061165f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611656906147fc565b60405180910390fd5b600033905060fd60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156116f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e89061467c565b60405180910390fd5b6000816040516020016117049190614490565b604051602081830303815290604052805190602001209050600061176d858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050610102548461268e565b9050806117af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a6906146dc565b60405180910390fd5b600160fd60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600160ff60019054906101000a900461ffff166118249190614a44565b60ff60016101000a81548161ffff021916908361ffff16021790555060fe60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600160ff60019054906101000a900461ffff1661189c9190614be1565b90806001815401808255809150506001900390600052602060002090601091828204019190066002029091909190916101000a81548161ffff021916908361ffff16021790555061190d83600160ff60019054906101000a900461ffff166119049190614be1565b61ffff166126a5565b604260fc5461191c9190614a7c565b60ff60019054906101000a900461ffff1661ffff16106119865760006045428161196f577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b06604543034060001c0290506119848161287f565b505b5050505050565b61199e611998611c9f565b83611d60565b6119dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119d49061483c565b60405180910390fd5b6119e98484848461290e565b50505050565b606060fc548210611a8d576101018054611a0890614d4e565b80601f0160208091040260200160405190810160405280929190818152602001828054611a3490614d4e565b8015611a815780601f10611a5657610100808354040283529160200191611a81565b820191906000526020600020905b815481529060010190602001808311611a6457829003601f168201915b50505050509050611ac4565b610100611aa1611a9c8461296a565b6129cc565b604051602001611ab29291906144ab565b60405160208183030381529060405290505b919050565b611ad282610bf1565b611ae381611ade611c9f565b6120af565b611aed838361222d565b505050565b6000801b611b0781611b02611c9f565b6120af565b82826101019190611b1992919061399d565b50505050565b6000606a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60fc5481565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611c2c5750611c2b82612b79565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166067600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816069600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611d1a83610f15565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611d6b82611c33565b611daa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da1906146fc565b60405180910390fd5b6000611db583610f15565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611e2457508373ffffffffffffffffffffffffffffffffffffffff16611e0c84610979565b73ffffffffffffffffffffffffffffffffffffffff16145b80611e355750611e348185611b1f565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611e5e82610f15565b73ffffffffffffffffffffffffffffffffffffffff1614611eb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eab9061463c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611f24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1b9061469c565b60405180910390fd5b611f2f838383612bf3565b611f3a600082611ca7565b6001606860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f8a9190614c15565b925050819055506001606860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611fe19190614a7c565b92505081905550816067600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46120a0838383612bf8565b505050565b6000612710905090565b6120b98282611446565b612148576120de8173ffffffffffffffffffffffffffffffffffffffff166014612bfd565b6120ec8360001c6020612bfd565b6040516020016120fd9291906144da565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213f91906145da565b60405180910390fd5b5050565b6121568282611446565b61222957600160c9600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506121ce611c9f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6122378282611446565b1561230b57600060c9600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506122b0611c9f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600061231a30612ef7565b15905090565b600060019054906101000a900460ff1661236f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123669061485c565b60405180910390fd5b6123798282612f1a565b5050565b6123856120a5565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff1611156123e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123da9061487c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612453576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244a9061489c565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250609760008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b61251d828261214c565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612590576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612587906146bc565b60405180910390fd5b80606a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161268191906145a4565b60405180910390a3505050565b60008261269b8584612f9b565b1490509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612715576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270c906147bc565b60405180910390fd5b61271e81611c33565b1561275e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127559061465c565b60405180910390fd5b61276a60008383612bf3565b6001606860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127ba9190614a7c565b92505081905550816067600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461287b60008383612bf8565b5050565b6000604260fc54816128ba577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b049050604260fc600082825401925050819055506042816128db9190614b03565b611a0a6128e89190614c15565b826128f39190614e1e565b60fb6000838152602001908152602001600020819055505050565b612919848484611e3e565b61292584848484613036565b612964576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161295b9061461c565b60405180910390fd5b50505050565b60008060428361297a9190614ad2565b90506000612987826131cd565b9050600060fb6000848152602001908152602001600020546042866129ac9190614e1e565b6129b69190614a7c565b90506129c28183613249565b9350505050919050565b60606000821415612a14576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612b74565b600082905060005b60008214612a46578080612a2f90614db1565b915050600a82612a3f9190614ad2565b9150612a1c565b60008167ffffffffffffffff811115612a88577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612aba5781602001600182028036833780820191505090505b5090505b60008514612b6d57600182612ad39190614c15565b9150600a85612ae29190614e1e565b6030612aee9190614a7c565b60f81b818381518110612b2a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612b669190614ad2565b9450612abe565b8093505050505b919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612bec5750612beb8261341c565b5b9050919050565b505050565b505050565b606060006002836002612c109190614b03565b612c1a9190614a7c565b67ffffffffffffffff811115612c59577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612c8b5781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612ce9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612d73577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002612db39190614b03565b612dbd9190614a7c565b90505b6001811115612ea9577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110612e25577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110612e62577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080612ea290614d24565b9050612dc0565b5060008414612eed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ee4906145fc565b60405180910390fd5b8091505092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff16612f69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f609061485c565b60405180910390fd5b8160659080519060200190612f7f929190613917565b508060669080519060200190612f96929190613917565b505050565b60008082905060005b845181101561302b576000858281518110612fe8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905080831161300a5761300383826134fe565b9250613017565b61301481846134fe565b92505b50808061302390614db1565b915050612fa4565b508091505092915050565b60006130578473ffffffffffffffffffffffffffffffffffffffff16612ef7565b156131c0578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613080611c9f565b8786866040518563ffffffff1660e01b81526004016130a2949392919061452f565b602060405180830381600087803b1580156130bc57600080fd5b505af19250505080156130ed57506040513d601f19601f820116820180604052508101906130ea9190613eab565b60015b613170573d806000811461311d576040519150601f19603f3d011682016040523d82523d6000602084013e613122565b606091505b50600081511415613168576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161315f9061461c565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506131c5565b600190505b949350505050565b6131d5613a23565b6131dd613a23565b6000805b8481101561323e57600061320860fb60008481526020019081526020016000205485613249565b9050600060428261321991906149c0565b905061322785838387613515565b93505050808061323690614db1565b9150506131e1565b508192505050919050565b6000808390506000805b60028110156133f25760005b60026042611a0a6132709190614ad2565b61327a9190614b03565b8110156133a4576000868260ca81106132bc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201516000015190506000878360ca8110613302577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002015160200151905081600f0b85600f0b121561337c576000868661332991906149c0565b905082600f0b81600f0b121561335a57806fffffffffffffffffffffffffffffffff16975050505050505050613416565b85836133669190614b5d565b876133719190614b5d565b96508195505061338f565b80600f0b85600f0b121561338e578094505b5b5050808061339c90614db1565b91505061325f565b50611a0a600f0b83836133b791906149c0565b600f0b126133df5781611a0a6133cd9190614b5d565b836133d89190614b5d565b9250600091505b80806133ea90614db1565b915050613253565b5081816133ff91906149c0565b6fffffffffffffffffffffffffffffffff16925050505b92915050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806134e757507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806134f757506134f68261388e565b5b9050919050565b600082600052816020526040600020905092915050565b60008082905060005b83811015613725576000878260ca8110613561577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201516000015190506000888360ca81106135a7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002015160200151905081600f0b88600f0b1280156135c657508584145b156135cf578293505b81600f0b88600f0b1280156135e9575081600f0b87600f0b135b8061360c575087600f0b82600f0b1315801561360b575080600f0b87600f0b13155b5b8061362d575080600f0b88600f0b12801561362c575080600f0b87600f0b135b5b1561371057600088886136409190614b5d565b905061364c89846138f8565b9850828261365a9190614b5d565b818a61366691906149c0565b61367091906149c0565b975060405180604001604052807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600f0b81526020017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600f0b8152508a8560ca8110613706577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020181905250505b5050808061371d90614db1565b91505061351e565b5060008390505b818111156137d257866001826137429190614c15565b60ca8110613779577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020151878260ca81106137b7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002018190525080806137ca90614d24565b91505061372c565b50604051806040016040528086600f0b81526020016137f386611a0a6138f8565b600f0b815250868260ca8110613832577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020181905250828061384590614db1565b935050611a0a600f0b84600f0b131561388257613872866000611a0a8761386c9190614b5d565b86613515565b50828061387e90614db1565b9350505b82915050949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081600f0b83600f0b1261390d578161390f565b825b905092915050565b82805461392390614d4e565b90600052602060002090601f016020900481019282613945576000855561398c565b82601f1061395e57805160ff191683800117855561398c565b8280016001018555821561398c579182015b8281111561398b578251825591602001919060010190613970565b5b5090506139999190613a51565b5090565b8280546139a990614d4e565b90600052602060002090601f0160209004810192826139cb5760008555613a12565b82601f106139e457803560ff1916838001178555613a12565b82800160010185558215613a12579182015b82811115613a115782358255916020019190600101906139f6565b5b509050613a1f9190613a51565b5090565b60405180611940016040528060ca905b613a3b613a6e565b815260200190600190039081613a335790505090565b5b80821115613a6a576000816000905550600101613a52565b5090565b60405180604001604052806000600f0b81526020016000600f0b81525090565b6000613aa1613a9c84614937565b614912565b905082815260208101848484011115613ab957600080fd5b613ac4848285614ce2565b509392505050565b600081359050613adb81615567565b92915050565b60008083601f840112613af357600080fd5b8235905067ffffffffffffffff811115613b0c57600080fd5b602083019150836020820283011115613b2457600080fd5b9250929050565b600081359050613b3a8161557e565b92915050565b600081359050613b4f81615595565b92915050565b600081359050613b64816155ac565b92915050565b600081519050613b79816155ac565b92915050565b600082601f830112613b9057600080fd5b8135613ba0848260208601613a8e565b91505092915050565b60008083601f840112613bbb57600080fd5b8235905067ffffffffffffffff811115613bd457600080fd5b602083019150836001820283011115613bec57600080fd5b9250929050565b600081359050613c02816155c3565b92915050565b600060208284031215613c1a57600080fd5b6000613c2884828501613acc565b91505092915050565b60008060408385031215613c4457600080fd5b6000613c5285828601613acc565b9250506020613c6385828601613acc565b9150509250929050565b600080600060608486031215613c8257600080fd5b6000613c9086828701613acc565b9350506020613ca186828701613acc565b9250506040613cb286828701613bf3565b9150509250925092565b60008060008060808587031215613cd257600080fd5b6000613ce087828801613acc565b9450506020613cf187828801613acc565b9350506040613d0287828801613bf3565b925050606085013567ffffffffffffffff811115613d1f57600080fd5b613d2b87828801613b7f565b91505092959194509250565b60008060408385031215613d4a57600080fd5b6000613d5885828601613acc565b9250506020613d6985828601613b2b565b9150509250929050565b60008060408385031215613d8657600080fd5b6000613d9485828601613acc565b9250506020613da585828601613bf3565b9150509250929050565b60008060208385031215613dc257600080fd5b600083013567ffffffffffffffff811115613ddc57600080fd5b613de885828601613ae1565b92509250509250929050565b600060208284031215613e0657600080fd5b6000613e1484828501613b2b565b91505092915050565b600060208284031215613e2f57600080fd5b6000613e3d84828501613b40565b91505092915050565b60008060408385031215613e5957600080fd5b6000613e6785828601613b40565b9250506020613e7885828601613acc565b9150509250929050565b600060208284031215613e9457600080fd5b6000613ea284828501613b55565b91505092915050565b600060208284031215613ebd57600080fd5b6000613ecb84828501613b6a565b91505092915050565b60008060208385031215613ee757600080fd5b600083013567ffffffffffffffff811115613f0157600080fd5b613f0d85828601613ba9565b92509250509250929050565b600060208284031215613f2b57600080fd5b6000613f3984828501613bf3565b91505092915050565b60008060408385031215613f5557600080fd5b6000613f6385828601613bf3565b9250506020613f7485828601613bf3565b9150509250929050565b613f8781614c49565b82525050565b613f9e613f9982614c49565b614dfa565b82525050565b613fad81614c5b565b82525050565b613fbc81614c67565b82525050565b6000613fcd8261497d565b613fd78185614993565b9350613fe7818560208601614cf1565b613ff081614f0b565b840191505092915050565b600061400682614988565b61401081856149a4565b9350614020818560208601614cf1565b61402981614f0b565b840191505092915050565b600061403f82614988565b61404981856149b5565b9350614059818560208601614cf1565b80840191505092915050565b6000815461407281614d4e565b61407c81866149b5565b9450600182166000811461409757600181146140a8576140db565b60ff198316865281860193506140db565b6140b185614968565b60005b838110156140d3578154818901526001820191506020810190506140b4565b838801955050505b50505092915050565b60006140f16020836149a4565b91506140fc82614f29565b602082019050919050565b60006141146032836149a4565b915061411f82614f52565b604082019050919050565b60006141376025836149a4565b915061414282614fa1565b604082019050919050565b600061415a601c836149a4565b915061416582614ff0565b602082019050919050565b600061417d6003836149a4565b915061418882615019565b602082019050919050565b60006141a06024836149a4565b91506141ab82615042565b604082019050919050565b60006141c36019836149a4565b91506141ce82615091565b602082019050919050565b60006141e66003836149a4565b91506141f1826150ba565b602082019050919050565b6000614209602c836149a4565b9150614214826150e3565b604082019050919050565b600061422c6038836149a4565b915061423782615132565b604082019050919050565b600061424f602a836149a4565b915061425a82615181565b604082019050919050565b60006142726029836149a4565b915061427d826151d0565b604082019050919050565b6000614295602e836149a4565b91506142a08261521f565b604082019050919050565b60006142b86003836149a4565b91506142c38261526e565b602082019050919050565b60006142db6020836149a4565b91506142e682615297565b602082019050919050565b60006142fe602c836149a4565b9150614309826152c0565b604082019050919050565b60006143216005836149b5565b915061432c8261530f565b600582019050919050565b60006143446003836149a4565b915061434f82615338565b602082019050919050565b60006143676021836149a4565b915061437282615361565b604082019050919050565b600061438a6031836149a4565b9150614395826153b0565b604082019050919050565b60006143ad602b836149a4565b91506143b8826153ff565b604082019050919050565b60006143d06017836149b5565b91506143db8261544e565b601782019050919050565b60006143f3602a836149a4565b91506143fe82615477565b604082019050919050565b60006144166019836149a4565b9150614421826154c6565b602082019050919050565b60006144396011836149b5565b9150614444826154ef565b601182019050919050565b600061445c602f836149a4565b915061446782615518565b604082019050919050565b61447b81614caa565b82525050565b61448a81614cd8565b82525050565b600061449c8284613f8d565b60148201915081905092915050565b60006144b78285614065565b91506144c38284614034565b91506144ce82614314565b91508190509392505050565b60006144e5826143c3565b91506144f18285614034565b91506144fc8261442c565b91506145088284614034565b91508190509392505050565b60006020820190506145296000830184613f7e565b92915050565b60006080820190506145446000830187613f7e565b6145516020830186613f7e565b61455e6040830185614481565b81810360608301526145708184613fc2565b905095945050505050565b60006040820190506145906000830185613f7e565b61459d6020830184614481565b9392505050565b60006020820190506145b96000830184613fa4565b92915050565b60006020820190506145d46000830184613fb3565b92915050565b600060208201905081810360008301526145f48184613ffb565b905092915050565b60006020820190508181036000830152614615816140e4565b9050919050565b6000602082019050818103600083015261463581614107565b9050919050565b600060208201905081810360008301526146558161412a565b9050919050565b600060208201905081810360008301526146758161414d565b9050919050565b6000602082019050818103600083015261469581614170565b9050919050565b600060208201905081810360008301526146b581614193565b9050919050565b600060208201905081810360008301526146d5816141b6565b9050919050565b600060208201905081810360008301526146f5816141d9565b9050919050565b60006020820190508181036000830152614715816141fc565b9050919050565b600060208201905081810360008301526147358161421f565b9050919050565b6000602082019050818103600083015261475581614242565b9050919050565b6000602082019050818103600083015261477581614265565b9050919050565b6000602082019050818103600083015261479581614288565b9050919050565b600060208201905081810360008301526147b5816142ab565b9050919050565b600060208201905081810360008301526147d5816142ce565b9050919050565b600060208201905081810360008301526147f5816142f1565b9050919050565b6000602082019050818103600083015261481581614337565b9050919050565b600060208201905081810360008301526148358161435a565b9050919050565b600060208201905081810360008301526148558161437d565b9050919050565b60006020820190508181036000830152614875816143a0565b9050919050565b60006020820190508181036000830152614895816143e6565b9050919050565b600060208201905081810360008301526148b581614409565b9050919050565b600060208201905081810360008301526148d58161444f565b9050919050565b60006020820190506148f16000830184614472565b92915050565b600060208201905061490c6000830184614481565b92915050565b600061491c61492d565b90506149288282614d80565b919050565b6000604051905090565b600067ffffffffffffffff82111561495257614951614edc565b5b61495b82614f0b565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006149cb82614c9d565b91506149d683614c9d565b9250816f7fffffffffffffffffffffffffffffff03831360008312151615614a0157614a00614e4f565b5b817fffffffffffffffffffffffffffffffff80000000000000000000000000000000038312600083121615614a3957614a38614e4f565b5b828201905092915050565b6000614a4f82614caa565b9150614a5a83614caa565b92508261ffff03821115614a7157614a70614e4f565b5b828201905092915050565b6000614a8782614cd8565b9150614a9283614cd8565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614ac757614ac6614e4f565b5b828201905092915050565b6000614add82614cd8565b9150614ae883614cd8565b925082614af857614af7614e7e565b5b828204905092915050565b6000614b0e82614cd8565b9150614b1983614cd8565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614b5257614b51614e4f565b5b828202905092915050565b6000614b6882614c9d565b9150614b7383614c9d565b9250827fffffffffffffffffffffffffffffffff8000000000000000000000000000000001821260008412151615614bae57614bad614e4f565b5b826f7fffffffffffffffffffffffffffffff018213600084121615614bd657614bd5614e4f565b5b828203905092915050565b6000614bec82614caa565b9150614bf783614caa565b925082821015614c0a57614c09614e4f565b5b828203905092915050565b6000614c2082614cd8565b9150614c2b83614cd8565b925082821015614c3e57614c3d614e4f565b5b828203905092915050565b6000614c5482614cb8565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600081600f0b9050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015614d0f578082015181840152602081019050614cf4565b83811115614d1e576000848401525b50505050565b6000614d2f82614cd8565b91506000821415614d4357614d42614e4f565b5b600182039050919050565b60006002820490506001821680614d6657607f821691505b60208210811415614d7a57614d79614ead565b5b50919050565b614d8982614f0b565b810181811067ffffffffffffffff82111715614da857614da7614edc565b5b80604052505050565b6000614dbc82614cd8565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614def57614dee614e4f565b5b600182019050919050565b6000614e0582614e0c565b9050919050565b6000614e1782614f1c565b9050919050565b6000614e2982614cd8565b9150614e3483614cd8565b925082614e4457614e43614e7e565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f544d470000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4e42470000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b7f4e594d0000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f4f470000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b61557081614c49565b811461557b57600080fd5b50565b61558781614c5b565b811461559257600080fd5b50565b61559e81614c67565b81146155a957600080fd5b50565b6155b581614c71565b81146155c057600080fd5b50565b6155cc81614cd8565b81146155d757600080fd5b5056fe68747470733a2f2f67686c73746573742e73332e616d617a6f6e6177732e636f6d2f6a736f6e2f68747470733a2f2f67686c7370726572657665616c2e73332e616d617a6f6e6177732e636f6d2f6a736f6e2f5368616c6c6f775f47726176652e6a736f6ea2646970667358221220cc8c3bd5a490d02b36c5ddbd6ff69fe9ee8a1788def0458b7ed8643d2a231c3264736f6c63430008040033

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.