FTM Testnet

Token

BitWitches Haunted (BWH)
ERC-721

Overview

Max Total Supply

20 BWH

Holders

4

Market

Fully Diluted Market Cap

$0.00

Circulating Supply Market Cap

-
Balance
0 BWH
0x0000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Contract Source Code Verified (Exact Match)

Contract Name:
HauntedWitches

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 20 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 43 : BannersOracle.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Counters.sol";


contract BannersOracle is Context,  AccessControlEnumerable, ERC721Enumerable, ERC721URIStorage{
  using Counters for Counters.Counter;
  Counters.Counter public _tokenIdTracker;

  string private _baseTokenURI;
  /// @notice Mint price
  uint private _price;
  /// @notice Max number of token mintable
  uint private _max;
  address _wallet;

  bool _openMint;
  bool _openWhitelistMint;

  mapping(address => uint) private whitelist;

  constructor(string memory name, string memory symbol, string memory baseTokenURI, uint mintPrice, uint max, address wallet, address admin) ERC721(name, symbol) {
      _baseTokenURI = baseTokenURI;
      _price = mintPrice;
      _max = max;
      _wallet = wallet;
      _openMint = false;
      _openWhitelistMint = false;
      _setupRole(DEFAULT_ADMIN_ROLE, wallet);
      _setupRole(DEFAULT_ADMIN_ROLE, admin);
  }

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

  function setBaseURI(string memory baseURI) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "BannersOracle: must have admin role to change base URI");
    _baseTokenURI = baseURI;
  }

  function setTokenURI(uint256 tokenId, string memory _tokenURI) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "BannersOracle: must have admin role to change token URI");
    _setTokenURI(tokenId, _tokenURI);
  }

  /**
    @notice Method for updating minting fee
    @dev Only admin
    @param mintPrice uint the minting fee to set
    */
  function setPrice(uint mintPrice) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "BannersOracle: must have admin role to change price");
    _price = mintPrice;
  }

  function setMax(uint max) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "BannersOracle: must have admin role to change the max quantity");
    _max = max;
  }

  function setMint(bool openMint, bool openWhitelistMint) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "BannersOracle: must have admin role to open/close mint");
    _openMint = openMint;
    _openWhitelistMint = openWhitelistMint;
  }

  function getPrice() public view returns (uint) {
    return _price;
  }

  function getMax() public view returns (uint) {
    return _max;
  }

  function mint(uint amount) public payable {
    require(amount <= 10, "BannersOracle: max of 10 Oracle Witches per mint");
    require(_openMint == true, "BannersOracle: minting is closed");
    require(msg.value == _price*amount, "BannersOracle: must send correct price");
    require(_tokenIdTracker.current() + amount <= _max, "BannersOracle: not enough Banners left to be minted");
    for(uint i = 0; i < amount; i++) {
      _mint(msg.sender, _tokenIdTracker.current());
      _tokenIdTracker.increment();
    }
    payable(_wallet).transfer(msg.value);
  }

  // function mintWhitelist() public payable {
  //   require(_openWhitelistMint == true, "BannersOracle: minting is closed");
  //   require(whitelist[msg.sender] > 0, "BannersOracle: user must be whitelisted to mint");
  //   require(msg.value == _presaleprice, "BannersOracle: must send correct price");
  //   require(_tokenIdTracker.current() < _max, "BannersOracle: all Oracle Witches have been minted");
    
  //   whitelist[msg.sender] = whitelist[msg.sender] - 1;
  //   _mint(msg.sender, _tokenIdTracker.current());
  //   _tokenIdTracker.increment();
  //   payable(_wallet).transfer(msg.value);
  // }

  function mintWhitelist(uint amount) public {
    require(_openWhitelistMint == true, "BannersOracle: minting is closed");
    require(whitelist[msg.sender] > 0, "BannersOracle: user must be whitelisted to mint");
    require(amount <= whitelist[msg.sender], "BannersOracle: user must have enough whitelist spots left to mint");
    require(_tokenIdTracker.current() + amount <= _max, "BannersOracle: not enough Banners left to be minted");

    for(uint i = 0; i < amount; i++) {
      _mint(msg.sender, _tokenIdTracker.current());
      whitelist[msg.sender] = whitelist[msg.sender] - 1;
      _tokenIdTracker.increment();
    }
  }

  function whitelistUser(address user, uint nbspot) public {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "BannersOracle: must have admin role to whitelist address");
    whitelist[user] = nbspot;
  }

  function whitelistStatus(address user) public view returns(uint) {
    // if (whitelist[user] > 0) {
    //   return whitelist[user];
    // }
    // else {
    //   return 0;
    // }
    return whitelist[user];
  }

  function burn(uint256 tokenId) public{
    require(_isApprovedOrOwner(msg.sender, tokenId), "BannersOracle: must own the token to burn it");
    _burn(tokenId);
  }

  function _burn(uint256 tokenId) internal virtual override(ERC721, ERC721URIStorage) {
    return ERC721URIStorage._burn(tokenId);
  }

  function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) {
    return ERC721URIStorage.tokenURI(tokenId);
  }
  
  function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override(ERC721, ERC721Enumerable) {
    super._beforeTokenTransfer(from, to, tokenId);
  }

  function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControlEnumerable, ERC721, ERC721Enumerable) returns (bool) {
    return super.supportsInterface(interfaceId);
  }
}

File 2 of 43 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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: balance query for the zero address");
        return _balances[owner];
    }

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

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

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

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

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

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @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 of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {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 a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try 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 {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

File 3 of 43 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

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

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

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

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 4 of 43 : ERC721Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Burnable.sol)

pragma solidity ^0.8.0;

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

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }
}

File 5 of 43 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721URIStorage.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

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

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

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

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

File 6 of 43 : AccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/AccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControlEnumerable.sol";
import "./AccessControl.sol";
import "../utils/structs/EnumerableSet.sol";

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;

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

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {_grantRole} to track enumerable memberships
     */
    function _grantRole(bytes32 role, address account) internal virtual override {
        super._grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {_revokeRole} to track enumerable memberships
     */
    function _revokeRole(bytes32 role, address account) internal virtual override {
        super._revokeRole(role, account);
        _roleMembers[role].remove(account);
    }
}

File 7 of 43 : 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 8 of 43 : 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 9 of 43 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

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

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

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

pragma solidity ^0.8.0;

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

File 11 of 43 : 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 12 of 43 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 14 of 43 : 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 43 : 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 43 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

import "./IAccessControl.sol";

/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable is IAccessControl {
    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

File 18 of 43 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

File 19 of 43 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 21 of 43 : WitchesOracleRituals.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Counters.sol";


contract WitchesOracleRituals is Context,  AccessControlEnumerable, ERC721Enumerable, ERC721URIStorage{
  using Counters for Counters.Counter;
  Counters.Counter public _tokenIdTracker;

  string private _baseTokenURI;
  /// @notice Mint price
  uint private _price;
  /// @notice Max number of token mintable
  uint private _max;
  address _wallet;

  bool _openMint;
  bool _openWhitelistMint;

  mapping(address => uint) private whitelist;

  constructor(string memory name, string memory symbol, string memory baseTokenURI, uint mintPrice, uint max, address wallet, address admin) ERC721(name, symbol) {
      _baseTokenURI = baseTokenURI;
      _price = mintPrice;
      _max = max;
      _wallet = wallet;
      _openMint = false;
      _openWhitelistMint = false;
      _setupRole(DEFAULT_ADMIN_ROLE, wallet);
      _setupRole(DEFAULT_ADMIN_ROLE, admin);
  }

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

  function setBaseURI(string memory baseURI) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Must have admin role to change base URI");
    _baseTokenURI = baseURI;
  }

  function setTokenURI(uint256 tokenId, string memory _tokenURI) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Must have admin role to change token URI");
    _setTokenURI(tokenId, _tokenURI);
  }

  /**
    @notice Method for updating minting fee
    @dev Only admin
    @param mintPrice uint the minting fee to set
    */
  function setPrice(uint mintPrice) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Must have admin role to change price");
    _price = mintPrice;
  }

  function setMax(uint max) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Must have admin role to change the max quantity");
    _max = max;
  }

  function setMint(bool openMint, bool openWhitelistMint) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Must have admin role to open/close mint");
    _openMint = openMint;
    _openWhitelistMint = openWhitelistMint;
  }

  function getPrice() public view returns (uint) {
    return _price;
  }

  function getMax() public view returns (uint) {
    return _max;
  }

  function mint(uint amount) public payable {
    require(amount <= 10, "Max of 10 Oracle Witches per mint");
    require(_openMint == true, "Minting is closed");
    require(msg.value == _price*amount, "Must send correct price");
    require(_tokenIdTracker.current() + amount <= _max, "BannersOracle: not enough Banners left to be minted");
    for(uint i = 0; i < amount; i++) {
      _mint(msg.sender, _tokenIdTracker.current());
      _tokenIdTracker.increment();
    }
    payable(_wallet).transfer(msg.value);
  }

  // function mintWhitelist() public payable {
  //   require(_openWhitelistMint == true, "Minting is closed");
  //   require(whitelist[msg.sender] > 0, "BannersOracle: user must be whitelisted to mint");
  //   require(msg.value == _presaleprice, "Must send correct price");
  //   require(_tokenIdTracker.current() < _max, "BannersOracle: all Oracle Witches have been minted");
    
  //   whitelist[msg.sender] = whitelist[msg.sender] - 1;
  //   _mint(msg.sender, _tokenIdTracker.current());
  //   _tokenIdTracker.increment();
  //   payable(_wallet).transfer(msg.value);
  // }

  function mintWhitelist(uint amount) public {
    require(_openWhitelistMint == true, "Minting is closed");
    require(whitelist[msg.sender] > 0, "BannersOracle: user must be whitelisted to mint");
    require(amount <= whitelist[msg.sender], "BannersOracle: user must have enough whitelist spots left to mint");
    require(_tokenIdTracker.current() + amount <= _max, "BannersOracle: not enough Banners left to be minted");

    for(uint i = 0; i < amount; i++) {
      _mint(msg.sender, _tokenIdTracker.current());
      whitelist[msg.sender] = whitelist[msg.sender] - 1;
      _tokenIdTracker.increment();
    }
  }

  function whitelistUser(address user, uint nbspot) public {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Must have admin role to whitelist address");
    whitelist[user] = nbspot;
  }

  function whitelistStatus(address user) public view returns(uint) {
    // if (whitelist[user] > 0) {
    //   return whitelist[user];
    // }
    // else {
    //   return 0;
    // }
    return whitelist[user];
  }

  function burn(uint256 tokenId) public{
    require(_isApprovedOrOwner(msg.sender, tokenId), "Must own the token to burn it");
    _burn(tokenId);
  }

  function _burn(uint256 tokenId) internal virtual override(ERC721, ERC721URIStorage) {
    return ERC721URIStorage._burn(tokenId);
  }

  function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) {
    return ERC721URIStorage.tokenURI(tokenId);
  }
  
  function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override(ERC721, ERC721Enumerable) {
    super._beforeTokenTransfer(from, to, tokenId);
  }

  function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControlEnumerable, ERC721, ERC721Enumerable) returns (bool) {
    return super.supportsInterface(interfaceId);
  }
}

File 22 of 43 : WitchesOracle.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Counters.sol";


contract WitchesOracle is Context,  AccessControlEnumerable, ERC721Enumerable, ERC721URIStorage{
  using Counters for Counters.Counter;
  Counters.Counter public _tokenIdTracker;

  string private _baseTokenURI;
  /// @notice Mint price
  uint private _price;
  /// @notice Mint price for presale
  uint private _presaleprice;
  /// @notice Max number of token mintable
  uint private _max;
  address _wallet;

  bool _openMint;
  bool _openWhitelistMint;

  mapping(address => bool) private whitelist;

  constructor(string memory name, string memory symbol, string memory baseTokenURI, uint mintPrice, uint mintPreSalePrice, uint max, address wallet, address admin) ERC721(name, symbol) {
      _baseTokenURI = baseTokenURI;
      _price = mintPrice;
      _presaleprice = mintPreSalePrice;
      _max = max;
      _wallet = wallet;
      _openMint = false;
      _openWhitelistMint = false;
      _setupRole(DEFAULT_ADMIN_ROLE, wallet);
      _setupRole(DEFAULT_ADMIN_ROLE, admin);
  }

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

  function setBaseURI(string memory baseURI) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "WitchesOracle: must have admin role to change base URI");
    _baseTokenURI = baseURI;
  }

  function setTokenURI(uint256 tokenId, string memory _tokenURI) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "WitchesOracle: must have admin role to change token URI");
    _setTokenURI(tokenId, _tokenURI);
  }

  /**
    @notice Method for updating minting fee
    @dev Only admin
    @param mintPrice uint the minting fee to set
    */
  function setPrice(uint mintPrice) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "WitchesOracle: must have admin role to change price");
    _price = mintPrice;
  }

  function setPreSalePrice(uint mintPreSalePrice) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "WitchesOracle: must have admin role to change presale price");
    _presaleprice = mintPreSalePrice;
  }

  function setMax(uint max) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "WitchesOracle: must have admin role to change the max quantity");
    _max = max;
  }

  function setMint(bool openMint, bool openWhitelistMint) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "WitchesOracle: must have admin role to open/close mint");
    _openMint = openMint;
    _openWhitelistMint = openWhitelistMint;
  }

  function getPrice() public view returns (uint) {
    return _price;
  }

  function getPreSalePrice() public view returns (uint) {
    return _presaleprice;
  }

  function getMax() public view returns (uint) {
    return _max;
  }

  function mint(uint amount) public payable {
    require(amount <= 10, "WitchesOracle: max of 10 Oracle Witches per mint");
    require(_openMint == true, "WitchesOracle: minting is closed");
    require(msg.value == _price*amount, "WitchesOracle: must send correct price");
    require(_tokenIdTracker.current() + amount <= _max, "WitchesOracle: not enough Oracle Witches left to be minted");
    for(uint i = 0; i < amount; i++) {
      _mint(msg.sender, _tokenIdTracker.current());
      _tokenIdTracker.increment();
    }
    payable(_wallet).transfer(msg.value);
  }

  function mintWhitelist() public payable {
    require(_openWhitelistMint == true, "WitchesOracle: minting is closed");
    require(whitelist[msg.sender] == true, "WitchesOracle: user must be whitelisted to mint");
    require(msg.value == _presaleprice, "WitchesOracle: must send correct price");
    require(_tokenIdTracker.current() < _max, "WitchesOracle: all Oracle Witches have been minted");
    
    whitelist[msg.sender] = false;
    _mint(msg.sender, _tokenIdTracker.current());
    _tokenIdTracker.increment();
    payable(_wallet).transfer(msg.value);
  }

  function whitelistUser(address user) public {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "WitchesOracle: must have admin role to whitelist address");
    whitelist[user] = true;
  }

  function whitelistStatus(address user) public view returns(bool) {
    return whitelist[user];
  }

  function burn(uint256 tokenId) public{
    require(_isApprovedOrOwner(msg.sender, tokenId), "WitchesOracle: must own the token to burn it");
    _burn(tokenId);
  }

  function _burn(uint256 tokenId) internal virtual override(ERC721, ERC721URIStorage) {
    return ERC721URIStorage._burn(tokenId);
  }

  function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) {
    return ERC721URIStorage.tokenURI(tokenId);
  }
  
  function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override(ERC721, ERC721Enumerable) {
    super._beforeTokenTransfer(from, to, tokenId);
  }

  function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControlEnumerable, ERC721, ERC721Enumerable) returns (bool) {
    return super.supportsInterface(interfaceId);
  }
}

File 23 of 43 : MyNFTContractRandom.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "../utils/ClampedRandomizer.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Counters.sol";


// Overview of contract capability
// Standard ERC721
// Supports for:
// - Presale list
// - Admin other than Owner
// - Burnable
// - Randomized ID at mint - WARNING - THIS PREVENTS THE MAXIMUM NUMBER OF NFTS TO MINT TO CHANGE

contract MyNFTContractRandom is ClampedRandomizer, Context, AccessControlEnumerable, ERC721Enumerable, ERC721URIStorage{
  using Counters for Counters.Counter;
  Counters.Counter public _tokenIdTracker;

  string private _baseTokenURI;
  /// @notice Mint price
  uint private _price;
  /// @notice Mint price for presale
  uint private _presaleprice;
  /// @notice Max number of token mintable
  uint private _max;
  address _wallet;

  bool _openMint;
  bool _openWhitelistMint;

  mapping(address => bool) private whitelist;

  constructor(string memory name, string memory symbol, string memory baseTokenURI, uint mintPrice, uint mintPreSalePrice, uint max, address wallet, address admin) ERC721(name, symbol) ClampedRandomizer(max){
      _baseTokenURI = baseTokenURI;
      _price = mintPrice;
      _presaleprice = mintPreSalePrice;
      _max = max;
      _wallet = wallet;
      _openMint = false;
      _openWhitelistMint = false;
      _setupRole(DEFAULT_ADMIN_ROLE, wallet);
      _setupRole(DEFAULT_ADMIN_ROLE, admin);
  }

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

  function setBaseURI(string memory baseURI) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Must have admin role to change base URI");
    _baseTokenURI = baseURI;
  }

  function setTokenURI(uint256 tokenId, string memory _tokenURI) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Must have admin role to change token URI");
    _setTokenURI(tokenId, _tokenURI);
  }

  /**
    @notice Method for updating minting fee
    @dev Only admin
    @param mintPrice uint the minting fee to set
    */
  function setPrice(uint mintPrice) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Must have admin role to change price");
    _price = mintPrice;
  }

  function setPreSalePrice(uint mintPreSalePrice) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Must have admin role to change presale price");
    _presaleprice = mintPreSalePrice;
  }

  function setMax(uint max) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Must have admin role to change the max quantity");
    _max = max;
  }

  function setMint(bool openMint, bool openWhitelistMint) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Must have admin role to open/close mint");
    _openMint = openMint;
    _openWhitelistMint = openWhitelistMint;
  }

  function getPrice() public view returns (uint) {
    return _price;
  }

  function getPreSalePrice() public view returns (uint) {
    return _presaleprice;
  }

  function getMax() public view returns (uint) {
    return _max;
  }

  function internalMint(address to) internal {
      uint tokenId = _genClampedNonce();
      _mint(to, tokenId);
  }

  function mint(uint amount) public payable {
    uint supply = totalSupply();
    require(amount <= 10, "Max of 10 NFT per mint");
    require(_openMint == true, "Minting is closed");
    require(msg.value == _price*amount, "Must send correct price");
    require(supply + amount <= _max, "Not enough NFT left to be minted");

    for(uint i = 0; i < amount; i++) {
      internalMint(msg.sender);
    }
    payable(_wallet).transfer(msg.value);
  }

  function mintWhitelist() public payable {
    uint supply = totalSupply();
    require(_openWhitelistMint == true, "Minting is closed");
    require(whitelist[msg.sender] == true, "User must be whitelisted to mint");
    require(msg.value == _presaleprice, "Must send correct price");
    require(supply < _max, "All NFTs have been minted");
    
    whitelist[msg.sender] = false;
    internalMint(msg.sender);
    payable(_wallet).transfer(msg.value);
  }

  function whitelistUser(address user) public {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "Must have admin role to whitelist address");
    whitelist[user] = true;
  }

  function whitelistStatus(address user) public view returns(bool) {
    return whitelist[user];
  }

  function burn(uint256 tokenId) public{
    require(_isApprovedOrOwner(msg.sender, tokenId), "Must own the token to burn it");
    _burn(tokenId);
  }

  function _burn(uint256 tokenId) internal virtual override(ERC721, ERC721URIStorage) {
    return ERC721URIStorage._burn(tokenId);
  }

  function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) {
    return ERC721URIStorage.tokenURI(tokenId);
  }
  
  function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override(ERC721, ERC721Enumerable) {
    super._beforeTokenTransfer(from, to, tokenId);
  }

  function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControlEnumerable, ERC721, ERC721Enumerable) returns (bool) {
    return super.supportsInterface(interfaceId);
  }
}

File 24 of 43 : ClampedRandomizer.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

contract ClampedRandomizer {
    uint256 private _scopeIndex = 0; //Clamping cache for random TokenID generation in the anti-sniping algo
    uint256 private immutable _scopeCap; //Size of initial randomized number pool & max generated value (zero indexed)
    mapping(uint256 => uint256) _swappedIDs; //TokenID cache for random TokenID generation in the anti-sniping algo

    constructor(uint256 scopeCap) {
        _scopeCap = scopeCap;
    }

    function _genClampedNonce() internal virtual returns (uint256) {
        uint256 scope = _scopeCap - _scopeIndex;
        uint256 swap;
        uint256 result;

        uint256 i = randomNumber() % scope;

        //Setup the value to swap in for the selected number
        if (_swappedIDs[scope - 1] == 0) {
            swap = scope - 1;
        } else {
            swap = _swappedIDs[scope - 1];
        }

        //Select a random number, swap it out with an unselected one then shorten the selection range by 1
        if (_swappedIDs[i] == 0) {
            result = i;
            _swappedIDs[i] = swap;
        } else {
            result = _swappedIDs[i];
            _swappedIDs[i] = swap;
        }
        _scopeIndex++;
        return result;
    }

    function randomNumber() internal view returns (uint256) {
        return uint256(keccak256(abi.encodePacked(block.difficulty, block.timestamp)));
    }
}

File 25 of 43 : HauntedWitches.sol
// SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";
import "@openzeppelin/contracts/interfaces/IERC20.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "../layerzero_v0/NonblockingReceiver.sol";
import "../utils/ClampedRandomizer.sol";

pragma solidity ^0.8.7;

contract HauntedWitches is ERC721Enumerable, ERC721URIStorage, IERC2981, Ownable, ERC721Burnable, NonblockingReceiver, ClampedRandomizer {
    
    using SafeMath for uint;
    using Address for address;
    using Counters for Counters.Counter;
    Counters.Counter private _tokenIdTracker;

    event Migration(address indexed _to, uint indexed _tokenId);

    string public baseURI;
    // VARIABLES
    uint public startID;
    bool public whitelistedOnly;
    bool public openMint;
    bool public openTraversing;
    uint public maxSupply;
    uint public maxPerTx = 5;
    uint public maxPerPerson;
    uint public price = 30000000000000000000;
    address public royaltyAddress = 0xB22fc8e22CAc0B95b381deA7Ea86705a7d622dF0;
    address private walletMint = 0xB22fc8e22CAc0B95b381deA7Ea86705a7d622dF0;
    uint public royalty = 750;
    uint private gasForDestinationLzReceive = 350000;   

    // MAPPINGS
    mapping(address => uint) public whiteListed;
    mapping(address => uint) public mintedCount;

    constructor(
        uint _startID,
        uint _mintPrice,
        uint _maxSupply,
        address _lzEndpoint,
        uint _randomizedSupply
    ) ERC721("BitWitches Haunted", "BWH") ClampedRandomizer(_randomizedSupply) {
        startID = _startID;
        price = _mintPrice;
        maxSupply = _maxSupply;
        maxPerPerson = _maxSupply;
        openMint = false;
        openTraversing = false;
        whitelistedOnly = false;
        endpoint = ILayerZeroEndpoint(_lzEndpoint);
    }

    // This function transfers the nft from your address on the
    // source chain to the same address on the destination chain
    function traverseChains(uint16 _chainId, uint tokenId) public payable {
        require(openTraversing == true, "Haunted BitWitches: traversing is closed");
        require(msg.sender == ownerOf(tokenId), "You must own the token to traverse");
        require(trustedRemoteLookup[_chainId].length > 0, "This chain is currently unavailable for travel");

        // burn NFT, eliminating it from circulation on src chain
        _burn(tokenId);

        // abi.encode() the payload with the values to send
        bytes memory payload = abi.encode(msg.sender, tokenId);

        // encode adapterParams to specify more gas for the destination
        uint16 version = 1;
        bytes memory adapterParams = abi.encodePacked(version, gasForDestinationLzReceive);

        // get the fees we need to pay to LayerZero + Relayer to cover message delivery
        // you will be refunded for extra gas paid
        (uint messageFee, ) = endpoint.estimateFees(_chainId, address(this), payload, false, adapterParams);

        require(msg.value >= messageFee, "Error: msg.value not enough to cover messageFee. Send gas for message fees");

        endpoint.send{value: msg.value}(
            _chainId, // destination chainId
            trustedRemoteLookup[_chainId], // destination address of nft contract
            payload, // abi.encoded()'ed bytes
            payable(msg.sender), // refund address
            address(0x0), // 'zroPaymentAddress' unused for this
            adapterParams // txParameters
        );
    }

    // just in case this fixed variable limits us from future integrations
    function setGasForDestinationLzReceive(uint newVal) external onlyOwner {
        gasForDestinationLzReceive = newVal;
    }

    function _LzReceive(
        uint16 _srcChainId,
        bytes memory _srcAddress,
        uint64 _nonce,
        bytes memory _payload
    ) internal override {
        // decode
        (address toAddr, uint tokenId) = abi.decode(_payload, (address, uint));

        // mint the tokens back into existence on destination chain
        _safeMint(toAddr, tokenId);
    }

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

    function mint(uint amount) public payable {
        uint supply = totalSupply();
        require(openMint == true, "Haunted BitWitches: minting is closed");
        require(supply + amount - 1 < maxSupply, "Error: cannot mint more than total supply");
        require(amount > 0 && amount <= maxPerTx, "Error: max par tx limit");
        require(balanceOf(msg.sender) + 1 <= maxPerPerson, "Error: max per address limit");
        require(msg.value == price * amount, "Error: invalid price");
        if (whitelistedOnly) require(whiteListed[msg.sender] >= amount, "Error: you are not whitelisted or amount is higher than limit");
        uint tempCount = mintedCount[msg.sender];
        for (uint i = 0; i < amount; i++) {
            internalMint(msg.sender);
            tempCount += 1;
            if (whitelistedOnly) whiteListed[msg.sender] -= 1;
        }
        mintedCount[msg.sender] = tempCount;
        // Add transfer to destination wallet
        payable(walletMint).transfer(msg.value);
    }

    function tokenURI(uint tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) {
        return super.tokenURI(tokenId);
    }

    function Owned(address _owner) external view returns (uint[] memory) {
        uint tokenCount = balanceOf(_owner);
        if (tokenCount == 0) {
            return new uint[](0);
        } else {
            uint[] memory result = new uint[](tokenCount);
            uint index;
            for (index = 0; index < tokenCount; ++index) {
                result[index] = tokenOfOwnerByIndex(_owner, index);
            }
            return result;
        }
    }

    function tokenExists(uint _id) external view returns (bool) {
        return (_exists(_id));
    }

    function royaltyInfo(uint, uint _salePrice) external view override returns (address receiver, uint royaltyAmount) {
        return (royaltyAddress, (_salePrice * royalty) / 10000);
    }

    //dev

    function whiteList(address[] memory _addressList, uint count) external onlyOwner {
        require(_addressList.length > 0, "Error: list is empty");
        for (uint i = 0; i < _addressList.length; ++i) {
            require(_addressList[i] != address(0), "Address cannot be 0.");
            whiteListed[_addressList[i]] = count;
        }
    }

    function whitelistUser(address user, uint nbspot) external onlyOwner{
        whiteListed[user] = nbspot;
    }

    function removeWhiteList(address[] memory addressList) external onlyOwner {
        require(addressList.length > 0, "Error: list is empty");
        for (uint i = 0; i < addressList.length; ++i) whiteListed[addressList[i]] = 0;
    }

    function updateWhitelistStatus() external onlyOwner {
        whitelistedOnly = !whitelistedOnly;
    }

    function setMint(bool _openMint) external onlyOwner {
        openMint = _openMint;
    }

    function setTraversing(bool _openTraversing) external onlyOwner {
        openTraversing = _openTraversing;
    }

    function setMaxPerPerson(uint newMaxBuy) external onlyOwner {
        maxPerPerson = newMaxBuy;
    }

    function setMaxPerTx(uint newMaxBuy) external onlyOwner {
        maxPerTx = newMaxBuy;
    }

    function setBaseURI(string memory newBaseURI) external onlyOwner {
        baseURI = newBaseURI;
    }

    function setPrice(uint newPrice) external onlyOwner {
        price = newPrice;
    }

    function getPrice() public view returns (uint) {
        return price;
    }

    function getMax() public view returns (uint) {
        return maxSupply;
    }

    function setURI(uint tokenId, string memory uri) external onlyOwner {
        _setTokenURI(tokenId, uri);
    }

    function setRoyalty(uint16 _royalty) external onlyOwner {
        require(_royalty <= 1000, "Royalty must be lower than or equal to 10%");
        royalty = _royalty;
    }

    function setRoyaltyAddress(address _royaltyAddress) external onlyOwner {
        royaltyAddress = _royaltyAddress;
    }

    //Overrides

    function internalMint(address to) internal {
        uint tokenId = _genClampedNonce() + startID;
        _safeMint(to, tokenId);
    }

    function safeMint(address to) public onlyOwner {
        internalMint(to);
    }

    function internalMintToken(address to, uint tokenId) internal {
        _safeMint(to, tokenId);
    }

    function safeMintToken(address to, uint tokenId) public onlyOwner {
        internalMintToken(to, tokenId);
    }

    function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable, IERC165) returns (bool) {
        return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId);
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint tokenId
    ) internal override(ERC721, ERC721Enumerable) {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    function _burn(uint tokenId) internal override(ERC721, ERC721URIStorage) {
        super._burn(tokenId);
    }

    function airdropsToken(address[] memory _addr, uint256 amount) public onlyOwner {
        for (uint256 i = 0; i < _addr.length; i++) {
            airdropTokenInternal(amount, _addr[i]);
        }
    }
    
    function airdropTokenInternal(uint256 amount, address _addr) internal {
        require(_tokenIdTracker.current() + amount <= startID, "Haunted BitWitches: not enough witches left to be minted");
        for (uint256 i = 0; i < amount; i++) {
            _safeMint(_addr, _tokenIdTracker.current());
            _tokenIdTracker.increment();
        }
    }
}

File 26 of 43 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

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

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

File 27 of 43 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 substraction 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 28 of 43 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Called with the sale price to determine how much royalty is owed and to whom.
     * @param tokenId - the NFT asset queried for royalty information
     * @param salePrice - the sale price of the NFT asset specified by `tokenId`
     * @return receiver - address of who should be sent the royalty payment
     * @return royaltyAmount - the royalty payment amount for `salePrice`
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 29 of 43 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/IERC20.sol";

File 30 of 43 : NonblockingReceiver.sol
//SPDX-License-Identifier: MIT

import "@openzeppelin/contracts/access/Ownable.sol";
import "./interfaces/ILayerZeroReceiver.sol";
import "./interfaces/ILayerZeroEndpoint.sol";

//pragma solidity ^0.8.6;
pragma solidity ^0.8.4;

abstract contract NonblockingReceiver is Ownable, ILayerZeroReceiver {
    ILayerZeroEndpoint internal endpoint;

    struct FailedMessages {
        uint payloadLength;
        bytes32 payloadHash;
    }

    mapping(uint16 => mapping(bytes => mapping(uint => FailedMessages))) public failedMessages;
    mapping(uint16 => bytes) public trustedRemoteLookup;

    event MessageFailed(uint16 _srcChainId, bytes _srcAddress, uint64 _nonce, bytes _payload);

    function lzReceive(
        uint16 _srcChainId,
        bytes memory _srcAddress,
        uint64 _nonce,
        bytes memory _payload
    ) external override {
        require(msg.sender == address(endpoint)); // boilerplate! lzReceive must be called by the endpoint for security
        require(_srcAddress.length == trustedRemoteLookup[_srcChainId].length && keccak256(_srcAddress) == keccak256(trustedRemoteLookup[_srcChainId]), "NonblockingReceiver: invalid source sending contract");

        // try-catch all errors/exceptions
        // having failed messages does not block messages passing
        try this.onLzReceive(_srcChainId, _srcAddress, _nonce, _payload) {
            // do nothing
        } catch {
            // error / exception
            failedMessages[_srcChainId][_srcAddress][_nonce] = FailedMessages(_payload.length, keccak256(_payload));
            emit MessageFailed(_srcChainId, _srcAddress, _nonce, _payload);
        }
    }

    function onLzReceive(
        uint16 _srcChainId,
        bytes memory _srcAddress,
        uint64 _nonce,
        bytes memory _payload
    ) public {
        // only internal transaction
        require(msg.sender == address(this), "NonblockingReceiver: caller must be Bridge.");

        // handle incoming message
        _LzReceive(_srcChainId, _srcAddress, _nonce, _payload);
    }

    // abstract function
    function _LzReceive(
        uint16 _srcChainId,
        bytes memory _srcAddress,
        uint64 _nonce,
        bytes memory _payload
    ) internal virtual;

    function _lzSend(
        uint16 _dstChainId,
        bytes memory _payload,
        address payable _refundAddress,
        address _zroPaymentAddress,
        bytes memory _txParam
    ) internal {
        endpoint.send{value: msg.value}(_dstChainId, trustedRemoteLookup[_dstChainId], _payload, _refundAddress, _zroPaymentAddress, _txParam);
    }

    function retryMessage(
        uint16 _srcChainId,
        bytes memory _srcAddress,
        uint64 _nonce,
        bytes calldata _payload
    ) external payable {
        // assert there is message to retry
        FailedMessages storage failedMsg = failedMessages[_srcChainId][_srcAddress][_nonce];
        require(failedMsg.payloadHash != bytes32(0), "NonblockingReceiver: no stored message");
        require(_payload.length == failedMsg.payloadLength && keccak256(_payload) == failedMsg.payloadHash, "LayerZero: invalid payload");
        // clear the stored message
        failedMsg.payloadLength = 0;
        failedMsg.payloadHash = bytes32(0);
        // execute the message. revert if it fails again
        this.onLzReceive(_srcChainId, _srcAddress, _nonce, _payload);
    }

    function setTrustedRemote(uint16 _chainId, bytes calldata _trustedRemote) external onlyOwner {
        trustedRemoteLookup[_chainId] = _trustedRemote;
    }
}

File 31 of 43 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

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

File 32 of 43 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

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

File 33 of 43 : ILayerZeroReceiver.sol
// SPDX-License-Identifier: BUSL-1.1

pragma solidity >=0.5.0;

interface ILayerZeroReceiver {
    // @notice LayerZero endpoint will invoke this function to deliver the message on the destination
    // @param _srcChainId - the source endpoint identifier
    // @param _srcAddress - the source sending contract address from the source chain
    // @param _nonce - the ordered message nonce
    // @param _payload - the signed payload is the UA bytes has encoded to be sent
    function lzReceive(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload) external;
}

File 34 of 43 : ILayerZeroEndpoint.sol
// SPDX-License-Identifier: BUSL-1.1

pragma solidity >=0.5.0;

import "./ILayerZeroUserApplicationConfig.sol";

interface ILayerZeroEndpoint is ILayerZeroUserApplicationConfig {
    // @notice send a LayerZero message to the specified address at a LayerZero endpoint.
    // @param _dstChainId - the destination chain identifier
    // @param _destination - the address on destination chain (in bytes). address length/format may vary by chains
    // @param _payload - a custom bytes payload to send to the destination contract
    // @param _refundAddress - if the source transaction is cheaper than the amount of value passed, refund the additional amount to this address
    // @param _zroPaymentAddress - the address of the ZRO token holder who would pay for the transaction
    // @param _adapterParams - parameters for custom functionality. e.g. receive airdropped native gas from the relayer on destination
    function send(uint16 _dstChainId, bytes calldata _destination, bytes calldata _payload, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams) external payable;

    // @notice used by the messaging library to publish verified payload
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source contract (as bytes) at the source chain
    // @param _dstAddress - the address on destination chain
    // @param _nonce - the unbound message ordering nonce
    // @param _gasLimit - the gas limit for external contract execution
    // @param _payload - verified payload to send to the destination contract
    function receivePayload(uint16 _srcChainId, bytes calldata _srcAddress, address _dstAddress, uint64 _nonce, uint _gasLimit, bytes calldata _payload) external;

    // @notice get the inboundNonce of a receiver from a source chain which could be EVM or non-EVM chain
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source chain contract address
    function getInboundNonce(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (uint64);

    // @notice get the outboundNonce from this source chain which, consequently, is always an EVM
    // @param _srcAddress - the source chain contract address
    function getOutboundNonce(uint16 _dstChainId, address _srcAddress) external view returns (uint64);

    // @notice gets a quote in source native gas, for the amount that send() requires to pay for message delivery
    // @param _dstChainId - the destination chain identifier
    // @param _userApplication - the user app address on this EVM chain
    // @param _payload - the custom message to send over LayerZero
    // @param _payInZRO - if false, user app pays the protocol fee in native token
    // @param _adapterParam - parameters for the adapter service, e.g. send some dust native token to dstChain
    function estimateFees(uint16 _dstChainId, address _userApplication, bytes calldata _payload, bool _payInZRO, bytes calldata _adapterParam) external view returns (uint nativeFee, uint zroFee);

    // @notice get this Endpoint's immutable source identifier
    function getChainId() external view returns (uint16);

    // @notice the interface to retry failed message on this Endpoint destination
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source chain contract address
    // @param _payload - the payload to be retried
    function retryPayload(uint16 _srcChainId, bytes calldata _srcAddress, bytes calldata _payload) external;

    // @notice query if any STORED payload (message blocking) at the endpoint.
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source chain contract address
    function hasStoredPayload(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool);

    // @notice query if the _libraryAddress is valid for sending msgs.
    // @param _userApplication - the user app address on this EVM chain
    function getSendLibraryAddress(address _userApplication) external view returns (address);

    // @notice query if the _libraryAddress is valid for receiving msgs.
    // @param _userApplication - the user app address on this EVM chain
    function getReceiveLibraryAddress(address _userApplication) external view returns (address);

    // @notice query if the non-reentrancy guard for send() is on
    // @return true if the guard is on. false otherwise
    function isSendingPayload() external view returns (bool);

    // @notice query if the non-reentrancy guard for receive() is on
    // @return true if the guard is on. false otherwise
    function isReceivingPayload() external view returns (bool);

    // @notice get the configuration of the LayerZero messaging library of the specified version
    // @param _version - messaging library version
    // @param _chainId - the chainId for the pending config change
    // @param _userApplication - the contract address of the user application
    // @param _configType - type of configuration. every messaging library has its own convention.
    function getConfig(uint16 _version, uint16 _chainId, address _userApplication, uint _configType) external view returns (bytes memory);

    // @notice get the send() LayerZero messaging library version
    // @param _userApplication - the contract address of the user application
    function getSendVersion(address _userApplication) external view returns (uint16);

    // @notice get the lzReceive() LayerZero messaging library version
    // @param _userApplication - the contract address of the user application
    function getReceiveVersion(address _userApplication) external view returns (uint16);
}

File 35 of 43 : ILayerZeroUserApplicationConfig.sol
// SPDX-License-Identifier: BUSL-1.1

pragma solidity >=0.5.0;

interface ILayerZeroUserApplicationConfig {
    // @notice set the configuration of the LayerZero messaging library of the specified version
    // @param _version - messaging library version
    // @param _chainId - the chainId for the pending config change
    // @param _configType - type of configuration. every messaging library has its own convention.
    // @param _config - configuration in the bytes. can encode arbitrary content.
    function setConfig(uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config) external;

    // @notice set the send() LayerZero messaging library version to _version
    // @param _version - new messaging library version
    function setSendVersion(uint16 _version) external;

    // @notice set the lzReceive() LayerZero messaging library version to _version
    // @param _version - new messaging library version
    function setReceiveVersion(uint16 _version) external;

    // @notice Only when the UA needs to resume the message flow in blocking mode and clear the stored payload
    // @param _srcChainId - the chainId of the source chain
    // @param _srcAddress - the contract address of the source contract at the source chain
    function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external;
}

File 36 of 43 : LzApp.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "../interfaces/ILayerZeroReceiver.sol";
import "../interfaces/ILayerZeroUserApplicationConfig.sol";
import "../interfaces/ILayerZeroEndpoint.sol";

/*
 * a generic LzReceiver implementation
 */
abstract contract LzApp is Ownable, ILayerZeroReceiver, ILayerZeroUserApplicationConfig {
    ILayerZeroEndpoint internal immutable lzEndpoint;

    mapping(uint16 => bytes) internal trustedRemoteLookup;

    event SetTrustedRemote(uint16 _srcChainId, bytes _srcAddress);

    constructor(address _endpoint) {
        lzEndpoint = ILayerZeroEndpoint(_endpoint);
    }

    function lzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) external override {
        // lzReceive must be called by the endpoint for security
        require(_msgSender() == address(lzEndpoint));
        // if will still block the message pathway from (srcChainId, srcAddress). should not receive message from untrusted remote.
        require(_srcAddress.length == trustedRemoteLookup[_srcChainId].length && keccak256(_srcAddress) == keccak256(trustedRemoteLookup[_srcChainId]), "LzReceiver: invalid source sending contract");

        _blockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload);
    }

    // abstract function - the default behaviour of LayerZero is blocking. See: NonblockingLzApp if you dont need to enforce ordered messaging
    function _blockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual;

    function _lzSend(uint16 _dstChainId, bytes memory _payload, address payable _refundAddress, address _zroPaymentAddress, bytes memory _adapterParam) internal {
        require(trustedRemoteLookup[_dstChainId].length != 0, "LzSend: destination chain is not a trusted source.");
        lzEndpoint.send{value: msg.value}(_dstChainId, trustedRemoteLookup[_dstChainId], _payload, _refundAddress, _zroPaymentAddress, _adapterParam);
    }

    //---------------------------UserApplication config----------------------------------------
    function getConfig(uint16, uint16 _chainId, address, uint _configType) external view returns (bytes memory) {
        return lzEndpoint.getConfig(lzEndpoint.getSendVersion(address(this)), _chainId, address(this), _configType);
    }

    // generic config for LayerZero user Application
    function setConfig(uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config) external override onlyOwner {
        lzEndpoint.setConfig(_version, _chainId, _configType, _config);
    }

    function setSendVersion(uint16 _version) external override onlyOwner {
        lzEndpoint.setSendVersion(_version);
    }

    function setReceiveVersion(uint16 _version) external override onlyOwner {
        lzEndpoint.setReceiveVersion(_version);
    }

    function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external override onlyOwner {
        lzEndpoint.forceResumeReceive(_srcChainId, _srcAddress);
    }

    // allow owner to set it multiple times.
    function setTrustedRemote(uint16 _srcChainId, bytes calldata _srcAddress) external onlyOwner {
        trustedRemoteLookup[_srcChainId] = _srcAddress;
        emit SetTrustedRemote(_srcChainId, _srcAddress);
    }

    function isTrustedRemote(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool) {
        bytes memory trustedSource = trustedRemoteLookup[_srcChainId];
        return keccak256(trustedSource) == keccak256(_srcAddress);
    }

    //--------------------------- VIEW FUNCTION ----------------------------------------
    // interacting with the LayerZero Endpoint and remote contracts

    function getTrustedRemote(uint16 _chainId) external view returns (bytes memory) {
        return trustedRemoteLookup[_chainId];
    }

    function getLzEndpoint() external view returns (address) {
        return address(lzEndpoint);
    }
}

File 37 of 43 : ILayerZeroReceiver.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.5.0;

interface ILayerZeroReceiver {
    // @notice LayerZero endpoint will invoke this function to deliver the message on the destination
    // @param _srcChainId - the source endpoint identifier
    // @param _srcAddress - the source sending contract address from the source chain
    // @param _nonce - the ordered message nonce
    // @param _payload - the signed payload is the UA bytes has encoded to be sent
    function lzReceive(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload) external;
}

File 38 of 43 : ILayerZeroUserApplicationConfig.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.5.0;

interface ILayerZeroUserApplicationConfig {
    // @notice set the configuration of the LayerZero messaging library of the specified version
    // @param _version - messaging library version
    // @param _chainId - the chainId for the pending config change
    // @param _configType - type of configuration. every messaging library has its own convention.
    // @param _config - configuration in the bytes. can encode arbitrary content.
    function setConfig(uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config) external;

    // @notice set the send() LayerZero messaging library version to _version
    // @param _version - new messaging library version
    function setSendVersion(uint16 _version) external;

    // @notice set the lzReceive() LayerZero messaging library version to _version
    // @param _version - new messaging library version
    function setReceiveVersion(uint16 _version) external;

    // @notice Only when the UA needs to resume the message flow in blocking mode and clear the stored payload
    // @param _srcChainId - the chainId of the source chain
    // @param _srcAddress - the contract address of the source contract at the source chain
    function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external;
}

File 39 of 43 : ILayerZeroEndpoint.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.5.0;

import "./ILayerZeroUserApplicationConfig.sol";

interface ILayerZeroEndpoint is ILayerZeroUserApplicationConfig {
    // @notice send a LayerZero message to the specified address at a LayerZero endpoint.
    // @param _dstChainId - the destination chain identifier
    // @param _destination - the address on destination chain (in bytes). address length/format may vary by chains
    // @param _payload - a custom bytes payload to send to the destination contract
    // @param _refundAddress - if the source transaction is cheaper than the amount of value passed, refund the additional amount to this address
    // @param _zroPaymentAddress - the address of the ZRO token holder who would pay for the transaction
    // @param _adapterParams - parameters for custom functionality. e.g. receive airdropped native gas from the relayer on destination
    function send(uint16 _dstChainId, bytes calldata _destination, bytes calldata _payload, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams) external payable;

    // @notice used by the messaging library to publish verified payload
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source contract (as bytes) at the source chain
    // @param _dstAddress - the address on destination chain
    // @param _nonce - the unbound message ordering nonce
    // @param _gasLimit - the gas limit for external contract execution
    // @param _payload - verified payload to send to the destination contract
    function receivePayload(uint16 _srcChainId, bytes calldata _srcAddress, address _dstAddress, uint64 _nonce, uint _gasLimit, bytes calldata _payload) external;

    // @notice get the inboundNonce of a lzApp from a source chain which could be EVM or non-EVM chain
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source chain contract address
    function getInboundNonce(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (uint64);

    // @notice get the outboundNonce from this source chain which, consequently, is always an EVM
    // @param _srcAddress - the source chain contract address
    function getOutboundNonce(uint16 _dstChainId, address _srcAddress) external view returns (uint64);

    // @notice gets a quote in source native gas, for the amount that send() requires to pay for message delivery
    // @param _dstChainId - the destination chain identifier
    // @param _userApplication - the user app address on this EVM chain
    // @param _payload - the custom message to send over LayerZero
    // @param _payInZRO - if false, user app pays the protocol fee in native token
    // @param _adapterParam - parameters for the adapter service, e.g. send some dust native token to dstChain
    function estimateFees(uint16 _dstChainId, address _userApplication, bytes calldata _payload, bool _payInZRO, bytes calldata _adapterParam) external view returns (uint nativeFee, uint zroFee);

    // @notice get this Endpoint's immutable source identifier
    function getChainId() external view returns (uint16);

    // @notice the interface to retry failed message on this Endpoint destination
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source chain contract address
    // @param _payload - the payload to be retried
    function retryPayload(uint16 _srcChainId, bytes calldata _srcAddress, bytes calldata _payload) external;

    // @notice query if any STORED payload (message blocking) at the endpoint.
    // @param _srcChainId - the source chain identifier
    // @param _srcAddress - the source chain contract address
    function hasStoredPayload(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool);

    // @notice query if the _libraryAddress is valid for sending msgs.
    // @param _userApplication - the user app address on this EVM chain
    function getSendLibraryAddress(address _userApplication) external view returns (address);

    // @notice query if the _libraryAddress is valid for receiving msgs.
    // @param _userApplication - the user app address on this EVM chain
    function getReceiveLibraryAddress(address _userApplication) external view returns (address);

    // @notice query if the non-reentrancy guard for send() is on
    // @return true if the guard is on. false otherwise
    function isSendingPayload() external view returns (bool);

    // @notice query if the non-reentrancy guard for receive() is on
    // @return true if the guard is on. false otherwise
    function isReceivingPayload() external view returns (bool);

    // @notice get the configuration of the LayerZero messaging library of the specified version
    // @param _version - messaging library version
    // @param _chainId - the chainId for the pending config change
    // @param _userApplication - the contract address of the user application
    // @param _configType - type of configuration. every messaging library has its own convention.
    function getConfig(uint16 _version, uint16 _chainId, address _userApplication, uint _configType) external view returns (bytes memory);

    // @notice get the send() LayerZero messaging library version
    // @param _userApplication - the contract address of the user application
    function getSendVersion(address _userApplication) external view returns (uint16);

    // @notice get the lzReceive() LayerZero messaging library version
    // @param _userApplication - the contract address of the user application
    function getReceiveVersion(address _userApplication) external view returns (uint16);
}

File 40 of 43 : NonblockingLzApp.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./LzApp.sol";

/*
 * the default LayerZero messaging behaviour is blocking, i.e. any failed message will block the channel
 * this abstract class try-catch all fail messages and store locally for future retry. hence, non-blocking
 * NOTE: if the srcAddress is not configured properly, it will still block the message pathway from (srcChainId, srcAddress)
 */
abstract contract NonblockingLzApp is LzApp {
    constructor(address _endpoint) LzApp(_endpoint) {}

    mapping(uint16 => mapping(bytes => mapping(uint => bytes32))) public failedMessages;

    event MessageFailed(uint16 _srcChainId, bytes _srcAddress, uint64 _nonce, bytes _payload);

    // overriding the virtual function in LzReceiver
    function _blockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual override {
        // try-catch all errors/exceptions
        try this.nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload) {
            // do nothing
        } catch {
            // error / exception
            failedMessages[_srcChainId][_srcAddress][_nonce] = keccak256(_payload);
            emit MessageFailed(_srcChainId, _srcAddress, _nonce, _payload);
        }
    }

    function nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) public virtual {
        // only internal transaction
        require(_msgSender() == address(this), "LzReceiver: caller must be LzApp");
        _nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload);
    }

    //@notice override this function
    function _nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual;

    function retryMessage(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes calldata _payload) external payable virtual {
        // assert there is message to retry
        bytes32 payloadHash = failedMessages[_srcChainId][_srcAddress][_nonce];
        require(payloadHash != bytes32(0), "LzReceiver: no stored message");
        require(keccak256(_payload) == payloadHash, "LzReceiver: invalid payload");
        // clear the stored message
        failedMessages[_srcChainId][_srcAddress][_nonce] = bytes32(0);
        // execute the message. revert if it fails again
        this.nonblockingLzReceive(_srcChainId, _srcAddress, _nonce, _payload);
    }
}

File 41 of 43 : BannersOracleLZClean.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "../layerzero/contracts/token/onft/IONFT721.sol";
import "../layerzero/contracts/lzApp/NonblockingLzApp.sol";

contract BannersOracleLZClean is Context, AccessControlEnumerable, ERC721Enumerable, ERC721URIStorage, IONFT721, NonblockingLzApp{
  using Counters for Counters.Counter;
  Counters.Counter public _tokenIdTracker;

  string private _baseTokenURI;
  /// @notice Mint price
  uint private _price;
  /// @notice Max number of token mintable
  uint private _max;
  address _wallet;

  bool _openMint;
  bool _openWhitelistMint;

  mapping(address => uint) private whitelist;

  constructor(string memory name, string memory symbol, string memory baseTokenURI, uint mintPrice, uint max, address wallet, address admin, address _lzEndpoint) ERC721(name, symbol) NonblockingLzApp(_lzEndpoint){
      _baseTokenURI = baseTokenURI;
      _price = mintPrice;
      _max = max;
      _wallet = wallet;
      _openMint = false;
      _openWhitelistMint = false;
      _setupRole(DEFAULT_ADMIN_ROLE, wallet);
      _setupRole(DEFAULT_ADMIN_ROLE, admin);
  }

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

  function setBaseURI(string memory baseURI) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "BannersOracle: must have admin role to change base URI");
    _baseTokenURI = baseURI;
  }

  function setTokenURI(uint256 tokenId, string memory _tokenURI) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "BannersOracle: must have admin role to change token URI");
    _setTokenURI(tokenId, _tokenURI);
  }

  /**
    @notice Method for updating minting fee
    @dev Only admin
    @param mintPrice uint the minting fee to set
    */
  function setPrice(uint mintPrice) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "BannersOracle: must have admin role to change price");
    _price = mintPrice;
  }

  function setMax(uint max) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "BannersOracle: must have admin role to change the max quantity");
    _max = max;
  }

  function setMint(bool openMint, bool openWhitelistMint) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "BannersOracle: must have admin role to open/close mint");
    _openMint = openMint;
    _openWhitelistMint = openWhitelistMint;
  }

  function getPrice() public view returns (uint) {
    return _price;
  }

  function getMax() public view returns (uint) {
    return _max;
  }

  function mint(uint amount) public payable {
    require(amount <= 10, "BannersOracle: max of 10 Oracle Witches per mint");
    require(_openMint == true, "BannersOracle: minting is closed");
    require(msg.value == _price*amount, "BannersOracle: must send correct price");
    require(_tokenIdTracker.current() + amount <= _max, "BannersOracle: not enough Banners left to be minted");
    for(uint i = 0; i < amount; i++) {
      _mint(msg.sender, _tokenIdTracker.current());
      _tokenIdTracker.increment();
    }
    payable(_wallet).transfer(msg.value);
  }

  // function mintWhitelist() public payable {
  //   require(_openWhitelistMint == true, "BannersOracle: minting is closed");
  //   require(whitelist[msg.sender] > 0, "BannersOracle: user must be whitelisted to mint");
  //   require(msg.value == _presaleprice, "BannersOracle: must send correct price");
  //   require(_tokenIdTracker.current() < _max, "BannersOracle: all Oracle Witches have been minted");
    
  //   whitelist[msg.sender] = whitelist[msg.sender] - 1;
  //   _mint(msg.sender, _tokenIdTracker.current());
  //   _tokenIdTracker.increment();
  //   payable(_wallet).transfer(msg.value);
  // }

  function mintWhitelist(uint amount) public {
    require(_openWhitelistMint == true, "BannersOracle: minting is closed");
    require(whitelist[msg.sender] > 0, "BannersOracle: user must be whitelisted to mint");
    require(amount <= whitelist[msg.sender], "BannersOracle: user must have enough whitelist spots left to mint");
    require(_tokenIdTracker.current() + amount <= _max, "BannersOracle: not enough Banners left to be minted");

    for(uint i = 0; i < amount; i++) {
      _mint(msg.sender, _tokenIdTracker.current());
      whitelist[msg.sender] = whitelist[msg.sender] - 1;
      _tokenIdTracker.increment();
    }
  }

  function whitelistUser(address user, uint nbspot) public {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "BannersOracle: must have admin role to whitelist address");
    whitelist[user] = nbspot;
  }

  function whitelistStatus(address user) public view returns(uint) {
    // if (whitelist[user] > 0) {
    //   return whitelist[user];
    // }
    // else {
    //   return 0;
    // }
    return whitelist[user];
  }

  function burn(uint256 tokenId) public{
    require(_isApprovedOrOwner(msg.sender, tokenId), "BannersOracle: must own the token to burn it");
    _burn(tokenId);
  }

  function _burn(uint256 tokenId) internal virtual override(ERC721, ERC721URIStorage) {
    return ERC721URIStorage._burn(tokenId);
  }

  function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) {
    return ERC721URIStorage.tokenURI(tokenId);
  }
  
  function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override(ERC721, ERC721Enumerable) {
    super._beforeTokenTransfer(from, to, tokenId);
  }

  function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControlEnumerable, ERC721, ERC721Enumerable, IERC165) returns (bool) {
    return super.supportsInterface(interfaceId);
  }

  // LAYER ZERO
    function estimateSendFee(uint16 _dstChainId, bytes calldata _toAddress, uint _tokenId, bool _useZro, bytes calldata _adapterParams) external view virtual override returns (uint nativeFee, uint zroFee) {
        // mock the payload for send()
        bytes memory payload = abi.encode(_toAddress, _tokenId);
        return lzEndpoint.estimateFees(_dstChainId, address(this), payload, _useZro, _adapterParams);
    }

    function sendFrom(address _from, uint16 _dstChainId, bytes calldata _toAddress, uint _tokenId, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParam) external payable virtual override {
        _send(_from, _dstChainId, _toAddress, _tokenId, _refundAddress, _zroPaymentAddress, _adapterParam);
    }

    function send(uint16 _dstChainId, bytes calldata _toAddress, uint _tokenId, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParam) external payable virtual override {
        _send(_msgSender(), _dstChainId, _toAddress, _tokenId, _refundAddress, _zroPaymentAddress, _adapterParam);
    }

    function _send(address _from, uint16 _dstChainId, bytes memory _toAddress, uint _tokenId, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParam) internal virtual {
        require(_isApprovedOrOwner(_msgSender(), _tokenId), "ERC721: transfer caller is not owner nor approved");
        _beforeSend(_from, _dstChainId, _toAddress, _tokenId);

        bytes memory payload = abi.encode(_toAddress, _tokenId);
        _lzSend(_dstChainId, payload, _refundAddress, _zroPaymentAddress, _adapterParam);

        uint64 nonce = lzEndpoint.getOutboundNonce(_dstChainId, address(this));
        emit SendToChain(_from, _dstChainId, _toAddress, _tokenId, nonce);
        //_afterSend(_from, _dstChainId, _toAddress, _tokenId);
    }

    function _nonblockingLzReceive(uint16 _srcChainId, bytes memory _srcAddress, uint64 _nonce, bytes memory _payload) internal virtual override {
        //_beforeReceive(_srcChainId, _srcAddress, _payload);

        // decode and load the toAddress
        (bytes memory toAddress, uint tokenId) = abi.decode(_payload, (bytes, uint));
        address localToAddress;
        assembly {
            localToAddress := mload(add(toAddress, 20))
        }

        // if the toAddress is 0x0, convert to dead address, or it will get cached
        if (localToAddress == address(0x0)) localToAddress == address(0xdEaD);

        _afterReceive(_srcChainId, localToAddress, tokenId);

        emit ReceiveFromChain(_srcChainId, localToAddress, tokenId, _nonce);
    }

    function _beforeSend(
        address, /* _from */
        uint16, /* _dstChainId */
        bytes memory, /* _toAddress */
        uint _tokenId
    ) internal virtual {
        _burn(_tokenId);
    }

    // function _afterSend(
    //     address, /* _from */
    //     uint16, /* _dstChainId */
    //     bytes memory, /* _toAddress */
    //     uint /* _tokenId */
    // ) internal virtual {}

    // function _beforeReceive(
    //     uint16, /* _srcChainId */
    //     bytes memory, /* _srcAddress */
    //     bytes memory /* _payload */
    // ) internal virtual {}

    function _afterReceive(
        uint16, /* _srcChainId */
        address _toAddress,
        uint _tokenId
    ) internal virtual {
        _safeMint(_toAddress, _tokenId);
    }

}

File 42 of 43 : IONFT721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

/**
 * @dev Interface of the ONFT standard
 */
interface IONFT721 is IERC721 {
    /**
     * @dev estimate send token `_tokenId` to (`_dstChainId`, `_toAddress`)
     * _dstChainId - L0 defined chain id to send tokens too
     * _toAddress - dynamic bytes array which contains the address to whom you are sending tokens to on the dstChain
     * _tokenId - token Id to transfer
     * _useZro - indicates to use zro to pay L0 fees
     * _adapterParam - flexible bytes array to indicate messaging adapter services in L0
     */
    function estimateSendFee(uint16 _dstChainId, bytes calldata _toAddress, uint _tokenId, bool _useZro, bytes calldata _adapterParams) external view returns (uint nativeFee, uint zroFee);

    /**
     * @dev send token `_tokenId` to (`_dstChainId`, `_toAddress`)
     * `_toAddress` can be any size depending on the `dstChainId`.
     * `_zroPaymentAddress` set to address(0x0) if not paying in ZRO (LayerZero Token)
     * `_adapterParam` is a flexible bytes array to indicate messaging adapter services
     */
    function send(uint16 _dstChainId, bytes calldata _toAddress, uint _tokenId, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParam) external payable;

    /**
     * @dev send token `_tokenId` to (`_dstChainId`, `_toAddress`) from `_from`
     * `_toAddress` can be any size depending on the `dstChainId`.
     * `_zroPaymentAddress` set to address(0x0) if not paying in ZRO (LayerZero Token)
     * `_adapterParam` is a flexible bytes array to indicate messaging adapter services
     */
    function sendFrom(address _from, uint16 _dstChainId, bytes calldata _toAddress, uint _tokenId, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParam) external payable;

    /**
     * @dev Emitted when `_tokenId` are moved from the `_sender` to (`_dstChainId`, `_toAddress`)
     * `_nonce` is the outbound nonce from
     */
    event SendToChain(address indexed _sender, uint16 indexed _dstChainId, bytes indexed _toAddress, uint _tokenId, uint64 _nonce);

    /**
     * @dev Emitted when `_tokenId` are sent from `_srcChainId` to the `_toAddress` at this chain. `_nonce` is the inbound nonce.
     */
    event ReceiveFromChain(uint16 _srcChainId, address _toAddress, uint _tokenId, uint64 _nonce);
}

File 43 of 43 : BannersOracleLZ.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "../layerzero_v0/NonblockingReceiver.sol";

contract BannersOracleLZ is Context, AccessControlEnumerable, ERC721Enumerable, ERC721URIStorage, NonblockingReceiver{
  using Counters for Counters.Counter;
  Counters.Counter public _tokenIdTracker;

  string private _baseTokenURI;
  /// @notice Mint price
  uint private _price;
  /// @notice Max number of token mintable
  uint private _max;
  address _wallet;

  bool _openMint;
  bool _openWhitelistMint;

  event Migration(address indexed _to, uint indexed _tokenId);
  uint private gasForDestinationLzReceive = 350000;

  mapping(address => uint) private whitelist;

  constructor(string memory name, string memory symbol, string memory baseTokenURI, uint mintPrice, uint max, address wallet, address admin, address _lzEndpoint) ERC721(name, symbol) {
      _baseTokenURI = baseTokenURI;
      _price = mintPrice;
      _max = max;
      _wallet = wallet;
      _openMint = false;
      _openWhitelistMint = false;
      _setupRole(DEFAULT_ADMIN_ROLE, wallet);
      _setupRole(DEFAULT_ADMIN_ROLE, admin);

      endpoint = ILayerZeroEndpoint(_lzEndpoint);
  }

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

  function setBaseURI(string memory baseURI) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "BannersOracle: must have admin role to change base URI");
    _baseTokenURI = baseURI;
  }

  function setTokenURI(uint256 tokenId, string memory _tokenURI) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "BannersOracle: must have admin role to change token URI");
    _setTokenURI(tokenId, _tokenURI);
  }

  /**
    @notice Method for updating minting fee
    @dev Only admin
    @param mintPrice uint the minting fee to set
    */
  function setPrice(uint mintPrice) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "BannersOracle: must have admin role to change price");
    _price = mintPrice;
  }

  function setMax(uint max) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "BannersOracle: must have admin role to change the max quantity");
    _max = max;
  }

  function setMint(bool openMint, bool openWhitelistMint) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "BannersOracle: must have admin role to open/close mint");
    _openMint = openMint;
    _openWhitelistMint = openWhitelistMint;
  }

  function getPrice() public view returns (uint) {
    return _price;
  }

  function getMax() public view returns (uint) {
    return _max;
  }

  function mint(uint amount) public payable {
    require(amount <= 10, "BannersOracle: max of 10 Oracle Witches per mint");
    require(_openMint == true, "BannersOracle: minting is closed");
    require(msg.value == _price*amount, "BannersOracle: must send correct price");
    require(_tokenIdTracker.current() + amount <= _max, "BannersOracle: not enough Banners left to be minted");
    for(uint i = 0; i < amount; i++) {
      _mint(msg.sender, _tokenIdTracker.current());
      _tokenIdTracker.increment();
    }
    payable(_wallet).transfer(msg.value);
  }

  // function mintWhitelist() public payable {
  //   require(_openWhitelistMint == true, "BannersOracle: minting is closed");
  //   require(whitelist[msg.sender] > 0, "BannersOracle: user must be whitelisted to mint");
  //   require(msg.value == _presaleprice, "BannersOracle: must send correct price");
  //   require(_tokenIdTracker.current() < _max, "BannersOracle: all Oracle Witches have been minted");
    
  //   whitelist[msg.sender] = whitelist[msg.sender] - 1;
  //   _mint(msg.sender, _tokenIdTracker.current());
  //   _tokenIdTracker.increment();
  //   payable(_wallet).transfer(msg.value);
  // }

  function mintWhitelist(uint amount) public {
    require(_openWhitelistMint == true, "BannersOracle: minting is closed");
    require(whitelist[msg.sender] > 0, "BannersOracle: user must be whitelisted to mint");
    require(amount <= whitelist[msg.sender], "BannersOracle: user must have enough whitelist spots left to mint");
    require(_tokenIdTracker.current() + amount <= _max, "BannersOracle: not enough Banners left to be minted");

    for(uint i = 0; i < amount; i++) {
      _mint(msg.sender, _tokenIdTracker.current());
      whitelist[msg.sender] = whitelist[msg.sender] - 1;
      _tokenIdTracker.increment();
    }
  }

  function whitelistUser(address user, uint nbspot) public {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "BannersOracle: must have admin role to whitelist address");
    whitelist[user] = nbspot;
  }

  function whitelistStatus(address user) public view returns(uint) {
    // if (whitelist[user] > 0) {
    //   return whitelist[user];
    // }
    // else {
    //   return 0;
    // }
    return whitelist[user];
  }

  function burn(uint256 tokenId) public{
    require(_isApprovedOrOwner(msg.sender, tokenId), "BannersOracle: must own the token to burn it");
    _burn(tokenId);
  }

  function _burn(uint256 tokenId) internal virtual override(ERC721, ERC721URIStorage) {
    return ERC721URIStorage._burn(tokenId);
  }

  function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) {
    return ERC721URIStorage.tokenURI(tokenId);
  }
  
  function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override(ERC721, ERC721Enumerable) {
    super._beforeTokenTransfer(from, to, tokenId);
  }

  function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControlEnumerable, ERC721, ERC721Enumerable) returns (bool) {
    return super.supportsInterface(interfaceId);
  }

  // LAYER ZERO
  // This function transfers the nft from your address on the
  // source chain to the same address on the destination chain
  function traverseChains(uint16 _chainId, uint tokenId) public payable {
      require(msg.sender == ownerOf(tokenId), "You must own the token to traverse");
      require(trustedRemoteLookup[_chainId].length > 0, "This chain is currently unavailable for travel");

      // burn NFT, eliminating it from circulation on src chain
      _burn(tokenId);

      // abi.encode() the payload with the values to send
      bytes memory payload = abi.encode(msg.sender, tokenId);

      // encode adapterParams to specify more gas for the destination
      uint16 version = 1;
      bytes memory adapterParams = abi.encodePacked(version, gasForDestinationLzReceive);

      // get the fees we need to pay to LayerZero + Relayer to cover message delivery
      // you will be refunded for extra gas paid
      (uint messageFee, ) = endpoint.estimateFees(_chainId, address(this), payload, false, adapterParams);

      require(msg.value >= messageFee, "Error: msg.value not enough to cover messageFee. Send gas for message fees");

      endpoint.send{value: msg.value}(
          _chainId, // destination chainId
          trustedRemoteLookup[_chainId], // destination address of nft contract
          payload, // abi.encoded()'ed bytes
          payable(msg.sender), // refund address
          address(0x0), // 'zroPaymentAddress' unused for this
          adapterParams // txParameters
      );
  }

  // just in case this fixed variable limits us from future integrations
  function setGasForDestinationLzReceive(uint newVal) external onlyOwner {
      gasForDestinationLzReceive = newVal;
  }

  function _LzReceive(
      uint16 _srcChainId,
      bytes memory _srcAddress,
      uint64 _nonce,
      bytes memory _payload
  ) internal override {
      // decode
      (address toAddr, uint tokenId) = abi.decode(_payload, (address, uint));

      // mint the tokens back into existence on destination chain
      _safeMint(toAddr, tokenId);
  }


}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 20
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_startID","type":"uint256"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"address","name":"_lzEndpoint","type":"address"},{"internalType":"uint256","name":"_randomizedSupply","type":"uint256"}],"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":false,"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"indexed":false,"internalType":"uint64","name":"_nonce","type":"uint64"},{"indexed":false,"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"MessageFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"Migration","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"Owned","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addr","type":"address[]"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"airdropsToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"bytes","name":"","type":"bytes"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"failedMessages","outputs":[{"internalType":"uint256","name":"payloadLength","type":"uint256"},{"internalType":"bytes32","name":"payloadHash","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"lzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxPerPerson","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"onLzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"openMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openTraversing","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":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addressList","type":"address[]"}],"name":"removeWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"_nonce","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"retryMessage","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"royalty","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"safeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeMintToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newVal","type":"uint256"}],"name":"setGasForDestinationLzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxBuy","type":"uint256"}],"name":"setMaxPerPerson","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxBuy","type":"uint256"}],"name":"setMaxPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_openMint","type":"bool"}],"name":"setMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_royalty","type":"uint16"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_royaltyAddress","type":"address"}],"name":"setRoyaltyAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_openTraversing","type":"bool"}],"name":"setTraversing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"bytes","name":"_trustedRemote","type":"bytes"}],"name":"setTrustedRemote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"tokenExists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"traverseChains","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"trustedRemoteLookup","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"updateWhitelistStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addressList","type":"address[]"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"whiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whiteListed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"nbspot","type":"uint256"}],"name":"whitelistUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistedOnly","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60a06040526000600f5560056016556801a055690d9db800006018556019805473b22fc8e22cac0b95b381dea7ea86705a7d622df06001600160a01b03199182168117909255601a805490911690911790556102ee601b5562055730601c553480156200006b57600080fd5b50604051620045fb380380620045fb8339810160408190526200008e916200025c565b6040805180820182526012815271109a5d15da5d18da195cc812185d5b9d195960721b602080830191825283518085019094526003845262084ae960eb1b908401528151849391620000e49160009190620001b6565b508051620000fa906001906020840190620001b6565b50505062000117620001116200016060201b60201c565b62000164565b6080525060139390935560189190915560158190556017556014805462ffffff19169055600c80546001600160a01b0319166001600160a01b03909216919091179055620002f6565b3390565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001c490620002b9565b90600052602060002090601f016020900481019282620001e8576000855562000233565b82601f106200020357805160ff191683800117855562000233565b8280016001018555821562000233579182015b828111156200023357825182559160200191906001019062000216565b506200024192915062000245565b5090565b5b8082111562000241576000815560010162000246565b600080600080600060a086880312156200027557600080fd5b855160208701516040880151606089015192975090955093506001600160a01b0381168114620002a457600080fd5b80925050608086015190509295509295909350565b600181811c90821680620002ce57607f821691505b60208210811415620002f057634e487b7160e01b600052602260045260246000fd5b50919050565b6080516142e9620003126000396000612bf801526142e96000f3fe6080604052600436106102d65760003560e01c8063768d713811610182578063768d7138146106ce5780637e0586f1146106e4578063862440e2146107045780638da5cb5b146107245780638ee74912146107395780639186b425146107a457806391b7f5ed146107be578063943fb872146107de57806395d89b41146107fe57806398d5fdca14610813578063a035b1fe14610828578063a0712d681461083e578063a1a2f92714610851578063a22cb46514610871578063ad2f852a14610891578063b88d4fde146108b1578063b9bfa0bc146108d1578063bce6d672146108e6578063c6f6f21614610905578063c87b56dd14610925578063cf89fa0314610945578063d1deba1f14610958578063d2f8dd451461096b578063d5abeb0114610998578063e054ffc3146109ae578063e985e9c5146109ce578063ea52e55b146109ee578063eb8d72b714610a04578063f2fde38b14610a24578063f968adbe14610a44578063fa0fca8414610a5a578063fddcb5ea14610a8757600080fd5b80621d3567146102db578062923f9e146102fd57806301ffc9a71461033257806306d254da1461035257806306fdde031461037257806307eb4ac214610394578063081812fc146103b4578063095ea7b3146103ec57806318160ddd1461040c5780631c37a8221461042b57806323b872dd1461044b57806329413b121461046b57806329ee566c1461048b5780632a55205a146104a15780632f745c59146104cf5780633075f552146104ef57806336e79a5a14610504578063397457911461052457806340d097c31461054457806342842e0e1461056457806342966c6814610584578063429ff28d146105a45780634389de9a146105c4578063483efda2146105e45780634f6ccce71461060457806355f804b3146106245780636352211e146106445780636c0360eb1461066457806370a0823114610679578063715018a6146106995780637533d788146106ae575b600080fd5b3480156102e757600080fd5b506102fb6102f63660046136aa565b610ab4565b005b34801561030957600080fd5b5061031d61031836600461372e565b610cae565b60405190151581526020015b60405180910390f35b34801561033e57600080fd5b5061031d61034d36600461375d565b610cbf565b34801561035e57600080fd5b506102fb61036d36600461378f565b610ce4565b34801561037e57600080fd5b50610387610d35565b6040516103299190613804565b3480156103a057600080fd5b506102fb6103af366004613827565b610dc7565b3480156103c057600080fd5b506103d46103cf36600461372e565b610e12565b6040516001600160a01b039091168152602001610329565b3480156103f857600080fd5b506102fb61040736600461384f565b610e9a565b34801561041857600080fd5b506008545b604051908152602001610329565b34801561043757600080fd5b506102fb6104463660046136aa565b610fab565b34801561045757600080fd5b506102fb61046636600461387b565b61101a565b34801561047757600080fd5b506102fb610486366004613944565b61104c565b34801561049757600080fd5b5061041d601b5481565b3480156104ad57600080fd5b506104c16104bc366004613988565b6110bc565b6040516103299291906139aa565b3480156104db57600080fd5b5061041d6104ea36600461384f565b6110f7565b3480156104fb57600080fd5b5060155461041d565b34801561051057600080fd5b506102fb61051f3660046139c3565b61118d565b34801561053057600080fd5b506102fb61053f3660046139de565b61122e565b34801561055057600080fd5b506102fb61055f36600461378f565b6112e3565b34801561057057600080fd5b506102fb61057f36600461387b565b61131e565b34801561059057600080fd5b506102fb61059f36600461372e565b611339565b3480156105b057600080fd5b506102fb6105bf366004613827565b6113b0565b3480156105d057600080fd5b506102fb6105df36600461384f565b6113f9565b3480156105f057600080fd5b506102fb6105ff36600461372e565b611432565b34801561061057600080fd5b5061041d61061f36600461372e565b611466565b34801561063057600080fd5b506102fb61063f366004613a12565b6114f9565b34801561065057600080fd5b506103d461065f36600461372e565b61153b565b34801561067057600080fd5b506103876115b2565b34801561068557600080fd5b5061041d61069436600461378f565b611640565b3480156106a557600080fd5b506102fb6116c7565b3480156106ba57600080fd5b506103876106c93660046139c3565b611702565b3480156106da57600080fd5b5061041d60175481565b3480156106f057600080fd5b506102fb6106ff366004613944565b61171b565b34801561071057600080fd5b506102fb61071f366004613a46565b61183e565b34801561073057600080fd5b506103d4611877565b34801561074557600080fd5b5061078f610754366004613a8c565b600d60209081526000938452604080852084518086018401805192815290840195840195909520945292905282529020805460019091015482565b60408051928352602083019190915201610329565b3480156107b057600080fd5b5060145461031d9060ff1681565b3480156107ca57600080fd5b506102fb6107d936600461372e565b611886565b3480156107ea57600080fd5b506102fb6107f936600461372e565b6118ba565b34801561080a57600080fd5b506103876118ee565b34801561081f57600080fd5b5060185461041d565b34801561083457600080fd5b5061041d60185481565b6102fb61084c36600461372e565b6118fd565b34801561085d57600080fd5b5060145461031d9062010000900460ff1681565b34801561087d57600080fd5b506102fb61088c366004613ae2565b611c4e565b34801561089d57600080fd5b506019546103d4906001600160a01b031681565b3480156108bd57600080fd5b506102fb6108cc366004613b17565b611c59565b3480156108dd57600080fd5b506102fb611c8b565b3480156108f257600080fd5b5060145461031d90610100900460ff1681565b34801561091157600080fd5b506102fb61092036600461372e565b611cce565b34801561093157600080fd5b5061038761094036600461372e565b611d02565b6102fb610953366004613b76565b611d0d565b6102fb610966366004613bd3565b61205c565b34801561097757600080fd5b5061098b61098636600461378f565b6121e6565b6040516103299190613c5e565b3480156109a457600080fd5b5061041d60155481565b3480156109ba57600080fd5b506102fb6109c936600461384f565b6122a2565b3480156109da57600080fd5b5061031d6109e9366004613ca2565b6122ed565b3480156109fa57600080fd5b5061041d60135481565b348015610a1057600080fd5b506102fb610a1f366004613cdb565b61231b565b348015610a3057600080fd5b506102fb610a3f36600461378f565b612368565b348015610a5057600080fd5b5061041d60165481565b348015610a6657600080fd5b5061041d610a7536600461378f565b601d6020526000908152604090205481565b348015610a9357600080fd5b5061041d610aa236600461378f565b601e6020526000908152604090205481565b600c546001600160a01b03163314610acb57600080fd5b61ffff84166000908152600e602052604090208054610ae990613d2d565b90508351148015610b28575061ffff84166000908152600e6020526040908190209051610b169190613d62565b60405180910390208380519060200120145b610b965760405162461bcd60e51b815260206004820152603460248201527f4e6f6e626c6f636b696e6752656365697665723a20696e76616c696420736f756044820152731c98d9481cd95b991a5b99c818dbdb9d1c9858dd60621b60648201526084015b60405180910390fd5b604051630e1bd41160e11b81523090631c37a82290610bbf908790879087908790600401613dd4565b600060405180830381600087803b158015610bd957600080fd5b505af1925050508015610bea575060015b610ca8576040518060400160405280825181526020018280519060200120815250600d60008661ffff1661ffff16815260200190815260200160002084604051610c349190613e12565b9081526040805191829003602090810183206001600160401b038716600090815290825291909120835181559201516001909201919091557fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d90610c9f908690869086908690613dd4565b60405180910390a15b50505050565b6000610cb982612405565b92915050565b60006001600160e01b0319821663152a902d60e11b1480610cb95750610cb982612422565b33610ced611877565b6001600160a01b031614610d135760405162461bcd60e51b8152600401610b8d90613e2e565b601980546001600160a01b0319166001600160a01b0392909216919091179055565b606060008054610d4490613d2d565b80601f0160208091040260200160405190810160405280929190818152602001828054610d7090613d2d565b8015610dbd5780601f10610d9257610100808354040283529160200191610dbd565b820191906000526020600020905b815481529060010190602001808311610da057829003601f168201915b5050505050905090565b33610dd0611877565b6001600160a01b031614610df65760405162461bcd60e51b8152600401610b8d90613e2e565b60148054911515620100000262ff000019909216919091179055565b6000610e1d82612405565b610e7e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b8d565b506000908152600460205260409020546001600160a01b031690565b6000610ea58261153b565b9050806001600160a01b0316836001600160a01b03161415610f135760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b8d565b336001600160a01b0382161480610f2f5750610f2f81336122ed565b610f9c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610b8d565b610fa68383612447565b505050565b33301461100e5760405162461bcd60e51b815260206004820152602b60248201527f4e6f6e626c6f636b696e6752656365697665723a2063616c6c6572206d75737460448201526a10313290213934b233b29760a91b6064820152608401610b8d565b610ca8848484846124b5565b611025335b826124e2565b6110415760405162461bcd60e51b8152600401610b8d90613e63565b610fa68383836125ac565b33611055611877565b6001600160a01b03161461107b5760405162461bcd60e51b8152600401610b8d90613e2e565b60005b8251811015610fa6576110aa8284838151811061109d5761109d613eb4565b6020026020010151612745565b806110b481613ee0565b91505061107e565b601954601b5460009182916001600160a01b0390911690612710906110e19086613efb565b6110eb9190613f30565b915091505b9250929050565b600061110283611640565b82106111645760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610b8d565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b33611196611877565b6001600160a01b0316146111bc5760405162461bcd60e51b8152600401610b8d90613e2e565b6103e88161ffff1611156112255760405162461bcd60e51b815260206004820152602a60248201527f526f79616c7479206d757374206265206c6f776572207468616e206f7220657160448201526975616c20746f2031302560b01b6064820152608401610b8d565b61ffff16601b55565b33611237611877565b6001600160a01b03161461125d5760405162461bcd60e51b8152600401610b8d90613e2e565b600081511161127e5760405162461bcd60e51b8152600401610b8d90613f44565b60005b81518110156112df576000601d60008484815181106112a2576112a2613eb4565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002081905550806112d890613ee0565b9050611281565b5050565b336112ec611877565b6001600160a01b0316146113125760405162461bcd60e51b8152600401610b8d90613e2e565b61131b81612808565b50565b610fa683838360405180602001604052806000815250611c59565b6113423361101f565b6113a75760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610b8d565b61131b8161282b565b336113b9611877565b6001600160a01b0316146113df5760405162461bcd60e51b8152600401610b8d90613e2e565b601480549115156101000261ff0019909216919091179055565b33611402611877565b6001600160a01b0316146114285760405162461bcd60e51b8152600401610b8d90613e2e565b6112df8282612834565b3361143b611877565b6001600160a01b0316146114615760405162461bcd60e51b8152600401610b8d90613e2e565b601755565b600061147160085490565b82106114d45760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610b8d565b600882815481106114e7576114e7613eb4565b90600052602060002001549050919050565b33611502611877565b6001600160a01b0316146115285760405162461bcd60e51b8152600401610b8d90613e2e565b80516112df906012906020840190613484565b6000818152600260205260408120546001600160a01b031680610cb95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610b8d565b601280546115bf90613d2d565b80601f01602080910402602001604051908101604052809291908181526020018280546115eb90613d2d565b80156116385780601f1061160d57610100808354040283529160200191611638565b820191906000526020600020905b81548152906001019060200180831161161b57829003601f168201915b505050505081565b60006001600160a01b0382166116ab5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b8d565b506001600160a01b031660009081526003602052604090205490565b336116d0611877565b6001600160a01b0316146116f65760405162461bcd60e51b8152600401610b8d90613e2e565b611700600061283e565b565b600e60205260009081526040902080546115bf90613d2d565b33611724611877565b6001600160a01b03161461174a5760405162461bcd60e51b8152600401610b8d90613e2e565b600082511161176b5760405162461bcd60e51b8152600401610b8d90613f44565b60005b8251811015610fa65760006001600160a01b031683828151811061179457611794613eb4565b60200260200101516001600160a01b031614156117ea5760405162461bcd60e51b815260206004820152601460248201527320b2323932b9b99031b0b73737ba10313290181760611b6044820152606401610b8d565b81601d600085848151811061180157611801613eb4565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055508061183790613ee0565b905061176e565b33611847611877565b6001600160a01b03161461186d5760405162461bcd60e51b8152600401610b8d90613e2e565b6112df8282612890565b600b546001600160a01b031690565b3361188f611877565b6001600160a01b0316146118b55760405162461bcd60e51b8152600401610b8d90613e2e565b601855565b336118c3611877565b6001600160a01b0316146118e95760405162461bcd60e51b8152600401610b8d90613e2e565b601c55565b606060018054610d4490613d2d565b600061190860085490565b60145490915060ff6101009091041615156001146119765760405162461bcd60e51b815260206004820152602560248201527f4861756e74656420426974576974636865733a206d696e74696e6720697320636044820152641b1bdcd95960da1b6064820152608401610b8d565b60155460016119858484613f72565b61198f9190613f8a565b106119ee5760405162461bcd60e51b815260206004820152602960248201527f4572726f723a2063616e6e6f74206d696e74206d6f7265207468616e20746f74604482015268616c20737570706c7960b81b6064820152608401610b8d565b600082118015611a0057506016548211155b611a465760405162461bcd60e51b8152602060048201526017602482015276115c9c9bdc8e881b585e081c185c881d1e081b1a5b5a5d604a1b6044820152606401610b8d565b601754611a5233611640565b611a5d906001613f72565b1115611aaa5760405162461bcd60e51b815260206004820152601c60248201527b115c9c9bdc8e881b585e081c195c881859191c995cdcc81b1a5b5a5d60221b6044820152606401610b8d565b81601854611ab89190613efb565b3414611afd5760405162461bcd60e51b81526020600482015260146024820152734572726f723a20696e76616c696420707269636560601b6044820152606401610b8d565b60145460ff1615611b8d57336000908152601d6020526040902054821115611b8d5760405162461bcd60e51b815260206004820152603d60248201527f4572726f723a20796f7520617265206e6f742077686974656c6973746564206f60448201527f7220616d6f756e7420697320686967686572207468616e206c696d69740000006064820152608401610b8d565b336000908152601e6020526040812054905b83811015611c0157611bb033612808565b611bbb600183613f72565b60145490925060ff1615611bef57336000908152601d60205260408120805460019290611be9908490613f8a565b90915550505b80611bf981613ee0565b915050611b9f565b50336000908152601e6020526040808220839055601a5490516001600160a01b0391909116913480156108fc02929091818181858888f19350505050158015610ca8573d6000803e3d6000fd5b6112df33838361291b565b611c6333836124e2565b611c7f5760405162461bcd60e51b8152600401610b8d90613e63565b610ca8848484846129e6565b33611c94611877565b6001600160a01b031614611cba5760405162461bcd60e51b8152600401610b8d90613e2e565b6014805460ff19811660ff90911615179055565b33611cd7611877565b6001600160a01b031614611cfd5760405162461bcd60e51b8152600401610b8d90613e2e565b601655565b6060610cb982612a19565b60145462010000900460ff161515600114611d7b5760405162461bcd60e51b815260206004820152602860248201527f4861756e74656420426974576974636865733a2074726176657273696e6720696044820152671cc818db1bdcd95960c21b6064820152608401610b8d565b611d848161153b565b6001600160a01b0316336001600160a01b031614611def5760405162461bcd60e51b815260206004820152602260248201527f596f75206d757374206f776e2074686520746f6b656e20746f20747261766572604482015261736560f01b6064820152608401610b8d565b61ffff82166000908152600e602052604081208054611e0d90613d2d565b905011611e735760405162461bcd60e51b815260206004820152602e60248201527f5468697320636861696e2069732063757272656e746c7920756e617661696c6160448201526d189b1948199bdc881d1c985d995b60921b6064820152608401610b8d565b611e7c8161282b565b60003382604051602001611e919291906139aa565b60408051601f1981840301815290829052601c54600160f01b60208401526022830152915060019060009060420160408051601f1981840301815290829052600c5463040a7bb160e41b83529092506000916001600160a01b03909116906340a7bb1090611f0b9089903090899087908990600401613fa1565b6040805180830381865afa158015611f27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f4b9190613ff5565b50905080341015611fd75760405162461bcd60e51b815260206004820152604a60248201527f4572726f723a206d73672e76616c7565206e6f7420656e6f75676820746f206360448201527f6f766572206d6573736167654665652e2053656e642067617320666f72206d656064820152697373616765206665657360b01b608482015260a401610b8d565b600c5461ffff87166000908152600e6020526040808220905162c5803160e81b81526001600160a01b039093169263c5803100923492612022928c928b913391908b90600401614019565b6000604051808303818588803b15801561203b57600080fd5b505af115801561204f573d6000803e3d6000fd5b5050505050505050505050565b61ffff85166000908152600d6020526040808220905161207d908790613e12565b90815260408051602092819003830190206001600160401b03871660009081529252902060018101549091506121045760405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e6752656365697665723a206e6f2073746f726564206d60448201526565737361676560d01b6064820152608401610b8d565b80548214801561212e5750806001015483836040516121249291906140ef565b6040518091039020145b6121775760405162461bcd60e51b815260206004820152601a60248201527913185e595c96995c9bce881a5b9d985b1a59081c185e5b1bd85960321b6044820152606401610b8d565b60008082556001820155604051630e1bd41160e11b81523090631c37a822906121ac90899089908990899089906004016140ff565b600060405180830381600087803b1580156121c657600080fd5b505af11580156121da573d6000803e3d6000fd5b50505050505050505050565b606060006121f383611640565b9050806122145760408051600080825260208201909252905b509392505050565b6000816001600160401b0381111561222e5761222e6135de565b604051908082528060200260200182016040528015612257578160200160208202803683370190505b50905060005b8281101561220c5761226f85826110f7565b82828151811061228157612281613eb4565b602090810291909101015261229581613ee0565b905061225d565b50919050565b336122ab611877565b6001600160a01b0316146122d15760405162461bcd60e51b8152600401610b8d90613e2e565b6001600160a01b039091166000908152601d6020526040902055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b33612324611877565b6001600160a01b03161461234a5760405162461bcd60e51b8152600401610b8d90613e2e565b61ffff83166000908152600e60205260409020610ca8908383613508565b33612371611877565b6001600160a01b0316146123975760405162461bcd60e51b8152600401610b8d90613e2e565b6001600160a01b0381166123fc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b8d565b61131b8161283e565b6000908152600260205260409020546001600160a01b0316151590565b60006001600160e01b0319821663780e9d6360e01b1480610cb95750610cb982612b7b565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061247c8261153b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080828060200190518101906124cc9190614160565b915091506124da8282612bcb565b505050505050565b60006124ed82612405565b61254e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b8d565b60006125598361153b565b9050806001600160a01b0316846001600160a01b031614806125945750836001600160a01b031661258984610e12565b6001600160a01b0316145b806125a457506125a481856122ed565b949350505050565b826001600160a01b03166125bf8261153b565b6001600160a01b0316146126275760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610b8d565b6001600160a01b0382166126895760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b8d565b612694838383612be5565b61269f600082612447565b6001600160a01b03831660009081526003602052604081208054600192906126c8908490613f8a565b90915550506001600160a01b03821660009081526003602052604081208054600192906126f6908490613f72565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03868116918217909255915184939187169160008051602061429483398151915291a4505050565b6013548261275260115490565b61275c9190613f72565b11156127cb5760405162461bcd60e51b815260206004820152603860248201527f4861756e74656420426974576974636865733a206e6f7420656e6f75676820776044820152771a5d18da195cc81b19599d081d1bc81899481b5a5b9d195960421b6064820152608401610b8d565b60005b82811015610fa6576127e8826127e360115490565b612bcb565b6127f6601180546001019055565b8061280081613ee0565b9150506127ce565b6000601354612815612bf0565b61281f9190613f72565b90506112df8282612bcb565b61131b81612cf7565b6112df8282612bcb565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61289982612405565b6128fc5760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610b8d565b6000828152600a602090815260409091208251610fa692840190613484565b816001600160a01b0316836001600160a01b031614156129795760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610b8d565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6129f18484846125ac565b6129fd84848484612d37565b610ca85760405162461bcd60e51b8152600401610b8d9061418e565b6060612a2482612405565b612a8a5760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b6064820152608401610b8d565b6000828152600a602052604081208054612aa390613d2d565b80601f0160208091040260200160405190810160405280929190818152602001828054612acf90613d2d565b8015612b1c5780601f10612af157610100808354040283529160200191612b1c565b820191906000526020600020905b815481529060010190602001808311612aff57829003601f168201915b505050505090506000612b2d612e35565b9050805160001415612b40575092915050565b815115612b72578082604051602001612b5a9291906141e0565b60405160208183030381529060405292505050919050565b6125a484612e44565b60006001600160e01b031982166380ac58cd60e01b1480612bac57506001600160e01b03198216635b5e139f60e01b145b80610cb957506301ffc9a760e01b6001600160e01b0319831614610cb9565b6112df828260405180602001604052806000815250612f0f565b610fa6838383612f42565b600080600f547f0000000000000000000000000000000000000000000000000000000000000000612c219190613f8a565b9050600080600083612c31612ffa565b612c3b919061420f565b905060106000612c4c600187613f8a565b81526020019081526020016000205460001415612c7557612c6e600185613f8a565b9250612c96565b60106000612c84600187613f8a565b81526020019081526020016000205492505b600081815260106020526040902054612cc2576000818152601060205260409020839055905080612cd9565b600081815260106020526040902080549084905591505b600f8054906000612ce983613ee0565b909155509195945050505050565b612d0081613036565b6000818152600a602052604090208054612d1990613d2d565b15905061131b576000818152600a6020526040812061131b9161357c565b60006001600160a01b0384163b15612e2a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612d7b903390899088908890600401614223565b6020604051808303816000875af1925050508015612db6575060408051601f3d908101601f19168201909252612db391810190614260565b60015b612e10573d808015612de4576040519150601f19603f3d011682016040523d82523d6000602084013e612de9565b606091505b508051612e085760405162461bcd60e51b8152600401610b8d9061418e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506125a4565b506001949350505050565b606060128054610d4490613d2d565b6060612e4f82612405565b612eb35760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b8d565b6000612ebd612e35565b90506000815111612edd5760405180602001604052806000815250612f08565b80612ee7846130cb565b604051602001612ef89291906141e0565b6040516020818303038152906040525b9392505050565b612f1983836131c8565b612f266000848484612d37565b610fa65760405162461bcd60e51b8152600401610b8d9061418e565b6001600160a01b038316612f9d57612f9881600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612fc0565b816001600160a01b0316836001600160a01b031614612fc057612fc083826132f4565b6001600160a01b038216612fd757610fa681613391565b826001600160a01b0316826001600160a01b031614610fa657610fa68282613440565b60004442604051602001613018929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c905090565b60006130418261153b565b905061304f81600084612be5565b61305a600083612447565b6001600160a01b0381166000908152600360205260408120805460019290613083908490613f8a565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b03841690600080516020614294833981519152908390a45050565b6060816130ef5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613119578061310381613ee0565b91506131129050600a83613f30565b91506130f3565b6000816001600160401b03811115613133576131336135de565b6040519080825280601f01601f19166020018201604052801561315d576020820181803683370190505b5090505b84156125a457613172600183613f8a565b915061317f600a8661420f565b61318a906030613f72565b60f81b81838151811061319f5761319f613eb4565b60200101906001600160f81b031916908160001a9053506131c1600a86613f30565b9450613161565b6001600160a01b03821661321e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b8d565b61322781612405565b156132735760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b6044820152606401610b8d565b61327f60008383612be5565b6001600160a01b03821660009081526003602052604081208054600192906132a8908490613f72565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386169081179091559051839290600080516020614294833981519152908290a45050565b6000600161330184611640565b61330b9190613f8a565b60008381526007602052604090205490915080821461335e576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906133a390600190613f8a565b600083815260096020526040812054600880549394509092849081106133cb576133cb613eb4565b9060005260206000200154905080600883815481106133ec576133ec613eb4565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806134245761342461427d565b6001900381819060005260206000200160009055905550505050565b600061344b83611640565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b82805461349090613d2d565b90600052602060002090601f0160209004810192826134b257600085556134f8565b82601f106134cb57805160ff19168380011785556134f8565b828001600101855582156134f8579182015b828111156134f85782518255916020019190600101906134dd565b506135049291506135b2565b5090565b82805461351490613d2d565b90600052602060002090601f01602090048101928261353657600085556134f8565b82601f1061354f5782800160ff198235161785556134f8565b828001600101855582156134f8579182015b828111156134f8578235825591602001919060010190613561565b50805461358890613d2d565b6000825580601f10613598575050565b601f01602090049060005260206000209081019061131b91905b5b8082111561350457600081556001016135b3565b803561ffff811681146135d957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561361c5761361c6135de565b604052919050565b600082601f83011261363557600080fd5b81356001600160401b0381111561364e5761364e6135de565b613661601f8201601f19166020016135f4565b81815284602083860101111561367657600080fd5b816020850160208301376000918101602001919091529392505050565b80356001600160401b03811681146135d957600080fd5b600080600080608085870312156136c057600080fd5b6136c9856135c7565b935060208501356001600160401b03808211156136e557600080fd5b6136f188838901613624565b94506136ff60408801613693565b9350606087013591508082111561371557600080fd5b5061372287828801613624565b91505092959194509250565b60006020828403121561374057600080fd5b5035919050565b6001600160e01b03198116811461131b57600080fd5b60006020828403121561376f57600080fd5b8135612f0881613747565b6001600160a01b038116811461131b57600080fd5b6000602082840312156137a157600080fd5b8135612f088161377a565b60005b838110156137c75781810151838201526020016137af565b83811115610ca85750506000910152565b600081518084526137f08160208601602086016137ac565b601f01601f19169290920160200192915050565b602081526000612f0860208301846137d8565b803580151581146135d957600080fd5b60006020828403121561383957600080fd5b612f0882613817565b6001600160a01b03169052565b6000806040838503121561386257600080fd5b823561386d8161377a565b946020939093013593505050565b60008060006060848603121561389057600080fd5b833561389b8161377a565b925060208401356138ab8161377a565b929592945050506040919091013590565b600082601f8301126138cd57600080fd5b813560206001600160401b038211156138e8576138e86135de565b8160051b6138f78282016135f4565b928352848101820192828101908785111561391157600080fd5b83870192505b8483101561393957823561392a8161377a565b82529183019190830190613917565b979650505050505050565b6000806040838503121561395757600080fd5b82356001600160401b0381111561396d57600080fd5b613979858286016138bc565b95602094909401359450505050565b6000806040838503121561399b57600080fd5b50508035926020909101359150565b6001600160a01b03929092168252602082015260400190565b6000602082840312156139d557600080fd5b612f08826135c7565b6000602082840312156139f057600080fd5b81356001600160401b03811115613a0657600080fd5b6125a4848285016138bc565b600060208284031215613a2457600080fd5b81356001600160401b03811115613a3a57600080fd5b6125a484828501613624565b60008060408385031215613a5957600080fd5b8235915060208301356001600160401b03811115613a7657600080fd5b613a8285828601613624565b9150509250929050565b600080600060608486031215613aa157600080fd5b613aaa846135c7565b925060208401356001600160401b03811115613ac557600080fd5b613ad186828701613624565b925050604084013590509250925092565b60008060408385031215613af557600080fd5b8235613b008161377a565b9150613b0e60208401613817565b90509250929050565b60008060008060808587031215613b2d57600080fd5b8435613b388161377a565b93506020850135613b488161377a565b92506040850135915060608501356001600160401b03811115613b6a57600080fd5b61372287828801613624565b60008060408385031215613b8957600080fd5b61386d836135c7565b60008083601f840112613ba457600080fd5b5081356001600160401b03811115613bbb57600080fd5b6020830191508360208285010111156110f057600080fd5b600080600080600060808688031215613beb57600080fd5b613bf4866135c7565b945060208601356001600160401b0380821115613c1057600080fd5b613c1c89838a01613624565b9550613c2a60408901613693565b94506060880135915080821115613c4057600080fd5b50613c4d88828901613b92565b969995985093965092949392505050565b6020808252825182820181905260009190848201906040850190845b81811015613c9657835183529284019291840191600101613c7a565b50909695505050505050565b60008060408385031215613cb557600080fd5b8235613cc08161377a565b91506020830135613cd08161377a565b809150509250929050565b600080600060408486031215613cf057600080fd5b613cf9846135c7565b925060208401356001600160401b03811115613d1457600080fd5b613d2086828701613b92565b9497909650939450505050565b600181811c90821680613d4157607f821691505b6020821081141561229c57634e487b7160e01b600052602260045260246000fd5b6000808354613d7081613d2d565b60018281168015613d885760018114613d9957613dc8565b60ff19841687528287019450613dc8565b8760005260208060002060005b85811015613dbf5781548a820152908401908201613da6565b50505082870194505b50929695505050505050565b61ffff85168152608060208201526000613df160808301866137d8565b6001600160401b0385166040840152828103606084015261393981856137d8565b60008251613e248184602087016137ac565b9190910192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415613ef457613ef4613eca565b5060010190565b6000816000190483118215151615613f1557613f15613eca565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613f3f57613f3f613f1a565b500490565b6020808252601490820152734572726f723a206c69737420697320656d70747960601b604082015260600190565b60008219821115613f8557613f85613eca565b500190565b600082821015613f9c57613f9c613eca565b500390565b61ffff861681526001600160a01b038516602082015260a060408201819052600090613fcf908301866137d8565b84151560608401528281036080840152613fe981856137d8565b98975050505050505050565b6000806040838503121561400857600080fd5b505080516020909101519092909150565b61ffff871681526000602060c0818401526000885461403781613d2d565b8060c087015260e0600180841660008114614059576001811461406e5761409c565b60ff198516898401526101008901955061409c565b8d6000528660002060005b858110156140945781548b8201860152908301908801614079565b8a0184019650505b505050505083810360408501526140b381896137d8565b9150506140c36060840187613842565b6140d06080840186613842565b82810360a08401526140e281856137d8565b9998505050505050505050565b8183823760009101908152919050565b61ffff8616815260806020820152600061411c60808301876137d8565b6001600160401b03861660408401528281036060840152838152838560208301376000602085830101526020601f19601f8601168201019150509695505050505050565b6000806040838503121561417357600080fd5b825161417e8161377a565b6020939093015192949293505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600083516141f28184602088016137ac565b8351908301906142068183602088016137ac565b01949350505050565b60008261421e5761421e613f1a565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614256908301846137d8565b9695505050505050565b60006020828403121561427257600080fd5b8151612f0881613747565b634e487b7160e01b600052603160045260246000fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220d5eb4afdfc6b9dc880e30f0c97860b8881345c6e56b4f648cc76dbd81ab2d4c164736f6c634300080a0033000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000016345785d8a000000000000000000000000000000000000000000000000000000000000000000140000000000000000000000007dcad72640f835b0fa36efd3d6d3ec902c7e5acf000000000000000000000000000000000000000000000000000000000000000a

Deployed Bytecode

0x6080604052600436106102d65760003560e01c8063768d713811610182578063768d7138146106ce5780637e0586f1146106e4578063862440e2146107045780638da5cb5b146107245780638ee74912146107395780639186b425146107a457806391b7f5ed146107be578063943fb872146107de57806395d89b41146107fe57806398d5fdca14610813578063a035b1fe14610828578063a0712d681461083e578063a1a2f92714610851578063a22cb46514610871578063ad2f852a14610891578063b88d4fde146108b1578063b9bfa0bc146108d1578063bce6d672146108e6578063c6f6f21614610905578063c87b56dd14610925578063cf89fa0314610945578063d1deba1f14610958578063d2f8dd451461096b578063d5abeb0114610998578063e054ffc3146109ae578063e985e9c5146109ce578063ea52e55b146109ee578063eb8d72b714610a04578063f2fde38b14610a24578063f968adbe14610a44578063fa0fca8414610a5a578063fddcb5ea14610a8757600080fd5b80621d3567146102db578062923f9e146102fd57806301ffc9a71461033257806306d254da1461035257806306fdde031461037257806307eb4ac214610394578063081812fc146103b4578063095ea7b3146103ec57806318160ddd1461040c5780631c37a8221461042b57806323b872dd1461044b57806329413b121461046b57806329ee566c1461048b5780632a55205a146104a15780632f745c59146104cf5780633075f552146104ef57806336e79a5a14610504578063397457911461052457806340d097c31461054457806342842e0e1461056457806342966c6814610584578063429ff28d146105a45780634389de9a146105c4578063483efda2146105e45780634f6ccce71461060457806355f804b3146106245780636352211e146106445780636c0360eb1461066457806370a0823114610679578063715018a6146106995780637533d788146106ae575b600080fd5b3480156102e757600080fd5b506102fb6102f63660046136aa565b610ab4565b005b34801561030957600080fd5b5061031d61031836600461372e565b610cae565b60405190151581526020015b60405180910390f35b34801561033e57600080fd5b5061031d61034d36600461375d565b610cbf565b34801561035e57600080fd5b506102fb61036d36600461378f565b610ce4565b34801561037e57600080fd5b50610387610d35565b6040516103299190613804565b3480156103a057600080fd5b506102fb6103af366004613827565b610dc7565b3480156103c057600080fd5b506103d46103cf36600461372e565b610e12565b6040516001600160a01b039091168152602001610329565b3480156103f857600080fd5b506102fb61040736600461384f565b610e9a565b34801561041857600080fd5b506008545b604051908152602001610329565b34801561043757600080fd5b506102fb6104463660046136aa565b610fab565b34801561045757600080fd5b506102fb61046636600461387b565b61101a565b34801561047757600080fd5b506102fb610486366004613944565b61104c565b34801561049757600080fd5b5061041d601b5481565b3480156104ad57600080fd5b506104c16104bc366004613988565b6110bc565b6040516103299291906139aa565b3480156104db57600080fd5b5061041d6104ea36600461384f565b6110f7565b3480156104fb57600080fd5b5060155461041d565b34801561051057600080fd5b506102fb61051f3660046139c3565b61118d565b34801561053057600080fd5b506102fb61053f3660046139de565b61122e565b34801561055057600080fd5b506102fb61055f36600461378f565b6112e3565b34801561057057600080fd5b506102fb61057f36600461387b565b61131e565b34801561059057600080fd5b506102fb61059f36600461372e565b611339565b3480156105b057600080fd5b506102fb6105bf366004613827565b6113b0565b3480156105d057600080fd5b506102fb6105df36600461384f565b6113f9565b3480156105f057600080fd5b506102fb6105ff36600461372e565b611432565b34801561061057600080fd5b5061041d61061f36600461372e565b611466565b34801561063057600080fd5b506102fb61063f366004613a12565b6114f9565b34801561065057600080fd5b506103d461065f36600461372e565b61153b565b34801561067057600080fd5b506103876115b2565b34801561068557600080fd5b5061041d61069436600461378f565b611640565b3480156106a557600080fd5b506102fb6116c7565b3480156106ba57600080fd5b506103876106c93660046139c3565b611702565b3480156106da57600080fd5b5061041d60175481565b3480156106f057600080fd5b506102fb6106ff366004613944565b61171b565b34801561071057600080fd5b506102fb61071f366004613a46565b61183e565b34801561073057600080fd5b506103d4611877565b34801561074557600080fd5b5061078f610754366004613a8c565b600d60209081526000938452604080852084518086018401805192815290840195840195909520945292905282529020805460019091015482565b60408051928352602083019190915201610329565b3480156107b057600080fd5b5060145461031d9060ff1681565b3480156107ca57600080fd5b506102fb6107d936600461372e565b611886565b3480156107ea57600080fd5b506102fb6107f936600461372e565b6118ba565b34801561080a57600080fd5b506103876118ee565b34801561081f57600080fd5b5060185461041d565b34801561083457600080fd5b5061041d60185481565b6102fb61084c36600461372e565b6118fd565b34801561085d57600080fd5b5060145461031d9062010000900460ff1681565b34801561087d57600080fd5b506102fb61088c366004613ae2565b611c4e565b34801561089d57600080fd5b506019546103d4906001600160a01b031681565b3480156108bd57600080fd5b506102fb6108cc366004613b17565b611c59565b3480156108dd57600080fd5b506102fb611c8b565b3480156108f257600080fd5b5060145461031d90610100900460ff1681565b34801561091157600080fd5b506102fb61092036600461372e565b611cce565b34801561093157600080fd5b5061038761094036600461372e565b611d02565b6102fb610953366004613b76565b611d0d565b6102fb610966366004613bd3565b61205c565b34801561097757600080fd5b5061098b61098636600461378f565b6121e6565b6040516103299190613c5e565b3480156109a457600080fd5b5061041d60155481565b3480156109ba57600080fd5b506102fb6109c936600461384f565b6122a2565b3480156109da57600080fd5b5061031d6109e9366004613ca2565b6122ed565b3480156109fa57600080fd5b5061041d60135481565b348015610a1057600080fd5b506102fb610a1f366004613cdb565b61231b565b348015610a3057600080fd5b506102fb610a3f36600461378f565b612368565b348015610a5057600080fd5b5061041d60165481565b348015610a6657600080fd5b5061041d610a7536600461378f565b601d6020526000908152604090205481565b348015610a9357600080fd5b5061041d610aa236600461378f565b601e6020526000908152604090205481565b600c546001600160a01b03163314610acb57600080fd5b61ffff84166000908152600e602052604090208054610ae990613d2d565b90508351148015610b28575061ffff84166000908152600e6020526040908190209051610b169190613d62565b60405180910390208380519060200120145b610b965760405162461bcd60e51b815260206004820152603460248201527f4e6f6e626c6f636b696e6752656365697665723a20696e76616c696420736f756044820152731c98d9481cd95b991a5b99c818dbdb9d1c9858dd60621b60648201526084015b60405180910390fd5b604051630e1bd41160e11b81523090631c37a82290610bbf908790879087908790600401613dd4565b600060405180830381600087803b158015610bd957600080fd5b505af1925050508015610bea575060015b610ca8576040518060400160405280825181526020018280519060200120815250600d60008661ffff1661ffff16815260200190815260200160002084604051610c349190613e12565b9081526040805191829003602090810183206001600160401b038716600090815290825291909120835181559201516001909201919091557fe6f254030bcb01ffd20558175c13fcaed6d1520be7becee4c961b65f79243b0d90610c9f908690869086908690613dd4565b60405180910390a15b50505050565b6000610cb982612405565b92915050565b60006001600160e01b0319821663152a902d60e11b1480610cb95750610cb982612422565b33610ced611877565b6001600160a01b031614610d135760405162461bcd60e51b8152600401610b8d90613e2e565b601980546001600160a01b0319166001600160a01b0392909216919091179055565b606060008054610d4490613d2d565b80601f0160208091040260200160405190810160405280929190818152602001828054610d7090613d2d565b8015610dbd5780601f10610d9257610100808354040283529160200191610dbd565b820191906000526020600020905b815481529060010190602001808311610da057829003601f168201915b5050505050905090565b33610dd0611877565b6001600160a01b031614610df65760405162461bcd60e51b8152600401610b8d90613e2e565b60148054911515620100000262ff000019909216919091179055565b6000610e1d82612405565b610e7e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b8d565b506000908152600460205260409020546001600160a01b031690565b6000610ea58261153b565b9050806001600160a01b0316836001600160a01b03161415610f135760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b8d565b336001600160a01b0382161480610f2f5750610f2f81336122ed565b610f9c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610b8d565b610fa68383612447565b505050565b33301461100e5760405162461bcd60e51b815260206004820152602b60248201527f4e6f6e626c6f636b696e6752656365697665723a2063616c6c6572206d75737460448201526a10313290213934b233b29760a91b6064820152608401610b8d565b610ca8848484846124b5565b611025335b826124e2565b6110415760405162461bcd60e51b8152600401610b8d90613e63565b610fa68383836125ac565b33611055611877565b6001600160a01b03161461107b5760405162461bcd60e51b8152600401610b8d90613e2e565b60005b8251811015610fa6576110aa8284838151811061109d5761109d613eb4565b6020026020010151612745565b806110b481613ee0565b91505061107e565b601954601b5460009182916001600160a01b0390911690612710906110e19086613efb565b6110eb9190613f30565b915091505b9250929050565b600061110283611640565b82106111645760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610b8d565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b33611196611877565b6001600160a01b0316146111bc5760405162461bcd60e51b8152600401610b8d90613e2e565b6103e88161ffff1611156112255760405162461bcd60e51b815260206004820152602a60248201527f526f79616c7479206d757374206265206c6f776572207468616e206f7220657160448201526975616c20746f2031302560b01b6064820152608401610b8d565b61ffff16601b55565b33611237611877565b6001600160a01b03161461125d5760405162461bcd60e51b8152600401610b8d90613e2e565b600081511161127e5760405162461bcd60e51b8152600401610b8d90613f44565b60005b81518110156112df576000601d60008484815181106112a2576112a2613eb4565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002081905550806112d890613ee0565b9050611281565b5050565b336112ec611877565b6001600160a01b0316146113125760405162461bcd60e51b8152600401610b8d90613e2e565b61131b81612808565b50565b610fa683838360405180602001604052806000815250611c59565b6113423361101f565b6113a75760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610b8d565b61131b8161282b565b336113b9611877565b6001600160a01b0316146113df5760405162461bcd60e51b8152600401610b8d90613e2e565b601480549115156101000261ff0019909216919091179055565b33611402611877565b6001600160a01b0316146114285760405162461bcd60e51b8152600401610b8d90613e2e565b6112df8282612834565b3361143b611877565b6001600160a01b0316146114615760405162461bcd60e51b8152600401610b8d90613e2e565b601755565b600061147160085490565b82106114d45760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610b8d565b600882815481106114e7576114e7613eb4565b90600052602060002001549050919050565b33611502611877565b6001600160a01b0316146115285760405162461bcd60e51b8152600401610b8d90613e2e565b80516112df906012906020840190613484565b6000818152600260205260408120546001600160a01b031680610cb95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610b8d565b601280546115bf90613d2d565b80601f01602080910402602001604051908101604052809291908181526020018280546115eb90613d2d565b80156116385780601f1061160d57610100808354040283529160200191611638565b820191906000526020600020905b81548152906001019060200180831161161b57829003601f168201915b505050505081565b60006001600160a01b0382166116ab5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b8d565b506001600160a01b031660009081526003602052604090205490565b336116d0611877565b6001600160a01b0316146116f65760405162461bcd60e51b8152600401610b8d90613e2e565b611700600061283e565b565b600e60205260009081526040902080546115bf90613d2d565b33611724611877565b6001600160a01b03161461174a5760405162461bcd60e51b8152600401610b8d90613e2e565b600082511161176b5760405162461bcd60e51b8152600401610b8d90613f44565b60005b8251811015610fa65760006001600160a01b031683828151811061179457611794613eb4565b60200260200101516001600160a01b031614156117ea5760405162461bcd60e51b815260206004820152601460248201527320b2323932b9b99031b0b73737ba10313290181760611b6044820152606401610b8d565b81601d600085848151811061180157611801613eb4565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055508061183790613ee0565b905061176e565b33611847611877565b6001600160a01b03161461186d5760405162461bcd60e51b8152600401610b8d90613e2e565b6112df8282612890565b600b546001600160a01b031690565b3361188f611877565b6001600160a01b0316146118b55760405162461bcd60e51b8152600401610b8d90613e2e565b601855565b336118c3611877565b6001600160a01b0316146118e95760405162461bcd60e51b8152600401610b8d90613e2e565b601c55565b606060018054610d4490613d2d565b600061190860085490565b60145490915060ff6101009091041615156001146119765760405162461bcd60e51b815260206004820152602560248201527f4861756e74656420426974576974636865733a206d696e74696e6720697320636044820152641b1bdcd95960da1b6064820152608401610b8d565b60155460016119858484613f72565b61198f9190613f8a565b106119ee5760405162461bcd60e51b815260206004820152602960248201527f4572726f723a2063616e6e6f74206d696e74206d6f7265207468616e20746f74604482015268616c20737570706c7960b81b6064820152608401610b8d565b600082118015611a0057506016548211155b611a465760405162461bcd60e51b8152602060048201526017602482015276115c9c9bdc8e881b585e081c185c881d1e081b1a5b5a5d604a1b6044820152606401610b8d565b601754611a5233611640565b611a5d906001613f72565b1115611aaa5760405162461bcd60e51b815260206004820152601c60248201527b115c9c9bdc8e881b585e081c195c881859191c995cdcc81b1a5b5a5d60221b6044820152606401610b8d565b81601854611ab89190613efb565b3414611afd5760405162461bcd60e51b81526020600482015260146024820152734572726f723a20696e76616c696420707269636560601b6044820152606401610b8d565b60145460ff1615611b8d57336000908152601d6020526040902054821115611b8d5760405162461bcd60e51b815260206004820152603d60248201527f4572726f723a20796f7520617265206e6f742077686974656c6973746564206f60448201527f7220616d6f756e7420697320686967686572207468616e206c696d69740000006064820152608401610b8d565b336000908152601e6020526040812054905b83811015611c0157611bb033612808565b611bbb600183613f72565b60145490925060ff1615611bef57336000908152601d60205260408120805460019290611be9908490613f8a565b90915550505b80611bf981613ee0565b915050611b9f565b50336000908152601e6020526040808220839055601a5490516001600160a01b0391909116913480156108fc02929091818181858888f19350505050158015610ca8573d6000803e3d6000fd5b6112df33838361291b565b611c6333836124e2565b611c7f5760405162461bcd60e51b8152600401610b8d90613e63565b610ca8848484846129e6565b33611c94611877565b6001600160a01b031614611cba5760405162461bcd60e51b8152600401610b8d90613e2e565b6014805460ff19811660ff90911615179055565b33611cd7611877565b6001600160a01b031614611cfd5760405162461bcd60e51b8152600401610b8d90613e2e565b601655565b6060610cb982612a19565b60145462010000900460ff161515600114611d7b5760405162461bcd60e51b815260206004820152602860248201527f4861756e74656420426974576974636865733a2074726176657273696e6720696044820152671cc818db1bdcd95960c21b6064820152608401610b8d565b611d848161153b565b6001600160a01b0316336001600160a01b031614611def5760405162461bcd60e51b815260206004820152602260248201527f596f75206d757374206f776e2074686520746f6b656e20746f20747261766572604482015261736560f01b6064820152608401610b8d565b61ffff82166000908152600e602052604081208054611e0d90613d2d565b905011611e735760405162461bcd60e51b815260206004820152602e60248201527f5468697320636861696e2069732063757272656e746c7920756e617661696c6160448201526d189b1948199bdc881d1c985d995b60921b6064820152608401610b8d565b611e7c8161282b565b60003382604051602001611e919291906139aa565b60408051601f1981840301815290829052601c54600160f01b60208401526022830152915060019060009060420160408051601f1981840301815290829052600c5463040a7bb160e41b83529092506000916001600160a01b03909116906340a7bb1090611f0b9089903090899087908990600401613fa1565b6040805180830381865afa158015611f27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f4b9190613ff5565b50905080341015611fd75760405162461bcd60e51b815260206004820152604a60248201527f4572726f723a206d73672e76616c7565206e6f7420656e6f75676820746f206360448201527f6f766572206d6573736167654665652e2053656e642067617320666f72206d656064820152697373616765206665657360b01b608482015260a401610b8d565b600c5461ffff87166000908152600e6020526040808220905162c5803160e81b81526001600160a01b039093169263c5803100923492612022928c928b913391908b90600401614019565b6000604051808303818588803b15801561203b57600080fd5b505af115801561204f573d6000803e3d6000fd5b5050505050505050505050565b61ffff85166000908152600d6020526040808220905161207d908790613e12565b90815260408051602092819003830190206001600160401b03871660009081529252902060018101549091506121045760405162461bcd60e51b815260206004820152602660248201527f4e6f6e626c6f636b696e6752656365697665723a206e6f2073746f726564206d60448201526565737361676560d01b6064820152608401610b8d565b80548214801561212e5750806001015483836040516121249291906140ef565b6040518091039020145b6121775760405162461bcd60e51b815260206004820152601a60248201527913185e595c96995c9bce881a5b9d985b1a59081c185e5b1bd85960321b6044820152606401610b8d565b60008082556001820155604051630e1bd41160e11b81523090631c37a822906121ac90899089908990899089906004016140ff565b600060405180830381600087803b1580156121c657600080fd5b505af11580156121da573d6000803e3d6000fd5b50505050505050505050565b606060006121f383611640565b9050806122145760408051600080825260208201909252905b509392505050565b6000816001600160401b0381111561222e5761222e6135de565b604051908082528060200260200182016040528015612257578160200160208202803683370190505b50905060005b8281101561220c5761226f85826110f7565b82828151811061228157612281613eb4565b602090810291909101015261229581613ee0565b905061225d565b50919050565b336122ab611877565b6001600160a01b0316146122d15760405162461bcd60e51b8152600401610b8d90613e2e565b6001600160a01b039091166000908152601d6020526040902055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b33612324611877565b6001600160a01b03161461234a5760405162461bcd60e51b8152600401610b8d90613e2e565b61ffff83166000908152600e60205260409020610ca8908383613508565b33612371611877565b6001600160a01b0316146123975760405162461bcd60e51b8152600401610b8d90613e2e565b6001600160a01b0381166123fc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b8d565b61131b8161283e565b6000908152600260205260409020546001600160a01b0316151590565b60006001600160e01b0319821663780e9d6360e01b1480610cb95750610cb982612b7b565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061247c8261153b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080828060200190518101906124cc9190614160565b915091506124da8282612bcb565b505050505050565b60006124ed82612405565b61254e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b8d565b60006125598361153b565b9050806001600160a01b0316846001600160a01b031614806125945750836001600160a01b031661258984610e12565b6001600160a01b0316145b806125a457506125a481856122ed565b949350505050565b826001600160a01b03166125bf8261153b565b6001600160a01b0316146126275760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610b8d565b6001600160a01b0382166126895760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b8d565b612694838383612be5565b61269f600082612447565b6001600160a01b03831660009081526003602052604081208054600192906126c8908490613f8a565b90915550506001600160a01b03821660009081526003602052604081208054600192906126f6908490613f72565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03868116918217909255915184939187169160008051602061429483398151915291a4505050565b6013548261275260115490565b61275c9190613f72565b11156127cb5760405162461bcd60e51b815260206004820152603860248201527f4861756e74656420426974576974636865733a206e6f7420656e6f75676820776044820152771a5d18da195cc81b19599d081d1bc81899481b5a5b9d195960421b6064820152608401610b8d565b60005b82811015610fa6576127e8826127e360115490565b612bcb565b6127f6601180546001019055565b8061280081613ee0565b9150506127ce565b6000601354612815612bf0565b61281f9190613f72565b90506112df8282612bcb565b61131b81612cf7565b6112df8282612bcb565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61289982612405565b6128fc5760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610b8d565b6000828152600a602090815260409091208251610fa692840190613484565b816001600160a01b0316836001600160a01b031614156129795760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610b8d565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6129f18484846125ac565b6129fd84848484612d37565b610ca85760405162461bcd60e51b8152600401610b8d9061418e565b6060612a2482612405565b612a8a5760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b6064820152608401610b8d565b6000828152600a602052604081208054612aa390613d2d565b80601f0160208091040260200160405190810160405280929190818152602001828054612acf90613d2d565b8015612b1c5780601f10612af157610100808354040283529160200191612b1c565b820191906000526020600020905b815481529060010190602001808311612aff57829003601f168201915b505050505090506000612b2d612e35565b9050805160001415612b40575092915050565b815115612b72578082604051602001612b5a9291906141e0565b60405160208183030381529060405292505050919050565b6125a484612e44565b60006001600160e01b031982166380ac58cd60e01b1480612bac57506001600160e01b03198216635b5e139f60e01b145b80610cb957506301ffc9a760e01b6001600160e01b0319831614610cb9565b6112df828260405180602001604052806000815250612f0f565b610fa6838383612f42565b600080600f547f000000000000000000000000000000000000000000000000000000000000000a612c219190613f8a565b9050600080600083612c31612ffa565b612c3b919061420f565b905060106000612c4c600187613f8a565b81526020019081526020016000205460001415612c7557612c6e600185613f8a565b9250612c96565b60106000612c84600187613f8a565b81526020019081526020016000205492505b600081815260106020526040902054612cc2576000818152601060205260409020839055905080612cd9565b600081815260106020526040902080549084905591505b600f8054906000612ce983613ee0565b909155509195945050505050565b612d0081613036565b6000818152600a602052604090208054612d1990613d2d565b15905061131b576000818152600a6020526040812061131b9161357c565b60006001600160a01b0384163b15612e2a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612d7b903390899088908890600401614223565b6020604051808303816000875af1925050508015612db6575060408051601f3d908101601f19168201909252612db391810190614260565b60015b612e10573d808015612de4576040519150601f19603f3d011682016040523d82523d6000602084013e612de9565b606091505b508051612e085760405162461bcd60e51b8152600401610b8d9061418e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506125a4565b506001949350505050565b606060128054610d4490613d2d565b6060612e4f82612405565b612eb35760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b8d565b6000612ebd612e35565b90506000815111612edd5760405180602001604052806000815250612f08565b80612ee7846130cb565b604051602001612ef89291906141e0565b6040516020818303038152906040525b9392505050565b612f1983836131c8565b612f266000848484612d37565b610fa65760405162461bcd60e51b8152600401610b8d9061418e565b6001600160a01b038316612f9d57612f9881600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612fc0565b816001600160a01b0316836001600160a01b031614612fc057612fc083826132f4565b6001600160a01b038216612fd757610fa681613391565b826001600160a01b0316826001600160a01b031614610fa657610fa68282613440565b60004442604051602001613018929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c905090565b60006130418261153b565b905061304f81600084612be5565b61305a600083612447565b6001600160a01b0381166000908152600360205260408120805460019290613083908490613f8a565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b03841690600080516020614294833981519152908390a45050565b6060816130ef5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613119578061310381613ee0565b91506131129050600a83613f30565b91506130f3565b6000816001600160401b03811115613133576131336135de565b6040519080825280601f01601f19166020018201604052801561315d576020820181803683370190505b5090505b84156125a457613172600183613f8a565b915061317f600a8661420f565b61318a906030613f72565b60f81b81838151811061319f5761319f613eb4565b60200101906001600160f81b031916908160001a9053506131c1600a86613f30565b9450613161565b6001600160a01b03821661321e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b8d565b61322781612405565b156132735760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b6044820152606401610b8d565b61327f60008383612be5565b6001600160a01b03821660009081526003602052604081208054600192906132a8908490613f72565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386169081179091559051839290600080516020614294833981519152908290a45050565b6000600161330184611640565b61330b9190613f8a565b60008381526007602052604090205490915080821461335e576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906133a390600190613f8a565b600083815260096020526040812054600880549394509092849081106133cb576133cb613eb4565b9060005260206000200154905080600883815481106133ec576133ec613eb4565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806134245761342461427d565b6001900381819060005260206000200160009055905550505050565b600061344b83611640565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b82805461349090613d2d565b90600052602060002090601f0160209004810192826134b257600085556134f8565b82601f106134cb57805160ff19168380011785556134f8565b828001600101855582156134f8579182015b828111156134f85782518255916020019190600101906134dd565b506135049291506135b2565b5090565b82805461351490613d2d565b90600052602060002090601f01602090048101928261353657600085556134f8565b82601f1061354f5782800160ff198235161785556134f8565b828001600101855582156134f8579182015b828111156134f8578235825591602001919060010190613561565b50805461358890613d2d565b6000825580601f10613598575050565b601f01602090049060005260206000209081019061131b91905b5b8082111561350457600081556001016135b3565b803561ffff811681146135d957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561361c5761361c6135de565b604052919050565b600082601f83011261363557600080fd5b81356001600160401b0381111561364e5761364e6135de565b613661601f8201601f19166020016135f4565b81815284602083860101111561367657600080fd5b816020850160208301376000918101602001919091529392505050565b80356001600160401b03811681146135d957600080fd5b600080600080608085870312156136c057600080fd5b6136c9856135c7565b935060208501356001600160401b03808211156136e557600080fd5b6136f188838901613624565b94506136ff60408801613693565b9350606087013591508082111561371557600080fd5b5061372287828801613624565b91505092959194509250565b60006020828403121561374057600080fd5b5035919050565b6001600160e01b03198116811461131b57600080fd5b60006020828403121561376f57600080fd5b8135612f0881613747565b6001600160a01b038116811461131b57600080fd5b6000602082840312156137a157600080fd5b8135612f088161377a565b60005b838110156137c75781810151838201526020016137af565b83811115610ca85750506000910152565b600081518084526137f08160208601602086016137ac565b601f01601f19169290920160200192915050565b602081526000612f0860208301846137d8565b803580151581146135d957600080fd5b60006020828403121561383957600080fd5b612f0882613817565b6001600160a01b03169052565b6000806040838503121561386257600080fd5b823561386d8161377a565b946020939093013593505050565b60008060006060848603121561389057600080fd5b833561389b8161377a565b925060208401356138ab8161377a565b929592945050506040919091013590565b600082601f8301126138cd57600080fd5b813560206001600160401b038211156138e8576138e86135de565b8160051b6138f78282016135f4565b928352848101820192828101908785111561391157600080fd5b83870192505b8483101561393957823561392a8161377a565b82529183019190830190613917565b979650505050505050565b6000806040838503121561395757600080fd5b82356001600160401b0381111561396d57600080fd5b613979858286016138bc565b95602094909401359450505050565b6000806040838503121561399b57600080fd5b50508035926020909101359150565b6001600160a01b03929092168252602082015260400190565b6000602082840312156139d557600080fd5b612f08826135c7565b6000602082840312156139f057600080fd5b81356001600160401b03811115613a0657600080fd5b6125a4848285016138bc565b600060208284031215613a2457600080fd5b81356001600160401b03811115613a3a57600080fd5b6125a484828501613624565b60008060408385031215613a5957600080fd5b8235915060208301356001600160401b03811115613a7657600080fd5b613a8285828601613624565b9150509250929050565b600080600060608486031215613aa157600080fd5b613aaa846135c7565b925060208401356001600160401b03811115613ac557600080fd5b613ad186828701613624565b925050604084013590509250925092565b60008060408385031215613af557600080fd5b8235613b008161377a565b9150613b0e60208401613817565b90509250929050565b60008060008060808587031215613b2d57600080fd5b8435613b388161377a565b93506020850135613b488161377a565b92506040850135915060608501356001600160401b03811115613b6a57600080fd5b61372287828801613624565b60008060408385031215613b8957600080fd5b61386d836135c7565b60008083601f840112613ba457600080fd5b5081356001600160401b03811115613bbb57600080fd5b6020830191508360208285010111156110f057600080fd5b600080600080600060808688031215613beb57600080fd5b613bf4866135c7565b945060208601356001600160401b0380821115613c1057600080fd5b613c1c89838a01613624565b9550613c2a60408901613693565b94506060880135915080821115613c4057600080fd5b50613c4d88828901613b92565b969995985093965092949392505050565b6020808252825182820181905260009190848201906040850190845b81811015613c9657835183529284019291840191600101613c7a565b50909695505050505050565b60008060408385031215613cb557600080fd5b8235613cc08161377a565b91506020830135613cd08161377a565b809150509250929050565b600080600060408486031215613cf057600080fd5b613cf9846135c7565b925060208401356001600160401b03811115613d1457600080fd5b613d2086828701613b92565b9497909650939450505050565b600181811c90821680613d4157607f821691505b6020821081141561229c57634e487b7160e01b600052602260045260246000fd5b6000808354613d7081613d2d565b60018281168015613d885760018114613d9957613dc8565b60ff19841687528287019450613dc8565b8760005260208060002060005b85811015613dbf5781548a820152908401908201613da6565b50505082870194505b50929695505050505050565b61ffff85168152608060208201526000613df160808301866137d8565b6001600160401b0385166040840152828103606084015261393981856137d8565b60008251613e248184602087016137ac565b9190910192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415613ef457613ef4613eca565b5060010190565b6000816000190483118215151615613f1557613f15613eca565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613f3f57613f3f613f1a565b500490565b6020808252601490820152734572726f723a206c69737420697320656d70747960601b604082015260600190565b60008219821115613f8557613f85613eca565b500190565b600082821015613f9c57613f9c613eca565b500390565b61ffff861681526001600160a01b038516602082015260a060408201819052600090613fcf908301866137d8565b84151560608401528281036080840152613fe981856137d8565b98975050505050505050565b6000806040838503121561400857600080fd5b505080516020909101519092909150565b61ffff871681526000602060c0818401526000885461403781613d2d565b8060c087015260e0600180841660008114614059576001811461406e5761409c565b60ff198516898401526101008901955061409c565b8d6000528660002060005b858110156140945781548b8201860152908301908801614079565b8a0184019650505b505050505083810360408501526140b381896137d8565b9150506140c36060840187613842565b6140d06080840186613842565b82810360a08401526140e281856137d8565b9998505050505050505050565b8183823760009101908152919050565b61ffff8616815260806020820152600061411c60808301876137d8565b6001600160401b03861660408401528281036060840152838152838560208301376000602085830101526020601f19601f8601168201019150509695505050505050565b6000806040838503121561417357600080fd5b825161417e8161377a565b6020939093015192949293505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600083516141f28184602088016137ac565b8351908301906142068183602088016137ac565b01949350505050565b60008261421e5761421e613f1a565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614256908301846137d8565b9695505050505050565b60006020828403121561427257600080fd5b8151612f0881613747565b634e487b7160e01b600052603160045260246000fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220d5eb4afdfc6b9dc880e30f0c97860b8881345c6e56b4f648cc76dbd81ab2d4c164736f6c634300080a0033

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

000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000016345785d8a000000000000000000000000000000000000000000000000000000000000000000140000000000000000000000007dcad72640f835b0fa36efd3d6d3ec902c7e5acf000000000000000000000000000000000000000000000000000000000000000a

-----Decoded View---------------
Arg [0] : _startID (uint256): 10
Arg [1] : _mintPrice (uint256): 100000000000000000
Arg [2] : _maxSupply (uint256): 20
Arg [3] : _lzEndpoint (address): 0x7dcAD72640F835B0FA36EFD3D6d3ec902C7E5acf
Arg [4] : _randomizedSupply (uint256): 10

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [1] : 000000000000000000000000000000000000000000000000016345785d8a0000
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [3] : 0000000000000000000000007dcad72640f835b0fa36efd3d6d3ec902c7e5acf
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000a


Deployed Bytecode Sourcemap

676:9690:28:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;711:978:38;;;;;;;;;;-1:-1:-1;711:978:38;;;;;:::i;:::-;;:::i;:::-;;6314:100:28;;;;;;;;;;-1:-1:-1;6314:100:28;;;;;:::i;:::-;;:::i;:::-;;;2340:14:43;;2333:22;2315:41;;2303:2;2288:18;6314:100:28;;;;;;;;9210:225;;;;;;;;;;-1:-1:-1;9210:225:28;;;;;:::i;:::-;;:::i;8591:122::-;;;;;;;;;;-1:-1:-1;8591:122:28;;;;;:::i;:::-;;:::i;2473:98:9:-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;7569:115:28:-;;;;;;;;;;-1:-1:-1;7569:115:28;;;;;:::i;:::-;;:::i;3984:217:9:-;;;;;;;;;;-1:-1:-1;3984:217:9;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;4515:32:43;;;4497:51;;4485:2;4470:18;3984:217:9;4351:203:43;3522:401:9;;;;;;;;;;-1:-1:-1;3522:401:9;;;;;:::i;:::-;;:::i;1615:111:13:-;;;;;;;;;;-1:-1:-1;1702:10:13;:17;1615:111;;;5025:25:43;;;5013:2;4998:18;1615:111:13;4879:177:43;1697:398:38;;;;;;;;;;-1:-1:-1;1697:398:38;;;;;:::i;:::-;;:::i;4711:330:9:-;;;;;;;;;;-1:-1:-1;4711:330:9;;;;;:::i;:::-;;:::i;9783:206:28:-;;;;;;;;;;-1:-1:-1;9783:206:28;;;;;:::i;:::-;;:::i;1509:25::-;;;;;;;;;;;;;;;;6422:188;;;;;;;;;;-1:-1:-1;6422:188:28;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;1291:253:13:-;;;;;;;;;;-1:-1:-1;1291:253:13;;;;;:::i;:::-;;:::i;8199:80:28:-;;;;;;;;;;-1:-1:-1;8262:9:28;;8199:80;;8408:175;;;;;;;;;;-1:-1:-1;8408:175:28;;;;;:::i;:::-;;:::i;7113:236::-;;;;;;;;;;-1:-1:-1;7113:236:28;;;;;:::i;:::-;;:::i;8886:82::-;;;;;;;;;;-1:-1:-1;8886:82:28;;;;;:::i;:::-;;:::i;5107:179:9:-;;;;;;;;;;-1:-1:-1;5107:179:9;;;;;:::i;:::-;;:::i;529:241:12:-;;;;;;;;;;-1:-1:-1;529:241:12;;;;;:::i;:::-;;:::i;7470:91:28:-;;;;;;;;;;-1:-1:-1;7470:91:28;;;;;:::i;:::-;;:::i;9087:115::-;;;;;;;;;;-1:-1:-1;9087:115:28;;;;;:::i;:::-;;:::i;7692:103::-;;;;;;;;;;-1:-1:-1;7692:103:28;;;;;:::i;:::-;;:::i;1798:230:13:-;;;;;;;;;;-1:-1:-1;1798:230:13;;;;;:::i;:::-;;:::i;7906:104:28:-;;;;;;;;;;-1:-1:-1;7906:104:28;;;;;:::i;:::-;;:::i;2176:235:9:-;;;;;;;;;;-1:-1:-1;2176:235:9;;;;;:::i;:::-;;:::i;1047:21:28:-;;;;;;;;;;;;;:::i;1914:205:9:-;;;;;;;;;;-1:-1:-1;1914:205:9;;;;;:::i;:::-;;:::i;1668:101:4:-;;;;;;;;;;;;;:::i;553:51:38:-;;;;;;;;;;-1:-1:-1;553:51:38;;;;;:::i;:::-;;:::i;1272:24:28:-;;;;;;;;;;;;;;;;6631:353;;;;;;;;;;-1:-1:-1;6631:353:28;;;;;:::i;:::-;;:::i;8287:113::-;;;;;;;;;;-1:-1:-1;8287:113:28;;;;;:::i;:::-;;:::i;1036:85:4:-;;;;;;;;;;;;;:::i;456:90:38:-;;;;;;;;;;-1:-1:-1;456:90:38;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9391:25:43;;;9447:2;9432:18;;9425:34;;;;9364:18;456:90:38;9217:248:43;1119:27:28;;;;;;;;;;-1:-1:-1;1119:27:28;;;;;;;;8018:87;;;;;;;;;;-1:-1:-1;8018:87:28;;;;;:::i;:::-;;:::i;4007:125::-;;;;;;;;;;-1:-1:-1;4007:125:28;;;;;:::i;:::-;;:::i;2635:102:9:-;;;;;;;;;;;;;:::i;8113:78:28:-;;;;;;;;;;-1:-1:-1;8178:5:28;;8113:78;;1303:40;;;;;;;;;;;;;;;;4637:1025;;;;;;:::i;:::-;;:::i;1180:26::-;;;;;;;;;;-1:-1:-1;1180:26:28;;;;;;;;;;;4268:153:9;;;;;;;;;;-1:-1:-1;4268:153:9;;;;;:::i;:::-;;:::i;1350:74:28:-;;;;;;;;;;-1:-1:-1;1350:74:28;;;;-1:-1:-1;;;;;1350:74:28;;;5352:320:9;;;;;;;;;;-1:-1:-1;5352:320:9;;;;;:::i;:::-;;:::i;7357:105:28:-;;;;;;;;;;;;;:::i;1153:20::-;;;;;;;;;;-1:-1:-1;1153:20:28;;;;;;;;;;;7803:95;;;;;;;;;;-1:-1:-1;7803:95:28;;;;;:::i;:::-;;:::i;5670:152::-;;;;;;;;;;-1:-1:-1;5670:152:28;;;;;:::i;:::-;;:::i;2372:1551::-;;;;;;:::i;:::-;;:::i;2666:801:38:-;;;;;;:::i;:::-;;:::i;5830:476:28:-;;;;;;;;;;-1:-1:-1;5830:476:28;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;1213:21::-;;;;;;;;;;;;;;;;6992:113;;;;;;;;;;-1:-1:-1;6992:113:28;;;;;:::i;:::-;;:::i;4487:162:9:-;;;;;;;;;;-1:-1:-1;4487:162:9;;;;;:::i;:::-;;:::i;1093:19:28:-;;;;;;;;;;;;;;;;3475:158:38;;;;;;;;;;-1:-1:-1;3475:158:38;;;;;:::i;:::-;;:::i;1918:198:4:-;;;;;;;;;;-1:-1:-1;1918:198:4;;;;;:::i;:::-;;:::i;1241:24:28:-;;;;;;;;;;;;;;;;1618:43;;;;;;;;;;-1:-1:-1;1618:43:28;;;;;:::i;:::-;;;;;;;;;;;;;;1668;;;;;;;;;;-1:-1:-1;1668:43:28;;;;;:::i;:::-;;;;;;;;;;;;;;711:978:38;916:8;;-1:-1:-1;;;;;916:8:38;894:10;:31;886:40;;;;;;1037:32;;;;;;;:19;:32;;;;;:39;;;;;:::i;:::-;;;1015:11;:18;:61;:134;;;;-1:-1:-1;1116:32:38;;;;;;;:19;:32;;;;;;;1106:43;;;;1116:32;1106:43;:::i;:::-;;;;;;;;1090:11;1080:22;;;;;;:69;1015:134;1007:199;;;;-1:-1:-1;;;1007:199:38;;14766:2:43;1007:199:38;;;14748:21:43;14805:2;14785:18;;;14778:30;14844:34;14824:18;;;14817:62;-1:-1:-1;;;14895:18:43;;;14888:50;14955:19;;1007:199:38;;;;;;;;;1334:60;;-1:-1:-1;;;1334:60:38;;:4;;:16;;:60;;1351:11;;1364;;1377:6;;1385:8;;1334:60;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1330:352;;1541:52;;;;;;;;1556:8;:15;1541:52;;;;1583:8;1573:19;;;;;;1541:52;;;1490:14;:27;1505:11;1490:27;;;;;;;;;;;;;;;1518:11;1490:40;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1490:48:38;;;;;;;;;;;;;:103;;;;;;;;;;;;;;;1613:57;;;;1627:11;;1640;;1531:6;;1661:8;;1613:57;:::i;:::-;;;;;;;;1330:352;711:978;;;;:::o;6314:100:28:-;6368:4;6393:12;6401:3;6393:7;:12::i;:::-;6385:21;6314:100;-1:-1:-1;;6314:100:28:o;9210:225::-;9322:4;-1:-1:-1;;;;;;9346:41:28;;-1:-1:-1;;;9346:41:28;;:81;;;9391:36;9415:11;9391:23;:36::i;8591:122::-;719:10:18;1248:7:4;:5;:7::i;:::-;-1:-1:-1;;;;;1248:23:4;;1240:68;;;;-1:-1:-1;;;1240:68:4;;;;;;;:::i;:::-;8673:14:28::1;:32:::0;;-1:-1:-1;;;;;;8673:32:28::1;-1:-1:-1::0;;;;;8673:32:28;;;::::1;::::0;;;::::1;::::0;;8591:122::o;2473:98:9:-;2527:13;2559:5;2552:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2473:98;:::o;7569:115:28:-;719:10:18;1248:7:4;:5;:7::i;:::-;-1:-1:-1;;;;;1248:23:4;;1240:68;;;;-1:-1:-1;;;1240:68:4;;;;;;;:::i;:::-;7644:14:28::1;:32:::0;;;::::1;;::::0;::::1;-1:-1:-1::0;;7644:32:28;;::::1;::::0;;;::::1;::::0;;7569:115::o;3984:217:9:-;4060:7;4087:16;4095:7;4087;:16::i;:::-;4079:73;;;;-1:-1:-1;;;4079:73:9;;16389:2:43;4079:73:9;;;16371:21:43;16428:2;16408:18;;;16401:30;16467:34;16447:18;;;16440:62;-1:-1:-1;;;16518:18:43;;;16511:42;16570:19;;4079:73:9;16187:408:43;4079:73:9;-1:-1:-1;4170:24:9;;;;:15;:24;;;;;;-1:-1:-1;;;;;4170:24:9;;3984:217::o;3522:401::-;3602:13;3618:23;3633:7;3618:14;:23::i;:::-;3602:39;;3665:5;-1:-1:-1;;;;;3659:11:9;:2;-1:-1:-1;;;;;3659:11:9;;;3651:57;;;;-1:-1:-1;;;3651:57:9;;16802:2:43;3651:57:9;;;16784:21:43;16841:2;16821:18;;;16814:30;16880:34;16860:18;;;16853:62;-1:-1:-1;;;16931:18:43;;;16924:31;16972:19;;3651:57:9;16600:397:43;3651:57:9;719:10:18;-1:-1:-1;;;;;3740:21:9;;;;:62;;-1:-1:-1;3765:37:9;3782:5;719:10:18;4487:162:9;:::i;3765:37::-;3719:165;;;;-1:-1:-1;;;3719:165:9;;17204:2:43;3719:165:9;;;17186:21:43;17243:2;17223:18;;;17216:30;17282:34;17262:18;;;17255:62;-1:-1:-1;;;17333:18:43;;;17326:54;17397:19;;3719:165:9;17002:420:43;3719:165:9;3895:21;3904:2;3908:7;3895:8;:21::i;:::-;3592:331;3522:401;;:::o;1697:398:38:-;1909:10;1931:4;1909:27;1901:83;;;;-1:-1:-1;;;1901:83:38;;17629:2:43;1901:83:38;;;17611:21:43;17668:2;17648:18;;;17641:30;17707:34;17687:18;;;17680:62;-1:-1:-1;;;17758:18:43;;;17751:41;17809:19;;1901:83:38;17427:407:43;1901:83:38;2033:54;2044:11;2057;2070:6;2078:8;2033:10;:54::i;4711:330:9:-;4900:41;719:10:18;4919:12:9;4933:7;4900:18;:41::i;:::-;4892:103;;;;-1:-1:-1;;;4892:103:9;;;;;;;:::i;:::-;5006:28;5016:4;5022:2;5026:7;5006:9;:28::i;9783:206:28:-;719:10:18;1248:7:4;:5;:7::i;:::-;-1:-1:-1;;;;;1248:23:4;;1240:68;;;;-1:-1:-1;;;1240:68:4;;;;;;;:::i;:::-;9879:9:28::1;9874:108;9898:5;:12;9894:1;:16;9874:108;;;9932:38;9953:6;9961:5;9967:1;9961:8;;;;;;;;:::i;:::-;;;;;;;9932:20;:38::i;:::-;9912:3:::0;::::1;::::0;::::1;:::i;:::-;;;;9874:108;;6422:188:::0;6555:14;;6585:7;;6498:16;;;;-1:-1:-1;;;;;6555:14:28;;;;6596:5;;6572:20;;:10;:20;:::i;:::-;6571:30;;;;:::i;:::-;6547:55;;;;6422:188;;;;;;:::o;1291:253:13:-;1388:7;1423:23;1440:5;1423:16;:23::i;:::-;1415:5;:31;1407:87;;;;-1:-1:-1;;;1407:87:13;;19293:2:43;1407:87:13;;;19275:21:43;19332:2;19312:18;;;19305:30;19371:34;19351:18;;;19344:62;-1:-1:-1;;;19422:18:43;;;19415:41;19473:19;;1407:87:13;19091:407:43;1407:87:13;-1:-1:-1;;;;;;1511:19:13;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;1291:253::o;8408:175:28:-;719:10:18;1248:7:4;:5;:7::i;:::-;-1:-1:-1;;;;;1248:23:4;;1240:68;;;;-1:-1:-1;;;1240:68:4;;;;;;;:::i;:::-;8495:4:28::1;8483:8;:16;;;;8475:71;;;::::0;-1:-1:-1;;;8475:71:28;;19705:2:43;8475:71:28::1;::::0;::::1;19687:21:43::0;19744:2;19724:18;;;19717:30;19783:34;19763:18;;;19756:62;-1:-1:-1;;;19834:18:43;;;19827:40;19884:19;;8475:71:28::1;19503:406:43::0;8475:71:28::1;8557:18;;:7;:18:::0;8408:175::o;7113:236::-;719:10:18;1248:7:4;:5;:7::i;:::-;-1:-1:-1;;;;;1248:23:4;;1240:68;;;;-1:-1:-1;;;1240:68:4;;;;;;;:::i;:::-;7227:1:28::1;7206:11;:18;:22;7198:55;;;;-1:-1:-1::0;;;7198:55:28::1;;;;;;;:::i;:::-;7269:6;7264:77;7285:11;:18;7281:1;:22;7264:77;;;7340:1;7310:11;:27;7322:11;7334:1;7322:14;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;7310:27:28::1;-1:-1:-1::0;;;;;7310:27:28::1;;;;;;;;;;;;:31;;;;7305:3;;;;:::i;:::-;;;7264:77;;;;7113:236:::0;:::o;8886:82::-;719:10:18;1248:7:4;:5;:7::i;:::-;-1:-1:-1;;;;;1248:23:4;;1240:68;;;;-1:-1:-1;;;1240:68:4;;;;;;;:::i;:::-;8944:16:28::1;8957:2;8944:12;:16::i;:::-;8886:82:::0;:::o;5107:179:9:-;5240:39;5257:4;5263:2;5267:7;5240:39;;;;;;;;;;;;:16;:39::i;529:241:12:-;645:41;719:10:18;664:12:12;640:96:18;645:41:12;637:102;;;;-1:-1:-1;;;637:102:12;;20465:2:43;637:102:12;;;20447:21:43;20504:2;20484:18;;;20477:30;20543:34;20523:18;;;20516:62;-1:-1:-1;;;20594:18:43;;;20587:46;20650:19;;637:102:12;20263:412:43;637:102:12;749:14;755:7;749:5;:14::i;7470:91:28:-;719:10:18;1248:7:4;:5;:7::i;:::-;-1:-1:-1;;;;;1248:23:4;;1240:68;;;;-1:-1:-1;;;1240:68:4;;;;;;;:::i;:::-;7533:8:28::1;:20:::0;;;::::1;;;;-1:-1:-1::0;;7533:20:28;;::::1;::::0;;;::::1;::::0;;7470:91::o;9087:115::-;719:10:18;1248:7:4;:5;:7::i;:::-;-1:-1:-1;;;;;1248:23:4;;1240:68;;;;-1:-1:-1;;;1240:68:4;;;;;;;:::i;:::-;9164:30:28::1;9182:2;9186:7;9164:17;:30::i;7692:103::-:0;719:10:18;1248:7:4;:5;:7::i;:::-;-1:-1:-1;;;;;1248:23:4;;1240:68;;;;-1:-1:-1;;;1240:68:4;;;;;;;:::i;:::-;7763:12:28::1;:24:::0;7692:103::o;1798:230:13:-;1873:7;1908:30;1702:10;:17;;1615:111;1908:30;1900:5;:38;1892:95;;;;-1:-1:-1;;;1892:95:13;;20882:2:43;1892:95:13;;;20864:21:43;20921:2;20901:18;;;20894:30;20960:34;20940:18;;;20933:62;-1:-1:-1;;;21011:18:43;;;21004:42;21063:19;;1892:95:13;20680:408:43;1892:95:13;2004:10;2015:5;2004:17;;;;;;;;:::i;:::-;;;;;;;;;1997:24;;1798:230;;;:::o;7906:104:28:-;719:10:18;1248:7:4;:5;:7::i;:::-;-1:-1:-1;;;;;1248:23:4;;1240:68;;;;-1:-1:-1;;;1240:68:4;;;;;;;:::i;:::-;7982:20:28;;::::1;::::0;:7:::1;::::0;:20:::1;::::0;::::1;::::0;::::1;:::i;2176:235:9:-:0;2248:7;2283:16;;;:7;:16;;;;;;-1:-1:-1;;;;;2283:16:9;2317:19;2309:73;;;;-1:-1:-1;;;2309:73:9;;21295:2:43;2309:73:9;;;21277:21:43;21334:2;21314:18;;;21307:30;21373:34;21353:18;;;21346:62;-1:-1:-1;;;21424:18:43;;;21417:39;21473:19;;2309:73:9;21093:405:43;1047:21:28;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1914:205:9:-;1986:7;-1:-1:-1;;;;;2013:19:9;;2005:74;;;;-1:-1:-1;;;2005:74:9;;21705:2:43;2005:74:9;;;21687:21:43;21744:2;21724:18;;;21717:30;21783:34;21763:18;;;21756:62;-1:-1:-1;;;21834:18:43;;;21827:40;21884:19;;2005:74:9;21503:406:43;2005:74:9;-1:-1:-1;;;;;;2096:16:9;;;;;:9;:16;;;;;;;1914:205::o;1668:101:4:-;719:10:18;1248:7:4;:5;:7::i;:::-;-1:-1:-1;;;;;1248:23:4;;1240:68;;;;-1:-1:-1;;;1240:68:4;;;;;;;:::i;:::-;1732:30:::1;1759:1;1732:18;:30::i;:::-;1668:101::o:0;553:51:38:-;;;;;;;;;;;;;;;;:::i;6631:353:28:-;719:10:18;1248:7:4;:5;:7::i;:::-;-1:-1:-1;;;;;1248:23:4;;1240:68;;;;-1:-1:-1;;;1240:68:4;;;;;;;:::i;:::-;6753:1:28::1;6731:12;:19;:23;6723:56;;;;-1:-1:-1::0;;;6723:56:28::1;;;;;;;:::i;:::-;6795:6;6790:187;6811:12;:19;6807:1;:23;6790:187;;;6887:1;-1:-1:-1::0;;;;;6860:29:28::1;:12;6873:1;6860:15;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;6860:29:28::1;;;6852:62;;;::::0;-1:-1:-1;;;6852:62:28;;22116:2:43;6852:62:28::1;::::0;::::1;22098:21:43::0;22155:2;22135:18;;;22128:30;-1:-1:-1;;;22174:18:43;;;22167:50;22234:18;;6852:62:28::1;21914:344:43::0;6852:62:28::1;6960:5;6929:11;:28;6941:12;6954:1;6941:15;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;6929:28:28::1;-1:-1:-1::0;;;;;6929:28:28::1;;;;;;;;;;;;:36;;;;6832:3;;;;:::i;:::-;;;6790:187;;8287:113:::0;719:10:18;1248:7:4;:5;:7::i;:::-;-1:-1:-1;;;;;1248:23:4;;1240:68;;;;-1:-1:-1;;;1240:68:4;;;;;;;:::i;:::-;8366:26:28::1;8379:7;8388:3;8366:12;:26::i;1036:85:4:-:0;1108:6;;-1:-1:-1;;;;;1108:6:4;;1036:85::o;8018:87:28:-;719:10:18;1248:7:4;:5;:7::i;:::-;-1:-1:-1;;;;;1248:23:4;;1240:68;;;;-1:-1:-1;;;1240:68:4;;;;;;;:::i;:::-;8081:5:28::1;:16:::0;8018:87::o;4007:125::-;719:10:18;1248:7:4;:5;:7::i;:::-;-1:-1:-1;;;;;1248:23:4;;1240:68;;;;-1:-1:-1;;;1240:68:4;;;;;;;:::i;:::-;4089:26:28::1;:35:::0;4007:125::o;2635:102:9:-;2691:13;2723:7;2716:14;;;;;:::i;4637:1025:28:-;4690:11;4704:13;1702:10:13;:17;;1615:111;4704:13:28;4736:8;;4690:27;;-1:-1:-1;4736:8:28;;;;;;:16;;:8;:16;4728:66;;;;-1:-1:-1;;;4728:66:28;;22465:2:43;4728:66:28;;;22447:21:43;22504:2;22484:18;;;22477:30;22543:34;22523:18;;;22516:62;-1:-1:-1;;;22594:18:43;;;22587:35;22639:19;;4728:66:28;22263:401:43;4728:66:28;4835:9;;4831:1;4813:15;4822:6;4813;:15;:::i;:::-;:19;;;;:::i;:::-;:31;4805:85;;;;-1:-1:-1;;;4805:85:28;;23134:2:43;4805:85:28;;;23116:21:43;23173:2;23153:18;;;23146:30;23212:34;23192:18;;;23185:62;-1:-1:-1;;;23263:18:43;;;23256:39;23312:19;;4805:85:28;22932:405:43;4805:85:28;4918:1;4909:6;:10;:32;;;;;4933:8;;4923:6;:18;;4909:32;4901:68;;;;-1:-1:-1;;;4901:68:28;;23544:2:43;4901:68:28;;;23526:21:43;23583:2;23563:18;;;23556:30;-1:-1:-1;;;23602:18:43;;;23595:53;23665:18;;4901:68:28;23342:347:43;4901:68:28;5017:12;;4988:21;4998:10;4988:9;:21::i;:::-;:25;;5012:1;4988:25;:::i;:::-;:41;;4980:82;;;;-1:-1:-1;;;4980:82:28;;23896:2:43;4980:82:28;;;23878:21:43;23935:2;23915:18;;;23908:30;-1:-1:-1;;;23954:18:43;;;23947:58;24022:18;;4980:82:28;23694:352:43;4980:82:28;5102:6;5094:5;;:14;;;;:::i;:::-;5081:9;:27;5073:60;;;;-1:-1:-1;;;5073:60:28;;24253:2:43;5073:60:28;;;24235:21:43;24292:2;24272:18;;;24265:30;-1:-1:-1;;;24311:18:43;;;24304:50;24371:18;;5073:60:28;24051:344:43;5073:60:28;5148:15;;;;5144:128;;;5185:10;5173:23;;;;:11;:23;;;;;;:33;-1:-1:-1;5173:33:28;5165:107;;;;-1:-1:-1;;;5165:107:28;;24602:2:43;5165:107:28;;;24584:21:43;24641:2;24621:18;;;24614:30;24680:34;24660:18;;;24653:62;24751:31;24731:18;;;24724:59;24800:19;;5165:107:28;24400:425:43;5165:107:28;5312:10;5283:14;5300:23;;;:11;:23;;;;;;;5334:178;5355:6;5351:1;:10;5334:178;;;5383:24;5396:10;5383:12;:24::i;:::-;5422:14;5435:1;5422:14;;:::i;:::-;5455:15;;5422:14;;-1:-1:-1;5455:15:28;;5451:49;;;5484:10;5472:23;;;;:11;:23;;;;;:28;;5499:1;;5472:23;:28;;5499:1;;5472:28;:::i;:::-;;;;-1:-1:-1;;5451:49:28;5363:3;;;;:::i;:::-;;;;5334:178;;;-1:-1:-1;5534:10:28;5522:23;;;;:11;:23;;;;;;:35;;;5623:10;;5615:39;;-1:-1:-1;;;;;5623:10:28;;;;;5644:9;5615:39;;;;;5644:9;;5615:39;5522:23;5615:39;5644:9;5623:10;5615:39;;;;;;;;;;;;;;;;;;;4268:153:9;4362:52;719:10:18;4395:8:9;4405;4362:18;:52::i;5352:320::-;5521:41;719:10:18;5554:7:9;5521:18;:41::i;:::-;5513:103;;;;-1:-1:-1;;;5513:103:9;;;;;;;:::i;:::-;5626:39;5640:4;5646:2;5650:7;5659:5;5626:13;:39::i;7357:105:28:-;719:10:18;1248:7:4;:5;:7::i;:::-;-1:-1:-1;;;;;1248:23:4;;1240:68;;;;-1:-1:-1;;;1240:68:4;;;;;;;:::i;:::-;7439:15:28::1;::::0;;-1:-1:-1;;7420:34:28;::::1;7439:15;::::0;;::::1;7438:16;7420:34;::::0;;7357:105::o;7803:95::-;719:10:18;1248:7:4;:5;:7::i;:::-;-1:-1:-1;;;;;1248:23:4;;1240:68;;;;-1:-1:-1;;;1240:68:4;;;;;;;:::i;:::-;7870:8:28::1;:20:::0;7803:95::o;5670:152::-;5758:13;5791:23;5806:7;5791:14;:23::i;2372:1551::-;2461:14;;;;;;;:22;;2479:4;2461:22;2453:75;;;;-1:-1:-1;;;2453:75:28;;25032:2:43;2453:75:28;;;25014:21:43;25071:2;25051:18;;;25044:30;25110:34;25090:18;;;25083:62;-1:-1:-1;;;25161:18:43;;;25154:38;25209:19;;2453:75:28;24830:404:43;2453:75:28;2561:16;2569:7;2561;:16::i;:::-;-1:-1:-1;;;;;2547:30:28;:10;-1:-1:-1;;;;;2547:30:28;;2539:77;;;;-1:-1:-1;;;2539:77:28;;25441:2:43;2539:77:28;;;25423:21:43;25480:2;25460:18;;;25453:30;25519:34;25499:18;;;25492:62;-1:-1:-1;;;25570:18:43;;;25563:32;25612:19;;2539:77:28;25239:398:43;2539:77:28;2635:29;;;2674:1;2635:29;;;:19;:29;;;;;:36;;;;;:::i;:::-;;;:40;2627:99;;;;-1:-1:-1;;;2627:99:28;;25844:2:43;2627:99:28;;;25826:21:43;25883:2;25863:18;;;25856:30;25922:34;25902:18;;;25895:62;-1:-1:-1;;;25973:18:43;;;25966:44;26027:19;;2627:99:28;25642:410:43;2627:99:28;2806:14;2812:7;2806:5;:14::i;:::-;2894:20;2928:10;2940:7;2917:31;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;2917:31:28;;;;;;;;;;3118:26;;-1:-1:-1;;;2917:31:28;3092:53;;26212:51:43;26279:11;;;26272:27;2917:31:28;-1:-1:-1;3051:1:28;;3034:14;;26315:12:43;;3092:53:28;;;-1:-1:-1;;3092:53:28;;;;;;;;;;3321:8;;-1:-1:-1;;;3321:77:28;;3092:53;;-1:-1:-1;3300:15:28;;-1:-1:-1;;;;;3321:8:28;;;;:21;;:77;;3343:8;;3361:4;;3368:7;;3300:15;;3092:53;;3321:77;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3299:99;;;3432:10;3419:9;:23;;3411:110;;;;-1:-1:-1;;;3411:110:28;;27437:2:43;3411:110:28;;;27419:21:43;27476:2;27456:18;;;27449:30;27515:34;27495:18;;;27488:62;27586:34;27566:18;;;27559:62;-1:-1:-1;;;27637:19:43;;;27630:41;27688:19;;3411:110:28;27235:478:43;3411:110:28;3534:8;;3626:29;;;3534:8;3626:29;;;:19;:29;;;;;;3534:381;;-1:-1:-1;;;3534:381:28;;-1:-1:-1;;;;;3534:8:28;;;;:13;;3555:9;;3534:381;;3580:8;;3709:7;;3765:10;;3534:8;3875:13;;3534:381;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2442:1481;;;;2372:1551;;:::o;2666:801:38:-;2925:27;;;2890:32;2925:27;;;:14;:27;;;;;;:40;;;;2953:11;;2925:40;:::i;:::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2925:48:38;;;;;;;;;;2992:21;;;;2925:48;;-1:-1:-1;2984:86:38;;;;-1:-1:-1;;;2984:86:38;;29409:2:43;2984:86:38;;;29391:21:43;29448:2;29428:18;;;29421:30;29487:34;29467:18;;;29460:62;-1:-1:-1;;;29538:18:43;;;29531:36;29584:19;;2984:86:38;29207:402:43;2984:86:38;3108:23;;3089:42;;:90;;;;;3158:9;:21;;;3145:8;;3135:19;;;;;;;:::i;:::-;;;;;;;;:44;3089:90;3081:129;;;;-1:-1:-1;;;3081:129:38;;30092:2:43;3081:129:38;;;30074:21:43;30131:2;30111:18;;;30104:30;-1:-1:-1;;;30150:18:43;;;30143:56;30216:18;;3081:129:38;29890:350:43;3081:129:38;3284:1;3258:27;;;3296:21;;;:34;3399:60;;-1:-1:-1;;;3399:60:38;;:4;;:16;;:60;;3416:11;;3429;;3442:6;;3450:8;;;;3399:60;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2834:633;2666:801;;;;;:::o;5830:476:28:-;5884:13;5910:15;5928:17;5938:6;5928:9;:17::i;:::-;5910:35;-1:-1:-1;5960:15:28;5956:343;;5999:13;;;6010:1;5999:13;;;;;;;;;;;-1:-1:-1;5992:20:28;5830:476;-1:-1:-1;;;5830:476:28:o;5956:343::-;6045:20;6079:10;-1:-1:-1;;;;;6068:22:28;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6068:22:28;;6045:45;;6105:10;6130:130;6154:10;6146:5;:18;6130:130;;;6210:34;6230:6;6238:5;6210:19;:34::i;:::-;6194:6;6201:5;6194:13;;;;;;;;:::i;:::-;;;;;;;;;;:50;6166:7;;;:::i;:::-;;;6130:130;;5956:343;5899:407;5830:476;;;:::o;6992:113::-;719:10:18;1248:7:4;:5;:7::i;:::-;-1:-1:-1;;;;;1248:23:4;;1240:68;;;;-1:-1:-1;;;1240:68:4;;;;;;;:::i;:::-;-1:-1:-1;;;;;7071:17:28;;::::1;;::::0;;;:11:::1;:17;::::0;;;;:26;6992:113::o;4487:162:9:-;-1:-1:-1;;;;;4607:25:9;;;4584:4;4607:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;4487:162::o;3475:158:38:-;719:10:18;1248:7:4;:5;:7::i;:::-;-1:-1:-1;;;;;1248:23:4;;1240:68;;;;-1:-1:-1;;;1240:68:4;;;;;;;:::i;:::-;3579:29:38::1;::::0;::::1;;::::0;;;:19:::1;:29;::::0;;;;:46:::1;::::0;3611:14;;3579:46:::1;:::i;1918:198:4:-:0;719:10:18;1248:7:4;:5;:7::i;:::-;-1:-1:-1;;;;;1248:23:4;;1240:68;;;;-1:-1:-1;;;1240:68:4;;;;;;;:::i;:::-;-1:-1:-1;;;;;2006:22:4;::::1;1998:73;;;::::0;-1:-1:-1;;;1998:73:4;;31170:2:43;1998:73:4::1;::::0;::::1;31152:21:43::0;31209:2;31189:18;;;31182:30;31248:34;31228:18;;;31221:62;-1:-1:-1;;;31299:18:43;;;31292:36;31345:19;;1998:73:4::1;30968:402:43::0;1998:73:4::1;2081:28;2100:8;2081:18;:28::i;7144:125:9:-:0;7209:4;7232:16;;;:7;:16;;;;;;-1:-1:-1;;;;;7232:16:9;:30;;;7144:125::o;990:222:13:-;1092:4;-1:-1:-1;;;;;;1115:50:13;;-1:-1:-1;;;1115:50:13;;:90;;;1169:36;1193:11;1169:23;:36::i;10995:171:9:-;11069:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;11069:29:9;-1:-1:-1;;;;;11069:29:9;;;;;;;;:24;;11122:23;11069:24;11122:14;:23::i;:::-;-1:-1:-1;;;;;11113:46:9;;;;;;;;;;;10995:171;;:::o;4140:381:28:-;4336:14;4352:12;4379:8;4368:37;;;;;;;;;;;;:::i;:::-;4335:70;;;;4487:26;4497:6;4505:7;4487:9;:26::i;:::-;4305:216;;4140:381;;;;:::o;7427:344:9:-;7520:4;7544:16;7552:7;7544;:16::i;:::-;7536:73;;;;-1:-1:-1;;;7536:73:9;;31902:2:43;7536:73:9;;;31884:21:43;31941:2;31921:18;;;31914:30;31980:34;31960:18;;;31953:62;-1:-1:-1;;;32031:18:43;;;32024:42;32083:19;;7536:73:9;31700:408:43;7536:73:9;7619:13;7635:23;7650:7;7635:14;:23::i;:::-;7619:39;;7687:5;-1:-1:-1;;;;;7676:16:9;:7;-1:-1:-1;;;;;7676:16:9;;:51;;;;7720:7;-1:-1:-1;;;;;7696:31:9;:20;7708:7;7696:11;:20::i;:::-;-1:-1:-1;;;;;7696:31:9;;7676:51;:87;;;;7731:32;7748:5;7755:7;7731:16;:32::i;:::-;7668:96;7427:344;-1:-1:-1;;;;7427:344:9:o;10324:560::-;10478:4;-1:-1:-1;;;;;10451:31:9;:23;10466:7;10451:14;:23::i;:::-;-1:-1:-1;;;;;10451:31:9;;10443:85;;;;-1:-1:-1;;;10443:85:9;;32315:2:43;10443:85:9;;;32297:21:43;32354:2;32334:18;;;32327:30;32393:34;32373:18;;;32366:62;-1:-1:-1;;;32444:18:43;;;32437:39;32493:19;;10443:85:9;32113:405:43;10443:85:9;-1:-1:-1;;;;;10546:16:9;;10538:65;;;;-1:-1:-1;;;10538:65:9;;32725:2:43;10538:65:9;;;32707:21:43;32764:2;32744:18;;;32737:30;32803:34;32783:18;;;32776:62;-1:-1:-1;;;32854:18:43;;;32847:34;32898:19;;10538:65:9;32523:400:43;10538:65:9;10614:39;10635:4;10641:2;10645:7;10614:20;:39::i;:::-;10715:29;10732:1;10736:7;10715:8;:29::i;:::-;-1:-1:-1;;;;;10755:15:9;;;;;;:9;:15;;;;;:20;;10774:1;;10755:15;:20;;10774:1;;10755:20;:::i;:::-;;;;-1:-1:-1;;;;;;;10785:13:9;;;;;;:9;:13;;;;;:18;;10802:1;;10785:13;:18;;10802:1;;10785:18;:::i;:::-;;;;-1:-1:-1;;10813:16:9;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;10813:21:9;-1:-1:-1;;;;;10813:21:9;;;;;;;;;10850:27;;10813:16;;10850:27;;;;-1:-1:-1;;;;;;;;;;;10850:27:9;;10324:560;;;:::o;10001:362:28:-;10128:7;;10118:6;10090:25;:15;918:14:19;;827:112;10090:25:28;:34;;;;:::i;:::-;:45;;10082:114;;;;-1:-1:-1;;;10082:114:28;;33130:2:43;10082:114:28;;;33112:21:43;33169:2;33149:18;;;33142:30;33208:34;33188:18;;;33181:62;-1:-1:-1;;;33259:18:43;;;33252:54;33323:19;;10082:114:28;32928:420:43;10082:114:28;10212:9;10207:149;10231:6;10227:1;:10;10207:149;;;10259:43;10269:5;10276:25;:15;918:14:19;;827:112;10276:25:28;10259:9;:43::i;:::-;10317:27;:15;1032:19:19;;1050:1;1032:19;;;945:123;10317:27:28;10239:3;;;;:::i;:::-;;;;10207:149;;8740:138;8794:12;8830:7;;8809:18;:16;:18::i;:::-;:28;;;;:::i;:::-;8794:43;;8848:22;8858:2;8862:7;8848:9;:22::i;9663:112::-;9747:20;9759:7;9747:11;:20::i;8976:103::-;9049:22;9059:2;9063:7;9049:9;:22::i;2270:187:4:-;2362:6;;;-1:-1:-1;;;;;2378:17:4;;;-1:-1:-1;;;;;;2378:17:4;;;;;;;2410:40;;2362:6;;;2378:17;2362:6;;2410:40;;2343:16;;2410:40;2333:124;2270:187;:::o;1277:214:14:-;1376:16;1384:7;1376;:16::i;:::-;1368:75;;;;-1:-1:-1;;;1368:75:14;;33555:2:43;1368:75:14;;;33537:21:43;33594:2;33574:18;;;33567:30;33633:34;33613:18;;;33606:62;-1:-1:-1;;;33684:18:43;;;33677:44;33738:19;;1368:75:14;33353:410:43;1368:75:14;1453:19;;;;:10;:19;;;;;;;;:31;;;;;;;;:::i;11301:307:9:-;11451:8;-1:-1:-1;;;;;11442:17:9;:5;-1:-1:-1;;;;;11442:17:9;;;11434:55;;;;-1:-1:-1;;;11434:55:9;;33970:2:43;11434:55:9;;;33952:21:43;34009:2;33989:18;;;33982:30;-1:-1:-1;;;34028:18:43;;;34021:55;34093:18;;11434:55:9;33768:349:43;11434:55:9;-1:-1:-1;;;;;11499:25:9;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;11499:46:9;;;;;;;;;;11560:41;;2315::43;;;11560::9;;2288:18:43;11560:41:9;;;;;;;11301:307;;;:::o;6534:::-;6685:28;6695:4;6701:2;6705:7;6685:9;:28::i;:::-;6731:48;6754:4;6760:2;6764:7;6773:5;6731:22;:48::i;:::-;6723:111;;;;-1:-1:-1;;;6723:111:9;;;;;;;:::i;467:663:14:-;540:13;573:16;581:7;573;:16::i;:::-;565:78;;;;-1:-1:-1;;;565:78:14;;34743:2:43;565:78:14;;;34725:21:43;34782:2;34762:18;;;34755:30;34821:34;34801:18;;;34794:62;-1:-1:-1;;;34872:18:43;;;34865:47;34929:19;;565:78:14;34541:413:43;565:78:14;654:23;680:19;;;:10;:19;;;;;654:45;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;709:18;730:10;:8;:10::i;:::-;709:31;;819:4;813:18;835:1;813:23;809:70;;;-1:-1:-1;859:9:14;467:663;-1:-1:-1;;467:663:14:o;809:70::-;981:23;;:27;977:106;;1055:4;1061:9;1038:33;;;;;;;;;:::i;:::-;;;;;;;;;;;;;1024:48;;;;467:663;;;:::o;977:106::-;1100:23;1115:7;1100:14;:23::i;1555:300:9:-;1657:4;-1:-1:-1;;;;;;1692:40:9;;-1:-1:-1;;;1692:40:9;;:104;;-1:-1:-1;;;;;;;1748:48:9;;-1:-1:-1;;;1748:48:9;1692:104;:156;;;-1:-1:-1;;;;;;;;;;937:40:21;;;1812:36:9;829:155:21;8101:108:9;8176:26;8186:2;8190:7;8176:26;;;;;;;;;;;;:9;:26::i;9443:212:28:-;9602:45;9629:4;9635:2;9639:7;9602:26;:45::i;519:786:42:-;573:7;593:13;621:11;;609:9;:23;;;;:::i;:::-;593:39;;643:12;666:14;693:9;722:5;705:14;:12;:14::i;:::-;:22;;;;:::i;:::-;693:34;-1:-1:-1;806:11:42;:22;818:9;826:1;818:5;:9;:::i;:::-;806:22;;;;;;;;;;;;832:1;806:27;802:138;;;857:9;865:1;857:5;:9;:::i;:::-;850:16;;802:138;;;906:11;:22;918:9;926:1;918:5;:9;:::i;:::-;906:22;;;;;;;;;;;;899:29;;802:138;1064:14;;;;:11;:14;;;;;;1060:190;;1125:14;;;;:11;:14;;;;;:21;;;1109:1;-1:-1:-1;1109:1:42;1060:190;;;1188:14;;;;:11;:14;;;;;;;1217:21;;;;1188:14;-1:-1:-1;1060:190:42;1260:11;:13;;;:11;:13;;;:::i;:::-;;;;-1:-1:-1;1291:6:42;;519:786;-1:-1:-1;;;;;519:786:42:o;1708:200:14:-;1776:20;1788:7;1776:11;:20::i;:::-;1817:19;;;;:10;:19;;;;;1811:33;;;;;:::i;:::-;:38;;-1:-1:-1;1807:95:14;;1872:19;;;;:10;:19;;;;;1865:26;;;:::i;12161:778:9:-;12311:4;-1:-1:-1;;;;;12331:13:9;;1087:20:17;1133:8;12327:606:9;;12366:72;;-1:-1:-1;;;12366:72:9;;-1:-1:-1;;;;;12366:36:9;;;;;:72;;719:10:18;;12417:4:9;;12423:7;;12432:5;;12366:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12366:72:9;;;;;;;;-1:-1:-1;;12366:72:9;;;;;;;;;;;;:::i;:::-;;;12362:519;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12605:13:9;;12601:266;;12647:60;;-1:-1:-1;;;12647:60:9;;;;;;;:::i;12601:266::-;12819:6;12813:13;12804:6;12800:2;12796:15;12789:38;12362:519;-1:-1:-1;;;;;;12488:51:9;-1:-1:-1;;;12488:51:9;;-1:-1:-1;12481:58:9;;12327:606;-1:-1:-1;12918:4:9;12161:778;;;;;;:::o;4529:100:28:-;4581:13;4614:7;4607:14;;;;;:::i;2803:329:9:-;2876:13;2909:16;2917:7;2909;:16::i;:::-;2901:76;;;;-1:-1:-1;;;2901:76:9;;36501:2:43;2901:76:9;;;36483:21:43;36540:2;36520:18;;;36513:30;36579:34;36559:18;;;36552:62;-1:-1:-1;;;36630:18:43;;;36623:45;36685:19;;2901:76:9;36299:411:43;2901:76:9;2988:21;3012:10;:8;:10::i;:::-;2988:34;;3063:1;3045:7;3039:21;:25;:86;;;;;;;;;;;;;;;;;3091:7;3100:18;:7;:16;:18::i;:::-;3074:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;3039:86;3032:93;2803:329;-1:-1:-1;;;2803:329:9:o;8430:311::-;8555:18;8561:2;8565:7;8555:5;:18::i;:::-;8604:54;8635:1;8639:2;8643:7;8652:5;8604:22;:54::i;:::-;8583:151;;;;-1:-1:-1;;;8583:151:9;;;;;;;:::i;2624:572:13:-;-1:-1:-1;;;;;2823:18:13;;2819:183;;2857:40;2889:7;4005:10;:17;;3978:24;;;;:15;:24;;;;;:44;;;4032:24;;;;;;;;;;;;3902:161;2857:40;2819:183;;;2926:2;-1:-1:-1;;;;;2918:10:13;:4;-1:-1:-1;;;;;2918:10:13;;2914:88;;2944:47;2977:4;2983:7;2944:32;:47::i;:::-;-1:-1:-1;;;;;3015:16:13;;3011:179;;3047:45;3084:7;3047:36;:45::i;3011:179::-;3119:4;-1:-1:-1;;;;;3113:10:13;:2;-1:-1:-1;;;;;3113:10:13;;3109:81;;3139:40;3167:2;3171:7;3139:27;:40::i;1313:153:42:-;1360:7;1422:16;1440:15;1405:51;;;;;;;;36872:19:43;;;36916:2;36907:12;;36900:28;36953:2;36944:12;;36715:247;1405:51:42;;;;;;;;;;;;;1395:62;;;;;;1387:71;;1380:78;;1313:153;:::o;9652:348:9:-;9711:13;9727:23;9742:7;9727:14;:23::i;:::-;9711:39;;9761:48;9782:5;9797:1;9801:7;9761:20;:48::i;:::-;9847:29;9864:1;9868:7;9847:8;:29::i;:::-;-1:-1:-1;;;;;9887:16:9;;;;;;:9;:16;;;;;:21;;9907:1;;9887:16;:21;;9907:1;;9887:21;:::i;:::-;;;;-1:-1:-1;;9925:16:9;;;;:7;:16;;;;;;9918:23;;-1:-1:-1;;;;;;9918:23:9;;;9957:36;9933:7;;9925:16;-1:-1:-1;;;;;9957:36:9;;;-1:-1:-1;;;;;;;;;;;9957:36:9;9925:16;;9957:36;9701:299;9652:348;:::o;328:703:20:-;384:13;601:10;597:51;;-1:-1:-1;;627:10:20;;;;;;;;;;;;-1:-1:-1;;;627:10:20;;;;;328:703::o;597:51::-;672:5;657:12;711:75;718:9;;711:75;;743:8;;;;:::i;:::-;;-1:-1:-1;765:10:20;;-1:-1:-1;773:2:20;765:10;;:::i;:::-;;;711:75;;;795:19;827:6;-1:-1:-1;;;;;817:17:20;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;817:17:20;;795:39;;844:150;851:10;;844:150;;877:11;887:1;877:11;;:::i;:::-;;-1:-1:-1;945:10:20;953:2;945:5;:10;:::i;:::-;932:24;;:2;:24;:::i;:::-;919:39;;902:6;909;902:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;902:56:20;;;;;;;;-1:-1:-1;972:11:20;981:2;972:11;;:::i;:::-;;;844:150;;9063:372:9;-1:-1:-1;;;;;9142:16:9;;9134:61;;;;-1:-1:-1;;;9134:61:9;;37169:2:43;9134:61:9;;;37151:21:43;;;37188:18;;;37181:30;37247:34;37227:18;;;37220:62;37299:18;;9134:61:9;36967:356:43;9134:61:9;9214:16;9222:7;9214;:16::i;:::-;9213:17;9205:58;;;;-1:-1:-1;;;9205:58:9;;37530:2:43;9205:58:9;;;37512:21:43;37569:2;37549:18;;;37542:30;-1:-1:-1;;;37588:18:43;;;37581:58;37656:18;;9205:58:9;37328:352:43;9205:58:9;9274:45;9303:1;9307:2;9311:7;9274:20;:45::i;:::-;-1:-1:-1;;;;;9330:13:9;;;;;;:9;:13;;;;;:18;;9347:1;;9330:13;:18;;9347:1;;9330:18;:::i;:::-;;;;-1:-1:-1;;9358:16:9;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;9358:21:9;-1:-1:-1;;;;;9358:21:9;;;;;;;;9395:33;;9358:16;;;-1:-1:-1;;;;;;;;;;;9395:33:9;9358:16;;9395:33;9063:372;;:::o;4680:970:13:-;4942:22;4992:1;4967:22;4984:4;4967:16;:22::i;:::-;:26;;;;:::i;:::-;5003:18;5024:26;;;:17;:26;;;;;;4942:51;;-1:-1:-1;5154:28:13;;;5150:323;;-1:-1:-1;;;;;5220:18:13;;5198:19;5220:18;;;:12;:18;;;;;;;;:34;;;;;;;;;5269:30;;;;;;:44;;;5385:30;;:17;:30;;;;;:43;;;5150:323;-1:-1:-1;5566:26:13;;;;:17;:26;;;;;;;;5559:33;;;-1:-1:-1;;;;;5609:18:13;;;;;:12;:18;;;;;:34;;;;;;;5602:41;4680:970::o;5938:1061::-;6212:10;:17;6187:22;;6212:21;;6232:1;;6212:21;:::i;:::-;6243:18;6264:24;;;:15;:24;;;;;;6632:10;:26;;6187:46;;-1:-1:-1;6264:24:13;;6187:46;;6632:26;;;;;;:::i;:::-;;;;;;;;;6610:48;;6694:11;6669:10;6680;6669:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;6773:28;;;:15;:28;;;;;;;:41;;;6942:24;;;;;6935:31;6976:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;6009:990;;;5938:1061;:::o;3490:217::-;3574:14;3591:20;3608:2;3591:16;:20::i;:::-;-1:-1:-1;;;;;3621:16:13;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;3665:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;3490:217:13:o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14:159:43;81:20;;141:6;130:18;;120:29;;110:57;;163:1;160;153:12;110:57;14:159;;;:::o;178:127::-;239:10;234:3;230:20;227:1;220:31;270:4;267:1;260:15;294:4;291:1;284:15;310:275;381:2;375:9;446:2;427:13;;-1:-1:-1;;423:27:43;411:40;;-1:-1:-1;;;;;466:34:43;;502:22;;;463:62;460:88;;;528:18;;:::i;:::-;564:2;557:22;310:275;;-1:-1:-1;310:275:43:o;590:530::-;632:5;685:3;678:4;670:6;666:17;662:27;652:55;;703:1;700;693:12;652:55;739:6;726:20;-1:-1:-1;;;;;761:2:43;758:26;755:52;;;787:18;;:::i;:::-;831:55;874:2;855:13;;-1:-1:-1;;851:27:43;880:4;847:38;831:55;:::i;:::-;911:2;902:7;895:19;957:3;950:4;945:2;937:6;933:15;929:26;926:35;923:55;;;974:1;971;964:12;923:55;1039:2;1032:4;1024:6;1020:17;1013:4;1004:7;1000:18;987:55;1087:1;1062:16;;;1080:4;1058:27;1051:38;;;;1066:7;590:530;-1:-1:-1;;;590:530:43:o;1125:171::-;1192:20;;-1:-1:-1;;;;;1241:30:43;;1231:41;;1221:69;;1286:1;1283;1276:12;1301:684;1403:6;1411;1419;1427;1480:3;1468:9;1459:7;1455:23;1451:33;1448:53;;;1497:1;1494;1487:12;1448:53;1520:28;1538:9;1520:28;:::i;:::-;1510:38;;1599:2;1588:9;1584:18;1571:32;-1:-1:-1;;;;;1663:2:43;1655:6;1652:14;1649:34;;;1679:1;1676;1669:12;1649:34;1702:49;1743:7;1734:6;1723:9;1719:22;1702:49;:::i;:::-;1692:59;;1770:37;1803:2;1792:9;1788:18;1770:37;:::i;:::-;1760:47;;1860:2;1849:9;1845:18;1832:32;1816:48;;1889:2;1879:8;1876:16;1873:36;;;1905:1;1902;1895:12;1873:36;;1928:51;1971:7;1960:8;1949:9;1945:24;1928:51;:::i;:::-;1918:61;;;1301:684;;;;;;;:::o;1990:180::-;2049:6;2102:2;2090:9;2081:7;2077:23;2073:32;2070:52;;;2118:1;2115;2108:12;2070:52;-1:-1:-1;2141:23:43;;1990:180;-1:-1:-1;1990:180:43:o;2367:131::-;-1:-1:-1;;;;;;2441:32:43;;2431:43;;2421:71;;2488:1;2485;2478:12;2503:245;2561:6;2614:2;2602:9;2593:7;2589:23;2585:32;2582:52;;;2630:1;2627;2620:12;2582:52;2669:9;2656:23;2688:30;2712:5;2688:30;:::i;2753:131::-;-1:-1:-1;;;;;2828:31:43;;2818:42;;2808:70;;2874:1;2871;2864:12;2889:247;2948:6;3001:2;2989:9;2980:7;2976:23;2972:32;2969:52;;;3017:1;3014;3007:12;2969:52;3056:9;3043:23;3075:31;3100:5;3075:31;:::i;3141:258::-;3213:1;3223:113;3237:6;3234:1;3231:13;3223:113;;;3313:11;;;3307:18;3294:11;;;3287:39;3259:2;3252:10;3223:113;;;3354:6;3351:1;3348:13;3345:48;;;-1:-1:-1;;3389:1:43;3371:16;;3364:27;3141:258::o;3404:::-;3446:3;3484:5;3478:12;3511:6;3506:3;3499:19;3527:63;3583:6;3576:4;3571:3;3567:14;3560:4;3553:5;3549:16;3527:63;:::i;:::-;3644:2;3623:15;-1:-1:-1;;3619:29:43;3610:39;;;;3651:4;3606:50;;3404:258;-1:-1:-1;;3404:258:43:o;3667:220::-;3816:2;3805:9;3798:21;3779:4;3836:45;3877:2;3866:9;3862:18;3854:6;3836:45;:::i;3892:160::-;3957:20;;4013:13;;4006:21;3996:32;;3986:60;;4042:1;4039;4032:12;4057:180;4113:6;4166:2;4154:9;4145:7;4141:23;4137:32;4134:52;;;4182:1;4179;4172:12;4134:52;4205:26;4221:9;4205:26;:::i;4242:104::-;-1:-1:-1;;;;;4308:31:43;4296:44;;4242:104::o;4559:315::-;4627:6;4635;4688:2;4676:9;4667:7;4663:23;4659:32;4656:52;;;4704:1;4701;4694:12;4656:52;4743:9;4730:23;4762:31;4787:5;4762:31;:::i;:::-;4812:5;4864:2;4849:18;;;;4836:32;;-1:-1:-1;;;4559:315:43:o;5061:456::-;5138:6;5146;5154;5207:2;5195:9;5186:7;5182:23;5178:32;5175:52;;;5223:1;5220;5213:12;5175:52;5262:9;5249:23;5281:31;5306:5;5281:31;:::i;:::-;5331:5;-1:-1:-1;5388:2:43;5373:18;;5360:32;5401:33;5360:32;5401:33;:::i;:::-;5061:456;;5453:7;;-1:-1:-1;;;5507:2:43;5492:18;;;;5479:32;;5061:456::o;5522:787::-;5576:5;5629:3;5622:4;5614:6;5610:17;5606:27;5596:55;;5647:1;5644;5637:12;5596:55;5683:6;5670:20;5709:4;-1:-1:-1;;;;;5728:2:43;5725:26;5722:52;;;5754:18;;:::i;:::-;5800:2;5797:1;5793:10;5823:28;5847:2;5843;5839:11;5823:28;:::i;:::-;5885:15;;;5955;;;5951:24;;;5916:12;;;;5987:15;;;5984:35;;;6015:1;6012;6005:12;5984:35;6051:2;6043:6;6039:15;6028:26;;6063:217;6079:6;6074:3;6071:15;6063:217;;;6159:3;6146:17;6176:31;6201:5;6176:31;:::i;:::-;6220:18;;6096:12;;;;6258;;;;6063:217;;;6298:5;5522:787;-1:-1:-1;;;;;;;5522:787:43:o;6314:416::-;6407:6;6415;6468:2;6456:9;6447:7;6443:23;6439:32;6436:52;;;6484:1;6481;6474:12;6436:52;6524:9;6511:23;-1:-1:-1;;;;;6549:6:43;6546:30;6543:50;;;6589:1;6586;6579:12;6543:50;6612:61;6665:7;6656:6;6645:9;6641:22;6612:61;:::i;:::-;6602:71;6720:2;6705:18;;;;6692:32;;-1:-1:-1;;;;6314:416:43:o;6735:248::-;6803:6;6811;6864:2;6852:9;6843:7;6839:23;6835:32;6832:52;;;6880:1;6877;6870:12;6832:52;-1:-1:-1;;6903:23:43;;;6973:2;6958:18;;;6945:32;;-1:-1:-1;6735:248:43:o;6988:274::-;-1:-1:-1;;;;;7180:32:43;;;;7162:51;;7244:2;7229:18;;7222:34;7150:2;7135:18;;6988:274::o;7267:184::-;7325:6;7378:2;7366:9;7357:7;7353:23;7349:32;7346:52;;;7394:1;7391;7384:12;7346:52;7417:28;7435:9;7417:28;:::i;7456:348::-;7540:6;7593:2;7581:9;7572:7;7568:23;7564:32;7561:52;;;7609:1;7606;7599:12;7561:52;7649:9;7636:23;-1:-1:-1;;;;;7674:6:43;7671:30;7668:50;;;7714:1;7711;7704:12;7668:50;7737:61;7790:7;7781:6;7770:9;7766:22;7737:61;:::i;7809:321::-;7878:6;7931:2;7919:9;7910:7;7906:23;7902:32;7899:52;;;7947:1;7944;7937:12;7899:52;7987:9;7974:23;-1:-1:-1;;;;;8012:6:43;8009:30;8006:50;;;8052:1;8049;8042:12;8006:50;8075:49;8116:7;8107:6;8096:9;8092:22;8075:49;:::i;8358:389::-;8436:6;8444;8497:2;8485:9;8476:7;8472:23;8468:32;8465:52;;;8513:1;8510;8503:12;8465:52;8549:9;8536:23;8526:33;;8610:2;8599:9;8595:18;8582:32;-1:-1:-1;;;;;8629:6:43;8626:30;8623:50;;;8669:1;8666;8659:12;8623:50;8692:49;8733:7;8724:6;8713:9;8709:22;8692:49;:::i;:::-;8682:59;;;8358:389;;;;;:::o;8752:460::-;8837:6;8845;8853;8906:2;8894:9;8885:7;8881:23;8877:32;8874:52;;;8922:1;8919;8912:12;8874:52;8945:28;8963:9;8945:28;:::i;:::-;8935:38;;9024:2;9013:9;9009:18;8996:32;-1:-1:-1;;;;;9043:6:43;9040:30;9037:50;;;9083:1;9080;9073:12;9037:50;9106:49;9147:7;9138:6;9127:9;9123:22;9106:49;:::i;:::-;9096:59;;;9202:2;9191:9;9187:18;9174:32;9164:42;;8752:460;;;;;:::o;9470:315::-;9535:6;9543;9596:2;9584:9;9575:7;9571:23;9567:32;9564:52;;;9612:1;9609;9602:12;9564:52;9651:9;9638:23;9670:31;9695:5;9670:31;:::i;:::-;9720:5;-1:-1:-1;9744:35:43;9775:2;9760:18;;9744:35;:::i;:::-;9734:45;;9470:315;;;;;:::o;9790:665::-;9885:6;9893;9901;9909;9962:3;9950:9;9941:7;9937:23;9933:33;9930:53;;;9979:1;9976;9969:12;9930:53;10018:9;10005:23;10037:31;10062:5;10037:31;:::i;:::-;10087:5;-1:-1:-1;10144:2:43;10129:18;;10116:32;10157:33;10116:32;10157:33;:::i;:::-;10209:7;-1:-1:-1;10263:2:43;10248:18;;10235:32;;-1:-1:-1;10318:2:43;10303:18;;10290:32;-1:-1:-1;;;;;10334:30:43;;10331:50;;;10377:1;10374;10367:12;10331:50;10400:49;10441:7;10432:6;10421:9;10417:22;10400:49;:::i;10460:252::-;10527:6;10535;10588:2;10576:9;10567:7;10563:23;10559:32;10556:52;;;10604:1;10601;10594:12;10556:52;10627:28;10645:9;10627:28;:::i;10717:347::-;10768:8;10778:6;10832:3;10825:4;10817:6;10813:17;10809:27;10799:55;;10850:1;10847;10840:12;10799:55;-1:-1:-1;10873:20:43;;-1:-1:-1;;;;;10905:30:43;;10902:50;;;10948:1;10945;10938:12;10902:50;10985:4;10977:6;10973:17;10961:29;;11037:3;11030:4;11021:6;11013;11009:19;11005:30;11002:39;10999:59;;;11054:1;11051;11044:12;11069:773;11173:6;11181;11189;11197;11205;11258:3;11246:9;11237:7;11233:23;11229:33;11226:53;;;11275:1;11272;11265:12;11226:53;11298:28;11316:9;11298:28;:::i;:::-;11288:38;;11377:2;11366:9;11362:18;11349:32;-1:-1:-1;;;;;11441:2:43;11433:6;11430:14;11427:34;;;11457:1;11454;11447:12;11427:34;11480:49;11521:7;11512:6;11501:9;11497:22;11480:49;:::i;:::-;11470:59;;11548:37;11581:2;11570:9;11566:18;11548:37;:::i;:::-;11538:47;;11638:2;11627:9;11623:18;11610:32;11594:48;;11667:2;11657:8;11654:16;11651:36;;;11683:1;11680;11673:12;11651:36;;11722:60;11774:7;11763:8;11752:9;11748:24;11722:60;:::i;:::-;11069:773;;;;-1:-1:-1;11069:773:43;;-1:-1:-1;11801:8:43;;11696:86;11069:773;-1:-1:-1;;;11069:773:43:o;11847:632::-;12018:2;12070:21;;;12140:13;;12043:18;;;12162:22;;;11989:4;;12018:2;12241:15;;;;12215:2;12200:18;;;11989:4;12284:169;12298:6;12295:1;12292:13;12284:169;;;12359:13;;12347:26;;12428:15;;;;12393:12;;;;12320:1;12313:9;12284:169;;;-1:-1:-1;12470:3:43;;11847:632;-1:-1:-1;;;;;;11847:632:43:o;12484:388::-;12552:6;12560;12613:2;12601:9;12592:7;12588:23;12584:32;12581:52;;;12629:1;12626;12619:12;12581:52;12668:9;12655:23;12687:31;12712:5;12687:31;:::i;:::-;12737:5;-1:-1:-1;12794:2:43;12779:18;;12766:32;12807:33;12766:32;12807:33;:::i;:::-;12859:7;12849:17;;;12484:388;;;;;:::o;12877:481::-;12955:6;12963;12971;13024:2;13012:9;13003:7;12999:23;12995:32;12992:52;;;13040:1;13037;13030:12;12992:52;13063:28;13081:9;13063:28;:::i;:::-;13053:38;;13142:2;13131:9;13127:18;13114:32;-1:-1:-1;;;;;13161:6:43;13158:30;13155:50;;;13201:1;13198;13191:12;13155:50;13240:58;13290:7;13281:6;13270:9;13266:22;13240:58;:::i;:::-;12877:481;;13317:8;;-1:-1:-1;13214:84:43;;-1:-1:-1;;;;12877:481:43:o;13363:380::-;13442:1;13438:12;;;;13485;;;13506:61;;13560:4;13552:6;13548:17;13538:27;;13506:61;13613:2;13605:6;13602:14;13582:18;13579:38;13576:161;;;13659:10;13654:3;13650:20;13647:1;13640:31;13694:4;13691:1;13684:15;13722:4;13719:1;13712:15;13748:811;13874:3;13903:1;13936:6;13930:13;13966:36;13992:9;13966:36;:::i;:::-;14021:1;14038:18;;;14065:104;;;;14183:1;14178:356;;;;14031:503;;14065:104;-1:-1:-1;;14098:24:43;;14086:37;;14143:16;;;;-1:-1:-1;14065:104:43;;14178:356;14209:6;14206:1;14199:17;14239:4;14284:2;14281:1;14271:16;14309:1;14323:165;14337:6;14334:1;14331:13;14323:165;;;14415:14;;14402:11;;;14395:35;14458:16;;;;14352:10;;14323:165;;;14327:3;;;14517:6;14512:3;14508:16;14501:23;;14031:503;-1:-1:-1;14550:3:43;;13748:811;-1:-1:-1;;;;;;13748:811:43:o;14985:557::-;15242:6;15234;15230:19;15219:9;15212:38;15286:3;15281:2;15270:9;15266:18;15259:31;15193:4;15313:46;15354:3;15343:9;15339:19;15331:6;15313:46;:::i;:::-;-1:-1:-1;;;;;15399:6:43;15395:31;15390:2;15379:9;15375:18;15368:59;15475:9;15467:6;15463:22;15458:2;15447:9;15443:18;15436:50;15503:33;15529:6;15521;15503:33;:::i;15547:274::-;15676:3;15714:6;15708:13;15730:53;15776:6;15771:3;15764:4;15756:6;15752:17;15730:53;:::i;:::-;15799:16;;;;;15547:274;-1:-1:-1;;15547:274:43:o;15826:356::-;16028:2;16010:21;;;16047:18;;;16040:30;16106:34;16101:2;16086:18;;16079:62;16173:2;16158:18;;15826:356::o;17839:413::-;18041:2;18023:21;;;18080:2;18060:18;;;18053:30;18119:34;18114:2;18099:18;;18092:62;-1:-1:-1;;;18185:2:43;18170:18;;18163:47;18242:3;18227:19;;17839:413::o;18257:127::-;18318:10;18313:3;18309:20;18306:1;18299:31;18349:4;18346:1;18339:15;18373:4;18370:1;18363:15;18389:127;18450:10;18445:3;18441:20;18438:1;18431:31;18481:4;18478:1;18471:15;18505:4;18502:1;18495:15;18521:135;18560:3;-1:-1:-1;;18581:17:43;;18578:43;;;18601:18;;:::i;:::-;-1:-1:-1;18648:1:43;18637:13;;18521:135::o;18661:168::-;18701:7;18767:1;18763;18759:6;18755:14;18752:1;18749:21;18744:1;18737:9;18730:17;18726:45;18723:71;;;18774:18;;:::i;:::-;-1:-1:-1;18814:9:43;;18661:168::o;18834:127::-;18895:10;18890:3;18886:20;18883:1;18876:31;18926:4;18923:1;18916:15;18950:4;18947:1;18940:15;18966:120;19006:1;19032;19022:35;;19037:18;;:::i;:::-;-1:-1:-1;19071:9:43;;18966:120::o;19914:344::-;20116:2;20098:21;;;20155:2;20135:18;;;20128:30;-1:-1:-1;;;20189:2:43;20174:18;;20167:50;20249:2;20234:18;;19914:344::o;22669:128::-;22709:3;22740:1;22736:6;22733:1;22730:13;22727:39;;;22746:18;;:::i;:::-;-1:-1:-1;22782:9:43;;22669:128::o;22802:125::-;22842:4;22870:1;22867;22864:8;22861:34;;;22875:18;;:::i;:::-;-1:-1:-1;22912:9:43;;22802:125::o;26338:642::-;26619:6;26607:19;;26589:38;;-1:-1:-1;;;;;26663:32:43;;26658:2;26643:18;;26636:60;26683:3;26727:2;26712:18;;26705:31;;;-1:-1:-1;;26759:46:43;;26785:19;;26777:6;26759:46;:::i;:::-;26855:6;26848:14;26841:22;26836:2;26825:9;26821:18;26814:50;26913:9;26905:6;26901:22;26895:3;26884:9;26880:19;26873:51;26941:33;26967:6;26959;26941:33;:::i;:::-;26933:41;26338:642;-1:-1:-1;;;;;;;;26338:642:43:o;26985:245::-;27064:6;27072;27125:2;27113:9;27104:7;27100:23;27096:32;27093:52;;;27141:1;27138;27131:12;27093:52;-1:-1:-1;;27164:16:43;;27220:2;27205:18;;;27199:25;27164:16;;27199:25;;-1:-1:-1;26985:245:43:o;27718:1484::-;28064:6;28056;28052:19;28041:9;28034:38;28015:4;28091:2;28129:3;28124:2;28113:9;28109:18;28102:31;28153:1;28186:6;28180:13;28216:36;28242:9;28216:36;:::i;:::-;28289:6;28283:3;28272:9;28268:19;28261:35;28315:3;28337:1;28369:2;28358:9;28354:18;28386:1;28381:122;;;;28517:1;28512:354;;;;28347:519;;28381:122;-1:-1:-1;;28429:24:43;;28409:18;;;28402:52;28489:3;28474:19;;;-1:-1:-1;28381:122:43;;28512:354;28543:6;28540:1;28533:17;28591:2;28588:1;28578:16;28616:1;28630:180;28644:6;28641:1;28638:13;28630:180;;;28737:14;;28713:17;;;28709:26;;28702:50;28780:16;;;;28659:10;;28630:180;;;28834:17;;28830:26;;;-1:-1:-1;;28347:519:43;;;;;;28911:9;28906:3;28902:19;28897:2;28886:9;28882:18;28875:47;28945:30;28971:3;28963:6;28945:30;:::i;:::-;28931:44;;;28984:46;29026:2;29015:9;29011:18;29003:6;28984:46;:::i;:::-;29039:47;29081:3;29070:9;29066:19;29058:6;29039:47;:::i;:::-;29135:9;29127:6;29123:22;29117:3;29106:9;29102:19;29095:51;29163:33;29189:6;29181;29163:33;:::i;:::-;29155:41;27718:1484;-1:-1:-1;;;;;;;;;27718:1484:43:o;29614:271::-;29797:6;29789;29784:3;29771:33;29753:3;29823:16;;29848:13;;;29823:16;29614:271;-1:-1:-1;29614:271:43:o;30245:718::-;30512:6;30504;30500:19;30489:9;30482:38;30556:3;30551:2;30540:9;30536:18;30529:31;30463:4;30583:46;30624:3;30613:9;30609:19;30601:6;30583:46;:::i;:::-;-1:-1:-1;;;;;30669:6:43;30665:31;30660:2;30649:9;30645:18;30638:59;30745:9;30737:6;30733:22;30728:2;30717:9;30713:18;30706:50;30780:6;30772;30765:22;30834:6;30826;30821:2;30813:6;30809:15;30796:45;30887:1;30882:2;30873:6;30865;30861:19;30857:28;30850:39;30954:2;30947;30943:7;30938:2;30930:6;30926:15;30922:29;30914:6;30910:42;30906:51;30898:59;;;30245:718;;;;;;;;:::o;31375:320::-;31462:6;31470;31523:2;31511:9;31502:7;31498:23;31494:32;31491:52;;;31539:1;31536;31529:12;31491:52;31571:9;31565:16;31590:31;31615:5;31590:31;:::i;:::-;31685:2;31670:18;;;;31664:25;31640:5;;31664:25;;-1:-1:-1;;;31375:320:43:o;34122:414::-;34324:2;34306:21;;;34363:2;34343:18;;;34336:30;34402:34;34397:2;34382:18;;34375:62;-1:-1:-1;;;34468:2:43;34453:18;;34446:48;34526:3;34511:19;;34122:414::o;34959:470::-;35138:3;35176:6;35170:13;35192:53;35238:6;35233:3;35226:4;35218:6;35214:17;35192:53;:::i;:::-;35308:13;;35267:16;;;;35330:57;35308:13;35267:16;35364:4;35352:17;;35330:57;:::i;:::-;35403:20;;34959:470;-1:-1:-1;;;;34959:470:43:o;35434:112::-;35466:1;35492;35482:35;;35497:18;;:::i;:::-;-1:-1:-1;35531:9:43;;35434:112::o;35551:489::-;-1:-1:-1;;;;;35820:15:43;;;35802:34;;35872:15;;35867:2;35852:18;;35845:43;35919:2;35904:18;;35897:34;;;35967:3;35962:2;35947:18;;35940:31;;;35745:4;;35988:46;;36014:19;;36006:6;35988:46;:::i;:::-;35980:54;35551:489;-1:-1:-1;;;;;;35551:489:43:o;36045:249::-;36114:6;36167:2;36155:9;36146:7;36142:23;36138:32;36135:52;;;36183:1;36180;36173:12;36135:52;36215:9;36209:16;36234:30;36258:5;36234:30;:::i;37685:127::-;37746:10;37741:3;37737:20;37734:1;37727:31;37777:4;37774:1;37767:15;37801:4;37798:1;37791:15

Swarm Source

ipfs://d5eb4afdfc6b9dc880e30f0c97860b8881345c6e56b4f648cc76dbd81ab2d4c1
[ 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.