ETH Price: $2,705.61 (-0.19%)

Token

Overview

Max Total Supply

0

Holders

697

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
0xb1f705acc692fb8b820f0559ba54531dafe1e82e
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Contract Source Code Verified (Exact Match)

Contract Name:
ERC1155RH

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 25 : ERC1155RH.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./extensions/ERC1155RHPausable.sol";
import "./extensions/ERC1155RHSupply.sol";
import "./extensions/ERC1155RHMintable.sol";
import "./extensions/ERC1155RHRoyalty.sol";
import "./IERC1155RH.sol";
import '@openzeppelin/contracts/interfaces/IERC2981.sol';
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol";
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol';
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

/**
 * @title ERC1155RH
 * @dev Extends the ERC-1155 contract and provides additional utility methods
 *
 * off-chain allowlist to generate unique coupons which can be used to redeem NFTs by the user.
 * pause unpause mint by token id, set royalty by token id, max supply by token id
 * Track token mints (in addition to token balances)
 * pure IPFS metadata and media uri
 *
 * Token IDs are minted in sequential order (e.g. 1, 2, 3, ...)
 */
contract ERC1155RH is
  Context,
  AccessControlEnumerable,
  ERC1155Burnable,
  ERC1155RHPausable,
  ERC1155RHSupply,
  ERC1155Supply,
  ERC1155RHMintable,
  ERC1155RHRoyalty,
  IERC1155RH,
  IERC2981
{
  bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
  bytes32 public constant ADMIN_MINTER_ROLE = keccak256("ADMIN_MINTER_ROLE");
  bytes32 public constant COUPON_SIGNER_ROLE = keccak256("COUPON_SIGNER_ROLE");

  mapping (uint256 => string) private _tokenURIs;
  uint private _lastTokenId = 1;
  string private _baseURI = "";

  /**
   * @dev Grants `COUPON_SIGNER_ROLE`, `ADMIN_MINTER_ROLE`, and `PAUSER_ROLE
   *`to the account that deploys the contract.
   * Override methods to update the roles to different users.
   * Intitialize with string `ipfs://` to set the base URI as IPFS.
   */
  constructor(string memory baseURI) ERC1155(baseURI) {
    _setupRole(COUPON_SIGNER_ROLE, _msgSender());
    _setupRole(ADMIN_MINTER_ROLE, _msgSender());
    _setupRole(PAUSER_ROLE, _msgSender());
    _baseURI = baseURI;
  }

  /**
   * @dev Returns the uri by token id. Implementation supports ipfs:// format.
   * Compliant with IERC1155MetadataURI interface
   *
   */
  function uri(uint256 id) public view virtual override returns (string memory) {
    return _getURI(id);
  }

  /**
   * @dev Sets the URI for the next token in the sequence
   * tokenId does not need to be provided since it is set for the next token
   * Use function to initialize a new NFT. Please see {_setURI}
   * Requirements:
   * - the caller must have the 'ADMIN_MINTER_ROLE' role
   */
  function setURI(string memory tokenHash) public virtual {
    require(hasRole(ADMIN_MINTER_ROLE, _msgSender()), "Must have minter role to set URL");
    _setURI(tokenHash);
  }

  /**
  * @dev initializes the token on the next token id.
  * sets it to paused state.
  * Sets royalty address and percentage in ppm
  * Requirements:
  * - the caller must have the admin minter role.
  *
  */
  function init(
    string memory tokenHash,
    uint256 _maxSupply,
    uint256 percent,
    address royaltyAddress
  ) public virtual {
    require(hasRole(ADMIN_MINTER_ROLE, _msgSender()), "Must have minter role to setup");
    _setURI(tokenHash);
    _pause(_lastTokenId);
    _setRoyalties(_lastTokenId, royaltyAddress, percent);
    _setMaxSupply(_lastTokenId, _maxSupply);
  }

  /**
   * @dev Sets the URI for the token by token id.
   * Use this to update the metadata for the token.
   *
   * Requirements:
   * - the caller must have the `ADMIN_MINTER_ROLE`.
   */
  function updateURI(uint256 id, string memory tokenHash) public virtual {
    require(hasRole(ADMIN_MINTER_ROLE, _msgSender()), "Must have minter role to set URL");
    _updateURI(id, tokenHash);
  }

  /**
  * @dev Gets the latest token id
  */
  function getLastTokenId() public view virtual returns (uint256 lastTokenId) {
    return _lastTokenId;
  }

  /**
   * @dev Pauses token mint by token id.
   *
   * This method can be used to set conditional logic for allowing mints only
   * during certain conditional is success.
   *
   * Requirements:
   * - the caller must have the `PAUSER_ROLE`.
   */
  function pause(uint256 tokenId) public virtual {
    require(hasRole(PAUSER_ROLE, _msgSender()), "ERC1155PresetMinterPauser: must have pauser role to pause");
    _pause(tokenId);
  }

  /**
   * @dev Unpauses token mint by token id.
   *
   * This method can be used to set conditional logic for allowing mints only
   * during certain conditional is success.
   *
   * Requirements:
   * - the caller must have the `PAUSER_ROLE`.
   */
  function unpause(uint256 tokenId) public virtual {
    require(hasRole(PAUSER_ROLE, _msgSender()), "ERC1155PresetMinterPauser: must have pauser role to unpause");
    _unpause(tokenId);
  }

  /**
   * @dev Returns the current status of the token denoted by token id.
   * status true means mint is enabled.
   * status false means mint is disabled.
   */
  function status(uint256 tokenId) public view returns (bool) {
    bool isMintPaused = _getPausedStatus(tokenId);
    return !isMintPaused;
  }

  /**
   * @dev Admin minter method.
   *
   * This method can be used to set conditional logic for allowing mints only
   * during certain conditional is success.
   *
   * Requirements:
   * - the caller must have the `PAUSER_ROLE`.
   */
  function mint(address to, uint256 id, uint256 amount) public virtual {
    require(hasRole(ADMIN_MINTER_ROLE, _msgSender()), "ERC1155PresetMinterPauser: must have minter role to mint");
    _mint(to, id, amount, '');
  }

  /**
   * @dev User minter method.
   *
   * This method can be used to set conditional logic for allowing mints only
   * during certain conditional is success. Coupon is generated using ecsign method
   * and needs to be signed by admin with COUPON_SIGNER_ROLE
   *
   * Requirements:
   * - the caller must have a valid coupon for the corresponding token id.
   * - Each coupon is only valid for a single mint.
   */
  function mintUser(address to, uint256 id, ControlledAccess memory coupon) public virtual {
    bytes32 digest = keccak256(abi.encode(id, msg.sender));
    require(_isVerifiedAccess(digest, coupon), "Coupon is invalid or expired");
    require(_isMintAllowed(id), "Token minting is currently paused");
    require(_isSupplyAvailable(id, 1), "Max number of tokens already minted");
    require(!_isAlreadyMinted(id, to), "Max 1 mint allowed per user");
    _mint(to, id, 1, '');
  }

  /**
   * @dev Set max supply by token id.
   *
   * Mint is no longer allowed once the max supply is reached.
   * To allow, update to set new value.
   *
   * Requirements:
   * - the caller must have the `ADMIN_MINTER_ROLE`.
   */
  function setMaxSupply(uint256 id, uint256 amount) public virtual {
    require(hasRole(ADMIN_MINTER_ROLE, _msgSender()), "Must have minter role to set supply");
    _setMaxSupply(id, amount);
  }

  /**
  * @dev returns the max supply of the token given by token id.
  * If max supply is not set then returns 0.
  *
  */
  function maxSupply(uint256 id) public view virtual returns (uint256) {
    return _getMaxSupply(id);
  }

  // EIP2981 standard royalties return.
  /**
  * ERC-2981 methods override to return the royalty amount for a given token id.
  * if royalty is not set the methods returns 00 address and 0% royalty.
  */
  function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view override
      returns (address receiver, uint256 royaltyAmount)
  {
    return _getRoyaltyInfo(_tokenId, _salePrice);
  }

  // Internal functions

  /**
   * @dev Check that the coupon was signed by signer address role user.
   * Check that the tokenid in the coupon matches the token id being requested.
   * Coupon was signed using ecsign method.
   *
   */
  function _isVerifiedAccess(bytes32 digest, ControlledAccess memory coupon)
    private
    view
    returns (bool)
  {
    address signer = ecrecover(digest, coupon.v, coupon.r, coupon.s);
    require(signer != address(0), 'ECDSA: invalid signature');
    return hasRole(COUPON_SIGNER_ROLE, signer);
  }

  /**
   * @dev returns true is mint is currently unpaused.
   */
  function _isMintAllowed(uint256 id) private view returns (bool pausedStatus) {
    bool isMintPaused = _getPausedStatus(id);
    return !isMintPaused;
  }

  /**
   * @dev Returns true if total supply is less than max supply.
   */
  function _isSupplyAvailable(uint256 id, uint256 newAmount) private view returns (bool pausedStatus) {
    uint256 newSupply = totalSupply(id) + newAmount;
    uint256 _maxSupply = _getMaxSupply(id);
    return newSupply <= _maxSupply ? true : false;
  }

  /**
   * @dev overrides _beforeTokenTransfer
   */
  function _beforeTokenTransfer(
    address operator,
    address from,
    address to,
    uint256[] memory ids,
    uint256[] memory amounts,
    bytes memory data
  ) internal virtual override(ERC1155Supply, ERC1155)
  {
    super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
  }

  /**
   * @dev overrides ERC1155 _mint function.
   * Adds mint record to mapping tokenId => ([address=>amount])
   */
  function _mint(
    address to,
    uint256 id,
    uint256 amount,
    bytes memory data
  ) internal virtual override {
    super._mint(to, id, amount, data);
    _addMint(to, id, amount);
  }

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

  /**
   * @dev gets the uri by appending base uri to token id.
   * pure IPFS metadata URLs are supported.
   */
  function _getURI(uint256 tokenId) internal view virtual returns (string memory) {
    string memory _tokenURI = _tokenURIs[tokenId];
    return string(abi.encodePacked(_baseURI, _tokenURI));
  }

  /**
   * @dev updates the uri of a token by id.
   * See _tokenURIs data structure.
   */
  function _updateURI(uint256 id, string memory _uri) internal virtual {
    _tokenURIs[id] = _uri;
  }

  /**
   * @dev sets the last token id to hash and updates the tokenId counter.
   */
  function _setURI(string memory _uri) internal virtual override {
    _tokenURIs[++_lastTokenId] = _uri;
  }
}

File 2 of 25 : IERC1155RH.sol
// SPDX-License-Identifier: MIT
// ERCC1155RH Contracts Creator rabbithole_gg
// Creator: Rabbithole.gg

pragma solidity ^0.8.0;

/**
 * @dev Interface of ERC1155RH
 */
interface IERC1155RH {
  // =============================================================
  //                            STRUCTS
  // =============================================================
  struct ControlledAccess {
    bytes32 r;
    bytes32 s;
    uint8 v;
  }
}

File 3 of 25 : ERC1155RHSupply.sol
// SPDX-License-Identifier: MIT
// ERCC1155RH Contracts Creator rabbithole_gg

pragma solidity ^0.8.0;

abstract contract ERC1155RHSupply {
  mapping (uint256 => uint256) private _maxSupply;
  /**
   * @dev returns the max supply of a token by token id.
   * returns 0 if max supply is not set.
   * call this method in mint functions to ensure user is not able to mint more than max supply
   */
  function _getMaxSupply(uint256 id) internal view virtual returns (uint256) {
    return _maxSupply[id];
  }

  /**
   * @dev sets the max supply for token by token id.
   * Ensure this method is gated by ADMIN_MINTER_ROLE on the caller side
   */
  function _setMaxSupply(uint256 id, uint256 amount) internal virtual {
    _maxSupply[id] = amount;
  }
}

File 4 of 25 : ERC1155RHMintable.sol
// SPDX-License-Identifier: MIT
// ERCC1155RH Contracts Creator rabbithole_gg

/**
 * @title ERC1155RHMintable
 * @dev Contains the getters and setters for mapping user to mints.
 * User mint records are permanent and does not get removed upon sales/transfers.
 * Call the _isAlreadyMinted function to check for user mints before allowing user to mint new token.
 */

pragma solidity ^0.8.0;

abstract contract ERC1155RHMintable {
  // Mapping from token ID to account balances
  mapping(uint256 => mapping(address => uint256)) private _mints;

  /**
   * @dev returns the number of mints by an account for a given token id.
   * returns 0 if the user doesn't exist in the mapping of the number of mints is 0.
   */
  function getMints(uint256 id, address account) public view returns (uint256 mints) {
    require(account != address(0), "ERC1155: address zero is not a valid owner");
    return _mints[id][account];
  }

  /**
   * @dev returns true if the user has already minted more than 1
   * tokens of the token given by the tokenID
   */
  function _isAlreadyMinted(uint256 id, address account) internal view returns (bool alreadyMinted) {
    return _mints[id][account] > 0 ? true : false;
  }

  /**
   * @dev Adds a user mint to the mapping given by token id.
   * this methods should be gated by ROLE on the caller contract
   */
  function _addMint(
      address to,
      uint256 id,
      uint256 amount
  ) internal virtual {
    _mints[id][to] += amount;
  }
}

File 5 of 25 : ERC1155RHPausable.sol
// SPDX-License-Identifier: MIT
// ERCC1155RH Contracts Creator rabbithole_gg

pragma solidity ^0.8.0;

abstract contract ERC1155RHPausable {

  /**
  * @dev Emitted when the pause is triggered by `account`.
  */
  event Paused(uint256 tokenId);

  /**
  * @dev Emitted when the pause is lifted by `account`.
  */
  event Unpaused(uint256 tokenId);

  mapping (uint256 => bool) private _mintPaused;

  /**
   * @dev Add a token given by token id to paused state napping data-structure.
   * Mint function implementation should not allow mint
   * if the token represented by the givn tokenId is set to true.
   * This methods should be gated by the PAUSER_ROLE on the caller side.
   */
  function _pause(uint256 tokenId) internal virtual {
    _mintPaused[tokenId] = true;
    emit Paused(tokenId);
  }

  /**
   * @dev Add a token given by token id to unpaused state napping data-structure.
   * Mint function implementation should allow mint
   * if the token represented by the givn tokenId is set to false.
   * This methods should be gated by the PAUSER_ROLE on the caller side.
   */
  function _unpause(uint256 tokenId) internal virtual {
    _mintPaused[tokenId] = false;
    emit Unpaused(tokenId);
  }

  /**
   * @dev Add a token given by token id to paused state napping data-structure.
   * Mint function implementation should not allow mint
   * if the token represented by the givn tokenId is set to true.
   * This methods should be gated by the PAUSER_ROLE on the caller side.
   */
  function _getPausedStatus(uint256 tokenId) internal view returns (bool paused) {
    return _mintPaused[tokenId];
  }
}

File 6 of 25 : ERC1155RHRoyalty.sol
// SPDX-License-Identifier: MIT
// ERCC1155RH Contracts Creator rabbithole_gg

pragma solidity ^0.8.0;

import './IERC1155RHRoyalty.sol';

/**
 * @title ERC1155RHRoyalty
 * @dev Implementation of a map structure which stores the royalty address and percentage
 * amount given by token id.
 * These methods can be called by a top level contract implementing ERC2981
 */
abstract contract ERC1155RHRoyalty is IERC1155RHRoyalty {
  mapping (uint256 => RoyaltyInfo) private _royaltyInfo;

  /**
   * Set royalty mapping for a token by a given tokenid
   * Params -
   * tokenId ID of the token for which to set royalty %
   * newRecipient Address of the creator or royalty recipient
   * percentage ppm value of % royalty.
   */
  function setRoyalties(uint256 tokenId, address newRecipient, uint256 percentage) external {
    _setRoyalties(tokenId, newRecipient, percentage);
  }

  /**
   * @dev sets the royalty mapping given by tokenid, address and percentage.
   */
  function _setRoyalties(uint256 tokenId, address newRecipient, uint256 percentage) internal {
    require(newRecipient != address(0), "Royalties: new recipient is the zero address");
    RoyaltyInfo memory royaltyInfo =  RoyaltyInfo(percentage, newRecipient);
    _royaltyInfo[tokenId] = royaltyInfo;
  }

  /**
   * @dev internal function that returns the royalty receiver
   * address and percentage royalty for a token represented by a given token id.
   * This function should be called by the external methods implementing IERC2981
   */
  function _getRoyaltyInfo(uint256 _tokenId, uint256 _salePrice) internal view
      returns (address receiver, uint256 royaltyAmount)
  {
    RoyaltyInfo memory royaltyInfo =  _royaltyInfo[_tokenId];
    uint256 royaltyPercentage = royaltyInfo.percentage / 10000000;
    address royaltyRecipient = royaltyInfo.recipient;
    return (royaltyRecipient, (_salePrice * royaltyPercentage));
  }
}

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

pragma solidity ^0.8.0;

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

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

File 8 of 25 : AccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (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 virtual 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 virtual 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 9 of 25 : ERC1155Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/extensions/ERC1155Burnable.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of {ERC1155} that allows token holders to destroy both their
 * own tokens and those that they have been approved to use.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Burnable is ERC1155 {
    function burn(
        address account,
        uint256 id,
        uint256 value
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not token owner nor approved"
        );

        _burn(account, id, value);
    }

    function burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory values
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not token owner nor approved"
        );

        _burnBatch(account, ids, values);
    }
}

File 10 of 25 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/extensions/ERC1155Supply.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155Supply is ERC1155 {
    mapping(uint256 => uint256) private _totalSupply;

    /**
     * @dev Total amount of tokens in with a given id.
     */
    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

    /**
     * @dev Indicates whether any token exist with a given id, or not.
     */
    function exists(uint256 id) public view virtual returns (bool) {
        return ERC1155Supply.totalSupply(id) > 0;
    }

    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        if (from == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] += amounts[i];
            }
        }

        if (to == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                uint256 id = ids[i];
                uint256 amount = amounts[i];
                uint256 supply = _totalSupply[id];
                require(supply >= amount, "ERC1155: burn amount exceeds totalSupply");
                unchecked {
                    _totalSupply[id] = supply - amount;
                }
            }
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 13 of 25 : IERC1155RHRoyalty.sol
// SPDX-License-Identifier: MIT
// ERCC1155RH Contracts Creator rabbithole_gg

pragma solidity ^0.8.0;

/**
 * @dev Interface of ERC721A.
 */
interface IERC1155RHRoyalty {
  // =============================================================
  //                            STRUCTS
  // =============================================================
  struct RoyaltyInfo {
    // The address of the owner.
    uint256 percentage;
    // Stores the start time of ownership with minimal overhead for tokenomics.
    address recipient;
  }
}

File 14 of 25 : 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 15 of 25 : 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 16 of 25 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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.
 *
 * [WARNING]
 * ====
 *  Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable.
 *  See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 *  In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an array of EnumerableSet.
 * ====
 */
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;

        /// @solidity memory-safe-assembly
        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;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }
}

File 17 of 25 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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);
        _;
    }

    /**
     * @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 virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        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 virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    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.
     *
     * May emit a {RoleRevoked} event.
     */
    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`.
     *
     * May emit a {RoleRevoked} event.
     */
    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.
     *
     * May emit a {RoleGranted} event.
     *
     * [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.
     *
     * May emit a {RoleGranted} event.
     */
    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.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 18 of 25 : 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 19 of 25 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // 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);
    }

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

File 20 of 25 : 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 21 of 25 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: address zero is not a valid owner");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

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

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not token owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not token owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        _balances[id][to] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address from,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address from,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `ids` and `amounts` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    /**
     * @dev Hook that is called after any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 22 of 25 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 23 of 25 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 24 of 25 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","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":"uint256","name":"tokenId","type":"uint256"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"ADMIN_MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"COUPON_SIGNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLastTokenId","outputs":[{"internalType":"uint256","name":"lastTokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"account","type":"address"}],"name":"getMints","outputs":[{"internalType":"uint256","name":"mints","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"tokenHash","type":"string"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"percent","type":"uint256"},{"internalType":"address","name":"royaltyAddress","type":"address"}],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"components":[{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"internalType":"struct IERC1155RH.ControlledAccess","name":"coupon","type":"tuple"}],"name":"mintUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","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":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"newRecipient","type":"address"},{"internalType":"uint256","name":"percentage","type":"uint256"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"tokenHash","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"status","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"tokenHash","type":"string"}],"name":"updateURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60806040526001600b5560405180602001604052806000815250600c90805190602001906200003092919062000433565b503480156200003e57600080fd5b50604051620069a2380380620069a2833981810160405281019062000064919062000555565b8062000076816200015a60201b60201c565b50620000b87f1f26171f92ad57a0958ed04857182d0283a5cd463c52fc3b6cbd5d6b65bd9a42620000ac6200019d60201b60201c565b620001a560201b60201c565b620000f97fbe6a453fdd049461aaa0af9a3f749ab4b8f74b99e5f20df66f381f07e8a3cf5b620000ed6200019d60201b60201c565b620001a560201b60201c565b6200013a7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6200012e6200019d60201b60201c565b620001a560201b60201c565b80600c90805190602001906200015292919062000433565b505062000791565b80600a6000600b600081546200017090620006a5565b919050819055815260200190815260200160002090805190602001906200019992919062000433565b5050565b600033905090565b620001b78282620001bb60201b60201c565b5050565b620001d282826200020360201b6200161d1760201c565b620001fe8160016000858152602001908152602001600020620002f460201b620016fd1790919060201c565b505050565b6200021582826200032c60201b60201c565b620002f057600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620002956200019d60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600062000324836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6200039660201b60201c565b905092915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000620003aa83836200041060201b60201c565b620004055782600001829080600181540180825580915050600190039060005260206000200160009091909190915055826000018054905083600101600084815260200190815260200160002081905550600190506200040a565b600090505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b828054620004419062000639565b90600052602060002090601f016020900481019282620004655760008555620004b1565b82601f106200048057805160ff1916838001178555620004b1565b82800160010185558215620004b1579182015b82811115620004b057825182559160200191906001019062000493565b5b509050620004c09190620004c4565b5090565b5b80821115620004df576000816000905550600101620004c5565b5090565b6000620004fa620004f484620005c3565b6200059a565b9050828152602081018484840111156200051357600080fd5b6200052084828562000603565b509392505050565b600082601f8301126200053a57600080fd5b81516200054c848260208601620004e3565b91505092915050565b6000602082840312156200056857600080fd5b600082015167ffffffffffffffff8111156200058357600080fd5b620005918482850162000528565b91505092915050565b6000620005a6620005b9565b9050620005b482826200066f565b919050565b6000604051905090565b600067ffffffffffffffff821115620005e157620005e062000751565b5b620005ec8262000780565b9050602081019050919050565b6000819050919050565b60005b838110156200062357808201518184015260208101905062000606565b8381111562000633576000848401525b50505050565b600060028204905060018216806200065257607f821691505b6020821081141562000669576200066862000722565b5b50919050565b6200067a8262000780565b810181811067ffffffffffffffff821117156200069c576200069b62000751565b5b80604052505050565b6000620006b282620005f9565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415620006e857620006e7620006f3565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b61620180620007a16000396000f3fe608060405234801561001057600080fd5b50600436106102265760003560e01c8063772906ac11610130578063bd85b039116100b8578063e63ab1e91161007c578063e63ab1e9146106cc578063e985e9c5146106ea578063f242432a1461071a578063f5298aca14610736578063fabc1cbc1461075257610226565b8063bd85b03914610604578063ca15c87314610634578063d547741f14610664578063d671d68314610680578063e2c7f338146106b057610226565b806391d14854116100ff57806391d1485414610560578063956eaed8146105905780639f19d090146105ae578063a217fddf146105ca578063a22cb465146105e857610226565b8063772906ac146104c457806383c4c00d146104e2578063869f7594146105005780639010d07c1461053057610226565b80632f2ff15d116101b3578063383697441161018257806338369744146103fc57806342d21ef7146104185780634e1273f4146104485780634f558e79146104785780636b20c454146104a857610226565b80632f2ff15d1461038c57806331d41c69146103a857806336568abe146103c457806337da577c146103e057610226565b8063136439dd116101fa578063136439dd146102d7578063156e29f6146102f3578063248a9ca31461030f5780632a55205a1461033f5780632eb2c2d61461037057610226565b8062fdd58e1461022b57806301ffc9a71461025b57806302fe53051461028b5780630e89341c146102a7575b600080fd5b6102456004803603810190610240919061437b565b61076e565b6040516102529190615357565b60405180910390f35b61027560048036038101906102709190614562565b610838565b6040516102829190614f5a565b60405180910390f35b6102a560048036038101906102a091906145b4565b6108b2565b005b6102c160048036038101906102bc9190614670565b61092e565b6040516102ce9190614fd5565b60405180910390f35b6102f160048036038101906102ec9190614670565b610940565b005b61030d60048036038101906103089190614406565b6109bc565b005b610329600480360381019061032491906144c1565b610a4c565b6040516103369190614f75565b60405180910390f35b61035960048036038101906103549190614778565b610a6b565b604051610367929190614ed8565b60405180910390f35b61038a60048036038101906103859190614172565b610a83565b005b6103a660048036038101906103a191906144ea565b610b24565b005b6103c260048036038101906103bd9190614724565b610b45565b005b6103de60048036038101906103d991906144ea565b610bc3565b005b6103fa60048036038101906103f59190614778565b610c46565b005b610416600480360381019061041191906145f5565b610cc4565b005b610432600480360381019061042d9190614670565b610d67565b60405161043f9190614f5a565b60405180910390f35b610462600480360381019061045d9190614455565b610d7f565b60405161046f9190614f01565b60405180910390f35b610492600480360381019061048d9190614670565b610f30565b60405161049f9190614f5a565b60405180910390f35b6104c260048036038101906104bd91906142c0565b610f44565b005b6104cc610fe1565b6040516104d99190614f75565b60405180910390f35b6104ea611005565b6040516104f79190615357565b60405180910390f35b61051a60048036038101906105159190614670565b61100f565b6040516105279190615357565b60405180910390f35b61054a60048036038101906105459190614526565b611021565b6040516105579190614dfb565b60405180910390f35b61057a600480360381019061057591906144ea565b611050565b6040516105879190614f5a565b60405180910390f35b6105986110ba565b6040516105a59190614f75565b60405180910390f35b6105c860048036038101906105c391906143b7565b6110de565b005b6105d2611252565b6040516105df9190614f75565b60405180910390f35b61060260048036038101906105fd919061433f565b611259565b005b61061e60048036038101906106199190614670565b61126f565b60405161062b9190615357565b60405180910390f35b61064e600480360381019061064991906144c1565b61128c565b60405161065b9190615357565b60405180910390f35b61067e600480360381019061067991906144ea565b6112b0565b005b61069a60048036038101906106959190614699565b6112d1565b6040516106a79190615357565b60405180910390f35b6106ca60048036038101906106c591906146d5565b61139b565b005b6106d46113ab565b6040516106e19190614f75565b60405180910390f35b61070460048036038101906106ff9190614136565b6113cf565b6040516107119190614f5a565b60405180910390f35b610734600480360381019061072f9190614231565b611463565b005b610750600480360381019061074b9190614406565b611504565b005b61076c60048036038101906107679190614670565b6115a1565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156107df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107d690615117565b60405180910390fd5b6002600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108ab57506108aa8261172d565b5b9050919050565b6108e37fbe6a453fdd049461aaa0af9a3f749ab4b8f74b99e5f20df66f381f07e8a3cf5b6108de61180f565b611050565b610922576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610919906150f7565b60405180910390fd5b61092b81611817565b50565b606061093982611856565b9050919050565b6109717f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a61096c61180f565b611050565b6109b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a790615257565b60405180910390fd5b6109b981611923565b50565b6109ed7fbe6a453fdd049461aaa0af9a3f749ab4b8f74b99e5f20df66f381f07e8a3cf5b6109e861180f565b611050565b610a2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a2390615177565b60405180910390fd5b610a4783838360405180602001604052806000815250611989565b505050565b6000806000838152602001908152602001600020600101549050919050565b600080610a7884846119a6565b915091509250929050565b610a8b61180f565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610ad15750610ad085610acb61180f565b6113cf565b5b610b10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0790615057565b60405180910390fd5b610b1d8585858585611a66565b5050505050565b610b2d82610a4c565b610b3681611dd7565b610b408383611deb565b505050565b610b767fbe6a453fdd049461aaa0af9a3f749ab4b8f74b99e5f20df66f381f07e8a3cf5b610b7161180f565b611050565b610bb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bac906150f7565b60405180910390fd5b610bbf8282611e1f565b5050565b610bcb61180f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2f90615337565b60405180910390fd5b610c428282611e4b565b5050565b610c777fbe6a453fdd049461aaa0af9a3f749ab4b8f74b99e5f20df66f381f07e8a3cf5b610c7261180f565b611050565b610cb6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cad90615297565b60405180910390fd5b610cc08282611e7f565b5050565b610cf57fbe6a453fdd049461aaa0af9a3f749ab4b8f74b99e5f20df66f381f07e8a3cf5b610cf061180f565b611050565b610d34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2b90615217565b60405180910390fd5b610d3d84611817565b610d48600b54611923565b610d55600b548284611e9b565b610d61600b5484611e7f565b50505050565b600080610d7383611fa8565b90508015915050919050565b60608151835114610dc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbc906152b7565b60405180910390fd5b6000835167ffffffffffffffff811115610e08577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610e365781602001602082028036833780820191505090505b50905060005b8451811015610f2557610ecf858281518110610e81577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151858381518110610ec2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015161076e565b828281518110610f08577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080610f1e906157a3565b9050610e3c565b508091505092915050565b600080610f3c8361126f565b119050919050565b610f4c61180f565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161480610f925750610f9183610f8c61180f565b6113cf565b5b610fd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc890615057565b60405180910390fd5b610fdc838383611fd2565b505050565b7fbe6a453fdd049461aaa0af9a3f749ab4b8f74b99e5f20df66f381f07e8a3cf5b81565b6000600b54905090565b600061101a826122ef565b9050919050565b6000611048826001600086815260200190815260200160002061230c90919063ffffffff16565b905092915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7f1f26171f92ad57a0958ed04857182d0283a5cd463c52fc3b6cbd5d6b65bd9a4281565b600082336040516020016110f3929190615372565b6040516020818303038152906040528051906020012090506111158183612326565b611154576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114b906150d7565b60405180910390fd5b61115d83612429565b61119c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611193906152d7565b60405180910390fd5b6111a7836001612441565b6111e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111dd90615237565b60405180910390fd5b6111f08385612483565b15611230576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122790615037565b60405180910390fd5b61124c8484600160405180602001604052806000815250611989565b50505050565b6000801b81565b61126b61126461180f565b83836124ee565b5050565b600060076000838152602001908152602001600020549050919050565b60006112a96001600084815260200190815260200160002061265b565b9050919050565b6112b982610a4c565b6112c281611dd7565b6112cc8383611e4b565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611342576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133990615117565b60405180910390fd5b6008600084815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6113a6838383611e9b565b505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61146b61180f565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806114b157506114b0856114ab61180f565b6113cf565b5b6114f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e790615057565b60405180910390fd5b6114fd8585858585612670565b5050505050565b61150c61180f565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16148061155257506115518361154c61180f565b6113cf565b5b611591576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158890615057565b60405180910390fd5b61159c83838361290f565b505050565b6115d27f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6115cd61180f565b611050565b611611576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611608906151f7565b60405180910390fd5b61161a81612b58565b50565b6116278282611050565b6116f957600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061169e61180f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000611725836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612bbe565b905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806117f857507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611808575061180782612c2e565b5b9050919050565b600033905090565b80600a6000600b6000815461182b906157a3565b91905081905581526020019081526020016000209080519060200190611852929190613da4565b5050565b60606000600a6000848152602001908152602001600020805461187890615740565b80601f01602080910402602001604051908101604052809291908181526020018280546118a490615740565b80156118f15780601f106118c6576101008083540402835291602001916118f1565b820191906000526020600020905b8154815290600101906020018083116118d457829003601f168201915b50505050509050600c8160405160200161190c929190614d9d565b604051602081830303815290604052915050919050565b60016005600083815260200190815260200160002060006101000a81548160ff0219169083151502179055507f32fb7c9891bc4f963c7de9f1186d2a7755c7d6e9f4604dabe1d8bb3027c2f49e8160405161197e9190615357565b60405180910390a150565b61199584848484612ca8565b6119a0848484612e5a565b50505050565b600080600060096000868152602001908152602001600020604051806040016040529081600082015481526020016001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505090506000629896808260000151611a40919061558a565b9050600082602001519050808287611a5891906155bb565b945094505050509250929050565b8151835114611aaa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa1906152f7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611b1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1190615137565b60405180910390fd5b6000611b2461180f565b9050611b34818787878787612ec6565b60005b8451811015611d34576000858281518110611b7b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190506000858381518110611bc0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905060006002600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611c62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5990615197565b60405180910390fd5b8181036002600085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816002600085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d199190615534565b9250508190555050505080611d2d906157a3565b9050611b37565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611dab929190614f23565b60405180910390a4611dc1818787878787612edc565b611dcf818787878787612ee4565b505050505050565b611de881611de361180f565b6130cb565b50565b611df5828261161d565b611e1a81600160008581526020019081526020016000206116fd90919063ffffffff16565b505050565b80600a60008481526020019081526020016000209080519060200190611e46929190613da4565b505050565b611e558282613168565b611e7a816001600085815260200190815260200160002061324990919063ffffffff16565b505050565b8060066000848152602001908152602001600020819055505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611f0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f02906151d7565b60405180910390fd5b600060405180604001604052808381526020018473ffffffffffffffffffffffffffffffffffffffff16815250905080600960008681526020019081526020016000206000820151816000015560208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555090505050505050565b60006005600083815260200190815260200160002060009054906101000a900460ff169050919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612042576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203990615157565b60405180910390fd5b8051825114612086576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207d906152f7565b60405180910390fd5b600061209061180f565b90506120b081856000868660405180602001604052806000815250612ec6565b60005b835181101561224b5760008482815181106120f7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050600084838151811061213c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905060006002600084815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156121de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d5906150b7565b60405180910390fd5b8181036002600085815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050508080612243906157a3565b9150506120b3565b50600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516122c3929190614f23565b60405180910390a46122e981856000868660405180602001604052806000815250612edc565b50505050565b600060066000838152602001908152602001600020549050919050565b600061231b8360000183613279565b60001c905092915050565b600080600184846040015185600001518660200151604051600081526020016040526040516123589493929190614f90565b6020604051602081039080840390855afa15801561237a573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156123f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ed90614ff7565b60405180910390fd5b6124207f1f26171f92ad57a0958ed04857182d0283a5cd463c52fc3b6cbd5d6b65bd9a4282611050565b91505092915050565b60008061243583611fa8565b90508015915050919050565b6000808261244e8561126f565b6124589190615534565b90506000612465856122ef565b905080821115612476576000612479565b60015b9250505092915050565b6000806008600085815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054116124e35760006124e6565b60015b905092915050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561255d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255490615277565b60405180910390fd5b80600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161264e9190614f5a565b60405180910390a3505050565b6000612669826000016132ca565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156126e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126d790615137565b60405180910390fd5b60006126ea61180f565b905060006126f7856132db565b90506000612704856132db565b9050612714838989858589612ec6565b60006002600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050858110156127ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127a390615197565b60405180910390fd5b8581036002600089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550856002600089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128639190615534565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a6040516128e092919061539b565b60405180910390a46128f6848a8a86868a612edc565b612904848a8a8a8a8a6133a1565b505050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561297f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161297690615157565b60405180910390fd5b600061298961180f565b90506000612996846132db565b905060006129a3846132db565b90506129c383876000858560405180602001604052806000815250612ec6565b60006002600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905084811015612a5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a52906150b7565b60405180910390fd5b8481036002600088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051612b2992919061539b565b60405180910390a4612b4f84886000868660405180602001604052806000815250612edc565b50505050505050565b60006005600083815260200190815260200160002060006101000a81548160ff0219169083151502179055507f9dd715fed52c25e642f97653bb4c4339ad98fe6d6e130348be82ae5d86383a8c81604051612bb39190615357565b60405180910390a150565b6000612bca8383613588565b612c23578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050612c28565b600090505b92915050565b60007f5a05180f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612ca15750612ca0826135ab565b5b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612d18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d0f90615317565b60405180910390fd5b6000612d2261180f565b90506000612d2f856132db565b90506000612d3c856132db565b9050612d4d83600089858589612ec6565b846002600088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612dad9190615534565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051612e2b92919061539b565b60405180910390a4612e4283600089858589612edc565b612e51836000898989896133a1565b50505050505050565b806008600084815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612eba9190615534565b92505081905550505050565b612ed4868686868686613625565b505050505050565b505050505050565b612f038473ffffffffffffffffffffffffffffffffffffffff1661388f565b156130c3578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612f49959493929190614e16565b602060405180830381600087803b158015612f6357600080fd5b505af1925050508015612f9457506040513d601f19601f82011682018060405250810190612f91919061458b565b60015b61303a57612fa06158a8565b806308c379a01415612ffd5750612fb56160ab565b80612fc05750612fff565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ff49190614fd5565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161303190615017565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146130c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130b890615097565b60405180910390fd5b505b505050505050565b6130d58282611050565b613164576130fa8173ffffffffffffffffffffffffffffffffffffffff1660146138b2565b6131088360001c60206138b2565b604051602001613119929190614dc1565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161315b9190614fd5565b60405180910390fd5b5050565b6131728282611050565b1561324557600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506131ea61180f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000613271836000018373ffffffffffffffffffffffffffffffffffffffff1660001b613bac565b905092915050565b60008260000182815481106132b7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905092915050565b600081600001805490509050919050565b60606000600167ffffffffffffffff811115613320577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561334e5781602001602082028036833780820191505090505b509050828160008151811061338c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080915050919050565b6133c08473ffffffffffffffffffffffffffffffffffffffff1661388f565b15613580578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401613406959493929190614e7e565b602060405180830381600087803b15801561342057600080fd5b505af192505050801561345157506040513d601f19601f8201168201806040525081019061344e919061458b565b60015b6134f75761345d6158a8565b806308c379a014156134ba57506134726160ab565b8061347d57506134bc565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134b19190614fd5565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134ee90615017565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461357e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161357590615097565b60405180910390fd5b505b505050505050565b600080836001016000848152602001908152602001600020541415905092915050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061361e575061361d82613d32565b5b9050919050565b613633868686868686613d9c565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156137315760005b835181101561372f578281815181106136ad577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151600760008684815181106136f2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151815260200190815260200160002060008282546137179190615534565b9250508190555080613728906157a3565b905061366b565b505b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156138875760005b83518110156138855760008482815181106137ad577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905060008483815181106137f2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905060006007600084815260200190815260200160002054905081811015613857576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161384e906151b7565b60405180910390fd5b81810360076000858152602001908152602001600020819055505050508061387e906157a3565b9050613769565b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6060600060028360026138c591906155bb565b6138cf9190615534565b67ffffffffffffffff81111561390e577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156139405781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061399e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613a28577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002613a6891906155bb565b613a729190615534565b90505b6001811115613b5e577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110613ada577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110613b17577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080613b5790615716565b9050613a75565b5060008414613ba2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b9990615077565b60405180910390fd5b8091505092915050565b60008083600101600084815260200190815260200160002054905060008114613d26576000600182613bde9190615615565b9050600060018660000180549050613bf69190615615565b9050818114613cb1576000866000018281548110613c3d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080876000018481548110613c87577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480613ceb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050613d2c565b60009150505b92915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b505050505050565b828054613db090615740565b90600052602060002090601f016020900481019282613dd25760008555613e19565b82601f10613deb57805160ff1916838001178555613e19565b82800160010185558215613e19579182015b82811115613e18578251825591602001919060010190613dfd565b5b509050613e269190613e2a565b5090565b5b80821115613e43576000816000905550600101613e2b565b5090565b6000613e5a613e55846153e9565b6153c4565b90508083825260208201905082856020860282011115613e7957600080fd5b60005b85811015613ea95781613e8f8882613f9b565b845260208401935060208301925050600181019050613e7c565b5050509392505050565b6000613ec6613ec184615415565b6153c4565b90508083825260208201905082856020860282011115613ee557600080fd5b60005b85811015613f155781613efb888261410c565b845260208401935060208301925050600181019050613ee8565b5050509392505050565b6000613f32613f2d84615441565b6153c4565b905082815260208101848484011115613f4a57600080fd5b613f558482856156d4565b509392505050565b6000613f70613f6b84615472565b6153c4565b905082815260208101848484011115613f8857600080fd5b613f938482856156d4565b509392505050565b600081359050613faa81616141565b92915050565b600082601f830112613fc157600080fd5b8135613fd1848260208601613e47565b91505092915050565b600082601f830112613feb57600080fd5b8135613ffb848260208601613eb3565b91505092915050565b60008135905061401381616158565b92915050565b6000813590506140288161616f565b92915050565b60008135905061403d81616186565b92915050565b60008151905061405281616186565b92915050565b600082601f83011261406957600080fd5b8135614079848260208601613f1f565b91505092915050565b600082601f83011261409357600080fd5b81356140a3848260208601613f5d565b91505092915050565b6000606082840312156140be57600080fd5b6140c860606153c4565b905060006140d884828501614019565b60008301525060206140ec84828501614019565b602083015250604061410084828501614121565b60408301525092915050565b60008135905061411b8161619d565b92915050565b600081359050614130816161b4565b92915050565b6000806040838503121561414957600080fd5b600061415785828601613f9b565b925050602061416885828601613f9b565b9150509250929050565b600080600080600060a0868803121561418a57600080fd5b600061419888828901613f9b565b95505060206141a988828901613f9b565b945050604086013567ffffffffffffffff8111156141c657600080fd5b6141d288828901613fda565b935050606086013567ffffffffffffffff8111156141ef57600080fd5b6141fb88828901613fda565b925050608086013567ffffffffffffffff81111561421857600080fd5b61422488828901614058565b9150509295509295909350565b600080600080600060a0868803121561424957600080fd5b600061425788828901613f9b565b955050602061426888828901613f9b565b94505060406142798882890161410c565b935050606061428a8882890161410c565b925050608086013567ffffffffffffffff8111156142a757600080fd5b6142b388828901614058565b9150509295509295909350565b6000806000606084860312156142d557600080fd5b60006142e386828701613f9b565b935050602084013567ffffffffffffffff81111561430057600080fd5b61430c86828701613fda565b925050604084013567ffffffffffffffff81111561432957600080fd5b61433586828701613fda565b9150509250925092565b6000806040838503121561435257600080fd5b600061436085828601613f9b565b925050602061437185828601614004565b9150509250929050565b6000806040838503121561438e57600080fd5b600061439c85828601613f9b565b92505060206143ad8582860161410c565b9150509250929050565b600080600060a084860312156143cc57600080fd5b60006143da86828701613f9b565b93505060206143eb8682870161410c565b92505060406143fc868287016140ac565b9150509250925092565b60008060006060848603121561441b57600080fd5b600061442986828701613f9b565b935050602061443a8682870161410c565b925050604061444b8682870161410c565b9150509250925092565b6000806040838503121561446857600080fd5b600083013567ffffffffffffffff81111561448257600080fd5b61448e85828601613fb0565b925050602083013567ffffffffffffffff8111156144ab57600080fd5b6144b785828601613fda565b9150509250929050565b6000602082840312156144d357600080fd5b60006144e184828501614019565b91505092915050565b600080604083850312156144fd57600080fd5b600061450b85828601614019565b925050602061451c85828601613f9b565b9150509250929050565b6000806040838503121561453957600080fd5b600061454785828601614019565b92505060206145588582860161410c565b9150509250929050565b60006020828403121561457457600080fd5b60006145828482850161402e565b91505092915050565b60006020828403121561459d57600080fd5b60006145ab84828501614043565b91505092915050565b6000602082840312156145c657600080fd5b600082013567ffffffffffffffff8111156145e057600080fd5b6145ec84828501614082565b91505092915050565b6000806000806080858703121561460b57600080fd5b600085013567ffffffffffffffff81111561462557600080fd5b61463187828801614082565b94505060206146428782880161410c565b93505060406146538782880161410c565b925050606061466487828801613f9b565b91505092959194509250565b60006020828403121561468257600080fd5b60006146908482850161410c565b91505092915050565b600080604083850312156146ac57600080fd5b60006146ba8582860161410c565b92505060206146cb85828601613f9b565b9150509250929050565b6000806000606084860312156146ea57600080fd5b60006146f88682870161410c565b935050602061470986828701613f9b565b925050604061471a8682870161410c565b9150509250925092565b6000806040838503121561473757600080fd5b60006147458582860161410c565b925050602083013567ffffffffffffffff81111561476257600080fd5b61476e85828601614082565b9150509250929050565b6000806040838503121561478b57600080fd5b60006147998582860161410c565b92505060206147aa8582860161410c565b9150509250929050565b60006147c08383614d70565b60208301905092915050565b6147d581615649565b82525050565b60006147e6826154c8565b6147f081856154f6565b93506147fb836154a3565b8060005b8381101561482c57815161481388826147b4565b975061481e836154e9565b9250506001810190506147ff565b5085935050505092915050565b6148428161565b565b82525050565b61485181615667565b82525050565b6000614862826154d3565b61486c8185615507565b935061487c8185602086016156e3565b614885816158ca565b840191505092915050565b600061489b826154de565b6148a58185615518565b93506148b58185602086016156e3565b6148be816158ca565b840191505092915050565b60006148d4826154de565b6148de8185615529565b93506148ee8185602086016156e3565b80840191505092915050565b6000815461490781615740565b6149118186615529565b9450600182166000811461492c576001811461493d57614970565b60ff19831686528186019350614970565b614946856154b3565b60005b8381101561496857815481890152600182019150602081019050614949565b838801955050505b50505092915050565b6000614986601883615518565b9150614991826158e8565b602082019050919050565b60006149a9603483615518565b91506149b482615911565b604082019050919050565b60006149cc601b83615518565b91506149d782615960565b602082019050919050565b60006149ef602f83615518565b91506149fa82615989565b604082019050919050565b6000614a12602083615518565b9150614a1d826159d8565b602082019050919050565b6000614a35602883615518565b9150614a4082615a01565b604082019050919050565b6000614a58602483615518565b9150614a6382615a50565b604082019050919050565b6000614a7b601c83615518565b9150614a8682615a9f565b602082019050919050565b6000614a9e602083615518565b9150614aa982615ac8565b602082019050919050565b6000614ac1602a83615518565b9150614acc82615af1565b604082019050919050565b6000614ae4602583615518565b9150614aef82615b40565b604082019050919050565b6000614b07602383615518565b9150614b1282615b8f565b604082019050919050565b6000614b2a603883615518565b9150614b3582615bde565b604082019050919050565b6000614b4d602a83615518565b9150614b5882615c2d565b604082019050919050565b6000614b70602883615518565b9150614b7b82615c7c565b604082019050919050565b6000614b93602c83615518565b9150614b9e82615ccb565b604082019050919050565b6000614bb6603b83615518565b9150614bc182615d1a565b604082019050919050565b6000614bd9601e83615518565b9150614be482615d69565b602082019050919050565b6000614bfc602383615518565b9150614c0782615d92565b604082019050919050565b6000614c1f603983615518565b9150614c2a82615de1565b604082019050919050565b6000614c42601783615529565b9150614c4d82615e30565b601782019050919050565b6000614c65602983615518565b9150614c7082615e59565b604082019050919050565b6000614c88602383615518565b9150614c9382615ea8565b604082019050919050565b6000614cab602983615518565b9150614cb682615ef7565b604082019050919050565b6000614cce602183615518565b9150614cd982615f46565b604082019050919050565b6000614cf1602883615518565b9150614cfc82615f95565b604082019050919050565b6000614d14602183615518565b9150614d1f82615fe4565b604082019050919050565b6000614d37601183615529565b9150614d4282616033565b601182019050919050565b6000614d5a602f83615518565b9150614d658261605c565b604082019050919050565b614d79816156bd565b82525050565b614d88816156bd565b82525050565b614d97816156c7565b82525050565b6000614da982856148fa565b9150614db582846148c9565b91508190509392505050565b6000614dcc82614c35565b9150614dd882856148c9565b9150614de382614d2a565b9150614def82846148c9565b91508190509392505050565b6000602082019050614e1060008301846147cc565b92915050565b600060a082019050614e2b60008301886147cc565b614e3860208301876147cc565b8181036040830152614e4a81866147db565b90508181036060830152614e5e81856147db565b90508181036080830152614e728184614857565b90509695505050505050565b600060a082019050614e9360008301886147cc565b614ea060208301876147cc565b614ead6040830186614d7f565b614eba6060830185614d7f565b8181036080830152614ecc8184614857565b90509695505050505050565b6000604082019050614eed60008301856147cc565b614efa6020830184614d7f565b9392505050565b60006020820190508181036000830152614f1b81846147db565b905092915050565b60006040820190508181036000830152614f3d81856147db565b90508181036020830152614f5181846147db565b90509392505050565b6000602082019050614f6f6000830184614839565b92915050565b6000602082019050614f8a6000830184614848565b92915050565b6000608082019050614fa56000830187614848565b614fb26020830186614d8e565b614fbf6040830185614848565b614fcc6060830184614848565b95945050505050565b60006020820190508181036000830152614fef8184614890565b905092915050565b6000602082019050818103600083015261501081614979565b9050919050565b600060208201905081810360008301526150308161499c565b9050919050565b60006020820190508181036000830152615050816149bf565b9050919050565b60006020820190508181036000830152615070816149e2565b9050919050565b6000602082019050818103600083015261509081614a05565b9050919050565b600060208201905081810360008301526150b081614a28565b9050919050565b600060208201905081810360008301526150d081614a4b565b9050919050565b600060208201905081810360008301526150f081614a6e565b9050919050565b6000602082019050818103600083015261511081614a91565b9050919050565b6000602082019050818103600083015261513081614ab4565b9050919050565b6000602082019050818103600083015261515081614ad7565b9050919050565b6000602082019050818103600083015261517081614afa565b9050919050565b6000602082019050818103600083015261519081614b1d565b9050919050565b600060208201905081810360008301526151b081614b40565b9050919050565b600060208201905081810360008301526151d081614b63565b9050919050565b600060208201905081810360008301526151f081614b86565b9050919050565b6000602082019050818103600083015261521081614ba9565b9050919050565b6000602082019050818103600083015261523081614bcc565b9050919050565b6000602082019050818103600083015261525081614bef565b9050919050565b6000602082019050818103600083015261527081614c12565b9050919050565b6000602082019050818103600083015261529081614c58565b9050919050565b600060208201905081810360008301526152b081614c7b565b9050919050565b600060208201905081810360008301526152d081614c9e565b9050919050565b600060208201905081810360008301526152f081614cc1565b9050919050565b6000602082019050818103600083015261531081614ce4565b9050919050565b6000602082019050818103600083015261533081614d07565b9050919050565b6000602082019050818103600083015261535081614d4d565b9050919050565b600060208201905061536c6000830184614d7f565b92915050565b60006040820190506153876000830185614d7f565b61539460208301846147cc565b9392505050565b60006040820190506153b06000830185614d7f565b6153bd6020830184614d7f565b9392505050565b60006153ce6153df565b90506153da8282615772565b919050565b6000604051905090565b600067ffffffffffffffff82111561540457615403615879565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156154305761542f615879565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561545c5761545b615879565b5b615465826158ca565b9050602081019050919050565b600067ffffffffffffffff82111561548d5761548c615879565b5b615496826158ca565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061553f826156bd565b915061554a836156bd565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561557f5761557e6157ec565b5b828201905092915050565b6000615595826156bd565b91506155a0836156bd565b9250826155b0576155af61581b565b5b828204905092915050565b60006155c6826156bd565b91506155d1836156bd565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561560a576156096157ec565b5b828202905092915050565b6000615620826156bd565b915061562b836156bd565b92508282101561563e5761563d6157ec565b5b828203905092915050565b60006156548261569d565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b838110156157015780820151818401526020810190506156e6565b83811115615710576000848401525b50505050565b6000615721826156bd565b91506000821415615735576157346157ec565b5b600182039050919050565b6000600282049050600182168061575857607f821691505b6020821081141561576c5761576b61584a565b5b50919050565b61577b826158ca565b810181811067ffffffffffffffff8211171561579a57615799615879565b5b80604052505050565b60006157ae826156bd565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156157e1576157e06157ec565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d11156158c75760046000803e6158c46000516158db565b90505b90565b6000601f19601f8301169050919050565b60008160e01c9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b7f4d61782031206d696e7420616c6c6f7765642070657220757365720000000000600082015250565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206e6f7220617070726f7665640000000000000000000000000000000000602082015250565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b7f436f75706f6e20697320696e76616c6964206f72206578706972656400000000600082015250565b7f4d7573742068617665206d696e74657220726f6c6520746f207365742055524c600082015250565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135355072657365744d696e7465725061757365723a206d7573742060008201527f68617665206d696e74657220726f6c6520746f206d696e740000000000000000602082015250565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e20616d6f756e74206578636565647320746f7460008201527f616c537570706c79000000000000000000000000000000000000000000000000602082015250565b7f526f79616c746965733a206e657720726563697069656e74206973207468652060008201527f7a65726f20616464726573730000000000000000000000000000000000000000602082015250565b7f455243313135355072657365744d696e7465725061757365723a206d7573742060008201527f686176652070617573657220726f6c6520746f20756e70617573650000000000602082015250565b7f4d7573742068617665206d696e74657220726f6c6520746f2073657475700000600082015250565b7f4d6178206e756d626572206f6620746f6b656e7320616c7265616479206d696e60008201527f7465640000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135355072657365744d696e7465725061757365723a206d7573742060008201527f686176652070617573657220726f6c6520746f20706175736500000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b7f4d7573742068617665206d696e74657220726f6c6520746f207365742073757060008201527f706c790000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b7f546f6b656e206d696e74696e672069732063757272656e746c7920706175736560008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b600060443d10156160bb5761613e565b6160c36153df565b60043d036004823e80513d602482011167ffffffffffffffff821117156160eb57505061613e565b808201805167ffffffffffffffff811115616109575050505061613e565b80602083010160043d03850181111561612657505050505061613e565b61613582602001850186615772565b82955050505050505b90565b61614a81615649565b811461615557600080fd5b50565b6161618161565b565b811461616c57600080fd5b50565b61617881615667565b811461618357600080fd5b50565b61618f81615671565b811461619a57600080fd5b50565b6161a6816156bd565b81146161b157600080fd5b50565b6161bd816156c7565b81146161c857600080fd5b5056fea2646970667358221220cc367d1bff222bf90c78683900c2366ac7c009443de6181bacdac166baca214764736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000007697066733a2f2f00000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102265760003560e01c8063772906ac11610130578063bd85b039116100b8578063e63ab1e91161007c578063e63ab1e9146106cc578063e985e9c5146106ea578063f242432a1461071a578063f5298aca14610736578063fabc1cbc1461075257610226565b8063bd85b03914610604578063ca15c87314610634578063d547741f14610664578063d671d68314610680578063e2c7f338146106b057610226565b806391d14854116100ff57806391d1485414610560578063956eaed8146105905780639f19d090146105ae578063a217fddf146105ca578063a22cb465146105e857610226565b8063772906ac146104c457806383c4c00d146104e2578063869f7594146105005780639010d07c1461053057610226565b80632f2ff15d116101b3578063383697441161018257806338369744146103fc57806342d21ef7146104185780634e1273f4146104485780634f558e79146104785780636b20c454146104a857610226565b80632f2ff15d1461038c57806331d41c69146103a857806336568abe146103c457806337da577c146103e057610226565b8063136439dd116101fa578063136439dd146102d7578063156e29f6146102f3578063248a9ca31461030f5780632a55205a1461033f5780632eb2c2d61461037057610226565b8062fdd58e1461022b57806301ffc9a71461025b57806302fe53051461028b5780630e89341c146102a7575b600080fd5b6102456004803603810190610240919061437b565b61076e565b6040516102529190615357565b60405180910390f35b61027560048036038101906102709190614562565b610838565b6040516102829190614f5a565b60405180910390f35b6102a560048036038101906102a091906145b4565b6108b2565b005b6102c160048036038101906102bc9190614670565b61092e565b6040516102ce9190614fd5565b60405180910390f35b6102f160048036038101906102ec9190614670565b610940565b005b61030d60048036038101906103089190614406565b6109bc565b005b610329600480360381019061032491906144c1565b610a4c565b6040516103369190614f75565b60405180910390f35b61035960048036038101906103549190614778565b610a6b565b604051610367929190614ed8565b60405180910390f35b61038a60048036038101906103859190614172565b610a83565b005b6103a660048036038101906103a191906144ea565b610b24565b005b6103c260048036038101906103bd9190614724565b610b45565b005b6103de60048036038101906103d991906144ea565b610bc3565b005b6103fa60048036038101906103f59190614778565b610c46565b005b610416600480360381019061041191906145f5565b610cc4565b005b610432600480360381019061042d9190614670565b610d67565b60405161043f9190614f5a565b60405180910390f35b610462600480360381019061045d9190614455565b610d7f565b60405161046f9190614f01565b60405180910390f35b610492600480360381019061048d9190614670565b610f30565b60405161049f9190614f5a565b60405180910390f35b6104c260048036038101906104bd91906142c0565b610f44565b005b6104cc610fe1565b6040516104d99190614f75565b60405180910390f35b6104ea611005565b6040516104f79190615357565b60405180910390f35b61051a60048036038101906105159190614670565b61100f565b6040516105279190615357565b60405180910390f35b61054a60048036038101906105459190614526565b611021565b6040516105579190614dfb565b60405180910390f35b61057a600480360381019061057591906144ea565b611050565b6040516105879190614f5a565b60405180910390f35b6105986110ba565b6040516105a59190614f75565b60405180910390f35b6105c860048036038101906105c391906143b7565b6110de565b005b6105d2611252565b6040516105df9190614f75565b60405180910390f35b61060260048036038101906105fd919061433f565b611259565b005b61061e60048036038101906106199190614670565b61126f565b60405161062b9190615357565b60405180910390f35b61064e600480360381019061064991906144c1565b61128c565b60405161065b9190615357565b60405180910390f35b61067e600480360381019061067991906144ea565b6112b0565b005b61069a60048036038101906106959190614699565b6112d1565b6040516106a79190615357565b60405180910390f35b6106ca60048036038101906106c591906146d5565b61139b565b005b6106d46113ab565b6040516106e19190614f75565b60405180910390f35b61070460048036038101906106ff9190614136565b6113cf565b6040516107119190614f5a565b60405180910390f35b610734600480360381019061072f9190614231565b611463565b005b610750600480360381019061074b9190614406565b611504565b005b61076c60048036038101906107679190614670565b6115a1565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156107df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107d690615117565b60405180910390fd5b6002600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108ab57506108aa8261172d565b5b9050919050565b6108e37fbe6a453fdd049461aaa0af9a3f749ab4b8f74b99e5f20df66f381f07e8a3cf5b6108de61180f565b611050565b610922576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610919906150f7565b60405180910390fd5b61092b81611817565b50565b606061093982611856565b9050919050565b6109717f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a61096c61180f565b611050565b6109b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a790615257565b60405180910390fd5b6109b981611923565b50565b6109ed7fbe6a453fdd049461aaa0af9a3f749ab4b8f74b99e5f20df66f381f07e8a3cf5b6109e861180f565b611050565b610a2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a2390615177565b60405180910390fd5b610a4783838360405180602001604052806000815250611989565b505050565b6000806000838152602001908152602001600020600101549050919050565b600080610a7884846119a6565b915091509250929050565b610a8b61180f565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610ad15750610ad085610acb61180f565b6113cf565b5b610b10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0790615057565b60405180910390fd5b610b1d8585858585611a66565b5050505050565b610b2d82610a4c565b610b3681611dd7565b610b408383611deb565b505050565b610b767fbe6a453fdd049461aaa0af9a3f749ab4b8f74b99e5f20df66f381f07e8a3cf5b610b7161180f565b611050565b610bb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bac906150f7565b60405180910390fd5b610bbf8282611e1f565b5050565b610bcb61180f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2f90615337565b60405180910390fd5b610c428282611e4b565b5050565b610c777fbe6a453fdd049461aaa0af9a3f749ab4b8f74b99e5f20df66f381f07e8a3cf5b610c7261180f565b611050565b610cb6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cad90615297565b60405180910390fd5b610cc08282611e7f565b5050565b610cf57fbe6a453fdd049461aaa0af9a3f749ab4b8f74b99e5f20df66f381f07e8a3cf5b610cf061180f565b611050565b610d34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2b90615217565b60405180910390fd5b610d3d84611817565b610d48600b54611923565b610d55600b548284611e9b565b610d61600b5484611e7f565b50505050565b600080610d7383611fa8565b90508015915050919050565b60608151835114610dc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbc906152b7565b60405180910390fd5b6000835167ffffffffffffffff811115610e08577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610e365781602001602082028036833780820191505090505b50905060005b8451811015610f2557610ecf858281518110610e81577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151858381518110610ec2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015161076e565b828281518110610f08577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080610f1e906157a3565b9050610e3c565b508091505092915050565b600080610f3c8361126f565b119050919050565b610f4c61180f565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161480610f925750610f9183610f8c61180f565b6113cf565b5b610fd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc890615057565b60405180910390fd5b610fdc838383611fd2565b505050565b7fbe6a453fdd049461aaa0af9a3f749ab4b8f74b99e5f20df66f381f07e8a3cf5b81565b6000600b54905090565b600061101a826122ef565b9050919050565b6000611048826001600086815260200190815260200160002061230c90919063ffffffff16565b905092915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7f1f26171f92ad57a0958ed04857182d0283a5cd463c52fc3b6cbd5d6b65bd9a4281565b600082336040516020016110f3929190615372565b6040516020818303038152906040528051906020012090506111158183612326565b611154576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114b906150d7565b60405180910390fd5b61115d83612429565b61119c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611193906152d7565b60405180910390fd5b6111a7836001612441565b6111e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111dd90615237565b60405180910390fd5b6111f08385612483565b15611230576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122790615037565b60405180910390fd5b61124c8484600160405180602001604052806000815250611989565b50505050565b6000801b81565b61126b61126461180f565b83836124ee565b5050565b600060076000838152602001908152602001600020549050919050565b60006112a96001600084815260200190815260200160002061265b565b9050919050565b6112b982610a4c565b6112c281611dd7565b6112cc8383611e4b565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611342576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133990615117565b60405180910390fd5b6008600084815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6113a6838383611e9b565b505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61146b61180f565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806114b157506114b0856114ab61180f565b6113cf565b5b6114f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e790615057565b60405180910390fd5b6114fd8585858585612670565b5050505050565b61150c61180f565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16148061155257506115518361154c61180f565b6113cf565b5b611591576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158890615057565b60405180910390fd5b61159c83838361290f565b505050565b6115d27f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6115cd61180f565b611050565b611611576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611608906151f7565b60405180910390fd5b61161a81612b58565b50565b6116278282611050565b6116f957600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061169e61180f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000611725836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612bbe565b905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806117f857507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611808575061180782612c2e565b5b9050919050565b600033905090565b80600a6000600b6000815461182b906157a3565b91905081905581526020019081526020016000209080519060200190611852929190613da4565b5050565b60606000600a6000848152602001908152602001600020805461187890615740565b80601f01602080910402602001604051908101604052809291908181526020018280546118a490615740565b80156118f15780601f106118c6576101008083540402835291602001916118f1565b820191906000526020600020905b8154815290600101906020018083116118d457829003601f168201915b50505050509050600c8160405160200161190c929190614d9d565b604051602081830303815290604052915050919050565b60016005600083815260200190815260200160002060006101000a81548160ff0219169083151502179055507f32fb7c9891bc4f963c7de9f1186d2a7755c7d6e9f4604dabe1d8bb3027c2f49e8160405161197e9190615357565b60405180910390a150565b61199584848484612ca8565b6119a0848484612e5a565b50505050565b600080600060096000868152602001908152602001600020604051806040016040529081600082015481526020016001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505090506000629896808260000151611a40919061558a565b9050600082602001519050808287611a5891906155bb565b945094505050509250929050565b8151835114611aaa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa1906152f7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611b1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1190615137565b60405180910390fd5b6000611b2461180f565b9050611b34818787878787612ec6565b60005b8451811015611d34576000858281518110611b7b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190506000858381518110611bc0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905060006002600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611c62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5990615197565b60405180910390fd5b8181036002600085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816002600085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d199190615534565b9250508190555050505080611d2d906157a3565b9050611b37565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611dab929190614f23565b60405180910390a4611dc1818787878787612edc565b611dcf818787878787612ee4565b505050505050565b611de881611de361180f565b6130cb565b50565b611df5828261161d565b611e1a81600160008581526020019081526020016000206116fd90919063ffffffff16565b505050565b80600a60008481526020019081526020016000209080519060200190611e46929190613da4565b505050565b611e558282613168565b611e7a816001600085815260200190815260200160002061324990919063ffffffff16565b505050565b8060066000848152602001908152602001600020819055505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611f0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f02906151d7565b60405180910390fd5b600060405180604001604052808381526020018473ffffffffffffffffffffffffffffffffffffffff16815250905080600960008681526020019081526020016000206000820151816000015560208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555090505050505050565b60006005600083815260200190815260200160002060009054906101000a900460ff169050919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612042576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203990615157565b60405180910390fd5b8051825114612086576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207d906152f7565b60405180910390fd5b600061209061180f565b90506120b081856000868660405180602001604052806000815250612ec6565b60005b835181101561224b5760008482815181106120f7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050600084838151811061213c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905060006002600084815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156121de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d5906150b7565b60405180910390fd5b8181036002600085815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050508080612243906157a3565b9150506120b3565b50600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516122c3929190614f23565b60405180910390a46122e981856000868660405180602001604052806000815250612edc565b50505050565b600060066000838152602001908152602001600020549050919050565b600061231b8360000183613279565b60001c905092915050565b600080600184846040015185600001518660200151604051600081526020016040526040516123589493929190614f90565b6020604051602081039080840390855afa15801561237a573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156123f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ed90614ff7565b60405180910390fd5b6124207f1f26171f92ad57a0958ed04857182d0283a5cd463c52fc3b6cbd5d6b65bd9a4282611050565b91505092915050565b60008061243583611fa8565b90508015915050919050565b6000808261244e8561126f565b6124589190615534565b90506000612465856122ef565b905080821115612476576000612479565b60015b9250505092915050565b6000806008600085815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054116124e35760006124e6565b60015b905092915050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561255d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255490615277565b60405180910390fd5b80600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161264e9190614f5a565b60405180910390a3505050565b6000612669826000016132ca565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156126e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126d790615137565b60405180910390fd5b60006126ea61180f565b905060006126f7856132db565b90506000612704856132db565b9050612714838989858589612ec6565b60006002600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050858110156127ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127a390615197565b60405180910390fd5b8581036002600089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550856002600089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128639190615534565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a6040516128e092919061539b565b60405180910390a46128f6848a8a86868a612edc565b612904848a8a8a8a8a6133a1565b505050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561297f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161297690615157565b60405180910390fd5b600061298961180f565b90506000612996846132db565b905060006129a3846132db565b90506129c383876000858560405180602001604052806000815250612ec6565b60006002600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905084811015612a5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a52906150b7565b60405180910390fd5b8481036002600088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051612b2992919061539b565b60405180910390a4612b4f84886000868660405180602001604052806000815250612edc565b50505050505050565b60006005600083815260200190815260200160002060006101000a81548160ff0219169083151502179055507f9dd715fed52c25e642f97653bb4c4339ad98fe6d6e130348be82ae5d86383a8c81604051612bb39190615357565b60405180910390a150565b6000612bca8383613588565b612c23578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050612c28565b600090505b92915050565b60007f5a05180f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612ca15750612ca0826135ab565b5b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612d18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d0f90615317565b60405180910390fd5b6000612d2261180f565b90506000612d2f856132db565b90506000612d3c856132db565b9050612d4d83600089858589612ec6565b846002600088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612dad9190615534565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051612e2b92919061539b565b60405180910390a4612e4283600089858589612edc565b612e51836000898989896133a1565b50505050505050565b806008600084815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612eba9190615534565b92505081905550505050565b612ed4868686868686613625565b505050505050565b505050505050565b612f038473ffffffffffffffffffffffffffffffffffffffff1661388f565b156130c3578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612f49959493929190614e16565b602060405180830381600087803b158015612f6357600080fd5b505af1925050508015612f9457506040513d601f19601f82011682018060405250810190612f91919061458b565b60015b61303a57612fa06158a8565b806308c379a01415612ffd5750612fb56160ab565b80612fc05750612fff565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ff49190614fd5565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161303190615017565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146130c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130b890615097565b60405180910390fd5b505b505050505050565b6130d58282611050565b613164576130fa8173ffffffffffffffffffffffffffffffffffffffff1660146138b2565b6131088360001c60206138b2565b604051602001613119929190614dc1565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161315b9190614fd5565b60405180910390fd5b5050565b6131728282611050565b1561324557600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506131ea61180f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000613271836000018373ffffffffffffffffffffffffffffffffffffffff1660001b613bac565b905092915050565b60008260000182815481106132b7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905092915050565b600081600001805490509050919050565b60606000600167ffffffffffffffff811115613320577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561334e5781602001602082028036833780820191505090505b509050828160008151811061338c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080915050919050565b6133c08473ffffffffffffffffffffffffffffffffffffffff1661388f565b15613580578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401613406959493929190614e7e565b602060405180830381600087803b15801561342057600080fd5b505af192505050801561345157506040513d601f19601f8201168201806040525081019061344e919061458b565b60015b6134f75761345d6158a8565b806308c379a014156134ba57506134726160ab565b8061347d57506134bc565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134b19190614fd5565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134ee90615017565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461357e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161357590615097565b60405180910390fd5b505b505050505050565b600080836001016000848152602001908152602001600020541415905092915050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061361e575061361d82613d32565b5b9050919050565b613633868686868686613d9c565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156137315760005b835181101561372f578281815181106136ad577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151600760008684815181106136f2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151815260200190815260200160002060008282546137179190615534565b9250508190555080613728906157a3565b905061366b565b505b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156138875760005b83518110156138855760008482815181106137ad577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905060008483815181106137f2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905060006007600084815260200190815260200160002054905081811015613857576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161384e906151b7565b60405180910390fd5b81810360076000858152602001908152602001600020819055505050508061387e906157a3565b9050613769565b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6060600060028360026138c591906155bb565b6138cf9190615534565b67ffffffffffffffff81111561390e577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156139405781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061399e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613a28577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002613a6891906155bb565b613a729190615534565b90505b6001811115613b5e577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110613ada577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110613b17577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080613b5790615716565b9050613a75565b5060008414613ba2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b9990615077565b60405180910390fd5b8091505092915050565b60008083600101600084815260200190815260200160002054905060008114613d26576000600182613bde9190615615565b9050600060018660000180549050613bf69190615615565b9050818114613cb1576000866000018281548110613c3d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080876000018481548110613c87577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480613ceb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050613d2c565b60009150505b92915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b505050505050565b828054613db090615740565b90600052602060002090601f016020900481019282613dd25760008555613e19565b82601f10613deb57805160ff1916838001178555613e19565b82800160010185558215613e19579182015b82811115613e18578251825591602001919060010190613dfd565b5b509050613e269190613e2a565b5090565b5b80821115613e43576000816000905550600101613e2b565b5090565b6000613e5a613e55846153e9565b6153c4565b90508083825260208201905082856020860282011115613e7957600080fd5b60005b85811015613ea95781613e8f8882613f9b565b845260208401935060208301925050600181019050613e7c565b5050509392505050565b6000613ec6613ec184615415565b6153c4565b90508083825260208201905082856020860282011115613ee557600080fd5b60005b85811015613f155781613efb888261410c565b845260208401935060208301925050600181019050613ee8565b5050509392505050565b6000613f32613f2d84615441565b6153c4565b905082815260208101848484011115613f4a57600080fd5b613f558482856156d4565b509392505050565b6000613f70613f6b84615472565b6153c4565b905082815260208101848484011115613f8857600080fd5b613f938482856156d4565b509392505050565b600081359050613faa81616141565b92915050565b600082601f830112613fc157600080fd5b8135613fd1848260208601613e47565b91505092915050565b600082601f830112613feb57600080fd5b8135613ffb848260208601613eb3565b91505092915050565b60008135905061401381616158565b92915050565b6000813590506140288161616f565b92915050565b60008135905061403d81616186565b92915050565b60008151905061405281616186565b92915050565b600082601f83011261406957600080fd5b8135614079848260208601613f1f565b91505092915050565b600082601f83011261409357600080fd5b81356140a3848260208601613f5d565b91505092915050565b6000606082840312156140be57600080fd5b6140c860606153c4565b905060006140d884828501614019565b60008301525060206140ec84828501614019565b602083015250604061410084828501614121565b60408301525092915050565b60008135905061411b8161619d565b92915050565b600081359050614130816161b4565b92915050565b6000806040838503121561414957600080fd5b600061415785828601613f9b565b925050602061416885828601613f9b565b9150509250929050565b600080600080600060a0868803121561418a57600080fd5b600061419888828901613f9b565b95505060206141a988828901613f9b565b945050604086013567ffffffffffffffff8111156141c657600080fd5b6141d288828901613fda565b935050606086013567ffffffffffffffff8111156141ef57600080fd5b6141fb88828901613fda565b925050608086013567ffffffffffffffff81111561421857600080fd5b61422488828901614058565b9150509295509295909350565b600080600080600060a0868803121561424957600080fd5b600061425788828901613f9b565b955050602061426888828901613f9b565b94505060406142798882890161410c565b935050606061428a8882890161410c565b925050608086013567ffffffffffffffff8111156142a757600080fd5b6142b388828901614058565b9150509295509295909350565b6000806000606084860312156142d557600080fd5b60006142e386828701613f9b565b935050602084013567ffffffffffffffff81111561430057600080fd5b61430c86828701613fda565b925050604084013567ffffffffffffffff81111561432957600080fd5b61433586828701613fda565b9150509250925092565b6000806040838503121561435257600080fd5b600061436085828601613f9b565b925050602061437185828601614004565b9150509250929050565b6000806040838503121561438e57600080fd5b600061439c85828601613f9b565b92505060206143ad8582860161410c565b9150509250929050565b600080600060a084860312156143cc57600080fd5b60006143da86828701613f9b565b93505060206143eb8682870161410c565b92505060406143fc868287016140ac565b9150509250925092565b60008060006060848603121561441b57600080fd5b600061442986828701613f9b565b935050602061443a8682870161410c565b925050604061444b8682870161410c565b9150509250925092565b6000806040838503121561446857600080fd5b600083013567ffffffffffffffff81111561448257600080fd5b61448e85828601613fb0565b925050602083013567ffffffffffffffff8111156144ab57600080fd5b6144b785828601613fda565b9150509250929050565b6000602082840312156144d357600080fd5b60006144e184828501614019565b91505092915050565b600080604083850312156144fd57600080fd5b600061450b85828601614019565b925050602061451c85828601613f9b565b9150509250929050565b6000806040838503121561453957600080fd5b600061454785828601614019565b92505060206145588582860161410c565b9150509250929050565b60006020828403121561457457600080fd5b60006145828482850161402e565b91505092915050565b60006020828403121561459d57600080fd5b60006145ab84828501614043565b91505092915050565b6000602082840312156145c657600080fd5b600082013567ffffffffffffffff8111156145e057600080fd5b6145ec84828501614082565b91505092915050565b6000806000806080858703121561460b57600080fd5b600085013567ffffffffffffffff81111561462557600080fd5b61463187828801614082565b94505060206146428782880161410c565b93505060406146538782880161410c565b925050606061466487828801613f9b565b91505092959194509250565b60006020828403121561468257600080fd5b60006146908482850161410c565b91505092915050565b600080604083850312156146ac57600080fd5b60006146ba8582860161410c565b92505060206146cb85828601613f9b565b9150509250929050565b6000806000606084860312156146ea57600080fd5b60006146f88682870161410c565b935050602061470986828701613f9b565b925050604061471a8682870161410c565b9150509250925092565b6000806040838503121561473757600080fd5b60006147458582860161410c565b925050602083013567ffffffffffffffff81111561476257600080fd5b61476e85828601614082565b9150509250929050565b6000806040838503121561478b57600080fd5b60006147998582860161410c565b92505060206147aa8582860161410c565b9150509250929050565b60006147c08383614d70565b60208301905092915050565b6147d581615649565b82525050565b60006147e6826154c8565b6147f081856154f6565b93506147fb836154a3565b8060005b8381101561482c57815161481388826147b4565b975061481e836154e9565b9250506001810190506147ff565b5085935050505092915050565b6148428161565b565b82525050565b61485181615667565b82525050565b6000614862826154d3565b61486c8185615507565b935061487c8185602086016156e3565b614885816158ca565b840191505092915050565b600061489b826154de565b6148a58185615518565b93506148b58185602086016156e3565b6148be816158ca565b840191505092915050565b60006148d4826154de565b6148de8185615529565b93506148ee8185602086016156e3565b80840191505092915050565b6000815461490781615740565b6149118186615529565b9450600182166000811461492c576001811461493d57614970565b60ff19831686528186019350614970565b614946856154b3565b60005b8381101561496857815481890152600182019150602081019050614949565b838801955050505b50505092915050565b6000614986601883615518565b9150614991826158e8565b602082019050919050565b60006149a9603483615518565b91506149b482615911565b604082019050919050565b60006149cc601b83615518565b91506149d782615960565b602082019050919050565b60006149ef602f83615518565b91506149fa82615989565b604082019050919050565b6000614a12602083615518565b9150614a1d826159d8565b602082019050919050565b6000614a35602883615518565b9150614a4082615a01565b604082019050919050565b6000614a58602483615518565b9150614a6382615a50565b604082019050919050565b6000614a7b601c83615518565b9150614a8682615a9f565b602082019050919050565b6000614a9e602083615518565b9150614aa982615ac8565b602082019050919050565b6000614ac1602a83615518565b9150614acc82615af1565b604082019050919050565b6000614ae4602583615518565b9150614aef82615b40565b604082019050919050565b6000614b07602383615518565b9150614b1282615b8f565b604082019050919050565b6000614b2a603883615518565b9150614b3582615bde565b604082019050919050565b6000614b4d602a83615518565b9150614b5882615c2d565b604082019050919050565b6000614b70602883615518565b9150614b7b82615c7c565b604082019050919050565b6000614b93602c83615518565b9150614b9e82615ccb565b604082019050919050565b6000614bb6603b83615518565b9150614bc182615d1a565b604082019050919050565b6000614bd9601e83615518565b9150614be482615d69565b602082019050919050565b6000614bfc602383615518565b9150614c0782615d92565b604082019050919050565b6000614c1f603983615518565b9150614c2a82615de1565b604082019050919050565b6000614c42601783615529565b9150614c4d82615e30565b601782019050919050565b6000614c65602983615518565b9150614c7082615e59565b604082019050919050565b6000614c88602383615518565b9150614c9382615ea8565b604082019050919050565b6000614cab602983615518565b9150614cb682615ef7565b604082019050919050565b6000614cce602183615518565b9150614cd982615f46565b604082019050919050565b6000614cf1602883615518565b9150614cfc82615f95565b604082019050919050565b6000614d14602183615518565b9150614d1f82615fe4565b604082019050919050565b6000614d37601183615529565b9150614d4282616033565b601182019050919050565b6000614d5a602f83615518565b9150614d658261605c565b604082019050919050565b614d79816156bd565b82525050565b614d88816156bd565b82525050565b614d97816156c7565b82525050565b6000614da982856148fa565b9150614db582846148c9565b91508190509392505050565b6000614dcc82614c35565b9150614dd882856148c9565b9150614de382614d2a565b9150614def82846148c9565b91508190509392505050565b6000602082019050614e1060008301846147cc565b92915050565b600060a082019050614e2b60008301886147cc565b614e3860208301876147cc565b8181036040830152614e4a81866147db565b90508181036060830152614e5e81856147db565b90508181036080830152614e728184614857565b90509695505050505050565b600060a082019050614e9360008301886147cc565b614ea060208301876147cc565b614ead6040830186614d7f565b614eba6060830185614d7f565b8181036080830152614ecc8184614857565b90509695505050505050565b6000604082019050614eed60008301856147cc565b614efa6020830184614d7f565b9392505050565b60006020820190508181036000830152614f1b81846147db565b905092915050565b60006040820190508181036000830152614f3d81856147db565b90508181036020830152614f5181846147db565b90509392505050565b6000602082019050614f6f6000830184614839565b92915050565b6000602082019050614f8a6000830184614848565b92915050565b6000608082019050614fa56000830187614848565b614fb26020830186614d8e565b614fbf6040830185614848565b614fcc6060830184614848565b95945050505050565b60006020820190508181036000830152614fef8184614890565b905092915050565b6000602082019050818103600083015261501081614979565b9050919050565b600060208201905081810360008301526150308161499c565b9050919050565b60006020820190508181036000830152615050816149bf565b9050919050565b60006020820190508181036000830152615070816149e2565b9050919050565b6000602082019050818103600083015261509081614a05565b9050919050565b600060208201905081810360008301526150b081614a28565b9050919050565b600060208201905081810360008301526150d081614a4b565b9050919050565b600060208201905081810360008301526150f081614a6e565b9050919050565b6000602082019050818103600083015261511081614a91565b9050919050565b6000602082019050818103600083015261513081614ab4565b9050919050565b6000602082019050818103600083015261515081614ad7565b9050919050565b6000602082019050818103600083015261517081614afa565b9050919050565b6000602082019050818103600083015261519081614b1d565b9050919050565b600060208201905081810360008301526151b081614b40565b9050919050565b600060208201905081810360008301526151d081614b63565b9050919050565b600060208201905081810360008301526151f081614b86565b9050919050565b6000602082019050818103600083015261521081614ba9565b9050919050565b6000602082019050818103600083015261523081614bcc565b9050919050565b6000602082019050818103600083015261525081614bef565b9050919050565b6000602082019050818103600083015261527081614c12565b9050919050565b6000602082019050818103600083015261529081614c58565b9050919050565b600060208201905081810360008301526152b081614c7b565b9050919050565b600060208201905081810360008301526152d081614c9e565b9050919050565b600060208201905081810360008301526152f081614cc1565b9050919050565b6000602082019050818103600083015261531081614ce4565b9050919050565b6000602082019050818103600083015261533081614d07565b9050919050565b6000602082019050818103600083015261535081614d4d565b9050919050565b600060208201905061536c6000830184614d7f565b92915050565b60006040820190506153876000830185614d7f565b61539460208301846147cc565b9392505050565b60006040820190506153b06000830185614d7f565b6153bd6020830184614d7f565b9392505050565b60006153ce6153df565b90506153da8282615772565b919050565b6000604051905090565b600067ffffffffffffffff82111561540457615403615879565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156154305761542f615879565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561545c5761545b615879565b5b615465826158ca565b9050602081019050919050565b600067ffffffffffffffff82111561548d5761548c615879565b5b615496826158ca565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061553f826156bd565b915061554a836156bd565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561557f5761557e6157ec565b5b828201905092915050565b6000615595826156bd565b91506155a0836156bd565b9250826155b0576155af61581b565b5b828204905092915050565b60006155c6826156bd565b91506155d1836156bd565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561560a576156096157ec565b5b828202905092915050565b6000615620826156bd565b915061562b836156bd565b92508282101561563e5761563d6157ec565b5b828203905092915050565b60006156548261569d565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b838110156157015780820151818401526020810190506156e6565b83811115615710576000848401525b50505050565b6000615721826156bd565b91506000821415615735576157346157ec565b5b600182039050919050565b6000600282049050600182168061575857607f821691505b6020821081141561576c5761576b61584a565b5b50919050565b61577b826158ca565b810181811067ffffffffffffffff8211171561579a57615799615879565b5b80604052505050565b60006157ae826156bd565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156157e1576157e06157ec565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d11156158c75760046000803e6158c46000516158db565b90505b90565b6000601f19601f8301169050919050565b60008160e01c9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b7f4d61782031206d696e7420616c6c6f7765642070657220757365720000000000600082015250565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206e6f7220617070726f7665640000000000000000000000000000000000602082015250565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b7f436f75706f6e20697320696e76616c6964206f72206578706972656400000000600082015250565b7f4d7573742068617665206d696e74657220726f6c6520746f207365742055524c600082015250565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135355072657365744d696e7465725061757365723a206d7573742060008201527f68617665206d696e74657220726f6c6520746f206d696e740000000000000000602082015250565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e20616d6f756e74206578636565647320746f7460008201527f616c537570706c79000000000000000000000000000000000000000000000000602082015250565b7f526f79616c746965733a206e657720726563697069656e74206973207468652060008201527f7a65726f20616464726573730000000000000000000000000000000000000000602082015250565b7f455243313135355072657365744d696e7465725061757365723a206d7573742060008201527f686176652070617573657220726f6c6520746f20756e70617573650000000000602082015250565b7f4d7573742068617665206d696e74657220726f6c6520746f2073657475700000600082015250565b7f4d6178206e756d626572206f6620746f6b656e7320616c7265616479206d696e60008201527f7465640000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135355072657365744d696e7465725061757365723a206d7573742060008201527f686176652070617573657220726f6c6520746f20706175736500000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b7f4d7573742068617665206d696e74657220726f6c6520746f207365742073757060008201527f706c790000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b7f546f6b656e206d696e74696e672069732063757272656e746c7920706175736560008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b600060443d10156160bb5761613e565b6160c36153df565b60043d036004823e80513d602482011167ffffffffffffffff821117156160eb57505061613e565b808201805167ffffffffffffffff811115616109575050505061613e565b80602083010160043d03850181111561612657505050505061613e565b61613582602001850186615772565b82955050505050505b90565b61614a81615649565b811461615557600080fd5b50565b6161618161565b565b811461616c57600080fd5b50565b61617881615667565b811461618357600080fd5b50565b61618f81615671565b811461619a57600080fd5b50565b6161a6816156bd565b81146161b157600080fd5b50565b6161bd816156c7565b81146161c857600080fd5b5056fea2646970667358221220cc367d1bff222bf90c78683900c2366ac7c009443de6181bacdac166baca214764736f6c63430008040033

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

00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000007697066733a2f2f00000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : baseURI (string): ipfs://

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [2] : 697066733a2f2f00000000000000000000000000000000000000000000000000


[ 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.