Mumbai Testnet

Contract

0xa6E2f7376D2dF3Ca389b4912AAeCc0b198412c3F

Overview

MATIC Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 MATIC

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Value
Mint221786902021-12-02 19:44:38837 days ago1638474278IN
0xa6E2f737...198412c3F
0 MATIC0.000188853.5
Grant Role221786342021-12-02 19:42:36837 days ago1638474156IN
0xa6E2f737...198412c3F
0 MATIC0.000196463.5
Grant Role221786072021-12-02 19:41:38837 days ago1638474098IN
0xa6E2f737...198412c3F
0 MATIC0.000196463.5
Grant Role221785642021-12-02 19:40:12837 days ago1638474012IN
0xa6E2f737...198412c3F
0 MATIC0.000196253.5
Approve221782682021-12-02 19:27:52837 days ago1638473272IN
0xa6E2f737...198412c3F
0 MATIC0.000161843.5
Delegate221782422021-12-02 19:27:00837 days ago1638473220IN
0xa6E2f737...198412c3F
0 MATIC0.000169093.5
Mint221598242021-12-02 6:50:08838 days ago1638427808IN
0xa6E2f737...198412c3F
0 MATIC0.000294215.46
Initialize221457892021-12-01 21:15:50838 days ago1638393350IN
0xa6E2f737...198412c3F
0 MATIC0.000083153.5
Mint221450102021-12-01 20:42:44838 days ago1638391364IN
0xa6E2f737...198412c3F
0 MATIC0.00018863.5
0x60a06040221443882021-12-01 20:17:08838 days ago1638389828IN
 Create: STRATEGY
0 MATIC0.012866763.5

Parent Txn Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
STRATEGY

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at mumbai.polygonscan.com on 2021-12-01
*/

// File: @openzeppelin/[email protected]/utils/StorageSlotUpgradeable.sol


// OpenZeppelin Contracts v4.4.0 (utils/StorageSlot.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._
 */
library StorageSlotUpgradeable {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        assembly {
            r.slot := slot
        }
    }
}

// File: @openzeppelin/[email protected]/utils/AddressUpgradeable.sol


// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/[email protected]/proxy/beacon/IBeaconUpgradeable.sol


// OpenZeppelin Contracts v4.4.0 (proxy/beacon/IBeacon.sol)

pragma solidity ^0.8.0;

/**
 * @dev This is the interface that {BeaconProxy} expects of its beacon.
 */
interface IBeaconUpgradeable {
    /**
     * @dev Must return an address that can be used as a delegate call target.
     *
     * {BeaconProxy} will check that this address is a contract.
     */
    function implementation() external view returns (address);
}

// File: @openzeppelin/[email protected]/interfaces/IERC3156FlashBorrowerUpgradeable.sol


// OpenZeppelin Contracts v4.4.0 (interfaces/IERC3156FlashBorrower.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC3156 FlashBorrower, as defined in
 * https://eips.ethereum.org/EIPS/eip-3156[ERC-3156].
 *
 * _Available since v4.1._
 */
interface IERC3156FlashBorrowerUpgradeable {
    /**
     * @dev Receive a flash loan.
     * @param initiator The initiator of the loan.
     * @param token The loan currency.
     * @param amount The amount of tokens lent.
     * @param fee The additional amount of tokens to repay.
     * @param data Arbitrary data structure, intended to contain user-defined parameters.
     * @return The keccak256 hash of "ERC3156FlashBorrower.onFlashLoan"
     */
    function onFlashLoan(
        address initiator,
        address token,
        uint256 amount,
        uint256 fee,
        bytes calldata data
    ) external returns (bytes32);
}

// File: @openzeppelin/[email protected]/interfaces/IERC3156FlashLenderUpgradeable.sol


// OpenZeppelin Contracts v4.4.0 (interfaces/IERC3156FlashLender.sol)

pragma solidity ^0.8.0;


/**
 * @dev Interface of the ERC3156 FlashLender, as defined in
 * https://eips.ethereum.org/EIPS/eip-3156[ERC-3156].
 *
 * _Available since v4.1._
 */
interface IERC3156FlashLenderUpgradeable {
    /**
     * @dev The amount of currency available to be lended.
     * @param token The loan currency.
     * @return The amount of `token` that can be borrowed.
     */
    function maxFlashLoan(address token) external view returns (uint256);

    /**
     * @dev The fee to be charged for a given loan.
     * @param token The loan currency.
     * @param amount The amount of tokens lent.
     * @return The amount of `token` to be charged for the loan, on top of the returned principal.
     */
    function flashFee(address token, uint256 amount) external view returns (uint256);

    /**
     * @dev Initiate a flash loan.
     * @param receiver The receiver of the tokens in the loan, and the receiver of the callback.
     * @param token The loan currency.
     * @param amount The amount of tokens lent.
     * @param data Arbitrary data structure, intended to contain user-defined parameters.
     */
    function flashLoan(
        IERC3156FlashBorrowerUpgradeable receiver,
        address token,
        uint256 amount,
        bytes calldata data
    ) external returns (bool);
}

// File: @openzeppelin/[email protected]/interfaces/IERC3156Upgradeable.sol


// OpenZeppelin Contracts v4.4.0 (interfaces/IERC3156.sol)

pragma solidity ^0.8.0;



// File: @openzeppelin/[email protected]/utils/math/SafeCastUpgradeable.sol


// OpenZeppelin Contracts v4.4.0 (utils/math/SafeCast.sol)

pragma solidity ^0.8.0;

/**
 * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow
 * checks.
 *
 * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can
 * easily result in undesired exploitation or bugs, since developers usually
 * assume that overflows raise errors. `SafeCast` restores this intuition by
 * reverting the transaction when such an operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 *
 * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing
 * all math on `uint256` and `int256` and then downcasting.
 */
library SafeCastUpgradeable {
    /**
     * @dev Returns the downcasted uint224 from uint256, reverting on
     * overflow (when the input is greater than largest uint224).
     *
     * Counterpart to Solidity's `uint224` operator.
     *
     * Requirements:
     *
     * - input must fit into 224 bits
     */
    function toUint224(uint256 value) internal pure returns (uint224) {
        require(value <= type(uint224).max, "SafeCast: value doesn't fit in 224 bits");
        return uint224(value);
    }

    /**
     * @dev Returns the downcasted uint128 from uint256, reverting on
     * overflow (when the input is greater than largest uint128).
     *
     * Counterpart to Solidity's `uint128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     */
    function toUint128(uint256 value) internal pure returns (uint128) {
        require(value <= type(uint128).max, "SafeCast: value doesn't fit in 128 bits");
        return uint128(value);
    }

    /**
     * @dev Returns the downcasted uint96 from uint256, reverting on
     * overflow (when the input is greater than largest uint96).
     *
     * Counterpart to Solidity's `uint96` operator.
     *
     * Requirements:
     *
     * - input must fit into 96 bits
     */
    function toUint96(uint256 value) internal pure returns (uint96) {
        require(value <= type(uint96).max, "SafeCast: value doesn't fit in 96 bits");
        return uint96(value);
    }

    /**
     * @dev Returns the downcasted uint64 from uint256, reverting on
     * overflow (when the input is greater than largest uint64).
     *
     * Counterpart to Solidity's `uint64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     */
    function toUint64(uint256 value) internal pure returns (uint64) {
        require(value <= type(uint64).max, "SafeCast: value doesn't fit in 64 bits");
        return uint64(value);
    }

    /**
     * @dev Returns the downcasted uint32 from uint256, reverting on
     * overflow (when the input is greater than largest uint32).
     *
     * Counterpart to Solidity's `uint32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     */
    function toUint32(uint256 value) internal pure returns (uint32) {
        require(value <= type(uint32).max, "SafeCast: value doesn't fit in 32 bits");
        return uint32(value);
    }

    /**
     * @dev Returns the downcasted uint16 from uint256, reverting on
     * overflow (when the input is greater than largest uint16).
     *
     * Counterpart to Solidity's `uint16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     */
    function toUint16(uint256 value) internal pure returns (uint16) {
        require(value <= type(uint16).max, "SafeCast: value doesn't fit in 16 bits");
        return uint16(value);
    }

    /**
     * @dev Returns the downcasted uint8 from uint256, reverting on
     * overflow (when the input is greater than largest uint8).
     *
     * Counterpart to Solidity's `uint8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits.
     */
    function toUint8(uint256 value) internal pure returns (uint8) {
        require(value <= type(uint8).max, "SafeCast: value doesn't fit in 8 bits");
        return uint8(value);
    }

    /**
     * @dev Converts a signed int256 into an unsigned uint256.
     *
     * Requirements:
     *
     * - input must be greater than or equal to 0.
     */
    function toUint256(int256 value) internal pure returns (uint256) {
        require(value >= 0, "SafeCast: value must be positive");
        return uint256(value);
    }

    /**
     * @dev Returns the downcasted int128 from int256, reverting on
     * overflow (when the input is less than smallest int128 or
     * greater than largest int128).
     *
     * Counterpart to Solidity's `int128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     *
     * _Available since v3.1._
     */
    function toInt128(int256 value) internal pure returns (int128) {
        require(value >= type(int128).min && value <= type(int128).max, "SafeCast: value doesn't fit in 128 bits");
        return int128(value);
    }

    /**
     * @dev Returns the downcasted int64 from int256, reverting on
     * overflow (when the input is less than smallest int64 or
     * greater than largest int64).
     *
     * Counterpart to Solidity's `int64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     *
     * _Available since v3.1._
     */
    function toInt64(int256 value) internal pure returns (int64) {
        require(value >= type(int64).min && value <= type(int64).max, "SafeCast: value doesn't fit in 64 bits");
        return int64(value);
    }

    /**
     * @dev Returns the downcasted int32 from int256, reverting on
     * overflow (when the input is less than smallest int32 or
     * greater than largest int32).
     *
     * Counterpart to Solidity's `int32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     *
     * _Available since v3.1._
     */
    function toInt32(int256 value) internal pure returns (int32) {
        require(value >= type(int32).min && value <= type(int32).max, "SafeCast: value doesn't fit in 32 bits");
        return int32(value);
    }

    /**
     * @dev Returns the downcasted int16 from int256, reverting on
     * overflow (when the input is less than smallest int16 or
     * greater than largest int16).
     *
     * Counterpart to Solidity's `int16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     *
     * _Available since v3.1._
     */
    function toInt16(int256 value) internal pure returns (int16) {
        require(value >= type(int16).min && value <= type(int16).max, "SafeCast: value doesn't fit in 16 bits");
        return int16(value);
    }

    /**
     * @dev Returns the downcasted int8 from int256, reverting on
     * overflow (when the input is less than smallest int8 or
     * greater than largest int8).
     *
     * Counterpart to Solidity's `int8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits.
     *
     * _Available since v3.1._
     */
    function toInt8(int256 value) internal pure returns (int8) {
        require(value >= type(int8).min && value <= type(int8).max, "SafeCast: value doesn't fit in 8 bits");
        return int8(value);
    }

    /**
     * @dev Converts an unsigned uint256 into a signed int256.
     *
     * Requirements:
     *
     * - input must be less than or equal to maxInt256.
     */
    function toInt256(uint256 value) internal pure returns (int256) {
        // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive
        require(value <= uint256(type(int256).max), "SafeCast: value doesn't fit in an int256");
        return int256(value);
    }
}

// File: @openzeppelin/[email protected]/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol


// OpenZeppelin Contracts v4.4.0 (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 IERC20PermitUpgradeable {
    /**
     * @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/[email protected]/utils/introspection/IERC165Upgradeable.sol


// OpenZeppelin Contracts v4.4.0 (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 IERC165Upgradeable {
    /**
     * @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/[email protected]/utils/StringsUpgradeable.sol


// OpenZeppelin Contracts v4.4.0 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

// File: @openzeppelin/[email protected]/utils/cryptography/ECDSAUpgradeable.sol


// OpenZeppelin Contracts v4.4.0 (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;


/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSAUpgradeable {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", StringsUpgradeable.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

// File: @openzeppelin/[email protected]/access/IAccessControlUpgradeable.sol


// OpenZeppelin Contracts v4.4.0 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

// File: @openzeppelin/[email protected]/utils/CountersUpgradeable.sol


// OpenZeppelin Contracts v4.4.0 (utils/Counters.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

// File: @openzeppelin/[email protected]/utils/math/MathUpgradeable.sol


// OpenZeppelin Contracts v4.4.0 (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library MathUpgradeable {
    /**
     * @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 / b + (a % b == 0 ? 0 : 1);
    }
}

// File: @openzeppelin/[email protected]/utils/ArraysUpgradeable.sol


// OpenZeppelin Contracts v4.4.0 (utils/Arrays.sol)

pragma solidity ^0.8.0;


/**
 * @dev Collection of functions related to array types.
 */
library ArraysUpgradeable {
    /**
     * @dev Searches a sorted `array` and returns the first index that contains
     * a value greater or equal to `element`. If no such index exists (i.e. all
     * values in the array are strictly less than `element`), the array length is
     * returned. Time complexity O(log n).
     *
     * `array` is expected to be sorted in ascending order, and to contain no
     * repeated elements.
     */
    function findUpperBound(uint256[] storage array, uint256 element) internal view returns (uint256) {
        if (array.length == 0) {
            return 0;
        }

        uint256 low = 0;
        uint256 high = array.length;

        while (low < high) {
            uint256 mid = MathUpgradeable.average(low, high);

            // Note that mid will always be strictly less than high (i.e. it will be a valid array index)
            // because Math.average rounds down (it does integer division with truncation).
            if (array[mid] > element) {
                high = mid;
            } else {
                low = mid + 1;
            }
        }

        // At this point `low` is the exclusive upper bound. We will return the inclusive upper bound.
        if (low > 0 && array[low - 1] == element) {
            return low - 1;
        } else {
            return low;
        }
    }
}

// File: @openzeppelin/[email protected]/proxy/utils/Initializable.sol


// OpenZeppelin Contracts v4.4.0 (proxy/utils/Initializable.sol)

pragma solidity ^0.8.0;

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }
}

// File: @openzeppelin/[email protected]/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol


// OpenZeppelin Contracts v4.4.0 (proxy/ERC1967/ERC1967Upgrade.sol)

pragma solidity ^0.8.2;





/**
 * @dev This abstract contract provides getters and event emitting update functions for
 * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.
 *
 * _Available since v4.1._
 *
 * @custom:oz-upgrades-unsafe-allow delegatecall
 */
abstract contract ERC1967UpgradeUpgradeable is Initializable {
    function __ERC1967Upgrade_init() internal initializer {
        __ERC1967Upgrade_init_unchained();
    }

    function __ERC1967Upgrade_init_unchained() internal initializer {
    }
    // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1
    bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;

    /**
     * @dev Storage slot with the address of the current implementation.
     * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /**
     * @dev Emitted when the implementation is upgraded.
     */
    event Upgraded(address indexed implementation);

    /**
     * @dev Returns the current implementation address.
     */
    function _getImplementation() internal view returns (address) {
        return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 implementation slot.
     */
    function _setImplementation(address newImplementation) private {
        require(AddressUpgradeable.isContract(newImplementation), "ERC1967: new implementation is not a contract");
        StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
    }

    /**
     * @dev Perform implementation upgrade
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeTo(address newImplementation) internal {
        _setImplementation(newImplementation);
        emit Upgraded(newImplementation);
    }

    /**
     * @dev Perform implementation upgrade with additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCall(
        address newImplementation,
        bytes memory data,
        bool forceCall
    ) internal {
        _upgradeTo(newImplementation);
        if (data.length > 0 || forceCall) {
            _functionDelegateCall(newImplementation, data);
        }
    }

    /**
     * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCallSecure(
        address newImplementation,
        bytes memory data,
        bool forceCall
    ) internal {
        address oldImplementation = _getImplementation();

        // Initial upgrade and setup call
        _setImplementation(newImplementation);
        if (data.length > 0 || forceCall) {
            _functionDelegateCall(newImplementation, data);
        }

        // Perform rollback test if not already in progress
        StorageSlotUpgradeable.BooleanSlot storage rollbackTesting = StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT);
        if (!rollbackTesting.value) {
            // Trigger rollback using upgradeTo from the new implementation
            rollbackTesting.value = true;
            _functionDelegateCall(
                newImplementation,
                abi.encodeWithSignature("upgradeTo(address)", oldImplementation)
            );
            rollbackTesting.value = false;
            // Check rollback was effective
            require(oldImplementation == _getImplementation(), "ERC1967Upgrade: upgrade breaks further upgrades");
            // Finally reset to the new implementation and log the upgrade
            _upgradeTo(newImplementation);
        }
    }

    /**
     * @dev Storage slot with the admin of the contract.
     * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

    /**
     * @dev Emitted when the admin account has changed.
     */
    event AdminChanged(address previousAdmin, address newAdmin);

    /**
     * @dev Returns the current admin.
     */
    function _getAdmin() internal view returns (address) {
        return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 admin slot.
     */
    function _setAdmin(address newAdmin) private {
        require(newAdmin != address(0), "ERC1967: new admin is the zero address");
        StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;
    }

    /**
     * @dev Changes the admin of the proxy.
     *
     * Emits an {AdminChanged} event.
     */
    function _changeAdmin(address newAdmin) internal {
        emit AdminChanged(_getAdmin(), newAdmin);
        _setAdmin(newAdmin);
    }

    /**
     * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.
     * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.
     */
    bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;

    /**
     * @dev Emitted when the beacon is upgraded.
     */
    event BeaconUpgraded(address indexed beacon);

    /**
     * @dev Returns the current beacon.
     */
    function _getBeacon() internal view returns (address) {
        return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;
    }

    /**
     * @dev Stores a new beacon in the EIP1967 beacon slot.
     */
    function _setBeacon(address newBeacon) private {
        require(AddressUpgradeable.isContract(newBeacon), "ERC1967: new beacon is not a contract");
        require(
            AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),
            "ERC1967: beacon implementation is not a contract"
        );
        StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;
    }

    /**
     * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does
     * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).
     *
     * Emits a {BeaconUpgraded} event.
     */
    function _upgradeBeaconToAndCall(
        address newBeacon,
        bytes memory data,
        bool forceCall
    ) internal {
        _setBeacon(newBeacon);
        emit BeaconUpgraded(newBeacon);
        if (data.length > 0 || forceCall) {
            _functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);
        }
    }

    /**
     * @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) private returns (bytes memory) {
        require(AddressUpgradeable.isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return AddressUpgradeable.verifyCallResult(success, returndata, "Address: low-level delegate call failed");
    }
    uint256[50] private __gap;
}

// File: @openzeppelin/[email protected]/proxy/utils/UUPSUpgradeable.sol


// OpenZeppelin Contracts v4.4.0 (proxy/utils/UUPSUpgradeable.sol)

pragma solidity ^0.8.0;



/**
 * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an
 * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.
 *
 * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is
 * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing
 * `UUPSUpgradeable` with a custom implementation of upgrades.
 *
 * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.
 *
 * _Available since v4.1._
 */
abstract contract UUPSUpgradeable is Initializable, ERC1967UpgradeUpgradeable {
    function __UUPSUpgradeable_init() internal initializer {
        __ERC1967Upgrade_init_unchained();
        __UUPSUpgradeable_init_unchained();
    }

    function __UUPSUpgradeable_init_unchained() internal initializer {
    }
    /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment
    address private immutable __self = address(this);

    /**
     * @dev Check that the execution is being performed through a delegatecall call and that the execution context is
     * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case
     * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a
     * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to
     * fail.
     */
    modifier onlyProxy() {
        require(address(this) != __self, "Function must be called through delegatecall");
        require(_getImplementation() == __self, "Function must be called through active proxy");
        _;
    }

    /**
     * @dev Upgrade the implementation of the proxy to `newImplementation`.
     *
     * Calls {_authorizeUpgrade}.
     *
     * Emits an {Upgraded} event.
     */
    function upgradeTo(address newImplementation) external virtual onlyProxy {
        _authorizeUpgrade(newImplementation);
        _upgradeToAndCallSecure(newImplementation, new bytes(0), false);
    }

    /**
     * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call
     * encoded in `data`.
     *
     * Calls {_authorizeUpgrade}.
     *
     * Emits an {Upgraded} event.
     */
    function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual onlyProxy {
        _authorizeUpgrade(newImplementation);
        _upgradeToAndCallSecure(newImplementation, data, true);
    }

    /**
     * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by
     * {upgradeTo} and {upgradeToAndCall}.
     *
     * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.
     *
     * ```solidity
     * function _authorizeUpgrade(address) internal override onlyOwner {}
     * ```
     */
    function _authorizeUpgrade(address newImplementation) internal virtual;
    uint256[50] private __gap;
}

// File: @openzeppelin/[email protected]/utils/cryptography/draft-EIP712Upgradeable.sol


// OpenZeppelin Contracts v4.4.0 (utils/cryptography/draft-EIP712.sol)

pragma solidity ^0.8.0;



/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712Upgradeable is Initializable {
    /* solhint-disable var-name-mixedcase */
    bytes32 private _HASHED_NAME;
    bytes32 private _HASHED_VERSION;
    bytes32 private constant _TYPE_HASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    function __EIP712_init(string memory name, string memory version) internal initializer {
        __EIP712_init_unchained(name, version);
    }

    function __EIP712_init_unchained(string memory name, string memory version) internal initializer {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        return _buildDomainSeparator(_TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash());
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSAUpgradeable.toTypedDataHash(_domainSeparatorV4(), structHash);
    }

    /**
     * @dev The hash of the name parameter for the EIP712 domain.
     *
     * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs
     * are a concern.
     */
    function _EIP712NameHash() internal virtual view returns (bytes32) {
        return _HASHED_NAME;
    }

    /**
     * @dev The hash of the version parameter for the EIP712 domain.
     *
     * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs
     * are a concern.
     */
    function _EIP712VersionHash() internal virtual view returns (bytes32) {
        return _HASHED_VERSION;
    }
    uint256[50] private __gap;
}

// File: @openzeppelin/[email protected]/utils/introspection/ERC165Upgradeable.sol


// OpenZeppelin Contracts v4.4.0 (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 ERC165Upgradeable is Initializable, IERC165Upgradeable {
    function __ERC165_init() internal initializer {
        __ERC165_init_unchained();
    }

    function __ERC165_init_unchained() internal initializer {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165Upgradeable).interfaceId;
    }
    uint256[50] private __gap;
}

// File: @openzeppelin/[email protected]/utils/ContextUpgradeable.sol


// OpenZeppelin Contracts v4.4.0 (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 ContextUpgradeable is Initializable {
    function __Context_init() internal initializer {
        __Context_init_unchained();
    }

    function __Context_init_unchained() internal initializer {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
    uint256[50] private __gap;
}

// File: @openzeppelin/[email protected]/security/PausableUpgradeable.sol


// OpenZeppelin Contracts v4.4.0 (security/Pausable.sol)

pragma solidity ^0.8.0;



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

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

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    function __Pausable_init() internal initializer {
        __Context_init_unchained();
        __Pausable_init_unchained();
    }

    function __Pausable_init_unchained() internal initializer {
        _paused = false;
    }

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

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

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

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

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

// File: @openzeppelin/[email protected]/access/AccessControlUpgradeable.sol


// OpenZeppelin Contracts v4.4.0 (access/AccessControl.sol)

pragma solidity ^0.8.0;






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

    function __AccessControl_init_unchained() internal initializer {
    }
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

// File: @openzeppelin/[email protected]/token/ERC20/IERC20Upgradeable.sol


// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20Upgradeable {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

// File: @openzeppelin/[email protected]/token/ERC20/extensions/IERC20MetadataUpgradeable.sol


// OpenZeppelin Contracts v4.4.0 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;


/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20MetadataUpgradeable is IERC20Upgradeable {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

// File: @openzeppelin/[email protected]/token/ERC20/ERC20Upgradeable.sol


// OpenZeppelin Contracts v4.4.0 (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;





/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    function __ERC20_init(string memory name_, string memory symbol_) internal initializer {
        __Context_init_unchained();
        __ERC20_init_unchained(name_, symbol_);
    }

    function __ERC20_init_unchained(string memory name_, string memory symbol_) internal initializer {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
    uint256[45] private __gap;
}

// File: @openzeppelin/[email protected]/token/ERC20/extensions/ERC20FlashMintUpgradeable.sol


// OpenZeppelin Contracts v4.4.0 (token/ERC20/extensions/ERC20FlashMint.sol)

pragma solidity ^0.8.0;




/**
 * @dev Implementation of the ERC3156 Flash loans extension, as defined in
 * https://eips.ethereum.org/EIPS/eip-3156[ERC-3156].
 *
 * Adds the {flashLoan} method, which provides flash loan support at the token
 * level. By default there is no fee, but this can be changed by overriding {flashFee}.
 *
 * _Available since v4.1._
 */
abstract contract ERC20FlashMintUpgradeable is Initializable, ERC20Upgradeable, IERC3156FlashLenderUpgradeable {
    function __ERC20FlashMint_init() internal initializer {
        __Context_init_unchained();
        __ERC20FlashMint_init_unchained();
    }

    function __ERC20FlashMint_init_unchained() internal initializer {
    }
    bytes32 private constant _RETURN_VALUE = keccak256("ERC3156FlashBorrower.onFlashLoan");

    /**
     * @dev Returns the maximum amount of tokens available for loan.
     * @param token The address of the token that is requested.
     * @return The amont of token that can be loaned.
     */
    function maxFlashLoan(address token) public view override returns (uint256) {
        return token == address(this) ? type(uint256).max - ERC20Upgradeable.totalSupply() : 0;
    }

    /**
     * @dev Returns the fee applied when doing flash loans. By default this
     * implementation has 0 fees. This function can be overloaded to make
     * the flash loan mechanism deflationary.
     * @param token The token to be flash loaned.
     * @param amount The amount of tokens to be loaned.
     * @return The fees applied to the corresponding flash loan.
     */
    function flashFee(address token, uint256 amount) public view virtual override returns (uint256) {
        require(token == address(this), "ERC20FlashMint: wrong token");
        // silence warning about unused variable without the addition of bytecode.
        amount;
        return 0;
    }

    /**
     * @dev Performs a flash loan. New tokens are minted and sent to the
     * `receiver`, who is required to implement the {IERC3156FlashBorrower}
     * interface. By the end of the flash loan, the receiver is expected to own
     * amount + fee tokens and have them approved back to the token contract itself so
     * they can be burned.
     * @param receiver The receiver of the flash loan. Should implement the
     * {IERC3156FlashBorrower.onFlashLoan} interface.
     * @param token The token to be flash loaned. Only `address(this)` is
     * supported.
     * @param amount The amount of tokens to be loaned.
     * @param data An arbitrary datafield that is passed to the receiver.
     * @return `true` is the flash loan was successful.
     */
    function flashLoan(
        IERC3156FlashBorrowerUpgradeable receiver,
        address token,
        uint256 amount,
        bytes calldata data
    ) public virtual override returns (bool) {
        uint256 fee = flashFee(token, amount);
        _mint(address(receiver), amount);
        require(
            receiver.onFlashLoan(msg.sender, token, amount, fee, data) == _RETURN_VALUE,
            "ERC20FlashMint: invalid return value"
        );
        uint256 currentAllowance = allowance(address(receiver), address(this));
        require(currentAllowance >= amount + fee, "ERC20FlashMint: allowance does not allow refund");
        _approve(address(receiver), address(this), currentAllowance - amount - fee);
        _burn(address(receiver), amount + fee);
        return true;
    }
    uint256[50] private __gap;
}

// File: @openzeppelin/[email protected]/token/ERC20/extensions/draft-ERC20PermitUpgradeable.sol


// OpenZeppelin Contracts v4.4.0 (token/ERC20/extensions/draft-ERC20Permit.sol)

pragma solidity ^0.8.0;







/**
 * @dev Implementation 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.
 *
 * _Available since v3.4._
 */
abstract contract ERC20PermitUpgradeable is Initializable, ERC20Upgradeable, IERC20PermitUpgradeable, EIP712Upgradeable {
    using CountersUpgradeable for CountersUpgradeable.Counter;

    mapping(address => CountersUpgradeable.Counter) private _nonces;

    // solhint-disable-next-line var-name-mixedcase
    bytes32 private _PERMIT_TYPEHASH;

    /**
     * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`.
     *
     * It's a good idea to use the same `name` that is defined as the ERC20 token name.
     */
    function __ERC20Permit_init(string memory name) internal initializer {
        __Context_init_unchained();
        __EIP712_init_unchained(name, "1");
        __ERC20Permit_init_unchained(name);
    }

    function __ERC20Permit_init_unchained(string memory name) internal initializer {
        _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");}

    /**
     * @dev See {IERC20Permit-permit}.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual override {
        require(block.timestamp <= deadline, "ERC20Permit: expired deadline");

        bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline));

        bytes32 hash = _hashTypedDataV4(structHash);

        address signer = ECDSAUpgradeable.recover(hash, v, r, s);
        require(signer == owner, "ERC20Permit: invalid signature");

        _approve(owner, spender, value);
    }

    /**
     * @dev See {IERC20Permit-nonces}.
     */
    function nonces(address owner) public view virtual override returns (uint256) {
        return _nonces[owner].current();
    }

    /**
     * @dev See {IERC20Permit-DOMAIN_SEPARATOR}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view override returns (bytes32) {
        return _domainSeparatorV4();
    }

    /**
     * @dev "Consume a nonce": return the current value and increment.
     *
     * _Available since v4.1._
     */
    function _useNonce(address owner) internal virtual returns (uint256 current) {
        CountersUpgradeable.Counter storage nonce = _nonces[owner];
        current = nonce.current();
        nonce.increment();
    }
    uint256[49] private __gap;
}

// File: @openzeppelin/[email protected]/token/ERC20/extensions/ERC20VotesUpgradeable.sol


// OpenZeppelin Contracts v4.4.0 (token/ERC20/extensions/ERC20Votes.sol)

pragma solidity ^0.8.0;






/**
 * @dev Extension of ERC20 to support Compound-like voting and delegation. This version is more generic than Compound's,
 * and supports token supply up to 2^224^ - 1, while COMP is limited to 2^96^ - 1.
 *
 * NOTE: If exact COMP compatibility is required, use the {ERC20VotesComp} variant of this module.
 *
 * This extension keeps a history (checkpoints) of each account's vote power. Vote power can be delegated either
 * by calling the {delegate} function directly, or by providing a signature to be used with {delegateBySig}. Voting
 * power can be queried through the public accessors {getVotes} and {getPastVotes}.
 *
 * By default, token balance does not account for voting power. This makes transfers cheaper. The downside is that it
 * requires users to delegate to themselves in order to activate checkpoints and have their voting power tracked.
 * Enabling self-delegation can easily be done by overriding the {delegates} function. Keep in mind however that this
 * will significantly increase the base gas cost of transfers.
 *
 * _Available since v4.2._
 */
abstract contract ERC20VotesUpgradeable is Initializable, ERC20PermitUpgradeable {
    function __ERC20Votes_init_unchained() internal initializer {
    }
    struct Checkpoint {
        uint32 fromBlock;
        uint224 votes;
    }

    bytes32 private constant _DELEGATION_TYPEHASH =
        keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");

    mapping(address => address) private _delegates;
    mapping(address => Checkpoint[]) private _checkpoints;
    Checkpoint[] private _totalSupplyCheckpoints;

    /**
     * @dev Emitted when an account changes their delegate.
     */
    event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate);

    /**
     * @dev Emitted when a token transfer or delegate change results in changes to an account's voting power.
     */
    event DelegateVotesChanged(address indexed delegate, uint256 previousBalance, uint256 newBalance);

    /**
     * @dev Get the `pos`-th checkpoint for `account`.
     */
    function checkpoints(address account, uint32 pos) public view virtual returns (Checkpoint memory) {
        return _checkpoints[account][pos];
    }

    /**
     * @dev Get number of checkpoints for `account`.
     */
    function numCheckpoints(address account) public view virtual returns (uint32) {
        return SafeCastUpgradeable.toUint32(_checkpoints[account].length);
    }

    /**
     * @dev Get the address `account` is currently delegating to.
     */
    function delegates(address account) public view virtual returns (address) {
        return _delegates[account];
    }

    /**
     * @dev Gets the current votes balance for `account`
     */
    function getVotes(address account) public view returns (uint256) {
        uint256 pos = _checkpoints[account].length;
        return pos == 0 ? 0 : _checkpoints[account][pos - 1].votes;
    }

    /**
     * @dev Retrieve the number of votes for `account` at the end of `blockNumber`.
     *
     * Requirements:
     *
     * - `blockNumber` must have been already mined
     */
    function getPastVotes(address account, uint256 blockNumber) public view returns (uint256) {
        require(blockNumber < block.number, "ERC20Votes: block not yet mined");
        return _checkpointsLookup(_checkpoints[account], blockNumber);
    }

    /**
     * @dev Retrieve the `totalSupply` at the end of `blockNumber`. Note, this value is the sum of all balances.
     * It is but NOT the sum of all the delegated votes!
     *
     * Requirements:
     *
     * - `blockNumber` must have been already mined
     */
    function getPastTotalSupply(uint256 blockNumber) public view returns (uint256) {
        require(blockNumber < block.number, "ERC20Votes: block not yet mined");
        return _checkpointsLookup(_totalSupplyCheckpoints, blockNumber);
    }

    /**
     * @dev Lookup a value in a list of (sorted) checkpoints.
     */
    function _checkpointsLookup(Checkpoint[] storage ckpts, uint256 blockNumber) private view returns (uint256) {
        // We run a binary search to look for the earliest checkpoint taken after `blockNumber`.
        //
        // During the loop, the index of the wanted checkpoint remains in the range [low-1, high).
        // With each iteration, either `low` or `high` is moved towards the middle of the range to maintain the invariant.
        // - If the middle checkpoint is after `blockNumber`, we look in [low, mid)
        // - If the middle checkpoint is before or equal to `blockNumber`, we look in [mid+1, high)
        // Once we reach a single value (when low == high), we've found the right checkpoint at the index high-1, if not
        // out of bounds (in which case we're looking too far in the past and the result is 0).
        // Note that if the latest checkpoint available is exactly for `blockNumber`, we end up with an index that is
        // past the end of the array, so we technically don't find a checkpoint after `blockNumber`, but it works out
        // the same.
        uint256 high = ckpts.length;
        uint256 low = 0;
        while (low < high) {
            uint256 mid = MathUpgradeable.average(low, high);
            if (ckpts[mid].fromBlock > blockNumber) {
                high = mid;
            } else {
                low = mid + 1;
            }
        }

        return high == 0 ? 0 : ckpts[high - 1].votes;
    }

    /**
     * @dev Delegate votes from the sender to `delegatee`.
     */
    function delegate(address delegatee) public virtual {
        _delegate(_msgSender(), delegatee);
    }

    /**
     * @dev Delegates votes from signer to `delegatee`
     */
    function delegateBySig(
        address delegatee,
        uint256 nonce,
        uint256 expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual {
        require(block.timestamp <= expiry, "ERC20Votes: signature expired");
        address signer = ECDSAUpgradeable.recover(
            _hashTypedDataV4(keccak256(abi.encode(_DELEGATION_TYPEHASH, delegatee, nonce, expiry))),
            v,
            r,
            s
        );
        require(nonce == _useNonce(signer), "ERC20Votes: invalid nonce");
        _delegate(signer, delegatee);
    }

    /**
     * @dev Maximum token supply. Defaults to `type(uint224).max` (2^224^ - 1).
     */
    function _maxSupply() internal view virtual returns (uint224) {
        return type(uint224).max;
    }

    /**
     * @dev Snapshots the totalSupply after it has been increased.
     */
    function _mint(address account, uint256 amount) internal virtual override {
        super._mint(account, amount);
        require(totalSupply() <= _maxSupply(), "ERC20Votes: total supply risks overflowing votes");

        _writeCheckpoint(_totalSupplyCheckpoints, _add, amount);
    }

    /**
     * @dev Snapshots the totalSupply after it has been decreased.
     */
    function _burn(address account, uint256 amount) internal virtual override {
        super._burn(account, amount);

        _writeCheckpoint(_totalSupplyCheckpoints, _subtract, amount);
    }

    /**
     * @dev Move voting power when tokens are transferred.
     *
     * Emits a {DelegateVotesChanged} event.
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override {
        super._afterTokenTransfer(from, to, amount);

        _moveVotingPower(delegates(from), delegates(to), amount);
    }

    /**
     * @dev Change delegation for `delegator` to `delegatee`.
     *
     * Emits events {DelegateChanged} and {DelegateVotesChanged}.
     */
    function _delegate(address delegator, address delegatee) internal virtual {
        address currentDelegate = delegates(delegator);
        uint256 delegatorBalance = balanceOf(delegator);
        _delegates[delegator] = delegatee;

        emit DelegateChanged(delegator, currentDelegate, delegatee);

        _moveVotingPower(currentDelegate, delegatee, delegatorBalance);
    }

    function _moveVotingPower(
        address src,
        address dst,
        uint256 amount
    ) private {
        if (src != dst && amount > 0) {
            if (src != address(0)) {
                (uint256 oldWeight, uint256 newWeight) = _writeCheckpoint(_checkpoints[src], _subtract, amount);
                emit DelegateVotesChanged(src, oldWeight, newWeight);
            }

            if (dst != address(0)) {
                (uint256 oldWeight, uint256 newWeight) = _writeCheckpoint(_checkpoints[dst], _add, amount);
                emit DelegateVotesChanged(dst, oldWeight, newWeight);
            }
        }
    }

    function _writeCheckpoint(
        Checkpoint[] storage ckpts,
        function(uint256, uint256) view returns (uint256) op,
        uint256 delta
    ) private returns (uint256 oldWeight, uint256 newWeight) {
        uint256 pos = ckpts.length;
        oldWeight = pos == 0 ? 0 : ckpts[pos - 1].votes;
        newWeight = op(oldWeight, delta);

        if (pos > 0 && ckpts[pos - 1].fromBlock == block.number) {
            ckpts[pos - 1].votes = SafeCastUpgradeable.toUint224(newWeight);
        } else {
            ckpts.push(Checkpoint({fromBlock: SafeCastUpgradeable.toUint32(block.number), votes: SafeCastUpgradeable.toUint224(newWeight)}));
        }
    }

    function _add(uint256 a, uint256 b) private pure returns (uint256) {
        return a + b;
    }

    function _subtract(uint256 a, uint256 b) private pure returns (uint256) {
        return a - b;
    }
    uint256[47] private __gap;
}

// File: @openzeppelin/[email protected]/token/ERC20/extensions/ERC20SnapshotUpgradeable.sol


// OpenZeppelin Contracts v4.4.0 (token/ERC20/extensions/ERC20Snapshot.sol)

pragma solidity ^0.8.0;





/**
 * @dev This contract extends an ERC20 token with a snapshot mechanism. When a snapshot is created, the balances and
 * total supply at the time are recorded for later access.
 *
 * This can be used to safely create mechanisms based on token balances such as trustless dividends or weighted voting.
 * In naive implementations it's possible to perform a "double spend" attack by reusing the same balance from different
 * accounts. By using snapshots to calculate dividends or voting power, those attacks no longer apply. It can also be
 * used to create an efficient ERC20 forking mechanism.
 *
 * Snapshots are created by the internal {_snapshot} function, which will emit the {Snapshot} event and return a
 * snapshot id. To get the total supply at the time of a snapshot, call the function {totalSupplyAt} with the snapshot
 * id. To get the balance of an account at the time of a snapshot, call the {balanceOfAt} function with the snapshot id
 * and the account address.
 *
 * NOTE: Snapshot policy can be customized by overriding the {_getCurrentSnapshotId} method. For example, having it
 * return `block.number` will trigger the creation of snapshot at the begining of each new block. When overridding this
 * function, be careful about the monotonicity of its result. Non-monotonic snapshot ids will break the contract.
 *
 * Implementing snapshots for every block using this method will incur significant gas costs. For a gas-efficient
 * alternative consider {ERC20Votes}.
 *
 * ==== Gas Costs
 *
 * Snapshots are efficient. Snapshot creation is _O(1)_. Retrieval of balances or total supply from a snapshot is _O(log
 * n)_ in the number of snapshots that have been created, although _n_ for a specific account will generally be much
 * smaller since identical balances in subsequent snapshots are stored as a single entry.
 *
 * There is a constant overhead for normal ERC20 transfers due to the additional snapshot bookkeeping. This overhead is
 * only significant for the first transfer that immediately follows a snapshot for a particular account. Subsequent
 * transfers will have normal cost until the next snapshot, and so on.
 */

abstract contract ERC20SnapshotUpgradeable is Initializable, ERC20Upgradeable {
    function __ERC20Snapshot_init() internal initializer {
        __Context_init_unchained();
        __ERC20Snapshot_init_unchained();
    }

    function __ERC20Snapshot_init_unchained() internal initializer {
    }
    // Inspired by Jordi Baylina's MiniMeToken to record historical balances:
    // https://github.com/Giveth/minimd/blob/ea04d950eea153a04c51fa510b068b9dded390cb/contracts/MiniMeToken.sol

    using ArraysUpgradeable for uint256[];
    using CountersUpgradeable for CountersUpgradeable.Counter;

    // Snapshotted values have arrays of ids and the value corresponding to that id. These could be an array of a
    // Snapshot struct, but that would impede usage of functions that work on an array.
    struct Snapshots {
        uint256[] ids;
        uint256[] values;
    }

    mapping(address => Snapshots) private _accountBalanceSnapshots;
    Snapshots private _totalSupplySnapshots;

    // Snapshot ids increase monotonically, with the first value being 1. An id of 0 is invalid.
    CountersUpgradeable.Counter private _currentSnapshotId;

    /**
     * @dev Emitted by {_snapshot} when a snapshot identified by `id` is created.
     */
    event Snapshot(uint256 id);

    /**
     * @dev Creates a new snapshot and returns its snapshot id.
     *
     * Emits a {Snapshot} event that contains the same id.
     *
     * {_snapshot} is `internal` and you have to decide how to expose it externally. Its usage may be restricted to a
     * set of accounts, for example using {AccessControl}, or it may be open to the public.
     *
     * [WARNING]
     * ====
     * While an open way of calling {_snapshot} is required for certain trust minimization mechanisms such as forking,
     * you must consider that it can potentially be used by attackers in two ways.
     *
     * First, it can be used to increase the cost of retrieval of values from snapshots, although it will grow
     * logarithmically thus rendering this attack ineffective in the long term. Second, it can be used to target
     * specific accounts and increase the cost of ERC20 transfers for them, in the ways specified in the Gas Costs
     * section above.
     *
     * We haven't measured the actual numbers; if this is something you're interested in please reach out to us.
     * ====
     */
    function _snapshot() internal virtual returns (uint256) {
        _currentSnapshotId.increment();

        uint256 currentId = _getCurrentSnapshotId();
        emit Snapshot(currentId);
        return currentId;
    }

    /**
     * @dev Get the current snapshotId
     */
    function _getCurrentSnapshotId() internal view virtual returns (uint256) {
        return _currentSnapshotId.current();
    }

    /**
     * @dev Retrieves the balance of `account` at the time `snapshotId` was created.
     */
    function balanceOfAt(address account, uint256 snapshotId) public view virtual returns (uint256) {
        (bool snapshotted, uint256 value) = _valueAt(snapshotId, _accountBalanceSnapshots[account]);

        return snapshotted ? value : balanceOf(account);
    }

    /**
     * @dev Retrieves the total supply at the time `snapshotId` was created.
     */
    function totalSupplyAt(uint256 snapshotId) public view virtual returns (uint256) {
        (bool snapshotted, uint256 value) = _valueAt(snapshotId, _totalSupplySnapshots);

        return snapshotted ? value : totalSupply();
    }

    // Update balance and/or total supply snapshots before the values are modified. This is implemented
    // in the _beforeTokenTransfer hook, which is executed for _mint, _burn, and _transfer operations.
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, amount);

        if (from == address(0)) {
            // mint
            _updateAccountSnapshot(to);
            _updateTotalSupplySnapshot();
        } else if (to == address(0)) {
            // burn
            _updateAccountSnapshot(from);
            _updateTotalSupplySnapshot();
        } else {
            // transfer
            _updateAccountSnapshot(from);
            _updateAccountSnapshot(to);
        }
    }

    function _valueAt(uint256 snapshotId, Snapshots storage snapshots) private view returns (bool, uint256) {
        require(snapshotId > 0, "ERC20Snapshot: id is 0");
        require(snapshotId <= _getCurrentSnapshotId(), "ERC20Snapshot: nonexistent id");

        // When a valid snapshot is queried, there are three possibilities:
        //  a) The queried value was not modified after the snapshot was taken. Therefore, a snapshot entry was never
        //  created for this id, and all stored snapshot ids are smaller than the requested one. The value that corresponds
        //  to this id is the current one.
        //  b) The queried value was modified after the snapshot was taken. Therefore, there will be an entry with the
        //  requested id, and its value is the one to return.
        //  c) More snapshots were created after the requested one, and the queried value was later modified. There will be
        //  no entry for the requested id: the value that corresponds to it is that of the smallest snapshot id that is
        //  larger than the requested one.
        //
        // In summary, we need to find an element in an array, returning the index of the smallest value that is larger if
        // it is not found, unless said value doesn't exist (e.g. when all values are smaller). Arrays.findUpperBound does
        // exactly this.

        uint256 index = snapshots.ids.findUpperBound(snapshotId);

        if (index == snapshots.ids.length) {
            return (false, 0);
        } else {
            return (true, snapshots.values[index]);
        }
    }

    function _updateAccountSnapshot(address account) private {
        _updateSnapshot(_accountBalanceSnapshots[account], balanceOf(account));
    }

    function _updateTotalSupplySnapshot() private {
        _updateSnapshot(_totalSupplySnapshots, totalSupply());
    }

    function _updateSnapshot(Snapshots storage snapshots, uint256 currentValue) private {
        uint256 currentId = _getCurrentSnapshotId();
        if (_lastSnapshotId(snapshots.ids) < currentId) {
            snapshots.ids.push(currentId);
            snapshots.values.push(currentValue);
        }
    }

    function _lastSnapshotId(uint256[] storage ids) private view returns (uint256) {
        if (ids.length == 0) {
            return 0;
        } else {
            return ids[ids.length - 1];
        }
    }
    uint256[46] private __gap;
}

// File: @openzeppelin/[email protected]/token/ERC20/extensions/ERC20BurnableUpgradeable.sol


// OpenZeppelin Contracts v4.4.0 (token/ERC20/extensions/ERC20Burnable.sol)

pragma solidity ^0.8.0;




/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20BurnableUpgradeable is Initializable, ContextUpgradeable, ERC20Upgradeable {
    function __ERC20Burnable_init() internal initializer {
        __Context_init_unchained();
        __ERC20Burnable_init_unchained();
    }

    function __ERC20Burnable_init_unchained() internal initializer {
    }
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        uint256 currentAllowance = allowance(account, _msgSender());
        require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance");
        unchecked {
            _approve(account, _msgSender(), currentAllowance - amount);
        }
        _burn(account, amount);
    }
    uint256[50] private __gap;
}

// File: Strategy.sol


pragma solidity ^0.8.2;











/// @custom:security-contact [email protected]
contract STRATEGY is Initializable, ERC20Upgradeable, ERC20BurnableUpgradeable, ERC20SnapshotUpgradeable, AccessControlUpgradeable, PausableUpgradeable, ERC20PermitUpgradeable, ERC20VotesUpgradeable, ERC20FlashMintUpgradeable, UUPSUpgradeable {
    bytes32 public constant SNAPSHOT_ROLE = keccak256("SNAPSHOT_ROLE");
    bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
    bytes32 public constant UPGRADER_ROLE = keccak256("UPGRADER_ROLE");

    /// @custom:oz-upgrades-unsafe-allow constructor
    constructor() initializer {}

    function initialize() initializer public {
        __ERC20_init("STRATEGY", "STAG");
        __ERC20Burnable_init();
        __ERC20Snapshot_init();
        __AccessControl_init();
        __Pausable_init();
        __ERC20Permit_init("STRATEGY");
        __ERC20FlashMint_init();
        __UUPSUpgradeable_init();

        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _grantRole(SNAPSHOT_ROLE, msg.sender);
        _grantRole(PAUSER_ROLE, msg.sender);
        _mint(msg.sender, 1000 * 10 ** decimals());
        _grantRole(MINTER_ROLE, msg.sender);
        _grantRole(UPGRADER_ROLE, msg.sender);
    }

    function snapshot() public onlyRole(SNAPSHOT_ROLE) {
        _snapshot();
    }

    function pause() public onlyRole(PAUSER_ROLE) {
        _pause();
    }

    function unpause() public onlyRole(PAUSER_ROLE) {
        _unpause();
    }

    function mint(address to, uint256 amount) public onlyRole(MINTER_ROLE) {
        _mint(to, amount);
    }

    function _beforeTokenTransfer(address from, address to, uint256 amount)
        internal
        whenNotPaused
        override(ERC20Upgradeable, ERC20SnapshotUpgradeable)
    {
        super._beforeTokenTransfer(from, to, amount);
    }

    function _authorizeUpgrade(address newImplementation)
        internal
        onlyRole(UPGRADER_ROLE)
        override
    {}

    // The following functions are overrides required by Solidity.

    function _afterTokenTransfer(address from, address to, uint256 amount)
        internal
        override(ERC20Upgradeable, ERC20VotesUpgradeable)
    {
        super._afterTokenTransfer(from, to, amount);
    }

    function _mint(address to, uint256 amount)
        internal
        override(ERC20Upgradeable, ERC20VotesUpgradeable)
    {
        super._mint(to, amount);
    }

    function _burn(address account, uint256 amount)
        internal
        override(ERC20Upgradeable, ERC20VotesUpgradeable)
    {
        super._burn(account, amount);
    }
}

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegator","type":"address"},{"indexed":true,"internalType":"address","name":"fromDelegate","type":"address"},{"indexed":true,"internalType":"address","name":"toDelegate","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"DelegateVotesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Snapshot","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SNAPSHOT_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UPGRADER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"snapshotId","type":"uint256"}],"name":"balanceOfAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint32","name":"pos","type":"uint32"}],"name":"checkpoints","outputs":[{"components":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint224","name":"votes","type":"uint224"}],"internalType":"struct ERC20VotesUpgradeable.Checkpoint","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"}],"name":"delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"delegateBySig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"flashFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC3156FlashBorrowerUpgradeable","name":"receiver","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"flashLoan","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPastTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPastVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"maxFlashLoan","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"snapshot","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":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"snapshotId","type":"uint256"}],"name":"totalSupplyAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"}]

60a06040523060601b6080523480156200001857600080fd5b50600054610100900460ff168062000033575060005460ff16155b6200009b5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b600054610100900460ff16158015620000be576000805461ffff19166101011790555b8015620000d1576000805461ff00191690555b5060805160601c6141196200010660003960008181610b9901528181610bd901528181610dcb0152610e0b01526141196000f3fe6080604052600436106102935760003560e01c80637028e2cd1161015a578063a217fddf116100c1578063d547741f1161007a578063d547741f14610820578063d9d98ce414610840578063dd62ed3e14610860578063e63ab1e9146108a6578063f1127ed8146108c8578063f72c0d8b1461091257600080fd5b8063a217fddf14610757578063a457c2d71461076c578063a9059cbb1461078c578063c3cda520146107ac578063d505accf146107cc578063d5391393146107ec57600080fd5b80638e539e8c116101135780638e539e8c146106ad57806391d14854146106cd57806395d89b41146106ed5780639711715a14610702578063981b24d0146107175780639ab24eb01461073757600080fd5b80637028e2cd146105d957806370a082311461060d57806379cc6790146106435780637ecebe00146106635780638129fc1c146106835780638456cb591461069857600080fd5b80633a46b1a8116101fe578063587cde1e116101b7578063587cde1e146104d95780635c19a95c1461052b5780635c975abb1461054b5780635cffe9de14610564578063613255ab146105845780636fcfff45146105a457600080fd5b80633a46b1a8146104315780633f4ba83a1461045157806340c10f191461046657806342966c68146104865780634ee2cd7e146104a65780634f1ef286146104c657600080fd5b80632f2ff15d116102505780632f2ff15d1461037e578063313ce567146103a05780633644e515146103bc57806336568abe146103d15780633659cfe6146103f1578063395093511461041157600080fd5b806301ffc9a71461029857806306fdde03146102cd578063095ea7b3146102ef57806318160ddd1461030f57806323b872dd1461032e578063248a9ca31461034e575b600080fd5b3480156102a457600080fd5b506102b86102b3366004613b92565b610946565b60405190151581526020015b60405180910390f35b3480156102d957600080fd5b506102e261097d565b6040516102c49190613d48565b3480156102fb57600080fd5b506102b861030a366004613a7e565b610a0f565b34801561031b57600080fd5b506035545b6040519081526020016102c4565b34801561033a57600080fd5b506102b861034936600461390b565b610a25565b34801561035a57600080fd5b50610320610369366004613b3b565b600090815260fb602052604090206001015490565b34801561038a57600080fd5b5061039e610399366004613b6d565b610ad6565b005b3480156103ac57600080fd5b50604051601281526020016102c4565b3480156103c857600080fd5b50610320610b01565b3480156103dd57600080fd5b5061039e6103ec366004613b6d565b610b10565b3480156103fd57600080fd5b5061039e61040c3660046138b5565b610b8e565b34801561041d57600080fd5b506102b861042c366004613a7e565b610c57565b34801561043d57600080fd5b5061032061044c366004613a7e565b610c93565b34801561045d57600080fd5b5061039e610d07565b34801561047257600080fd5b5061039e610481366004613a7e565b610d28565b34801561049257600080fd5b5061039e6104a1366004613b3b565b610d5d565b3480156104b257600080fd5b506103206104c1366004613a7e565b610d67565b61039e6104d43660046139ba565b610dc0565b3480156104e557600080fd5b506105136104f43660046138b5565b6001600160a01b0390811660009081526101c660205260409020541690565b6040516001600160a01b0390911681526020016102c4565b34801561053757600080fd5b5061039e6105463660046138b5565b610e76565b34801561055757600080fd5b5061012d5460ff166102b8565b34801561057057600080fd5b506102b861057f366004613bbc565b610e80565b34801561059057600080fd5b5061032061059f3660046138b5565b61106c565b3480156105b057600080fd5b506105c46105bf3660046138b5565b611094565b60405163ffffffff90911681526020016102c4565b3480156105e557600080fd5b506103207f5fdbd35e8da83ee755d5e62a539e5ed7f47126abede0b8b10f9ea43dc6eed07f81565b34801561061957600080fd5b506103206106283660046138b5565b6001600160a01b031660009081526033602052604090205490565b34801561064f57600080fd5b5061039e61065e366004613a7e565b6110b7565b34801561066f57600080fd5b5061032061067e3660046138b5565b611138565b34801561068f57600080fd5b5061039e611157565b3480156106a457600080fd5b5061039e611323565b3480156106b957600080fd5b506103206106c8366004613b3b565b611344565b3480156106d957600080fd5b506102b86106e8366004613b6d565b6113a1565b3480156106f957600080fd5b506102e26113cc565b34801561070e57600080fd5b5061039e6113db565b34801561072357600080fd5b50610320610732366004613b3b565b61140e565b34801561074357600080fd5b506103206107523660046138b5565b611439565b34801561076357600080fd5b50610320600081565b34801561077857600080fd5b506102b8610787366004613a7e565b6114c2565b34801561079857600080fd5b506102b86107a7366004613a7e565b61155b565b3480156107b857600080fd5b5061039e6107c7366004613aaa565b611568565b3480156107d857600080fd5b5061039e6107e736600461394c565b61169e565b3480156107f857600080fd5b506103207f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b34801561082c57600080fd5b5061039e61083b366004613b6d565b6117e5565b34801561084c57600080fd5b5061032061085b366004613a7e565b61180b565b34801561086c57600080fd5b5061032061087b3660046138d2565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b3480156108b257600080fd5b5061032060008051602061409d83398151915281565b3480156108d457600080fd5b506108e86108e3366004613b04565b61186e565b60408051825163ffffffff1681526020928301516001600160e01b031692810192909252016102c4565b34801561091e57600080fd5b506103207f189ab7a9244df0848122154315af71fe140f3db0fe014031783b0946b8c9d2e381565b60006001600160e01b03198216637965db0b60e01b148061097757506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606036805461098c90613ffa565b80601f01602080910402602001604051908101604052809291908181526020018280546109b890613ffa565b8015610a055780601f106109da57610100808354040283529160200191610a05565b820191906000526020600020905b8154815290600101906020018083116109e857829003601f168201915b5050505050905090565b6000610a1c3384846118f3565b50600192915050565b6000610a32848484611a17565b6001600160a01b038416600090815260346020908152604080832033845290915290205482811015610abc5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b610ac985338584036118f3565b60019150505b9392505050565b600082815260fb6020526040902060010154610af28133611bfc565b610afc8383611c60565b505050565b6000610b0b611ce6565b905090565b6001600160a01b0381163314610b805760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610ab3565b610b8a8282611d63565b5050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161415610bd75760405162461bcd60e51b8152600401610ab390613d7b565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610c09611dca565b6001600160a01b031614610c2f5760405162461bcd60e51b8152600401610ab390613dc7565b610c3881611df8565b60408051600080825260208201909252610c5491839190611e23565b50565b3360008181526034602090815260408083206001600160a01b03871684529091528120549091610a1c918590610c8e908690613e61565b6118f3565b6000438210610ce45760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e6564006044820152606401610ab3565b6001600160a01b03831660009081526101c760205260409020610acf9083611f6e565b60008051602061409d833981519152610d208133611bfc565b610c5461202b565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610d538133611bfc565b610afc83836120c0565b610c5433826120ca565b6001600160a01b038216600090815260976020526040812081908190610d8e9085906120d4565b9150915081610db5576001600160a01b038516600090815260336020526040902054610db7565b805b95945050505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161415610e095760405162461bcd60e51b8152600401610ab390613d7b565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610e3b611dca565b6001600160a01b031614610e615760405162461bcd60e51b8152600401610ab390613dc7565b610e6a82611df8565b610b8a82826001611e23565b610c5433826121d1565b600080610e8d868661180b565b9050610e9987866120c0565b6040516323e30c8b60e01b81527f439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd9906001600160a01b038916906323e30c8b90610ef19033908b908b9088908c908c90600401613cec565b602060405180830381600087803b158015610f0b57600080fd5b505af1158015610f1f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f439190613b54565b14610f9c5760405162461bcd60e51b8152602060048201526024808201527f4552433230466c6173684d696e743a20696e76616c69642072657475726e2076604482015263616c756560e01b6064820152608401610ab3565b6001600160a01b0387166000908152603460209081526040808320308452909152902054610fca8287613e61565b8110156110315760405162461bcd60e51b815260206004820152602f60248201527f4552433230466c6173684d696e743a20616c6c6f77616e636520646f6573206e60448201526e1bdd08185b1b1bddc81c99599d5b99608a1b6064820152608401610ab3565b61104b8830846110418a86613fa0565b610c8e9190613fa0565b61105e886110598489613e61565b6120ca565b506001979650505050505050565b60006001600160a01b0382163014611085576000610977565b60355461097790600019613fa0565b6001600160a01b03811660009081526101c760205260408120546109779061224c565b60006110c3833361087b565b9050818110156111215760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b6064820152608401610ab3565b61112e83338484036118f3565b610afc83836120ca565b6001600160a01b03811660009081526101936020526040812054610977565b600054610100900460ff1680611170575060005460ff16155b61118c5760405162461bcd60e51b8152600401610ab390613e13565b600054610100900460ff161580156111ae576000805461ffff19166101011790555b6111f460405180604001604052806008815260200167535452415445475960c01b815250604051806040016040528060048152602001635354414760e01b8152506122b5565b6111fc612334565b611204612334565b61120c61239b565b6112146123fa565b61123d60405180604001604052806008815260200167535452415445475960c01b815250612461565b611245612334565b61124d612334565b611258600033611c60565b6112827f5fdbd35e8da83ee755d5e62a539e5ed7f47126abede0b8b10f9ea43dc6eed07f33611c60565b61129a60008051602061409d83398151915233611c60565b6112bb336112aa6012600a613ed6565b6112b6906103e8613f81565b6120c0565b6112e57f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633611c60565b61130f7f189ab7a9244df0848122154315af71fe140f3db0fe014031783b0946b8c9d2e333611c60565b8015610c54576000805461ff001916905550565b60008051602061409d83398151915261133c8133611bfc565b610c54612501565b60004382106113955760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e6564006044820152606401610ab3565b6109776101c883611f6e565b600091825260fb602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60606037805461098c90613ffa565b7f5fdbd35e8da83ee755d5e62a539e5ed7f47126abede0b8b10f9ea43dc6eed07f6114068133611bfc565b610b8a61257e565b600080600061141e8460986120d4565b915091508161142f57603554611431565b805b949350505050565b6001600160a01b03811660009081526101c7602052604081205480156114af576001600160a01b03831660009081526101c76020526040902061147d600183613fa0565b8154811061148d5761148d61405b565b60009182526020909120015464010000000090046001600160e01b03166114b2565b60005b6001600160e01b03169392505050565b3360009081526034602090815260408083206001600160a01b0386168452909152812054828110156115445760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610ab3565b61155133858584036118f3565b5060019392505050565b6000610a1c338484611a17565b834211156115b85760405162461bcd60e51b815260206004820152601d60248201527f4552433230566f7465733a207369676e617475726520657870697265640000006044820152606401610ab3565b604080517fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60208201526001600160a01b0388169181019190915260608101869052608081018590526000906116329061162a9060a001604051602081830303815290604052805190602001206125d8565b858585612626565b905061163d8161264e565b861461168b5760405162461bcd60e51b815260206004820152601960248201527f4552433230566f7465733a20696e76616c6964206e6f6e6365000000000000006044820152606401610ab3565b61169581886121d1565b50505050505050565b834211156116ee5760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610ab3565b6000610194548888886117008c61264e565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e001604051602081830303815290604052805190602001209050600061175b826125d8565b9050600061176b82878787612626565b9050896001600160a01b0316816001600160a01b0316146117ce5760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610ab3565b6117d98a8a8a6118f3565b50505050505050505050565b600082815260fb60205260409020600101546118018133611bfc565b610afc8383611d63565b60006001600160a01b03831630146118655760405162461bcd60e51b815260206004820152601b60248201527f4552433230466c6173684d696e743a2077726f6e6720746f6b656e00000000006044820152606401610ab3565b50600092915050565b60408051808201909152600080825260208201526001600160a01b03831660009081526101c760205260409020805463ffffffff84169081106118b3576118b361405b565b60009182526020918290206040805180820190915291015463ffffffff8116825264010000000090046001600160e01b0316918101919091529392505050565b6001600160a01b0383166119555760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610ab3565b6001600160a01b0382166119b65760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610ab3565b6001600160a01b0383811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316611a7b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610ab3565b6001600160a01b038216611add5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610ab3565b611ae8838383612677565b6001600160a01b03831660009081526033602052604090205481811015611b605760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610ab3565b6001600160a01b03808516600090815260336020526040808220858503905591851681529081208054849290611b97908490613e61565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611be391815260200190565b60405180910390a3611bf68484846126c9565b50505050565b611c0682826113a1565b610b8a57611c1e816001600160a01b031660146126d4565b611c298360206126d4565b604051602001611c3a929190613c77565b60408051601f198184030181529082905262461bcd60e51b8252610ab391600401613d48565b611c6a82826113a1565b610b8a57600082815260fb602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611ca23390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000610b0b7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f611d1661015f5490565b610160546040805160208101859052908101839052606081018290524660808201523060a082015260009060c0016040516020818303038152906040528051906020012090509392505050565b611d6d82826113a1565b15610b8a57600082815260fb602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b7f189ab7a9244df0848122154315af71fe140f3db0fe014031783b0946b8c9d2e3610b8a8133611bfc565b6000611e2d611dca565b9050611e3884612870565b600083511180611e455750815b15611e5657611e548484612915565b505b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143805460ff16611f6757805460ff191660011781556040516001600160a01b0383166024820152611ed590869060440160408051601f198184030181529190526020810180516001600160e01b0316631b2ce7f360e11b179052612915565b50805460ff19168155611ee6611dca565b6001600160a01b0316826001600160a01b031614611f5e5760405162461bcd60e51b815260206004820152602f60248201527f45524331393637557067726164653a207570677261646520627265616b73206660448201526e75727468657220757067726164657360881b6064820152608401610ab3565b611f67856129f7565b5050505050565b8154600090815b81811015611fd2576000611f898284612a37565b905084868281548110611f9e57611f9e61405b565b60009182526020909120015463ffffffff161115611fbe57809250611fcc565b611fc9816001613e61565b91505b50611f75565b81156120165784611fe4600184613fa0565b81548110611ff457611ff461405b565b60009182526020909120015464010000000090046001600160e01b0316612019565b60005b6001600160e01b031695945050505050565b61012d5460ff166120755760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610ab3565b61012d805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610b8a8282612a52565b610b8a8282612add565b600080600084116121205760405162461bcd60e51b815260206004820152601660248201527504552433230536e617073686f743a20696420697320360541b6044820152606401610ab3565b612128612af6565b8411156121775760405162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e742069640000006044820152606401610ab3565b60006121838486612b01565b845490915081141561219c5760008092509250506121ca565b60018460010182815481106121b3576121b361405b565b906000526020600020015492509250506121ca565b505b9250929050565b6001600160a01b0382811660008181526101c66020818152604080842080546033845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4611bf6828483612bc4565b600063ffffffff8211156122b15760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b6064820152608401610ab3565b5090565b600054610100900460ff16806122ce575060005460ff16155b6122ea5760405162461bcd60e51b8152600401610ab390613e13565b600054610100900460ff1615801561230c576000805461ffff19166101011790555b612314612d03565b61231e8383612d6d565b8015610afc576000805461ff0019169055505050565b600054610100900460ff168061234d575060005460ff16155b6123695760405162461bcd60e51b8152600401610ab390613e13565b600054610100900460ff1615801561238b576000805461ffff19166101011790555b612393612d03565b61130f612d03565b600054610100900460ff16806123b4575060005460ff16155b6123d05760405162461bcd60e51b8152600401610ab390613e13565b600054610100900460ff161580156123f2576000805461ffff19166101011790555b61238b612d03565b600054610100900460ff1680612413575060005460ff16155b61242f5760405162461bcd60e51b8152600401610ab390613e13565b600054610100900460ff16158015612451576000805461ffff19166101011790555b612459612d03565b61130f612e02565b600054610100900460ff168061247a575060005460ff16155b6124965760405162461bcd60e51b8152600401610ab390613e13565b600054610100900460ff161580156124b8576000805461ffff19166101011790555b6124c0612d03565b6124e382604051806040016040528060018152602001603160f81b815250612e78565b6124ec82612f04565b8015610b8a576000805461ff00191690555050565b61012d5460ff16156125485760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610ab3565b61012d805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120a33390565b600061258e609a80546001019055565b6000612598612af6565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb67816040516125cb91815260200190565b60405180910390a1919050565b60006109776125e5611ce6565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b600080600061263787878787612f95565b9150915061264481613082565b5095945050505050565b6001600160a01b0381166000908152610193602052604090208054600181018255905b50919050565b61012d5460ff16156126be5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610ab3565b610afc83838361323d565b610afc838383613285565b606060006126e3836002613f81565b6126ee906002613e61565b67ffffffffffffffff81111561270657612706614071565b6040519080825280601f01601f191660200182016040528015612730576020820181803683370190505b509050600360fc1b8160008151811061274b5761274b61405b565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061277a5761277a61405b565b60200101906001600160f81b031916908160001a905350600061279e846002613f81565b6127a9906001613e61565b90505b6001811115612821576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106127dd576127dd61405b565b1a60f81b8282815181106127f3576127f361405b565b60200101906001600160f81b031916908160001a90535060049490941c9361281a81613fe3565b90506127ac565b508315610acf5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610ab3565b803b6128d45760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610ab3565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060823b6129745760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610ab3565b600080846001600160a01b03168460405161298f9190613c5b565b600060405180830381855af49150503d80600081146129ca576040519150601f19603f3d011682016040523d82523d6000602084013e6129cf565b606091505b5091509150610db782826040518060600160405280602781526020016140bd602791396132b8565b612a0081612870565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6000612a466002848418613e79565b610acf90848416613e61565b612a5c82826132f1565b6035546001600160e01b031015612ace5760405162461bcd60e51b815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201526f766572666c6f77696e6720766f74657360801b6064820152608401610ab3565b611bf66101c86133e4836133f0565b612ae78282613569565b611bf66101c86136ca836133f0565b6000610b0b609a5490565b8154600090612b1257506000610977565b82546000905b80821015612b6e576000612b2c8383612a37565b905084868281548110612b4157612b4161405b565b90600052602060002001541115612b5a57809150612b68565b612b65816001613e61565b92505b50612b18565b600082118015612ba357508385612b86600185613fa0565b81548110612b9657612b9661405b565b9060005260206000200154145b15612bbc57612bb3600183613fa0565b92505050610977565b509050610977565b816001600160a01b0316836001600160a01b031614158015612be65750600081115b15610afc576001600160a01b03831615612c75576001600160a01b03831660009081526101c7602052604081208190612c22906136ca856133f0565b91509150846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051612c6a929190918252602082015260400190565b60405180910390a250505b6001600160a01b03821615610afc576001600160a01b03821660009081526101c7602052604081208190612cac906133e4856133f0565b91509150836001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051612cf4929190918252602082015260400190565b60405180910390a25050505050565b600054610100900460ff1680612d1c575060005460ff16155b612d385760405162461bcd60e51b8152600401610ab390613e13565b600054610100900460ff1615801561130f576000805461ffff19166101011790558015610c54576000805461ff001916905550565b600054610100900460ff1680612d86575060005460ff16155b612da25760405162461bcd60e51b8152600401610ab390613e13565b600054610100900460ff16158015612dc4576000805461ffff19166101011790555b8251612dd7906036906020860190613814565b508151612deb906037906020850190613814565b508015610afc576000805461ff0019169055505050565b600054610100900460ff1680612e1b575060005460ff16155b612e375760405162461bcd60e51b8152600401610ab390613e13565b600054610100900460ff16158015612e59576000805461ffff19166101011790555b61012d805460ff191690558015610c54576000805461ff001916905550565b600054610100900460ff1680612e91575060005460ff16155b612ead5760405162461bcd60e51b8152600401610ab390613e13565b600054610100900460ff16158015612ecf576000805461ffff19166101011790555b825160208085019190912083519184019190912061015f91909155610160558015610afc576000805461ff0019169055505050565b600054610100900460ff1680612f1d575060005460ff16155b612f395760405162461bcd60e51b8152600401610ab390613e13565b600054610100900460ff16158015612f5b576000805461ffff19166101011790555b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9610194558015610b8a576000805461ff00191690555050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612fcc5750600090506003613079565b8460ff16601b14158015612fe457508460ff16601c14155b15612ff55750600090506004613079565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613049573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661307257600060019250925050613079565b9150600090505b94509492505050565b600081600481111561309657613096614045565b141561309f5750565b60018160048111156130b3576130b3614045565b14156131015760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610ab3565b600281600481111561311557613115614045565b14156131635760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610ab3565b600381600481111561317757613177614045565b14156131d05760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610ab3565b60048160048111156131e4576131e4614045565b1415610c545760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610ab3565b6001600160a01b03831661325c57613254826136d6565b610afc613709565b6001600160a01b03821661327357613254836136d6565b61327c836136d6565b610afc826136d6565b6001600160a01b0383811660009081526101c66020526040808220548584168352912054610afc92918216911683612bc4565b606083156132c7575081610acf565b8251156132d75782518084602001fd5b8160405162461bcd60e51b8152600401610ab39190613d48565b6001600160a01b0382166133475760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610ab3565b61335360008383612677565b80603560008282546133659190613e61565b90915550506001600160a01b03821660009081526033602052604081208054839290613392908490613e61565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3610b8a600083836126c9565b6000610acf8284613e61565b82546000908190801561343b5785613409600183613fa0565b815481106134195761341961405b565b60009182526020909120015464010000000090046001600160e01b031661343e565b60005b6001600160e01b0316925061345783858763ffffffff16565b915060008111801561349557504386613471600184613fa0565b815481106134815761348161405b565b60009182526020909120015463ffffffff16145b156134f5576134a382613719565b866134af600184613fa0565b815481106134bf576134bf61405b565b9060005260206000200160000160046101000a8154816001600160e01b0302191690836001600160e01b03160217905550613560565b85604051806040016040528061350a4361224c565b63ffffffff16815260200161351e85613719565b6001600160e01b0390811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff909316929092179101555b50935093915050565b6001600160a01b0382166135c95760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610ab3565b6135d582600083612677565b6001600160a01b038216600090815260336020526040902054818110156136495760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610ab3565b6001600160a01b0383166000908152603360205260408120838303905560358054849290613678908490613fa0565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3610afc836000846126c9565b6000610acf8284613fa0565b6001600160a01b0381166000908152609760209081526040808320603390925290912054610c549190613782565b613782565b613717609861370460355490565b565b60006001600160e01b038211156122b15760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20326044820152663234206269747360c81b6064820152608401610ab3565b600061378c612af6565b905080613798846137cc565b1015610afc578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b80546000906137dd57506000919050565b815482906137ed90600190613fa0565b815481106137fd576137fd61405b565b90600052602060002001549050919050565b919050565b82805461382090613ffa565b90600052602060002090601f0160209004810192826138425760008555613888565b82601f1061385b57805160ff1916838001178555613888565b82800160010185558215613888579182015b8281111561388857825182559160200191906001019061386d565b506122b19291505b808211156122b15760008155600101613890565b803560ff8116811461380f57600080fd5b6000602082840312156138c757600080fd5b8135610acf81614087565b600080604083850312156138e557600080fd5b82356138f081614087565b9150602083013561390081614087565b809150509250929050565b60008060006060848603121561392057600080fd5b833561392b81614087565b9250602084013561393b81614087565b929592945050506040919091013590565b600080600080600080600060e0888a03121561396757600080fd5b873561397281614087565b9650602088013561398281614087565b9550604088013594506060880135935061399e608089016138a4565b925060a0880135915060c0880135905092959891949750929550565b600080604083850312156139cd57600080fd5b82356139d881614087565b9150602083013567ffffffffffffffff808211156139f557600080fd5b818501915085601f830112613a0957600080fd5b813581811115613a1b57613a1b614071565b604051601f8201601f19908116603f01168101908382118183101715613a4357613a43614071565b81604052828152886020848701011115613a5c57600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60008060408385031215613a9157600080fd5b8235613a9c81614087565b946020939093013593505050565b60008060008060008060c08789031215613ac357600080fd5b8635613ace81614087565b95506020870135945060408701359350613aea606088016138a4565b92506080870135915060a087013590509295509295509295565b60008060408385031215613b1757600080fd5b8235613b2281614087565b9150602083013563ffffffff8116811461390057600080fd5b600060208284031215613b4d57600080fd5b5035919050565b600060208284031215613b6657600080fd5b5051919050565b60008060408385031215613b8057600080fd5b82359150602083013561390081614087565b600060208284031215613ba457600080fd5b81356001600160e01b031981168114610acf57600080fd5b600080600080600060808688031215613bd457600080fd5b8535613bdf81614087565b94506020860135613bef81614087565b935060408601359250606086013567ffffffffffffffff80821115613c1357600080fd5b818801915088601f830112613c2757600080fd5b813581811115613c3657600080fd5b896020828501011115613c4857600080fd5b9699959850939650602001949392505050565b60008251613c6d818460208701613fb7565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613caf816017850160208801613fb7565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613ce0816028840160208801613fb7565b01602801949350505050565b6001600160a01b03878116825286166020820152604081018590526060810184905260a06080820181905281018290526000828460c0840137600060c0848401015260c0601f19601f8501168301019050979650505050505050565b6020815260008251806020840152613d67816040850160208701613fb7565b601f01601f19169190910160400192915050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b60008219821115613e7457613e7461402f565b500190565b600082613e9657634e487b7160e01b600052601260045260246000fd5b500490565b600181815b808511156121c8578160001904821115613ebc57613ebc61402f565b80851615613ec957918102915b93841c9390800290613ea0565b6000610acf60ff841683600082613eef57506001610977565b81613efc57506000610977565b8160018114613f125760028114613f1c57613f38565b6001915050610977565b60ff841115613f2d57613f2d61402f565b50506001821b610977565b5060208310610133831016604e8410600b8410161715613f5b575081810a610977565b613f658383613e9b565b8060001904821115613f7957613f7961402f565b029392505050565b6000816000190483118215151615613f9b57613f9b61402f565b500290565b600082821015613fb257613fb261402f565b500390565b60005b83811015613fd2578181015183820152602001613fba565b83811115611bf65750506000910152565b600081613ff257613ff261402f565b506000190190565b600181811c9082168061400e57607f821691505b6020821081141561267157634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610c5457600080fdfe65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122066a835f8b71cff8464d76600e353b59a6e034e4af4422fd80967e79a7743c1cc64736f6c63430008070033

Deployed Bytecode

0x6080604052600436106102935760003560e01c80637028e2cd1161015a578063a217fddf116100c1578063d547741f1161007a578063d547741f14610820578063d9d98ce414610840578063dd62ed3e14610860578063e63ab1e9146108a6578063f1127ed8146108c8578063f72c0d8b1461091257600080fd5b8063a217fddf14610757578063a457c2d71461076c578063a9059cbb1461078c578063c3cda520146107ac578063d505accf146107cc578063d5391393146107ec57600080fd5b80638e539e8c116101135780638e539e8c146106ad57806391d14854146106cd57806395d89b41146106ed5780639711715a14610702578063981b24d0146107175780639ab24eb01461073757600080fd5b80637028e2cd146105d957806370a082311461060d57806379cc6790146106435780637ecebe00146106635780638129fc1c146106835780638456cb591461069857600080fd5b80633a46b1a8116101fe578063587cde1e116101b7578063587cde1e146104d95780635c19a95c1461052b5780635c975abb1461054b5780635cffe9de14610564578063613255ab146105845780636fcfff45146105a457600080fd5b80633a46b1a8146104315780633f4ba83a1461045157806340c10f191461046657806342966c68146104865780634ee2cd7e146104a65780634f1ef286146104c657600080fd5b80632f2ff15d116102505780632f2ff15d1461037e578063313ce567146103a05780633644e515146103bc57806336568abe146103d15780633659cfe6146103f1578063395093511461041157600080fd5b806301ffc9a71461029857806306fdde03146102cd578063095ea7b3146102ef57806318160ddd1461030f57806323b872dd1461032e578063248a9ca31461034e575b600080fd5b3480156102a457600080fd5b506102b86102b3366004613b92565b610946565b60405190151581526020015b60405180910390f35b3480156102d957600080fd5b506102e261097d565b6040516102c49190613d48565b3480156102fb57600080fd5b506102b861030a366004613a7e565b610a0f565b34801561031b57600080fd5b506035545b6040519081526020016102c4565b34801561033a57600080fd5b506102b861034936600461390b565b610a25565b34801561035a57600080fd5b50610320610369366004613b3b565b600090815260fb602052604090206001015490565b34801561038a57600080fd5b5061039e610399366004613b6d565b610ad6565b005b3480156103ac57600080fd5b50604051601281526020016102c4565b3480156103c857600080fd5b50610320610b01565b3480156103dd57600080fd5b5061039e6103ec366004613b6d565b610b10565b3480156103fd57600080fd5b5061039e61040c3660046138b5565b610b8e565b34801561041d57600080fd5b506102b861042c366004613a7e565b610c57565b34801561043d57600080fd5b5061032061044c366004613a7e565b610c93565b34801561045d57600080fd5b5061039e610d07565b34801561047257600080fd5b5061039e610481366004613a7e565b610d28565b34801561049257600080fd5b5061039e6104a1366004613b3b565b610d5d565b3480156104b257600080fd5b506103206104c1366004613a7e565b610d67565b61039e6104d43660046139ba565b610dc0565b3480156104e557600080fd5b506105136104f43660046138b5565b6001600160a01b0390811660009081526101c660205260409020541690565b6040516001600160a01b0390911681526020016102c4565b34801561053757600080fd5b5061039e6105463660046138b5565b610e76565b34801561055757600080fd5b5061012d5460ff166102b8565b34801561057057600080fd5b506102b861057f366004613bbc565b610e80565b34801561059057600080fd5b5061032061059f3660046138b5565b61106c565b3480156105b057600080fd5b506105c46105bf3660046138b5565b611094565b60405163ffffffff90911681526020016102c4565b3480156105e557600080fd5b506103207f5fdbd35e8da83ee755d5e62a539e5ed7f47126abede0b8b10f9ea43dc6eed07f81565b34801561061957600080fd5b506103206106283660046138b5565b6001600160a01b031660009081526033602052604090205490565b34801561064f57600080fd5b5061039e61065e366004613a7e565b6110b7565b34801561066f57600080fd5b5061032061067e3660046138b5565b611138565b34801561068f57600080fd5b5061039e611157565b3480156106a457600080fd5b5061039e611323565b3480156106b957600080fd5b506103206106c8366004613b3b565b611344565b3480156106d957600080fd5b506102b86106e8366004613b6d565b6113a1565b3480156106f957600080fd5b506102e26113cc565b34801561070e57600080fd5b5061039e6113db565b34801561072357600080fd5b50610320610732366004613b3b565b61140e565b34801561074357600080fd5b506103206107523660046138b5565b611439565b34801561076357600080fd5b50610320600081565b34801561077857600080fd5b506102b8610787366004613a7e565b6114c2565b34801561079857600080fd5b506102b86107a7366004613a7e565b61155b565b3480156107b857600080fd5b5061039e6107c7366004613aaa565b611568565b3480156107d857600080fd5b5061039e6107e736600461394c565b61169e565b3480156107f857600080fd5b506103207f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b34801561082c57600080fd5b5061039e61083b366004613b6d565b6117e5565b34801561084c57600080fd5b5061032061085b366004613a7e565b61180b565b34801561086c57600080fd5b5061032061087b3660046138d2565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b3480156108b257600080fd5b5061032060008051602061409d83398151915281565b3480156108d457600080fd5b506108e86108e3366004613b04565b61186e565b60408051825163ffffffff1681526020928301516001600160e01b031692810192909252016102c4565b34801561091e57600080fd5b506103207f189ab7a9244df0848122154315af71fe140f3db0fe014031783b0946b8c9d2e381565b60006001600160e01b03198216637965db0b60e01b148061097757506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606036805461098c90613ffa565b80601f01602080910402602001604051908101604052809291908181526020018280546109b890613ffa565b8015610a055780601f106109da57610100808354040283529160200191610a05565b820191906000526020600020905b8154815290600101906020018083116109e857829003601f168201915b5050505050905090565b6000610a1c3384846118f3565b50600192915050565b6000610a32848484611a17565b6001600160a01b038416600090815260346020908152604080832033845290915290205482811015610abc5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b610ac985338584036118f3565b60019150505b9392505050565b600082815260fb6020526040902060010154610af28133611bfc565b610afc8383611c60565b505050565b6000610b0b611ce6565b905090565b6001600160a01b0381163314610b805760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610ab3565b610b8a8282611d63565b5050565b306001600160a01b037f000000000000000000000000a6e2f7376d2df3ca389b4912aaecc0b198412c3f161415610bd75760405162461bcd60e51b8152600401610ab390613d7b565b7f000000000000000000000000a6e2f7376d2df3ca389b4912aaecc0b198412c3f6001600160a01b0316610c09611dca565b6001600160a01b031614610c2f5760405162461bcd60e51b8152600401610ab390613dc7565b610c3881611df8565b60408051600080825260208201909252610c5491839190611e23565b50565b3360008181526034602090815260408083206001600160a01b03871684529091528120549091610a1c918590610c8e908690613e61565b6118f3565b6000438210610ce45760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e6564006044820152606401610ab3565b6001600160a01b03831660009081526101c760205260409020610acf9083611f6e565b60008051602061409d833981519152610d208133611bfc565b610c5461202b565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610d538133611bfc565b610afc83836120c0565b610c5433826120ca565b6001600160a01b038216600090815260976020526040812081908190610d8e9085906120d4565b9150915081610db5576001600160a01b038516600090815260336020526040902054610db7565b805b95945050505050565b306001600160a01b037f000000000000000000000000a6e2f7376d2df3ca389b4912aaecc0b198412c3f161415610e095760405162461bcd60e51b8152600401610ab390613d7b565b7f000000000000000000000000a6e2f7376d2df3ca389b4912aaecc0b198412c3f6001600160a01b0316610e3b611dca565b6001600160a01b031614610e615760405162461bcd60e51b8152600401610ab390613dc7565b610e6a82611df8565b610b8a82826001611e23565b610c5433826121d1565b600080610e8d868661180b565b9050610e9987866120c0565b6040516323e30c8b60e01b81527f439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd9906001600160a01b038916906323e30c8b90610ef19033908b908b9088908c908c90600401613cec565b602060405180830381600087803b158015610f0b57600080fd5b505af1158015610f1f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f439190613b54565b14610f9c5760405162461bcd60e51b8152602060048201526024808201527f4552433230466c6173684d696e743a20696e76616c69642072657475726e2076604482015263616c756560e01b6064820152608401610ab3565b6001600160a01b0387166000908152603460209081526040808320308452909152902054610fca8287613e61565b8110156110315760405162461bcd60e51b815260206004820152602f60248201527f4552433230466c6173684d696e743a20616c6c6f77616e636520646f6573206e60448201526e1bdd08185b1b1bddc81c99599d5b99608a1b6064820152608401610ab3565b61104b8830846110418a86613fa0565b610c8e9190613fa0565b61105e886110598489613e61565b6120ca565b506001979650505050505050565b60006001600160a01b0382163014611085576000610977565b60355461097790600019613fa0565b6001600160a01b03811660009081526101c760205260408120546109779061224c565b60006110c3833361087b565b9050818110156111215760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b6064820152608401610ab3565b61112e83338484036118f3565b610afc83836120ca565b6001600160a01b03811660009081526101936020526040812054610977565b600054610100900460ff1680611170575060005460ff16155b61118c5760405162461bcd60e51b8152600401610ab390613e13565b600054610100900460ff161580156111ae576000805461ffff19166101011790555b6111f460405180604001604052806008815260200167535452415445475960c01b815250604051806040016040528060048152602001635354414760e01b8152506122b5565b6111fc612334565b611204612334565b61120c61239b565b6112146123fa565b61123d60405180604001604052806008815260200167535452415445475960c01b815250612461565b611245612334565b61124d612334565b611258600033611c60565b6112827f5fdbd35e8da83ee755d5e62a539e5ed7f47126abede0b8b10f9ea43dc6eed07f33611c60565b61129a60008051602061409d83398151915233611c60565b6112bb336112aa6012600a613ed6565b6112b6906103e8613f81565b6120c0565b6112e57f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633611c60565b61130f7f189ab7a9244df0848122154315af71fe140f3db0fe014031783b0946b8c9d2e333611c60565b8015610c54576000805461ff001916905550565b60008051602061409d83398151915261133c8133611bfc565b610c54612501565b60004382106113955760405162461bcd60e51b815260206004820152601f60248201527f4552433230566f7465733a20626c6f636b206e6f7420796574206d696e6564006044820152606401610ab3565b6109776101c883611f6e565b600091825260fb602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60606037805461098c90613ffa565b7f5fdbd35e8da83ee755d5e62a539e5ed7f47126abede0b8b10f9ea43dc6eed07f6114068133611bfc565b610b8a61257e565b600080600061141e8460986120d4565b915091508161142f57603554611431565b805b949350505050565b6001600160a01b03811660009081526101c7602052604081205480156114af576001600160a01b03831660009081526101c76020526040902061147d600183613fa0565b8154811061148d5761148d61405b565b60009182526020909120015464010000000090046001600160e01b03166114b2565b60005b6001600160e01b03169392505050565b3360009081526034602090815260408083206001600160a01b0386168452909152812054828110156115445760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610ab3565b61155133858584036118f3565b5060019392505050565b6000610a1c338484611a17565b834211156115b85760405162461bcd60e51b815260206004820152601d60248201527f4552433230566f7465733a207369676e617475726520657870697265640000006044820152606401610ab3565b604080517fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60208201526001600160a01b0388169181019190915260608101869052608081018590526000906116329061162a9060a001604051602081830303815290604052805190602001206125d8565b858585612626565b905061163d8161264e565b861461168b5760405162461bcd60e51b815260206004820152601960248201527f4552433230566f7465733a20696e76616c6964206e6f6e6365000000000000006044820152606401610ab3565b61169581886121d1565b50505050505050565b834211156116ee5760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610ab3565b6000610194548888886117008c61264e565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e001604051602081830303815290604052805190602001209050600061175b826125d8565b9050600061176b82878787612626565b9050896001600160a01b0316816001600160a01b0316146117ce5760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610ab3565b6117d98a8a8a6118f3565b50505050505050505050565b600082815260fb60205260409020600101546118018133611bfc565b610afc8383611d63565b60006001600160a01b03831630146118655760405162461bcd60e51b815260206004820152601b60248201527f4552433230466c6173684d696e743a2077726f6e6720746f6b656e00000000006044820152606401610ab3565b50600092915050565b60408051808201909152600080825260208201526001600160a01b03831660009081526101c760205260409020805463ffffffff84169081106118b3576118b361405b565b60009182526020918290206040805180820190915291015463ffffffff8116825264010000000090046001600160e01b0316918101919091529392505050565b6001600160a01b0383166119555760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610ab3565b6001600160a01b0382166119b65760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610ab3565b6001600160a01b0383811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316611a7b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610ab3565b6001600160a01b038216611add5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610ab3565b611ae8838383612677565b6001600160a01b03831660009081526033602052604090205481811015611b605760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610ab3565b6001600160a01b03808516600090815260336020526040808220858503905591851681529081208054849290611b97908490613e61565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611be391815260200190565b60405180910390a3611bf68484846126c9565b50505050565b611c0682826113a1565b610b8a57611c1e816001600160a01b031660146126d4565b611c298360206126d4565b604051602001611c3a929190613c77565b60408051601f198184030181529082905262461bcd60e51b8252610ab391600401613d48565b611c6a82826113a1565b610b8a57600082815260fb602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611ca23390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000610b0b7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f611d1661015f5490565b610160546040805160208101859052908101839052606081018290524660808201523060a082015260009060c0016040516020818303038152906040528051906020012090509392505050565b611d6d82826113a1565b15610b8a57600082815260fb602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b7f189ab7a9244df0848122154315af71fe140f3db0fe014031783b0946b8c9d2e3610b8a8133611bfc565b6000611e2d611dca565b9050611e3884612870565b600083511180611e455750815b15611e5657611e548484612915565b505b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143805460ff16611f6757805460ff191660011781556040516001600160a01b0383166024820152611ed590869060440160408051601f198184030181529190526020810180516001600160e01b0316631b2ce7f360e11b179052612915565b50805460ff19168155611ee6611dca565b6001600160a01b0316826001600160a01b031614611f5e5760405162461bcd60e51b815260206004820152602f60248201527f45524331393637557067726164653a207570677261646520627265616b73206660448201526e75727468657220757067726164657360881b6064820152608401610ab3565b611f67856129f7565b5050505050565b8154600090815b81811015611fd2576000611f898284612a37565b905084868281548110611f9e57611f9e61405b565b60009182526020909120015463ffffffff161115611fbe57809250611fcc565b611fc9816001613e61565b91505b50611f75565b81156120165784611fe4600184613fa0565b81548110611ff457611ff461405b565b60009182526020909120015464010000000090046001600160e01b0316612019565b60005b6001600160e01b031695945050505050565b61012d5460ff166120755760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610ab3565b61012d805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610b8a8282612a52565b610b8a8282612add565b600080600084116121205760405162461bcd60e51b815260206004820152601660248201527504552433230536e617073686f743a20696420697320360541b6044820152606401610ab3565b612128612af6565b8411156121775760405162461bcd60e51b815260206004820152601d60248201527f4552433230536e617073686f743a206e6f6e6578697374656e742069640000006044820152606401610ab3565b60006121838486612b01565b845490915081141561219c5760008092509250506121ca565b60018460010182815481106121b3576121b361405b565b906000526020600020015492509250506121ca565b505b9250929050565b6001600160a01b0382811660008181526101c66020818152604080842080546033845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4611bf6828483612bc4565b600063ffffffff8211156122b15760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b6064820152608401610ab3565b5090565b600054610100900460ff16806122ce575060005460ff16155b6122ea5760405162461bcd60e51b8152600401610ab390613e13565b600054610100900460ff1615801561230c576000805461ffff19166101011790555b612314612d03565b61231e8383612d6d565b8015610afc576000805461ff0019169055505050565b600054610100900460ff168061234d575060005460ff16155b6123695760405162461bcd60e51b8152600401610ab390613e13565b600054610100900460ff1615801561238b576000805461ffff19166101011790555b612393612d03565b61130f612d03565b600054610100900460ff16806123b4575060005460ff16155b6123d05760405162461bcd60e51b8152600401610ab390613e13565b600054610100900460ff161580156123f2576000805461ffff19166101011790555b61238b612d03565b600054610100900460ff1680612413575060005460ff16155b61242f5760405162461bcd60e51b8152600401610ab390613e13565b600054610100900460ff16158015612451576000805461ffff19166101011790555b612459612d03565b61130f612e02565b600054610100900460ff168061247a575060005460ff16155b6124965760405162461bcd60e51b8152600401610ab390613e13565b600054610100900460ff161580156124b8576000805461ffff19166101011790555b6124c0612d03565b6124e382604051806040016040528060018152602001603160f81b815250612e78565b6124ec82612f04565b8015610b8a576000805461ff00191690555050565b61012d5460ff16156125485760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610ab3565b61012d805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120a33390565b600061258e609a80546001019055565b6000612598612af6565b90507f8030e83b04d87bef53480e26263266d6ca66863aa8506aca6f2559d18aa1cb67816040516125cb91815260200190565b60405180910390a1919050565b60006109776125e5611ce6565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b600080600061263787878787612f95565b9150915061264481613082565b5095945050505050565b6001600160a01b0381166000908152610193602052604090208054600181018255905b50919050565b61012d5460ff16156126be5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610ab3565b610afc83838361323d565b610afc838383613285565b606060006126e3836002613f81565b6126ee906002613e61565b67ffffffffffffffff81111561270657612706614071565b6040519080825280601f01601f191660200182016040528015612730576020820181803683370190505b509050600360fc1b8160008151811061274b5761274b61405b565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061277a5761277a61405b565b60200101906001600160f81b031916908160001a905350600061279e846002613f81565b6127a9906001613e61565b90505b6001811115612821576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106127dd576127dd61405b565b1a60f81b8282815181106127f3576127f361405b565b60200101906001600160f81b031916908160001a90535060049490941c9361281a81613fe3565b90506127ac565b508315610acf5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610ab3565b803b6128d45760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610ab3565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060823b6129745760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610ab3565b600080846001600160a01b03168460405161298f9190613c5b565b600060405180830381855af49150503d80600081146129ca576040519150601f19603f3d011682016040523d82523d6000602084013e6129cf565b606091505b5091509150610db782826040518060600160405280602781526020016140bd602791396132b8565b612a0081612870565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6000612a466002848418613e79565b610acf90848416613e61565b612a5c82826132f1565b6035546001600160e01b031015612ace5760405162461bcd60e51b815260206004820152603060248201527f4552433230566f7465733a20746f74616c20737570706c79207269736b73206f60448201526f766572666c6f77696e6720766f74657360801b6064820152608401610ab3565b611bf66101c86133e4836133f0565b612ae78282613569565b611bf66101c86136ca836133f0565b6000610b0b609a5490565b8154600090612b1257506000610977565b82546000905b80821015612b6e576000612b2c8383612a37565b905084868281548110612b4157612b4161405b565b90600052602060002001541115612b5a57809150612b68565b612b65816001613e61565b92505b50612b18565b600082118015612ba357508385612b86600185613fa0565b81548110612b9657612b9661405b565b9060005260206000200154145b15612bbc57612bb3600183613fa0565b92505050610977565b509050610977565b816001600160a01b0316836001600160a01b031614158015612be65750600081115b15610afc576001600160a01b03831615612c75576001600160a01b03831660009081526101c7602052604081208190612c22906136ca856133f0565b91509150846001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051612c6a929190918252602082015260400190565b60405180910390a250505b6001600160a01b03821615610afc576001600160a01b03821660009081526101c7602052604081208190612cac906133e4856133f0565b91509150836001600160a01b03167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248383604051612cf4929190918252602082015260400190565b60405180910390a25050505050565b600054610100900460ff1680612d1c575060005460ff16155b612d385760405162461bcd60e51b8152600401610ab390613e13565b600054610100900460ff1615801561130f576000805461ffff19166101011790558015610c54576000805461ff001916905550565b600054610100900460ff1680612d86575060005460ff16155b612da25760405162461bcd60e51b8152600401610ab390613e13565b600054610100900460ff16158015612dc4576000805461ffff19166101011790555b8251612dd7906036906020860190613814565b508151612deb906037906020850190613814565b508015610afc576000805461ff0019169055505050565b600054610100900460ff1680612e1b575060005460ff16155b612e375760405162461bcd60e51b8152600401610ab390613e13565b600054610100900460ff16158015612e59576000805461ffff19166101011790555b61012d805460ff191690558015610c54576000805461ff001916905550565b600054610100900460ff1680612e91575060005460ff16155b612ead5760405162461bcd60e51b8152600401610ab390613e13565b600054610100900460ff16158015612ecf576000805461ffff19166101011790555b825160208085019190912083519184019190912061015f91909155610160558015610afc576000805461ff0019169055505050565b600054610100900460ff1680612f1d575060005460ff16155b612f395760405162461bcd60e51b8152600401610ab390613e13565b600054610100900460ff16158015612f5b576000805461ffff19166101011790555b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9610194558015610b8a576000805461ff00191690555050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612fcc5750600090506003613079565b8460ff16601b14158015612fe457508460ff16601c14155b15612ff55750600090506004613079565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613049573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661307257600060019250925050613079565b9150600090505b94509492505050565b600081600481111561309657613096614045565b141561309f5750565b60018160048111156130b3576130b3614045565b14156131015760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610ab3565b600281600481111561311557613115614045565b14156131635760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610ab3565b600381600481111561317757613177614045565b14156131d05760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610ab3565b60048160048111156131e4576131e4614045565b1415610c545760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610ab3565b6001600160a01b03831661325c57613254826136d6565b610afc613709565b6001600160a01b03821661327357613254836136d6565b61327c836136d6565b610afc826136d6565b6001600160a01b0383811660009081526101c66020526040808220548584168352912054610afc92918216911683612bc4565b606083156132c7575081610acf565b8251156132d75782518084602001fd5b8160405162461bcd60e51b8152600401610ab39190613d48565b6001600160a01b0382166133475760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610ab3565b61335360008383612677565b80603560008282546133659190613e61565b90915550506001600160a01b03821660009081526033602052604081208054839290613392908490613e61565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3610b8a600083836126c9565b6000610acf8284613e61565b82546000908190801561343b5785613409600183613fa0565b815481106134195761341961405b565b60009182526020909120015464010000000090046001600160e01b031661343e565b60005b6001600160e01b0316925061345783858763ffffffff16565b915060008111801561349557504386613471600184613fa0565b815481106134815761348161405b565b60009182526020909120015463ffffffff16145b156134f5576134a382613719565b866134af600184613fa0565b815481106134bf576134bf61405b565b9060005260206000200160000160046101000a8154816001600160e01b0302191690836001600160e01b03160217905550613560565b85604051806040016040528061350a4361224c565b63ffffffff16815260200161351e85613719565b6001600160e01b0390811690915282546001810184556000938452602093849020835194909301519091166401000000000263ffffffff909316929092179101555b50935093915050565b6001600160a01b0382166135c95760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610ab3565b6135d582600083612677565b6001600160a01b038216600090815260336020526040902054818110156136495760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610ab3565b6001600160a01b0383166000908152603360205260408120838303905560358054849290613678908490613fa0565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3610afc836000846126c9565b6000610acf8284613fa0565b6001600160a01b0381166000908152609760209081526040808320603390925290912054610c549190613782565b613782565b613717609861370460355490565b565b60006001600160e01b038211156122b15760405162461bcd60e51b815260206004820152602760248201527f53616665436173743a2076616c756520646f65736e27742066697420696e20326044820152663234206269747360c81b6064820152608401610ab3565b600061378c612af6565b905080613798846137cc565b1015610afc578254600180820185556000858152602080822090930193909355938401805494850181558252902090910155565b80546000906137dd57506000919050565b815482906137ed90600190613fa0565b815481106137fd576137fd61405b565b90600052602060002001549050919050565b919050565b82805461382090613ffa565b90600052602060002090601f0160209004810192826138425760008555613888565b82601f1061385b57805160ff1916838001178555613888565b82800160010185558215613888579182015b8281111561388857825182559160200191906001019061386d565b506122b19291505b808211156122b15760008155600101613890565b803560ff8116811461380f57600080fd5b6000602082840312156138c757600080fd5b8135610acf81614087565b600080604083850312156138e557600080fd5b82356138f081614087565b9150602083013561390081614087565b809150509250929050565b60008060006060848603121561392057600080fd5b833561392b81614087565b9250602084013561393b81614087565b929592945050506040919091013590565b600080600080600080600060e0888a03121561396757600080fd5b873561397281614087565b9650602088013561398281614087565b9550604088013594506060880135935061399e608089016138a4565b925060a0880135915060c0880135905092959891949750929550565b600080604083850312156139cd57600080fd5b82356139d881614087565b9150602083013567ffffffffffffffff808211156139f557600080fd5b818501915085601f830112613a0957600080fd5b813581811115613a1b57613a1b614071565b604051601f8201601f19908116603f01168101908382118183101715613a4357613a43614071565b81604052828152886020848701011115613a5c57600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60008060408385031215613a9157600080fd5b8235613a9c81614087565b946020939093013593505050565b60008060008060008060c08789031215613ac357600080fd5b8635613ace81614087565b95506020870135945060408701359350613aea606088016138a4565b92506080870135915060a087013590509295509295509295565b60008060408385031215613b1757600080fd5b8235613b2281614087565b9150602083013563ffffffff8116811461390057600080fd5b600060208284031215613b4d57600080fd5b5035919050565b600060208284031215613b6657600080fd5b5051919050565b60008060408385031215613b8057600080fd5b82359150602083013561390081614087565b600060208284031215613ba457600080fd5b81356001600160e01b031981168114610acf57600080fd5b600080600080600060808688031215613bd457600080fd5b8535613bdf81614087565b94506020860135613bef81614087565b935060408601359250606086013567ffffffffffffffff80821115613c1357600080fd5b818801915088601f830112613c2757600080fd5b813581811115613c3657600080fd5b896020828501011115613c4857600080fd5b9699959850939650602001949392505050565b60008251613c6d818460208701613fb7565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613caf816017850160208801613fb7565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613ce0816028840160208801613fb7565b01602801949350505050565b6001600160a01b03878116825286166020820152604081018590526060810184905260a06080820181905281018290526000828460c0840137600060c0848401015260c0601f19601f8501168301019050979650505050505050565b6020815260008251806020840152613d67816040850160208701613fb7565b601f01601f19169190910160400192915050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b60008219821115613e7457613e7461402f565b500190565b600082613e9657634e487b7160e01b600052601260045260246000fd5b500490565b600181815b808511156121c8578160001904821115613ebc57613ebc61402f565b80851615613ec957918102915b93841c9390800290613ea0565b6000610acf60ff841683600082613eef57506001610977565b81613efc57506000610977565b8160018114613f125760028114613f1c57613f38565b6001915050610977565b60ff841115613f2d57613f2d61402f565b50506001821b610977565b5060208310610133831016604e8410600b8410161715613f5b575081810a610977565b613f658383613e9b565b8060001904821115613f7957613f7961402f565b029392505050565b6000816000190483118215151615613f9b57613f9b61402f565b500290565b600082821015613fb257613fb261402f565b500390565b60005b83811015613fd2578181015183820152602001613fba565b83811115611bf65750506000910152565b600081613ff257613ff261402f565b506000190190565b600181811c9082168061400e57607f821691505b6020821081141561267157634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610c5457600080fdfe65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122066a835f8b71cff8464d76600e353b59a6e034e4af4422fd80967e79a7743c1cc64736f6c63430008070033

Deployed Bytecode Sourcemap

120132:2666:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70647:215;;;;;;;;;;-1:-1:-1;70647:215:0;;;;;:::i;:::-;;:::i;:::-;;;9152:14:1;;9145:22;9127:41;;9115:2;9100:18;70647:215:0;;;;;;;;81846:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;84013:169::-;;;;;;;;;;-1:-1:-1;84013:169:0;;;;;:::i;:::-;;:::i;82966:108::-;;;;;;;;;;-1:-1:-1;83054:12:0;;82966:108;;;9325:25:1;;;9313:2;9298:18;82966:108:0;9179:177:1;84664:492:0;;;;;;;;;;-1:-1:-1;84664:492:0;;;;;:::i;:::-;;:::i;72091:123::-;;;;;;;;;;-1:-1:-1;72091:123:0;;;;;:::i;:::-;72157:7;72184:12;;;:6;:12;;;;;:22;;;;72091:123;72476:147;;;;;;;;;;-1:-1:-1;72476:147:0;;;;;:::i;:::-;;:::i;:::-;;82808:93;;;;;;;;;;-1:-1:-1;82808:93:0;;82891:2;27574:36:1;;27562:2;27547:18;82808:93:0;27432:184:1;98385:115:0;;;;;;;;;;;;;:::i;73524:218::-;;;;;;;;;;-1:-1:-1;73524:218:0;;;;;:::i;:::-;;:::i;56584:202::-;;;;;;;;;;-1:-1:-1;56584:202:0;;;;;:::i;:::-;;:::i;85565:215::-;;;;;;;;;;-1:-1:-1;85565:215:0;;;;;:::i;:::-;;:::i;102344:251::-;;;;;;;;;;-1:-1:-1;102344:251:0;;;;;:::i;:::-;;:::i;121561:77::-;;;;;;;;;;;;;:::i;121646:107::-;;;;;;;;;;-1:-1:-1;121646:107:0;;;;;:::i;:::-;;:::i;119181:91::-;;;;;;;;;;-1:-1:-1;119181:91:0;;;;;:::i;:::-;;:::i;114381:266::-;;;;;;;;;;-1:-1:-1;114381:266:0;;;;;:::i;:::-;;:::i;57045:227::-;;;;;;:::i;:::-;;:::i;101744:119::-;;;;;;;;;;-1:-1:-1;101744:119:0;;;;;:::i;:::-;-1:-1:-1;;;;;101836:19:0;;;101809:7;101836:19;;;:10;:19;;;;;;;;101744:119;;;;-1:-1:-1;;;;;8204:32:1;;;8186:51;;8174:2;8159:18;101744:119:0;8040:203:1;104794:105:0;;;;;;;;;;-1:-1:-1;104794:105:0;;;;;:::i;:::-;;:::i;66501:86::-;;;;;;;;;;-1:-1:-1;66572:7:0;;;;66501:86;;94723:808;;;;;;;;;;-1:-1:-1;94723:808:0;;;;;:::i;:::-;;:::i;93057:181::-;;;;;;;;;;-1:-1:-1;93057:181:0;;;;;:::i;:::-;;:::i;101489:162::-;;;;;;;;;;-1:-1:-1;101489:162:0;;;;;:::i;:::-;;:::i;:::-;;;27409:10:1;27397:23;;;27379:42;;27367:2;27352:18;101489:162:0;27235:192:1;120382:66:0;;;;;;;;;;;;120422:26;120382:66;;83137:127;;;;;;;;;;-1:-1:-1;83137:127:0;;;;;:::i;:::-;-1:-1:-1;;;;;83238:18:0;83211:7;83238:18;;;:9;:18;;;;;;;83137:127;119591:368;;;;;;;;;;-1:-1:-1;119591:368:0;;;;;:::i;:::-;;:::i;98127:128::-;;;;;;;;;;-1:-1:-1;98127:128:0;;;;;:::i;:::-;;:::i;120758:625::-;;;;;;;;;;;;;:::i;121480:73::-;;;;;;;;;;;;;:::i;102884:242::-;;;;;;;;;;-1:-1:-1;102884:242:0;;;;;:::i;:::-;;:::i;70954:139::-;;;;;;;;;;-1:-1:-1;70954:139:0;;;;;:::i;:::-;;:::i;82065:104::-;;;;;;;;;;;;;:::i;121391:81::-;;;;;;;;;;;;;:::i;114751:234::-;;;;;;;;;;-1:-1:-1;114751:234:0;;;;;:::i;:::-;;:::i;101947:195::-;;;;;;;;;;-1:-1:-1;101947:195:0;;;;;:::i;:::-;;:::i;70034:49::-;;;;;;;;;;-1:-1:-1;70034:49:0;70079:4;70034:49;;86283:413;;;;;;;;;;-1:-1:-1;86283:413:0;;;;;:::i;:::-;;:::i;83477:175::-;;;;;;;;;;-1:-1:-1;83477:175:0;;;;;:::i;:::-;;:::i;104981:593::-;;;;;;;;;;-1:-1:-1;104981:593:0;;;;;:::i;:::-;;:::i;97405:656::-;;;;;;;;;;-1:-1:-1;97405:656:0;;;;;:::i;:::-;;:::i;120524:62::-;;;;;;;;;;;;120562:24;120524:62;;72868:149;;;;;;;;;;-1:-1:-1;72868:149:0;;;;;:::i;:::-;;:::i;93637:297::-;;;;;;;;;;-1:-1:-1;93637:297:0;;;;;:::i;:::-;;:::i;83715:151::-;;;;;;;;;;-1:-1:-1;83715:151:0;;;;;:::i;:::-;-1:-1:-1;;;;;83831:18:0;;;83804:7;83831:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;83715:151;120455:62;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;120455:62:0;;101259:150;;;;;;;;;;-1:-1:-1;101259:150:0;;;;;:::i;:::-;;:::i;:::-;;;;26673:13:1;;26688:10;26669:30;26651:49;;26760:4;26748:17;;;26742:24;-1:-1:-1;;;;;26738:50:1;26716:20;;;26709:80;;;;26624:18;101259:150:0;26449:346:1;120593:66:0;;;;;;;;;;;;120633:26;120593:66;;70647:215;70732:4;-1:-1:-1;;;;;;70756:58:0;;-1:-1:-1;;;70756:58:0;;:98;;-1:-1:-1;;;;;;;;;;63865:51:0;;;70818:36;70749:105;70647:215;-1:-1:-1;;70647:215:0:o;81846:100::-;81900:13;81933:5;81926:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81846:100;:::o;84013:169::-;84096:4;84113:39;64952:10;84136:7;84145:6;84113:8;:39::i;:::-;-1:-1:-1;84170:4:0;84013:169;;;;:::o;84664:492::-;84804:4;84821:36;84831:6;84839:9;84850:6;84821:9;:36::i;:::-;-1:-1:-1;;;;;84897:19:0;;84870:24;84897:19;;;:11;:19;;;;;;;;64952:10;84897:33;;;;;;;;84949:26;;;;84941:79;;;;-1:-1:-1;;;84941:79:0;;21036:2:1;84941:79:0;;;21018:21:1;21075:2;21055:18;;;21048:30;21114:34;21094:18;;;21087:62;-1:-1:-1;;;21165:18:1;;;21158:38;21213:19;;84941:79:0;;;;;;;;;85056:57;85065:6;64952:10;85106:6;85087:16;:25;85056:8;:57::i;:::-;85144:4;85137:11;;;84664:492;;;;;;:::o;72476:147::-;72157:7;72184:12;;;:6;:12;;;;;:22;;;70525:30;70536:4;64952:10;70525;:30::i;:::-;72590:25:::1;72601:4;72607:7;72590:10;:25::i;:::-;72476:147:::0;;;:::o;98385:115::-;98445:7;98472:20;:18;:20::i;:::-;98465:27;;98385:115;:::o;73524:218::-;-1:-1:-1;;;;;73620:23:0;;64952:10;73620:23;73612:83;;;;-1:-1:-1;;;73612:83:0;;25875:2:1;73612:83:0;;;25857:21:1;25914:2;25894:18;;;25887:30;25953:34;25933:18;;;25926:62;-1:-1:-1;;;26004:18:1;;;25997:45;26059:19;;73612:83:0;25673:411:1;73612:83:0;73708:26;73720:4;73726:7;73708:11;:26::i;:::-;73524:218;;:::o;56584:202::-;56213:4;-1:-1:-1;;;;;56222:6:0;56205:23;;;56197:80;;;;-1:-1:-1;;;56197:80:0;;;;;;;:::i;:::-;56320:6;-1:-1:-1;;;;;56296:30:0;:20;:18;:20::i;:::-;-1:-1:-1;;;;;56296:30:0;;56288:87;;;;-1:-1:-1;;;56288:87:0;;;;;;;:::i;:::-;56668:36:::1;56686:17;56668;:36::i;:::-;56758:12;::::0;;56768:1:::1;56758:12:::0;;;::::1;::::0;::::1;::::0;;;56715:63:::1;::::0;56739:17;;56758:12;56715:23:::1;:63::i;:::-;56584:202:::0;:::o;85565:215::-;64952:10;85653:4;85702:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;85702:34:0;;;;;;;;;;85653:4;;85670:80;;85693:7;;85702:47;;85739:10;;85702:47;:::i;:::-;85670:8;:80::i;102344:251::-;102425:7;102467:12;102453:11;:26;102445:70;;;;-1:-1:-1;;;102445:70:0;;13342:2:1;102445:70:0;;;13324:21:1;13381:2;13361:18;;;13354:30;13420:33;13400:18;;;13393:61;13471:18;;102445:70:0;13140:355:1;102445:70:0;-1:-1:-1;;;;;102552:21:0;;;;;;:12;:21;;;;;102533:54;;102575:11;102533:18;:54::i;121561:77::-;-1:-1:-1;;;;;;;;;;;70525:30:0;120493:24;64952:10;70525;:30::i;:::-;121620:10:::1;:8;:10::i;121646:107::-:0;120562:24;70525:30;120562:24;64952:10;70525;:30::i;:::-;121728:17:::1;121734:2;121738:6;121728:5;:17::i;119181:91::-:0;119237:27;64952:10;119257:6;119237:5;:27::i;114381:266::-;-1:-1:-1;;;;;114545:33:0;;114468:7;114545:33;;;:24;:33;;;;;114468:7;;;;114524:55;;114533:10;;114524:8;:55::i;:::-;114488:91;;;;114599:11;:40;;-1:-1:-1;;;;;83238:18:0;;83211:7;83238:18;;;:9;:18;;;;;;114599:40;;;114613:5;114599:40;114592:47;114381:266;-1:-1:-1;;;;;114381:266:0:o;57045:227::-;56213:4;-1:-1:-1;;;;;56222:6:0;56205:23;;;56197:80;;;;-1:-1:-1;;;56197:80:0;;;;;;;:::i;:::-;56320:6;-1:-1:-1;;;;;56296:30:0;:20;:18;:20::i;:::-;-1:-1:-1;;;;;56296:30:0;;56288:87;;;;-1:-1:-1;;;56288:87:0;;;;;;;:::i;:::-;57163:36:::1;57181:17;57163;:36::i;:::-;57210:54;57234:17;57253:4;57259;57210:23;:54::i;104794:105::-:0;104857:34;64952:10;104881:9;104857;:34::i;94723:808::-;94913:4;94930:11;94944:23;94953:5;94960:6;94944:8;:23::i;:::-;94930:37;;94978:32;94992:8;95003:6;94978:5;:32::i;:::-;95043:58;;-1:-1:-1;;;95043:58:0;;92795:45;;-1:-1:-1;;;;;95043:20:0;;;;;:58;;95064:10;;95076:5;;95083:6;;95091:3;;95096:4;;;;95043:58;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:75;95021:161;;;;-1:-1:-1;;;95021:161:0;;18339:2:1;95021:161:0;;;18321:21:1;18378:2;18358:18;;;18351:30;18417:34;18397:18;;;18390:62;-1:-1:-1;;;18468:18:1;;;18461:34;18512:19;;95021:161:0;18137:400:1;95021:161:0;-1:-1:-1;;;;;83831:18:0;;95193:24;83831:18;;;:11;:18;;;;;;;;95257:4;83831:27;;;;;;;;95302:12;95311:3;95302:6;:12;:::i;:::-;95282:16;:32;;95274:92;;;;-1:-1:-1;;;95274:92:0;;25053:2:1;95274:92:0;;;25035:21:1;25092:2;25072:18;;;25065:30;25131:34;25111:18;;;25104:62;-1:-1:-1;;;25182:18:1;;;25175:45;25237:19;;95274:92:0;24851:411:1;95274:92:0;95377:75;95394:8;95413:4;95448:3;95420:25;95439:6;95420:16;:25;:::i;:::-;:31;;;;:::i;95377:75::-;95463:38;95477:8;95488:12;95497:3;95488:6;:12;:::i;:::-;95463:5;:38::i;:::-;-1:-1:-1;95519:4:0;;94723:808;-1:-1:-1;;;;;;;94723:808:0:o;93057:181::-;93124:7;-1:-1:-1;;;;;93151:22:0;;93168:4;93151:22;:79;;93229:1;93151:79;;;83054:12;;93176:50;;-1:-1:-1;;93176:50:0;:::i;101489:162::-;-1:-1:-1;;;;;101614:21:0;;101559:6;101614:21;;;:12;:21;;;;;:28;101585:58;;:28;:58::i;119591:368::-;119668:24;119695:32;119705:7;64952:10;83715:151;:::i;119695:32::-;119668:59;;119766:6;119746:16;:26;;119738:75;;;;-1:-1:-1;;;119738:75:0;;22270:2:1;119738:75:0;;;22252:21:1;22309:2;22289:18;;;22282:30;22348:34;22328:18;;;22321:62;-1:-1:-1;;;22399:18:1;;;22392:34;22443:19;;119738:75:0;22068:400:1;119738:75:0;119849:58;119858:7;64952:10;119900:6;119881:16;:25;119849:8;:58::i;:::-;119929:22;119935:7;119944:6;119929:5;:22::i;98127:128::-;-1:-1:-1;;;;;98223:14:0;;98196:7;98223:14;;;:7;:14;;;;;40491;98223:24;40399:114;120758:625;46069:13;;;;;;;;:30;;-1:-1:-1;46087:12:0;;;;46086:13;46069:30;46061:89;;;;-1:-1:-1;;;46061:89:0;;;;;;;:::i;:::-;46163:19;46186:13;;;;;;46185:14;46210:101;;;;46245:13;:20;;-1:-1:-1;;46280:19:0;;;;;46210:101;120810:32:::1;;;;;;;;;;;;;;-1:-1:-1::0;;;120810:32:0::1;;::::0;::::1;;;;;;;;;;;;;-1:-1:-1::0;;;120810:32:0::1;;::::0;:12:::1;:32::i;:::-;120853:22;:20;:22::i;:::-;120886;:20;:22::i;:::-;120919;:20;:22::i;:::-;120952:17;:15;:17::i;:::-;120980:30;;;;;;;;;;;;;;-1:-1:-1::0;;;120980:30:0::1;;::::0;:18:::1;:30::i;:::-;121021:23;:21;:23::i;:::-;121055:24;:22;:24::i;:::-;121092:42;70079:4;121123:10;121092;:42::i;:::-;121145:37;120422:26;121171:10;121145;:37::i;:::-;121193:35;-1:-1:-1::0;;;;;;;;;;;121217:10:0::1;121193;:35::i;:::-;121239:42;121245:10;121264:16;82891:2:::0;121264::::1;:16;:::i;:::-;121257:23;::::0;:4:::1;:23;:::i;:::-;121239:5;:42::i;:::-;121292:35;120562:24;121316:10;121292;:35::i;:::-;121338:37;120633:26;121364:10;121338;:37::i;:::-;46341:14:::0;46337:68;;;46388:5;46372:21;;-1:-1:-1;;46372:21:0;;;46050:362;120758:625::o;121480:73::-;-1:-1:-1;;;;;;;;;;;70525:30:0;120493:24;64952:10;70525;:30::i;:::-;121537:8:::1;:6;:8::i;102884:242::-:0;102954:7;102996:12;102982:11;:26;102974:70;;;;-1:-1:-1;;;102974:70:0;;13342:2:1;102974:70:0;;;13324:21:1;13381:2;13361:18;;;13354:30;13420:33;13400:18;;;13393:61;13471:18;;102974:70:0;13140:355:1;102974:70:0;103062:56;103081:23;103106:11;103062:18;:56::i;70954:139::-;71032:4;71056:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;71056:29:0;;;;;;;;;;;;;;;70954:139::o;82065:104::-;82121:13;82154:7;82147:14;;;;;:::i;121391:81::-;120422:26;70525:30;120422:26;64952:10;70525;:30::i;:::-;121453:11:::1;:9;:11::i;114751:234::-:0;114823:7;114844:16;114862:13;114879:43;114888:10;114900:21;114879:8;:43::i;:::-;114843:79;;;;114942:11;:35;;83054:12;;114942:35;;;114956:5;114942:35;114935:42;114751:234;-1:-1:-1;;;;114751:234:0:o;101947:195::-;-1:-1:-1;;;;;102037:21:0;;102003:7;102037:21;;;:12;:21;;;;;:28;102083:8;;:51;;-1:-1:-1;;;;;102098:21:0;;;;;;:12;:21;;;;;102120:7;102126:1;102120:3;:7;:::i;:::-;102098:30;;;;;;;;:::i;:::-;;;;;;;;;;:36;;;;-1:-1:-1;;;;;102098:36:0;102083:51;;;102094:1;102083:51;-1:-1:-1;;;;;102076:58:0;;101947:195;-1:-1:-1;;;101947:195:0:o;86283:413::-;64952:10;86376:4;86420:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;86420:34:0;;;;;;;;;;86473:35;;;;86465:85;;;;-1:-1:-1;;;86465:85:0;;25469:2:1;86465:85:0;;;25451:21:1;25508:2;25488:18;;;25481:30;25547:34;25527:18;;;25520:62;-1:-1:-1;;;25598:18:1;;;25591:35;25643:19;;86465:85:0;25267:401:1;86465:85:0;86586:67;64952:10;86609:7;86637:15;86618:16;:34;86586:8;:67::i;:::-;-1:-1:-1;86684:4:0;;86283:413;-1:-1:-1;;;86283:413:0:o;83477:175::-;83563:4;83580:42;64952:10;83604:9;83615:6;83580:9;:42::i;104981:593::-;105199:6;105180:15;:25;;105172:67;;;;-1:-1:-1;;;105172:67:0;;14051:2:1;105172:67:0;;;14033:21:1;14090:2;14070:18;;;14063:30;14129:31;14109:18;;;14102:59;14178:18;;105172:67:0;13849:353:1;105172:67:0;105333:58;;;100510:71;105333:58;;;10188:25:1;-1:-1:-1;;;;;10249:32:1;;10229:18;;;10222:60;;;;10298:18;;;10291:34;;;10341:18;;;10334:34;;;105250:14:0;;105267:185;;105306:87;;10160:19:1;;105333:58:0;;;;;;;;;;;;105323:69;;;;;;105306:16;:87::i;:::-;105408:1;105424;105440;105267:24;:185::i;:::-;105250:202;;105480:17;105490:6;105480:9;:17::i;:::-;105471:5;:26;105463:64;;;;-1:-1:-1;;;105463:64:0;;15172:2:1;105463:64:0;;;15154:21:1;15211:2;15191:18;;;15184:30;15250:27;15230:18;;;15223:55;15295:18;;105463:64:0;14970:349:1;105463:64:0;105538:28;105548:6;105556:9;105538;:28::i;:::-;105161:413;104981:593;;;;;;:::o;97405:656::-;97649:8;97630:15;:27;;97622:69;;;;-1:-1:-1;;;97622:69:0;;16758:2:1;97622:69:0;;;16740:21:1;16797:2;16777:18;;;16770:30;16836:31;16816:18;;;16809:59;16885:18;;97622:69:0;16556:353:1;97622:69:0;97704:18;97746:16;;97764:5;97771:7;97780:5;97787:16;97797:5;97787:9;:16::i;:::-;97735:79;;;;;;9648:25:1;;;;-1:-1:-1;;;;;9747:15:1;;;9727:18;;;9720:43;9799:15;;;;9779:18;;;9772:43;9831:18;;;9824:34;9874:19;;;9867:35;9918:19;;;9911:35;;;9620:19;;97735:79:0;;;;;;;;;;;;97725:90;;;;;;97704:111;;97828:12;97843:28;97860:10;97843:16;:28::i;:::-;97828:43;;97884:14;97901:39;97926:4;97932:1;97935;97938;97901:24;:39::i;:::-;97884:56;;97969:5;-1:-1:-1;;;;;97959:15:0;:6;-1:-1:-1;;;;;97959:15:0;;97951:58;;;;-1:-1:-1;;;97951:58:0;;20263:2:1;97951:58:0;;;20245:21:1;20302:2;20282:18;;;20275:30;20341:32;20321:18;;;20314:60;20391:18;;97951:58:0;20061:354:1;97951:58:0;98022:31;98031:5;98038:7;98047:5;98022:8;:31::i;:::-;97611:450;;;97405:656;;;;;;;:::o;72868:149::-;72157:7;72184:12;;;:6;:12;;;;;:22;;;70525:30;70536:4;64952:10;70525;:30::i;:::-;72983:26:::1;72995:4;73001:7;72983:11;:26::i;93637:297::-:0;93724:7;-1:-1:-1;;;;;93752:22:0;;93769:4;93752:22;93744:62;;;;-1:-1:-1;;;93744:62:0;;19504:2:1;93744:62:0;;;19486:21:1;19543:2;19523:18;;;19516:30;19582:29;19562:18;;;19555:57;19629:18;;93744:62:0;19302:351:1;93744:62:0;-1:-1:-1;93925:1:0;93637:297;;;;:::o;101259:150::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;101375:21:0;;;;;;:12;:21;;;;;:26;;;;;;;;;;;;:::i;:::-;;;;;;;;;;101368:33;;;;;;;;;101375:26;;101368:33;;;;;;;;;-1:-1:-1;;;;;101368:33:0;;;;;;;;;101259:150;-1:-1:-1;;;101259:150:0:o;89967:380::-;-1:-1:-1;;;;;90103:19:0;;90095:68;;;;-1:-1:-1;;;90095:68:0;;24297:2:1;90095:68:0;;;24279:21:1;24336:2;24316:18;;;24309:30;24375:34;24355:18;;;24348:62;-1:-1:-1;;;24426:18:1;;;24419:34;24470:19;;90095:68:0;24095:400:1;90095:68:0;-1:-1:-1;;;;;90182:21:0;;90174:68;;;;-1:-1:-1;;;90174:68:0;;15942:2:1;90174:68:0;;;15924:21:1;15981:2;15961:18;;;15954:30;16020:34;16000:18;;;15993:62;-1:-1:-1;;;16071:18:1;;;16064:32;16113:19;;90174:68:0;15740:398:1;90174:68:0;-1:-1:-1;;;;;90255:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;90307:32;;9325:25:1;;;90307:32:0;;9298:18:1;90307:32:0;;;;;;;89967:380;;;:::o;87186:733::-;-1:-1:-1;;;;;87326:20:0;;87318:70;;;;-1:-1:-1;;;87318:70:0;;23484:2:1;87318:70:0;;;23466:21:1;23523:2;23503:18;;;23496:30;23562:34;23542:18;;;23535:62;-1:-1:-1;;;23613:18:1;;;23606:35;23658:19;;87318:70:0;23282:401:1;87318:70:0;-1:-1:-1;;;;;87407:23:0;;87399:71;;;;-1:-1:-1;;;87399:71:0;;12938:2:1;87399:71:0;;;12920:21:1;12977:2;12957:18;;;12950:30;13016:34;12996:18;;;12989:62;-1:-1:-1;;;13067:18:1;;;13060:33;13110:19;;87399:71:0;12736:399:1;87399:71:0;87483:47;87504:6;87512:9;87523:6;87483:20;:47::i;:::-;-1:-1:-1;;;;;87567:17:0;;87543:21;87567:17;;;:9;:17;;;;;;87603:23;;;;87595:74;;;;-1:-1:-1;;;87595:74:0;;17116:2:1;87595:74:0;;;17098:21:1;17155:2;17135:18;;;17128:30;17194:34;17174:18;;;17167:62;-1:-1:-1;;;17245:18:1;;;17238:36;17291:19;;87595:74:0;16914:402:1;87595:74:0;-1:-1:-1;;;;;87705:17:0;;;;;;;:9;:17;;;;;;87725:22;;;87705:42;;87769:20;;;;;;;;:30;;87741:6;;87705:17;87769:30;;87741:6;;87769:30;:::i;:::-;;;;;;;;87834:9;-1:-1:-1;;;;;87817:35:0;87826:6;-1:-1:-1;;;;;87817:35:0;;87845:6;87817:35;;;;9325:25:1;;9313:2;9298:18;;9179:177;87817:35:0;;;;;;;;87865:46;87885:6;87893:9;87904:6;87865:19;:46::i;:::-;87307:612;87186:733;;;:::o;71383:519::-;71464:22;71472:4;71478:7;71464;:22::i;:::-;71459:436;;71652:52;71691:7;-1:-1:-1;;;;;71652:52:0;71701:2;71652:30;:52::i;:::-;71777:49;71816:4;71823:2;71777:30;:49::i;:::-;71557:292;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;71557:292:0;;;;;;;;;;-1:-1:-1;;;71503:380:0;;;;;;;:::i;75025:238::-;75109:22;75117:4;75123:7;75109;:22::i;:::-;75104:152;;75148:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;75148:29:0;;;;;;;;;:36;;-1:-1:-1;;75148:36:0;75180:4;75148:36;;;75231:12;64952:10;;64872:98;75231:12;-1:-1:-1;;;;;75204:40:0;75222:7;-1:-1:-1;;;;;75204:40:0;75216:4;75204:40;;;;;;;;;;75025:238;;:::o;60656:162::-;60709:7;60736:74;59389:95;60770:17;62238:12;;;62153:105;60770:17;62593:15;;61007:73;;;;;;10638:25:1;;;10679:18;;;10672:34;;;10722:18;;;10715:34;;;61051:13:0;10765:18:1;;;10758:34;61074:4:0;10808:19:1;;;10801:61;60970:7:0;;10610:19:1;;61007:73:0;;;;;;;;;;;;60997:84;;;;;;60990:91;;60826:263;;;;;;75395:239;75479:22;75487:4;75493:7;75479;:22::i;:::-;75475:152;;;75550:5;75518:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;75518:29:0;;;;;;;;;;:37;;-1:-1:-1;;75518:37:0;;;75575:40;64952:10;;75518:12;;75575:40;;75550:5;75575:40;75395:239;;:::o;47881:153::-;47600:66;47961:65;-1:-1:-1;;;;;47961:65:0;;47881:153::o;122012:130::-;120633:26;70525:30;120633:26;64952:10;70525;:30::i;49299:1268::-;49448:25;49476:20;:18;:20::i;:::-;49448:48;;49552:37;49571:17;49552:18;:37::i;:::-;49618:1;49604:4;:11;:15;:28;;;;49623:9;49604:28;49600:107;;;49649:46;49671:17;49690:4;49649:21;:46::i;:::-;;49600:107;47252:66;49910:21;;;;49905:655;;50025:28;;-1:-1:-1;;50025:28:0;50049:4;50025:28;;;50144:64;;-1:-1:-1;;;;;8204:32:1;;50144:64:0;;;8186:51:1;50068:155:0;;50108:17;;8159:18:1;;50144:64:0;;;-1:-1:-1;;50144:64:0;;;;;;;;;;;;;;-1:-1:-1;;;;;50144:64:0;-1:-1:-1;;;50144:64:0;;;50068:21;:155::i;:::-;-1:-1:-1;50238:29:0;;-1:-1:-1;;50238:29:0;;;50356:20;:18;:20::i;:::-;-1:-1:-1;;;;;50335:41:0;:17;-1:-1:-1;;;;;50335:41:0;;50327:101;;;;-1:-1:-1;;;50327:101:0;;15526:2:1;50327:101:0;;;15508:21:1;15565:2;15545:18;;;15538:30;15604:34;15584:18;;;15577:62;-1:-1:-1;;;15655:18:1;;;15648:45;15710:19;;50327:101:0;15324:411:1;50327:101:0;50519:29;50530:17;50519:10;:29::i;:::-;49437:1130;;49299:1268;;;:::o;103215:1493::-;104348:12;;103314:7;;;104397:247;104410:4;104404:3;:10;104397:247;;;104431:11;104445:34;104469:3;104474:4;104445:23;:34::i;:::-;104431:48;;104521:11;104498:5;104504:3;104498:10;;;;;;;;:::i;:::-;;;;;;;;;;:20;;;:34;104494:139;;;104560:3;104553:10;;104494:139;;;104610:7;:3;104616:1;104610:7;:::i;:::-;104604:13;;104494:139;104416:228;104397:247;;;104663:9;;:37;;104679:5;104685:8;104692:1;104685:4;:8;:::i;:::-;104679:15;;;;;;;;:::i;:::-;;;;;;;;;;:21;;;;-1:-1:-1;;;;;104679:21:0;104663:37;;;104675:1;104663:37;-1:-1:-1;;;;;104656:44:0;;103215:1493;-1:-1:-1;;;;;103215:1493:0:o;67560:120::-;66572:7;;;;67096:41;;;;-1:-1:-1;;;67096:41:0;;13702:2:1;67096:41:0;;;13684:21:1;13741:2;13721:18;;;13714:30;-1:-1:-1;;;13760:18:1;;;13753:50;13820:18;;67096:41:0;13500:344:1;67096:41:0;67619:7:::1;:15:::0;;-1:-1:-1;;67619:15:0::1;::::0;;67650:22:::1;64952:10:::0;67659:12:::1;67650:22;::::0;-1:-1:-1;;;;;8204:32:1;;;8186:51;;8174:2;8159:18;67650:22:0::1;;;;;;;67560:120::o:0;122443:167::-;122579:23;122591:2;122595:6;122579:11;:23::i;122618:177::-;122759:28;122771:7;122780:6;122759:11;:28::i;115832:1619::-;115921:4;115927:7;115968:1;115955:10;:14;115947:49;;;;-1:-1:-1;;;115947:49:0;;24702:2:1;115947:49:0;;;24684:21:1;24741:2;24721:18;;;24714:30;-1:-1:-1;;;24760:18:1;;;24753:52;24822:18;;115947:49:0;24500:346:1;115947:49:0;116029:23;:21;:23::i;:::-;116015:10;:37;;116007:79;;;;-1:-1:-1;;;116007:79:0;;12219:2:1;116007:79:0;;;12201:21:1;12258:2;12238:18;;;12231:30;12297:31;12277:18;;;12270:59;12346:18;;116007:79:0;12017:353:1;116007:79:0;117225:13;117241:40;:9;117270:10;117241:28;:40::i;:::-;117307:20;;117225:56;;-1:-1:-1;117298:29:0;;117294:150;;;117352:5;117359:1;117344:17;;;;;;;117294:150;117402:4;117408:9;:16;;117425:5;117408:23;;;;;;;;:::i;:::-;;;;;;;;;117394:38;;;;;;;117294:150;115936:1515;115832:1619;;;;;;:::o;107024:388::-;-1:-1:-1;;;;;101836:19:0;;;107109:23;101836:19;;;:10;:19;;;;;;;;;;83238:9;:18;;;;;;107224:21;;;;:33;;;-1:-1:-1;;;;;;107224:33:0;;;;;;;107275:54;;101836:19;;;;;83238:18;;107224:33;;101836:19;;;107275:54;;107109:23;107275:54;107342:62;107359:15;107376:9;107387:16;107342;:62::i;16338:190::-;16394:6;16430:16;16421:25;;;16413:76;;;;-1:-1:-1;;;16413:76:0;;23890:2:1;16413:76:0;;;23872:21:1;23929:2;23909:18;;;23902:30;23968:34;23948:18;;;23941:62;-1:-1:-1;;;24019:18:1;;;24012:36;24065:19;;16413:76:0;23688:402:1;16413:76:0;-1:-1:-1;16514:5:0;16338:190::o;81430:181::-;46069:13;;;;;;;;:30;;-1:-1:-1;46087:12:0;;;;46086:13;46069:30;46061:89;;;;-1:-1:-1;;;46061:89:0;;;;;;;:::i;:::-;46163:19;46186:13;;;;;;46185:14;46210:101;;;;46245:13;:20;;-1:-1:-1;;46280:19:0;;;;;46210:101;81528:26:::1;:24;:26::i;:::-;81565:38;81588:5;81595:7;81565:22;:38::i;:::-;46341:14:::0;46337:68;;;46388:5;46372:21;;-1:-1:-1;;46372:21:0;;;46050:362;81430:181;;:::o;118847:141::-;46069:13;;;;;;;;:30;;-1:-1:-1;46087:12:0;;;;46086:13;46069:30;46061:89;;;;-1:-1:-1;;;46061:89:0;;;;;;;:::i;:::-;46163:19;46186:13;;;;;;46185:14;46210:101;;;;46245:13;:20;;-1:-1:-1;;46280:19:0;;;;;46210:101;118911:26:::1;:24;:26::i;:::-;118948:32;:30;:32::i;69617:177::-:0;46069:13;;;;;;;;:30;;-1:-1:-1;46087:12:0;;;;46086:13;46069:30;46061:89;;;;-1:-1:-1;;;46061:89:0;;;;;;;:::i;:::-;46163:19;46186:13;;;;;;46185:14;46210:101;;;;46245:13;:20;;-1:-1:-1;;46280:19:0;;;;;46210:101;69681:26:::1;:24;:26::i;66170:131::-:0;46069:13;;;;;;;;:30;;-1:-1:-1;46087:12:0;;;;46086:13;46069:30;46061:89;;;;-1:-1:-1;;;46061:89:0;;;;;;;:::i;:::-;46163:19;46186:13;;;;;;46185:14;46210:101;;;;46245:13;:20;;-1:-1:-1;;46280:19:0;;;;;46210:101;66229:26:::1;:24;:26::i;:::-;66266:27;:25;:27::i;96921:204::-:0;46069:13;;;;;;;;:30;;-1:-1:-1;46087:12:0;;;;46086:13;46069:30;46061:89;;;;-1:-1:-1;;;46061:89:0;;;;;;;:::i;:::-;46163:19;46186:13;;;;;;46185:14;46210:101;;;;46245:13;:20;;-1:-1:-1;;46280:19:0;;;;;46210:101;97001:26:::1;:24;:26::i;:::-;97038:34;97062:4;97038:34;;;;;;;;;;;;;-1:-1:-1::0;;;97038:34:0::1;;::::0;:23:::1;:34::i;:::-;97083;97112:4;97083:28;:34::i;:::-;46341:14:::0;46337:68;;;46388:5;46372:21;;-1:-1:-1;;46372:21:0;;;46050:362;96921:204;:::o;67301:118::-;66572:7;;;;66826:9;66818:38;;;;-1:-1:-1;;;66818:38:0;;18744:2:1;66818:38:0;;;18726:21:1;18783:2;18763:18;;;18756:30;-1:-1:-1;;;18802:18:1;;;18795:46;18858:18;;66818:38:0;18542:340:1;66818:38:0;67361:7:::1;:14:::0;;-1:-1:-1;;67361:14:0::1;67371:4;67361:14;::::0;;67391:20:::1;67398:12;64952:10:::0;;64872:98;113853:223;113900:7;113920:30;:18;40610:19;;40628:1;40610:19;;;40521:127;113920:30;113963:17;113983:23;:21;:23::i;:::-;113963:43;;114022:19;114031:9;114022:19;;;;9325:25:1;;9313:2;9298:18;;9179:177;114022:19:0;;;;;;;;114059:9;113853:223;-1:-1:-1;113853:223:0:o;61731:178::-;61808:7;61835:66;61868:20;:18;:20::i;:::-;61890:10;36333:57;;-1:-1:-1;;;36333:57:0;;;7110:27:1;7153:11;;;7146:27;;;7189:12;;;7182:28;;;36296:7:0;;7226:12:1;;36333:57:0;;;;;;;;;;;;36323:68;;;;;;36316:75;;36203:196;;;;;34501:279;34629:7;34650:17;34669:18;34691:25;34702:4;34708:1;34711;34714;34691:10;:25::i;:::-;34649:67;;;;34727:18;34739:5;34727:11;:18::i;:::-;-1:-1:-1;34763:9:0;34501:279;-1:-1:-1;;;;;34501:279:0:o;98638:218::-;-1:-1:-1;;;;;98770:14:0;;98698:15;98770:14;;;:7;:14;;;;;40491;;40628:1;40610:19;;;;40491:14;98831:17;98715:141;98638:218;;;:::o;121761:243::-;66572:7;;;;66826:9;66818:38;;;;-1:-1:-1;;;66818:38:0;;18744:2:1;66818:38:0;;;18726:21:1;18783:2;18763:18;;;18756:30;-1:-1:-1;;;18802:18:1;;;18795:46;18858:18;;66818:38:0;18542:340:1;66818:38:0;121952:44:::1;121979:4;121985:2;121989:6;121952:26;:44::i;122220:215::-:0;122384:43;122410:4;122416:2;122420:6;122384:25;:43::i;26331:451::-;26406:13;26432:19;26464:10;26468:6;26464:1;:10;:::i;:::-;:14;;26477:1;26464:14;:::i;:::-;26454:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26454:25:0;;26432:47;;-1:-1:-1;;;26490:6:0;26497:1;26490:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;26490:15:0;;;;;;;;;-1:-1:-1;;;26516:6:0;26523:1;26516:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;26516:15:0;;;;;;;;-1:-1:-1;26547:9:0;26559:10;26563:6;26559:1;:10;:::i;:::-;:14;;26572:1;26559:14;:::i;:::-;26547:26;;26542:135;26579:1;26575;:5;26542:135;;;-1:-1:-1;;;26627:5:0;26635:3;26627:11;26614:25;;;;;;;:::i;:::-;;;;26602:6;26609:1;26602:9;;;;;;;;:::i;:::-;;;;:37;-1:-1:-1;;;;;26602:37:0;;;;;;;;-1:-1:-1;26664:1:0;26654:11;;;;;26582:3;;;:::i;:::-;;;26542:135;;;-1:-1:-1;26695:10:0;;26687:55;;;;-1:-1:-1;;;26687:55:0;;12577:2:1;26687:55:0;;;12559:21:1;;;12596:18;;;12589:30;12655:34;12635:18;;;12628:62;12707:18;;26687:55:0;12375:356:1;48130:284:0;3820:20;;48204:106;;;;-1:-1:-1;;;48204:106:0;;20622:2:1;48204:106:0;;;20604:21:1;20661:2;20641:18;;;20634:30;20700:34;20680:18;;;20673:62;-1:-1:-1;;;20751:18:1;;;20744:43;20804:19;;48204:106:0;20420:409:1;48204:106:0;47600:66;48321:85;;-1:-1:-1;;;;;;48321:85:0;-1:-1:-1;;;;;48321:85:0;;;;;;;;;;48130:284::o;53836:461::-;53919:12;3820:20;;53944:88;;;;-1:-1:-1;;;53944:88:0;;23077:2:1;53944:88:0;;;23059:21:1;23116:2;23096:18;;;23089:30;23155:34;23135:18;;;23128:62;-1:-1:-1;;;23206:18:1;;;23199:36;23252:19;;53944:88:0;22875:402:1;53944:88:0;54106:12;54120:23;54147:6;-1:-1:-1;;;;;54147:19:0;54167:4;54147:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54105:67;;;;54190:99;54226:7;54235:10;54190:99;;;;;;;;;;;;;;;;;:35;:99::i;48527:155::-;48594:37;48613:17;48594:18;:37::i;:::-;48647:27;;-1:-1:-1;;;;;48647:27:0;;;;;;;;48527:155;:::o;41747:156::-;41809:7;41884:11;41894:1;41885:5;;;41884:11;:::i;:::-;41874:21;;41875:5;;;41874:21;:::i;105880:290::-;105965:28;105977:7;105986:6;105965:11;:28::i;:::-;83054:12;;-1:-1:-1;;;;;;106012:29:0;106004:90;;;;-1:-1:-1;;;106004:90:0;;21445:2:1;106004:90:0;;;21427:21:1;21484:2;21464:18;;;21457:30;21523:34;21503:18;;;21496:62;-1:-1:-1;;;21574:18:1;;;21567:46;21630:19;;106004:90:0;21243:412:1;106004:90:0;106107:55;106124:23;106149:4;106155:6;106107:16;:55::i;106264:194::-;106349:28;106361:7;106370:6;106349:11;:28::i;:::-;106390:60;106407:23;106432:9;106443:6;106390:16;:60::i;114142:127::-;114206:7;114233:28;:18;40491:14;;40399:114;43003:929;43116:12;;43092:7;;43112:58;;-1:-1:-1;43157:1:0;43150:8;;43112:58;43223:12;;43182:11;;43248:435;43261:4;43255:3;:10;43248:435;;;43282:11;43296:34;43320:3;43325:4;43296:23;:34::i;:::-;43282:48;;43564:7;43551:5;43557:3;43551:10;;;;;;;;:::i;:::-;;;;;;;;;:20;43547:125;;;43599:3;43592:10;;43547:125;;;43649:7;:3;43655:1;43649:7;:::i;:::-;43643:13;;43547:125;43267:416;43248:435;;;43809:1;43803:3;:7;:36;;;;-1:-1:-1;43832:7:0;43814:5;43820:7;43826:1;43820:3;:7;:::i;:::-;43814:14;;;;;;;;:::i;:::-;;;;;;;;;:25;43803:36;43799:126;;;43863:7;43869:1;43863:3;:7;:::i;:::-;43856:14;;;;;;43799:126;-1:-1:-1;43910:3:0;-1:-1:-1;43903:10:0;;107420:643;107552:3;-1:-1:-1;;;;;107545:10:0;:3;-1:-1:-1;;;;;107545:10:0;;;:24;;;;;107568:1;107559:6;:10;107545:24;107541:515;;;-1:-1:-1;;;;;107590:17:0;;;107586:224;;-1:-1:-1;;;;;107686:17:0;;107629;107686;;;:12;:17;;;;;107629;;107669:54;;107705:9;107716:6;107669:16;:54::i;:::-;107628:95;;;;107768:3;-1:-1:-1;;;;;107747:47:0;;107773:9;107784;107747:47;;;;;;27156:25:1;;;27212:2;27197:18;;27190:34;27144:2;27129:18;;26982:248;107747:47:0;;;;;;;;107609:201;;107586:224;-1:-1:-1;;;;;107830:17:0;;;107826:219;;-1:-1:-1;;;;;107926:17:0;;107869;107926;;;:12;:17;;;;;107869;;107909:49;;107945:4;107951:6;107909:16;:49::i;:::-;107868:90;;;;108003:3;-1:-1:-1;;;;;107982:47:0;;108008:9;108019;107982:47;;;;;;27156:25:1;;;27212:2;27197:18;;27190:34;27144:2;27129:18;;26982:248;107982:47:0;;;;;;;;107849:196;;107420:643;;;:::o;64801:65::-;46069:13;;;;;;;;:30;;-1:-1:-1;46087:12:0;;;;46086:13;46069:30;46061:89;;;;-1:-1:-1;;;46061:89:0;;;;;;;:::i;:::-;46163:19;46186:13;;;;;;46185:14;46210:101;;;;46245:13;:20;;-1:-1:-1;;46280:19:0;;;;;46337:68;;;;46388:5;46372:21;;-1:-1:-1;;46372:21:0;;;46050:362;64801:65::o;81619:157::-;46069:13;;;;;;;;:30;;-1:-1:-1;46087:12:0;;;;46086:13;46069:30;46061:89;;;;-1:-1:-1;;;46061:89:0;;;;;;;:::i;:::-;46163:19;46186:13;;;;;;46185:14;46210:101;;;;46245:13;:20;;-1:-1:-1;;46280:19:0;;;;;46210:101;81727:13;;::::1;::::0;:5:::1;::::0;:13:::1;::::0;::::1;::::0;::::1;:::i;:::-;-1:-1:-1::0;81751:17:0;;::::1;::::0;:7:::1;::::0;:17:::1;::::0;::::1;::::0;::::1;:::i;:::-;;46341:14:::0;46337:68;;;46388:5;46372:21;;-1:-1:-1;;46372:21:0;;;46050:362;81619:157;;:::o;66309:92::-;46069:13;;;;;;;;:30;;-1:-1:-1;46087:12:0;;;;46086:13;46069:30;46061:89;;;;-1:-1:-1;;;46061:89:0;;;;;;;:::i;:::-;46163:19;46186:13;;;;;;46185:14;46210:101;;;;46245:13;:20;;-1:-1:-1;;46280:19:0;;;;;46210:101;66378:7:::1;:15:::0;;-1:-1:-1;;66378:15:0::1;::::0;;46337:68;;;;46388:5;46372:21;;-1:-1:-1;;46372:21:0;;;46050:362;66309:92::o;60268:297::-;46069:13;;;;;;;;:30;;-1:-1:-1;46087:12:0;;;;46086:13;46069:30;46061:89;;;;-1:-1:-1;;;46061:89:0;;;;;;;:::i;:::-;46163:19;46186:13;;;;;;46185:14;46210:101;;;;46245:13;:20;;-1:-1:-1;;46280:19:0;;;;;46210:101;60397:22;;::::1;::::0;;::::1;::::0;;;;60454:25;;;;::::1;::::0;;;;60490:12:::1;:25:::0;;;;60526:15:::1;:31:::0;46337:68;;;;46388:5;46372:21;;-1:-1:-1;;46372:21:0;;;46050:362;60268:297;;:::o;97133:206::-;46069:13;;;;;;;;:30;;-1:-1:-1;46087:12:0;;;;46086:13;46069:30;46061:89;;;;-1:-1:-1;;;46061:89:0;;;;;;;:::i;:::-;46163:19;46186:13;;;;;;46185:14;46210:101;;;;46245:13;:20;;-1:-1:-1;;46280:19:0;;;;;46210:101;97242:95:::1;97223:16;:114:::0;46337:68;;;;46388:5;46372:21;;-1:-1:-1;;46372:21:0;;;46050:362;97133:206;:::o;32730:1632::-;32861:7;;33795:66;33782:79;;33778:163;;;-1:-1:-1;33894:1:0;;-1:-1:-1;33898:30:0;33878:51;;33778:163;33955:1;:7;;33960:2;33955:7;;:18;;;;;33966:1;:7;;33971:2;33966:7;;33955:18;33951:102;;;-1:-1:-1;34006:1:0;;-1:-1:-1;34010:30:0;33990:51;;33951:102;34167:24;;;34150:14;34167:24;;;;;;;;;11100:25:1;;;11173:4;11161:17;;11141:18;;;11134:45;;;;11195:18;;;11188:34;;;11238:18;;;11231:34;;;34167:24:0;;11072:19:1;;34167:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;34167:24:0;;-1:-1:-1;;34167:24:0;;;-1:-1:-1;;;;;;;34206:20:0;;34202:103;;34259:1;34263:29;34243:50;;;;;;;34202:103;34325:6;-1:-1:-1;34333:20:0;;-1:-1:-1;32730:1632:0;;;;;;;;:::o;27392:643::-;27470:20;27461:5;:29;;;;;;;;:::i;:::-;;27457:571;;;27392:643;:::o;27457:571::-;27568:29;27559:5;:38;;;;;;;;:::i;:::-;;27555:473;;;27614:34;;-1:-1:-1;;;27614:34:0;;11866:2:1;27614:34:0;;;11848:21:1;11905:2;11885:18;;;11878:30;11944:26;11924:18;;;11917:54;11988:18;;27614:34:0;11664:348:1;27555:473:0;27679:35;27670:5;:44;;;;;;;;:::i;:::-;;27666:362;;;27731:41;;-1:-1:-1;;;27731:41:0;;14812:2:1;27731:41:0;;;14794:21:1;14851:2;14831:18;;;14824:30;14890:33;14870:18;;;14863:61;14941:18;;27731:41:0;14610:355:1;27666:362:0;27803:30;27794:5;:39;;;;;;;;:::i;:::-;;27790:238;;;27850:44;;-1:-1:-1;;;27850:44:0;;17523:2:1;27850:44:0;;;17505:21:1;17562:2;17542:18;;;17535:30;17601:34;17581:18;;;17574:62;-1:-1:-1;;;17652:18:1;;;17645:32;17694:19;;27850:44:0;17321:398:1;27790:238:0;27925:30;27916:5;:39;;;;;;;;:::i;:::-;;27912:116;;;27972:44;;-1:-1:-1;;;27972:44:0;;19860:2:1;27972:44:0;;;19842:21:1;19899:2;19879:18;;;19872:30;19938:34;19918:18;;;19911:62;-1:-1:-1;;;19989:18:1;;;19982:32;20031:19;;27972:44:0;19658:398:1;115202:622:0;-1:-1:-1;;;;;115406:18:0;;115402:415;;115462:26;115485:2;115462:22;:26::i;:::-;115503:28;:26;:28::i;115402:415::-;-1:-1:-1;;;;;115553:16:0;;115549:268;;115607:28;115630:4;115607:22;:28::i;115549:268::-;115736:28;115759:4;115736:22;:28::i;:::-;115779:26;115802:2;115779:22;:26::i;106598:262::-;-1:-1:-1;;;;;101836:19:0;;;101809:7;101836:19;;;:10;:19;;;;;;;;;;;;;;;106796:56;;101836:19;;;;;106845:6;106796:16;:56::i;9132:712::-;9282:12;9311:7;9307:530;;;-1:-1:-1;9342:10:0;9335:17;;9307:530;9456:17;;:21;9452:374;;9654:10;9648:17;9715:15;9702:10;9698:2;9694:19;9687:44;9452:374;9797:12;9790:20;;-1:-1:-1;;;9790:20:0;;;;;;;;:::i;88206:399::-;-1:-1:-1;;;;;88290:21:0;;88282:65;;;;-1:-1:-1;;;88282:65:0;;26291:2:1;88282:65:0;;;26273:21:1;26330:2;26310:18;;;26303:30;26369:33;26349:18;;;26342:61;26420:18;;88282:65:0;26089:355:1;88282:65:0;88360:49;88389:1;88393:7;88402:6;88360:20;:49::i;:::-;88438:6;88422:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;88455:18:0;;;;;;:9;:18;;;;;:28;;88477:6;;88455:18;:28;;88477:6;;88455:28;:::i;:::-;;;;-1:-1:-1;;88499:37:0;;9325:25:1;;;-1:-1:-1;;;;;88499:37:0;;;88516:1;;88499:37;;9313:2:1;9298:18;88499:37:0;;;;;;;88549:48;88577:1;88581:7;88590:6;88549:19;:48::i;108757:98::-;108815:7;108842:5;108846:1;108842;:5;:::i;108071:678::-;108308:12;;108245:17;;;;108343:8;;:35;;108358:5;108364:7;108370:1;108364:3;:7;:::i;:::-;108358:14;;;;;;;;:::i;:::-;;;;;;;;;;:20;;;;-1:-1:-1;;;;;108358:20:0;108343:35;;;108354:1;108343:35;-1:-1:-1;;;;;108331:47:0;;;108401:20;108404:9;108415:5;108401:2;:20;;:::i;:::-;108389:32;;108444:1;108438:3;:7;:51;;;;-1:-1:-1;108477:12:0;108449:5;108455:7;108461:1;108455:3;:7;:::i;:::-;108449:14;;;;;;;;:::i;:::-;;;;;;;;;;:24;;;:40;108438:51;108434:308;;;108529:40;108559:9;108529:29;:40::i;:::-;108506:5;108512:7;108518:1;108512:3;:7;:::i;:::-;108506:14;;;;;;;;:::i;:::-;;;;;;;;:20;;;:63;;;;;-1:-1:-1;;;;;108506:63:0;;;;;-1:-1:-1;;;;;108506:63:0;;;;;;108434:308;;;108602:5;108613:116;;;;;;;;108636:42;108665:12;108636:28;:42::i;:::-;108613:116;;;;;;108687:40;108717:9;108687:29;:40::i;:::-;-1:-1:-1;;;;;108613:116:0;;;;;;108602:128;;;;;;;-1:-1:-1;108602:128:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;108434:308;108283:466;108071:678;;;;;;:::o;88938:591::-;-1:-1:-1;;;;;89022:21:0;;89014:67;;;;-1:-1:-1;;;89014:67:0;;22675:2:1;89014:67:0;;;22657:21:1;22714:2;22694:18;;;22687:30;22753:34;22733:18;;;22726:62;-1:-1:-1;;;22804:18:1;;;22797:31;22845:19;;89014:67:0;22473:397:1;89014:67:0;89094:49;89115:7;89132:1;89136:6;89094:20;:49::i;:::-;-1:-1:-1;;;;;89181:18:0;;89156:22;89181:18;;;:9;:18;;;;;;89218:24;;;;89210:71;;;;-1:-1:-1;;;89210:71:0;;14409:2:1;89210:71:0;;;14391:21:1;14448:2;14428:18;;;14421:30;14487:34;14467:18;;;14460:62;-1:-1:-1;;;14538:18:1;;;14531:32;14580:19;;89210:71:0;14207:398:1;89210:71:0;-1:-1:-1;;;;;89317:18:0;;;;;;:9;:18;;;;;89338:23;;;89317:44;;89383:12;:22;;89355:6;;89317:18;89383:22;;89355:6;;89383:22;:::i;:::-;;;;-1:-1:-1;;89423:37:0;;9325:25:1;;;89449:1:0;;-1:-1:-1;;;;;89423:37:0;;;;;9313:2:1;9298:18;89423:37:0;;;;;;;89473:48;89493:7;89510:1;89514:6;89473:19;:48::i;108863:103::-;108926:7;108953:5;108957:1;108953;:5;:::i;117459:146::-;-1:-1:-1;;;;;117543:33:0;;;;;;:24;:33;;;;;;;;83238:9;:18;;;;;;;117527:70;;117543:33;117527:15;:70::i;117578:18::-;117527:15;:70::i;117613:118::-;117670:53;117686:21;117709:13;83054:12;;;82966:108;117670:53;117613:118::o;14368:195::-;14425:7;-1:-1:-1;;;;;14453:26:0;;;14445:78;;;;-1:-1:-1;;;14445:78:0;;21862:2:1;14445:78:0;;;21844:21:1;21901:2;21881:18;;;21874:30;21940:34;21920:18;;;21913:62;-1:-1:-1;;;21991:18:1;;;21984:37;22038:19;;14445:78:0;21660:403:1;117739:310:0;117834:17;117854:23;:21;:23::i;:::-;117834:43;-1:-1:-1;117834:43:0;117892:30;117908:9;117892:15;:30::i;:::-;:42;117888:154;;;117951:29;;;;;;;;-1:-1:-1;117951:29:0;;;;;;;;;;;;;;117995:16;;;:35;;;;;;;;;;;;;;;117739:310::o;118057:212::-;118151:10;;118127:7;;118147:115;;-1:-1:-1;118190:1:0;;118057:212;-1:-1:-1;118057:212:0:o;118147:115::-;118235:10;;118231:3;;118235:14;;118248:1;;118235:14;:::i;:::-;118231:19;;;;;;;;:::i;:::-;;;;;;;;;118224:26;;118057:212;;;:::o;118147:115::-;118057:212;;;:::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14:156:1;80:20;;140:4;129:16;;119:27;;109:55;;160:1;157;150:12;175:247;234:6;287:2;275:9;266:7;262:23;258:32;255:52;;;303:1;300;293:12;255:52;342:9;329:23;361:31;386:5;361:31;:::i;427:388::-;495:6;503;556:2;544:9;535:7;531:23;527:32;524:52;;;572:1;569;562:12;524:52;611:9;598:23;630:31;655:5;630:31;:::i;:::-;680:5;-1:-1:-1;737:2:1;722:18;;709:32;750:33;709:32;750:33;:::i;:::-;802:7;792:17;;;427:388;;;;;:::o;820:456::-;897:6;905;913;966:2;954:9;945:7;941:23;937:32;934:52;;;982:1;979;972:12;934:52;1021:9;1008:23;1040:31;1065:5;1040:31;:::i;:::-;1090:5;-1:-1:-1;1147:2:1;1132:18;;1119:32;1160:33;1119:32;1160:33;:::i;:::-;820:456;;1212:7;;-1:-1:-1;;;1266:2:1;1251:18;;;;1238:32;;820:456::o;1281:734::-;1392:6;1400;1408;1416;1424;1432;1440;1493:3;1481:9;1472:7;1468:23;1464:33;1461:53;;;1510:1;1507;1500:12;1461:53;1549:9;1536:23;1568:31;1593:5;1568:31;:::i;:::-;1618:5;-1:-1:-1;1675:2:1;1660:18;;1647:32;1688:33;1647:32;1688:33;:::i;:::-;1740:7;-1:-1:-1;1794:2:1;1779:18;;1766:32;;-1:-1:-1;1845:2:1;1830:18;;1817:32;;-1:-1:-1;1868:37:1;1900:3;1885:19;;1868:37;:::i;:::-;1858:47;;1952:3;1941:9;1937:19;1924:33;1914:43;;2004:3;1993:9;1989:19;1976:33;1966:43;;1281:734;;;;;;;;;;:::o;2020:1056::-;2097:6;2105;2158:2;2146:9;2137:7;2133:23;2129:32;2126:52;;;2174:1;2171;2164:12;2126:52;2213:9;2200:23;2232:31;2257:5;2232:31;:::i;:::-;2282:5;-1:-1:-1;2338:2:1;2323:18;;2310:32;2361:18;2391:14;;;2388:34;;;2418:1;2415;2408:12;2388:34;2456:6;2445:9;2441:22;2431:32;;2501:7;2494:4;2490:2;2486:13;2482:27;2472:55;;2523:1;2520;2513:12;2472:55;2559:2;2546:16;2581:2;2577;2574:10;2571:36;;;2587:18;;:::i;:::-;2662:2;2656:9;2630:2;2716:13;;-1:-1:-1;;2712:22:1;;;2736:2;2708:31;2704:40;2692:53;;;2760:18;;;2780:22;;;2757:46;2754:72;;;2806:18;;:::i;:::-;2846:10;2842:2;2835:22;2881:2;2873:6;2866:18;2921:7;2916:2;2911;2907;2903:11;2899:20;2896:33;2893:53;;;2942:1;2939;2932:12;2893:53;2998:2;2993;2989;2985:11;2980:2;2972:6;2968:15;2955:46;3043:1;3038:2;3033;3025:6;3021:15;3017:24;3010:35;3064:6;3054:16;;;;;;;2020:1056;;;;;:::o;3081:315::-;3149:6;3157;3210:2;3198:9;3189:7;3185:23;3181:32;3178:52;;;3226:1;3223;3216:12;3178:52;3265:9;3252:23;3284:31;3309:5;3284:31;:::i;:::-;3334:5;3386:2;3371:18;;;;3358:32;;-1:-1:-1;;;3081:315:1:o;3401:592::-;3503:6;3511;3519;3527;3535;3543;3596:3;3584:9;3575:7;3571:23;3567:33;3564:53;;;3613:1;3610;3603:12;3564:53;3652:9;3639:23;3671:31;3696:5;3671:31;:::i;:::-;3721:5;-1:-1:-1;3773:2:1;3758:18;;3745:32;;-1:-1:-1;3824:2:1;3809:18;;3796:32;;-1:-1:-1;3847:36:1;3879:2;3864:18;;3847:36;:::i;:::-;3837:46;;3930:3;3919:9;3915:19;3902:33;3892:43;;3982:3;3971:9;3967:19;3954:33;3944:43;;3401:592;;;;;;;;:::o;3998:419::-;4065:6;4073;4126:2;4114:9;4105:7;4101:23;4097:32;4094:52;;;4142:1;4139;4132:12;4094:52;4181:9;4168:23;4200:31;4225:5;4200:31;:::i;:::-;4250:5;-1:-1:-1;4307:2:1;4292:18;;4279:32;4355:10;4342:24;;4330:37;;4320:65;;4381:1;4378;4371:12;4422:180;4481:6;4534:2;4522:9;4513:7;4509:23;4505:32;4502:52;;;4550:1;4547;4540:12;4502:52;-1:-1:-1;4573:23:1;;4422:180;-1:-1:-1;4422:180:1:o;4607:184::-;4677:6;4730:2;4718:9;4709:7;4705:23;4701:32;4698:52;;;4746:1;4743;4736:12;4698:52;-1:-1:-1;4769:16:1;;4607:184;-1:-1:-1;4607:184:1:o;4796:315::-;4864:6;4872;4925:2;4913:9;4904:7;4900:23;4896:32;4893:52;;;4941:1;4938;4931:12;4893:52;4977:9;4964:23;4954:33;;5037:2;5026:9;5022:18;5009:32;5050:31;5075:5;5050:31;:::i;5116:286::-;5174:6;5227:2;5215:9;5206:7;5202:23;5198:32;5195:52;;;5243:1;5240;5233:12;5195:52;5269:23;;-1:-1:-1;;;;;;5321:32:1;;5311:43;;5301:71;;5368:1;5365;5358:12;5407:976;5544:6;5552;5560;5568;5576;5629:3;5617:9;5608:7;5604:23;5600:33;5597:53;;;5646:1;5643;5636:12;5597:53;5685:9;5672:23;5704:31;5729:5;5704:31;:::i;:::-;5754:5;-1:-1:-1;5811:2:1;5796:18;;5783:32;5824:33;5783:32;5824:33;:::i;:::-;5876:7;-1:-1:-1;5930:2:1;5915:18;;5902:32;;-1:-1:-1;5985:2:1;5970:18;;5957:32;6008:18;6038:14;;;6035:34;;;6065:1;6062;6055:12;6035:34;6103:6;6092:9;6088:22;6078:32;;6148:7;6141:4;6137:2;6133:13;6129:27;6119:55;;6170:1;6167;6160:12;6119:55;6210:2;6197:16;6236:2;6228:6;6225:14;6222:34;;;6252:1;6249;6242:12;6222:34;6297:7;6292:2;6283:6;6279:2;6275:15;6271:24;6268:37;6265:57;;;6318:1;6315;6308:12;6265:57;5407:976;;;;-1:-1:-1;5407:976:1;;-1:-1:-1;6349:2:1;6341:11;;6371:6;5407:976;-1:-1:-1;;;5407:976:1:o;6573:274::-;6702:3;6740:6;6734:13;6756:53;6802:6;6797:3;6790:4;6782:6;6778:17;6756:53;:::i;:::-;6825:16;;;;;6573:274;-1:-1:-1;;6573:274:1:o;7249:786::-;7660:25;7655:3;7648:38;7630:3;7715:6;7709:13;7731:62;7786:6;7781:2;7776:3;7772:12;7765:4;7757:6;7753:17;7731:62;:::i;:::-;-1:-1:-1;;;7852:2:1;7812:16;;;7844:11;;;7837:40;7902:13;;7924:63;7902:13;7973:2;7965:11;;7958:4;7946:17;;7924:63;:::i;:::-;8007:17;8026:2;8003:26;;7249:786;-1:-1:-1;;;;7249:786:1:o;8248:734::-;-1:-1:-1;;;;;8555:15:1;;;8537:34;;8607:15;;8602:2;8587:18;;8580:43;8654:2;8639:18;;8632:34;;;8697:2;8682:18;;8675:34;;;8517:3;8740;8725:19;;8718:32;;;8766:19;;8759:35;;;8480:4;8787:6;8837;8831:3;8816:19;;8803:49;8902:1;8896:3;8887:6;8876:9;8872:22;8868:32;8861:43;8972:3;8965:2;8961:7;8956:2;8948:6;8944:15;8940:29;8929:9;8925:45;8921:55;8913:63;;8248:734;;;;;;;;;:::o;11276:383::-;11425:2;11414:9;11407:21;11388:4;11457:6;11451:13;11500:6;11495:2;11484:9;11480:18;11473:34;11516:66;11575:6;11570:2;11559:9;11555:18;11550:2;11542:6;11538:15;11516:66;:::i;:::-;11643:2;11622:15;-1:-1:-1;;11618:29:1;11603:45;;;;11650:2;11599:54;;11276:383;-1:-1:-1;;11276:383:1:o;16143:408::-;16345:2;16327:21;;;16384:2;16364:18;;;16357:30;16423:34;16418:2;16403:18;;16396:62;-1:-1:-1;;;16489:2:1;16474:18;;16467:42;16541:3;16526:19;;16143:408::o;17724:::-;17926:2;17908:21;;;17965:2;17945:18;;;17938:30;18004:34;17999:2;17984:18;;17977:62;-1:-1:-1;;;18070:2:1;18055:18;;18048:42;18122:3;18107:19;;17724:408::o;18887:410::-;19089:2;19071:21;;;19128:2;19108:18;;;19101:30;19167:34;19162:2;19147:18;;19140:62;-1:-1:-1;;;19233:2:1;19218:18;;19211:44;19287:3;19272:19;;18887:410::o;27621:128::-;27661:3;27692:1;27688:6;27685:1;27682:13;27679:39;;;27698:18;;:::i;:::-;-1:-1:-1;27734:9:1;;27621:128::o;27754:217::-;27794:1;27820;27810:132;;27864:10;27859:3;27855:20;27852:1;27845:31;27899:4;27896:1;27889:15;27927:4;27924:1;27917:15;27810:132;-1:-1:-1;27956:9:1;;27754:217::o;27976:422::-;28065:1;28108:5;28065:1;28122:270;28143:7;28133:8;28130:21;28122:270;;;28202:4;28198:1;28194:6;28190:17;28184:4;28181:27;28178:53;;;28211:18;;:::i;:::-;28261:7;28251:8;28247:22;28244:55;;;28281:16;;;;28244:55;28360:22;;;;28320:15;;;;28122:270;;28403:140;28461:5;28490:47;28531:4;28521:8;28517:19;28511:4;28597:5;28627:8;28617:80;;-1:-1:-1;28668:1:1;28682:5;;28617:80;28716:4;28706:76;;-1:-1:-1;28753:1:1;28767:5;;28706:76;28798:4;28816:1;28811:59;;;;28884:1;28879:130;;;;28791:218;;28811:59;28841:1;28832:10;;28855:5;;;28879:130;28916:3;28906:8;28903:17;28900:43;;;28923:18;;:::i;:::-;-1:-1:-1;;28979:1:1;28965:16;;28994:5;;28791:218;;29093:2;29083:8;29080:16;29074:3;29068:4;29065:13;29061:36;29055:2;29045:8;29042:16;29037:2;29031:4;29028:12;29024:35;29021:77;29018:159;;;-1:-1:-1;29130:19:1;;;29162:5;;29018:159;29209:34;29234:8;29228:4;29209:34;:::i;:::-;29279:6;29275:1;29271:6;29267:19;29258:7;29255:32;29252:58;;;29290:18;;:::i;:::-;29328:20;;28548:806;-1:-1:-1;;;28548:806:1:o;29359:168::-;29399:7;29465:1;29461;29457:6;29453:14;29450:1;29447:21;29442:1;29435:9;29428:17;29424:45;29421:71;;;29472:18;;:::i;:::-;-1:-1:-1;29512:9:1;;29359:168::o;29532:125::-;29572:4;29600:1;29597;29594:8;29591:34;;;29605:18;;:::i;:::-;-1:-1:-1;29642:9:1;;29532:125::o;29662:258::-;29734:1;29744:113;29758:6;29755:1;29752:13;29744:113;;;29834:11;;;29828:18;29815:11;;;29808:39;29780:2;29773:10;29744:113;;;29875:6;29872:1;29869:13;29866:48;;;-1:-1:-1;;29910:1:1;29892:16;;29885:27;29662:258::o;29925:136::-;29964:3;29992:5;29982:39;;30001:18;;:::i;:::-;-1:-1:-1;;;30037:18:1;;29925:136::o;30066:380::-;30145:1;30141:12;;;;30188;;;30209:61;;30263:4;30255:6;30251:17;30241:27;;30209:61;30316:2;30308:6;30305:14;30285:18;30282:38;30279:161;;;30362:10;30357:3;30353:20;30350:1;30343:31;30397:4;30394:1;30387:15;30425:4;30422:1;30415:15;30451:127;30512:10;30507:3;30503:20;30500:1;30493:31;30543:4;30540:1;30533:15;30567:4;30564:1;30557:15;30583:127;30644:10;30639:3;30635:20;30632:1;30625:31;30675:4;30672:1;30665:15;30699:4;30696:1;30689:15;30715:127;30776:10;30771:3;30767:20;30764:1;30757:31;30807:4;30804:1;30797:15;30831:4;30828:1;30821:15;30847:127;30908:10;30903:3;30899:20;30896:1;30889:31;30939:4;30936:1;30929:15;30963:4;30960:1;30953:15;30979:131;-1:-1:-1;;;;;31054:31:1;;31044:42;;31034:70;;31100:1;31097;31090:12

Swarm Source

ipfs://66a835f8b71cff8464d76600e353b59a6e034e4af4422fd80967e79a7743c1cc

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.