Token Fantom Name Service (.ftm)

Overview ERC-721

Total Supply:
0 FNS

Holders:
3 addresses

Transfers:
-

Profile Summary

 
Contract:
0xfdcce24a636e9c20be3251ba41f041b3e35fb73d0xFdCcE24A636e9C20BE3251bA41f041b3e35Fb73d

Loading
[ Download CSV Export  ] 
Loading
[ Download CSV Export  ] 
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
RegistryDomain

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-01-19
*/

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.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.
 */
abstract 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() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual 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());
    }
}

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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


pragma solidity ^0.8.0;

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


pragma solidity ^0.8.0;

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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



pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.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.
 */
abstract contract Ownable is Context {
    address private _owner;

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

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

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

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

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

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

pragma solidity ^0.8.0;


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

pragma solidity ^0.8.0;

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

pragma solidity ^0.8.0;

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        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 virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

pragma solidity ^0.8.0;

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


library Roles {
    struct Role {
        mapping (address => bool) bearer;
    }

    /**
     * @dev Give an account access to this role.
     */
    function add(Role storage role, address account) internal {
        require(!has(role, account), "Roles: account already has role");
        role.bearer[account] = true;
    }

    /**
     * @dev Remove an account's access to this role.
     */
    function remove(Role storage role, address account) internal {
        require(has(role, account), "Roles: account does not have role");
        role.bearer[account] = false;
    }

    /**
     * @dev Check if an account has this role.
     * @return bool
     */
    function has(Role storage role, address account) internal view returns (bool) {
        require(account != address(0), "Roles: account is the zero address");
        return role.bearer[account];
    }
}

contract AdminControl is Ownable {

    using Roles for Roles.Role;

    Roles.Role private _controllerRoles;


    modifier onlyMinterController() {
      require (
        hasRole(msg.sender), 
        "AdminControl: sender must has minting role"
      );
      _;
    }

    modifier onlyMinter() {
      require (
        hasRole(msg.sender), 
        "AdminControl: sender must has minting role"
      );
      _;
    }

    constructor() {
      _grantRole(msg.sender);
    }

    function grantMinterRole (address account) public  onlyOwner {
      _grantRole(account);
    }

    function revokeMinterRole (address account) public  onlyOwner {
      _revokeRole(account);
    }

    function hasRole(address account) public view returns (bool) {
      return _controllerRoles.has(account);
    }
    
    function _grantRole (address account) internal {
      _controllerRoles.add(account);
    }

    function _revokeRole (address account) internal {
      _controllerRoles.remove(account);
    }

}



library StringUtil {

    /**
     * @dev Return the count of the dot "." in a string
    */
    function dotCount(string memory s) internal pure returns (uint) {
        s; // Don't warn about unused variables
        // Starting here means the LSB will be the byte we care about
        uint ptr;
        uint end;
        assembly {
            ptr := add(s, 1)
            end := add(mload(s), ptr)
        }
        uint num = 0;
        uint len = 0;
        for (len; ptr < end; len++) {
            uint8 b;
            assembly { b := and(mload(ptr), 0xFF) }
            if (b == 0x2e) {
                num += 1;
            }
            ptr += 1;
        }
        return num;
    }
	
	function toLower(string memory str) internal pure returns (string memory) {
        bytes memory bStr = bytes(str);
        bytes memory bLower = new bytes(bStr.length);
        for (uint i = 0; i < bStr.length; i++) {
            // Uppercase character...
            if ((uint8(bStr[i]) >= 65) && (uint8(bStr[i]) <= 90)) {
                // So we add 32 to make it lowercase
                bLower[i] = bytes1(uint8(bStr[i]) + 32);
            } else {
                bLower[i] = bStr[i];
            }
        }
        return string(bLower);
    }
	
	function toHash(string memory _s) internal pure returns (bytes32) {
        return keccak256(abi.encode(_s));
    }

    function isEmpty(string memory _s) internal pure returns (bool) {
        return bytes(_s).length == 0;
    }
	
	 function compare(string memory _a, string memory _b) internal pure returns (int) {
        bytes memory a = bytes(_a);
        bytes memory b = bytes(_b);
        uint minLength = a.length;
        if (b.length < minLength) minLength = b.length;
        //@todo unroll the loop into increments of 32 and do full 32 byte comparisons
        for (uint i = 0; i < minLength; i ++)
            if (a[i] < b[i])
                return -1;
            else if (a[i] > b[i])
                return 1;
        if (a.length < b.length)
            return -1;
        else if (a.length > b.length)
            return 1;
        else
            return 0;
    }
    /// @dev Compares two strings and returns true iff they are equal.
    function equal(string memory _a, string memory _b) internal pure returns (bool) {
        return compare(_a, _b) == 0;
    }
    /// @dev Finds the index of the first occurrence of _needle in _haystack
    function indexOf(string memory _haystack, string memory _needle) internal pure returns (int)
    {
    	bytes memory h = bytes(_haystack);
    	bytes memory n = bytes(_needle);
    	if(h.length < 1 || n.length < 1 || (n.length > h.length)) 
    		return -1;
    	else if(h.length > (2**128 -1)) // since we have to be able to return -1 (if the char isn't found or input error), this function must return an "int" type with a max length of (2^128 - 1)
    		return -1;									
    	else
    	{
    		uint subindex = 0;
    		for (uint i = 0; i < h.length; i ++)
    		{
    			if (h[i] == n[0]) // found the first char of b
    			{
    				subindex = 1;
    				while(subindex < n.length && (i + subindex) < h.length && h[i + subindex] == n[subindex]) // search until the chars don't match or until we reach the end of a or b
    				{
    					subindex++;
    				}	
    				if(subindex == n.length)
    					return int(i);
    			}
    		}
    		return -1;
    	}	
    }
}

library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

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

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

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

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

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

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

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

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

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

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

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

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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

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

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

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

        assembly {
            result := store
        }

        return result;
    }
}

pragma solidity ^0.8.0;

contract RegistryDomain is ERC721, AdminControl 
{
	using EnumerableSet for EnumerableSet.UintSet;  
	
	event NewURI(uint256 indexed tokenId, string tokenUri);
	
    event NewRouter(uint256 indexed tokenId, address indexed router);
	
    event NewResolver(uint256 indexed tokenId, address indexed resolver);
		
	mapping (uint256 => EnumerableSet.UintSet) private _subTokens;

	mapping (uint256 => string) public _tokenURIs;

    mapping (uint256 => address) internal _tokenResolvers;

	string private _nftBaseURI = "";
	
	string private _TLD = "";
	
	bool public _saleIsActive = true;

	uint256 private _price = 5000000000000000000;
	
    modifier onlyApprovedOrOwner(uint256 tokenId) {
        require(
            _isApprovedOrOwner(_msgSender(), tokenId)
        );
        _;
    }

    constructor() ERC721("Fantom Name Service (.ftm)", "FNS") {

    }

	function getPrice() public view returns (uint256) {
        return _price;
    }
	
	function setPrice(uint256 price) public onlyOwner {
        _price = price;
    }
	
	function setSaleState() public onlyOwner {
        _saleIsActive = !_saleIsActive;
    }
	
	function _baseURI() internal view override returns (string memory) {
        return _nftBaseURI;
    }
    
    function setBaseURI(string memory _uri) external onlyOwner {
        _nftBaseURI = _uri;
    }
	
	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.
		string memory baseURI = _baseURI();
        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));
    }

	function getOwner(string memory domain) external view returns (address)  {
		string memory _domain = StringUtil.toLower(domain);
	    uint256 tokenId = uint256(keccak256(abi.encodePacked(_domain)));
        return ownerOf(tokenId);
    }
	
	function buyDomain(string memory domain) public payable {
		require(_saleIsActive, "Sale must be active to buy");
			
		require (bytes(domain).length != 0, "Domain must be non-empty");
		
		require(msg.value >= getPrice(), "Insufficient Token or Token value sent is not correct");

		string memory _domain = StringUtil.toLower(domain);
		
		uint256 tokenId = uint256(keccak256(abi.encodePacked(_domain)));
		
		require (!_exists(tokenId), "Domain already exists");
		
	   _safeMint(msg.sender, tokenId);
	   
	   _setTokenURI(tokenId, _domain);
	   
	   emit NewURI(tokenId, _domain);
    }

	function registerDomain(address to, string memory domain) public onlyOwner {
	
		require (bytes(domain).length != 0, "Domain must be non-empty");
		
		string memory _domain = StringUtil.toLower(domain);
		
		uint256 tokenId = uint256(keccak256(abi.encodePacked(_domain)));
		
		require (!_exists(tokenId), "Domain already exists");
		
       _safeMint(to, tokenId);
	   
	   _setTokenURI(tokenId, _domain);
	   
	   emit NewURI(tokenId, _domain);
    }
	
    function registerSubDomain(address to, uint256 tokenId, string memory sub) external 
        onlyApprovedOrOwner(tokenId) 
    {
        _safeMintSubDomain(to, tokenId, sub, "");
    }
		
	function burn(uint256 tokenId) public virtual {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
		
		if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
		
        _burn(tokenId);
    }


    function isApprovedOrOwner(address account, uint256 tokenId) external view returns(bool)  {
        return _isApprovedOrOwner(account, tokenId);
    }

    function setOwner(address to, uint256 tokenId) external onlyApprovedOrOwner(tokenId) {
        _transfer(ownerOf(tokenId), to, tokenId);
    }
	
	function exists(uint256 tokenId) external view returns (bool) {
        return _exists(tokenId);
    }

    function setResolver(uint256 tokenId, address resolver) public onlyApprovedOrOwner(tokenId) {
        _setResolver(tokenId, resolver);
    }

    function resolverOf(uint256 tokenId) external view returns (address) {
        address resolver = _tokenResolvers[tokenId];
        require (resolver != address(0));
        return resolver;
    }
    
    function burnSubDomain(uint256 tokenId, string memory sub) external onlyApprovedOrOwner(tokenId) {
        _burnSubDomain(tokenId, sub);
    }

	
	function genTokenId(string memory label) public pure returns(uint256)  {
        require (bytes(label).length != 0);
        return uint256(keccak256(abi.encodePacked(label)));
    }

	function withdraw() public payable onlyOwner {
        require(payable(msg.sender).send(address(this).balance));
    }
	
    function _safeMintSubDomain(address to, uint256 tokenId, string memory sub, bytes memory _data) internal {
        require (bytes(sub).length != 0);
        require (StringUtil.dotCount(sub) == 0);
        require (_exists(tokenId));
        
		string memory _sub = StringUtil.toLower(sub);
		
        bytes memory _newUri = abi.encodePacked(_sub, ".", _tokenURIs[tokenId]);
		
		uint256 _newTokenId = genTokenId(string(_newUri));

        uint256 count = StringUtil.dotCount(_tokenURIs[tokenId]);
		
        if (count == 1) 
		{
            _subTokens[tokenId].add(_newTokenId);
        }

        if (bytes(_data).length != 0) {
            _safeMint(to, _newTokenId, _data);
        } else {
            _mint(to, _newTokenId);
        }
        
        _setTokenURI(_newTokenId, string(_newUri));

        emit NewURI(_newTokenId, string(_newUri));
    }

    /**
     * @dev Burn the tokenURI according the token ID,
     * @param tokenId the root tokenId of a tokenURI, 
     * @param sub the label of a tokenURI should be burn
     */
    function _burnSubDomain(uint256 tokenId, string memory sub) internal {
        string memory _sub = StringUtil.toLower(sub);
		
        bytes memory _newUri = abi.encodePacked(_sub, ".", _tokenURIs[tokenId]);
		
		uint256 _newTokenId = genTokenId(string(_newUri));
        // remove sub tokenIds itself
        _subTokens[tokenId].remove(_newTokenId);

        if (_tokenResolvers[tokenId] != address(0)) {
            delete _tokenResolvers[tokenId];
        }
		
		if (bytes(_tokenURIs[_newTokenId]).length != 0) {
            delete _tokenURIs[_newTokenId];
        }
		
        super._burn(_newTokenId);
    }

    function _setResolver(uint256 tokenId, address resolver) internal {
        require (_exists(tokenId));
        _tokenResolvers[tokenId] = resolver;
        emit NewResolver(tokenId, resolver);
    }
	
	function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }
}

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"resolver","type":"address"}],"name":"NewResolver","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"router","type":"address"}],"name":"NewRouter","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"tokenUri","type":"string"}],"name":"NewURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"_saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_tokenURIs","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"sub","type":"string"}],"name":"burnSubDomain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"domain","type":"string"}],"name":"buyDomain","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"label","type":"string"}],"name":"genTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"domain","type":"string"}],"name":"getOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"grantMinterRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"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":"account","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isApprovedOrOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"string","name":"domain","type":"string"}],"name":"registerDomain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"sub","type":"string"}],"name":"registerSubDomain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"resolverOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"revokeMinterRole","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":"_uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"resolver","type":"address"}],"name":"setResolver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setSaleState","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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

60a06040819052600060808190526200001b91600b9162000285565b506040805160208101918290526000908190526200003c91600c9162000285565b50600d805460ff19166001179055674563918244f40000600e553480156200006357600080fd5b50604080518082018252601a81527f46616e746f6d204e616d65205365727669636520282e66746d29000000000000602080830191825283518085019094526003845262464e5360e81b908401528151919291620000c49160009162000285565b508051620000da90600190602084019062000285565b505050620000f7620000f16200010860201b60201c565b6200010c565b62000102336200015e565b62000368565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620001798160076200017c60201b620015571790919060201c565b50565b62000188828262000200565b15620001db5760405162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c650060448201526064015b60405180910390fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b60006001600160a01b038216620002655760405162461bcd60e51b815260206004820152602260248201527f526f6c65733a206163636f756e7420697320746865207a65726f206164647265604482015261737360f01b6064820152608401620001d2565b506001600160a01b03166000908152602091909152604090205460ff1690565b82805462000293906200032b565b90600052602060002090601f016020900481019282620002b7576000855562000302565b82601f10620002d257805160ff191683800117855562000302565b8280016001018555821562000302579182015b8281111562000302578251825591602001919060010190620002e5565b506200031092915062000314565b5090565b5b8082111562000310576000815560010162000315565b600181811c908216806200034057607f821691505b602082108114156200036257634e487b7160e01b600052602260045260246000fd5b50919050565b612cd080620003786000396000f3fe6080604052600436106102255760003560e01c80636352211e1161012357806398d5fdca116100ab578063bc7b6d621161006f578063bc7b6d6214610630578063c479a80414610650578063c87b56dd14610670578063e985e9c514610690578063f2fde38b146106d957600080fd5b806398d5fdca1461059b578063a22cb465146105b0578063ab3b87fe146105d0578063b3f9e4cb146105f0578063b88d4fde1461061057600080fd5b80637ef09bca116100f25780637ef09bca146105085780638da5cb5b1461052857806391b7f5ed1461054657806395d89b411461056657806398a602431461057b57600080fd5b80636352211e1461049357806369e2f0fb146104b357806370a08231146104d3578063715018a6146104f357600080fd5b80633dd1eb61116101b15780634f558e79116101755780634f558e79146103eb5780635040ddf21461040b57806350b3a1441461042b57806355f804b3146104595780635d893ba01461047957600080fd5b80633dd1eb611461034b57806342842e0e1461036b57806342966c681461038b578063430c2081146103ab5780634aaf4a12146103cb57600080fd5b80630bb78ec1116101f85780630bb78ec1146102db5780631c3b028e146102fb5780631ed405591461030e57806323b872dd146103235780633ccfd60b1461034357600080fd5b806301ffc9a71461022a57806306fdde031461025f578063081812fc14610281578063095ea7b3146102b9575b600080fd5b34801561023657600080fd5b5061024a61024536600461254c565b6106f9565b60405190151581526020015b60405180910390f35b34801561026b57600080fd5b5061027461074b565b60405161025691906125c1565b34801561028d57600080fd5b506102a161029c3660046125d4565b6107dd565b6040516001600160a01b039091168152602001610256565b3480156102c557600080fd5b506102d96102d4366004612609565b61086a565b005b3480156102e757600080fd5b506102746102f63660046125d4565b610980565b6102d96103093660046126df565b610a1a565b34801561031a57600080fd5b506102d9610bff565b34801561032f57600080fd5b506102d961033e366004612714565b610c3d565b6102d9610c6f565b34801561035757600080fd5b506102d9610366366004612750565b610cbf565b34801561037757600080fd5b506102d9610386366004612714565b610cf5565b34801561039757600080fd5b506102d96103a63660046125d4565b610d10565b3480156103b757600080fd5b5061024a6103c6366004612609565b610dbe565b3480156103d757600080fd5b506102a16103e63660046126df565b610dd1565b3480156103f757600080fd5b5061024a6104063660046125d4565b610e1e565b34801561041757600080fd5b506102d961042636600461276b565b610e29565b34801561043757600080fd5b5061044b6104463660046126df565b610f77565b604051908152602001610256565b34801561046557600080fd5b506102d96104743660046126df565b610fb7565b34801561048557600080fd5b50600d5461024a9060ff1681565b34801561049f57600080fd5b506102a16104ae3660046125d4565b610ff8565b3480156104bf57600080fd5b506102d96104ce366004612750565b61106f565b3480156104df57600080fd5b5061044b6104ee366004612750565b6110a2565b3480156104ff57600080fd5b506102d9611129565b34801561051457600080fd5b5061024a610523366004612750565b61115d565b34801561053457600080fd5b506006546001600160a01b03166102a1565b34801561055257600080fd5b506102d96105613660046125d4565b61116a565b34801561057257600080fd5b50610274611199565b34801561058757600080fd5b506102d96105963660046127b9565b6111a8565b3480156105a757600080fd5b50600e5461044b565b3480156105bc57600080fd5b506102d96105cb366004612810565b6111dc565b3480156105dc57600080fd5b506102d96105eb366004612609565b6112a1565b3480156105fc57600080fd5b506102a161060b3660046125d4565b6112c7565b34801561061c57600080fd5b506102d961062b36600461284c565b6112e9565b34801561063c57600080fd5b506102d961064b3660046128c8565b61131b565b34801561065c57600080fd5b506102d961066b3660046128f4565b611338565b34801561067c57600080fd5b5061027461068b3660046125d4565b611355565b34801561069c57600080fd5b5061024a6106ab366004612925565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156106e557600080fd5b506102d96106f4366004612750565b6114bf565b60006001600160e01b031982166380ac58cd60e01b148061072a57506001600160e01b03198216635b5e139f60e01b145b8061074557506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461075a9061294f565b80601f01602080910402602001604051908101604052809291908181526020018280546107869061294f565b80156107d35780601f106107a8576101008083540402835291602001916107d3565b820191906000526020600020905b8154815290600101906020018083116107b657829003601f168201915b5050505050905090565b60006107e8826115d3565b61084e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061087582610ff8565b9050806001600160a01b0316836001600160a01b031614156108e35760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610845565b336001600160a01b03821614806108ff57506108ff81336106ab565b6109715760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610845565b61097b83836115f0565b505050565b600960205260009081526040902080546109999061294f565b80601f01602080910402602001604051908101604052809291908181526020018280546109c59061294f565b8015610a125780601f106109e757610100808354040283529160200191610a12565b820191906000526020600020905b8154815290600101906020018083116109f557829003601f168201915b505050505081565b600d5460ff16610a6c5760405162461bcd60e51b815260206004820152601a60248201527f53616c65206d7573742062652061637469766520746f206275790000000000006044820152606401610845565b8051610ab55760405162461bcd60e51b8152602060048201526018602482015277446f6d61696e206d757374206265206e6f6e2d656d70747960401b6044820152606401610845565b600e54341015610b255760405162461bcd60e51b815260206004820152603560248201527f496e73756666696369656e7420546f6b656e206f7220546f6b656e2076616c7560448201527419481cd95b9d081a5cc81b9bdd0818dbdc9c9958dd605a1b6064820152608401610845565b6000610b308261165e565b9050600081604051602001610b45919061298a565b6040516020818303038152906040528051906020012060001c9050610b69816115d3565b15610bae5760405162461bcd60e51b8152602060048201526015602482015274446f6d61696e20616c72656164792065786973747360581b6044820152606401610845565b610bb833826117c1565b610bc281836117db565b807fc5beef08f693b11c316c0c8394a377a0033c9cf701b8cd8afd79cecef60c395283604051610bf291906125c1565b60405180910390a2505050565b6006546001600160a01b03163314610c295760405162461bcd60e51b8152600401610845906129a6565b600d805460ff19811660ff90911615179055565b610c48335b82611864565b610c645760405162461bcd60e51b8152600401610845906129db565b61097b83838361194a565b6006546001600160a01b03163314610c995760405162461bcd60e51b8152600401610845906129a6565b60405133904780156108fc02916000818181858888f19350505050610cbd57600080fd5b565b6006546001600160a01b03163314610ce95760405162461bcd60e51b8152600401610845906129a6565b610cf281611aea565b50565b61097b838383604051806020016040528060008152506112e9565b610d1933610c42565b610d7e5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610845565b60008181526009602052604090208054610d979061294f565b159050610db5576000818152600960205260408120610db591612463565b610cf281611af5565b6000610dca8383611864565b9392505050565b600080610ddd8361165e565b9050600081604051602001610df2919061298a565b6040516020818303038152906040528051906020012060001c9050610e1681610ff8565b949350505050565b6000610745826115d3565b6006546001600160a01b03163314610e535760405162461bcd60e51b8152600401610845906129a6565b8051610e9c5760405162461bcd60e51b8152602060048201526018602482015277446f6d61696e206d757374206265206e6f6e2d656d70747960401b6044820152606401610845565b6000610ea78261165e565b9050600081604051602001610ebc919061298a565b6040516020818303038152906040528051906020012060001c9050610ee0816115d3565b15610f255760405162461bcd60e51b8152602060048201526015602482015274446f6d61696e20616c72656164792065786973747360581b6044820152606401610845565b610f2f84826117c1565b610f3981836117db565b807fc5beef08f693b11c316c0c8394a377a0033c9cf701b8cd8afd79cecef60c395283604051610f6991906125c1565b60405180910390a250505050565b6000815160001415610f8857600080fd5b81604051602001610f99919061298a565b60408051601f19818403018152919052805160209091012092915050565b6006546001600160a01b03163314610fe15760405162461bcd60e51b8152600401610845906129a6565b8051610ff490600b90602084019061249d565b5050565b6000818152600260205260408120546001600160a01b0316806107455760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610845565b6006546001600160a01b031633146110995760405162461bcd60e51b8152600401610845906129a6565b610cf281611b90565b60006001600160a01b03821661110d5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610845565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146111535760405162461bcd60e51b8152600401610845906129a6565b610cbd6000611b9b565b6000610745600783611bed565b6006546001600160a01b031633146111945760405162461bcd60e51b8152600401610845906129a6565b600e55565b60606001805461075a9061294f565b816111b233610c42565b6111bb57600080fd5b6111d684848460405180602001604052806000815250611c70565b50505050565b6001600160a01b0382163314156112355760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610845565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b806112ab33610c42565b6112b457600080fd5b61097b6112c083610ff8565b848461194a565b6000818152600a60205260408120546001600160a01b03168061074557600080fd5b6112f33383611864565b61130f5760405162461bcd60e51b8152600401610845906129db565b6111d684848484611e2a565b8161132533610c42565b61132e57600080fd5b61097b8383611e5d565b8161134233610c42565b61134b57600080fd5b61097b8383611ec8565b6060611360826115d3565b6113c45760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610845565b600082815260096020526040812080546113dd9061294f565b80601f01602080910402602001604051908101604052809291908181526020018280546114099061294f565b80156114565780601f1061142b57610100808354040283529160200191611456565b820191906000526020600020905b81548152906001019060200180831161143957829003601f168201915b505050505090506000611467611fb5565b905080516000141561147a575092915050565b8151156114ac578082604051602001611494929190612a2c565b60405160208183030381529060405292505050919050565b8084604051602001611494929190612a5b565b6006546001600160a01b031633146114e95760405162461bcd60e51b8152600401610845906129a6565b6001600160a01b03811661154e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610845565b610cf281611b9b565b6115618282611bed565b156115ae5760405162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c65006044820152606401610845565b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061162582610ff8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b606060008290506000815167ffffffffffffffff81111561168157611681612633565b6040519080825280601f01601f1916602001820160405280156116ab576020820181803683370190505b50905060005b82518110156117b95760418382815181106116ce576116ce612a7d565b016020015160f81c108015906116fe5750605a8382815181106116f3576116f3612a7d565b016020015160f81c11155b156117605782818151811061171557611715612a7d565b602001015160f81c60f81b60f81c602061172f9190612aa9565b60f81b82828151811061174457611744612a7d565b60200101906001600160f81b031916908160001a9053506117a7565b82818151811061177257611772612a7d565b602001015160f81c60f81b82828151811061178f5761178f612a7d565b60200101906001600160f81b031916908160001a9053505b806117b181612ace565b9150506116b1565b509392505050565b610ff4828260405180602001604052806000815250611fc4565b6117e4826115d3565b6118455760405162461bcd60e51b815260206004820152602c60248201527f4552433732314d657461646174613a2055524920736574206f66206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610845565b6000828152600960209081526040909120825161097b9284019061249d565b600061186f826115d3565b6118d05760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610845565b60006118db83610ff8565b9050806001600160a01b0316846001600160a01b031614806119165750836001600160a01b031661190b846107dd565b6001600160a01b0316145b80610e1657506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16610e16565b826001600160a01b031661195d82610ff8565b6001600160a01b0316146119c55760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610845565b6001600160a01b038216611a275760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610845565b611a326000826115f0565b6001600160a01b0383166000908152600360205260408120805460019290611a5b908490612ae9565b90915550506001600160a01b0382166000908152600360205260408120805460019290611a89908490612b00565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610cf2600782611557565b6000611b0082610ff8565b9050611b0d6000836115f0565b6001600160a01b0381166000908152600360205260408120805460019290611b36908490612ae9565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b610cf2600782611ff7565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b038216611c505760405162461bcd60e51b815260206004820152602260248201527f526f6c65733a206163636f756e7420697320746865207a65726f206164647265604482015261737360f01b6064820152608401610845565b506001600160a01b03166000908152602091909152604090205460ff1690565b8151611c7b57600080fd5b611c8482612079565b15611c8e57600080fd5b611c97836115d3565b611ca057600080fd5b6000611cab8361165e565b905060008160096000878152602001908152602001600020604051602001611cd4929190612b18565b60405160208183030381529060405290506000611cf082610f77565b90506000611d98600960008981526020019081526020016000208054611d159061294f565b80601f0160208091040260200160405190810160405280929190818152602001828054611d419061294f565b8015611d8e5780601f10611d6357610100808354040283529160200191611d8e565b820191906000526020600020905b815481529060010190602001808311611d7157829003601f168201915b5050505050612079565b90508060011415611dbd576000878152600860205260409020611dbb90836120d8565b505b845115611dd457611dcf888387611fc4565b611dde565b611dde88836120e4565b611de882846117db565b817fc5beef08f693b11c316c0c8394a377a0033c9cf701b8cd8afd79cecef60c395284604051611e1891906125c1565b60405180910390a25050505050505050565b611e3584848461194a565b611e4184848484612217565b6111d65760405162461bcd60e51b815260040161084590612bd8565b611e66826115d3565b611e6f57600080fd5b6000828152600a602052604080822080546001600160a01b0319166001600160a01b0385169081179091559051909184917fcbae0978f0621ebb4707a96540f8d3a937104526ceef2cdf1cf07b25c5e48cd49190a35050565b6000611ed38261165e565b905060008160096000868152602001908152602001600020604051602001611efc929190612b18565b60405160208183030381529060405290506000611f1882610f77565b6000868152600860205260409020909150611f339082612315565b506000858152600a60205260409020546001600160a01b031615611f6e576000858152600a6020526040902080546001600160a01b03191690555b60008181526009602052604090208054611f879061294f565b159050611fa5576000818152600960205260408120611fa591612463565b611fae81611af5565b5050505050565b6060600b805461075a9061294f565b611fce83836120e4565b611fdb6000848484612217565b61097b5760405162461bcd60e51b815260040161084590612bd8565b6120018282611bed565b6120575760405162461bcd60e51b815260206004820152602160248201527f526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c6044820152606560f81b6064820152608401610845565b6001600160a01b0316600090815260209190915260409020805460ff19169055565b805160009060018381019184010182805b828410156120cf57835160ff16602e8114156120ae576120ab600184612b00565b92505b6120b9600186612b00565b94505080806120c790612ace565b91505061208a565b50949350505050565b6000610dca8383612321565b6001600160a01b03821661213a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610845565b612143816115d3565b156121905760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610845565b6001600160a01b03821660009081526003602052604081208054600192906121b9908490612b00565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b1561230a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061225b903390899088908890600401612c2a565b6020604051808303816000875af1925050508015612296575060408051601f3d908101601f1916820190925261229391810190612c67565b60015b6122f0573d8080156122c4576040519150601f19603f3d011682016040523d82523d6000602084013e6122c9565b606091505b5080516122e85760405162461bcd60e51b815260040161084590612bd8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610e16565b506001949350505050565b6000610dca8383612370565b600081815260018301602052604081205461236857508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610745565b506000610745565b60008181526001830160205260408120548015612459576000612394600183612ae9565b85549091506000906123a890600190612ae9565b905081811461240d5760008660000182815481106123c8576123c8612a7d565b90600052602060002001549050808760000184815481106123eb576123eb612a7d565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061241e5761241e612c84565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610745565b6000915050610745565b50805461246f9061294f565b6000825580601f1061247f575050565b601f016020900490600052602060002090810190610cf29190612521565b8280546124a99061294f565b90600052602060002090601f0160209004810192826124cb5760008555612511565b82601f106124e457805160ff1916838001178555612511565b82800160010185558215612511579182015b828111156125115782518255916020019190600101906124f6565b5061251d929150612521565b5090565b5b8082111561251d5760008155600101612522565b6001600160e01b031981168114610cf257600080fd5b60006020828403121561255e57600080fd5b8135610dca81612536565b60005b8381101561258457818101518382015260200161256c565b838111156111d65750506000910152565b600081518084526125ad816020860160208601612569565b601f01601f19169290920160200192915050565b602081526000610dca6020830184612595565b6000602082840312156125e657600080fd5b5035919050565b80356001600160a01b038116811461260457600080fd5b919050565b6000806040838503121561261c57600080fd5b612625836125ed565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561266457612664612633565b604051601f8501601f19908116603f0116810190828211818310171561268c5761268c612633565b816040528093508581528686860111156126a557600080fd5b858560208301376000602087830101525050509392505050565b600082601f8301126126d057600080fd5b610dca83833560208501612649565b6000602082840312156126f157600080fd5b813567ffffffffffffffff81111561270857600080fd5b610e16848285016126bf565b60008060006060848603121561272957600080fd5b612732846125ed565b9250612740602085016125ed565b9150604084013590509250925092565b60006020828403121561276257600080fd5b610dca826125ed565b6000806040838503121561277e57600080fd5b612787836125ed565b9150602083013567ffffffffffffffff8111156127a357600080fd5b6127af858286016126bf565b9150509250929050565b6000806000606084860312156127ce57600080fd5b6127d7846125ed565b925060208401359150604084013567ffffffffffffffff8111156127fa57600080fd5b612806868287016126bf565b9150509250925092565b6000806040838503121561282357600080fd5b61282c836125ed565b91506020830135801515811461284157600080fd5b809150509250929050565b6000806000806080858703121561286257600080fd5b61286b856125ed565b9350612879602086016125ed565b925060408501359150606085013567ffffffffffffffff81111561289c57600080fd5b8501601f810187136128ad57600080fd5b6128bc87823560208401612649565b91505092959194509250565b600080604083850312156128db57600080fd5b823591506128eb602084016125ed565b90509250929050565b6000806040838503121561290757600080fd5b82359150602083013567ffffffffffffffff8111156127a357600080fd5b6000806040838503121561293857600080fd5b612941836125ed565b91506128eb602084016125ed565b600181811c9082168061296357607f821691505b6020821081141561298457634e487b7160e01b600052602260045260246000fd5b50919050565b6000825161299c818460208701612569565b9190910192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008351612a3e818460208801612569565b835190830190612a52818360208801612569565b01949350505050565b60008351612a6d818460208801612569565b9190910191825250602001919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060ff821660ff84168060ff03821115612ac657612ac6612a93565b019392505050565b6000600019821415612ae257612ae2612a93565b5060010190565b600082821015612afb57612afb612a93565b500390565b60008219821115612b1357612b13612a93565b500190565b600083516020612b2b8285838901612569565b601760f91b918401918252845460019060009080831c81841680612b5057607f821691505b858210811415612b6e57634e487b7160e01b84526022600452602484fd5b808015612b825760018114612b9757612bc8565b60ff1984168887015282880186019450612bc8565b60008b81526020902060005b84811015612bbe5781548a8201890152908701908801612ba3565b5050858389010194505b50929a9950505050505050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612c5d90830184612595565b9695505050505050565b600060208284031215612c7957600080fd5b8151610dca81612536565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220543a6375f374e68a496afaed5a3f383e567343ea2b88eced8efd99b4e333a15c64736f6c634300080b0033

Deployed ByteCode Sourcemap

62049:7415:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31839:305;;;;;;;;;;-1:-1:-1;31839:305:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;31839:305:0;;;;;;;;32784:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;34343:221::-;;;;;;;;;;-1:-1:-1;34343:221:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1692:32:1;;;1674:51;;1662:2;1647:18;34343:221:0;1528:203:1;33866:411:0;;;;;;;;;;-1:-1:-1;33866:411:0;;;;;:::i;:::-;;:::i;:::-;;62438:45;;;;;;;;;;-1:-1:-1;62438:45:0;;;;;:::i;:::-;;:::i;64467:608::-;;;;;;:::i;:::-;;:::i;63121:90::-;;;;;;;;;;;;;:::i;35233:339::-;;;;;;;;;;-1:-1:-1;35233:339:0;;;;;:::i;:::-;;:::i;67188:120::-;;;:::i;46273:97::-;;;;;;;;;;-1:-1:-1;46273:97:0;;;;;:::i;:::-;;:::i;35643:185::-;;;;;;;;;;-1:-1:-1;35643:185:0;;;;;:::i;:::-;;:::i;65751:301::-;;;;;;;;;;-1:-1:-1;65751:301:0;;;;;:::i;:::-;;:::i;66062:152::-;;;;;;;;;;-1:-1:-1;66062:152:0;;;;;:::i;:::-;;:::i;64220:241::-;;;;;;;;;;-1:-1:-1;64220:241:0;;;;;:::i;:::-;;:::i;66372:104::-;;;;;;;;;;-1:-1:-1;66372:104:0;;;;;:::i;:::-;;:::i;65080:467::-;;;;;;;;;;-1:-1:-1;65080:467:0;;;;;:::i;:::-;;:::i;66998:185::-;;;;;;;;;;-1:-1:-1;66998:185:0;;;;;:::i;:::-;;:::i;:::-;;;4567:25:1;;;4555:2;4540:18;66998:185:0;4421:177:1;63333:96:0;;;;;;;;;;-1:-1:-1;63333:96:0;;;;;:::i;:::-;;:::i;62620:32::-;;;;;;;;;;-1:-1:-1;62620:32:0;;;;;;;;32478:239;;;;;;;;;;-1:-1:-1;32478:239:0;;;;;:::i;:::-;;:::i;46378:99::-;;;;;;;;;;-1:-1:-1;46378:99:0;;;;;:::i;:::-;;:::i;32208:208::-;;;;;;;;;;-1:-1:-1;32208:208:0;;;;;:::i;:::-;;:::i;24573:94::-;;;;;;;;;;;;;:::i;46485:114::-;;;;;;;;;;-1:-1:-1;46485:114:0;;;;;:::i;:::-;;:::i;23922:87::-;;;;;;;;;;-1:-1:-1;23995:6:0;;-1:-1:-1;;;;;23995:6:0;23922:87;;63032:83;;;;;;;;;;-1:-1:-1;63032:83:0;;;;;:::i;:::-;;:::i;32953:104::-;;;;;;;;;;;;;:::i;65556:188::-;;;;;;;;;;-1:-1:-1;65556:188:0;;;;;:::i;:::-;;:::i;62944:82::-;;;;;;;;;;-1:-1:-1;63012:6:0;;62944:82;;34636:295;;;;;;;;;;-1:-1:-1;34636:295:0;;;;;:::i;:::-;;:::i;66222:144::-;;;;;;;;;;-1:-1:-1;66222:144:0;;;;;:::i;:::-;;:::i;66634:200::-;;;;;;;;;;-1:-1:-1;66634:200:0;;;;;:::i;:::-;;:::i;35899:328::-;;;;;;;;;;-1:-1:-1;35899:328:0;;;;;:::i;:::-;;:::i;66484:142::-;;;;;;;;;;-1:-1:-1;66484:142:0;;;;;:::i;:::-;;:::i;66846:144::-;;;;;;;;;;-1:-1:-1;66846:144:0;;;;;:::i;:::-;;:::i;63435:780::-;;;;;;;;;;-1:-1:-1;63435:780:0;;;;;:::i;:::-;;:::i;35002:164::-;;;;;;;;;;-1:-1:-1;35002:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;35123:25:0;;;35099:4;35123:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;35002:164;24822:192;;;;;;;;;;-1:-1:-1;24822:192:0;;;;;:::i;:::-;;:::i;31839:305::-;31941:4;-1:-1:-1;;;;;;31978:40:0;;-1:-1:-1;;;31978:40:0;;:105;;-1:-1:-1;;;;;;;32035:48:0;;-1:-1:-1;;;32035:48:0;31978:105;:158;;;-1:-1:-1;;;;;;;;;;11520:40:0;;;32100:36;31958:178;31839:305;-1:-1:-1;;31839:305:0:o;32784:100::-;32838:13;32871:5;32864:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32784:100;:::o;34343:221::-;34419:7;34447:16;34455:7;34447;:16::i;:::-;34439:73;;;;-1:-1:-1;;;34439:73:0;;7602:2:1;34439:73:0;;;7584:21:1;7641:2;7621:18;;;7614:30;7680:34;7660:18;;;7653:62;-1:-1:-1;;;7731:18:1;;;7724:42;7783:19;;34439:73:0;;;;;;;;;-1:-1:-1;34532:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;34532:24:0;;34343:221::o;33866:411::-;33947:13;33963:23;33978:7;33963:14;:23::i;:::-;33947:39;;34011:5;-1:-1:-1;;;;;34005:11:0;:2;-1:-1:-1;;;;;34005:11:0;;;33997:57;;;;-1:-1:-1;;;33997:57:0;;8015:2:1;33997:57:0;;;7997:21:1;8054:2;8034:18;;;8027:30;8093:34;8073:18;;;8066:62;-1:-1:-1;;;8144:18:1;;;8137:31;8185:19;;33997:57:0;7813:397:1;33997:57:0;682:10;-1:-1:-1;;;;;34089:21:0;;;;:62;;-1:-1:-1;34114:37:0;34131:5;682:10;35002:164;:::i;34114:37::-;34067:168;;;;-1:-1:-1;;;34067:168:0;;8417:2:1;34067:168:0;;;8399:21:1;8456:2;8436:18;;;8429:30;8495:34;8475:18;;;8468:62;8566:26;8546:18;;;8539:54;8610:19;;34067:168:0;8215:420:1;34067:168:0;34248:21;34257:2;34261:7;34248:8;:21::i;:::-;33936:341;33866:411;;:::o;62438:45::-;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;64467:608::-;64536:13;;;;64528:52;;;;-1:-1:-1;;;64528:52:0;;8842:2:1;64528:52:0;;;8824:21:1;8881:2;8861:18;;;8854:30;8920:28;8900:18;;;8893:56;8966:18;;64528:52:0;8640:350:1;64528:52:0;64599:20;;64590:63;;;;-1:-1:-1;;;64590:63:0;;9197:2:1;64590:63:0;;;9179:21:1;9236:2;9216:18;;;9209:30;-1:-1:-1;;;9255:18:1;;;9248:54;9319:18;;64590:63:0;8995:348:1;64590:63:0;63012:6;;64670:9;:23;;64662:89;;;;-1:-1:-1;;;64662:89:0;;9550:2:1;64662:89:0;;;9532:21:1;9589:2;9569:18;;;9562:30;9628:34;9608:18;;;9601:62;-1:-1:-1;;;9679:18:1;;;9672:51;9740:19;;64662:89:0;9348:417:1;64662:89:0;64758:21;64782:26;64801:6;64782:18;:26::i;:::-;64758:50;;64817:15;64870:7;64853:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;64843:36;;;;;;64835:45;;64817:63;;64899:16;64907:7;64899;:16::i;:::-;64898:17;64889:52;;;;-1:-1:-1;;;64889:52:0;;10253:2:1;64889:52:0;;;10235:21:1;10292:2;10272:18;;;10265:30;-1:-1:-1;;;10311:18:1;;;10304:51;10372:18;;64889:52:0;10051:345:1;64889:52:0;64952:30;64962:10;64974:7;64952:9;:30::i;:::-;64995;65008:7;65017;64995:12;:30::i;:::-;65050:7;65043:24;65059:7;65043:24;;;;;;:::i;:::-;;;;;;;;64523:552;;64467:608;:::o;63121:90::-;23995:6;;-1:-1:-1;;;;;23995:6:0;682:10;24142:23;24134:68;;;;-1:-1:-1;;;24134:68:0;;;;;;;:::i;:::-;63190:13:::1;::::0;;-1:-1:-1;;63173:30:0;::::1;63190:13;::::0;;::::1;63189:14;63173:30;::::0;;63121:90::o;35233:339::-;35428:41;682:10;35447:12;35461:7;35428:18;:41::i;:::-;35420:103;;;;-1:-1:-1;;;35420:103:0;;;;;;;:::i;:::-;35536:28;35546:4;35552:2;35556:7;35536:9;:28::i;67188:120::-;23995:6;;-1:-1:-1;;;;;23995:6:0;682:10;24142:23;24134:68;;;;-1:-1:-1;;;24134:68:0;;;;;;;:::i;:::-;67252:47:::1;::::0;67260:10:::1;::::0;67277:21:::1;67252:47:::0;::::1;;;::::0;::::1;::::0;;;67277:21;67260:10;67252:47;::::1;;;;;;67244:56;;;::::0;::::1;;67188:120::o:0;46273:97::-;23995:6;;-1:-1:-1;;;;;23995:6:0;682:10;24142:23;24134:68;;;;-1:-1:-1;;;24134:68:0;;;;;;;:::i;:::-;46343:19:::1;46354:7;46343:10;:19::i;:::-;46273:97:::0;:::o;35643:185::-;35781:39;35798:4;35804:2;35808:7;35781:39;;;;;;;;;;;;:16;:39::i;65751:301::-;65816:41;682:10;65835:12;602:98;65816:41;65808:102;;;;-1:-1:-1;;;65808:102:0;;11382:2:1;65808:102:0;;;11364:21:1;11421:2;11401:18;;;11394:30;11460:34;11440:18;;;11433:62;-1:-1:-1;;;11511:18:1;;;11504:46;11567:19;;65808:102:0;11180:412:1;65808:102:0;65929:19;;;;:10;:19;;;;;65923:33;;;;;:::i;:::-;:38;;-1:-1:-1;65919:97:0;;65985:19;;;;:10;:19;;;;;65978:26;;;:::i;:::-;66030:14;66036:7;66030:5;:14::i;66062:152::-;66145:4;66170:36;66189:7;66198;66170:18;:36::i;:::-;66163:43;66062:152;-1:-1:-1;;;66062:152:0:o;64220:241::-;64283:7;64298:21;64322:26;64341:6;64322:18;:26::i;:::-;64298:50;;64356:15;64409:7;64392:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;64382:36;;;;;;64374:45;;64356:63;;64437:16;64445:7;64437;:16::i;:::-;64430:23;64220:241;-1:-1:-1;;;;64220:241:0:o;66372:104::-;66428:4;66452:16;66460:7;66452;:16::i;65080:467::-;23995:6;;-1:-1:-1;;;;;23995:6:0;682:10;24142:23;24134:68;;;;-1:-1:-1;;;24134:68:0;;;;;;;:::i;:::-;65172:20;;65163:63:::1;;;::::0;-1:-1:-1;;;65163:63:0;;9197:2:1;65163:63:0::1;::::0;::::1;9179:21:1::0;9236:2;9216:18;;;9209:30;-1:-1:-1;;;9255:18:1;;;9248:54;9319:18;;65163:63:0::1;8995:348:1::0;65163:63:0::1;65235:21;65259:26;65278:6;65259:18;:26::i;:::-;65235:50;;65294:15;65347:7;65330:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;65320:36;;;;;;65312:45;;65294:63;;65376:16;65384:7;65376;:16::i;:::-;65375:17;65366:52;;;::::0;-1:-1:-1;;;65366:52:0;;10253:2:1;65366:52:0::1;::::0;::::1;10235:21:1::0;10292:2;10272:18;;;10265:30;-1:-1:-1;;;10311:18:1;;;10304:51;10372:18;;65366:52:0::1;10051:345:1::0;65366:52:0::1;65432:22;65442:2;65446:7;65432:9;:22::i;:::-;65467:30;65480:7;65489;65467:12;:30::i;:::-;65522:7;65515:24;65531:7;65515:24;;;;;;:::i;:::-;;;;;;;;65155:392;;65080:467:::0;;:::o;66998:185::-;67059:7;67095:5;67089:19;67112:1;67089:24;;67080:34;;;;;;67167:5;67150:23;;;;;;;;:::i;:::-;;;;-1:-1:-1;;67150:23:0;;;;;;;;;67140:34;;67150:23;67140:34;;;;;66998:185;-1:-1:-1;;66998:185:0:o;63333:96::-;23995:6;;-1:-1:-1;;;;;23995:6:0;682:10;24142:23;24134:68;;;;-1:-1:-1;;;24134:68:0;;;;;;;:::i;:::-;63403:18;;::::1;::::0;:11:::1;::::0;:18:::1;::::0;::::1;::::0;::::1;:::i;:::-;;63333:96:::0;:::o;32478:239::-;32550:7;32586:16;;;:7;:16;;;;;;-1:-1:-1;;;;;32586:16:0;32621:19;32613:73;;;;-1:-1:-1;;;32613:73:0;;11799:2:1;32613:73:0;;;11781:21:1;11838:2;11818:18;;;11811:30;11877:34;11857:18;;;11850:62;-1:-1:-1;;;11928:18:1;;;11921:39;11977:19;;32613:73:0;11597:405:1;46378:99:0;23995:6;;-1:-1:-1;;;;;23995:6:0;682:10;24142:23;24134:68;;;;-1:-1:-1;;;24134:68:0;;;;;;;:::i;:::-;46449:20:::1;46461:7;46449:11;:20::i;32208:208::-:0;32280:7;-1:-1:-1;;;;;32308:19:0;;32300:74;;;;-1:-1:-1;;;32300:74:0;;12209:2:1;32300:74:0;;;12191:21:1;12248:2;12228:18;;;12221:30;12287:34;12267:18;;;12260:62;-1:-1:-1;;;12338:18:1;;;12331:40;12388:19;;32300:74:0;12007:406:1;32300:74:0;-1:-1:-1;;;;;;32392:16:0;;;;;:9;:16;;;;;;;32208:208::o;24573:94::-;23995:6;;-1:-1:-1;;;;;23995:6:0;682:10;24142:23;24134:68;;;;-1:-1:-1;;;24134:68:0;;;;;;;:::i;:::-;24638:21:::1;24656:1;24638:9;:21::i;46485:114::-:0;46540:4;46562:29;:16;46583:7;46562:20;:29::i;63032:83::-;23995:6;;-1:-1:-1;;;;;23995:6:0;682:10;24142:23;24134:68;;;;-1:-1:-1;;;24134:68:0;;;;;;;:::i;:::-;63093:6:::1;:14:::0;63032:83::o;32953:104::-;33009:13;33042:7;33035:14;;;;;:::i;65556:188::-;65670:7;62791:41;682:10;62810:12;602:98;62791:41;62769:74;;;;;;65696:40:::1;65715:2;65719:7;65728:3;65696:40;;;;;;;;;;;::::0;:18:::1;:40::i;:::-;65556:188:::0;;;;:::o;34636:295::-;-1:-1:-1;;;;;34739:24:0;;682:10;34739:24;;34731:62;;;;-1:-1:-1;;;34731:62:0;;12620:2:1;34731:62:0;;;12602:21:1;12659:2;12639:18;;;12632:30;12698:27;12678:18;;;12671:55;12743:18;;34731:62:0;12418:349:1;34731:62:0;682:10;34806:32;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;34806:42:0;;;;;;;;;;;;:53;;-1:-1:-1;;34806:53:0;;;;;;;;;;34875:48;;540:41:1;;;34806:42:0;;682:10;34875:48;;513:18:1;34875:48:0;;;;;;;34636:295;;:::o;66222:144::-;66298:7;62791:41;682:10;62810:12;602:98;62791:41;62769:74;;;;;;66318:40:::1;66328:16;66336:7;66328;:16::i;:::-;66346:2;66350:7;66318:9;:40::i;66634:200::-:0;66694:7;66733:24;;;:15;:24;;;;;;-1:-1:-1;;;;;66733:24:0;66777:22;66768:32;;;;;35899:328;36074:41;682:10;36107:7;36074:18;:41::i;:::-;36066:103;;;;-1:-1:-1;;;36066:103:0;;;;;;;:::i;:::-;36180:39;36194:4;36200:2;36204:7;36213:5;36180:13;:39::i;66484:142::-;66567:7;62791:41;682:10;62810:12;602:98;62791:41;62769:74;;;;;;66587:31:::1;66600:7;66609:8;66587:12;:31::i;66846:144::-:0;66934:7;62791:41;682:10;62810:12;602:98;62791:41;62769:74;;;;;;66954:28:::1;66969:7;66978:3;66954:14;:28::i;63435:780::-:0;63500:13;63534:16;63542:7;63534;:16::i;:::-;63526:76;;;;-1:-1:-1;;;63526:76:0;;12974:2:1;63526:76:0;;;12956:21:1;13013:2;12993:18;;;12986:30;13052:34;13032:18;;;13025:62;-1:-1:-1;;;13103:18:1;;;13096:45;13158:19;;63526:76:0;12772:411:1;63526:76:0;63615:23;63641:19;;;:10;:19;;;;;63615:45;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63726:21;63750:10;:8;:10::i;:::-;63726:34;;63781:7;63775:21;63800:1;63775:26;63771:75;;;-1:-1:-1;63825:9:0;63435:780;-1:-1:-1;;63435:780:0:o;63771:75::-;63950:23;;:27;63946:111;;64025:7;64034:9;64008:36;;;;;;;;;:::i;:::-;;;;;;;;;;;;;63994:51;;;;63435:780;;;:::o;63946:111::-;64189:7;64198;64172:34;;;;;;;;;:::i;24822:192::-;23995:6;;-1:-1:-1;;;;;23995:6:0;682:10;24142:23;24134:68;;;;-1:-1:-1;;;24134:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;24911:22:0;::::1;24903:73;;;::::0;-1:-1:-1;;;24903:73:0;;14242:2:1;24903:73:0::1;::::0;::::1;14224:21:1::0;14281:2;14261:18;;;14254:30;14320:34;14300:18;;;14293:62;-1:-1:-1;;;14371:18:1;;;14364:36;14417:19;;24903:73:0::1;14040:402:1::0;24903:73:0::1;24987:19;24997:8;24987:9;:19::i;45013:178::-:0;45091:18;45095:4;45101:7;45091:3;:18::i;:::-;45090:19;45082:63;;;;-1:-1:-1;;;45082:63:0;;14649:2:1;45082:63:0;;;14631:21:1;14688:2;14668:18;;;14661:30;14727:33;14707:18;;;14700:61;14778:18;;45082:63:0;14447:355:1;45082:63:0;-1:-1:-1;;;;;45156:20:0;:11;:20;;;;;;;;;;;:27;;-1:-1:-1;;45156:27:0;45179:4;45156:27;;;45013:178::o;37737:127::-;37802:4;37826:16;;;:7;:16;;;;;;-1:-1:-1;;;;;37826:16:0;:30;;;37737:127::o;41719:174::-;41794:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;41794:29:0;-1:-1:-1;;;;;41794:29:0;;;;;;;;:24;;41848:23;41794:24;41848:14;:23::i;:::-;-1:-1:-1;;;;;41839:46:0;;;;;;;;;;;41719:174;;:::o;47547:566::-;47606:13;47632:17;47658:3;47632:30;;47673:19;47705:4;:11;47695:22;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47695:22:0;;47673:44;;47733:6;47728:346;47749:4;:11;47745:1;:15;47728:346;;;47844:2;47832:4;47837:1;47832:7;;;;;;;;:::i;:::-;;;;;;;47826:20;;;;47825:48;;;47870:2;47858:4;47863:1;47858:7;;;;;;;;:::i;:::-;;;;;;;47852:20;;47825:48;47821:242;;;47973:4;47978:1;47973:7;;;;;;;;:::i;:::-;;;;;;;;;47967:14;;47984:2;47967:19;;;;:::i;:::-;47960:27;;47948:6;47955:1;47948:9;;;;;;;;:::i;:::-;;;;:39;-1:-1:-1;;;;;47948:39:0;;;;;;;;;47821:242;;;48040:4;48045:1;48040:7;;;;;;;;:::i;:::-;;;;;;;;;48028:6;48035:1;48028:9;;;;;;;;:::i;:::-;;;;:19;-1:-1:-1;;;;;48028:19:0;;;;;;;;;47821:242;47762:3;;;;:::i;:::-;;;;47728:346;;;-1:-1:-1;48098:6:0;47547:566;-1:-1:-1;;;47547:566:0:o;38721:110::-;38797:26;38807:2;38811:7;38797:26;;;;;;;;;;;;:9;:26::i;69246:215::-;69346:16;69354:7;69346;:16::i;:::-;69338:73;;;;-1:-1:-1;;;69338:73:0;;15622:2:1;69338:73:0;;;15604:21:1;15661:2;15641:18;;;15634:30;15700:34;15680:18;;;15673:62;-1:-1:-1;;;15751:18:1;;;15744:42;15803:19;;69338:73:0;15420:408:1;69338:73:0;69422:19;;;;:10;:19;;;;;;;;:31;;;;;;;;:::i;38031:348::-;38124:4;38149:16;38157:7;38149;:16::i;:::-;38141:73;;;;-1:-1:-1;;;38141:73:0;;16035:2:1;38141:73:0;;;16017:21:1;16074:2;16054:18;;;16047:30;16113:34;16093:18;;;16086:62;-1:-1:-1;;;16164:18:1;;;16157:42;16216:19;;38141:73:0;15833:408:1;38141:73:0;38225:13;38241:23;38256:7;38241:14;:23::i;:::-;38225:39;;38294:5;-1:-1:-1;;;;;38283:16:0;:7;-1:-1:-1;;;;;38283:16:0;;:51;;;;38327:7;-1:-1:-1;;;;;38303:31:0;:20;38315:7;38303:11;:20::i;:::-;-1:-1:-1;;;;;38303:31:0;;38283:51;:87;;;-1:-1:-1;;;;;;35123:25:0;;;35099:4;35123:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;38338:32;35002:164;41023:578;41182:4;-1:-1:-1;;;;;41155:31:0;:23;41170:7;41155:14;:23::i;:::-;-1:-1:-1;;;;;41155:31:0;;41147:85;;;;-1:-1:-1;;;41147:85:0;;16448:2:1;41147:85:0;;;16430:21:1;16487:2;16467:18;;;16460:30;16526:34;16506:18;;;16499:62;-1:-1:-1;;;16577:18:1;;;16570:39;16626:19;;41147:85:0;16246:405:1;41147:85:0;-1:-1:-1;;;;;41251:16:0;;41243:65;;;;-1:-1:-1;;;41243:65:0;;16858:2:1;41243:65:0;;;16840:21:1;16897:2;16877:18;;;16870:30;16936:34;16916:18;;;16909:62;-1:-1:-1;;;16987:18:1;;;16980:34;17031:19;;41243:65:0;16656:400:1;41243:65:0;41425:29;41442:1;41446:7;41425:8;:29::i;:::-;-1:-1:-1;;;;;41467:15:0;;;;;;:9;:15;;;;;:20;;41486:1;;41467:15;:20;;41486:1;;41467:20;:::i;:::-;;;;-1:-1:-1;;;;;;;41498:13:0;;;;;;:9;:13;;;;;:18;;41515:1;;41498:13;:18;;41515:1;;41498:18;:::i;:::-;;;;-1:-1:-1;;41527:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;41527:21:0;-1:-1:-1;;;;;41527:21:0;;;;;;;;;41566:27;;41527:16;;41566:27;;;;;;;41023:578;;;:::o;46611:93::-;46667:29;:16;46688:7;46667:20;:29::i;40326:360::-;40386:13;40402:23;40417:7;40402:14;:23::i;:::-;40386:39;;40527:29;40544:1;40548:7;40527:8;:29::i;:::-;-1:-1:-1;;;;;40569:16:0;;;;;;:9;:16;;;;;:21;;40589:1;;40569:16;:21;;40589:1;;40569:21;:::i;:::-;;;;-1:-1:-1;;40608:16:0;;;;:7;:16;;;;;;40601:23;;-1:-1:-1;;;;;;40601:23:0;;;40642:36;40616:7;;40608:16;-1:-1:-1;;;;;40642:36:0;;;;;40608:16;;40642:36;40375:311;40326:360;:::o;46712:97::-;46769:32;:16;46793:7;46769:23;:32::i;25022:173::-;25097:6;;;-1:-1:-1;;;;;25114:17:0;;;-1:-1:-1;;;;;;25114:17:0;;;;;;;25147:40;;25097:6;;;25114:17;25097:6;;25147:40;;25078:16;;25147:40;25067:128;25022:173;:::o;45549:203::-;45621:4;-1:-1:-1;;;;;45646:21:0;;45638:68;;;;-1:-1:-1;;;45638:68:0;;17526:2:1;45638:68:0;;;17508:21:1;17565:2;17545:18;;;17538:30;17604:34;17584:18;;;17577:62;-1:-1:-1;;;17655:18:1;;;17648:32;17697:19;;45638:68:0;17324:398:1;45638:68:0;-1:-1:-1;;;;;;45724:20:0;:11;:20;;;;;;;;;;;;;;;45549:203::o;67317:886::-;67442:17;;67433:32;;;;;;67485:24;67505:3;67485:19;:24::i;:::-;:29;67476:39;;;;;;67535:16;67543:7;67535;:16::i;:::-;67526:26;;;;;;67567:18;67588:23;67607:3;67588:18;:23::i;:::-;67567:44;;67626:20;67666:4;67677:10;:19;67688:7;67677:19;;;;;;;;;;;67649:48;;;;;;;;;:::i;:::-;;;;;;;;;;;;;67626:71;;67706:19;67728:27;67746:7;67728:10;:27::i;:::-;67706:49;;67768:13;67784:40;67804:10;:19;67815:7;67804:19;;;;;;;;;;;67784:40;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:19;:40::i;:::-;67768:56;;67843:5;67852:1;67843:10;67839:83;;;67874:19;;;;:10;:19;;;;;:36;;67898:11;67874:23;:36::i;:::-;;67839:83;67938:19;;:24;67934:145;;67979:33;67989:2;67993:11;68006:5;67979:9;:33::i;:::-;67934:145;;;68045:22;68051:2;68055:11;68045:5;:22::i;:::-;68099:42;68112:11;68132:7;68099:12;:42::i;:::-;68166:11;68159:36;68186:7;68159:36;;;;;;:::i;:::-;;;;;;;;67422:781;;;;67317:886;;;;:::o;37109:315::-;37266:28;37276:4;37282:2;37286:7;37266:9;:28::i;:::-;37313:48;37336:4;37342:2;37346:7;37355:5;37313:22;:48::i;:::-;37305:111;;;;-1:-1:-1;;;37305:111:0;;;;;;;:::i;69037:203::-;69123:16;69131:7;69123;:16::i;:::-;69114:26;;;;;;69151:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;69151:35:0;-1:-1:-1;;;;;69151:35:0;;;;;;;;69202:30;;69151:35;;:24;;69202:30;;69151:24;69202:30;69037:203;;:::o;68398:631::-;68478:18;68499:23;68518:3;68499:18;:23::i;:::-;68478:44;;68537:20;68577:4;68588:10;:19;68599:7;68588:19;;;;;;;;;;;68560:48;;;;;;;;;:::i;:::-;;;;;;;;;;;;;68537:71;;68617:19;68639:27;68657:7;68639:10;:27::i;:::-;68716:19;;;;:10;:19;;;;;68617:49;;-1:-1:-1;68716:39:0;;68617:49;68716:26;:39::i;:::-;-1:-1:-1;68808:1:0;68772:24;;;:15;:24;;;;;;-1:-1:-1;;;;;68772:24:0;:38;68768:102;;68834:24;;;;:15;:24;;;;;68827:31;;-1:-1:-1;;;;;;68827:31:0;;;68768:102;68888:23;;;;:10;:23;;;;;68882:37;;;;;:::i;:::-;:42;;-1:-1:-1;68878:105:0;;68948:23;;;;:10;:23;;;;;68941:30;;;:::i;:::-;68997:24;69009:11;68997;:24::i;:::-;68467:562;;;68398:631;;:::o;63217:104::-;63269:13;63302:11;63295:18;;;;;:::i;39058:321::-;39188:18;39194:2;39198:7;39188:5;:18::i;:::-;39239:54;39270:1;39274:2;39278:7;39287:5;39239:22;:54::i;:::-;39217:154;;;;-1:-1:-1;;;39217:154:0;;;;;;;:::i;45271:183::-;45351:18;45355:4;45361:7;45351:3;:18::i;:::-;45343:64;;;;-1:-1:-1;;;45343:64:0;;19978:2:1;45343:64:0;;;19960:21:1;20017:2;19997:18;;;19990:30;20056:34;20036:18;;;20029:62;-1:-1:-1;;;20107:18:1;;;20100:31;20148:19;;45343:64:0;19776:397:1;45343:64:0;-1:-1:-1;;;;;45418:20:0;45441:5;45418:20;;;;;;;;;;;:28;;-1:-1:-1;;45418:28:0;;;45271:183::o;46924:617::-;47222:8;;46982:4;;47195:1;47188:9;;;;47218:18;;;46982:4;;47303:210;47319:3;47313;:9;47303:210;;;47388:10;;47400:4;47384:21;47430:4;47425:9;;47421:58;;;47455:8;47462:1;47455:8;;:::i;:::-;;;47421:58;47493:8;47500:1;47493:8;;:::i;:::-;;;47331:182;47324:5;;;;;:::i;:::-;;;;47303:210;;;-1:-1:-1;47530:3:0;46924:617;-1:-1:-1;;;;46924:617:0:o;59835:131::-;59902:4;59926:32;59931:3;59951:5;59926:4;:32::i;39715:382::-;-1:-1:-1;;;;;39795:16:0;;39787:61;;;;-1:-1:-1;;;39787:61:0;;20380:2:1;39787:61:0;;;20362:21:1;;;20399:18;;;20392:30;20458:34;20438:18;;;20431:62;20510:18;;39787:61:0;20178:356:1;39787:61:0;39868:16;39876:7;39868;:16::i;:::-;39867:17;39859:58;;;;-1:-1:-1;;;39859:58:0;;20741:2:1;39859:58:0;;;20723:21:1;20780:2;20760:18;;;20753:30;20819;20799:18;;;20792:58;20867:18;;39859:58:0;20539:352:1;39859:58:0;-1:-1:-1;;;;;39988:13:0;;;;;;:9;:13;;;;;:18;;40005:1;;39988:13;:18;;40005:1;;39988:18;:::i;:::-;;;;-1:-1:-1;;40017:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;40017:21:0;-1:-1:-1;;;;;40017:21:0;;;;;;;;40056:33;;40017:16;;;40056:33;;40017:16;;40056:33;39715:382;;:::o;42458:799::-;42613:4;-1:-1:-1;;;;;42634:13:0;;15975:20;16023:8;42630:620;;42670:72;;-1:-1:-1;;;42670:72:0;;-1:-1:-1;;;;;42670:36:0;;;;;:72;;682:10;;42721:4;;42727:7;;42736:5;;42670:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42670:72:0;;;;;;;;-1:-1:-1;;42670:72:0;;;;;;;;;;;;:::i;:::-;;;42666:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42912:13:0;;42908:272;;42955:60;;-1:-1:-1;;;42955:60:0;;;;;;;:::i;42908:272::-;43130:6;43124:13;43115:6;43111:2;43107:15;43100:38;42666:529;-1:-1:-1;;;;;;42793:51:0;-1:-1:-1;;;42793:51:0;;-1:-1:-1;42786:58:0;;42630:620;-1:-1:-1;43234:4:0;42458:799;;;;;;:::o;60142:137::-;60212:4;60236:35;60244:3;60264:5;60236:7;:35::i;51232:414::-;51295:4;53425:19;;;:12;;;:19;;;;;;51312:327;;-1:-1:-1;51355:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;51538:18;;51516:19;;;:12;;;:19;;;;;;:40;;;;51571:11;;51312:327;-1:-1:-1;51622:5:0;51615:12;;51822:1420;51888:4;52027:19;;;:12;;;:19;;;;;;52063:15;;52059:1176;;52438:21;52462:14;52475:1;52462:10;:14;:::i;:::-;52511:18;;52438:38;;-1:-1:-1;52491:17:0;;52511:22;;52532:1;;52511:22;:::i;:::-;52491:42;;52567:13;52554:9;:26;52550:405;;52601:17;52621:3;:11;;52633:9;52621:22;;;;;;;;:::i;:::-;;;;;;;;;52601:42;;52775:9;52746:3;:11;;52758:13;52746:26;;;;;;;;:::i;:::-;;;;;;;;;;;;:38;;;;52860:23;;;:12;;;:23;;;;;:36;;;52550:405;53036:17;;:3;;:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;53131:3;:12;;:19;53144:5;53131:19;;;;;;;;;;;53124:26;;;53174:4;53167:11;;;;;;;52059:1176;53218:5;53211:12;;;;;-1:-1:-1;;;;;;;:::i;:::-;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:131:1;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:258::-;664:1;674:113;688:6;685:1;682:13;674:113;;;764:11;;;758:18;745:11;;;738:39;710:2;703:10;674:113;;;805:6;802:1;799:13;796:48;;;-1:-1:-1;;840:1:1;822:16;;815:27;592:258::o;855:::-;897:3;935:5;929:12;962:6;957:3;950:19;978:63;1034:6;1027:4;1022:3;1018:14;1011:4;1004:5;1000:16;978:63;:::i;:::-;1095:2;1074:15;-1:-1:-1;;1070:29:1;1061:39;;;;1102:4;1057:50;;855:258;-1:-1:-1;;855:258:1:o;1118:220::-;1267:2;1256:9;1249:21;1230:4;1287:45;1328:2;1317:9;1313:18;1305:6;1287:45;:::i;1343:180::-;1402:6;1455:2;1443:9;1434:7;1430:23;1426:32;1423:52;;;1471:1;1468;1461:12;1423:52;-1:-1:-1;1494:23:1;;1343:180;-1:-1:-1;1343:180:1:o;1736:173::-;1804:20;;-1:-1:-1;;;;;1853:31:1;;1843:42;;1833:70;;1899:1;1896;1889:12;1833:70;1736:173;;;:::o;1914:254::-;1982:6;1990;2043:2;2031:9;2022:7;2018:23;2014:32;2011:52;;;2059:1;2056;2049:12;2011:52;2082:29;2101:9;2082:29;:::i;:::-;2072:39;2158:2;2143:18;;;;2130:32;;-1:-1:-1;;;1914:254:1:o;2173:127::-;2234:10;2229:3;2225:20;2222:1;2215:31;2265:4;2262:1;2255:15;2289:4;2286:1;2279:15;2305:632;2370:5;2400:18;2441:2;2433:6;2430:14;2427:40;;;2447:18;;:::i;:::-;2522:2;2516:9;2490:2;2576:15;;-1:-1:-1;;2572:24:1;;;2598:2;2568:33;2564:42;2552:55;;;2622:18;;;2642:22;;;2619:46;2616:72;;;2668:18;;:::i;:::-;2708:10;2704:2;2697:22;2737:6;2728:15;;2767:6;2759;2752:22;2807:3;2798:6;2793:3;2789:16;2786:25;2783:45;;;2824:1;2821;2814:12;2783:45;2874:6;2869:3;2862:4;2854:6;2850:17;2837:44;2929:1;2922:4;2913:6;2905;2901:19;2897:30;2890:41;;;;2305:632;;;;;:::o;2942:222::-;2985:5;3038:3;3031:4;3023:6;3019:17;3015:27;3005:55;;3056:1;3053;3046:12;3005:55;3078:80;3154:3;3145:6;3132:20;3125:4;3117:6;3113:17;3078:80;:::i;3169:322::-;3238:6;3291:2;3279:9;3270:7;3266:23;3262:32;3259:52;;;3307:1;3304;3297:12;3259:52;3347:9;3334:23;3380:18;3372:6;3369:30;3366:50;;;3412:1;3409;3402:12;3366:50;3435;3477:7;3468:6;3457:9;3453:22;3435:50;:::i;3496:328::-;3573:6;3581;3589;3642:2;3630:9;3621:7;3617:23;3613:32;3610:52;;;3658:1;3655;3648:12;3610:52;3681:29;3700:9;3681:29;:::i;:::-;3671:39;;3729:38;3763:2;3752:9;3748:18;3729:38;:::i;:::-;3719:48;;3814:2;3803:9;3799:18;3786:32;3776:42;;3496:328;;;;;:::o;3829:186::-;3888:6;3941:2;3929:9;3920:7;3916:23;3912:32;3909:52;;;3957:1;3954;3947:12;3909:52;3980:29;3999:9;3980:29;:::i;4020:396::-;4098:6;4106;4159:2;4147:9;4138:7;4134:23;4130:32;4127:52;;;4175:1;4172;4165:12;4127:52;4198:29;4217:9;4198:29;:::i;:::-;4188:39;;4278:2;4267:9;4263:18;4250:32;4305:18;4297:6;4294:30;4291:50;;;4337:1;4334;4327:12;4291:50;4360;4402:7;4393:6;4382:9;4378:22;4360:50;:::i;:::-;4350:60;;;4020:396;;;;;:::o;4603:464::-;4690:6;4698;4706;4759:2;4747:9;4738:7;4734:23;4730:32;4727:52;;;4775:1;4772;4765:12;4727:52;4798:29;4817:9;4798:29;:::i;:::-;4788:39;;4874:2;4863:9;4859:18;4846:32;4836:42;;4929:2;4918:9;4914:18;4901:32;4956:18;4948:6;4945:30;4942:50;;;4988:1;4985;4978:12;4942:50;5011;5053:7;5044:6;5033:9;5029:22;5011:50;:::i;:::-;5001:60;;;4603:464;;;;;:::o;5072:347::-;5137:6;5145;5198:2;5186:9;5177:7;5173:23;5169:32;5166:52;;;5214:1;5211;5204:12;5166:52;5237:29;5256:9;5237:29;:::i;:::-;5227:39;;5316:2;5305:9;5301:18;5288:32;5363:5;5356:13;5349:21;5342:5;5339:32;5329:60;;5385:1;5382;5375:12;5329:60;5408:5;5398:15;;;5072:347;;;;;:::o;5424:667::-;5519:6;5527;5535;5543;5596:3;5584:9;5575:7;5571:23;5567:33;5564:53;;;5613:1;5610;5603:12;5564:53;5636:29;5655:9;5636:29;:::i;:::-;5626:39;;5684:38;5718:2;5707:9;5703:18;5684:38;:::i;:::-;5674:48;;5769:2;5758:9;5754:18;5741:32;5731:42;;5824:2;5813:9;5809:18;5796:32;5851:18;5843:6;5840:30;5837:50;;;5883:1;5880;5873:12;5837:50;5906:22;;5959:4;5951:13;;5947:27;-1:-1:-1;5937:55:1;;5988:1;5985;5978:12;5937:55;6011:74;6077:7;6072:2;6059:16;6054:2;6050;6046:11;6011:74;:::i;:::-;6001:84;;;5424:667;;;;;;;:::o;6096:254::-;6164:6;6172;6225:2;6213:9;6204:7;6200:23;6196:32;6193:52;;;6241:1;6238;6231:12;6193:52;6277:9;6264:23;6254:33;;6306:38;6340:2;6329:9;6325:18;6306:38;:::i;:::-;6296:48;;6096:254;;;;;:::o;6355:390::-;6433:6;6441;6494:2;6482:9;6473:7;6469:23;6465:32;6462:52;;;6510:1;6507;6500:12;6462:52;6546:9;6533:23;6523:33;;6607:2;6596:9;6592:18;6579:32;6634:18;6626:6;6623:30;6620:50;;;6666:1;6663;6656:12;6750:260;6818:6;6826;6879:2;6867:9;6858:7;6854:23;6850:32;6847:52;;;6895:1;6892;6885:12;6847:52;6918:29;6937:9;6918:29;:::i;:::-;6908:39;;6966:38;7000:2;6989:9;6985:18;6966:38;:::i;7015:380::-;7094:1;7090:12;;;;7137;;;7158:61;;7212:4;7204:6;7200:17;7190:27;;7158:61;7265:2;7257:6;7254:14;7234:18;7231:38;7228:161;;;7311:10;7306:3;7302:20;7299:1;7292:31;7346:4;7343:1;7336:15;7374:4;7371:1;7364:15;7228:161;;7015:380;;;:::o;9770:276::-;9901:3;9939:6;9933:13;9955:53;10001:6;9996:3;9989:4;9981:6;9977:17;9955:53;:::i;:::-;10024:16;;;;;9770:276;-1:-1:-1;;9770:276:1:o;10401:356::-;10603:2;10585:21;;;10622:18;;;10615:30;10681:34;10676:2;10661:18;;10654:62;10748:2;10733:18;;10401:356::o;10762:413::-;10964:2;10946:21;;;11003:2;10983:18;;;10976:30;11042:34;11037:2;11022:18;;11015:62;-1:-1:-1;;;11108:2:1;11093:18;;11086:47;11165:3;11150:19;;10762:413::o;13188:470::-;13367:3;13405:6;13399:13;13421:53;13467:6;13462:3;13455:4;13447:6;13443:17;13421:53;:::i;:::-;13537:13;;13496:16;;;;13559:57;13537:13;13496:16;13593:4;13581:17;;13559:57;:::i;:::-;13632:20;;13188:470;-1:-1:-1;;;;13188:470:1:o;13663:372::-;13822:3;13860:6;13854:13;13876:53;13922:6;13917:3;13910:4;13902:6;13898:17;13876:53;:::i;:::-;13951:16;;;;13976:21;;;-1:-1:-1;14024:4:1;14013:16;;13663:372;-1:-1:-1;13663:372:1:o;14807:127::-;14868:10;14863:3;14859:20;14856:1;14849:31;14899:4;14896:1;14889:15;14923:4;14920:1;14913:15;14939:127;15000:10;14995:3;14991:20;14988:1;14981:31;15031:4;15028:1;15021:15;15055:4;15052:1;15045:15;15071:204;15109:3;15145:4;15142:1;15138:12;15177:4;15174:1;15170:12;15212:3;15206:4;15202:14;15197:3;15194:23;15191:49;;;15220:18;;:::i;:::-;15256:13;;15071:204;-1:-1:-1;;;15071:204:1:o;15280:135::-;15319:3;-1:-1:-1;;15340:17:1;;15337:43;;;15360:18;;:::i;:::-;-1:-1:-1;15407:1:1;15396:13;;15280:135::o;17061:125::-;17101:4;17129:1;17126;17123:8;17120:34;;;17134:18;;:::i;:::-;-1:-1:-1;17171:9:1;;17061:125::o;17191:128::-;17231:3;17262:1;17258:6;17255:1;17252:13;17249:39;;;17268:18;;:::i;:::-;-1:-1:-1;17304:9:1;;17191:128::o;17853:1499::-;18130:3;18168:6;18162:13;18194:4;18207:51;18251:6;18246:3;18241:2;18233:6;18229:15;18207:51;:::i;:::-;-1:-1:-1;;;18280:16:1;;;18305:18;;;18390:13;;18342:1;;18363;;18452:18;;;18505;;;;18532:93;;18610:4;18600:8;18596:19;18584:31;;18532:93;18673:2;18663:8;18660:16;18640:18;18637:40;18634:167;;;-1:-1:-1;;;18700:33:1;;18756:4;18753:1;18746:15;18786:4;18707:3;18774:17;18634:167;18817:18;18844:128;;;;18986:1;18981:346;;;;18810:517;;18844:128;-1:-1:-1;;18888:24:1;;18872:14;;;18865:48;18937:20;;;18933:29;;;-1:-1:-1;18844:128:1;;18981:346;17800:1;17793:14;;;17837:4;17824:18;;19076:1;19090:178;19104:8;19101:1;19098:15;19090:178;;;19195:14;;19175:13;;;19171:22;;19164:46;19238:16;;;;19121:10;;19090:178;;;19094:3;;19314:2;19303:8;19296:5;19292:20;19288:29;19281:36;;18810:517;-1:-1:-1;19343:3:1;;17853:1499;-1:-1:-1;;;;;;;;;;17853:1499:1:o;19357:414::-;19559:2;19541:21;;;19598:2;19578:18;;;19571:30;19637:34;19632:2;19617:18;;19610:62;-1:-1:-1;;;19703:2:1;19688:18;;19681:48;19761:3;19746:19;;19357:414::o;20896:489::-;-1:-1:-1;;;;;21165:15:1;;;21147:34;;21217:15;;21212:2;21197:18;;21190:43;21264:2;21249:18;;21242:34;;;21312:3;21307:2;21292:18;;21285:31;;;21090:4;;21333:46;;21359:19;;21351:6;21333:46;:::i;:::-;21325:54;20896:489;-1:-1:-1;;;;;;20896:489:1:o;21390:249::-;21459:6;21512:2;21500:9;21491:7;21487:23;21483:32;21480:52;;;21528:1;21525;21518:12;21480:52;21560:9;21554:16;21579:30;21603:5;21579:30;:::i;21644:127::-;21705:10;21700:3;21696:20;21693:1;21686:31;21736:4;21733:1;21726:15;21760:4;21757:1;21750:15

Swarm Source

ipfs://543a6375f374e68a496afaed5a3f383e567343ea2b88eced8efd99b4e333a15c
Loading