ETH Price: $3,408.37 (-0.22%)
Gas: 7 Gwei

Token

NiftyNuggetsOfficial (NIFTYNUGGETSOFFICIAL)
 

Overview

Max Total Supply

1,000 NIFTYNUGGETSOFFICIAL

Holders

323

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 NIFTYNUGGETSOFFICIAL
0x8d8f3e6f99cc7376cb8307e840442d30a053d48a
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
NiftyNuggetsOfficial

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 20 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 2 of 20 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

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

File 3 of 20 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

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

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 6 of 20 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.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 ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings 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.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _ownerOf(tokenId);
        require(owner != address(0), "ERC721: invalid token ID");
        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) {
        _requireMinted(tokenId);

        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 overridden 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 = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        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: caller is not token owner or 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: caller is not token owner or 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 the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @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 _ownerOf(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) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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, 1);

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

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

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

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

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

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

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

    /**
     * @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(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId, 1);

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId, 1);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {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 Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
     * - When `from` is zero, the tokens will be minted for `to`.
     * - When `to` is zero, ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256, /* firstTokenId */
        uint256 batchSize
    ) internal virtual {
        if (batchSize > 1) {
            if (from != address(0)) {
                _balances[from] -= batchSize;
            }
            if (to != address(0)) {
                _balances[to] += batchSize;
            }
        }
    }

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual {}
}

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 8 of 20 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

    /**
     * @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 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * 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 Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

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

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

File 9 of 20 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

File 12 of 20 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

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

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

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

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

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

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

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

File 17 of 20 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

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

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 20 of 20 : NiftyNuggetsOfficial.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.12;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "closedsea/src/OperatorFilterer.sol";

contract NiftyNuggetsOfficial is ERC721, Ownable, ReentrancyGuard, ERC2981, OperatorFilterer {

    using SafeMath for uint256;
    using Counters for Counters.Counter;

    constructor () ERC721("NiftyNuggetsOfficial", "NIFTYNUGGETSOFFICIAL") { 
        _registerForOperatorFiltering();
        operatorFilteringEnabled = true;
        _setDefaultRoyalty(msg.sender, 500);
    }

    bool public operatorFilteringEnabled;
    uint256 public constant MIGRATION_END_ID = 750;
    uint256 public constant MAX_MINT_PER_TX = 1;
    uint256 public currentTokenId = 750;
    uint256 public totalSupply = 1000;
    uint256 public totalMigrated = 0;
    bool public supplyLocked = false;
    mapping(uint256 => bool) public migrated; 
    mapping(bytes32 => bool) private _usedHashes;

    address private signerAddress;
    bool public migrationIsOn = false;
    bool public mintIsOn = false;
    uint256 public mintPrice = 0 ether;
    string public baseTokenURI = "";
    
    function migrate(bytes calldata _sig, uint256[] calldata _tokenIds)
        external
        payable
        nonReentrant
    {
        require(migrationIsOn, "MIGRATION_NOT_STARTED");

        bytes32 hash = keccak256(abi.encodePacked(msg.sender, _tokenIds));
        require(!_usedHashes[hash], "HASH_ALREADY_USED");
        require(_matchSigner(hash, _sig), "INVALID_SIGNER");

        _usedHashes[hash] = true;

        for(uint i = 0; i < _tokenIds.length; i++) {
            _safeMint(msg.sender, _tokenIds[i]);
            migrated[_tokenIds[i]] = true;
            totalMigrated++;
        }
    }

    function mint(bytes calldata _sig) 
        external
        payable
        nonReentrant
    {
        require(mintIsOn, "MINT_NOT_STARTED");
        require(totalSupply >= (currentTokenId + 1), "SUPPLY_REACHED");
        require(msg.value == mintPrice, "WRONG_AMOUNT_SENT");

        bytes32 hash = keccak256(abi.encodePacked(msg.sender));
        require(!_usedHashes[hash], "HASH_ALREADY_USED");
        require(_matchSigner(hash, _sig), "INVALID_SIGNER");

        _usedHashes[hash] = true;
        currentTokenId++;
        _safeMint(msg.sender, currentTokenId);
    }

    function _matchSigner(bytes32 _hash, bytes memory _signature) private view returns(bool) {
        return signerAddress == ECDSA.recover(ECDSA.toEthSignedMessageHash(_hash), _signature);
    }

    function setMigrationIsOn(bool _migrationIsOn) external onlyOwner {
        migrationIsOn = _migrationIsOn;
    }

    function setMintIsOn(bool _mintIsOn) external onlyOwner {
        mintIsOn = _mintIsOn;
    }

    function setMintPrice(uint256 _mintPrice) external onlyOwner {
        mintPrice = _mintPrice;
    }

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

    function setBaseTokenURI(string memory _baseTokenURI) public onlyOwner {
        baseTokenURI = _baseTokenURI;
    }

    function tokenURI(uint256 _tokenId) public view override returns (string memory) {
        return string.concat(_baseURI(), Strings.toString(_tokenId));
    }

    function setTotalSuppy(uint256 _totalSupply) public onlyOwner {
        require(supplyLocked == false, "SUPPLY_LOCKED");
        totalSupply = _totalSupply;
    }

    function lockSupply() public onlyOwner {
        supplyLocked = true;
    }

    function getSignerAddress() public view onlyOwner returns(address) {
        return signerAddress;
    }

    function setSignerAddress(address _signer) external onlyOwner {
        require(_signer != address(0), "SIGNER_ADDRESS_ZERO");
        signerAddress = _signer;
    }

    function isMigrated(uint256 _id) external view returns(bool) {
        return migrated[_id];
    }

    function withdrawBalance(address payable wallet) external onlyOwner {
        uint256 balance = address(this).balance;
        require(balance > 0, "EMPTY_BALANCE");

        payable(wallet).transfer(balance);
    }

    /**
     * @dev to withdraw accidentally sent tokens
     */
    function withdrawERC20(address _token, address _to) external onlyOwner {
        IERC20 targetToken = IERC20(_token);
        uint256 balance = targetToken.balanceOf(address(this));
        require(balance > 0, "EMPTY_BALANCE");

        targetToken.transferFrom(address(this), _to, balance);
    }

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

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

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

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

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

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

    function setDefaultRoyalty(address receiver, uint96 feeNumerator) public onlyOwner {
        _setDefaultRoyalty(receiver, feeNumerator);
    }

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

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

    function _isPriorityOperator(address operator) internal pure override returns (bool) {
        // OpenSea Seaport Conduit:
        // https://etherscan.io/address/0x1E0049783F008A0085193E00003D00cd54003c71
        // https://goerli.etherscan.io/address/0x1E0049783F008A0085193E00003D00cd54003c71
        return operator == address(0x1E0049783F008A0085193E00003D00cd54003c71);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_MINT_PER_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIGRATION_END_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentTokenId","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":[],"name":"getSignerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"isMigrated","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"_sig","type":"bytes"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"migrate","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"migrated","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"migrationIsOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_sig","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintIsOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorFilteringEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"string","name":"_baseTokenURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_migrationIsOn","type":"bool"}],"name":"setMigrationIsOn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_mintIsOn","type":"bool"}],"name":"setMintIsOn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setOperatorFilteringEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_totalSupply","type":"uint256"}],"name":"setTotalSuppy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supplyLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMigrated","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"wallet","type":"address"}],"name":"withdrawBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526102ee600b556103e8600c556000600d556000600e60006101000a81548160ff0219169083151502179055506000601160146101000a81548160ff0219169083151502179055506000601160156101000a81548160ff0219169083151502179055506000601255604051806020016040528060008152506013908051906020019062000092929190620004ce565b50348015620000a057600080fd5b506040518060400160405280601481526020017f4e696674794e7567676574734f6666696369616c0000000000000000000000008152506040518060400160405280601481526020017f4e494654594e5547474554534f4646494349414c000000000000000000000000815250816000908051906020019062000125929190620004ce565b5080600190805190602001906200013e929190620004ce565b5050506200016162000155620001ae60201b60201c565b620001b660201b60201c565b6001600781905550620001796200027c60201b60201c565b6001600a60006101000a81548160ff021916908315150217905550620001a8336101f4620002a560201b60201c565b620006fe565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620002a3733cc6cdda760b79bafa08df41ecfa224f810dceb660016200044960201b60201c565b565b620002b5620004c460201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111562000316576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200030d9062000605565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000389576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003809062000677565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600860008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b637d3e3dbe8260601b60601c9250816200047857826200047057634420e486905062000478565b63a0af290390505b8060e01b60005230600452826024526004600060446000806daaeb6d7670e522a718067333cd4e5af1620004ba578060005160e01c1415620004b957600080fd5b5b6000602452505050565b6000612710905090565b828054620004dc90620006c8565b90600052602060002090601f0160209004810192826200050057600085556200054c565b82601f106200051b57805160ff19168380011785556200054c565b828001600101855582156200054c579182015b828111156200054b5782518255916020019190600101906200052e565b5b5090506200055b91906200055f565b5090565b5b808211156200057a57600081600090555060010162000560565b5090565b600082825260208201905092915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000620005ed602a836200057e565b9150620005fa826200058f565b604082019050919050565b600060208201905081810360008301526200062081620005de565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b60006200065f6019836200057e565b91506200066c8262000627565b602082019050919050565b60006020820190508181036000830152620006928162000650565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620006e157607f821691505b60208210811415620006f857620006f762000699565b5b50919050565b6154a7806200070e6000396000f3fe6080604052600436106102665760003560e01c8063756af45f11610144578063a62129cf116100b6578063d547cfb71161007a578063d547cfb7146108fc578063e985e9c514610927578063f2fde38b14610964578063f3b267be1461098d578063f4a0a528146109b8578063fb796e6c146109e157610266565b8063a62129cf14610814578063b7c0b8e814610830578063b88d4fde14610859578063c87b56dd14610882578063cdb101fe146108bf57610266565b806390b1fbcc1161010857806390b1fbcc14610718578063943eb504146107415780639456fbcc1461076c57806395a0f5eb1461079557806395d89b41146107c0578063a22cb465146107eb57610266565b8063756af45f146106665780637ba0e2e71461068f57806381eaf99b146106ab5780638da5cb5b146106c25780638ecad721146106ed57610266565b806323b872dd116101dd57806342842e0e116101a157806342842e0e1461055857806363079fae146105815780636352211e146105aa5780636817c76c146105e757806370a0823114610612578063715018a61461064f57610266565b806323b872dd146104725780632a55205a1461049b5780632f7c085c146104d957806330176e131461050457806333dd675b1461052d57610266565b8063081812fc1161022f578063081812fc14610350578063095ea7b31461038d5780630e359f16146103b65780631699ce75146103f357806318160ddd1461041c5780631a296e021461044757610266565b80629a9b7b1461026b57806301ffc9a71461029657806304634d8d146102d3578063046dc166146102fc57806306fdde0314610325575b600080fd5b34801561027757600080fd5b50610280610a0c565b60405161028d9190613709565b60405180910390f35b3480156102a257600080fd5b506102bd60048036038101906102b89190613790565b610a12565b6040516102ca91906137d8565b60405180910390f35b3480156102df57600080fd5b506102fa60048036038101906102f59190613895565b610a34565b005b34801561030857600080fd5b50610323600480360381019061031e91906138d5565b610a4a565b005b34801561033157600080fd5b5061033a610b06565b604051610347919061399b565b60405180910390f35b34801561035c57600080fd5b50610377600480360381019061037291906139e9565b610b98565b6040516103849190613a25565b60405180910390f35b34801561039957600080fd5b506103b460048036038101906103af9190613a40565b610bde565b005b3480156103c257600080fd5b506103dd60048036038101906103d891906139e9565b610c13565b6040516103ea91906137d8565b60405180910390f35b3480156103ff57600080fd5b5061041a60048036038101906104159190613aac565b610c33565b005b34801561042857600080fd5b50610431610c58565b60405161043e9190613709565b60405180910390f35b34801561045357600080fd5b5061045c610c5e565b6040516104699190613a25565b60405180910390f35b34801561047e57600080fd5b5061049960048036038101906104949190613ad9565b610c90565b005b3480156104a757600080fd5b506104c260048036038101906104bd9190613b2c565b610cfb565b6040516104d0929190613b6c565b60405180910390f35b3480156104e557600080fd5b506104ee610ee6565b6040516104fb9190613709565b60405180910390f35b34801561051057600080fd5b5061052b60048036038101906105269190613cca565b610eec565b005b34801561053957600080fd5b50610542610f0e565b60405161054f91906137d8565b60405180910390f35b34801561056457600080fd5b5061057f600480360381019061057a9190613ad9565b610f21565b005b34801561058d57600080fd5b506105a860048036038101906105a391906139e9565b610f8c565b005b3480156105b657600080fd5b506105d160048036038101906105cc91906139e9565b610ff4565b6040516105de9190613a25565b60405180910390f35b3480156105f357600080fd5b506105fc61107b565b6040516106099190613709565b60405180910390f35b34801561061e57600080fd5b50610639600480360381019061063491906138d5565b611081565b6040516106469190613709565b60405180910390f35b34801561065b57600080fd5b50610664611139565b005b34801561067257600080fd5b5061068d60048036038101906106889190613d51565b61114d565b005b6106a960048036038101906106a49190613dde565b6111e8565b005b3480156106b757600080fd5b506106c061144c565b005b3480156106ce57600080fd5b506106d7611471565b6040516106e49190613a25565b60405180910390f35b3480156106f957600080fd5b5061070261149b565b60405161070f9190613709565b60405180910390f35b34801561072457600080fd5b5061073f600480360381019061073a9190613aac565b6114a0565b005b34801561074d57600080fd5b506107566114c5565b60405161076391906137d8565b60405180910390f35b34801561077857600080fd5b50610793600480360381019061078e9190613e2b565b6114d8565b005b3480156107a157600080fd5b506107aa61162d565b6040516107b79190613709565b60405180910390f35b3480156107cc57600080fd5b506107d5611633565b6040516107e2919061399b565b60405180910390f35b3480156107f757600080fd5b50610812600480360381019061080d9190613e6b565b6116c5565b005b61082e60048036038101906108299190613f01565b6116fa565b005b34801561083c57600080fd5b5061085760048036038101906108529190613aac565b61194b565b005b34801561086557600080fd5b50610880600480360381019061087b9190614023565b611970565b005b34801561088e57600080fd5b506108a960048036038101906108a491906139e9565b6119dd565b6040516108b6919061399b565b60405180910390f35b3480156108cb57600080fd5b506108e660048036038101906108e191906139e9565b611a17565b6040516108f391906137d8565b60405180910390f35b34801561090857600080fd5b50610911611a41565b60405161091e919061399b565b60405180910390f35b34801561093357600080fd5b5061094e60048036038101906109499190613e2b565b611acf565b60405161095b91906137d8565b60405180910390f35b34801561097057600080fd5b5061098b600480360381019061098691906138d5565b611b63565b005b34801561099957600080fd5b506109a2611be7565b6040516109af91906137d8565b60405180910390f35b3480156109c457600080fd5b506109df60048036038101906109da91906139e9565b611bfa565b005b3480156109ed57600080fd5b506109f6611c0c565b604051610a0391906137d8565b60405180910390f35b600b5481565b6000610a1d82611c1f565b80610a2d5750610a2c82611d01565b5b9050919050565b610a3c611d7b565b610a468282611df9565b5050565b610a52611d7b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610ac2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab9906140f2565b60405180910390fd5b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606060008054610b1590614141565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4190614141565b8015610b8e5780601f10610b6357610100808354040283529160200191610b8e565b820191906000526020600020905b815481529060010190602001808311610b7157829003601f168201915b5050505050905090565b6000610ba382611f8f565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610be881611fda565b610c0457610bf4612026565b15610c0357610c028161203d565b5b5b610c0e8383612081565b505050565b600f6020528060005260406000206000915054906101000a900460ff1681565b610c3b611d7b565b80601160146101000a81548160ff02191690831515021790555050565b600c5481565b6000610c68611d7b565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610cea57610ccd33611fda565b610ce957610cd9612026565b15610ce857610ce73361203d565b5b5b5b610cf5848484612199565b50505050565b6000806000600960008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161415610e915760086040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610e9b6121f9565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610ec791906141a2565b610ed1919061422b565b90508160000151819350935050509250929050565b6102ee81565b610ef4611d7b565b8060139080519060200190610f0a92919061364d565b5050565b601160149054906101000a900460ff1681565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f7b57610f5e33611fda565b610f7a57610f6a612026565b15610f7957610f783361203d565b5b5b5b610f86848484612203565b50505050565b610f94611d7b565b60001515600e60009054906101000a900460ff16151514610fea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe1906142a8565b60405180910390fd5b80600c8190555050565b60008061100083612223565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611072576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106990614314565b60405180910390fd5b80915050919050565b60125481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156110f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e9906143a6565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611141611d7b565b61114b6000612260565b565b611155611d7b565b60004790506000811161119d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119490614412565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156111e3573d6000803e3d6000fd5b505050565b6111f0612326565b601160159054906101000a900460ff1661123f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112369061447e565b60405180910390fd5b6001600b5461124e919061449e565b600c541015611292576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128990614540565b60405180910390fd5b60125434146112d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112cd906145ac565b60405180910390fd5b6000336040516020016112e99190614614565b6040516020818303038152906040528051906020012090506010600082815260200190815260200160002060009054906101000a900460ff1615611362576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113599061467b565b60405180910390fd5b6113b08184848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612376565b6113ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e6906146e7565b60405180910390fd5b60016010600083815260200190815260200160002060006101000a81548160ff021916908315150217905550600b600081548092919061142e90614707565b919050555061143f33600b546123e2565b50611448612400565b5050565b611454611d7b565b6001600e60006101000a81548160ff021916908315150217905550565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600181565b6114a8611d7b565b80601160156101000a81548160ff02191690831515021790555050565b600e60009054906101000a900460ff1681565b6114e0611d7b565b600082905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016115209190613a25565b602060405180830381865afa15801561153d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115619190614765565b9050600081116115a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159d90614412565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166323b872dd3085846040518463ffffffff1660e01b81526004016115e393929190614792565b6020604051808303816000875af1158015611602573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061162691906147de565b5050505050565b600d5481565b60606001805461164290614141565b80601f016020809104026020016040519081016040528092919081815260200182805461166e90614141565b80156116bb5780601f10611690576101008083540402835291602001916116bb565b820191906000526020600020905b81548152906001019060200180831161169e57829003601f168201915b5050505050905090565b816116cf81611fda565b6116eb576116db612026565b156116ea576116e98161203d565b5b5b6116f5838361240a565b505050565b611702612326565b601160149054906101000a900460ff16611751576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174890614857565b60405180910390fd5b6000338383604051602001611768939291906148e3565b6040516020818303038152906040528051906020012090506010600082815260200190815260200160002060009054906101000a900460ff16156117e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d89061467b565b60405180910390fd5b61182f8186868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612376565b61186e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611865906146e7565b60405180910390fd5b60016010600083815260200190815260200160002060006101000a81548160ff02191690831515021790555060005b8383905081101561193b576118cb338585848181106118bf576118be61490d565b5b905060200201356123e2565b6001600f60008686858181106118e4576118e361490d565b5b90506020020135815260200190815260200160002060006101000a81548160ff021916908315150217905550600d600081548092919061192390614707565b9190505550808061193390614707565b91505061189d565b5050611945612400565b50505050565b611953611d7b565b80600a60006101000a81548160ff02191690831515021790555050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146119ca576119ad33611fda565b6119c9576119b9612026565b156119c8576119c73361203d565b5b5b5b6119d685858585612420565b5050505050565b60606119e7612482565b6119f083612514565b604051602001611a01929190614978565b6040516020818303038152906040529050919050565b6000600f600083815260200190815260200160002060009054906101000a900460ff169050919050565b60138054611a4e90614141565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7a90614141565b8015611ac75780601f10611a9c57610100808354040283529160200191611ac7565b820191906000526020600020905b815481529060010190602001808311611aaa57829003601f168201915b505050505081565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611b6b611d7b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611bdb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bd290614a0e565b60405180910390fd5b611be481612260565b50565b601160159054906101000a900460ff1681565b611c02611d7b565b8060128190555050565b600a60009054906101000a900460ff1681565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611cea57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611cfa5750611cf9826125ec565b5b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611d745750611d7382611c1f565b5b9050919050565b611d83612656565b73ffffffffffffffffffffffffffffffffffffffff16611da1611471565b73ffffffffffffffffffffffffffffffffffffffff1614611df7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dee90614a7a565b60405180910390fd5b565b611e016121f9565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611e5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5690614b0c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ecf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec690614b78565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600860008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b611f988161265e565b611fd7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fce90614314565b60405180910390fd5b50565b6000731e0049783f008a0085193e00003d00cd54003c7173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16149050919050565b6000600a60009054906101000a900460ff16905090565b69c617113400112233445560005230601a5280603a52600080604460166daaeb6d7670e522a718067333cd4e5afa612079573d6000803e3d6000fd5b6000603a5250565b600061208c82610ff4565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156120fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120f490614c0a565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661211c612656565b73ffffffffffffffffffffffffffffffffffffffff16148061214b575061214a81612145612656565b611acf565b5b61218a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218190614c9c565b60405180910390fd5b612194838361269f565b505050565b6121aa6121a4612656565b82612758565b6121e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121e090614d2e565b60405180910390fd5b6121f48383836127ed565b505050565b6000612710905090565b61221e83838360405180602001604052806000815250611970565b505050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6002600754141561236c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161236390614d9a565b60405180910390fd5b6002600781905550565b600061238a61238484612ae7565b83612b17565b73ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905092915050565b6123fc828260405180602001604052806000815250612b3e565b5050565b6001600781905550565b61241c612415612656565b8383612b99565b5050565b61243161242b612656565b83612758565b612470576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246790614d2e565b60405180910390fd5b61247c84848484612d06565b50505050565b60606013805461249190614141565b80601f01602080910402602001604051908101604052809291908181526020018280546124bd90614141565b801561250a5780601f106124df5761010080835404028352916020019161250a565b820191906000526020600020905b8154815290600101906020018083116124ed57829003601f168201915b5050505050905090565b60606000600161252384612d62565b01905060008167ffffffffffffffff81111561254257612541613b9f565b5b6040519080825280601f01601f1916602001820160405280156125745781602001600182028036833780820191505090505b509050600082602001820190505b6001156125e1578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816125cb576125ca6141fc565b5b04945060008514156125dc576125e1565b612582565b819350505050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b60008073ffffffffffffffffffffffffffffffffffffffff1661268083612223565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661271283610ff4565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061276483610ff4565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806127a657506127a58185611acf565b5b806127e457508373ffffffffffffffffffffffffffffffffffffffff166127cc84610b98565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661280d82610ff4565b73ffffffffffffffffffffffffffffffffffffffff1614612863576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285a90614e2c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156128d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128ca90614ebe565b60405180910390fd5b6128e08383836001612eb5565b8273ffffffffffffffffffffffffffffffffffffffff1661290082610ff4565b73ffffffffffffffffffffffffffffffffffffffff1614612956576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161294d90614e2c565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612ae28383836001612fdb565b505050565b600081604051602001612afa9190614f55565b604051602081830303815290604052805190602001209050919050565b6000806000612b268585612fe1565b91509150612b3381613033565b819250505092915050565b612b4883836131a1565b612b5560008484846133bf565b612b94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b8b90614fed565b60405180910390fd5b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612c08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bff90615059565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612cf991906137d8565b60405180910390a3505050565b612d118484846127ed565b612d1d848484846133bf565b612d5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d5390614fed565b60405180910390fd5b50505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612dc0577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612db657612db56141fc565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612dfd576d04ee2d6d415b85acef81000000008381612df357612df26141fc565b5b0492506020810190505b662386f26fc100008310612e2c57662386f26fc100008381612e2257612e216141fc565b5b0492506010810190505b6305f5e1008310612e55576305f5e1008381612e4b57612e4a6141fc565b5b0492506008810190505b6127108310612e7a576127108381612e7057612e6f6141fc565b5b0492506004810190505b60648310612e9d5760648381612e9357612e926141fc565b5b0492506002810190505b600a8310612eac576001810190505b80915050919050565b6001811115612fd557600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612f495780600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612f419190615079565b925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612fd45780600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612fcc919061449e565b925050819055505b5b50505050565b50505050565b6000806041835114156130235760008060006020860151925060408601519150606086015160001a905061301787828585613547565b9450945050505061302c565b60006002915091505b9250929050565b60006004811115613047576130466150ad565b5b81600481111561305a576130596150ad565b5b14156130655761319e565b60016004811115613079576130786150ad565b5b81600481111561308c5761308b6150ad565b5b14156130cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130c490615128565b60405180910390fd5b600260048111156130e1576130e06150ad565b5b8160048111156130f4576130f36150ad565b5b1415613135576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161312c90615194565b60405180910390fd5b60036004811115613149576131486150ad565b5b81600481111561315c5761315b6150ad565b5b141561319d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161319490615226565b60405180910390fd5b5b50565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613211576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161320890615292565b60405180910390fd5b61321a8161265e565b1561325a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613251906152fe565b60405180910390fd5b613268600083836001612eb5565b6132718161265e565b156132b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132a8906152fe565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46133bb600083836001612fdb565b5050565b60006133e08473ffffffffffffffffffffffffffffffffffffffff1661362a565b1561353a578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613409612656565b8786866040518563ffffffff1660e01b815260040161342b9493929190615373565b6020604051808303816000875af192505050801561346757506040513d601f19601f8201168201806040525081019061346491906153d4565b60015b6134ea573d8060008114613497576040519150601f19603f3d011682016040523d82523d6000602084013e61349c565b606091505b506000815114156134e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134d990614fed565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061353f565b600190505b949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613582576000600391509150613621565b6000600187878787604051600081526020016040526040516135a7949392919061542c565b6020604051602081039080840390855afa1580156135c9573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561361857600060019250925050613621565b80600092509250505b94509492505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b82805461365990614141565b90600052602060002090601f01602090048101928261367b57600085556136c2565b82601f1061369457805160ff19168380011785556136c2565b828001600101855582156136c2579182015b828111156136c15782518255916020019190600101906136a6565b5b5090506136cf91906136d3565b5090565b5b808211156136ec5760008160009055506001016136d4565b5090565b6000819050919050565b613703816136f0565b82525050565b600060208201905061371e60008301846136fa565b92915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61376d81613738565b811461377857600080fd5b50565b60008135905061378a81613764565b92915050565b6000602082840312156137a6576137a561372e565b5b60006137b48482850161377b565b91505092915050565b60008115159050919050565b6137d2816137bd565b82525050565b60006020820190506137ed60008301846137c9565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061381e826137f3565b9050919050565b61382e81613813565b811461383957600080fd5b50565b60008135905061384b81613825565b92915050565b60006bffffffffffffffffffffffff82169050919050565b61387281613851565b811461387d57600080fd5b50565b60008135905061388f81613869565b92915050565b600080604083850312156138ac576138ab61372e565b5b60006138ba8582860161383c565b92505060206138cb85828601613880565b9150509250929050565b6000602082840312156138eb576138ea61372e565b5b60006138f98482850161383c565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561393c578082015181840152602081019050613921565b8381111561394b576000848401525b50505050565b6000601f19601f8301169050919050565b600061396d82613902565b613977818561390d565b935061398781856020860161391e565b61399081613951565b840191505092915050565b600060208201905081810360008301526139b58184613962565b905092915050565b6139c6816136f0565b81146139d157600080fd5b50565b6000813590506139e3816139bd565b92915050565b6000602082840312156139ff576139fe61372e565b5b6000613a0d848285016139d4565b91505092915050565b613a1f81613813565b82525050565b6000602082019050613a3a6000830184613a16565b92915050565b60008060408385031215613a5757613a5661372e565b5b6000613a658582860161383c565b9250506020613a76858286016139d4565b9150509250929050565b613a89816137bd565b8114613a9457600080fd5b50565b600081359050613aa681613a80565b92915050565b600060208284031215613ac257613ac161372e565b5b6000613ad084828501613a97565b91505092915050565b600080600060608486031215613af257613af161372e565b5b6000613b008682870161383c565b9350506020613b118682870161383c565b9250506040613b22868287016139d4565b9150509250925092565b60008060408385031215613b4357613b4261372e565b5b6000613b51858286016139d4565b9250506020613b62858286016139d4565b9150509250929050565b6000604082019050613b816000830185613a16565b613b8e60208301846136fa565b9392505050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613bd782613951565b810181811067ffffffffffffffff82111715613bf657613bf5613b9f565b5b80604052505050565b6000613c09613724565b9050613c158282613bce565b919050565b600067ffffffffffffffff821115613c3557613c34613b9f565b5b613c3e82613951565b9050602081019050919050565b82818337600083830152505050565b6000613c6d613c6884613c1a565b613bff565b905082815260208101848484011115613c8957613c88613b9a565b5b613c94848285613c4b565b509392505050565b600082601f830112613cb157613cb0613b95565b5b8135613cc1848260208601613c5a565b91505092915050565b600060208284031215613ce057613cdf61372e565b5b600082013567ffffffffffffffff811115613cfe57613cfd613733565b5b613d0a84828501613c9c565b91505092915050565b6000613d1e826137f3565b9050919050565b613d2e81613d13565b8114613d3957600080fd5b50565b600081359050613d4b81613d25565b92915050565b600060208284031215613d6757613d6661372e565b5b6000613d7584828501613d3c565b91505092915050565b600080fd5b600080fd5b60008083601f840112613d9e57613d9d613b95565b5b8235905067ffffffffffffffff811115613dbb57613dba613d7e565b5b602083019150836001820283011115613dd757613dd6613d83565b5b9250929050565b60008060208385031215613df557613df461372e565b5b600083013567ffffffffffffffff811115613e1357613e12613733565b5b613e1f85828601613d88565b92509250509250929050565b60008060408385031215613e4257613e4161372e565b5b6000613e508582860161383c565b9250506020613e618582860161383c565b9150509250929050565b60008060408385031215613e8257613e8161372e565b5b6000613e908582860161383c565b9250506020613ea185828601613a97565b9150509250929050565b60008083601f840112613ec157613ec0613b95565b5b8235905067ffffffffffffffff811115613ede57613edd613d7e565b5b602083019150836020820283011115613efa57613ef9613d83565b5b9250929050565b60008060008060408587031215613f1b57613f1a61372e565b5b600085013567ffffffffffffffff811115613f3957613f38613733565b5b613f4587828801613d88565b9450945050602085013567ffffffffffffffff811115613f6857613f67613733565b5b613f7487828801613eab565b925092505092959194509250565b600067ffffffffffffffff821115613f9d57613f9c613b9f565b5b613fa682613951565b9050602081019050919050565b6000613fc6613fc184613f82565b613bff565b905082815260208101848484011115613fe257613fe1613b9a565b5b613fed848285613c4b565b509392505050565b600082601f83011261400a57614009613b95565b5b813561401a848260208601613fb3565b91505092915050565b6000806000806080858703121561403d5761403c61372e565b5b600061404b8782880161383c565b945050602061405c8782880161383c565b935050604061406d878288016139d4565b925050606085013567ffffffffffffffff81111561408e5761408d613733565b5b61409a87828801613ff5565b91505092959194509250565b7f5349474e45525f414444524553535f5a45524f00000000000000000000000000600082015250565b60006140dc60138361390d565b91506140e7826140a6565b602082019050919050565b6000602082019050818103600083015261410b816140cf565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061415957607f821691505b6020821081141561416d5761416c614112565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006141ad826136f0565b91506141b8836136f0565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156141f1576141f0614173565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614236826136f0565b9150614241836136f0565b925082614251576142506141fc565b5b828204905092915050565b7f535550504c595f4c4f434b454400000000000000000000000000000000000000600082015250565b6000614292600d8361390d565b915061429d8261425c565b602082019050919050565b600060208201905081810360008301526142c181614285565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006142fe60188361390d565b9150614309826142c8565b602082019050919050565b6000602082019050818103600083015261432d816142f1565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b600061439060298361390d565b915061439b82614334565b604082019050919050565b600060208201905081810360008301526143bf81614383565b9050919050565b7f454d5054595f42414c414e434500000000000000000000000000000000000000600082015250565b60006143fc600d8361390d565b9150614407826143c6565b602082019050919050565b6000602082019050818103600083015261442b816143ef565b9050919050565b7f4d494e545f4e4f545f5354415254454400000000000000000000000000000000600082015250565b600061446860108361390d565b915061447382614432565b602082019050919050565b600060208201905081810360008301526144978161445b565b9050919050565b60006144a9826136f0565b91506144b4836136f0565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156144e9576144e8614173565b5b828201905092915050565b7f535550504c595f52454143484544000000000000000000000000000000000000600082015250565b600061452a600e8361390d565b9150614535826144f4565b602082019050919050565b600060208201905081810360008301526145598161451d565b9050919050565b7f57524f4e475f414d4f554e545f53454e54000000000000000000000000000000600082015250565b600061459660118361390d565b91506145a182614560565b602082019050919050565b600060208201905081810360008301526145c581614589565b9050919050565b60008160601b9050919050565b60006145e4826145cc565b9050919050565b60006145f6826145d9565b9050919050565b61460e61460982613813565b6145eb565b82525050565b600061462082846145fd565b60148201915081905092915050565b7f484153485f414c52454144595f55534544000000000000000000000000000000600082015250565b600061466560118361390d565b91506146708261462f565b602082019050919050565b6000602082019050818103600083015261469481614658565b9050919050565b7f494e56414c49445f5349474e4552000000000000000000000000000000000000600082015250565b60006146d1600e8361390d565b91506146dc8261469b565b602082019050919050565b60006020820190508181036000830152614700816146c4565b9050919050565b6000614712826136f0565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561474557614744614173565b5b600182019050919050565b60008151905061475f816139bd565b92915050565b60006020828403121561477b5761477a61372e565b5b600061478984828501614750565b91505092915050565b60006060820190506147a76000830186613a16565b6147b46020830185613a16565b6147c160408301846136fa565b949350505050565b6000815190506147d881613a80565b92915050565b6000602082840312156147f4576147f361372e565b5b6000614802848285016147c9565b91505092915050565b7f4d4947524154494f4e5f4e4f545f535441525445440000000000000000000000600082015250565b600061484160158361390d565b915061484c8261480b565b602082019050919050565b6000602082019050818103600083015261487081614834565b9050919050565b600081905092915050565b600080fd5b60006148938385614877565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156148c6576148c5614882565b5b6020830292506148d7838584613c4b565b82840190509392505050565b60006148ef82866145fd565b601482019150614900828486614887565b9150819050949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081905092915050565b600061495282613902565b61495c818561493c565b935061496c81856020860161391e565b80840191505092915050565b60006149848285614947565b91506149908284614947565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006149f860268361390d565b9150614a038261499c565b604082019050919050565b60006020820190508181036000830152614a27816149eb565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614a6460208361390d565b9150614a6f82614a2e565b602082019050919050565b60006020820190508181036000830152614a9381614a57565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000614af6602a8361390d565b9150614b0182614a9a565b604082019050919050565b60006020820190508181036000830152614b2581614ae9565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000614b6260198361390d565b9150614b6d82614b2c565b602082019050919050565b60006020820190508181036000830152614b9181614b55565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000614bf460218361390d565b9150614bff82614b98565b604082019050919050565b60006020820190508181036000830152614c2381614be7565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b6000614c86603d8361390d565b9150614c9182614c2a565b604082019050919050565b60006020820190508181036000830152614cb581614c79565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b6000614d18602d8361390d565b9150614d2382614cbc565b604082019050919050565b60006020820190508181036000830152614d4781614d0b565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614d84601f8361390d565b9150614d8f82614d4e565b602082019050919050565b60006020820190508181036000830152614db381614d77565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614e1660258361390d565b9150614e2182614dba565b604082019050919050565b60006020820190508181036000830152614e4581614e09565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614ea860248361390d565b9150614eb382614e4c565b604082019050919050565b60006020820190508181036000830152614ed781614e9b565b9050919050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000614f14601c8361493c565b9150614f1f82614ede565b601c82019050919050565b6000819050919050565b6000819050919050565b614f4f614f4a82614f2a565b614f34565b82525050565b6000614f6082614f07565b9150614f6c8284614f3e565b60208201915081905092915050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614fd760328361390d565b9150614fe282614f7b565b604082019050919050565b6000602082019050818103600083015261500681614fca565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b600061504360198361390d565b915061504e8261500d565b602082019050919050565b6000602082019050818103600083015261507281615036565b9050919050565b6000615084826136f0565b915061508f836136f0565b9250828210156150a2576150a1614173565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b600061511260188361390d565b915061511d826150dc565b602082019050919050565b6000602082019050818103600083015261514181615105565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b600061517e601f8361390d565b915061518982615148565b602082019050919050565b600060208201905081810360008301526151ad81615171565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b600061521060228361390d565b915061521b826151b4565b604082019050919050565b6000602082019050818103600083015261523f81615203565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b600061527c60208361390d565b915061528782615246565b602082019050919050565b600060208201905081810360008301526152ab8161526f565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b60006152e8601c8361390d565b91506152f3826152b2565b602082019050919050565b60006020820190508181036000830152615317816152db565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006153458261531e565b61534f8185615329565b935061535f81856020860161391e565b61536881613951565b840191505092915050565b60006080820190506153886000830187613a16565b6153956020830186613a16565b6153a260408301856136fa565b81810360608301526153b4818461533a565b905095945050505050565b6000815190506153ce81613764565b92915050565b6000602082840312156153ea576153e961372e565b5b60006153f8848285016153bf565b91505092915050565b61540a81614f2a565b82525050565b600060ff82169050919050565b61542681615410565b82525050565b60006080820190506154416000830187615401565b61544e602083018661541d565b61545b6040830185615401565b6154686060830184615401565b9594505050505056fea26469706673582212208c4db65816540e1e88383bb41ab253ccc1d70b374939b23565417f84f675cbed64736f6c634300080c0033

Deployed Bytecode

0x6080604052600436106102665760003560e01c8063756af45f11610144578063a62129cf116100b6578063d547cfb71161007a578063d547cfb7146108fc578063e985e9c514610927578063f2fde38b14610964578063f3b267be1461098d578063f4a0a528146109b8578063fb796e6c146109e157610266565b8063a62129cf14610814578063b7c0b8e814610830578063b88d4fde14610859578063c87b56dd14610882578063cdb101fe146108bf57610266565b806390b1fbcc1161010857806390b1fbcc14610718578063943eb504146107415780639456fbcc1461076c57806395a0f5eb1461079557806395d89b41146107c0578063a22cb465146107eb57610266565b8063756af45f146106665780637ba0e2e71461068f57806381eaf99b146106ab5780638da5cb5b146106c25780638ecad721146106ed57610266565b806323b872dd116101dd57806342842e0e116101a157806342842e0e1461055857806363079fae146105815780636352211e146105aa5780636817c76c146105e757806370a0823114610612578063715018a61461064f57610266565b806323b872dd146104725780632a55205a1461049b5780632f7c085c146104d957806330176e131461050457806333dd675b1461052d57610266565b8063081812fc1161022f578063081812fc14610350578063095ea7b31461038d5780630e359f16146103b65780631699ce75146103f357806318160ddd1461041c5780631a296e021461044757610266565b80629a9b7b1461026b57806301ffc9a71461029657806304634d8d146102d3578063046dc166146102fc57806306fdde0314610325575b600080fd5b34801561027757600080fd5b50610280610a0c565b60405161028d9190613709565b60405180910390f35b3480156102a257600080fd5b506102bd60048036038101906102b89190613790565b610a12565b6040516102ca91906137d8565b60405180910390f35b3480156102df57600080fd5b506102fa60048036038101906102f59190613895565b610a34565b005b34801561030857600080fd5b50610323600480360381019061031e91906138d5565b610a4a565b005b34801561033157600080fd5b5061033a610b06565b604051610347919061399b565b60405180910390f35b34801561035c57600080fd5b50610377600480360381019061037291906139e9565b610b98565b6040516103849190613a25565b60405180910390f35b34801561039957600080fd5b506103b460048036038101906103af9190613a40565b610bde565b005b3480156103c257600080fd5b506103dd60048036038101906103d891906139e9565b610c13565b6040516103ea91906137d8565b60405180910390f35b3480156103ff57600080fd5b5061041a60048036038101906104159190613aac565b610c33565b005b34801561042857600080fd5b50610431610c58565b60405161043e9190613709565b60405180910390f35b34801561045357600080fd5b5061045c610c5e565b6040516104699190613a25565b60405180910390f35b34801561047e57600080fd5b5061049960048036038101906104949190613ad9565b610c90565b005b3480156104a757600080fd5b506104c260048036038101906104bd9190613b2c565b610cfb565b6040516104d0929190613b6c565b60405180910390f35b3480156104e557600080fd5b506104ee610ee6565b6040516104fb9190613709565b60405180910390f35b34801561051057600080fd5b5061052b60048036038101906105269190613cca565b610eec565b005b34801561053957600080fd5b50610542610f0e565b60405161054f91906137d8565b60405180910390f35b34801561056457600080fd5b5061057f600480360381019061057a9190613ad9565b610f21565b005b34801561058d57600080fd5b506105a860048036038101906105a391906139e9565b610f8c565b005b3480156105b657600080fd5b506105d160048036038101906105cc91906139e9565b610ff4565b6040516105de9190613a25565b60405180910390f35b3480156105f357600080fd5b506105fc61107b565b6040516106099190613709565b60405180910390f35b34801561061e57600080fd5b50610639600480360381019061063491906138d5565b611081565b6040516106469190613709565b60405180910390f35b34801561065b57600080fd5b50610664611139565b005b34801561067257600080fd5b5061068d60048036038101906106889190613d51565b61114d565b005b6106a960048036038101906106a49190613dde565b6111e8565b005b3480156106b757600080fd5b506106c061144c565b005b3480156106ce57600080fd5b506106d7611471565b6040516106e49190613a25565b60405180910390f35b3480156106f957600080fd5b5061070261149b565b60405161070f9190613709565b60405180910390f35b34801561072457600080fd5b5061073f600480360381019061073a9190613aac565b6114a0565b005b34801561074d57600080fd5b506107566114c5565b60405161076391906137d8565b60405180910390f35b34801561077857600080fd5b50610793600480360381019061078e9190613e2b565b6114d8565b005b3480156107a157600080fd5b506107aa61162d565b6040516107b79190613709565b60405180910390f35b3480156107cc57600080fd5b506107d5611633565b6040516107e2919061399b565b60405180910390f35b3480156107f757600080fd5b50610812600480360381019061080d9190613e6b565b6116c5565b005b61082e60048036038101906108299190613f01565b6116fa565b005b34801561083c57600080fd5b5061085760048036038101906108529190613aac565b61194b565b005b34801561086557600080fd5b50610880600480360381019061087b9190614023565b611970565b005b34801561088e57600080fd5b506108a960048036038101906108a491906139e9565b6119dd565b6040516108b6919061399b565b60405180910390f35b3480156108cb57600080fd5b506108e660048036038101906108e191906139e9565b611a17565b6040516108f391906137d8565b60405180910390f35b34801561090857600080fd5b50610911611a41565b60405161091e919061399b565b60405180910390f35b34801561093357600080fd5b5061094e60048036038101906109499190613e2b565b611acf565b60405161095b91906137d8565b60405180910390f35b34801561097057600080fd5b5061098b600480360381019061098691906138d5565b611b63565b005b34801561099957600080fd5b506109a2611be7565b6040516109af91906137d8565b60405180910390f35b3480156109c457600080fd5b506109df60048036038101906109da91906139e9565b611bfa565b005b3480156109ed57600080fd5b506109f6611c0c565b604051610a0391906137d8565b60405180910390f35b600b5481565b6000610a1d82611c1f565b80610a2d5750610a2c82611d01565b5b9050919050565b610a3c611d7b565b610a468282611df9565b5050565b610a52611d7b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610ac2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab9906140f2565b60405180910390fd5b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606060008054610b1590614141565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4190614141565b8015610b8e5780601f10610b6357610100808354040283529160200191610b8e565b820191906000526020600020905b815481529060010190602001808311610b7157829003601f168201915b5050505050905090565b6000610ba382611f8f565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610be881611fda565b610c0457610bf4612026565b15610c0357610c028161203d565b5b5b610c0e8383612081565b505050565b600f6020528060005260406000206000915054906101000a900460ff1681565b610c3b611d7b565b80601160146101000a81548160ff02191690831515021790555050565b600c5481565b6000610c68611d7b565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610cea57610ccd33611fda565b610ce957610cd9612026565b15610ce857610ce73361203d565b5b5b5b610cf5848484612199565b50505050565b6000806000600960008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161415610e915760086040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610e9b6121f9565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610ec791906141a2565b610ed1919061422b565b90508160000151819350935050509250929050565b6102ee81565b610ef4611d7b565b8060139080519060200190610f0a92919061364d565b5050565b601160149054906101000a900460ff1681565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f7b57610f5e33611fda565b610f7a57610f6a612026565b15610f7957610f783361203d565b5b5b5b610f86848484612203565b50505050565b610f94611d7b565b60001515600e60009054906101000a900460ff16151514610fea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe1906142a8565b60405180910390fd5b80600c8190555050565b60008061100083612223565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611072576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106990614314565b60405180910390fd5b80915050919050565b60125481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156110f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e9906143a6565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611141611d7b565b61114b6000612260565b565b611155611d7b565b60004790506000811161119d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119490614412565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156111e3573d6000803e3d6000fd5b505050565b6111f0612326565b601160159054906101000a900460ff1661123f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112369061447e565b60405180910390fd5b6001600b5461124e919061449e565b600c541015611292576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128990614540565b60405180910390fd5b60125434146112d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112cd906145ac565b60405180910390fd5b6000336040516020016112e99190614614565b6040516020818303038152906040528051906020012090506010600082815260200190815260200160002060009054906101000a900460ff1615611362576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113599061467b565b60405180910390fd5b6113b08184848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612376565b6113ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e6906146e7565b60405180910390fd5b60016010600083815260200190815260200160002060006101000a81548160ff021916908315150217905550600b600081548092919061142e90614707565b919050555061143f33600b546123e2565b50611448612400565b5050565b611454611d7b565b6001600e60006101000a81548160ff021916908315150217905550565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600181565b6114a8611d7b565b80601160156101000a81548160ff02191690831515021790555050565b600e60009054906101000a900460ff1681565b6114e0611d7b565b600082905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016115209190613a25565b602060405180830381865afa15801561153d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115619190614765565b9050600081116115a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159d90614412565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166323b872dd3085846040518463ffffffff1660e01b81526004016115e393929190614792565b6020604051808303816000875af1158015611602573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061162691906147de565b5050505050565b600d5481565b60606001805461164290614141565b80601f016020809104026020016040519081016040528092919081815260200182805461166e90614141565b80156116bb5780601f10611690576101008083540402835291602001916116bb565b820191906000526020600020905b81548152906001019060200180831161169e57829003601f168201915b5050505050905090565b816116cf81611fda565b6116eb576116db612026565b156116ea576116e98161203d565b5b5b6116f5838361240a565b505050565b611702612326565b601160149054906101000a900460ff16611751576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174890614857565b60405180910390fd5b6000338383604051602001611768939291906148e3565b6040516020818303038152906040528051906020012090506010600082815260200190815260200160002060009054906101000a900460ff16156117e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d89061467b565b60405180910390fd5b61182f8186868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612376565b61186e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611865906146e7565b60405180910390fd5b60016010600083815260200190815260200160002060006101000a81548160ff02191690831515021790555060005b8383905081101561193b576118cb338585848181106118bf576118be61490d565b5b905060200201356123e2565b6001600f60008686858181106118e4576118e361490d565b5b90506020020135815260200190815260200160002060006101000a81548160ff021916908315150217905550600d600081548092919061192390614707565b9190505550808061193390614707565b91505061189d565b5050611945612400565b50505050565b611953611d7b565b80600a60006101000a81548160ff02191690831515021790555050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146119ca576119ad33611fda565b6119c9576119b9612026565b156119c8576119c73361203d565b5b5b5b6119d685858585612420565b5050505050565b60606119e7612482565b6119f083612514565b604051602001611a01929190614978565b6040516020818303038152906040529050919050565b6000600f600083815260200190815260200160002060009054906101000a900460ff169050919050565b60138054611a4e90614141565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7a90614141565b8015611ac75780601f10611a9c57610100808354040283529160200191611ac7565b820191906000526020600020905b815481529060010190602001808311611aaa57829003601f168201915b505050505081565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611b6b611d7b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611bdb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bd290614a0e565b60405180910390fd5b611be481612260565b50565b601160159054906101000a900460ff1681565b611c02611d7b565b8060128190555050565b600a60009054906101000a900460ff1681565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611cea57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611cfa5750611cf9826125ec565b5b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611d745750611d7382611c1f565b5b9050919050565b611d83612656565b73ffffffffffffffffffffffffffffffffffffffff16611da1611471565b73ffffffffffffffffffffffffffffffffffffffff1614611df7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dee90614a7a565b60405180910390fd5b565b611e016121f9565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611e5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5690614b0c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ecf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec690614b78565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600860008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b611f988161265e565b611fd7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fce90614314565b60405180910390fd5b50565b6000731e0049783f008a0085193e00003d00cd54003c7173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16149050919050565b6000600a60009054906101000a900460ff16905090565b69c617113400112233445560005230601a5280603a52600080604460166daaeb6d7670e522a718067333cd4e5afa612079573d6000803e3d6000fd5b6000603a5250565b600061208c82610ff4565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156120fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120f490614c0a565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661211c612656565b73ffffffffffffffffffffffffffffffffffffffff16148061214b575061214a81612145612656565b611acf565b5b61218a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218190614c9c565b60405180910390fd5b612194838361269f565b505050565b6121aa6121a4612656565b82612758565b6121e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121e090614d2e565b60405180910390fd5b6121f48383836127ed565b505050565b6000612710905090565b61221e83838360405180602001604052806000815250611970565b505050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6002600754141561236c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161236390614d9a565b60405180910390fd5b6002600781905550565b600061238a61238484612ae7565b83612b17565b73ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905092915050565b6123fc828260405180602001604052806000815250612b3e565b5050565b6001600781905550565b61241c612415612656565b8383612b99565b5050565b61243161242b612656565b83612758565b612470576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246790614d2e565b60405180910390fd5b61247c84848484612d06565b50505050565b60606013805461249190614141565b80601f01602080910402602001604051908101604052809291908181526020018280546124bd90614141565b801561250a5780601f106124df5761010080835404028352916020019161250a565b820191906000526020600020905b8154815290600101906020018083116124ed57829003601f168201915b5050505050905090565b60606000600161252384612d62565b01905060008167ffffffffffffffff81111561254257612541613b9f565b5b6040519080825280601f01601f1916602001820160405280156125745781602001600182028036833780820191505090505b509050600082602001820190505b6001156125e1578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816125cb576125ca6141fc565b5b04945060008514156125dc576125e1565b612582565b819350505050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b60008073ffffffffffffffffffffffffffffffffffffffff1661268083612223565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661271283610ff4565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061276483610ff4565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806127a657506127a58185611acf565b5b806127e457508373ffffffffffffffffffffffffffffffffffffffff166127cc84610b98565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661280d82610ff4565b73ffffffffffffffffffffffffffffffffffffffff1614612863576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285a90614e2c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156128d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128ca90614ebe565b60405180910390fd5b6128e08383836001612eb5565b8273ffffffffffffffffffffffffffffffffffffffff1661290082610ff4565b73ffffffffffffffffffffffffffffffffffffffff1614612956576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161294d90614e2c565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612ae28383836001612fdb565b505050565b600081604051602001612afa9190614f55565b604051602081830303815290604052805190602001209050919050565b6000806000612b268585612fe1565b91509150612b3381613033565b819250505092915050565b612b4883836131a1565b612b5560008484846133bf565b612b94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b8b90614fed565b60405180910390fd5b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612c08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bff90615059565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612cf991906137d8565b60405180910390a3505050565b612d118484846127ed565b612d1d848484846133bf565b612d5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d5390614fed565b60405180910390fd5b50505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612dc0577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612db657612db56141fc565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612dfd576d04ee2d6d415b85acef81000000008381612df357612df26141fc565b5b0492506020810190505b662386f26fc100008310612e2c57662386f26fc100008381612e2257612e216141fc565b5b0492506010810190505b6305f5e1008310612e55576305f5e1008381612e4b57612e4a6141fc565b5b0492506008810190505b6127108310612e7a576127108381612e7057612e6f6141fc565b5b0492506004810190505b60648310612e9d5760648381612e9357612e926141fc565b5b0492506002810190505b600a8310612eac576001810190505b80915050919050565b6001811115612fd557600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612f495780600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612f419190615079565b925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612fd45780600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612fcc919061449e565b925050819055505b5b50505050565b50505050565b6000806041835114156130235760008060006020860151925060408601519150606086015160001a905061301787828585613547565b9450945050505061302c565b60006002915091505b9250929050565b60006004811115613047576130466150ad565b5b81600481111561305a576130596150ad565b5b14156130655761319e565b60016004811115613079576130786150ad565b5b81600481111561308c5761308b6150ad565b5b14156130cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130c490615128565b60405180910390fd5b600260048111156130e1576130e06150ad565b5b8160048111156130f4576130f36150ad565b5b1415613135576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161312c90615194565b60405180910390fd5b60036004811115613149576131486150ad565b5b81600481111561315c5761315b6150ad565b5b141561319d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161319490615226565b60405180910390fd5b5b50565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613211576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161320890615292565b60405180910390fd5b61321a8161265e565b1561325a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613251906152fe565b60405180910390fd5b613268600083836001612eb5565b6132718161265e565b156132b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132a8906152fe565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46133bb600083836001612fdb565b5050565b60006133e08473ffffffffffffffffffffffffffffffffffffffff1661362a565b1561353a578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613409612656565b8786866040518563ffffffff1660e01b815260040161342b9493929190615373565b6020604051808303816000875af192505050801561346757506040513d601f19601f8201168201806040525081019061346491906153d4565b60015b6134ea573d8060008114613497576040519150601f19603f3d011682016040523d82523d6000602084013e61349c565b606091505b506000815114156134e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134d990614fed565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061353f565b600190505b949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613582576000600391509150613621565b6000600187878787604051600081526020016040526040516135a7949392919061542c565b6020604051602081039080840390855afa1580156135c9573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561361857600060019250925050613621565b80600092509250505b94509492505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b82805461365990614141565b90600052602060002090601f01602090048101928261367b57600085556136c2565b82601f1061369457805160ff19168380011785556136c2565b828001600101855582156136c2579182015b828111156136c15782518255916020019190600101906136a6565b5b5090506136cf91906136d3565b5090565b5b808211156136ec5760008160009055506001016136d4565b5090565b6000819050919050565b613703816136f0565b82525050565b600060208201905061371e60008301846136fa565b92915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61376d81613738565b811461377857600080fd5b50565b60008135905061378a81613764565b92915050565b6000602082840312156137a6576137a561372e565b5b60006137b48482850161377b565b91505092915050565b60008115159050919050565b6137d2816137bd565b82525050565b60006020820190506137ed60008301846137c9565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061381e826137f3565b9050919050565b61382e81613813565b811461383957600080fd5b50565b60008135905061384b81613825565b92915050565b60006bffffffffffffffffffffffff82169050919050565b61387281613851565b811461387d57600080fd5b50565b60008135905061388f81613869565b92915050565b600080604083850312156138ac576138ab61372e565b5b60006138ba8582860161383c565b92505060206138cb85828601613880565b9150509250929050565b6000602082840312156138eb576138ea61372e565b5b60006138f98482850161383c565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561393c578082015181840152602081019050613921565b8381111561394b576000848401525b50505050565b6000601f19601f8301169050919050565b600061396d82613902565b613977818561390d565b935061398781856020860161391e565b61399081613951565b840191505092915050565b600060208201905081810360008301526139b58184613962565b905092915050565b6139c6816136f0565b81146139d157600080fd5b50565b6000813590506139e3816139bd565b92915050565b6000602082840312156139ff576139fe61372e565b5b6000613a0d848285016139d4565b91505092915050565b613a1f81613813565b82525050565b6000602082019050613a3a6000830184613a16565b92915050565b60008060408385031215613a5757613a5661372e565b5b6000613a658582860161383c565b9250506020613a76858286016139d4565b9150509250929050565b613a89816137bd565b8114613a9457600080fd5b50565b600081359050613aa681613a80565b92915050565b600060208284031215613ac257613ac161372e565b5b6000613ad084828501613a97565b91505092915050565b600080600060608486031215613af257613af161372e565b5b6000613b008682870161383c565b9350506020613b118682870161383c565b9250506040613b22868287016139d4565b9150509250925092565b60008060408385031215613b4357613b4261372e565b5b6000613b51858286016139d4565b9250506020613b62858286016139d4565b9150509250929050565b6000604082019050613b816000830185613a16565b613b8e60208301846136fa565b9392505050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613bd782613951565b810181811067ffffffffffffffff82111715613bf657613bf5613b9f565b5b80604052505050565b6000613c09613724565b9050613c158282613bce565b919050565b600067ffffffffffffffff821115613c3557613c34613b9f565b5b613c3e82613951565b9050602081019050919050565b82818337600083830152505050565b6000613c6d613c6884613c1a565b613bff565b905082815260208101848484011115613c8957613c88613b9a565b5b613c94848285613c4b565b509392505050565b600082601f830112613cb157613cb0613b95565b5b8135613cc1848260208601613c5a565b91505092915050565b600060208284031215613ce057613cdf61372e565b5b600082013567ffffffffffffffff811115613cfe57613cfd613733565b5b613d0a84828501613c9c565b91505092915050565b6000613d1e826137f3565b9050919050565b613d2e81613d13565b8114613d3957600080fd5b50565b600081359050613d4b81613d25565b92915050565b600060208284031215613d6757613d6661372e565b5b6000613d7584828501613d3c565b91505092915050565b600080fd5b600080fd5b60008083601f840112613d9e57613d9d613b95565b5b8235905067ffffffffffffffff811115613dbb57613dba613d7e565b5b602083019150836001820283011115613dd757613dd6613d83565b5b9250929050565b60008060208385031215613df557613df461372e565b5b600083013567ffffffffffffffff811115613e1357613e12613733565b5b613e1f85828601613d88565b92509250509250929050565b60008060408385031215613e4257613e4161372e565b5b6000613e508582860161383c565b9250506020613e618582860161383c565b9150509250929050565b60008060408385031215613e8257613e8161372e565b5b6000613e908582860161383c565b9250506020613ea185828601613a97565b9150509250929050565b60008083601f840112613ec157613ec0613b95565b5b8235905067ffffffffffffffff811115613ede57613edd613d7e565b5b602083019150836020820283011115613efa57613ef9613d83565b5b9250929050565b60008060008060408587031215613f1b57613f1a61372e565b5b600085013567ffffffffffffffff811115613f3957613f38613733565b5b613f4587828801613d88565b9450945050602085013567ffffffffffffffff811115613f6857613f67613733565b5b613f7487828801613eab565b925092505092959194509250565b600067ffffffffffffffff821115613f9d57613f9c613b9f565b5b613fa682613951565b9050602081019050919050565b6000613fc6613fc184613f82565b613bff565b905082815260208101848484011115613fe257613fe1613b9a565b5b613fed848285613c4b565b509392505050565b600082601f83011261400a57614009613b95565b5b813561401a848260208601613fb3565b91505092915050565b6000806000806080858703121561403d5761403c61372e565b5b600061404b8782880161383c565b945050602061405c8782880161383c565b935050604061406d878288016139d4565b925050606085013567ffffffffffffffff81111561408e5761408d613733565b5b61409a87828801613ff5565b91505092959194509250565b7f5349474e45525f414444524553535f5a45524f00000000000000000000000000600082015250565b60006140dc60138361390d565b91506140e7826140a6565b602082019050919050565b6000602082019050818103600083015261410b816140cf565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061415957607f821691505b6020821081141561416d5761416c614112565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006141ad826136f0565b91506141b8836136f0565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156141f1576141f0614173565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614236826136f0565b9150614241836136f0565b925082614251576142506141fc565b5b828204905092915050565b7f535550504c595f4c4f434b454400000000000000000000000000000000000000600082015250565b6000614292600d8361390d565b915061429d8261425c565b602082019050919050565b600060208201905081810360008301526142c181614285565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006142fe60188361390d565b9150614309826142c8565b602082019050919050565b6000602082019050818103600083015261432d816142f1565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b600061439060298361390d565b915061439b82614334565b604082019050919050565b600060208201905081810360008301526143bf81614383565b9050919050565b7f454d5054595f42414c414e434500000000000000000000000000000000000000600082015250565b60006143fc600d8361390d565b9150614407826143c6565b602082019050919050565b6000602082019050818103600083015261442b816143ef565b9050919050565b7f4d494e545f4e4f545f5354415254454400000000000000000000000000000000600082015250565b600061446860108361390d565b915061447382614432565b602082019050919050565b600060208201905081810360008301526144978161445b565b9050919050565b60006144a9826136f0565b91506144b4836136f0565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156144e9576144e8614173565b5b828201905092915050565b7f535550504c595f52454143484544000000000000000000000000000000000000600082015250565b600061452a600e8361390d565b9150614535826144f4565b602082019050919050565b600060208201905081810360008301526145598161451d565b9050919050565b7f57524f4e475f414d4f554e545f53454e54000000000000000000000000000000600082015250565b600061459660118361390d565b91506145a182614560565b602082019050919050565b600060208201905081810360008301526145c581614589565b9050919050565b60008160601b9050919050565b60006145e4826145cc565b9050919050565b60006145f6826145d9565b9050919050565b61460e61460982613813565b6145eb565b82525050565b600061462082846145fd565b60148201915081905092915050565b7f484153485f414c52454144595f55534544000000000000000000000000000000600082015250565b600061466560118361390d565b91506146708261462f565b602082019050919050565b6000602082019050818103600083015261469481614658565b9050919050565b7f494e56414c49445f5349474e4552000000000000000000000000000000000000600082015250565b60006146d1600e8361390d565b91506146dc8261469b565b602082019050919050565b60006020820190508181036000830152614700816146c4565b9050919050565b6000614712826136f0565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561474557614744614173565b5b600182019050919050565b60008151905061475f816139bd565b92915050565b60006020828403121561477b5761477a61372e565b5b600061478984828501614750565b91505092915050565b60006060820190506147a76000830186613a16565b6147b46020830185613a16565b6147c160408301846136fa565b949350505050565b6000815190506147d881613a80565b92915050565b6000602082840312156147f4576147f361372e565b5b6000614802848285016147c9565b91505092915050565b7f4d4947524154494f4e5f4e4f545f535441525445440000000000000000000000600082015250565b600061484160158361390d565b915061484c8261480b565b602082019050919050565b6000602082019050818103600083015261487081614834565b9050919050565b600081905092915050565b600080fd5b60006148938385614877565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156148c6576148c5614882565b5b6020830292506148d7838584613c4b565b82840190509392505050565b60006148ef82866145fd565b601482019150614900828486614887565b9150819050949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081905092915050565b600061495282613902565b61495c818561493c565b935061496c81856020860161391e565b80840191505092915050565b60006149848285614947565b91506149908284614947565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006149f860268361390d565b9150614a038261499c565b604082019050919050565b60006020820190508181036000830152614a27816149eb565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614a6460208361390d565b9150614a6f82614a2e565b602082019050919050565b60006020820190508181036000830152614a9381614a57565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000614af6602a8361390d565b9150614b0182614a9a565b604082019050919050565b60006020820190508181036000830152614b2581614ae9565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000614b6260198361390d565b9150614b6d82614b2c565b602082019050919050565b60006020820190508181036000830152614b9181614b55565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000614bf460218361390d565b9150614bff82614b98565b604082019050919050565b60006020820190508181036000830152614c2381614be7565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b6000614c86603d8361390d565b9150614c9182614c2a565b604082019050919050565b60006020820190508181036000830152614cb581614c79565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b6000614d18602d8361390d565b9150614d2382614cbc565b604082019050919050565b60006020820190508181036000830152614d4781614d0b565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614d84601f8361390d565b9150614d8f82614d4e565b602082019050919050565b60006020820190508181036000830152614db381614d77565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614e1660258361390d565b9150614e2182614dba565b604082019050919050565b60006020820190508181036000830152614e4581614e09565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614ea860248361390d565b9150614eb382614e4c565b604082019050919050565b60006020820190508181036000830152614ed781614e9b565b9050919050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000614f14601c8361493c565b9150614f1f82614ede565b601c82019050919050565b6000819050919050565b6000819050919050565b614f4f614f4a82614f2a565b614f34565b82525050565b6000614f6082614f07565b9150614f6c8284614f3e565b60208201915081905092915050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614fd760328361390d565b9150614fe282614f7b565b604082019050919050565b6000602082019050818103600083015261500681614fca565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b600061504360198361390d565b915061504e8261500d565b602082019050919050565b6000602082019050818103600083015261507281615036565b9050919050565b6000615084826136f0565b915061508f836136f0565b9250828210156150a2576150a1614173565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b600061511260188361390d565b915061511d826150dc565b602082019050919050565b6000602082019050818103600083015261514181615105565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b600061517e601f8361390d565b915061518982615148565b602082019050919050565b600060208201905081810360008301526151ad81615171565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b600061521060228361390d565b915061521b826151b4565b604082019050919050565b6000602082019050818103600083015261523f81615203565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b600061527c60208361390d565b915061528782615246565b602082019050919050565b600060208201905081810360008301526152ab8161526f565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b60006152e8601c8361390d565b91506152f3826152b2565b602082019050919050565b60006020820190508181036000830152615317816152db565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006153458261531e565b61534f8185615329565b935061535f81856020860161391e565b61536881613951565b840191505092915050565b60006080820190506153886000830187613a16565b6153956020830186613a16565b6153a260408301856136fa565b81810360608301526153b4818461533a565b905095945050505050565b6000815190506153ce81613764565b92915050565b6000602082840312156153ea576153e961372e565b5b60006153f8848285016153bf565b91505092915050565b61540a81614f2a565b82525050565b600060ff82169050919050565b61542681615410565b82525050565b60006080820190506154416000830187615401565b61544e602083018661541d565b61545b6040830185615401565b6154686060830184615401565b9594505050505056fea26469706673582212208c4db65816540e1e88383bb41ab253ccc1d70b374939b23565417f84f675cbed64736f6c634300080c0033

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.