Contract 0x8d992d1026455cadee24a036b794403df4c09654

Contract Overview

Balance:
0 BNB
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x9978f3cba433abb1d3e41f38fde5eaf99f5e5a7f9ef1dec01e67dfe177e1f226Transfer Ownersh...111020822021-08-01 14:42:3386 days 5 hrs ago0x2b2512b318785ae77e014ab413855fa60f805ffa IN  0x8d992d1026455cadee24a036b794403df4c096540 BNB0.00030927
0x1475c8496ffd0e192627588fb4f2f14f15e1ca7d6f694539a5de7ad9d11020530x60806040111020432021-08-01 14:40:3686 days 5 hrs ago0x2b2512b318785ae77e014ab413855fa60f805ffa IN  Contract Creation0 BNB0.03220878
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xa12c1ccf888df31007e2e3e92dae72f97e78d83dccc24d32ee177fb5bc6d81d3111176142021-08-02 3:39:0985 days 16 hrs ago 0xfc071d7e8104039a232a16512f70f90da212b9fb 0x8d992d1026455cadee24a036b794403df4c096540 BNB
0xa12c1ccf888df31007e2e3e92dae72f97e78d83dccc24d32ee177fb5bc6d81d3111176142021-08-02 3:39:0985 days 16 hrs ago 0xfc071d7e8104039a232a16512f70f90da212b9fb 0x8d992d1026455cadee24a036b794403df4c096540 BNB
0x64a59de0eca2f0fd75f8592b1bb2d594e49690efcae9f2de8b2a66079f9c92d3111045432021-08-01 16:45:3686 days 3 hrs ago 0xfc071d7e8104039a232a16512f70f90da212b9fb 0x8d992d1026455cadee24a036b794403df4c096540 BNB
0x7bceeef8fa0492913f0dc9661671d3eb96c9dc850f57ade2cdd2cfb534182184111045032021-08-01 16:43:3686 days 3 hrs ago 0xfc071d7e8104039a232a16512f70f90da212b9fb 0x8d992d1026455cadee24a036b794403df4c096540 BNB
0x5d9cb5ed3e704a6ae4561b5bbf53c07559eb5d266b1758d8f6f1f1d8565d39bb111044722021-08-01 16:42:0386 days 3 hrs ago 0xfc071d7e8104039a232a16512f70f90da212b9fb 0x8d992d1026455cadee24a036b794403df4c096540 BNB
0xc23f695812f40c1616eae95aeb1301643635fa07bba30f04c7c924f7a513772a111042942021-08-01 16:33:0986 days 3 hrs ago 0xfc071d7e8104039a232a16512f70f90da212b9fb 0x8d992d1026455cadee24a036b794403df4c096540 BNB
0x1c46fb76a200359a056507b366593054a3fff7276c52b04b933e3c122d5facd7111041422021-08-01 16:25:3386 days 3 hrs ago 0xfc071d7e8104039a232a16512f70f90da212b9fb 0x8d992d1026455cadee24a036b794403df4c096540 BNB
0x3dc6e83412e38995c77507536730b7874f00645f678eb56b26e0cb28d13bceba111024852021-08-01 15:02:4286 days 5 hrs ago 0xfc071d7e8104039a232a16512f70f90da212b9fb 0x8d992d1026455cadee24a036b794403df4c096540 BNB
0x3dc6e83412e38995c77507536730b7874f00645f678eb56b26e0cb28d13bceba111024852021-08-01 15:02:4286 days 5 hrs ago 0xfc071d7e8104039a232a16512f70f90da212b9fb 0x8d992d1026455cadee24a036b794403df4c096540 BNB
0xf4753f5003869bd25f18f17c3680997968c782b8bb46ca9de334035880a68aae111021842021-08-01 14:47:3986 days 5 hrs ago 0xfc071d7e8104039a232a16512f70f90da212b9fb 0x8d992d1026455cadee24a036b794403df4c096540 BNB
0xf4753f5003869bd25f18f17c3680997968c782b8bb46ca9de334035880a68aae111021842021-08-01 14:47:3986 days 5 hrs ago 0xfc071d7e8104039a232a16512f70f90da212b9fb 0x8d992d1026455cadee24a036b794403df4c096540 BNB
0x044c3026bd6cfa4f991aa72a8ab277ea07e0d4201d072252c9ac9559de181f45111021452021-08-01 14:45:4286 days 5 hrs ago 0xfc071d7e8104039a232a16512f70f90da212b9fb 0x8d992d1026455cadee24a036b794403df4c096540 BNB
0x044c3026bd6cfa4f991aa72a8ab277ea07e0d4201d072252c9ac9559de181f45111021452021-08-01 14:45:4286 days 5 hrs ago 0xfc071d7e8104039a232a16512f70f90da212b9fb 0x8d992d1026455cadee24a036b794403df4c096540 BNB
0xaa5d114f1a3e4b148010db5074cbf719a3c4b05861b55f68e79370f6dcf5379d111021442021-08-01 14:45:3986 days 5 hrs ago 0xfc071d7e8104039a232a16512f70f90da212b9fb 0x8d992d1026455cadee24a036b794403df4c096540 BNB
0xaa5d114f1a3e4b148010db5074cbf719a3c4b05861b55f68e79370f6dcf5379d111021442021-08-01 14:45:3986 days 5 hrs ago 0xfc071d7e8104039a232a16512f70f90da212b9fb 0x8d992d1026455cadee24a036b794403df4c096540 BNB
0x6352e154cbc8cccb88f536ab50a4c1fa098aeee0077509e2ab9105208ebf37c7111021442021-08-01 14:45:3986 days 5 hrs ago 0xfc071d7e8104039a232a16512f70f90da212b9fb 0x8d992d1026455cadee24a036b794403df4c096540 BNB
0x6352e154cbc8cccb88f536ab50a4c1fa098aeee0077509e2ab9105208ebf37c7111021442021-08-01 14:45:3986 days 5 hrs ago 0xfc071d7e8104039a232a16512f70f90da212b9fb 0x8d992d1026455cadee24a036b794403df4c096540 BNB
0xbea06d9a81196544299d70407a1721e538afcd263af8ec1e9e7642d5224f1c85111021422021-08-01 14:45:3386 days 5 hrs ago 0xfc071d7e8104039a232a16512f70f90da212b9fb 0x8d992d1026455cadee24a036b794403df4c096540 BNB
0xbea06d9a81196544299d70407a1721e538afcd263af8ec1e9e7642d5224f1c85111021422021-08-01 14:45:3386 days 5 hrs ago 0xfc071d7e8104039a232a16512f70f90da212b9fb 0x8d992d1026455cadee24a036b794403df4c096540 BNB
0xd5de252f8f4b3bc32ae84b160b87bd6f49cdb42d35c79c7d47feb611371e40a2111021402021-08-01 14:45:2786 days 5 hrs ago 0xfc071d7e8104039a232a16512f70f90da212b9fb 0x8d992d1026455cadee24a036b794403df4c096540 BNB
0xd5de252f8f4b3bc32ae84b160b87bd6f49cdb42d35c79c7d47feb611371e40a2111021402021-08-01 14:45:2786 days 5 hrs ago 0xfc071d7e8104039a232a16512f70f90da212b9fb 0x8d992d1026455cadee24a036b794403df4c096540 BNB
0x68571e4841960c7d6fad72d98c8bde11b5d6b373540ec680d2b458de7d1f3a3f111021392021-08-01 14:45:2486 days 5 hrs ago 0xfc071d7e8104039a232a16512f70f90da212b9fb 0x8d992d1026455cadee24a036b794403df4c096540 BNB
0x68571e4841960c7d6fad72d98c8bde11b5d6b373540ec680d2b458de7d1f3a3f111021392021-08-01 14:45:2486 days 5 hrs ago 0xfc071d7e8104039a232a16512f70f90da212b9fb 0x8d992d1026455cadee24a036b794403df4c096540 BNB
0x1558837670cb58a91c953e4d69dda6ce75a11d244cfaced74786c53c231dca13111021382021-08-01 14:45:2186 days 5 hrs ago 0xfc071d7e8104039a232a16512f70f90da212b9fb 0x8d992d1026455cadee24a036b794403df4c096540 BNB
0x1558837670cb58a91c953e4d69dda6ce75a11d244cfaced74786c53c231dca13111021382021-08-01 14:45:2186 days 5 hrs ago 0xfc071d7e8104039a232a16512f70f90da212b9fb 0x8d992d1026455cadee24a036b794403df4c096540 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Similar Match)
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x9f471661e07fa9A09A07A6f77b84Dd14ff9c8fd8

Contract Name:
SpaceHunterNFT

Compiler Version
v0.6.6+commit.6c089d02

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-07-26
*/

pragma solidity ^0.6.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.0.0, only sets of type `address` (`AddressSet`) and `uint256`
 * (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

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

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

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

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

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

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            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] = toDeleteIndex + 1; // All indexes are 1-based

            // 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) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // 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(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(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(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(uint256(_at(set._inner, index)));
    }


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

// File: @openzeppelin/contracts/utils/Address.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File: @openzeppelin/contracts/GSN/Context.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File: @openzeppelin/contracts/access/AccessControl.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;




/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms.
 *
 * 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 {
    using EnumerableSet for EnumerableSet.AddressSet;
    using Address for address;

    struct RoleData {
        EnumerableSet.AddressSet members;
        bytes32 adminRole;
    }

    mapping (bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

    /**
     * @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 returns (address) {
        return _roles[role].members.at(index);
    }

    /**
     * @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 returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant");

        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke");

        _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 granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    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 {
        emit RoleAdminChanged(role, _roles[role].adminRole, adminRole);
        _roles[role].adminRole = adminRole;
    }

    function _grantRole(bytes32 role, address account) private {
        if (_roles[role].members.add(account)) {
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (_roles[role].members.remove(account)) {
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

// File: @openzeppelin/contracts/introspection/IERC165.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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: @openzeppelin/contracts/token/ERC721/IERC721.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;


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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/token/ERC721/IERC721Metadata.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;


/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {

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

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

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

// File: @openzeppelin/contracts/token/ERC721/IERC721Enumerable.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;


/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

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

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

// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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

// File: @openzeppelin/contracts/introspection/ERC165.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;


/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
contract ERC165 is IERC165 {
    /*
     * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
     */
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;

    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    constructor () internal {
        // Derived contracts need only register support for their own interfaces,
        // we register support for ERC165 itself here
        _registerInterface(_INTERFACE_ID_ERC165);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     *
     * Time complexity O(1), guaranteed to always use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view override returns (bool) {
        return _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

// File: @openzeppelin/contracts/math/SafeMath.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

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

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

        return c;
    }

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

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

// File: @openzeppelin/contracts/utils/EnumerableMap.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Library for managing an enumerable variant of Solidity's
 * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
 * type.
 *
 * Maps have the following properties:
 *
 * - Entries are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Entries are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableMap for EnumerableMap.UintToAddressMap;
 *
 *     // Declare a set state variable
 *     EnumerableMap.UintToAddressMap private myMap;
 * }
 * ```
 *
 * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are
 * supported.
 */
library EnumerableMap {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Map type with
    // bytes32 keys and values.
    // The Map implementation uses private functions, and user-facing
    // implementations (such as Uint256ToAddressMap) are just wrappers around
    // the underlying Map.
    // This means that we can only create new EnumerableMaps for types that fit
    // in bytes32.

    struct MapEntry {
        bytes32 _key;
        bytes32 _value;
    }

    struct Map {
        // Storage of map keys and values
        MapEntry[] _entries;

        // Position of the entry defined by a key in the `entries` array, plus 1
        // because index 0 means a key is not in the map.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function _set(Map storage map, bytes32 key, bytes32 value) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex == 0) { // Equivalent to !contains(map, key)
            map._entries.push(MapEntry({ _key: key, _value: value }));
            // The entry is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            map._indexes[key] = map._entries.length;
            return true;
        } else {
            map._entries[keyIndex - 1]._value = value;
            return false;
        }
    }

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

        if (keyIndex != 0) { // Equivalent to contains(map, key)
            // To delete a key-value pair from the _entries array in O(1), we swap the entry to delete with the last one
            // in the array, and then remove the last entry (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = keyIndex - 1;
            uint256 lastIndex = map._entries.length - 1;

            // When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            MapEntry storage lastEntry = map._entries[lastIndex];

            // Move the last entry to the index where the entry to delete is
            map._entries[toDeleteIndex] = lastEntry;
            // Update the index for the moved entry
            map._indexes[lastEntry._key] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved entry was stored
            map._entries.pop();

            // Delete the index for the deleted slot
            delete map._indexes[key];

            return true;
        } else {
            return false;
        }
    }

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

    /**
     * @dev Returns the number of key-value pairs in the map. O(1).
     */
    function _length(Map storage map) private view returns (uint256) {
        return map._entries.length;
    }

   /**
    * @dev Returns the key-value pair stored at position `index` in the map. O(1).
    *
    * Note that there are no guarantees on the ordering of entries inside the
    * array, and it may change when more entries are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) {
        require(map._entries.length > index, "EnumerableMap: index out of bounds");

        MapEntry storage entry = map._entries[index];
        return (entry._key, entry._value);
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function _get(Map storage map, bytes32 key) private view returns (bytes32) {
        return _get(map, key, "EnumerableMap: nonexistent key");
    }

    /**
     * @dev Same as {_get}, with a custom error message when `key` is not in the map.
     */
    function _get(Map storage map, bytes32 key, string memory errorMessage) private view returns (bytes32) {
        uint256 keyIndex = map._indexes[key];
        require(keyIndex != 0, errorMessage); // Equivalent to contains(map, key)
        return map._entries[keyIndex - 1]._value; // All indexes are 1-based
    }

    // UintToAddressMap

    struct UintToAddressMap {
        Map _inner;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) {
        return _set(map._inner, bytes32(key), bytes32(uint256(value)));
    }

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

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

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

   /**
    * @dev Returns the element 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(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) {
        (bytes32 key, bytes32 value) = _at(map._inner, index);
        return (uint256(key), address(uint256(value)));
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function get(UintToAddressMap storage map, uint256 key) internal view returns (address) {
        return address(uint256(_get(map._inner, bytes32(key))));
    }

    /**
     * @dev Same as {get}, with a custom error message when `key` is not in the map.
     */
    function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) {
        return address(uint256(_get(map._inner, bytes32(key), errorMessage)));
    }
}

// File: @openzeppelin/contracts/utils/Strings.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev String operations.
 */
library Strings {
    /**
     * @dev Converts a `uint256` to its ASCII `string` 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);
        uint256 index = digits - 1;
        temp = value;
        while (temp != 0) {
            buffer[index--] = byte(uint8(48 + temp % 10));
            temp /= 10;
        }
        return string(buffer);
    }
}

// File: @openzeppelin/contracts/token/ERC721/ERC721.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;












/**
 * @title ERC721 Non-Fungible Token Standard basic implementation
 * @dev see https://eips.ethereum.org/EIPS/eip-721
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    using SafeMath for uint256;
    using Address for address;
    using EnumerableSet for EnumerableSet.UintSet;
    using EnumerableMap for EnumerableMap.UintToAddressMap;
    using Strings for uint256;

    // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
    // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector`
    bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;

    // Mapping from holder address to their (enumerable) set of owned tokens
    mapping (address => EnumerableSet.UintSet) private _holderTokens;

    // Enumerable mapping from token ids to their owners
    EnumerableMap.UintToAddressMap private _tokenOwners;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

    // Base URI
    string private _baseURI;

    /*
     *     bytes4(keccak256('balanceOf(address)')) == 0x70a08231
     *     bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e
     *     bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3
     *     bytes4(keccak256('getApproved(uint256)')) == 0x081812fc
     *     bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465
     *     bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5
     *     bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde
     *
     *     => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^
     *        0xa22cb465 ^ 0xe985e9c5 ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd
     */
    bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;

    /*
     *     bytes4(keccak256('name()')) == 0x06fdde03
     *     bytes4(keccak256('symbol()')) == 0x95d89b41
     *     bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd
     *
     *     => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f
     */
    bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;

    /*
     *     bytes4(keccak256('totalSupply()')) == 0x18160ddd
     *     bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59
     *     bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7
     *
     *     => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63
     */
    bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor (string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;

        // register the supported interfaces to conform to ERC721 via ERC165
        _registerInterface(_INTERFACE_ID_ERC721);
        _registerInterface(_INTERFACE_ID_ERC721_METADATA);
        _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE);
    }

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

        return _holderTokens[owner].length();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return _tokenOwners.get(tokenId, "ERC721: owner query for nonexistent token");
    }

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

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

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

        string memory _tokenURI = _tokenURIs[tokenId];

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

    /**
    * @dev Returns the base URI set via {_setBaseURI}. This will be
    * automatically added as a prefix in {tokenURI} to each token's URI, or
    * to the token ID if no specific URI is set for that token ID.
    */
    function baseURI() public view returns (string memory) {
        return _baseURI;
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) {
        return _holderTokens[owner].at(index);
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view override returns (uint256) {
        // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds
        return _tokenOwners.length();
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view override returns (uint256) {
        (uint256 tokenId, ) = _tokenOwners.at(index);
        return tokenId;
    }

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

        _holderTokens[to].add(tokenId);

        _tokenOwners.set(tokenId, to);

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

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

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

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

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

        _holderTokens[owner].remove(tokenId);

        _tokenOwners.remove(tokenId);

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(address from, address to, uint256 tokenId) internal virtual {
        require(ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

        _holderTokens[from].remove(tokenId);
        _holderTokens[to].add(tokenId);

        _tokenOwners.set(tokenId, to);

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @dev Internal function to set the base URI for all token IDs. It is
     * automatically added as a prefix to the value returned in {tokenURI},
     * or to the token ID if {tokenURI} is empty.
     */
    function _setBaseURI(string memory baseURI_) internal virtual {
        _baseURI = baseURI_;
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data)
        private returns (bool)
    {
        if (!to.isContract()) {
            return true;
        }
        bytes memory returndata = to.functionCall(abi.encodeWithSelector(
            IERC721Receiver(to).onERC721Received.selector,
            _msgSender(),
            from,
            tokenId,
            _data
        ), "ERC721: transfer to non ERC721Receiver implementer");
        bytes4 retval = abi.decode(returndata, (bytes4));
        return (retval == _ERC721_RECEIVED);
    }

    function _approve(address to, uint256 tokenId) private {
        _tokenApprovals[tokenId] = to;
        emit Approval(ownerOf(tokenId), to, tokenId);
    }

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

// File: @openzeppelin/contracts/utils/Pausable.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;


/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

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

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor () internal {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!_paused, "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(_paused, "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

// File: @openzeppelin/contracts/token/ERC721/ERC721Pausable.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;



/**
 * @dev ERC721 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 */
abstract contract ERC721Pausable is ERC721, Pausable {
    /**
     * @dev See {ERC721-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        require(!paused(), "ERC721Pausable: token transfer while paused");
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @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.
 */
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 () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// File: contracts/libraries/TransferHelper.sol

// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.6.0;

// helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false
library TransferHelper {
    function safeApprove(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('approve(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: APPROVE_FAILED');
    }

    function safeTransfer(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transfer(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FAILED');
    }

    function safeTransferFrom(
        address token,
        address from,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FROM_FAILED');
    }

    function safeTransferETH(address to, uint256 value) internal {
        (bool success, ) = to.call{value: value}(new bytes(0));
        require(success, 'TransferHelper: ETH_TRANSFER_FAILED');
    }
}

// File: contracts/artwork/ArtworkNFT.sol

pragma solidity =0.6.6;






contract SpaceHunterNFT is ERC721Pausable, AccessControl, Ownable {
    bytes32 public constant UPDATE_TOKEN_URI_ROLE = keccak256('UPDATE_TOKEN_URI_ROLE');
    bytes32 public constant PAUSED_ROLE = keccak256('PAUSED_ROLE');
    uint256 public nextTokenId = 1;
    address public mintFeeAddr;
    uint256 public mintFeeAmount;
    event Burn(address indexed sender, uint256 tokenId);
    event MintFeeAddressTransferred(address indexed previousOwner, address indexed newOwner);
    event SetMintFeeAmount(address indexed seller, uint256 oldMintFeeAmount, uint256 newMintFeeAmount);

    constructor(
        string memory name,
        string memory symbol
    ) public ERC721(name, symbol) {
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _setupRole(UPDATE_TOKEN_URI_ROLE, _msgSender());
        _setupRole(PAUSED_ROLE, _msgSender());
    }

    receive() external payable {}

    function mint(address to, string memory _tokenURI) public  returns (uint256 tokenId) {
        tokenId = nextTokenId;
        _mint(to, tokenId);
        nextTokenId++;
        _setTokenURI(tokenId, _tokenURI);
    }

    function burn(uint256 tokenId) public {
        require(_isApprovedOrOwner(_msgSender(), tokenId), 'caller is not owner nor approved');
        _burn(tokenId);
        emit Burn(_msgSender(), tokenId);
    }

    function setBaseURI(string memory baseURI) public {
        require(hasRole(UPDATE_TOKEN_URI_ROLE, _msgSender()), 'Must have update token uri role');
        _setBaseURI(baseURI);
    }

    function setTokenURI(uint256 tokenId, string memory tokenURI) public {
        require(hasRole(UPDATE_TOKEN_URI_ROLE, _msgSender()), 'Must have update token uri role');
        _setTokenURI(tokenId, tokenURI);
    }

    function pause() public whenNotPaused {
        require(hasRole(PAUSED_ROLE, _msgSender()), 'Must have pause role');
        _pause();
    }

    function unpause() public whenPaused {
        require(hasRole(PAUSED_ROLE, _msgSender()), 'Must have pause role');
        _unpause();
    }

    function transferMintFeeAddress(address _mintFeeAddr) public {
        require(_msgSender() == mintFeeAddr, 'FORBIDDEN');
        mintFeeAddr = _mintFeeAddr;
        emit MintFeeAddressTransferred(_msgSender(), mintFeeAddr);
    }

    function setMintFeeAmount(uint256 _mintFeeAmount) public onlyOwner {
        require(mintFeeAmount != _mintFeeAmount, 'Not need update');
        emit SetMintFeeAmount(_msgSender(), mintFeeAmount, _mintFeeAmount);
        mintFeeAmount = _mintFeeAmount;
    }
}

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"MintFeeAddressTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"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":"seller","type":"address"},{"indexed":false,"internalType":"uint256","name":"oldMintFeeAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newMintFeeAmount","type":"uint256"}],"name":"SetMintFeeAmount","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSED_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UPDATE_TOKEN_URI_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"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":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"mint","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintFeeAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintFeeAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","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":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintFeeAmount","type":"uint256"}],"name":"setMintFeeAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"tokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_mintFeeAddr","type":"address"}],"name":"transferMintFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526001600d553480156200001657600080fd5b506040516200381138038062003811833981810160405260408110156200003c57600080fd5b81019080805160405193929190846401000000008211156200005d57600080fd5b9083019060208201858111156200007357600080fd5b82516401000000008111828201881017156200008e57600080fd5b82525081516020918201929091019080838360005b83811015620000bd578181015183820152602001620000a3565b50505050905090810190601f168015620000eb5780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010f57600080fd5b9083019060208201858111156200012557600080fd5b82516401000000008111828201881017156200014057600080fd5b82525081516020918201929091019080838360005b838110156200016f57818101518382015260200162000155565b50505050905090810190601f1680156200019d5780820380516001836020036101000a031916815260200191505b5060405250839150829050620001c36301ffc9a760e01b6001600160e01b036200036116565b8151620001d890600690602085019062000521565b508051620001ee90600790602084019062000521565b506200020a6380ac58cd60e01b6001600160e01b036200036116565b62000225635b5e139f60e01b6001600160e01b036200036116565b6200024063780e9d6360e01b6001600160e01b036200036116565b5050600a805460ff191690556000620002616001600160e01b03620003e616565b600c80546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620002d76000620002c86001600160e01b03620003e616565b6001600160e01b03620003eb16565b604080517f5550444154455f544f4b454e5f5552495f524f4c450000000000000000000000815290519081900360150190206200032190620002c86001600160e01b03620003e616565b604080516a5041555345445f524f4c4560a81b8152905190819003600b0190206200035990620002c86001600160e01b03620003e616565b5050620005c3565b6001600160e01b03198082161415620003c1576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b335b90565b6200040082826001600160e01b036200040416565b5050565b6000828152600b602090815260409091206200042b9183906200268f62000488821b17901c565b156200040057620004446001600160e01b03620003e616565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000620004a8836001600160a01b0384166001600160e01b03620004b116565b90505b92915050565b6000620004c883836001600160e01b036200050916565b6200050057508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620004ab565b506000620004ab565b60009081526001919091016020526040902054151590565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200056457805160ff191683800117855562000594565b8280016001018555821562000594579182015b828111156200059457825182559160200191906001019062000577565b50620005a2929150620005a6565b5090565b620003e891905b80821115620005a25760008155600101620005ad565b61323e80620005d36000396000f3fe6080604052600436106102555760003560e01c806370a0823111610139578063a217fddf116100b6578063c87b56dd1161007a578063c87b56dd14610a33578063ca15c87314610a5d578063d0def52114610a87578063d547741f14610b48578063e985e9c514610b81578063f2fde38b14610bbc5761025c565b8063a217fddf146108e8578063a22cb465146108fd578063ac4732b914610938578063ae57937b1461094d578063b88d4fde146109625761025c565b80638da5cb5b116100fd5780638da5cb5b1461082b5780639010d07c1461084057806391d14854146108705780639247cfe6146108a957806395d89b41146108d35761025c565b806370a08231146107a4578063715018a6146107d757806375794a3c146107ec5780637e622c56146108015780638456cb59146108165761025c565b80632f745c59116101d25780634f6ccce7116101965780634f6ccce71461066057806355f804b31461068a5780635c975abb1461073b5780636352211e146107505780636a857ed21461077a5780636c0360eb1461078f5761025c565b80632f745c591461056c57806336568abe146105a55780633f4ba83a146105de57806342842e0e146105f357806342966c68146106365761025c565b8063162094c411610219578063162094c4146103e757806318160ddd1461049f57806323b872dd146104c6578063248a9ca3146105095780632f2ff15d146105335761025c565b806301ffc9a71461026157806306fdde03146102a9578063081812fc14610333578063095ea7b3146103795780630ed4d456146103b45761025c565b3661025c57005b600080fd5b34801561026d57600080fd5b506102956004803603602081101561028457600080fd5b50356001600160e01b031916610bef565b604080519115158252519081900360200190f35b3480156102b557600080fd5b506102be610c12565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102f85781810151838201526020016102e0565b50505050905090810190601f1680156103255780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561033f57600080fd5b5061035d6004803603602081101561035657600080fd5b5035610ca9565b604080516001600160a01b039092168252519081900360200190f35b34801561038557600080fd5b506103b26004803603604081101561039c57600080fd5b506001600160a01b038135169060200135610d0b565b005b3480156103c057600080fd5b506103b2600480360360208110156103d757600080fd5b50356001600160a01b0316610de6565b3480156103f357600080fd5b506103b26004803603604081101561040a57600080fd5b81359190810190604081016020820135600160201b81111561042b57600080fd5b82018360208201111561043d57600080fd5b803590602001918460018302840111600160201b8311171561045e57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610ea3945050505050565b3480156104ab57600080fd5b506104b4610f3d565b60408051918252519081900360200190f35b3480156104d257600080fd5b506103b2600480360360608110156104e957600080fd5b506001600160a01b03813581169160208101359091169060400135610f4e565b34801561051557600080fd5b506104b46004803603602081101561052c57600080fd5b5035610fa5565b34801561053f57600080fd5b506103b26004803603604081101561055657600080fd5b50803590602001356001600160a01b0316610fba565b34801561057857600080fd5b506104b46004803603604081101561058f57600080fd5b506001600160a01b03813516906020013561101d565b3480156105b157600080fd5b506103b2600480360360408110156105c857600080fd5b50803590602001356001600160a01b031661104e565b3480156105ea57600080fd5b506103b26110af565b3480156105ff57600080fd5b506103b26004803603606081101561061657600080fd5b506001600160a01b0381358116916020810135909116906040013561117b565b34801561064257600080fd5b506103b26004803603602081101561065957600080fd5b5035611196565b34801561066c57600080fd5b506104b46004803603602081101561068357600080fd5b5035611246565b34801561069657600080fd5b506103b2600480360360208110156106ad57600080fd5b810190602081018135600160201b8111156106c757600080fd5b8201836020820111156106d957600080fd5b803590602001918460018302840111600160201b831117156106fa57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611262945050505050565b34801561074757600080fd5b506102956112f5565b34801561075c57600080fd5b5061035d6004803603602081101561077357600080fd5b50356112fe565b34801561078657600080fd5b5061035d61132c565b34801561079b57600080fd5b506102be61133b565b3480156107b057600080fd5b506104b4600480360360208110156107c757600080fd5b50356001600160a01b031661139c565b3480156107e357600080fd5b506103b2611404565b3480156107f857600080fd5b506104b46114b8565b34801561080d57600080fd5b506104b46114be565b34801561082257600080fd5b506103b26114eb565b34801561083757600080fd5b5061035d6115b2565b34801561084c57600080fd5b5061035d6004803603604081101561086357600080fd5b50803590602001356115c1565b34801561087c57600080fd5b506102956004803603604081101561089357600080fd5b50803590602001356001600160a01b03166115df565b3480156108b557600080fd5b506103b2600480360360208110156108cc57600080fd5b50356115fd565b3480156108df57600080fd5b506102be611707565b3480156108f457600080fd5b506104b4611768565b34801561090957600080fd5b506103b26004803603604081101561092057600080fd5b506001600160a01b038135169060200135151561176d565b34801561094457600080fd5b506104b4611872565b34801561095957600080fd5b506104b4611878565b34801561096e57600080fd5b506103b26004803603608081101561098557600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156109bf57600080fd5b8201836020820111156109d157600080fd5b803590602001918460018302840111600160201b831117156109f257600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061189b945050505050565b348015610a3f57600080fd5b506102be60048036036020811015610a5657600080fd5b50356118f9565b348015610a6957600080fd5b506104b460048036036020811015610a8057600080fd5b5035611ba0565b348015610a9357600080fd5b506104b460048036036040811015610aaa57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b811115610ad457600080fd5b820183602082011115610ae657600080fd5b803590602001918460018302840111600160201b83111715610b0757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611bb7945050505050565b348015610b5457600080fd5b506103b260048036036040811015610b6b57600080fd5b50803590602001356001600160a01b0316611bd7565b348015610b8d57600080fd5b5061029560048036036040811015610ba457600080fd5b506001600160a01b0381358116916020013516611c30565b348015610bc857600080fd5b506103b260048036036020811015610bdf57600080fd5b50356001600160a01b0316611c5e565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610c9e5780601f10610c7357610100808354040283529160200191610c9e565b820191906000526020600020905b815481529060010190602001808311610c8157829003601f168201915b505050505090505b90565b6000610cb482611d69565b610cef5760405162461bcd60e51b815260040180806020018281038252602c8152602001806130d8602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610d16826112fe565b9050806001600160a01b0316836001600160a01b03161415610d695760405162461bcd60e51b81526004018080602001828103825260218152602001806131886021913960400191505060405180910390fd5b806001600160a01b0316610d7b611d7c565b6001600160a01b03161480610d9c5750610d9c81610d97611d7c565b611c30565b610dd75760405162461bcd60e51b815260040180806020018281038252603881526020018061302b6038913960400191505060405180910390fd5b610de18383611d80565b505050565b600e546001600160a01b0316610dfa611d7c565b6001600160a01b031614610e41576040805162461bcd60e51b81526020600482015260096024820152682327a92124a22222a760b91b604482015290519081900360640190fd5b600e80546001600160a01b0319166001600160a01b03838116919091179182905516610e6b611d7c565b6001600160a01b03167fb55e540bc4aff5195703d7c24c8acdce597e5786b44df9ca3202f686313c984660405160405180910390a350565b60408051745550444154455f544f4b454e5f5552495f524f4c4560581b81529051908190036015019020610ede90610ed9611d7c565b6115df565b610f2f576040805162461bcd60e51b815260206004820152601f60248201527f4d75737420686176652075706461746520746f6b656e2075726920726f6c6500604482015290519081900360640190fd5b610f398282611dee565b5050565b6000610f496002611e51565b905090565b610f5f610f59611d7c565b82611e5c565b610f9a5760405162461bcd60e51b81526004018080602001828103825260318152602001806131a96031913960400191505060405180910390fd5b610de1838383611f00565b6000908152600b602052604090206002015490565b6000828152600b6020526040902060020154610fd890610ed9611d7c565b6110135760405162461bcd60e51b815260040180806020018281038252602f815260200180612f24602f913960400191505060405180910390fd5b610f39828261205e565b6001600160a01b0382166000908152600160205260408120611045908363ffffffff6120cd16565b90505b92915050565b611056611d7c565b6001600160a01b0316816001600160a01b0316146110a55760405162461bcd60e51b815260040180806020018281038252602f8152602001806131da602f913960400191505060405180910390fd5b610f3982826120d9565b600a5460ff166110fd576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b604080516a5041555345445f524f4c4560a81b8152905190819003600b01902061112990610ed9611d7c565b611171576040805162461bcd60e51b81526020600482015260146024820152734d757374206861766520706175736520726f6c6560601b604482015290519081900360640190fd5b611179612148565b565b610de18383836040518060200160405280600081525061189b565b6111a1610f59611d7c565b6111f2576040805162461bcd60e51b815260206004820181905260248201527f63616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564604482015290519081900360640190fd5b6111fb816121e6565b611203611d7c565b6001600160a01b03167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5826040518082815260200191505060405180910390a250565b60008061125a60028463ffffffff6122bf16565b509392505050565b60408051745550444154455f544f4b454e5f5552495f524f4c4560581b8152905190819003601501902061129890610ed9611d7c565b6112e9576040805162461bcd60e51b815260206004820152601f60248201527f4d75737420686176652075706461746520746f6b656e2075726920726f6c6500604482015290519081900360640190fd5b6112f2816122db565b50565b600a5460ff1690565b60006110488260405180606001604052806029815260200161308d602991396002919063ffffffff6122ee16565b600e546001600160a01b031681565b60098054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610c9e5780601f10610c7357610100808354040283529160200191610c9e565b60006001600160a01b0382166113e35760405162461bcd60e51b815260040180806020018281038252602a815260200180613063602a913960400191505060405180910390fd5b6001600160a01b038216600090815260016020526040902061104890611e51565b61140c611d7c565b600c546001600160a01b0390811691161461146e576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600c546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600c80546001600160a01b0319169055565b600d5481565b60408051745550444154455f544f4b454e5f5552495f524f4c4560581b8152905190819003601501902081565b600a5460ff1615611536576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b604080516a5041555345445f524f4c4560a81b8152905190819003600b01902061156290610ed9611d7c565b6115aa576040805162461bcd60e51b81526020600482015260146024820152734d757374206861766520706175736520726f6c6560601b604482015290519081900360640190fd5b611179612305565b600c546001600160a01b031690565b6000828152600b60205260408120611045908363ffffffff6120cd16565b6000828152600b60205260408120611045908363ffffffff61238616565b611605611d7c565b600c546001600160a01b03908116911614611667576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b80600f5414156116b0576040805162461bcd60e51b815260206004820152600f60248201526e4e6f74206e6565642075706461746560881b604482015290519081900360640190fd5b6116b8611d7c565b6001600160a01b03167f5333df160d2d64e9a08458ca4dbcffa141c7b398a94ec77e02960c4478ab268e600f5483604051808381526020018281526020019250505060405180910390a2600f55565b60078054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610c9e5780601f10610c7357610100808354040283529160200191610c9e565b600081565b611775611d7c565b6001600160a01b0316826001600160a01b031614156117db576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b80600560006117e8611d7c565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561182c611d7c565b60408051841515815290516001600160a01b0392909216917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319181900360200190a35050565b600f5481565b604080516a5041555345445f524f4c4560a81b8152905190819003600b01902081565b6118ac6118a6611d7c565b83611e5c565b6118e75760405162461bcd60e51b81526004018080602001828103825260318152602001806131a96031913960400191505060405180910390fd5b6118f38484848461239b565b50505050565b606061190482611d69565b61193f5760405162461bcd60e51b815260040180806020018281038252602f815260200180613159602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452606093928301828280156119d45780601f106119a9576101008083540402835291602001916119d4565b820191906000526020600020905b8154815290600101906020018083116119b757829003601f168201915b5050600954939450505050600260001961010060018416150201909116046119fd579050610c0d565b805115611ace576009816040516020018083805460018160011615610100020316600290048015611a655780601f10611a43576101008083540402835291820191611a65565b820191906000526020600020905b815481529060010190602001808311611a51575b5050825160208401908083835b60208310611a915780518252601f199092019160209182019101611a72565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050610c0d565b6009611ad9846123ed565b6040516020018083805460018160011615610100020316600290048015611b375780601f10611b15576101008083540402835291820191611b37565b820191906000526020600020905b815481529060010190602001808311611b23575b5050825160208401908083835b60208310611b635780518252601f199092019160209182019101611b44565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b6000818152600b6020526040812061104890611e51565b600d54611bc483826124c8565b600d805460010190556110488183611dee565b6000828152600b6020526040902060020154611bf590610ed9611d7c565b6110a55760405162461bcd60e51b8152600401808060200182810382526030815260200180612ffb6030913960400191505060405180910390fd5b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b611c66611d7c565b600c546001600160a01b03908116911614611cc8576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116611d0d5760405162461bcd60e51b8152600401808060200182810382526026815260200180612f856026913960400191505060405180910390fd5b600c546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600c80546001600160a01b0319166001600160a01b0392909216919091179055565b600061104860028363ffffffff61260216565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611db5826112fe565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611df782611d69565b611e325760405162461bcd60e51b815260040180806020018281038252602c815260200180613104602c913960400191505060405180910390fd5b60008281526008602090815260409091208251610de192840190612dfe565b60006110488261260e565b6000611e6782611d69565b611ea25760405162461bcd60e51b815260040180806020018281038252602c815260200180612fcf602c913960400191505060405180910390fd5b6000611ead836112fe565b9050806001600160a01b0316846001600160a01b03161480611ee85750836001600160a01b0316611edd84610ca9565b6001600160a01b0316145b80611ef85750611ef88185611c30565b949350505050565b826001600160a01b0316611f13826112fe565b6001600160a01b031614611f585760405162461bcd60e51b81526004018080602001828103825260298152602001806131306029913960400191505060405180910390fd5b6001600160a01b038216611f9d5760405162461bcd60e51b8152600401808060200182810382526024815260200180612fab6024913960400191505060405180910390fd5b611fa8838383612612565b611fb3600082611d80565b6001600160a01b0383166000908152600160205260409020611fdb908263ffffffff61266116565b506001600160a01b0382166000908152600160205260409020612004908263ffffffff61266d16565b506120176002828463ffffffff61267916565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000828152600b6020526040902061207c908263ffffffff61268f16565b15610f3957612089611d7c565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600061104583836126a4565b6000828152600b602052604090206120f7908263ffffffff61270816565b15610f3957612104611d7c565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b600a5460ff16612196576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6121c9611d7c565b604080516001600160a01b039092168252519081900360200190a1565b60006121f1826112fe565b90506121ff81600084612612565b61220a600083611d80565b600082815260086020526040902054600260001961010060018416150201909116041561224857600082815260086020526040812061224891612e7c565b6001600160a01b0381166000908152600160205260409020612270908363ffffffff61266116565b5061228260028363ffffffff61271d16565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008080806122ce8686612729565b9097909650945050505050565b8051610f39906009906020840190612dfe565b60006122fb8484846127a4565b90505b9392505050565b600a5460ff1615612350576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586121c9611d7c565b6000611045836001600160a01b03841661286e565b6123a6848484611f00565b6123b284848484612886565b6118f35760405162461bcd60e51b8152600401808060200182810382526032815260200180612f536032913960400191505060405180910390fd5b60608161241257506040805180820190915260018152600360fc1b6020820152610c0d565b8160005b811561242a57600101600a82049150612416565b60608167ffffffffffffffff8111801561244357600080fd5b506040519080825280601f01601f19166020018201604052801561246e576020820181803683370190505b50859350905060001982015b83156124bf57600a840660300160f81b8282806001900393508151811061249d57fe5b60200101906001600160f81b031916908160001a905350600a8404935061247a565b50949350505050565b6001600160a01b038216612523576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61252c81611d69565b1561257e576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b61258a60008383612612565b6001600160a01b03821660009081526001602052604090206125b2908263ffffffff61266d16565b506125c56002828463ffffffff61267916565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000611045838361286e565b5490565b61261d838383610de1565b6126256112f5565b15610de15760405162461bcd60e51b815260040180806020018281038252602b815260200180612ef9602b913960400191505060405180910390fd5b60006110458383612a06565b60006110458383612acc565b60006122fb84846001600160a01b038516612b16565b6000611045836001600160a01b038416612acc565b815460009082106126e65760405162461bcd60e51b8152600401808060200182810382526022815260200180612ed76022913960400191505060405180910390fd5b8260000182815481106126f557fe5b9060005260206000200154905092915050565b6000611045836001600160a01b038416612a06565b60006110458383612bad565b81546000908190831061276d5760405162461bcd60e51b81526004018080602001828103825260228152602001806130b66022913960400191505060405180910390fd5b600084600001848154811061277e57fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b6000828152600184016020526040812054828161283f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156128045781810151838201526020016127ec565b50505050905090810190601f1680156128315780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5084600001600182038154811061285257fe5b9060005260206000209060020201600101549150509392505050565b60009081526001919091016020526040902054151590565b600061289a846001600160a01b0316612c81565b6128a657506001611ef8565b60606129cc630a85bd0160e11b6128bb611d7c565b88878760405160240180856001600160a01b03166001600160a01b03168152602001846001600160a01b03166001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561293457818101518382015260200161291c565b50505050905090810190601f1680156129615780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001612f53603291396001600160a01b038816919063ffffffff612c8716565b905060008180602001905160208110156129e557600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60008181526001830160205260408120548015612ac25783546000198083019190810190600090879083908110612a3957fe5b9060005260206000200154905080876000018481548110612a5657fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080612a8657fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050611048565b6000915050611048565b6000612ad8838361286e565b612b0e57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611048565b506000611048565b600082815260018401602052604081205480612b7b5750506040805180820182528381526020808201848152865460018181018955600089815284812095516002909302909501918255915190820155865486845281880190925292909120556122fe565b82856000016001830381548110612b8e57fe5b90600052602060002090600202016001018190555060009150506122fe565b60008181526001830160205260408120548015612ac25783546000198083019190810190600090879083908110612be057fe5b9060005260206000209060020201905080876000018481548110612c0057fe5b600091825260208083208454600290930201918255600193840154918401919091558354825289830190526040902090840190558654879080612c3f57fe5b60008281526020808220600260001990940193840201828155600190810183905592909355888152898201909252604082209190915594506110489350505050565b3b151590565b60606122fb84846000856060612c9c85612c81565b612ced576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310612d2c5780518252601f199092019160209182019101612d0d565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612d8e576040519150601f19603f3d011682016040523d82523d6000602084013e612d93565b606091505b50915091508115612da7579150611ef89050565b805115612db75780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156128045781810151838201526020016127ec565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10612e3f57805160ff1916838001178555612e6c565b82800160010185558215612e6c579182015b82811115612e6c578251825591602001919060010190612e51565b50612e78929150612ebc565b5090565b50805460018160011615610100020316600290046000825580601f10612ea257506112f2565b601f0160209004906000526020600020908101906112f291905b610ca691905b80821115612e785760008155600101612ec256fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732315061757361626c653a20746f6b656e207472616e73666572207768696c6520706175736564416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e744552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b654552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732314d657461646174613a2055524920736574206f66206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a2646970667358221220c3df5521ab568a55a7026a1c049be26c6b1efdf7f57b2c6be6ac15581a21797164736f6c6343000606003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000f537061636548756e746572204e4654000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034e46540000000000000000000000000000000000000000000000000000000000

Deployed ByteCode Sourcemap

72022:2598:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;32012:142:0;;5:9:-1;2:2;;;27:1;24;17:12;2:2;32012:142:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;32012:142:0;-1:-1:-1;;;;;;32012:142:0;;:::i;:::-;;;;;;;;;;;;;;;;;;52123:92;;5:9:-1;2:2;;;27:1;24;17:12;2:2;52123:92:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;52123:92:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54810:213;;5:9:-1;2:2;;;27:1;24;17:12;2:2;54810:213:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;54810:213:0;;:::i;:::-;;;;-1:-1:-1;;;;;54810:213:0;;;;;;;;;;;;;;54354:390;;5:9:-1;2:2;;;27:1;24;17:12;2:2;54354:390:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;54354:390:0;;;;;;;;:::i;:::-;;74112:234;;5:9:-1;2:2;;;27:1;24;17:12;2:2;74112:234:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;74112:234:0;-1:-1:-1;;;;;74112:234:0;;:::i;73583:218::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;73583:218:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;73583:218:0;;;;;;;;;;;;;;-1:-1:-1;;;11:28;;8:2;;;52:1;49;42:12;8:2;73583:218:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;73583:218:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;73583:218:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;73583:218:0;;-1:-1:-1;73583:218:0;;-1:-1:-1;;;;;73583:218:0:i;53848:203::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;53848:203:0;;;:::i;:::-;;;;;;;;;;;;;;;;55684:305;;5:9:-1;2:2;;;27:1;24;17:12;2:2;55684:305:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;55684:305:0;;;;;;;;;;;;;;;;;:::i;19443:114::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;19443:114:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;19443:114:0;;:::i;19819:227::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;19819:227:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;19819:227:0;;;;;;-1:-1:-1;;;;;19819:227:0;;:::i;53618:154::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;53618:154:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;53618:154:0;;;;;;;;:::i;21028:209::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;21028:209:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;21028:209:0;;;;;;-1:-1:-1;;;;;21028:209:0;;:::i;73960:144::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;73960:144:0;;;:::i;56060:151::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;56060:151:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;56060:151:0;;;;;;;;;;;;;;;;;:::i;73168:211::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;73168:211:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;73168:211:0;;:::i;54128:164::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;54128:164:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;54128:164:0;;:::i;73387:188::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;73387:188:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;73387:188:0;;;;;;;;-1:-1:-1;;;11:28;;8:2;;;52:1;49;42:12;8:2;73387:188:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;73387:188:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;73387:188:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;73387:188:0;;-1:-1:-1;73387:188:0;;-1:-1:-1;;;;;73387:188:0:i;65835:78::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;65835:78:0;;;:::i;51887:169::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;51887:169:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;51887:169:0;;:::i;72290:26::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;72290:26:0;;;:::i;53445:89::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;53445:89:0;;;:::i;51610:215::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;51610:215:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;51610:215:0;-1:-1:-1;;;;;51610:215:0;;:::i;69645:148::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;69645:148:0;;;:::i;72253:30::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;72253:30:0;;;:::i;72095:82::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;72095:82:0;;;:::i;73809:143::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;73809:143:0;;;:::i;69003:79::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;69003:79:0;;;:::i;19116:138::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;19116:138:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;19116:138:0;;;;;;;:::i;18077:139::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;18077:139:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;18077:139:0;;;;;;-1:-1:-1;;;;;18077:139:0;;:::i;74354:263::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;74354:263:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;74354:263:0;;:::i;52284:96::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;52284:96:0;;;:::i;16822:49::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;16822:49:0;;;:::i;55095:295::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;55095:295:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;55095:295:0;;;;;;;;;;:::i;72323:28::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;72323:28:0;;;:::i;72184:62::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;72184:62:0;;;:::i;56282:285::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;56282:285:0;;;;;;15:3:-1;10;7:12;4:2;;;32:1;29;22:12;4:2;-1:-1;;;;;56282:285:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11:28;;8:2;;;52:1;49;42:12;8:2;56282:285:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;56282:285:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;56282:285:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;56282:285:0;;-1:-1:-1;56282:285:0;;-1:-1:-1;;;;;56282:285:0:i;52451:755::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;52451:755:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;52451:755:0;;:::i;18390:127::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;18390:127:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;18390:127:0;;:::i;72939:221::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;72939:221:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;72939:221:0;;;;;;;;;;;;;;;-1:-1:-1;;;11:28;;8:2;;;52:1;49;42:12;8:2;72939:221:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;72939:221:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;72939:221:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;72939:221:0;;-1:-1:-1;72939:221:0;;-1:-1:-1;;;;;72939:221:0:i;20291:230::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;20291:230:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;20291:230:0;;;;;;-1:-1:-1;;;;;20291:230:0;;:::i;55461:156::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;55461:156:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;55461:156:0;;;;;;;;;;:::i;69948:244::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;69948:244:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;69948:244:0;-1:-1:-1;;;;;69948:244:0;;:::i;32012:142::-;-1:-1:-1;;;;;;32113:33:0;;32089:4;32113:33;;;;;;;;;;;;;32012:142;;;;:::o;52123:92::-;52202:5;52195:12;;;;;;;;-1:-1:-1;;52195:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52169:13;;52195:12;;52202:5;;52195:12;;52202:5;52195:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52123:92;;:::o;54810:213::-;54878:7;54906:16;54914:7;54906;:16::i;:::-;54898:73;;;;-1:-1:-1;;;54898:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54991:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;54991:24:0;;54810:213::o;54354:390::-;54435:13;54451:16;54459:7;54451;:16::i;:::-;54435:32;;54492:5;-1:-1:-1;;;;;54486:11:0;:2;-1:-1:-1;;;;;54486:11:0;;;54478:57;;;;-1:-1:-1;;;54478:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54572:5;-1:-1:-1;;;;;54556:21:0;:12;:10;:12::i;:::-;-1:-1:-1;;;;;54556:21:0;;:62;;;;54581:37;54598:5;54605:12;:10;:12::i;:::-;54581:16;:37::i;:::-;54548:154;;;;-1:-1:-1;;;54548:154:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54715:21;54724:2;54728:7;54715:8;:21::i;:::-;54354:390;;;:::o;74112:234::-;74208:11;;-1:-1:-1;;;;;74208:11:0;74192:12;:10;:12::i;:::-;-1:-1:-1;;;;;74192:27:0;;74184:49;;;;;-1:-1:-1;;;74184:49:0;;;;;;;;;;;;-1:-1:-1;;;74184:49:0;;;;;;;;;;;;;;;74244:11;:26;;-1:-1:-1;;;;;;74244:26:0;-1:-1:-1;;;;;74244:26:0;;;;;;;;;;;74326:11;74312:12;:10;:12::i;:::-;-1:-1:-1;;;;;74286:52:0;;;;;;;;;;;74112:234;:::o;73583:218::-;72143:34;;;-1:-1:-1;;;72143:34:0;;;;;;;;;;;;73671:44;;73702:12;:10;:12::i;:::-;73671:7;:44::i;:::-;73663:88;;;;;-1:-1:-1;;;73663:88:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;73762:31;73775:7;73784:8;73762:12;:31::i;:::-;73583:218;;:::o;53848:203::-;53901:7;54022:21;:12;:19;:21::i;:::-;54015:28;;53848:203;:::o;55684:305::-;55845:41;55864:12;:10;:12::i;:::-;55878:7;55845:18;:41::i;:::-;55837:103;;;;-1:-1:-1;;;55837:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55953:28;55963:4;55969:2;55973:7;55953:9;:28::i;19443:114::-;19500:7;19527:12;;;:6;:12;;;;;:22;;;;19443:114::o;19819:227::-;19911:12;;;;:6;:12;;;;;:22;;;19903:45;;19935:12;:10;:12::i;19903:45::-;19895:105;;;;-1:-1:-1;;;19895:105:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20013:25;20024:4;20030:7;20013:10;:25::i;53618:154::-;-1:-1:-1;;;;;53734:20:0;;53707:7;53734:20;;;:13;:20;;;;;:30;;53758:5;53734:30;:23;:30;:::i;:::-;53727:37;;53618:154;;;;;:::o;21028:209::-;21126:12;:10;:12::i;:::-;-1:-1:-1;;;;;21115:23:0;:7;-1:-1:-1;;;;;21115:23:0;;21107:83;;;;-1:-1:-1;;;21107:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21203:26;21215:4;21221:7;21203:11;:26::i;73960:144::-;66429:7;;;;66421:40;;;;;-1:-1:-1;;;66421:40:0;;;;;;;;;;;;-1:-1:-1;;;66421:40:0;;;;;;;;;;;;;;;72222:24:::1;::::0;;-1:-1:-1;;;72222:24:0;;;;;;;;::::1;::::0;;;74016:34:::1;::::0;74037:12:::1;:10;:12::i;74016:34::-;74008:67;;;::::0;;-1:-1:-1;;;74008:67:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;74008:67:0;;;;;;;;;;;;;::::1;;74086:10;:8;:10::i;:::-;73960:144::o:0;56060:151::-;56164:39;56181:4;56187:2;56191:7;56164:39;;;;;;;;;;;;:16;:39::i;73168:211::-;73225:41;73244:12;:10;:12::i;73225:41::-;73217:86;;;;;-1:-1:-1;;;73217:86:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73314:14;73320:7;73314:5;:14::i;:::-;73349:12;:10;:12::i;:::-;-1:-1:-1;;;;;73344:27:0;;73363:7;73344:27;;;;;;;;;;;;;;;;;;73168:211;:::o;54128:164::-;54195:7;;54237:22;:12;54253:5;54237:22;:15;:22;:::i;:::-;-1:-1:-1;54215:44:0;54128:164;-1:-1:-1;;;54128:164:0:o;73387:188::-;72143:34;;;-1:-1:-1;;;72143:34:0;;;;;;;;;;;;73456:44;;73487:12;:10;:12::i;73456:44::-;73448:88;;;;;-1:-1:-1;;;73448:88:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;73547:20;73559:7;73547:11;:20::i;:::-;73387:188;:::o;65835:78::-;65898:7;;;;65835:78;:::o;51887:169::-;51951:7;51978:70;51995:7;51978:70;;;;;;;;;;;;;;;;;:12;;:70;;:16;:70;:::i;72290:26::-;;;-1:-1:-1;;;;;72290:26:0;;:::o;53445:89::-;53518:8;53511:15;;;;;;;;-1:-1:-1;;53511:15:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53485:13;;53511:15;;53518:8;;53511:15;;53518:8;53511:15;;;;;;;;;;;;;;;;;;;;;;;;51610:215;51674:7;-1:-1:-1;;;;;51702:19:0;;51694:74;;;;-1:-1:-1;;;51694:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;51788:20:0;;;;;;:13;:20;;;;;:29;;:27;:29::i;69645:148::-;69225:12;:10;:12::i;:::-;69215:6;;-1:-1:-1;;;;;69215:6:0;;;:22;;;69207:67;;;;;-1:-1:-1;;;69207:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69736:6:::1;::::0;69715:40:::1;::::0;69752:1:::1;::::0;-1:-1:-1;;;;;69736:6:0::1;::::0;69715:40:::1;::::0;69752:1;;69715:40:::1;69766:6;:19:::0;;-1:-1:-1;;;;;;69766:19:0::1;::::0;;69645:148::o;72253:30::-;;;;:::o;72095:82::-;72143:34;;;-1:-1:-1;;;72143:34:0;;;;;;;;;;;;72095:82;:::o;73809:143::-;66153:7;;;;66152:8;66144:37;;;;;-1:-1:-1;;;66144:37:0;;;;;;;;;;;;-1:-1:-1;;;66144:37:0;;;;;;;;;;;;;;;72222:24:::1;::::0;;-1:-1:-1;;;72222:24:0;;;;;;;;::::1;::::0;;;73866:34:::1;::::0;73887:12:::1;:10;:12::i;73866:34::-;73858:67;;;::::0;;-1:-1:-1;;;73858:67:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;73858:67:0;;;;;;;;;;;;;::::1;;73936:8;:6;:8::i;69003:79::-:0;69068:6;;-1:-1:-1;;;;;69068:6:0;69003:79;:::o;19116:138::-;19189:7;19216:12;;;:6;:12;;;;;:30;;19240:5;19216:30;:23;:30;:::i;18077:139::-;18146:4;18170:12;;;:6;:12;;;;;:38;;18200:7;18170:38;:29;:38;:::i;74354:263::-;69225:12;:10;:12::i;:::-;69215:6;;-1:-1:-1;;;;;69215:6:0;;;:22;;;69207:67;;;;;-1:-1:-1;;;69207:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74457:14:::1;74440:13;;:31;;74432:59;;;::::0;;-1:-1:-1;;;74432:59:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;74432:59:0;;;;;;;;;;;;;::::1;;74524:12;:10;:12::i;:::-;-1:-1:-1::0;;;;;74507:61:0::1;;74538:13;;74553:14;74507:61;;;;;;;;;;;;;;;;;;;;;;;;74579:13;:30:::0;74354:263::o;52284:96::-;52365:7;52358:14;;;;;;;;-1:-1:-1;;52358:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52332:13;;52358:14;;52365:7;;52358:14;;52365:7;52358:14;;;;;;;;;;;;;;;;;;;;;;;;16822:49;16867:4;16822:49;:::o;55095:295::-;55210:12;:10;:12::i;:::-;-1:-1:-1;;;;;55198:24:0;:8;-1:-1:-1;;;;;55198:24:0;;;55190:62;;;;;-1:-1:-1;;;55190:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;55310:8;55265:18;:32;55284:12;:10;:12::i;:::-;-1:-1:-1;;;;;55265:32:0;;;;;;;;;;;;;;;;;-1:-1:-1;55265:32:0;;;:42;;;;;;;;;;;;:53;;-1:-1:-1;;55265:53:0;;;;;;;;;;;55349:12;:10;:12::i;:::-;55334:48;;;;;;;;;;-1:-1:-1;;;;;55334:48:0;;;;;;;;;;;;;;55095:295;;:::o;72323:28::-;;;;:::o;72184:62::-;72222:24;;;-1:-1:-1;;;72222:24:0;;;;;;;;;;;;72184:62;:::o;56282:285::-;56414:41;56433:12;:10;:12::i;:::-;56447:7;56414:18;:41::i;:::-;56406:103;;;;-1:-1:-1;;;56406:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56520:39;56534:4;56540:2;56544:7;56553:5;56520:13;:39::i;:::-;56282:285;;;;:::o;52451:755::-;52516:13;52550:16;52558:7;52550;:16::i;:::-;52542:76;;;;-1:-1:-1;;;52542:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52657:19;;;;:10;:19;;;;;;;;;52631:45;;;;;;-1:-1:-1;;52631:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:23;;:45;;;52657:19;52631:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;52758:8:0;52752:22;52631:45;;-1:-1:-1;;;;52752:22:0;-1:-1:-1;;52752:22:0;;;;;;;;;;;52748:76;;52803:9;-1:-1:-1;52796:16:0;;52748:76;52928:23;;:27;52924:112;;53003:8;53013:9;52986:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;52986:37:0;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;52986:37:0;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;52986:37:0;;;52972:52;;;;;52924:112;53168:8;53178:18;:7;:16;:18::i;:::-;53151:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;53151:46:0;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;53151:46:0;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;53151:46:0;;;53137:61;;;52451:755;;;:::o;18390:127::-;18453:7;18480:12;;;:6;:12;;;;;:29;;:27;:29::i;72939:221::-;73045:11;;73067:18;73073:2;73045:11;73067:5;:18::i;:::-;73096:11;:13;;;;;;73120:32;73133:7;73142:9;73120:12;:32::i;20291:230::-;20384:12;;;;:6;:12;;;;;:22;;;20376:45;;20408:12;:10;:12::i;20376:45::-;20368:106;;;;-1:-1:-1;;;20368:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55461:156;-1:-1:-1;;;;;55574:25:0;;;55550:4;55574:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;55461:156::o;69948:244::-;69225:12;:10;:12::i;:::-;69215:6;;-1:-1:-1;;;;;69215:6:0;;;:22;;;69207:67;;;;;-1:-1:-1;;;69207:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;70037:22:0;::::1;70029:73;;;;-1:-1:-1::0;;;70029:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70139:6;::::0;70118:38:::1;::::0;-1:-1:-1;;;;;70118:38:0;;::::1;::::0;70139:6:::1;::::0;70118:38:::1;::::0;70139:6:::1;::::0;70118:38:::1;70167:6;:17:::0;;-1:-1:-1;;;;;;70167:17:0::1;-1:-1:-1::0;;;;;70167:17:0;;;::::1;::::0;;;::::1;::::0;;69948:244::o;58034:119::-;58091:4;58115:30;:12;58137:7;58115:30;:21;:30;:::i;14732:106::-;14820:10;14732:106;:::o;63861:158::-;63927:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;63927:29:0;-1:-1:-1;;;;;63927:29:0;;;;;;;;:24;;63981:16;63927:24;63981:7;:16::i;:::-;-1:-1:-1;;;;;63972:39:0;;;;;;;;;;;63861:158;;:::o;62139:215::-;62239:16;62247:7;62239;:16::i;:::-;62231:73;;;;-1:-1:-1;;;62231:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62315:19;;;;:10;:19;;;;;;;;:31;;;;;;;;:::i;45469:123::-;45538:7;45565:19;45573:3;45565:7;:19::i;58320:333::-;58405:4;58430:16;58438:7;58430;:16::i;:::-;58422:73;;;;-1:-1:-1;;;58422:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58506:13;58522:16;58530:7;58522;:16::i;:::-;58506:32;;58568:5;-1:-1:-1;;;;;58557:16:0;:7;-1:-1:-1;;;;;58557:16:0;;:51;;;;58601:7;-1:-1:-1;;;;;58577:31:0;:20;58589:7;58577:11;:20::i;:::-;-1:-1:-1;;;;;58577:31:0;;58557:51;:87;;;;58612:32;58629:5;58636:7;58612:16;:32::i;:::-;58549:96;58320:333;-1:-1:-1;;;;58320:333:0:o;61409:574::-;61527:4;-1:-1:-1;;;;;61507:24:0;:16;61515:7;61507;:16::i;:::-;-1:-1:-1;;;;;61507:24:0;;61499:78;;;;-1:-1:-1;;;61499:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;61596:16:0;;61588:65;;;;-1:-1:-1;;;61588:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61666:39;61687:4;61693:2;61697:7;61666:20;:39::i;:::-;61770:29;61787:1;61791:7;61770:8;:29::i;:::-;-1:-1:-1;;;;;61812:19:0;;;;;;:13;:19;;;;;:35;;61839:7;61812:35;:26;:35;:::i;:::-;-1:-1:-1;;;;;;61858:17:0;;;;;;:13;:17;;;;;:30;;61880:7;61858:30;:21;:30;:::i;:::-;-1:-1:-1;61901:29:0;:12;61918:7;61927:2;61901:29;:16;:29;:::i;:::-;;61967:7;61963:2;-1:-1:-1;;;;;61948:27:0;61957:4;-1:-1:-1;;;;;61948:27:0;;;;;;;;;;;61409:574;;;:::o;22271:188::-;22345:12;;;;:6;:12;;;;;:33;;22370:7;22345:33;:24;:33;:::i;:::-;22341:111;;;22427:12;:10;:12::i;:::-;-1:-1:-1;;;;;22400:40:0;22418:7;-1:-1:-1;;;;;22400:40:0;22412:4;22400:40;;;;;;;;;;22271:188;;:::o;7853:137::-;7924:7;7959:22;7963:3;7975:5;7959:3;:22::i;22467:192::-;22542:12;;;;:6;:12;;;;;:36;;22570:7;22542:36;:27;:36;:::i;:::-;22538:114;;;22627:12;:10;:12::i;:::-;-1:-1:-1;;;;;22600:40:0;22618:7;-1:-1:-1;;;;;22600:40:0;22612:4;22600:40;;;;;;;;;;22467:192;;:::o;66884:120::-;66429:7;;;;66421:40;;;;;-1:-1:-1;;;66421:40:0;;;;;;;;;;;;-1:-1:-1;;;66421:40:0;;;;;;;;;;;;;;;66943:7:::1;:15:::0;;-1:-1:-1;;66943:15:0::1;::::0;;66974:22:::1;66983:12;:10;:12::i;:::-;66974:22;::::0;;-1:-1:-1;;;;;66974:22:0;;::::1;::::0;;;;;;;::::1;::::0;;::::1;66884:120::o:0;60552:520::-;60612:13;60628:16;60636:7;60628;:16::i;:::-;60612:32;;60657:48;60678:5;60693:1;60697:7;60657:20;:48::i;:::-;60746:29;60763:1;60767:7;60746:8;:29::i;:::-;60834:19;;;;:10;:19;;;;;60828:33;;-1:-1:-1;;60828:33:0;;;;;;;;;;;:38;60824:97;;60890:19;;;;:10;:19;;;;;60883:26;;;:::i;:::-;-1:-1:-1;;;;;60933:20:0;;;;;;:13;:20;;;;;:36;;60961:7;60933:36;:27;:36;:::i;:::-;-1:-1:-1;60982:28:0;:12;61002:7;60982:28;:19;:28;:::i;:::-;-1:-1:-1;61028:36:0;;61056:7;;61052:1;;-1:-1:-1;;;;;61028:36:0;;;;;61052:1;;61028:36;60552:520;;:::o;45931:227::-;46011:7;;;;46071:22;46075:3;46087:5;46071:3;:22::i;:::-;46040:53;;;;-1:-1:-1;45931:227:0;-1:-1:-1;;;;;45931:227:0:o;62584:100::-;62657:19;;;;:8;;:19;;;;;:::i;46593:204::-;46700:7;46743:44;46748:3;46768;46774:12;46743:4;:44::i;:::-;46735:53;-1:-1:-1;46593:204:0;;;;;;:::o;66625:118::-;66153:7;;;;66152:8;66144:37;;;;;-1:-1:-1;;;66144:37:0;;;;;;;;;;;;-1:-1:-1;;;66144:37:0;;;;;;;;;;;;;;;66685:7:::1;:14:::0;;-1:-1:-1;;66685:14:0::1;66695:4;66685:14;::::0;;66715:20:::1;66722:12;:10;:12::i;5529:158::-:0;5609:4;5633:46;5643:3;-1:-1:-1;;;;;5663:14:0;;5633:9;:46::i;57449:272::-;57563:28;57573:4;57579:2;57583:7;57563:9;:28::i;:::-;57610:48;57633:4;57639:2;57643:7;57652:5;57610:22;:48::i;:::-;57602:111;;;;-1:-1:-1;;;57602:111:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47071:744;47127:13;47348:10;47344:53;;-1:-1:-1;47375:10:0;;;;;;;;;;;;-1:-1:-1;;;47375:10:0;;;;;;47344:53;47422:5;47407:12;47463:78;47470:9;;47463:78;;47496:8;;47527:2;47519:10;;;;47463:78;;;47551:19;47583:6;47573:17;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;47573:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;21:6:-1;;108:14;47573:17:0;87:42:-1;143:17;;-1:-1;47573:17:0;-1:-1:-1;47645:5:0;;-1:-1:-1;47551:39:0;-1:-1:-1;;;47617:10:0;;47661:115;47668:9;;47661:115;;47735:2;47728:4;:9;47723:2;:14;47712:27;;47694:6;47701:7;;;;;;;47694:15;;;;;;;;;;;:45;-1:-1:-1;;;;;47694:45:0;;;;;;;;-1:-1:-1;47762:2:0;47754:10;;;;47661:115;;;-1:-1:-1;47800:6:0;47071:744;-1:-1:-1;;;;47071:744:0:o;59919:404::-;-1:-1:-1;;;;;59999:16:0;;59991:61;;;;;-1:-1:-1;;;59991:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60072:16;60080:7;60072;:16::i;:::-;60071:17;60063:58;;;;;-1:-1:-1;;;60063:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;60134:45;60163:1;60167:2;60171:7;60134:20;:45::i;:::-;-1:-1:-1;;;;;60192:17:0;;;;;;:13;:17;;;;;:30;;60214:7;60192:30;:21;:30;:::i;:::-;-1:-1:-1;60235:29:0;:12;60252:7;60261:2;60235:29;:16;:29;:::i;:::-;-1:-1:-1;60282:33:0;;60307:7;;-1:-1:-1;;;;;60282:33:0;;;60299:1;;60282:33;;60299:1;;60282:33;59919:404;;:::o;45230:151::-;45314:4;45338:35;45348:3;45368;45338:9;:35::i;42852:110::-;42935:19;;42852:110::o;67630:241::-;67740:45;67767:4;67773:2;67777:7;67740:26;:45::i;:::-;67807:8;:6;:8::i;:::-;67806:9;67798:65;;;;-1:-1:-1;;;67798:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6940:137;7010:4;7034:35;7042:3;7062:5;7034:7;:35::i;6633:131::-;6700:4;6724:32;6729:3;6749:5;6724:4;:32::i;44662:176::-;44751:4;44775:55;44780:3;44800;-1:-1:-1;;;;;44814:14:0;;44775:4;:55::i;4975:143::-;5045:4;5069:41;5074:3;-1:-1:-1;;;;;5094:14:0;;5069:4;:41::i;4517:204::-;4612:18;;4584:7;;4612:26;-1:-1:-1;4604:73:0;;;;-1:-1:-1;;;4604:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4695:3;:11;;4707:5;4695:18;;;;;;;;;;;;;;;;4688:25;;4517:204;;;;:::o;5294:149::-;5367:4;5391:44;5399:3;-1:-1:-1;;;;;5419:14:0;;5391:7;:44::i;45004:142::-;45081:4;45105:33;45113:3;45133;45105:7;:33::i;43317:279::-;43421:19;;43384:7;;;;43421:27;-1:-1:-1;43413:74:0;;;;-1:-1:-1;;;43413:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43500:22;43525:3;:12;;43538:5;43525:19;;;;;;;;;;;;;;;;;;43500:44;;43563:5;:10;;;43575:5;:12;;;43555:33;;;;;43317:279;;;;;:::o;44019:319::-;44113:7;44152:17;;;:12;;;:17;;;;;;44203:12;44188:13;44180:36;;;;-1:-1:-1;;;44180:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;44180:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44270:3;:12;;44294:1;44283:8;:12;44270:26;;;;;;;;;;;;;;;;;;:33;;;44263:40;;;44019:319;;;;;:::o;3849:129::-;3922:4;3946:19;;;:12;;;;;:19;;;;;;:24;;;3849:129::o;63249:604::-;63370:4;63397:15;:2;-1:-1:-1;;;;;63397:13:0;;:15::i;:::-;63392:60;;-1:-1:-1;63436:4:0;63429:11;;63392:60;63462:23;63488:252;-1:-1:-1;;;63601:12:0;:10;:12::i;:::-;63628:4;63647:7;63669:5;63504:181;;;;;;-1:-1:-1;;;;;63504:181:0;-1:-1:-1;;;;;63504:181:0;;;;;;-1:-1:-1;;;;;63504:181:0;-1:-1:-1;;;;;63504:181:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;63504:181:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;63504:181:0;;;;-1:-1:-1;;;;;63504:181:0;;38:4:-1;29:7;25:18;67:10;61:17;-1:-1;;;;;199:8;192:4;186;182:15;179:29;167:10;160:49;0:215;;;63504:181:0;63488:252;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;63488:15:0;;;:252;;:15;:252;:::i;:::-;63462:278;;63751:13;63778:10;63767:32;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;63767:32:0;-1:-1:-1;;;;;;63818:26:0;-1:-1:-1;;;63818:26:0;;-1:-1:-1;;;63249:604:0;;;;;;:::o;2219:1544::-;2285:4;2424:19;;;:12;;;:19;;;;;;2460:15;;2456:1300;;2895:18;;-1:-1:-1;;2846:14:0;;;;2895:22;;;;2822:21;;2895:3;;:22;;3182;;;;;;;;;;;;;;3162:42;;3328:9;3299:3;:11;;3311:13;3299:26;;;;;;;;;;;;;;;;;;;:38;;;;3405:23;;;3447:1;3405:12;;;:23;;;;;;3431:17;;;3405:43;;3557:17;;3405:3;;3557:17;;;;;;;;;;;;;;;;;;;;;;3652:3;:12;;:19;3665:5;3652:19;;;;;;;;;;;3645:26;;;3695:4;3688:11;;;;;;;;2456:1300;3739:5;3732:12;;;;;1629:414;1692:4;1714:21;1724:3;1729:5;1714:9;:21::i;:::-;1709:327;;-1:-1:-1;27:10;;39:1;23:18;;;45:23;;1752:11:0;:23;;;;;;;;;;;;;1935:18;;1913:19;;;:12;;;:19;;;;;;:40;;;;1968:11;;1709:327;-1:-1:-1;2019:5:0;2012:12;;40132:692;40208:4;40343:17;;;:12;;;:17;;;;;;40377:13;40373:444;;-1:-1:-1;;40462:38:0;;;;;;;;;;;;;;;;;;27:10:-1;;39:1;23:18;;;45:23;;40444:12:0;:57;;;;;;;;;;;;;;;;;;;;;;;;40659:19;;40639:17;;;:12;;;:17;;;;;;;:39;40693:11;;40373:444;40773:5;40737:3;:12;;40761:1;40750:8;:12;40737:26;;;;;;;;;;;;;;;;;;:33;;:41;;;;40800:5;40793:12;;;;;40999:1549;41063:4;41198:17;;;:12;;;:17;;;;;;41232:13;;41228:1313;;41664:19;;-1:-1:-1;;41617:12:0;;;;41664:23;;;;41593:21;;41664:3;;:23;;41961;;;;;;;;;;;;;;;;41932:52;;42109:9;42079:3;:12;;42092:13;42079:27;;;;;;;;;;;;;;;;:39;;:27;;;;;:39;;;;;;;;;;;;;;;42199:14;;42186:28;;:12;;;:28;;;;;42217:17;;;42186:48;;42343:18;;42186:3;;42343:18;;;;;;;;;;;;;;-1:-1:-1;;42343:18:0;;;;;;;;;;;;;;;;;;;;;42439:17;;;:12;;;:17;;;;;;42432:24;;;;42343:18;-1:-1:-1;42473:11:0;;-1:-1:-1;;;;42473:11:0;8794:422;9161:20;9200:8;;;8794:422::o;11712:196::-;11815:12;11847:53;11870:6;11878:4;11884:1;11887:12;13219;13252:18;13263:6;13252:10;:18::i;:::-;13244:60;;;;;-1:-1:-1;;;13244:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;13378:12;13392:23;13419:6;-1:-1:-1;;;;;13419:11:0;13439:8;13450:4;13419:36;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;13419:36:0;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;14:27;32:4;27:9;;5:228;;13377:78:0;;;;13470:7;13466:595;;;13501:10;-1:-1:-1;13494:17:0;;-1:-1:-1;13494:17:0;13466:595;13615:17;;:21;13611:439;;13878:10;13872:17;13939:15;13926:10;13922:2;13918:19;13911:44;13826:148;14014:20;;-1:-1:-1;;;14014:20:0;;;;;;;;;;;;;;;;;14021:12;;14014:20;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;72022:2598:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;72022:2598:0;;;-1:-1:-1;72022:2598:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

ipfs://c3df5521ab568a55a7026a1c049be26c6b1efdf7f57b2c6be6ac15581a217971
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading