Token Time Machine 102s The Travelers

Overview CRC721

Total Supply:
2,804 TM102

Holders:
99 addresses

Transfers:
-

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:
TimeMachine102sTheTravelers

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-04-06
*/

// SPDX-License-Identifier: MIT LICENSE
//             ___          
//            /   \\        
//      //\\ | . . \\       
//     ////\\|     ||       
//    ///   \\ ___//\       
//   ///     \\      \      
//  ///      |\\ C.C. \     
// ///       | \\  \   \    
/////        |  \\  \   \   
////         |   \\ /   /   
///          |    \/   /    
//           |     \\/|     
//           |      \\|     
//           |       \\     
//           |        |\    
//           |_________\\    
/** NFT Contract - Time Machine 102s The Travelers
      (\                     /)
      (v\                   /v)
     (vvv\                 /vvv)
    (vvvvv\               /vvvvv)
   (vvvvvvv\             /vvvvvvv)
  (vvvvvvvvv\   _---_   /vvvvvvvvv)
 (vvvvvvvvvvv\/  XII  \/vvvvvvvvvvv)
(vvvvvvvvvvvv/      /  \vvvvvvvvvvvv)
(vvvvvvvvvvv/      /    \vvvvvvvvvvv)
(vvvvvvvvvv|IX    @  III |vvvvvvvvvv)
 (vvvvvvvvvv\      \    /vvvvvvvvvv)
  (vvvvvvvvvv\         /vvvvvvvvvv)
    (vvvvvvvvv\   VI  /vvvvvvvvv)
       (vvvvvvvv-___-vvvvvvvv)
         (vvvvvv/   \vvvvvv)
         (vvvvv/     \vvvvv)
          (vvv/       \vvv)
           (v/         \v)
           (/           \)
*/
pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 *
 * [WARNING]
 * ====
 * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
 * unusable.
 * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
 * array of EnumerableSet.
 * ====
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

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

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

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

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

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

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

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

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

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

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

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

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

        return result;
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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

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

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

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

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

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

        return result;
    }
}

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


// OpenZeppelin Contracts (last updated v4.8.0) (utils/structs/EnumerableMap.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableMap.js.

pragma solidity ^0.8.0;


/**
 * @dev Library for managing an enumerable variant of Solidity's
 * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
 * type.
 *
 * Maps have the following properties:
 *
 * - Entries are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Entries are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableMap for EnumerableMap.UintToAddressMap;
 *
 *     // Declare a set state variable
 *     EnumerableMap.UintToAddressMap private myMap;
 * }
 * ```
 *
 * The following map types are supported:
 *
 * - `uint256 -> address` (`UintToAddressMap`) since v3.0.0
 * - `address -> uint256` (`AddressToUintMap`) since v4.6.0
 * - `bytes32 -> bytes32` (`Bytes32ToBytes32Map`) since v4.6.0
 * - `uint256 -> uint256` (`UintToUintMap`) since v4.7.0
 * - `bytes32 -> uint256` (`Bytes32ToUintMap`) since v4.7.0
 *
 * [WARNING]
 * ====
 * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
 * unusable.
 * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 * In order to clean an EnumerableMap, you can either remove all elements one by one or create a fresh instance using an
 * array of EnumerableMap.
 * ====
 */
library EnumerableMap {
    using EnumerableSet for EnumerableSet.Bytes32Set;

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

    struct Bytes32ToBytes32Map {
        // Storage of keys
        EnumerableSet.Bytes32Set _keys;
        mapping(bytes32 => bytes32) _values;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function set(
        Bytes32ToBytes32Map storage map,
        bytes32 key,
        bytes32 value
    ) internal returns (bool) {
        map._values[key] = value;
        return map._keys.add(key);
    }

    /**
     * @dev Removes a key-value pair from a map. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function remove(Bytes32ToBytes32Map storage map, bytes32 key) internal returns (bool) {
        delete map._values[key];
        return map._keys.remove(key);
    }

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

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

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

    /**
     * @dev Tries to returns the value associated with `key`. O(1).
     * Does not revert if `key` is not in the map.
     */
    function tryGet(Bytes32ToBytes32Map storage map, bytes32 key) internal view returns (bool, bytes32) {
        bytes32 value = map._values[key];
        if (value == bytes32(0)) {
            return (contains(map, key), bytes32(0));
        } else {
            return (true, value);
        }
    }

    /**
     * @dev Returns the value associated with `key`. O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function get(Bytes32ToBytes32Map storage map, bytes32 key) internal view returns (bytes32) {
        bytes32 value = map._values[key];
        require(value != 0 || contains(map, key), "EnumerableMap: nonexistent key");
        return value;
    }

    /**
     * @dev Same as {get}, with a custom error message when `key` is not in the map.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryGet}.
     */
    function get(
        Bytes32ToBytes32Map storage map,
        bytes32 key,
        string memory errorMessage
    ) internal view returns (bytes32) {
        bytes32 value = map._values[key];
        require(value != 0 || contains(map, key), errorMessage);
        return value;
    }

    // UintToUintMap

    struct UintToUintMap {
        Bytes32ToBytes32Map _inner;
    }

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

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

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

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

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

    /**
     * @dev Tries to returns the value associated with `key`. O(1).
     * Does not revert if `key` is not in the map.
     */
    function tryGet(UintToUintMap storage map, uint256 key) internal view returns (bool, uint256) {
        (bool success, bytes32 value) = tryGet(map._inner, bytes32(key));
        return (success, uint256(value));
    }

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

    /**
     * @dev Same as {get}, with a custom error message when `key` is not in the map.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryGet}.
     */
    function get(
        UintToUintMap storage map,
        uint256 key,
        string memory errorMessage
    ) internal view returns (uint256) {
        return uint256(get(map._inner, bytes32(key), errorMessage));
    }

    // UintToAddressMap

    struct UintToAddressMap {
        Bytes32ToBytes32Map _inner;
    }

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

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

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

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

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

    /**
     * @dev Tries to returns the value associated with `key`. O(1).
     * Does not revert if `key` is not in the map.
     */
    function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool, address) {
        (bool success, bytes32 value) = tryGet(map._inner, bytes32(key));
        return (success, address(uint160(uint256(value))));
    }

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

    /**
     * @dev Same as {get}, with a custom error message when `key` is not in the map.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryGet}.
     */
    function get(
        UintToAddressMap storage map,
        uint256 key,
        string memory errorMessage
    ) internal view returns (address) {
        return address(uint160(uint256(get(map._inner, bytes32(key), errorMessage))));
    }

    // AddressToUintMap

    struct AddressToUintMap {
        Bytes32ToBytes32Map _inner;
    }

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

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

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

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

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

    /**
     * @dev Tries to returns the value associated with `key`. O(1).
     * Does not revert if `key` is not in the map.
     */
    function tryGet(AddressToUintMap storage map, address key) internal view returns (bool, uint256) {
        (bool success, bytes32 value) = tryGet(map._inner, bytes32(uint256(uint160(key))));
        return (success, uint256(value));
    }

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

    /**
     * @dev Same as {get}, with a custom error message when `key` is not in the map.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryGet}.
     */
    function get(
        AddressToUintMap storage map,
        address key,
        string memory errorMessage
    ) internal view returns (uint256) {
        return uint256(get(map._inner, bytes32(uint256(uint160(key))), errorMessage));
    }

    // Bytes32ToUintMap

    struct Bytes32ToUintMap {
        Bytes32ToBytes32Map _inner;
    }

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

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

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

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

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

    /**
     * @dev Tries to returns the value associated with `key`. O(1).
     * Does not revert if `key` is not in the map.
     */
    function tryGet(Bytes32ToUintMap storage map, bytes32 key) internal view returns (bool, uint256) {
        (bool success, bytes32 value) = tryGet(map._inner, key);
        return (success, uint256(value));
    }

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

    /**
     * @dev Same as {get}, with a custom error message when `key` is not in the map.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryGet}.
     */
    function get(
        Bytes32ToUintMap storage map,
        bytes32 key,
        string memory errorMessage
    ) internal view returns (uint256) {
        return uint256(get(map._inner, key, errorMessage));
    }
}

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


// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/security/ReentrancyGuard.sol


// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

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

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

// File: @openzeppelin/contracts/utils/math/Math.sol


// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;


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

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

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

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

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

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


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

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


// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

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


// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

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

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


// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

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

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;


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

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

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

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


// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

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

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


// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

// File: @openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol


// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;




/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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


// OpenZeppelin Contracts (last updated v4.8.2) (token/ERC721/ERC721.sol)

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: address zero is not a valid owner");
        return _balances[owner];
    }

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

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

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

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

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

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

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

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

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

        _owners[tokenId] = to;

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

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

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

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

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

        // Clear approvals
        delete _tokenApprovals[tokenId];

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId, 1);

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

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

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

        emit Transfer(from, to, tokenId);

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

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

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

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

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

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

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

    /**
     * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override.
     *
     * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant
     * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such
     * that `ownerOf(tokenId)` is `a`.
     */
    // solhint-disable-next-line func-name-mixedcase
    function __unsafe_increaseBalance(address account, uint256 amount) internal {
        _balances[account] += amount;
    }
}

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


// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;



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

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

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

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

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

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

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

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

    /**
     * @dev See {ERC721-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, firstTokenId, batchSize);

        if (batchSize > 1) {
            // Will only trigger during construction. Batch transferring (minting) is not available afterwards.
            revert("ERC721Enumerable: consecutive transfers not supported");
        }

        uint256 tokenId = firstTokenId;

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

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

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

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

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

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

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

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

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

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

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

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

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

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


// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

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() {
        _transferOwnership(_msgSender());
    }

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

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

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

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

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

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

// File: TimeMachine102sTheTravelers.sol
//             ___          
//            /   \\        
//      //\\ | . . \\       
//     ////\\|     ||       
//    ///   \\ ___//\       
//   ///     \\      \      
//  ///      |\\ C.C. \     
// ///       | \\  \   \    
/////        |  \\  \   \   
////         |   \\ /   /   
///          |    \/   /    
//           |     \\/|     
//           |      \\|     
//           |       \\     
//           |        |\    
//           |_________\\    
/** NFT Contract - Time Machine 102s The Travelers
      (\                     /)
      (v\                   /v)
     (vvv\                 /vvv)
    (vvvvv\               /vvvvv)
   (vvvvvvv\             /vvvvvvv)
  (vvvvvvvvv\   _---_   /vvvvvvvvv)
 (vvvvvvvvvvv\/  XII  \/vvvvvvvvvvv)
(vvvvvvvvvvvv/      /  \vvvvvvvvvvvv)
(vvvvvvvvvvv/      /    \vvvvvvvvvvv)
(vvvvvvvvvv|IX    @  III |vvvvvvvvvv)
 (vvvvvvvvvv\      \    /vvvvvvvvvv)
  (vvvvvvvvvv\         /vvvvvvvvvv)
    (vvvvvvvvv\   VI  /vvvvvvvvv)
       (vvvvvvvv-___-vvvvvvvv)
         (vvvvvv/   \vvvvvv)
         (vvvvv/     \vvvvv)
          (vvv/       \vvv)
           (v/         \v)
           (/           \)
*/
pragma solidity ^0.8.0;

contract TimeMachine102sTheTravelers is ReentrancyGuard, ERC721Enumerable, Ownable {
    
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    receive() external payable {}

    struct TokenInfo {
        IERC20 ERC20paytoken;
        uint256 ERC20publicCost;
        uint256 ERC20whitelistCost;
        uint256 ERC20royaltyPercentage;
        address ERC20royaltyWallet;
    }

    struct ETHInfo {
        uint256 ETHpublicCost;
        uint256 ETHwhitelistCost;
        uint256 ETHroyaltyPercentage;
        address payable ETHroyaltyWallet;
    }

    using EnumerableSet for EnumerableSet.AddressSet;
    EnumerableSet.AddressSet private whitelist;
    
    mapping(address => TokenInfo) private payTokens;
    
    using EnumerableMap for EnumerableMap.AddressToUintMap;
    EnumerableMap.AddressToUintMap private publicCosts;
    EnumerableMap.AddressToUintMap private whitelistCosts;

    ETHInfo public ethInfo;

    using Strings for uint256;
    string public baseURI;
    string public baseExtension = ".json";
    uint256 public constant maxSupply = 5000;
    uint256 public constant maxMintAmount = 10;
    bool public paused = false;
    mapping(address => bool) public whitelisted;


    constructor() ERC721("Time Machine 102s The Travelers", "TM102") {}
    
    function _baseURI() internal view virtual override returns (string memory) {
        return baseURI;
    }

    function walletOfOwner(address _owner)
        public
        view
        returns (uint256[] memory)
    {
        uint256 ownerTokenCount = balanceOf(_owner);
        uint256[] memory tokenIds = new uint256[](ownerTokenCount);
        for (uint256 i; i < ownerTokenCount; i++) {
            tokenIds[i] = tokenOfOwnerByIndex(_owner, i);
        }
        return tokenIds;
    }

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
        string memory currentBaseURI = _baseURI();
        return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenId.toString(), baseExtension)) : "";
    }       

    function addCurrency(IERC20 _payToken, uint256 _ERC20publicCost, uint256 _ERC20whitelistCost, uint256 _ERC20royaltyPercentage, address _ERC20royaltyWallet) external onlyOwner {
        publicCosts.set(address(_payToken), _ERC20publicCost);
        whitelistCosts.set(address(_payToken), _ERC20whitelistCost);
        payTokens[address(_payToken)] = TokenInfo({
            ERC20paytoken: _payToken,
            ERC20publicCost: _ERC20publicCost,
            ERC20whitelistCost: _ERC20whitelistCost,
            ERC20royaltyPercentage: _ERC20royaltyPercentage,
            ERC20royaltyWallet: _ERC20royaltyWallet
        });
    }
    
    function removeCurrency(IERC20 _payToken) external onlyOwner {
        publicCosts.remove(address(_payToken));
        whitelistCosts.remove(address(_payToken));
        delete payTokens[address(_payToken)];
    }

    function getTokenInfo(address _tokenAddress) public view returns (TokenInfo memory) {
        return payTokens[_tokenAddress];
    }

    function setETHInfo(uint256 _ETHpublicCost, uint256 _ETHwhitelistCost, uint256 _ETHroyaltyPercentage, address payable _ETHroyaltyWallet) external onlyOwner {
        ethInfo = ETHInfo({
            ETHpublicCost: _ETHpublicCost,
            ETHwhitelistCost: _ETHwhitelistCost,
            ETHroyaltyPercentage: _ETHroyaltyPercentage,
            ETHroyaltyWallet: _ETHroyaltyWallet
        });
    }

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

    function setBaseExtension(string memory _newBaseExtension) external onlyOwner {
        baseExtension = _newBaseExtension;
    }

    function pause(bool val) external onlyOwner {
        paused = val;
    }

    function whitelistAddresses(address[] memory _addresses) external onlyOwner {
        for (uint256 i = 0; i < _addresses.length; i++) {
            whitelisted[_addresses[i]] = true;
            whitelist.add(_addresses[i]);
        }
    }

    function removeAddressesFromWhitelist(address[] memory _addresses) external onlyOwner {
        for (uint256 i = 0; i < _addresses.length; i++) {
            whitelisted[_addresses[i]] = false;
            whitelist.remove(_addresses[i]);
        }
    }

    function isWhitelisted(address _address) public view returns (bool) {
        return whitelisted[_address];
    }

    function purchaseWithERC20(uint256 _numberOfTokens, address _token) public nonReentrant {
        require(!paused, "Contract is paused");
        require(_numberOfTokens > 0 && _numberOfTokens <= maxMintAmount, "Exceeds maximum purchase amount");
        require(totalSupply() + _numberOfTokens <= maxSupply, "Exceeds maximum supply");

        uint256 cost;
        if (isWhitelisted(msg.sender)) {
            cost = payTokens[_token].ERC20whitelistCost.mul(_numberOfTokens);
        } else {
            require(payTokens[_token].ERC20paytoken.allowance(msg.sender, address(this)) >= payTokens[_token].ERC20publicCost.mul(_numberOfTokens), "Allowance not sufficient");
            cost = payTokens[_token].ERC20publicCost.mul(_numberOfTokens);
        }

        uint256 royaltyAmount = cost.mul(payTokens[_token].ERC20royaltyPercentage).div(100);
        uint256 ownerAmount = cost.sub(royaltyAmount);

        payTokens[_token].ERC20paytoken.safeTransferFrom(msg.sender, payTokens[_token].ERC20royaltyWallet, royaltyAmount);
        payTokens[_token].ERC20paytoken.safeTransferFrom(msg.sender, address(this), ownerAmount);

        for (uint256 i = 0; i < _numberOfTokens; i++) {
            uint256 tokenId = totalSupply();
            if (totalSupply() < maxSupply) {
                _safeMint(msg.sender, tokenId);
            }
        }
    }

    function purchaseWithETH(uint256 _numberOfTokens) public payable nonReentrant {
        require(!paused, "Contract is paused");
        require(_numberOfTokens > 0 && _numberOfTokens <= maxMintAmount, "Exceeds maximum purchase amount");
        require(totalSupply() + _numberOfTokens <= maxSupply, "Exceeds maximum supply");

        uint256 cost;
        if (isWhitelisted(msg.sender)) {
            cost = ethInfo.ETHwhitelistCost.mul(_numberOfTokens);
        } else {
            cost = ethInfo.ETHpublicCost.mul(_numberOfTokens);
        }

        uint256 royaltyAmount = cost.mul(ethInfo.ETHroyaltyPercentage).div(100);
        uint256 ownerAmount = cost.sub(royaltyAmount);

        require(msg.value >= cost, "Ether value sent is not correct");

        if (msg.value > cost) {
            payable(msg.sender).transfer(msg.value.sub(cost));
        }

        ethInfo.ETHroyaltyWallet.transfer(royaltyAmount);
        payable(owner()).transfer(ownerAmount);

        for (uint256 i = 0; i < _numberOfTokens; i++) {
            uint256 tokenId = totalSupply();
            if (totalSupply() < maxSupply) {
                _safeMint(msg.sender, tokenId);
            }
        }
    }

    function withdrawAll() external onlyOwner {
        uint256 balance = address(this).balance;
        payable(msg.sender).transfer(balance);
    }

    function withdrawToken(IERC20 _token, uint256 _amount) external onlyOwner {
        uint256 tokenBalance = _token.balanceOf(address(this));
        require(_amount <= tokenBalance, "Insufficient token balance");
        SafeERC20.safeTransfer(_token, msg.sender, _amount);
    }

}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"contract IERC20","name":"_payToken","type":"address"},{"internalType":"uint256","name":"_ERC20publicCost","type":"uint256"},{"internalType":"uint256","name":"_ERC20whitelistCost","type":"uint256"},{"internalType":"uint256","name":"_ERC20royaltyPercentage","type":"uint256"},{"internalType":"address","name":"_ERC20royaltyWallet","type":"address"}],"name":"addCurrency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ethInfo","outputs":[{"internalType":"uint256","name":"ETHpublicCost","type":"uint256"},{"internalType":"uint256","name":"ETHwhitelistCost","type":"uint256"},{"internalType":"uint256","name":"ETHroyaltyPercentage","type":"uint256"},{"internalType":"address payable","name":"ETHroyaltyWallet","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"}],"name":"getTokenInfo","outputs":[{"components":[{"internalType":"contract IERC20","name":"ERC20paytoken","type":"address"},{"internalType":"uint256","name":"ERC20publicCost","type":"uint256"},{"internalType":"uint256","name":"ERC20whitelistCost","type":"uint256"},{"internalType":"uint256","name":"ERC20royaltyPercentage","type":"uint256"},{"internalType":"address","name":"ERC20royaltyWallet","type":"address"}],"internalType":"struct TimeMachine102sTheTravelers.TokenInfo","name":"","type":"tuple"}],"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":"_address","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"bool","name":"val","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numberOfTokens","type":"uint256"},{"internalType":"address","name":"_token","type":"address"}],"name":"purchaseWithERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numberOfTokens","type":"uint256"}],"name":"purchaseWithETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"removeAddressesFromWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_payToken","type":"address"}],"name":"removeCurrency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","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":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ETHpublicCost","type":"uint256"},{"internalType":"uint256","name":"_ETHwhitelistCost","type":"uint256"},{"internalType":"uint256","name":"_ETHroyaltyPercentage","type":"uint256"},{"internalType":"address payable","name":"_ETHroyaltyWallet","type":"address"}],"name":"setETHInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"whitelistAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c06040526005608090815264173539b7b760d91b60a052601a90620000269082620001d9565b50601b805460ff191690553480156200003e57600080fd5b506040518060400160405280601f81526020017f54696d65204d616368696e652031303273205468652054726176656c65727300815250604051806040016040528060058152602001642a2698981960d91b81525060016000819055508160019081620000ac9190620001d9565b506002620000bb8282620001d9565b505050620000d8620000d2620000de60201b60201c565b620000e2565b620002a5565b3390565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200015f57607f821691505b6020821081036200018057634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001d457600081815260208120601f850160051c81016020861015620001af5750805b601f850160051c820191505b81811015620001d057828155600101620001bb565b5050505b505050565b81516001600160401b03811115620001f557620001f562000134565b6200020d816200020684546200014a565b8462000186565b602080601f8311600181146200024557600084156200022c5750858301515b600019600386901b1c1916600185901b178555620001d0565b600085815260208120601f198616915b82811015620002765788860151825594840194600190910190840162000255565b5085821015620002955787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6134ef80620002b56000396000f3fe60806040526004361061024a5760003560e01c80636c0360eb11610139578063b88d4fde116100b6578063d5abeb011161007a578063d5abeb0114610733578063d936547e14610749578063da3ef23f14610779578063e985e9c514610799578063ea236e1e146107e2578063f2fde38b1461080257600080fd5b8063b88d4fde1461069e578063c5d3a107146106be578063c6682862146106de578063c87b56dd146106f3578063d55002211461071357600080fd5b806395d89b41116100fd57806395d89b41146105e15780639e281a98146105f6578063a22cb46514610616578063b57a38d914610636578063b8189faf1461064957600080fd5b80636c0360eb1461056457806370a0823114610579578063715018a614610599578063853828b6146105ae5780638da5cb5b146105c357600080fd5b80632bf04304116101c75780634f6ccce71161018b5780634f6ccce7146104ca57806355f804b3146104ea5780635c975abb1461050a5780635ffe4371146105245780636352211e1461054457600080fd5b80632bf04304146104045780632f745c59146104245780633af32abf1461044457806342842e0e1461047d578063438b63001461049d57600080fd5b806318160ddd1161020e57806318160ddd146103275780631f69565f14610346578063239c70ae146103af57806323b872dd146103c457806324953eaa146103e457600080fd5b806301ffc9a71461025657806302329a291461028b57806306fdde03146102ad578063081812fc146102cf578063095ea7b31461030757600080fd5b3661025157005b600080fd5b34801561026257600080fd5b50610276610271366004612ba3565b610822565b60405190151581526020015b60405180910390f35b34801561029757600080fd5b506102ab6102a6366004612bce565b61084d565b005b3480156102b957600080fd5b506102c2610868565b6040516102829190612c3b565b3480156102db57600080fd5b506102ef6102ea366004612c4e565b6108fa565b6040516001600160a01b039091168152602001610282565b34801561031357600080fd5b506102ab610322366004612c7c565b610921565b34801561033357600080fd5b506009545b604051908152602001610282565b34801561035257600080fd5b50610366610361366004612ca8565b610a3b565b604051610282919081516001600160a01b039081168252602080840151908301526040808401519083015260608084015190830152608092830151169181019190915260a00190565b3480156103bb57600080fd5b50610338600a81565b3480156103d057600080fd5b506102ab6103df366004612cc5565b610ade565b3480156103f057600080fd5b506102ab6103ff366004612d4d565b610b0f565b34801561041057600080fd5b506102ab61041f366004612d4d565b610bbe565b34801561043057600080fd5b5061033861043f366004612c7c565b610c69565b34801561045057600080fd5b5061027661045f366004612ca8565b6001600160a01b03166000908152601c602052604090205460ff1690565b34801561048957600080fd5b506102ab610498366004612cc5565b610cff565b3480156104a957600080fd5b506104bd6104b8366004612ca8565b610d1a565b6040516102829190612dff565b3480156104d657600080fd5b506103386104e5366004612c4e565b610dbc565b3480156104f657600080fd5b506102ab610505366004612e9b565b610e4f565b34801561051657600080fd5b50601b546102769060ff1681565b34801561053057600080fd5b506102ab61053f366004612ee4565b610e63565b34801561055057600080fd5b506102ef61055f366004612c4e565b6111c2565b34801561057057600080fd5b506102c2611222565b34801561058557600080fd5b50610338610594366004612ca8565b6112b0565b3480156105a557600080fd5b506102ab611336565b3480156105ba57600080fd5b506102ab61134a565b3480156105cf57600080fd5b50600b546001600160a01b03166102ef565b3480156105ed57600080fd5b506102c2611381565b34801561060257600080fd5b506102ab610611366004612c7c565b611390565b34801561062257600080fd5b506102ab610631366004612f14565b611460565b6102ab610644366004612c4e565b61146b565b34801561065557600080fd5b50601554601654601754601854610675939291906001600160a01b031684565b604080519485526020850193909352918301526001600160a01b03166060820152608001610282565b3480156106aa57600080fd5b506102ab6106b9366004612f42565b61173f565b3480156106ca57600080fd5b506102ab6106d9366004612ca8565b611777565b3480156106ea57600080fd5b506102c26117e0565b3480156106ff57600080fd5b506102c261070e366004612c4e565b6117ed565b34801561071f57600080fd5b506102ab61072e366004612fc2565b6118cb565b34801561073f57600080fd5b5061033861138881565b34801561075557600080fd5b50610276610764366004612ca8565b601c6020526000908152604090205460ff1681565b34801561078557600080fd5b506102ab610794366004612e9b565b611924565b3480156107a557600080fd5b506102766107b4366004613003565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b3480156107ee57600080fd5b506102ab6107fd366004613031565b611938565b34801561080e57600080fd5b506102ab61081d366004612ca8565b6119dd565b60006001600160e01b0319821663780e9d6360e01b1480610847575061084782611a53565b92915050565b610855611aa3565b601b805460ff1916911515919091179055565b60606001805461087790613087565b80601f01602080910402602001604051908101604052809291908181526020018280546108a390613087565b80156108f05780601f106108c5576101008083540402835291602001916108f0565b820191906000526020600020905b8154815290600101906020018083116108d357829003601f168201915b5050505050905090565b600061090582611afd565b506000908152600560205260409020546001600160a01b031690565b600061092c826111c2565b9050806001600160a01b0316836001600160a01b03160361099e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806109ba57506109ba81336107b4565b610a2c5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610995565b610a368383611b5c565b505050565b610a7f6040518060a0016040528060006001600160a01b0316815260200160008152602001600081526020016000815260200160006001600160a01b031681525090565b506001600160a01b039081166000908152600e6020908152604091829020825160a08101845281548516815260018201549281019290925260028101549282019290925260038201546060820152600490910154909116608082015290565b610ae83382611bca565b610b045760405162461bcd60e51b8152600401610995906130c1565b610a36838383611c49565b610b17611aa3565b60005b8151811015610bba576000601c6000848481518110610b3b57610b3b61310e565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550610ba7828281518110610b8f57610b8f61310e565b6020026020010151600c611dba90919063ffffffff16565b5080610bb28161313a565b915050610b1a565b5050565b610bc6611aa3565b60005b8151811015610bba576001601c6000848481518110610bea57610bea61310e565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550610c56828281518110610c3e57610c3e61310e565b6020026020010151600c611dcf90919063ffffffff16565b5080610c618161313a565b915050610bc9565b6000610c74836112b0565b8210610cd65760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610995565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b610a368383836040518060200160405280600081525061173f565b60606000610d27836112b0565b905060008167ffffffffffffffff811115610d4457610d44612d06565b604051908082528060200260200182016040528015610d6d578160200160208202803683370190505b50905060005b82811015610db457610d858582610c69565b828281518110610d9757610d9761310e565b602090810291909101015280610dac8161313a565b915050610d73565b509392505050565b6000610dc760095490565b8210610e2a5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610995565b60098281548110610e3d57610e3d61310e565b90600052602060002001549050919050565b610e57611aa3565b6019610bba82826131a1565b610e6b611de4565b601b5460ff1615610eb35760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b6044820152606401610995565b600082118015610ec45750600a8211155b610f105760405162461bcd60e51b815260206004820152601f60248201527f45786365656473206d6178696d756d20707572636861736520616d6f756e74006044820152606401610995565b61138882610f1d60095490565b610f279190613261565b1115610f6e5760405162461bcd60e51b815260206004820152601660248201527545786365656473206d6178696d756d20737570706c7960501b6044820152606401610995565b336000908152601c602052604081205460ff1615610fb3576001600160a01b0382166000908152600e6020526040902060020154610fac9084611e3d565b90506110d1565b6001600160a01b0382166000908152600e6020526040902060010154610fd99084611e3d565b6001600160a01b038381166000908152600e602052604090819020549051636eb1769f60e11b815233600482015230602482015291169063dd62ed3e90604401602060405180830381865afa158015611036573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061105a9190613274565b10156110a85760405162461bcd60e51b815260206004820152601860248201527f416c6c6f77616e6365206e6f742073756666696369656e7400000000000000006044820152606401610995565b6001600160a01b0382166000908152600e60205260409020600101546110ce9084611e3d565b90505b6001600160a01b0382166000908152600e6020526040812060030154611105906064906110ff908590611e3d565b90611e49565b905060006111138383611e55565b6001600160a01b038086166000908152600e60205260409020600481015490549293506111469282169133911685611e61565b6001600160a01b038085166000908152600e602052604090205461116d9116333084611e61565b60005b858110156111b457600061118360095490565b905061138861119160095490565b10156111a1576111a13382611ecc565b50806111ac8161313a565b915050611170565b50505050610bba6001600055565b6000818152600360205260408120546001600160a01b0316806108475760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610995565b6019805461122f90613087565b80601f016020809104026020016040519081016040528092919081815260200182805461125b90613087565b80156112a85780601f1061127d576101008083540402835291602001916112a8565b820191906000526020600020905b81548152906001019060200180831161128b57829003601f168201915b505050505081565b60006001600160a01b03821661131a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610995565b506001600160a01b031660009081526004602052604090205490565b61133e611aa3565b6113486000611ee6565b565b611352611aa3565b6040514790339082156108fc029083906000818181858888f19350505050158015610bba573d6000803e3d6000fd5b60606002805461087790613087565b611398611aa3565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa1580156113df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114039190613274565b9050808211156114555760405162461bcd60e51b815260206004820152601a60248201527f496e73756666696369656e7420746f6b656e2062616c616e63650000000000006044820152606401610995565b610a36833384611f38565b610bba338383611f68565b611473611de4565b601b5460ff16156114bb5760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81c185d5cd95960721b6044820152606401610995565b6000811180156114cc5750600a8111155b6115185760405162461bcd60e51b815260206004820152601f60248201527f45786365656473206d6178696d756d20707572636861736520616d6f756e74006044820152606401610995565b6113888161152560095490565b61152f9190613261565b11156115765760405162461bcd60e51b815260206004820152601660248201527545786365656473206d6178696d756d20737570706c7960501b6044820152606401610995565b336000908152601c602052604081205460ff16156115a25760165461159b9083611e3d565b90506115b2565b6015546115af9083611e3d565b90505b60006115d160646110ff60156002015485611e3d90919063ffffffff16565b905060006115df8383611e55565b9050823410156116315760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610995565b8234111561167157336108fc6116473486611e55565b6040518115909202916000818181858888f1935050505015801561166f573d6000803e3d6000fd5b505b6018546040516001600160a01b039091169083156108fc029084906000818181858888f193505050501580156116ab573d6000803e3d6000fd5b50600b546040516001600160a01b039091169082156108fc029083906000818181858888f193505050501580156116e6573d6000803e3d6000fd5b5060005b8481101561172e5760006116fd60095490565b905061138861170b60095490565b101561171b5761171b3382611ecc565b50806117268161313a565b9150506116ea565b5050505061173c6001600055565b50565b6117493383611bca565b6117655760405162461bcd60e51b8152600401610995906130c1565b61177184848484612036565b50505050565b61177f611aa3565b61178a600f82612069565b50611796601282612069565b506001600160a01b03166000908152600e6020526040812080546001600160a01b031990811682556001820183905560028201839055600382019290925560040180549091169055565b601a805461122f90613087565b6000818152600360205260409020546060906001600160a01b031661186c5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610995565b600061187661207e565b9050600081511161189657604051806020016040528060008152506118c4565b806118a08461208d565b601a6040516020016118b49392919061328d565b6040516020818303038152906040525b9392505050565b6118d3611aa3565b60408051608081018252858152602081018590529081018390526001600160a01b039091166060909101819052601593909355601691909155601755601880546001600160a01b0319169091179055565b61192c611aa3565b601a610bba82826131a1565b611940611aa3565b61194c600f8686612120565b5061195960128685612120565b506040805160a0810182526001600160a01b03968716808252602080830197885282840196875260608301958652938816608083019081526000918252600e90945291909120905181549087166001600160a01b03199182161782559451600182015592516002840155905160038301555160049091018054919093169116179055565b6119e5611aa3565b6001600160a01b038116611a4a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610995565b61173c81611ee6565b60006001600160e01b031982166380ac58cd60e01b1480611a8457506001600160e01b03198216635b5e139f60e01b145b8061084757506301ffc9a760e01b6001600160e01b0319831614610847565b600b546001600160a01b031633146113485760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610995565b6000818152600360205260409020546001600160a01b031661173c5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610995565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611b91826111c2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611bd6836111c2565b9050806001600160a01b0316846001600160a01b03161480611c1d57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b80611c415750836001600160a01b0316611c36846108fa565b6001600160a01b0316145b949350505050565b826001600160a01b0316611c5c826111c2565b6001600160a01b031614611c825760405162461bcd60e51b81526004016109959061332d565b6001600160a01b038216611ce45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610995565b611cf18383836001612136565b826001600160a01b0316611d04826111c2565b6001600160a01b031614611d2a5760405162461bcd60e51b81526004016109959061332d565b600081815260056020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260048552838620805460001901905590871680865283862080546001019055868652600390945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006118c4836001600160a01b03841661226a565b60006118c4836001600160a01b03841661235d565b600260005403611e365760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610995565b6002600055565b60006118c48284613372565b60006118c48284613389565b60006118c482846133ab565b6040516001600160a01b03808516602483015283166044820152606481018290526117719085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526123ac565b610bba82826040518060200160405280600081525061247e565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040516001600160a01b038316602482015260448101829052610a3690849063a9059cbb60e01b90606401611e95565b816001600160a01b0316836001600160a01b031603611fc95760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610995565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612041848484611c49565b61204d848484846124b1565b6117715760405162461bcd60e51b8152600401610995906133be565b60006118c4836001600160a01b0384166125b2565b60606019805461087790613087565b6060600061209a836125cf565b600101905060008167ffffffffffffffff8111156120ba576120ba612d06565b6040519080825280601f01601f1916602001820160405280156120e4576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846120ee57509392505050565b6000611c41846001600160a01b038516846126a7565b60018111156121a55760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b6064820152608401610995565b816001600160a01b038516612201576121fc81600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b612224565b836001600160a01b0316856001600160a01b0316146122245761222485826126c4565b6001600160a01b0384166122405761223b81612761565b612263565b846001600160a01b0316846001600160a01b031614612263576122638482612810565b5050505050565b6000818152600183016020526040812054801561235357600061228e6001836133ab565b85549091506000906122a2906001906133ab565b90508181146123075760008660000182815481106122c2576122c261310e565b90600052602060002001549050808760000184815481106122e5576122e561310e565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061231857612318613410565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610847565b6000915050610847565b60008181526001830160205260408120546123a457508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610847565b506000610847565b6000612401826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166128549092919063ffffffff16565b805190915015610a36578080602001905181019061241f9190613426565b610a365760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610995565b6124888383612863565b61249560008484846124b1565b610a365760405162461bcd60e51b8152600401610995906133be565b60006001600160a01b0384163b156125a757604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906124f5903390899088908890600401613443565b6020604051808303816000875af1925050508015612530575060408051601f3d908101601f1916820190925261252d91810190613480565b60015b61258d573d80801561255e576040519150601f19603f3d011682016040523d82523d6000602084013e612563565b606091505b5080516000036125855760405162461bcd60e51b8152600401610995906133be565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611c41565b506001949350505050565b600081815260028301602052604081208190556118c483836129fc565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061260e5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061263a576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061265857662386f26fc10000830492506010015b6305f5e1008310612670576305f5e100830492506008015b612710831061268457612710830492506004015b60648310612696576064830492506002015b600a83106108475760010192915050565b60008281526002840160205260408120829055611c418484612a08565b600060016126d1846112b0565b6126db91906133ab565b60008381526008602052604090205490915080821461272e576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090612773906001906133ab565b6000838152600a60205260408120546009805493945090928490811061279b5761279b61310e565b9060005260206000200154905080600983815481106127bc576127bc61310e565b6000918252602080832090910192909255828152600a909152604080822084905585825281205560098054806127f4576127f4613410565b6001900381819060005260206000200160009055905550505050565b600061281b836112b0565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6060611c418484600085612a14565b6001600160a01b0382166128b95760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610995565b6000818152600360205260409020546001600160a01b03161561291e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610995565b61292c600083836001612136565b6000818152600360205260409020546001600160a01b0316156129915760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610995565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006118c4838361226a565b60006118c4838361235d565b606082471015612a755760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610995565b600080866001600160a01b03168587604051612a91919061349d565b60006040518083038185875af1925050503d8060008114612ace576040519150601f19603f3d011682016040523d82523d6000602084013e612ad3565b606091505b5091509150612ae487838387612aef565b979650505050505050565b60608315612b5e578251600003612b57576001600160a01b0385163b612b575760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610995565b5081611c41565b611c418383815115612b735781518083602001fd5b8060405162461bcd60e51b81526004016109959190612c3b565b6001600160e01b03198116811461173c57600080fd5b600060208284031215612bb557600080fd5b81356118c481612b8d565b801515811461173c57600080fd5b600060208284031215612be057600080fd5b81356118c481612bc0565b60005b83811015612c06578181015183820152602001612bee565b50506000910152565b60008151808452612c27816020860160208601612beb565b601f01601f19169290920160200192915050565b6020815260006118c46020830184612c0f565b600060208284031215612c6057600080fd5b5035919050565b6001600160a01b038116811461173c57600080fd5b60008060408385031215612c8f57600080fd5b8235612c9a81612c67565b946020939093013593505050565b600060208284031215612cba57600080fd5b81356118c481612c67565b600080600060608486031215612cda57600080fd5b8335612ce581612c67565b92506020840135612cf581612c67565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612d4557612d45612d06565b604052919050565b60006020808385031215612d6057600080fd5b823567ffffffffffffffff80821115612d7857600080fd5b818501915085601f830112612d8c57600080fd5b813581811115612d9e57612d9e612d06565b8060051b9150612daf848301612d1c565b8181529183018401918481019088841115612dc957600080fd5b938501935b83851015612df35784359250612de383612c67565b8282529385019390850190612dce565b98975050505050505050565b6020808252825182820181905260009190848201906040850190845b81811015612e3757835183529284019291840191600101612e1b565b50909695505050505050565b600067ffffffffffffffff831115612e5d57612e5d612d06565b612e70601f8401601f1916602001612d1c565b9050828152838383011115612e8457600080fd5b828260208301376000602084830101529392505050565b600060208284031215612ead57600080fd5b813567ffffffffffffffff811115612ec457600080fd5b8201601f81018413612ed557600080fd5b611c4184823560208401612e43565b60008060408385031215612ef757600080fd5b823591506020830135612f0981612c67565b809150509250929050565b60008060408385031215612f2757600080fd5b8235612f3281612c67565b91506020830135612f0981612bc0565b60008060008060808587031215612f5857600080fd5b8435612f6381612c67565b93506020850135612f7381612c67565b925060408501359150606085013567ffffffffffffffff811115612f9657600080fd5b8501601f81018713612fa757600080fd5b612fb687823560208401612e43565b91505092959194509250565b60008060008060808587031215612fd857600080fd5b8435935060208501359250604085013591506060850135612ff881612c67565b939692955090935050565b6000806040838503121561301657600080fd5b823561302181612c67565b91506020830135612f0981612c67565b600080600080600060a0868803121561304957600080fd5b853561305481612c67565b9450602086013593506040860135925060608601359150608086013561307981612c67565b809150509295509295909350565b600181811c9082168061309b57607f821691505b6020821081036130bb57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161314c5761314c613124565b5060010190565b601f821115610a3657600081815260208120601f850160051c8101602086101561317a5750805b601f850160051c820191505b8181101561319957828155600101613186565b505050505050565b815167ffffffffffffffff8111156131bb576131bb612d06565b6131cf816131c98454613087565b84613153565b602080601f83116001811461320457600084156131ec5750858301515b600019600386901b1c1916600185901b178555613199565b600085815260208120601f198616915b8281101561323357888601518255948401946001909101908401613214565b50858210156132515787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b8082018082111561084757610847613124565b60006020828403121561328657600080fd5b5051919050565b6000845160206132a08285838a01612beb565b8551918401916132b38184848a01612beb565b85549201916000906132c481613087565b600182811680156132dc57600181146132f15761331d565b60ff198416875282151583028701945061331d565b896000528560002060005b84811015613315578154898201529083019087016132fc565b505082870194505b50929a9950505050505050505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b808202811582820484141761084757610847613124565b6000826133a657634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561084757610847613124565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052603160045260246000fd5b60006020828403121561343857600080fd5b81516118c481612bc0565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061347690830184612c0f565b9695505050505050565b60006020828403121561349257600080fd5b81516118c481612b8d565b600082516134af818460208701612beb565b919091019291505056fea2646970667358221220e83d3eeb98962efff71d7779e8a5c0df9c4621f82ce4d0d4d7307708cc4892a064736f6c63430008120033

Deployed ByteCode Sourcemap

116083:7757:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;106192:224;;;;;;;;;;-1:-1:-1;106192:224:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;106192:224:0;;;;;;;;120056:75;;;;;;;;;;-1:-1:-1;120056:75:0;;;;;:::i;:::-;;:::i;:::-;;89899:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;91411:171::-;;;;;;;;;;-1:-1:-1;91411:171:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;2066:32:1;;;2048:51;;2036:2;2021:18;91411:171:0;1902:203:1;90929:416:0;;;;;;;;;;-1:-1:-1;90929:416:0;;;;;:::i;:::-;;:::i;106832:113::-;;;;;;;;;;-1:-1:-1;106920:10:0;:17;106832:113;;;2712:25:1;;;2700:2;2685:18;106832:113:0;2566:177:1;119247:134:0;;;;;;;;;;-1:-1:-1;119247:134:0;;;;;:::i;:::-;;:::i;:::-;;;;;;3261:13:1;;-1:-1:-1;;;;;3257:22:1;;;3239:41;;3336:4;3324:17;;;3318:24;3296:20;;;3289:54;3399:4;3387:17;;;3381:24;3359:20;;;3352:54;3462:4;3450:17;;;3444:24;3422:20;;;3415:54;3529:4;3517:17;;;3511:24;3507:33;3485:20;;;3478:63;;;;3188:3;3173:19;;3000:547;117209:42:0;;;;;;;;;;;;117249:2;117209:42;;92111:335;;;;;;;;;;-1:-1:-1;92111:335:0;;;;;:::i;:::-;;:::i;120392:259::-;;;;;;;;;;-1:-1:-1;120392:259:0;;;;;:::i;:::-;;:::i;120139:245::-;;;;;;;;;;-1:-1:-1;120139:245:0;;;;;:::i;:::-;;:::i;106500:256::-;;;;;;;;;;-1:-1:-1;106500:256:0;;;;;:::i;:::-;;:::i;120659:115::-;;;;;;;;;;-1:-1:-1;120659:115:0;;;;;:::i;:::-;-1:-1:-1;;;;;120745:21:0;120721:4;120745:21;;;:11;:21;;;;;;;;;120659:115;92517:185;;;;;;;;;;-1:-1:-1;92517:185:0;;;;;:::i;:::-;;:::i;117540:390::-;;;;;;;;;;-1:-1:-1;117540:390:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;107022:233::-;;;;;;;;;;-1:-1:-1;107022:233:0;;;;;:::i;:::-;;:::i;119804:106::-;;;;;;;;;;-1:-1:-1;119804:106:0;;;;;:::i;:::-;;:::i;117258:26::-;;;;;;;;;;-1:-1:-1;117258:26:0;;;;;;;;120782:1377;;;;;;;;;;-1:-1:-1;120782:1377:0;;;;;:::i;:::-;;:::i;89609:223::-;;;;;;;;;;-1:-1:-1;89609:223:0;;;;;:::i;:::-;;:::i;117090:21::-;;;;;;;;;;;;;:::i;89340:207::-;;;;;;;;;;-1:-1:-1;89340:207:0;;;;;:::i;:::-;;:::i;114010:103::-;;;;;;;;;;;;;:::i;123397:148::-;;;;;;;;;;;;;:::i;113362:87::-;;;;;;;;;;-1:-1:-1;113435:6:0;;-1:-1:-1;;;;;113435:6:0;113362:87;;90068:104;;;;;;;;;;;;;:::i;123553:282::-;;;;;;;;;;-1:-1:-1;123553:282:0;;;;;:::i;:::-;;:::i;91654:155::-;;;;;;;;;;-1:-1:-1;91654:155:0;;;;;:::i;:::-;;:::i;122167:1222::-;;;;;;:::i;:::-;;:::i;117027:22::-;;;;;;;;;;-1:-1:-1;117027:22:0;;;;;;;;;;;;;-1:-1:-1;;;;;117027:22:0;;;;;;;8245:25:1;;;8301:2;8286:18;;8279:34;;;;8329:18;;;8322:34;-1:-1:-1;;;;;8392:32:1;8387:2;8372:18;;8365:60;8232:3;8217:19;117027:22:0;7998:433:1;92773:322:0;;;;;;;;;;-1:-1:-1;92773:322:0;;;;;:::i;:::-;;:::i;119022:217::-;;;;;;;;;;-1:-1:-1;119022:217:0;;;;;:::i;:::-;;:::i;117118:37::-;;;;;;;;;;;;;:::i;117938:418::-;;;;;;;;;;-1:-1:-1;117938:418:0;;;;;:::i;:::-;;:::i;119389:407::-;;;;;;;;;;-1:-1:-1;119389:407:0;;;;;:::i;:::-;;:::i;117162:40::-;;;;;;;;;;;;117198:4;117162:40;;117291:43;;;;;;;;;;-1:-1:-1;117291:43:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;119918:130;;;;;;;;;;-1:-1:-1;119918:130:0;;;;;:::i;:::-;;:::i;91880:164::-;;;;;;;;;;-1:-1:-1;91880:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;92001:25:0;;;91977:4;92001:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;91880:164;118371:639;;;;;;;;;;-1:-1:-1;118371:639:0;;;;;:::i;:::-;;:::i;114268:201::-;;;;;;;;;;-1:-1:-1;114268:201:0;;;;;:::i;:::-;;:::i;106192:224::-;106294:4;-1:-1:-1;;;;;;106318:50:0;;-1:-1:-1;;;106318:50:0;;:90;;;106372:36;106396:11;106372:23;:36::i;:::-;106311:97;106192:224;-1:-1:-1;;106192:224:0:o;120056:75::-;113248:13;:11;:13::i;:::-;120111:6:::1;:12:::0;;-1:-1:-1;;120111:12:0::1;::::0;::::1;;::::0;;;::::1;::::0;;120056:75::o;89899:100::-;89953:13;89986:5;89979:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;89899:100;:::o;91411:171::-;91487:7;91507:23;91522:7;91507:14;:23::i;:::-;-1:-1:-1;91550:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;91550:24:0;;91411:171::o;90929:416::-;91010:13;91026:23;91041:7;91026:14;:23::i;:::-;91010:39;;91074:5;-1:-1:-1;;;;;91068:11:0;:2;-1:-1:-1;;;;;91068:11:0;;91060:57;;;;-1:-1:-1;;;91060:57:0;;11562:2:1;91060:57:0;;;11544:21:1;11601:2;11581:18;;;11574:30;11640:34;11620:18;;;11613:62;-1:-1:-1;;;11691:18:1;;;11684:31;11732:19;;91060:57:0;;;;;;;;;87430:10;-1:-1:-1;;;;;91152:21:0;;;;:62;;-1:-1:-1;91177:37:0;91194:5;87430:10;91880:164;:::i;91177:37::-;91130:173;;;;-1:-1:-1;;;91130:173:0;;11964:2:1;91130:173:0;;;11946:21:1;12003:2;11983:18;;;11976:30;12042:34;12022:18;;;12015:62;12113:31;12093:18;;;12086:59;12162:19;;91130:173:0;11762:425:1;91130:173:0;91316:21;91325:2;91329:7;91316:8;:21::i;:::-;90999:346;90929:416;;:::o;119247:134::-;119313:16;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;119313:16:0;-1:-1:-1;;;;;;119349:24:0;;;;;;;:9;:24;;;;;;;;;119342:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;119247:134::o;92111:335::-;92306:41;87430:10;92339:7;92306:18;:41::i;:::-;92298:99;;;;-1:-1:-1;;;92298:99:0;;;;;;;:::i;:::-;92410:28;92420:4;92426:2;92430:7;92410:9;:28::i;120392:259::-;113248:13;:11;:13::i;:::-;120494:9:::1;120489:155;120513:10;:17;120509:1;:21;120489:155;;;120581:5;120552:11;:26;120564:10;120575:1;120564:13;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;120552:26:0::1;-1:-1:-1::0;;;;;120552:26:0::1;;;;;;;;;;;;;:34;;;;;;;;;;;;;;;;;;120601:31;120618:10;120629:1;120618:13;;;;;;;;:::i;:::-;;;;;;;120601:9;:16;;:31;;;;:::i;:::-;-1:-1:-1::0;120532:3:0;::::1;::::0;::::1;:::i;:::-;;;;120489:155;;;;120392:259:::0;:::o;120139:245::-;113248:13;:11;:13::i;:::-;120231:9:::1;120226:151;120250:10;:17;120246:1;:21;120226:151;;;120318:4;120289:11;:26;120301:10;120312:1;120301:13;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;120289:26:0::1;-1:-1:-1::0;;;;;120289:26:0::1;;;;;;;;;;;;;:33;;;;;;;;;;;;;;;;;;120337:28;120351:10;120362:1;120351:13;;;;;;;;:::i;:::-;;;;;;;120337:9;:13;;:28;;;;:::i;:::-;-1:-1:-1::0;120269:3:0;::::1;::::0;::::1;:::i;:::-;;;;120226:151;;106500:256:::0;106597:7;106633:23;106650:5;106633:16;:23::i;:::-;106625:5;:31;106617:87;;;;-1:-1:-1;;;106617:87:0;;13212:2:1;106617:87:0;;;13194:21:1;13251:2;13231:18;;;13224:30;13290:34;13270:18;;;13263:62;-1:-1:-1;;;13341:18:1;;;13334:41;13392:19;;106617:87:0;13010:407:1;106617:87:0;-1:-1:-1;;;;;;106722:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;106500:256::o;92517:185::-;92655:39;92672:4;92678:2;92682:7;92655:39;;;;;;;;;;;;:16;:39::i;117540:390::-;117627:16;117661:23;117687:17;117697:6;117687:9;:17::i;:::-;117661:43;;117715:25;117757:15;117743:30;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;117743:30:0;;117715:58;;117789:9;117784:113;117804:15;117800:1;:19;117784:113;;;117855:30;117875:6;117883:1;117855:19;:30::i;:::-;117841:8;117850:1;117841:11;;;;;;;;:::i;:::-;;;;;;;;;;:44;117821:3;;;;:::i;:::-;;;;117784:113;;;-1:-1:-1;117914:8:0;117540:390;-1:-1:-1;;;117540:390:0:o;107022:233::-;107097:7;107133:30;106920:10;:17;;106832:113;107133:30;107125:5;:38;107117:95;;;;-1:-1:-1;;;107117:95:0;;13624:2:1;107117:95:0;;;13606:21:1;13663:2;13643:18;;;13636:30;13702:34;13682:18;;;13675:62;-1:-1:-1;;;13753:18:1;;;13746:42;13805:19;;107117:95:0;13422:408:1;107117:95:0;107230:10;107241:5;107230:17;;;;;;;;:::i;:::-;;;;;;;;;107223:24;;107022:233;;;:::o;119804:106::-;113248:13;:11;:13::i;:::-;119881:7:::1;:21;119891:11:::0;119881:7;:21:::1;:::i;120782:1377::-:0;41698:21;:19;:21::i;:::-;120890:6:::1;::::0;::::1;;120889:7;120881:38;;;::::0;-1:-1:-1;;;120881:38:0;;16241:2:1;120881:38:0::1;::::0;::::1;16223:21:1::0;16280:2;16260:18;;;16253:30;-1:-1:-1;;;16299:18:1;;;16292:48;16357:18;;120881:38:0::1;16039:342:1::0;120881:38:0::1;120956:1;120938:15;:19;:55;;;;;117249:2;120961:15;:32;;120938:55;120930:99;;;::::0;-1:-1:-1;;;120930:99:0;;16588:2:1;120930:99:0::1;::::0;::::1;16570:21:1::0;16627:2;16607:18;;;16600:30;16666:33;16646:18;;;16639:61;16717:18;;120930:99:0::1;16386:355:1::0;120930:99:0::1;117198:4;121064:15;121048:13;106920:10:::0;:17;;106832:113;121048:13:::1;:31;;;;:::i;:::-;:44;;121040:79;;;::::0;-1:-1:-1;;;121040:79:0;;17078:2:1;121040:79:0::1;::::0;::::1;17060:21:1::0;17117:2;17097:18;;;17090:30;-1:-1:-1;;;17136:18:1;;;17129:52;17198:18;;121040:79:0::1;16876:346:1::0;121040:79:0::1;121173:10;121132:12;120745:21:::0;;;:11;:21;;;;;;;;121155:394:::1;;;-1:-1:-1::0;;;;;121208:17:0;::::1;;::::0;;;:9:::1;:17;::::0;;;;:36:::1;;::::0;:57:::1;::::0;121249:15;121208:40:::1;:57::i;:::-;121201:64;;121155:394;;;-1:-1:-1::0;;;;;121378:17:0;::::1;;::::0;;;:9:::1;:17;::::0;;;;:33:::1;;::::0;:54:::1;::::0;121416:15;121378:37:::1;:54::i;:::-;-1:-1:-1::0;;;;;121306:17:0;;::::1;;::::0;;;:9:::1;:17;::::0;;;;;;:31;:68;;-1:-1:-1;;;121306:68:0;;121348:10:::1;121306:68;::::0;::::1;17439:34:1::0;121368:4:0::1;17489:18:1::0;;;17482:43;121306:31:0;::::1;::::0;:41:::1;::::0;17374:18:1;;121306:68:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:126;;121298:163;;;::::0;-1:-1:-1;;;121298:163:0;;17927:2:1;121298:163:0::1;::::0;::::1;17909:21:1::0;17966:2;17946:18;;;17939:30;18005:26;17985:18;;;17978:54;18049:18;;121298:163:0::1;17725:348:1::0;121298:163:0::1;-1:-1:-1::0;;;;;121483:17:0;::::1;;::::0;;;:9:::1;:17;::::0;;;;:33:::1;;::::0;:54:::1;::::0;121521:15;121483:37:::1;:54::i;:::-;121476:61;;121155:394;-1:-1:-1::0;;;;;121594:17:0;::::1;121561:21;121594:17:::0;;;:9:::1;:17;::::0;;;;:40:::1;;::::0;121585:59:::1;::::0;121640:3:::1;::::0;121585:50:::1;::::0;:4;;:8:::1;:50::i;:::-;:54:::0;::::1;:59::i;:::-;121561:83:::0;-1:-1:-1;121655:19:0::1;121677:23;:4:::0;121561:83;121677:8:::1;:23::i;:::-;-1:-1:-1::0;;;;;121774:17:0;;::::1;;::::0;;;:9:::1;:17;::::0;;;;:36:::1;::::0;::::1;::::0;121713:31;;121655:45;;-1:-1:-1;121713:113:0::1;::::0;:31;::::1;::::0;121762:10:::1;::::0;121774:36:::1;121812:13:::0;121713:48:::1;:113::i;:::-;-1:-1:-1::0;;;;;121837:17:0;;::::1;;::::0;;;:9:::1;:17;::::0;;;;:31;:88:::1;::::0;:31:::1;121886:10;121906:4;121913:11:::0;121837:48:::1;:88::i;:::-;121943:9;121938:214;121962:15;121958:1;:19;121938:214;;;121999:15;122017:13;106920:10:::0;:17;;106832:113;122017:13:::1;121999:31;;117198:4;122049:13;106920:10:::0;:17;;106832:113;122049:13:::1;:25;122045:96;;;122095:30;122105:10;122117:7;122095:9;:30::i;:::-;-1:-1:-1::0;121979:3:0;::::1;::::0;::::1;:::i;:::-;;;;121938:214;;;;120870:1289;;;41742:20:::0;41136:1;42262:7;:22;42079:213;89609:223;89681:7;94496:16;;;:7;:16;;;;;;-1:-1:-1;;;;;94496:16:0;;89745:56;;;;-1:-1:-1;;;89745:56:0;;18280:2:1;89745:56:0;;;18262:21:1;18319:2;18299:18;;;18292:30;-1:-1:-1;;;18338:18:1;;;18331:54;18402:18;;89745:56:0;18078:348:1;117090:21:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;89340:207::-;89412:7;-1:-1:-1;;;;;89440:19:0;;89432:73;;;;-1:-1:-1;;;89432:73:0;;18633:2:1;89432:73:0;;;18615:21:1;18672:2;18652:18;;;18645:30;18711:34;18691:18;;;18684:62;-1:-1:-1;;;18762:18:1;;;18755:39;18811:19;;89432:73:0;18431:405:1;89432:73:0;-1:-1:-1;;;;;;89523:16:0;;;;;:9;:16;;;;;;;89340:207::o;114010:103::-;113248:13;:11;:13::i;:::-;114075:30:::1;114102:1;114075:18;:30::i;:::-;114010:103::o:0;123397:148::-;113248:13;:11;:13::i;:::-;123500:37:::1;::::0;123468:21:::1;::::0;123508:10:::1;::::0;123500:37;::::1;;;::::0;123468:21;;123450:15:::1;123500:37:::0;123450:15;123500:37;123468:21;123508:10;123500:37;::::1;;;;;;;;;;;;;::::0;::::1;;;;90068:104:::0;90124:13;90157:7;90150:14;;;;;:::i;123553:282::-;113248:13;:11;:13::i;:::-;123661:31:::1;::::0;-1:-1:-1;;;123661:31:0;;123686:4:::1;123661:31;::::0;::::1;2048:51:1::0;123638:20:0::1;::::0;-1:-1:-1;;;;;123661:16:0;::::1;::::0;::::1;::::0;2021:18:1;;123661:31:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;123638:54;;123722:12;123711:7;:23;;123703:62;;;::::0;-1:-1:-1;;;123703:62:0;;19043:2:1;123703:62:0::1;::::0;::::1;19025:21:1::0;19082:2;19062:18;;;19055:30;19121:28;19101:18;;;19094:56;19167:18;;123703:62:0::1;18841:350:1::0;123703:62:0::1;123776:51;123799:6;123807:10;123819:7;123776:22;:51::i;91654:155::-:0;91749:52;87430:10;91782:8;91792;91749:18;:52::i;122167:1222::-;41698:21;:19;:21::i;:::-;122265:6:::1;::::0;::::1;;122264:7;122256:38;;;::::0;-1:-1:-1;;;122256:38:0;;16241:2:1;122256:38:0::1;::::0;::::1;16223:21:1::0;16280:2;16260:18;;;16253:30;-1:-1:-1;;;16299:18:1;;;16292:48;16357:18;;122256:38:0::1;16039:342:1::0;122256:38:0::1;122331:1;122313:15;:19;:55;;;;;117249:2;122336:15;:32;;122313:55;122305:99;;;::::0;-1:-1:-1;;;122305:99:0;;16588:2:1;122305:99:0::1;::::0;::::1;16570:21:1::0;16627:2;16607:18;;;16600:30;16666:33;16646:18;;;16639:61;16717:18;;122305:99:0::1;16386:355:1::0;122305:99:0::1;117198:4;122439:15;122423:13;106920:10:::0;:17;;106832:113;122423:13:::1;:31;;;;:::i;:::-;:44;;122415:79;;;::::0;-1:-1:-1;;;122415:79:0;;17078:2:1;122415:79:0::1;::::0;::::1;17060:21:1::0;17117:2;17097:18;;;17090:30;-1:-1:-1;;;17136:18:1;;;17129:52;17198:18;;122415:79:0::1;16876:346:1::0;122415:79:0::1;122548:10;122507:12;120745:21:::0;;;:11;:21;;;;;;;;122530:192:::1;;;122583:24:::0;;:45:::1;::::0;122612:15;122583:28:::1;:45::i;:::-;122576:52;;122530:192;;;122668:7;:21:::0;:42:::1;::::0;122694:15;122668:25:::1;:42::i;:::-;122661:49;;122530:192;122734:21;122758:47;122801:3;122758:38;122767:7;:28;;;122758:4;:8;;:38;;;;:::i;:47::-;122734:71:::0;-1:-1:-1;122816:19:0::1;122838:23;:4:::0;122734:71;122838:8:::1;:23::i;:::-;122816:45;;122895:4;122882:9;:17;;122874:61;;;::::0;-1:-1:-1;;;122874:61:0;;19398:2:1;122874:61:0::1;::::0;::::1;19380:21:1::0;19437:2;19417:18;;;19410:30;19476:33;19456:18;;;19449:61;19527:18;;122874:61:0::1;19196:355:1::0;122874:61:0::1;122964:4;122952:9;:16;122948:98;;;122993:10;122985:49;123014:19;:9;123028:4:::0;123014:13:::1;:19::i;:::-;122985:49;::::0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;122948:98;123058:24:::0;;:48:::1;::::0;-1:-1:-1;;;;;123058:24:0;;::::1;::::0;:48;::::1;;;::::0;123092:13;;123058:24:::1;:48:::0;:24;:48;123092:13;123058:24;:48;::::1;;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;113435:6:0;;123117:38:::1;::::0;-1:-1:-1;;;;;113435:6:0;;;;123117:38;::::1;;;::::0;123143:11;;123117:38:::1;::::0;;;123143:11;113435:6;123117:38;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;123173:9;123168:214;123192:15;123188:1;:19;123168:214;;;123229:15;123247:13;106920:10:::0;:17;;106832:113;123247:13:::1;123229:31;;117198:4;123279:13;106920:10:::0;:17;;106832:113;123279:13:::1;:25;123275:96;;;123325:30;123335:10;123347:7;123325:9;:30::i;:::-;-1:-1:-1::0;123209:3:0;::::1;::::0;::::1;:::i;:::-;;;;123168:214;;;;122245:1144;;;41742:20:::0;41136:1;42262:7;:22;42079:213;41742:20;122167:1222;:::o;92773:322::-;92947:41;87430:10;92980:7;92947:18;:41::i;:::-;92939:99;;;;-1:-1:-1;;;92939:99:0;;;;;;;:::i;:::-;93049:38;93063:4;93069:2;93073:7;93082:4;93049:13;:38::i;:::-;92773:322;;;;:::o;119022:217::-;113248:13;:11;:13::i;:::-;119094:38:::1;:11;119121:9:::0;119094:18:::1;:38::i;:::-;-1:-1:-1::0;119143:41:0::1;:14;119173:9:::0;119143:21:::1;:41::i;:::-;-1:-1:-1::0;;;;;;119202:29:0::1;;::::0;;;:9:::1;:29;::::0;;;;119195:36;;-1:-1:-1;;;;;;119195:36:0;;::::1;::::0;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;;::::1;;::::0;;;;::::1;::::0;;119022:217::o;117118:37::-;;;;;;;:::i;117938:418::-;94898:4;94496:16;;;:7;:16;;;;;;118056:13;;-1:-1:-1;;;;;94496:16:0;118087:76;;;;-1:-1:-1;;;118087:76:0;;19758:2:1;118087:76:0;;;19740:21:1;19797:2;19777:18;;;19770:30;19836:34;19816:18;;;19809:62;-1:-1:-1;;;19887:18:1;;;19880:45;19942:19;;118087:76:0;19556:411:1;118087:76:0;118174:28;118205:10;:8;:10::i;:::-;118174:41;;118264:1;118239:14;118233:28;:32;:115;;;;;;;;;;;;;;;;;118292:14;118308:18;:7;:16;:18::i;:::-;118328:13;118275:67;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;118233:115;118226:122;117938:418;-1:-1:-1;;;117938:418:0:o;119389:407::-;113248:13;:11;:13::i;:::-;119566:222:::1;::::0;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;;;;;119566:222:0;;::::1;::::0;;;;;;;119556:7:::1;:232:::0;;;;;;;;;;;;;;-1:-1:-1;;;;;;119556:232:0::1;::::0;;::::1;::::0;;119389:407::o;119918:130::-;113248:13;:11;:13::i;:::-;120007::::1;:33;120023:17:::0;120007:13;:33:::1;:::i;118371:639::-:0;113248:13;:11;:13::i;:::-;118557:53:::1;:11;118581:9:::0;118593:16;118557:15:::1;:53::i;:::-;-1:-1:-1::0;118621:59:0::1;:14;118648:9:::0;118660:19;118621:18:::1;:59::i;:::-;-1:-1:-1::0;118723:279:0::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;118723:279:0;;::::1;::::0;;;::::1;::::0;;::::1;::::0;;;;;;;;;;;;;;;;;::::1;::::0;;;;;;-1:-1:-1;118691:29:0;;;:9:::1;:29:::0;;;;;;;:311;;;;;;::::1;-1:-1:-1::0;;;;;;118691:311:0;;::::1;;::::0;;;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;::::1;::::0;;::::1;::::0;;;;;::::1;::::0;::::1;;::::0;;118371:639::o;114268:201::-;113248:13;:11;:13::i;:::-;-1:-1:-1;;;;;114357:22:0;::::1;114349:73;;;::::0;-1:-1:-1;;;114349:73:0;;21435:2:1;114349:73:0::1;::::0;::::1;21417:21:1::0;21474:2;21454:18;;;21447:30;21513:34;21493:18;;;21486:62;-1:-1:-1;;;21564:18:1;;;21557:36;21610:19;;114349:73:0::1;21233:402:1::0;114349:73:0::1;114433:28;114452:8;114433:18;:28::i;88971:305::-:0;89073:4;-1:-1:-1;;;;;;89110:40:0;;-1:-1:-1;;;89110:40:0;;:105;;-1:-1:-1;;;;;;;89167:48:0;;-1:-1:-1;;;89167:48:0;89110:105;:158;;;-1:-1:-1;;;;;;;;;;60443:40:0;;;89232:36;60334:157;113527:132;113435:6;;-1:-1:-1;;;;;113435:6:0;87430:10;113591:23;113583:68;;;;-1:-1:-1;;;113583:68:0;;21842:2:1;113583:68:0;;;21824:21:1;;;21861:18;;;21854:30;21920:34;21900:18;;;21893:62;21972:18;;113583:68:0;21640:356:1;101230:135:0;94898:4;94496:16;;;:7;:16;;;;;;-1:-1:-1;;;;;94496:16:0;101304:53;;;;-1:-1:-1;;;101304:53:0;;18280:2:1;101304:53:0;;;18262:21:1;18319:2;18299:18;;;18292:30;-1:-1:-1;;;18338:18:1;;;18331:54;18402:18;;101304:53:0;18078:348:1;100509:174:0;100584:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;100584:29:0;-1:-1:-1;;;;;100584:29:0;;;;;;;;:24;;100638:23;100584:24;100638:14;:23::i;:::-;-1:-1:-1;;;;;100629:46:0;;;;;;;;;;;100509:174;;:::o;95128:264::-;95221:4;95238:13;95254:23;95269:7;95254:14;:23::i;:::-;95238:39;;95307:5;-1:-1:-1;;;;;95296:16:0;:7;-1:-1:-1;;;;;95296:16:0;;:52;;;-1:-1:-1;;;;;;92001:25:0;;;91977:4;92001:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;95316:32;95296:87;;;;95376:7;-1:-1:-1;;;;;95352:31:0;:20;95364:7;95352:11;:20::i;:::-;-1:-1:-1;;;;;95352:31:0;;95296:87;95288:96;95128:264;-1:-1:-1;;;;95128:264:0:o;99127:1263::-;99286:4;-1:-1:-1;;;;;99259:31:0;:23;99274:7;99259:14;:23::i;:::-;-1:-1:-1;;;;;99259:31:0;;99251:81;;;;-1:-1:-1;;;99251:81:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;99351:16:0;;99343:65;;;;-1:-1:-1;;;99343:65:0;;22609:2:1;99343:65:0;;;22591:21:1;22648:2;22628:18;;;22621:30;22687:34;22667:18;;;22660:62;-1:-1:-1;;;22738:18:1;;;22731:34;22782:19;;99343:65:0;22407:400:1;99343:65:0;99421:42;99442:4;99448:2;99452:7;99461:1;99421:20;:42::i;:::-;99593:4;-1:-1:-1;;;;;99566:31:0;:23;99581:7;99566:14;:23::i;:::-;-1:-1:-1;;;;;99566:31:0;;99558:81;;;;-1:-1:-1;;;99558:81:0;;;;;;;:::i;:::-;99711:24;;;;:15;:24;;;;;;;;99704:31;;-1:-1:-1;;;;;;99704:31:0;;;;;;-1:-1:-1;;;;;100187:15:0;;;;;;:9;:15;;;;;:20;;-1:-1:-1;;100187:20:0;;;100222:13;;;;;;;;;:18;;99704:31;100222:18;;;100262:16;;;:7;:16;;;;;;:21;;;;;;;;;;100301:27;;99727:7;;100301:27;;;90999:346;90929:416;;:::o;9886:158::-;9959:4;9983:53;9991:3;-1:-1:-1;;;;;10011:23:0;;9983:7;:53::i;9558:152::-;9628:4;9652:50;9657:3;-1:-1:-1;;;;;9677:23:0;;9652:4;:50::i;41778:293::-;41180:1;41912:7;;:19;41904:63;;;;-1:-1:-1;;;41904:63:0;;23014:2:1;41904:63:0;;;22996:21:1;23053:2;23033:18;;;23026:30;23092:33;23072:18;;;23065:61;23143:18;;41904:63:0;22812:355:1;41904:63:0;41180:1;42045:7;:18;41778:293::o;35926:98::-;35984:7;36011:5;36015:1;36011;:5;:::i;36325:98::-;36383:7;36410:5;36414:1;36410;:5;:::i;35569:98::-;35627:7;35654:5;35658:1;35654;:5;:::i;83100:248::-;83271:68;;-1:-1:-1;;;;;24090:15:1;;;83271:68:0;;;24072:34:1;24142:15;;24122:18;;;24115:43;24174:18;;;24167:34;;;83244:96:0;;83264:5;;-1:-1:-1;;;83294:27:0;24007:18:1;;83271:68:0;;;;-1:-1:-1;;83271:68:0;;;;;;;;;;;;;;-1:-1:-1;;;;;83271:68:0;-1:-1:-1;;;;;;83271:68:0;;;;;;;;;;83244:19;:96::i;95734:110::-;95810:26;95820:2;95824:7;95810:26;;;;;;;;;;;;:9;:26::i;114629:191::-;114722:6;;;-1:-1:-1;;;;;114739:17:0;;;-1:-1:-1;;;;;;114739:17:0;;;;;;;114772:40;;114722:6;;;114739:17;114722:6;;114772:40;;114703:16;;114772:40;114692:128;114629:191;:::o;82881:211::-;83025:58;;-1:-1:-1;;;;;24404:32:1;;83025:58:0;;;24386:51:1;24453:18;;;24446:34;;;82998:86:0;;83018:5;;-1:-1:-1;;;83048:23:0;24359:18:1;;83025:58:0;24212:274:1;100826:315:0;100981:8;-1:-1:-1;;;;;100972:17:0;:5;-1:-1:-1;;;;;100972:17:0;;100964:55;;;;-1:-1:-1;;;100964:55:0;;24693:2:1;100964:55:0;;;24675:21:1;24732:2;24712:18;;;24705:30;24771:27;24751:18;;;24744:55;24816:18;;100964:55:0;24491:349:1;100964:55:0;-1:-1:-1;;;;;101030:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;101030:46:0;;;;;;;;;;101092:41;;540::1;;;101092::0;;513:18:1;101092:41:0;;;;;;;100826:315;;;:::o;93976:313::-;94132:28;94142:4;94148:2;94152:7;94132:9;:28::i;:::-;94179:47;94202:4;94208:2;94212:7;94221:4;94179:22;:47::i;:::-;94171:110;;;;-1:-1:-1;;;94171:110:0;;;;;;;:::i;26858:159::-;26935:4;26959:50;26966:3;-1:-1:-1;;;;;26986:21:0;;26959:6;:50::i;117424:108::-;117484:13;117517:7;117510:14;;;;;:::i;55604:716::-;55660:13;55711:14;55728:17;55739:5;55728:10;:17::i;:::-;55748:1;55728:21;55711:38;;55764:20;55798:6;55787:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;55787:18:0;-1:-1:-1;55764:41:0;-1:-1:-1;55929:28:0;;;55945:2;55929:28;55986:288;-1:-1:-1;;56018:5:0;-1:-1:-1;;;56155:2:0;56144:14;;56139:30;56018:5;56126:44;56216:2;56207:11;;;-1:-1:-1;56237:21:0;55986:288;56237:21;-1:-1:-1;56295:6:0;55604:716;-1:-1:-1;;;55604:716:0:o;26474:218::-;26597:4;26621:63;26625:3;-1:-1:-1;;;;;26645:21:0;;26677:5;26621:3;:63::i;107329:915::-;107596:1;107584:9;:13;107580:222;;;107727:63;;-1:-1:-1;;;107727:63:0;;25466:2:1;107727:63:0;;;25448:21:1;25505:2;25485:18;;;25478:30;25544:34;25524:18;;;25517:62;-1:-1:-1;;;25595:18:1;;;25588:51;25656:19;;107727:63:0;25264:417:1;107580:222:0;107832:12;-1:-1:-1;;;;;107861:18:0;;107857:187;;107896:40;107928:7;109071:10;:17;;109044:24;;;;:15;:24;;;;;:44;;;109099:24;;;;;;;;;;;;108967:164;107896:40;107857:187;;;107966:2;-1:-1:-1;;;;;107958:10:0;:4;-1:-1:-1;;;;;107958:10:0;;107954:90;;107985:47;108018:4;108024:7;107985:32;:47::i;:::-;-1:-1:-1;;;;;108058:16:0;;108054:183;;108091:45;108128:7;108091:36;:45::i;:::-;108054:183;;;108164:4;-1:-1:-1;;;;;108158:10:0;:2;-1:-1:-1;;;;;108158:10:0;;108154:83;;108185:40;108213:2;108217:7;108185:27;:40::i;:::-;107495:749;107329:915;;;;:::o;3879:1420::-;3945:4;4084:19;;;:12;;;:19;;;;;;4120:15;;4116:1176;;4495:21;4519:14;4532:1;4519:10;:14;:::i;:::-;4568:18;;4495:38;;-1:-1:-1;4548:17:0;;4568:22;;4589:1;;4568:22;:::i;:::-;4548:42;;4624:13;4611:9;:26;4607:405;;4658:17;4678:3;:11;;4690:9;4678:22;;;;;;;;:::i;:::-;;;;;;;;;4658:42;;4832:9;4803:3;:11;;4815:13;4803:26;;;;;;;;:::i;:::-;;;;;;;;;;;;:38;;;;4917:23;;;:12;;;:23;;;;;:36;;;4607:405;5093:17;;:3;;:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;5188:3;:12;;:19;5201:5;5188:19;;;;;;;;;;;5181:26;;;5231:4;5224:11;;;;;;;4116:1176;5275:5;5268:12;;;;;3289:414;3352:4;5482:19;;;:12;;;:19;;;;;;3369:327;;-1:-1:-1;3412:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;3595:18;;3573:19;;;:12;;;:19;;;;;;:40;;;;3628:11;;3369:327;-1:-1:-1;3679:5:0;3672:12;;85948:716;86372:23;86398:69;86426:4;86398:69;;;;;;;;;;;;;;;;;86406:5;-1:-1:-1;;;;;86398:27:0;;;:69;;;;;:::i;:::-;86482:17;;86372:95;;-1:-1:-1;86482:21:0;86478:179;;86579:10;86568:30;;;;;;;;;;;;:::i;:::-;86560:85;;;;-1:-1:-1;;;86560:85:0;;26270:2:1;86560:85:0;;;26252:21:1;26309:2;26289:18;;;26282:30;26348:34;26328:18;;;26321:62;-1:-1:-1;;;26399:18:1;;;26392:40;26449:19;;86560:85:0;26068:406:1;96071:319:0;96200:18;96206:2;96210:7;96200:5;:18::i;:::-;96251:53;96282:1;96286:2;96290:7;96299:4;96251:22;:53::i;:::-;96229:153;;;;-1:-1:-1;;;96229:153:0;;;;;;;:::i;101929:853::-;102083:4;-1:-1:-1;;;;;102104:13:0;;69023:19;:23;102100:675;;102140:71;;-1:-1:-1;;;102140:71:0;;-1:-1:-1;;;;;102140:36:0;;;;;:71;;87430:10;;102191:4;;102197:7;;102206:4;;102140:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;102140:71:0;;;;;;;;-1:-1:-1;;102140:71:0;;;;;;;;;;;;:::i;:::-;;;102136:584;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;102381:6;:13;102398:1;102381:18;102377:328;;102424:60;;-1:-1:-1;;;102424:60:0;;;;;;;:::i;102377:328::-;102655:6;102649:13;102640:6;102636:2;102632:15;102625:38;102136:584;-1:-1:-1;;;;;;102262:51:0;-1:-1:-1;;;102262:51:0;;-1:-1:-1;102255:58:0;;102100:675;-1:-1:-1;102759:4:0;101929:853;;;;;;:::o;17350:167::-;17430:4;17454:16;;;:11;;;:16;;;;;17447:23;;;17488:21;17454:3;17466;17488:16;:21::i;52470:922::-;52523:7;;-1:-1:-1;;;52601:15:0;;52597:102;;-1:-1:-1;;;52637:15:0;;;-1:-1:-1;52681:2:0;52671:12;52597:102;52726:6;52717:5;:15;52713:102;;52762:6;52753:15;;;-1:-1:-1;52797:2:0;52787:12;52713:102;52842:6;52833:5;:15;52829:102;;52878:6;52869:15;;;-1:-1:-1;52913:2:0;52903:12;52829:102;52958:5;52949;:14;52945:99;;52993:5;52984:14;;;-1:-1:-1;53027:1:0;53017:11;52945:99;53071:5;53062;:14;53058:99;;53106:5;53097:14;;;-1:-1:-1;53140:1:0;53130:11;53058:99;53184:5;53175;:14;53171:99;;53219:5;53210:14;;;-1:-1:-1;53253:1:0;53243:11;53171:99;53297:5;53288;:14;53284:66;;53333:1;53323:11;53378:6;52470:922;-1:-1:-1;;52470:922:0:o;16964:211::-;17090:4;17107:16;;;:11;;;:16;;;;;:24;;;17149:18;17107:3;17119;17149:13;:18::i;109758:988::-;110024:22;110074:1;110049:22;110066:4;110049:16;:22::i;:::-;:26;;;;:::i;:::-;110086:18;110107:26;;;:17;:26;;;;;;110024:51;;-1:-1:-1;110240:28:0;;;110236:328;;-1:-1:-1;;;;;110307:18:0;;110285:19;110307:18;;;:12;:18;;;;;;;;:34;;;;;;;;;110358:30;;;;;;:44;;;110475:30;;:17;:30;;;;;:43;;;110236:328;-1:-1:-1;110660:26:0;;;;:17;:26;;;;;;;;110653:33;;;-1:-1:-1;;;;;110704:18:0;;;;;:12;:18;;;;;:34;;;;;;;110697:41;109758:988::o;111041:1079::-;111319:10;:17;111294:22;;111319:21;;111339:1;;111319:21;:::i;:::-;111351:18;111372:24;;;:15;:24;;;;;;111745:10;:26;;111294:46;;-1:-1:-1;111372:24:0;;111294:46;;111745:26;;;;;;:::i;:::-;;;;;;;;;111723:48;;111809:11;111784:10;111795;111784:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;111889:28;;;:15;:28;;;;;;;:41;;;112061:24;;;;;112054:31;112096:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;111112:1008;;;111041:1079;:::o;108545:221::-;108630:14;108647:20;108664:2;108647:16;:20::i;:::-;-1:-1:-1;;;;;108678:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;108723:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;108545:221:0:o;71485:229::-;71622:12;71654:52;71676:6;71684:4;71690:1;71693:12;71654:21;:52::i;96726:942::-;-1:-1:-1;;;;;96806:16:0;;96798:61;;;;-1:-1:-1;;;96798:61:0;;27429:2:1;96798:61:0;;;27411:21:1;;;27448:18;;;27441:30;27507:34;27487:18;;;27480:62;27559:18;;96798:61:0;27227:356:1;96798:61:0;94898:4;94496:16;;;:7;:16;;;;;;-1:-1:-1;;;;;94496:16:0;94922:31;96870:58;;;;-1:-1:-1;;;96870:58:0;;27790:2:1;96870:58:0;;;27772:21:1;27829:2;27809:18;;;27802:30;27868;27848:18;;;27841:58;27916:18;;96870:58:0;27588:352:1;96870:58:0;96941:48;96970:1;96974:2;96978:7;96987:1;96941:20;:48::i;:::-;94898:4;94496:16;;;:7;:16;;;;;;-1:-1:-1;;;;;94496:16:0;94922:31;97079:58;;;;-1:-1:-1;;;97079:58:0;;27790:2:1;97079:58:0;;;27772:21:1;27829:2;27809:18;;;27802:30;27868;27848:18;;;27841:58;27916:18;;97079:58:0;27588:352:1;97079:58:0;-1:-1:-1;;;;;97486:13:0;;;;;;:9;:13;;;;;;;;:18;;97503:1;97486:18;;;97528:16;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;97528:21:0;;;;;97567:33;97536:7;;97486:13;;97567:33;;97486:13;;97567:33;120489:155:::1;120392:259:::0;:::o;7399:131::-;7472:4;7496:26;7504:3;7516:5;7496:7;:26::i;7098:125::-;7168:4;7192:23;7197:3;7209:5;7192:4;:23::i;72605:455::-;72775:12;72833:5;72808:21;:30;;72800:81;;;;-1:-1:-1;;;72800:81:0;;28147:2:1;72800:81:0;;;28129:21:1;28186:2;28166:18;;;28159:30;28225:34;28205:18;;;28198:62;-1:-1:-1;;;28276:18:1;;;28269:36;28322:19;;72800:81:0;27945:402:1;72800:81:0;72893:12;72907:23;72934:6;-1:-1:-1;;;;;72934:11:0;72953:5;72960:4;72934:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72892:73;;;;72983:69;73010:6;73018:7;73027:10;73039:12;72983:26;:69::i;:::-;72976:76;72605:455;-1:-1:-1;;;;;;;72605:455:0:o;75178:644::-;75363:12;75392:7;75388:427;;;75420:10;:17;75441:1;75420:22;75416:290;;-1:-1:-1;;;;;69023:19:0;;;75630:60;;;;-1:-1:-1;;;75630:60:0;;28846:2:1;75630:60:0;;;28828:21:1;28885:2;28865:18;;;28858:30;28924:31;28904:18;;;28897:59;28973:18;;75630:60:0;28644:353:1;75630:60:0;-1:-1:-1;75727:10:0;75720:17;;75388:427;75770:33;75778:10;75790:12;76525:17;;:21;76521:388;;76757:10;76751:17;76814:15;76801:10;76797:2;76793:19;76786:44;76521:388;76884:12;76877:20;;-1:-1:-1;;;76877:20:0;;;;;;;;:::i;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:118::-;678:5;671:13;664:21;657:5;654:32;644:60;;700:1;697;690:12;715:241;771:6;824:2;812:9;803:7;799:23;795:32;792:52;;;840:1;837;830:12;792:52;879:9;866:23;898:28;920:5;898:28;:::i;961:250::-;1046:1;1056:113;1070:6;1067:1;1064:13;1056:113;;;1146:11;;;1140:18;1127:11;;;1120:39;1092:2;1085:10;1056:113;;;-1:-1:-1;;1203:1:1;1185:16;;1178:27;961:250::o;1216:271::-;1258:3;1296:5;1290:12;1323:6;1318:3;1311:19;1339:76;1408:6;1401:4;1396:3;1392:14;1385:4;1378:5;1374:16;1339:76;:::i;:::-;1469:2;1448:15;-1:-1:-1;;1444:29:1;1435:39;;;;1476:4;1431:50;;1216:271;-1:-1:-1;;1216:271:1:o;1492:220::-;1641:2;1630:9;1623:21;1604:4;1661:45;1702:2;1691:9;1687:18;1679:6;1661:45;:::i;1717:180::-;1776:6;1829:2;1817:9;1808:7;1804:23;1800:32;1797:52;;;1845:1;1842;1835:12;1797:52;-1:-1:-1;1868:23:1;;1717:180;-1:-1:-1;1717:180:1:o;2110:131::-;-1:-1:-1;;;;;2185:31:1;;2175:42;;2165:70;;2231:1;2228;2221:12;2246:315;2314:6;2322;2375:2;2363:9;2354:7;2350:23;2346:32;2343:52;;;2391:1;2388;2381:12;2343:52;2430:9;2417:23;2449:31;2474:5;2449:31;:::i;:::-;2499:5;2551:2;2536:18;;;;2523:32;;-1:-1:-1;;;2246:315:1:o;2748:247::-;2807:6;2860:2;2848:9;2839:7;2835:23;2831:32;2828:52;;;2876:1;2873;2866:12;2828:52;2915:9;2902:23;2934:31;2959:5;2934:31;:::i;3552:456::-;3629:6;3637;3645;3698:2;3686:9;3677:7;3673:23;3669:32;3666:52;;;3714:1;3711;3704:12;3666:52;3753:9;3740:23;3772:31;3797:5;3772:31;:::i;:::-;3822:5;-1:-1:-1;3879:2:1;3864:18;;3851:32;3892:33;3851:32;3892:33;:::i;:::-;3552:456;;3944:7;;-1:-1:-1;;;3998:2:1;3983:18;;;;3970:32;;3552:456::o;4013:127::-;4074:10;4069:3;4065:20;4062:1;4055:31;4105:4;4102:1;4095:15;4129:4;4126:1;4119:15;4145:275;4216:2;4210:9;4281:2;4262:13;;-1:-1:-1;;4258:27:1;4246:40;;4316:18;4301:34;;4337:22;;;4298:62;4295:88;;;4363:18;;:::i;:::-;4399:2;4392:22;4145:275;;-1:-1:-1;4145:275:1:o;4425:1021::-;4509:6;4540:2;4583;4571:9;4562:7;4558:23;4554:32;4551:52;;;4599:1;4596;4589:12;4551:52;4639:9;4626:23;4668:18;4709:2;4701:6;4698:14;4695:34;;;4725:1;4722;4715:12;4695:34;4763:6;4752:9;4748:22;4738:32;;4808:7;4801:4;4797:2;4793:13;4789:27;4779:55;;4830:1;4827;4820:12;4779:55;4866:2;4853:16;4888:2;4884;4881:10;4878:36;;;4894:18;;:::i;:::-;4940:2;4937:1;4933:10;4923:20;;4963:28;4987:2;4983;4979:11;4963:28;:::i;:::-;5025:15;;;5095:11;;;5091:20;;;5056:12;;;;5123:19;;;5120:39;;;5155:1;5152;5145:12;5120:39;5179:11;;;;5199:217;5215:6;5210:3;5207:15;5199:217;;;5295:3;5282:17;5269:30;;5312:31;5337:5;5312:31;:::i;:::-;5356:18;;;5232:12;;;;5394;;;;5199:217;;;5435:5;4425:1021;-1:-1:-1;;;;;;;;4425:1021:1:o;5451:632::-;5622:2;5674:21;;;5744:13;;5647:18;;;5766:22;;;5593:4;;5622:2;5845:15;;;;5819:2;5804:18;;;5593:4;5888:169;5902:6;5899:1;5896:13;5888:169;;;5963:13;;5951:26;;6032:15;;;;5997:12;;;;5924:1;5917:9;5888:169;;;-1:-1:-1;6074:3:1;;5451:632;-1:-1:-1;;;;;;5451:632:1:o;6088:407::-;6153:5;6187:18;6179:6;6176:30;6173:56;;;6209:18;;:::i;:::-;6247:57;6292:2;6271:15;;-1:-1:-1;;6267:29:1;6298:4;6263:40;6247:57;:::i;:::-;6238:66;;6327:6;6320:5;6313:21;6367:3;6358:6;6353:3;6349:16;6346:25;6343:45;;;6384:1;6381;6374:12;6343:45;6433:6;6428:3;6421:4;6414:5;6410:16;6397:43;6487:1;6480:4;6471:6;6464:5;6460:18;6456:29;6449:40;6088:407;;;;;:::o;6500:451::-;6569:6;6622:2;6610:9;6601:7;6597:23;6593:32;6590:52;;;6638:1;6635;6628:12;6590:52;6678:9;6665:23;6711:18;6703:6;6700:30;6697:50;;;6743:1;6740;6733:12;6697:50;6766:22;;6819:4;6811:13;;6807:27;-1:-1:-1;6797:55:1;;6848:1;6845;6838:12;6797:55;6871:74;6937:7;6932:2;6919:16;6914:2;6910;6906:11;6871:74;:::i;6956:315::-;7024:6;7032;7085:2;7073:9;7064:7;7060:23;7056:32;7053:52;;;7101:1;7098;7091:12;7053:52;7137:9;7124:23;7114:33;;7197:2;7186:9;7182:18;7169:32;7210:31;7235:5;7210:31;:::i;:::-;7260:5;7250:15;;;6956:315;;;;;:::o;7611:382::-;7676:6;7684;7737:2;7725:9;7716:7;7712:23;7708:32;7705:52;;;7753:1;7750;7743:12;7705:52;7792:9;7779:23;7811:31;7836:5;7811:31;:::i;:::-;7861:5;-1:-1:-1;7918:2:1;7903:18;;7890:32;7931:30;7890:32;7931:30;:::i;8436:795::-;8531:6;8539;8547;8555;8608:3;8596:9;8587:7;8583:23;8579:33;8576:53;;;8625:1;8622;8615:12;8576:53;8664:9;8651:23;8683:31;8708:5;8683:31;:::i;:::-;8733:5;-1:-1:-1;8790:2:1;8775:18;;8762:32;8803:33;8762:32;8803:33;:::i;:::-;8855:7;-1:-1:-1;8909:2:1;8894:18;;8881:32;;-1:-1:-1;8964:2:1;8949:18;;8936:32;8991:18;8980:30;;8977:50;;;9023:1;9020;9013:12;8977:50;9046:22;;9099:4;9091:13;;9087:27;-1:-1:-1;9077:55:1;;9128:1;9125;9118:12;9077:55;9151:74;9217:7;9212:2;9199:16;9194:2;9190;9186:11;9151:74;:::i;:::-;9141:84;;;8436:795;;;;;;;:::o;9503:460::-;9597:6;9605;9613;9621;9674:3;9662:9;9653:7;9649:23;9645:33;9642:53;;;9691:1;9688;9681:12;9642:53;9727:9;9714:23;9704:33;;9784:2;9773:9;9769:18;9756:32;9746:42;;9835:2;9824:9;9820:18;9807:32;9797:42;;9889:2;9878:9;9874:18;9861:32;9902:31;9927:5;9902:31;:::i;:::-;9503:460;;;;-1:-1:-1;9503:460:1;;-1:-1:-1;;9503:460:1:o;9968:388::-;10036:6;10044;10097:2;10085:9;10076:7;10072:23;10068:32;10065:52;;;10113:1;10110;10103:12;10065:52;10152:9;10139:23;10171:31;10196:5;10171:31;:::i;:::-;10221:5;-1:-1:-1;10278:2:1;10263:18;;10250:32;10291:33;10250:32;10291:33;:::i;10361:609::-;10471:6;10479;10487;10495;10503;10556:3;10544:9;10535:7;10531:23;10527:33;10524:53;;;10573:1;10570;10563:12;10524:53;10612:9;10599:23;10631:31;10656:5;10631:31;:::i;:::-;10681:5;-1:-1:-1;10733:2:1;10718:18;;10705:32;;-1:-1:-1;10784:2:1;10769:18;;10756:32;;-1:-1:-1;10835:2:1;10820:18;;10807:32;;-1:-1:-1;10891:3:1;10876:19;;10863:33;10905;10863;10905;:::i;:::-;10957:7;10947:17;;;10361:609;;;;;;;;:::o;10975:380::-;11054:1;11050:12;;;;11097;;;11118:61;;11172:4;11164:6;11160:17;11150:27;;11118:61;11225:2;11217:6;11214:14;11194:18;11191:38;11188:161;;11271:10;11266:3;11262:20;11259:1;11252:31;11306:4;11303:1;11296:15;11334:4;11331:1;11324:15;11188:161;;10975:380;;;:::o;12192:409::-;12394:2;12376:21;;;12433:2;12413:18;;;12406:30;12472:34;12467:2;12452:18;;12445:62;-1:-1:-1;;;12538:2:1;12523:18;;12516:43;12591:3;12576:19;;12192:409::o;12606:127::-;12667:10;12662:3;12658:20;12655:1;12648:31;12698:4;12695:1;12688:15;12722:4;12719:1;12712:15;12738:127;12799:10;12794:3;12790:20;12787:1;12780:31;12830:4;12827:1;12820:15;12854:4;12851:1;12844:15;12870:135;12909:3;12930:17;;;12927:43;;12950:18;;:::i;:::-;-1:-1:-1;12997:1:1;12986:13;;12870:135::o;13961:545::-;14063:2;14058:3;14055:11;14052:448;;;14099:1;14124:5;14120:2;14113:17;14169:4;14165:2;14155:19;14239:2;14227:10;14223:19;14220:1;14216:27;14210:4;14206:38;14275:4;14263:10;14260:20;14257:47;;;-1:-1:-1;14298:4:1;14257:47;14353:2;14348:3;14344:12;14341:1;14337:20;14331:4;14327:31;14317:41;;14408:82;14426:2;14419:5;14416:13;14408:82;;;14471:17;;;14452:1;14441:13;14408:82;;;14412:3;;;13961:545;;;:::o;14682:1352::-;14808:3;14802:10;14835:18;14827:6;14824:30;14821:56;;;14857:18;;:::i;:::-;14886:97;14976:6;14936:38;14968:4;14962:11;14936:38;:::i;:::-;14930:4;14886:97;:::i;:::-;15038:4;;15102:2;15091:14;;15119:1;15114:663;;;;15821:1;15838:6;15835:89;;;-1:-1:-1;15890:19:1;;;15884:26;15835:89;-1:-1:-1;;14639:1:1;14635:11;;;14631:24;14627:29;14617:40;14663:1;14659:11;;;14614:57;15937:81;;15084:944;;15114:663;13908:1;13901:14;;;13945:4;13932:18;;-1:-1:-1;;15150:20:1;;;15268:236;15282:7;15279:1;15276:14;15268:236;;;15371:19;;;15365:26;15350:42;;15463:27;;;;15431:1;15419:14;;;;15298:19;;15268:236;;;15272:3;15532:6;15523:7;15520:19;15517:201;;;15593:19;;;15587:26;-1:-1:-1;;15676:1:1;15672:14;;;15688:3;15668:24;15664:37;15660:42;15645:58;15630:74;;15517:201;-1:-1:-1;;;;;15764:1:1;15748:14;;;15744:22;15731:36;;-1:-1:-1;14682:1352:1:o;16746:125::-;16811:9;;;16832:10;;;16829:36;;;16845:18;;:::i;17536:184::-;17606:6;17659:2;17647:9;17638:7;17634:23;17630:32;17627:52;;;17675:1;17672;17665:12;17627:52;-1:-1:-1;17698:16:1;;17536:184;-1:-1:-1;17536:184:1:o;19972:1256::-;20196:3;20234:6;20228:13;20260:4;20273:64;20330:6;20325:3;20320:2;20312:6;20308:15;20273:64;:::i;:::-;20400:13;;20359:16;;;;20422:68;20400:13;20359:16;20457:15;;;20422:68;:::i;:::-;20579:13;;20512:20;;;20552:1;;20617:36;20579:13;20617:36;:::i;:::-;20672:1;20689:18;;;20716:141;;;;20871:1;20866:337;;;;20682:521;;20716:141;-1:-1:-1;;20751:24:1;;20737:39;;20828:16;;20821:24;20807:39;;20796:51;;;-1:-1:-1;20716:141:1;;20866:337;20897:6;20894:1;20887:17;20945:2;20942:1;20932:16;20970:1;20984:169;20998:8;20995:1;20992:15;20984:169;;;21080:14;;21065:13;;;21058:37;21123:16;;;;21015:10;;20984:169;;;20988:3;;21184:8;21177:5;21173:20;21166:27;;20682:521;-1:-1:-1;21219:3:1;;19972:1256;-1:-1:-1;;;;;;;;;;19972:1256:1:o;22001:401::-;22203:2;22185:21;;;22242:2;22222:18;;;22215:30;22281:34;22276:2;22261:18;;22254:62;-1:-1:-1;;;22347:2:1;22332:18;;22325:35;22392:3;22377:19;;22001:401::o;23172:168::-;23245:9;;;23276;;23293:15;;;23287:22;;23273:37;23263:71;;23314:18;;:::i;23477:217::-;23517:1;23543;23533:132;;23587:10;23582:3;23578:20;23575:1;23568:31;23622:4;23619:1;23612:15;23650:4;23647:1;23640:15;23533:132;-1:-1:-1;23679:9:1;;23477:217::o;23699:128::-;23766:9;;;23787:11;;;23784:37;;;23801:18;;:::i;24845:414::-;25047:2;25029:21;;;25086:2;25066:18;;;25059:30;25125:34;25120:2;25105:18;;25098:62;-1:-1:-1;;;25191:2:1;25176:18;;25169:48;25249:3;25234:19;;24845:414::o;25686:127::-;25747:10;25742:3;25738:20;25735:1;25728:31;25778:4;25775:1;25768:15;25802:4;25799:1;25792:15;25818:245;25885:6;25938:2;25926:9;25917:7;25913:23;25909:32;25906:52;;;25954:1;25951;25944:12;25906:52;25986:9;25980:16;26005:28;26027:5;26005:28;:::i;26479:489::-;-1:-1:-1;;;;;26748:15:1;;;26730:34;;26800:15;;26795:2;26780:18;;26773:43;26847:2;26832:18;;26825:34;;;26895:3;26890:2;26875:18;;26868:31;;;26673:4;;26916:46;;26942:19;;26934:6;26916:46;:::i;:::-;26908:54;26479:489;-1:-1:-1;;;;;;26479:489:1:o;26973:249::-;27042:6;27095:2;27083:9;27074:7;27070:23;27066:32;27063:52;;;27111:1;27108;27101:12;27063:52;27143:9;27137:16;27162:30;27186:5;27162:30;:::i;28352:287::-;28481:3;28519:6;28513:13;28535:66;28594:6;28589:3;28582:4;28574:6;28570:17;28535:66;:::i;:::-;28617:16;;;;;28352:287;-1:-1:-1;;28352:287:1:o

Swarm Source

ipfs://e83d3eeb98962efff71d7779e8a5c0df9c4621f82ce4d0d4d7307708cc4892a0
Loading