{"file_path":"MintableToken.sol","creation_status":"success","source_code":"// SPDX-License-Identifier: Apache-2.0\r\n// Sources flattened with hardhat v2.12.5 https://hardhat.org\r\n\r\n// File @openzeppelin/contracts-upgradeable/access/IAccessControlUpgradeable.sol@v4.8.1\r\n\r\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\r\n\r\npragma solidity ^0.8.0;\r\n\r\n/**\r\n * @dev External interface of AccessControl declared to support ERC165 detection.\r\n */\r\ninterface IAccessControlUpgradeable {\r\n    /**\r\n     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\r\n     *\r\n     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\r\n     * {RoleAdminChanged} not being emitted signaling this.\r\n     *\r\n     * _Available since v3.1._\r\n     */\r\n    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\r\n\r\n    /**\r\n     * @dev Emitted when `account` is granted `role`.\r\n     *\r\n     * `sender` is the account that originated the contract call, an admin role\r\n     * bearer except when using {AccessControl-_setupRole}.\r\n     */\r\n    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\r\n\r\n    /**\r\n     * @dev Emitted when `account` is revoked `role`.\r\n     *\r\n     * `sender` is the account that originated the contract call:\r\n     *   - if using `revokeRole`, it is the admin role bearer\r\n     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)\r\n     */\r\n    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\r\n\r\n    /**\r\n     * @dev Returns `true` if `account` has been granted `role`.\r\n     */\r\n    function hasRole(bytes32 role, address account) external view returns (bool);\r\n\r\n    /**\r\n     * @dev Returns the admin role that controls `role`. See {grantRole} and\r\n     * {revokeRole}.\r\n     *\r\n     * To change a role's admin, use {AccessControl-_setRoleAdmin}.\r\n     */\r\n    function getRoleAdmin(bytes32 role) external view returns (bytes32);\r\n\r\n    /**\r\n     * @dev Grants `role` to `account`.\r\n     *\r\n     * If `account` had not been already granted `role`, emits a {RoleGranted}\r\n     * event.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - the caller must have ``role``'s admin role.\r\n     */\r\n    function grantRole(bytes32 role, address account) external;\r\n\r\n    /**\r\n     * @dev Revokes `role` from `account`.\r\n     *\r\n     * If `account` had been granted `role`, emits a {RoleRevoked} event.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - the caller must have ``role``'s admin role.\r\n     */\r\n    function revokeRole(bytes32 role, address account) external;\r\n\r\n    /**\r\n     * @dev Revokes `role` from the calling account.\r\n     *\r\n     * Roles are often managed via {grantRole} and {revokeRole}: this function's\r\n     * purpose is to provide a mechanism for accounts to lose their privileges\r\n     * if they are compromised (such as when a trusted device is misplaced).\r\n     *\r\n     * If the calling account had been granted `role`, emits a {RoleRevoked}\r\n     * event.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - the caller must be `account`.\r\n     */\r\n    function renounceRole(bytes32 role, address account) external;\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol@v4.8.1\r\n\r\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\r\n\r\npragma solidity ^0.8.1;\r\n\r\n/**\r\n * @dev Collection of functions related to the address type\r\n */\r\nlibrary AddressUpgradeable {\r\n    /**\r\n     * @dev Returns true if `account` is a contract.\r\n     *\r\n     * [IMPORTANT]\r\n     * ====\r\n     * It is unsafe to assume that an address for which this function returns\r\n     * false is an externally-owned account (EOA) and not a contract.\r\n     *\r\n     * Among others, `isContract` will return false for the following\r\n     * types of addresses:\r\n     *\r\n     *  - an externally-owned account\r\n     *  - a contract in construction\r\n     *  - an address where a contract will be created\r\n     *  - an address where a contract lived, but was destroyed\r\n     * ====\r\n     *\r\n     * [IMPORTANT]\r\n     * ====\r\n     * You shouldn't rely on `isContract` to protect against flash loan attacks!\r\n     *\r\n     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\r\n     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\r\n     * constructor.\r\n     * ====\r\n     */\r\n    function isContract(address account) internal view returns (bool) {\r\n        // This method relies on extcodesize/address.code.length, which returns 0\r\n        // for contracts in construction, since the code is only stored at the end\r\n        // of the constructor execution.\r\n\r\n        return account.code.length > 0;\r\n    }\r\n\r\n    /**\r\n     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\r\n     * `recipient`, forwarding all available gas and reverting on errors.\r\n     *\r\n     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\r\n     * of certain opcodes, possibly making contracts go over the 2300 gas limit\r\n     * imposed by `transfer`, making them unable to receive funds via\r\n     * `transfer`. {sendValue} removes this limitation.\r\n     *\r\n     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\r\n     *\r\n     * IMPORTANT: because control is transferred to `recipient`, care must be\r\n     * taken to not create reentrancy vulnerabilities. Consider using\r\n     * {ReentrancyGuard} or the\r\n     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\r\n     */\r\n    function sendValue(address payable recipient, uint256 amount) internal {\r\n        require(address(this).balance >= amount, \"Address: insufficient balance\");\r\n\r\n        (bool success, ) = recipient.call{value: amount}(\"\");\r\n        require(success, \"Address: unable to send value, recipient may have reverted\");\r\n    }\r\n\r\n    /**\r\n     * @dev Performs a Solidity function call using a low level `call`. A\r\n     * plain `call` is an unsafe replacement for a function call: use this\r\n     * function instead.\r\n     *\r\n     * If `target` reverts with a revert reason, it is bubbled up by this\r\n     * function (like regular Solidity function calls).\r\n     *\r\n     * Returns the raw returned data. To convert to the expected return value,\r\n     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `target` must be a contract.\r\n     * - calling `target` with `data` must not revert.\r\n     *\r\n     * _Available since v3.1._\r\n     */\r\n    function functionCall(address target, bytes memory data) internal returns (bytes memory) {\r\n        return functionCallWithValue(target, data, 0, \"Address: low-level call failed\");\r\n    }\r\n\r\n    /**\r\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\r\n     * `errorMessage` as a fallback revert reason when `target` reverts.\r\n     *\r\n     * _Available since v3.1._\r\n     */\r\n    function functionCall(\r\n        address target,\r\n        bytes memory data,\r\n        string memory errorMessage\r\n    ) internal returns (bytes memory) {\r\n        return functionCallWithValue(target, data, 0, errorMessage);\r\n    }\r\n\r\n    /**\r\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\r\n     * but also transferring `value` wei to `target`.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - the calling contract must have an ETH balance of at least `value`.\r\n     * - the called Solidity function must be `payable`.\r\n     *\r\n     * _Available since v3.1._\r\n     */\r\n    function functionCallWithValue(\r\n        address target,\r\n        bytes memory data,\r\n        uint256 value\r\n    ) internal returns (bytes memory) {\r\n        return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\r\n    }\r\n\r\n    /**\r\n     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\r\n     * with `errorMessage` as a fallback revert reason when `target` reverts.\r\n     *\r\n     * _Available since v3.1._\r\n     */\r\n    function functionCallWithValue(\r\n        address target,\r\n        bytes memory data,\r\n        uint256 value,\r\n        string memory errorMessage\r\n    ) internal returns (bytes memory) {\r\n        require(address(this).balance >= value, \"Address: insufficient balance for call\");\r\n        (bool success, bytes memory returndata) = target.call{value: value}(data);\r\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\r\n    }\r\n\r\n    /**\r\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\r\n     * but performing a static call.\r\n     *\r\n     * _Available since v3.3._\r\n     */\r\n    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\r\n        return functionStaticCall(target, data, \"Address: low-level static call failed\");\r\n    }\r\n\r\n    /**\r\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\r\n     * but performing a static call.\r\n     *\r\n     * _Available since v3.3._\r\n     */\r\n    function functionStaticCall(\r\n        address target,\r\n        bytes memory data,\r\n        string memory errorMessage\r\n    ) internal view returns (bytes memory) {\r\n        (bool success, bytes memory returndata) = target.staticcall(data);\r\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\r\n    }\r\n\r\n    /**\r\n     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\r\n     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\r\n     *\r\n     * _Available since v4.8._\r\n     */\r\n    function verifyCallResultFromTarget(\r\n        address target,\r\n        bool success,\r\n        bytes memory returndata,\r\n        string memory errorMessage\r\n    ) internal view returns (bytes memory) {\r\n        if (success) {\r\n            if (returndata.length == 0) {\r\n                // only check isContract if the call was successful and the return data is empty\r\n                // otherwise we already know that it was a contract\r\n                require(isContract(target), \"Address: call to non-contract\");\r\n            }\r\n            return returndata;\r\n        } else {\r\n            _revert(returndata, errorMessage);\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\r\n     * revert reason or using the provided one.\r\n     *\r\n     * _Available since v4.3._\r\n     */\r\n    function verifyCallResult(\r\n        bool success,\r\n        bytes memory returndata,\r\n        string memory errorMessage\r\n    ) internal pure returns (bytes memory) {\r\n        if (success) {\r\n            return returndata;\r\n        } else {\r\n            _revert(returndata, errorMessage);\r\n        }\r\n    }\r\n\r\n    function _revert(bytes memory returndata, string memory errorMessage) private pure {\r\n        // Look for revert reason and bubble it up if present\r\n        if (returndata.length > 0) {\r\n            // The easiest way to bubble the revert reason is using memory via assembly\r\n            /// @solidity memory-safe-assembly\r\n            assembly {\r\n                let returndata_size := mload(returndata)\r\n                revert(add(32, returndata), returndata_size)\r\n            }\r\n        } else {\r\n            revert(errorMessage);\r\n        }\r\n    }\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol@v4.8.1\r\n\r\n// OpenZeppelin Contracts (last updated v4.8.1) (proxy/utils/Initializable.sol)\r\n\r\npragma solidity ^0.8.2;\r\n\r\n/**\r\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\r\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\r\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\r\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\r\n *\r\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\r\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\r\n * case an upgrade adds a module that needs to be initialized.\r\n *\r\n * For example:\r\n *\r\n * [.hljs-theme-light.nopadding]\r\n * ```\r\n * contract MyToken is ERC20Upgradeable {\r\n *     function initialize() initializer public {\r\n *         __ERC20_init(\"MyToken\", \"MTK\");\r\n *     }\r\n * }\r\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\r\n *     function initializeV2() reinitializer(2) public {\r\n *         __ERC20Permit_init(\"MyToken\");\r\n *     }\r\n * }\r\n * ```\r\n *\r\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\r\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\r\n *\r\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\r\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\r\n *\r\n * [CAUTION]\r\n * ====\r\n * Avoid leaving a contract uninitialized.\r\n *\r\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\r\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\r\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\r\n *\r\n * [.hljs-theme-light.nopadding]\r\n * ```\r\n * /// @custom:oz-upgrades-unsafe-allow constructor\r\n * constructor() {\r\n *     _disableInitializers();\r\n * }\r\n * ```\r\n * ====\r\n */\r\nabstract contract Initializable {\r\n    /**\r\n     * @dev Indicates that the contract has been initialized.\r\n     * @custom:oz-retyped-from bool\r\n     */\r\n    uint8 private _initialized;\r\n\r\n    /**\r\n     * @dev Indicates that the contract is in the process of being initialized.\r\n     */\r\n    bool private _initializing;\r\n\r\n    /**\r\n     * @dev Triggered when the contract has been initialized or reinitialized.\r\n     */\r\n    event Initialized(uint8 version);\r\n\r\n    /**\r\n     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\r\n     * `onlyInitializing` functions can be used to initialize parent contracts.\r\n     *\r\n     * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\r\n     * constructor.\r\n     *\r\n     * Emits an {Initialized} event.\r\n     */\r\n    modifier initializer() {\r\n        bool isTopLevelCall = !_initializing;\r\n        require(\r\n            (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\r\n            \"Initializable: contract is already initialized\"\r\n        );\r\n        _initialized = 1;\r\n        if (isTopLevelCall) {\r\n            _initializing = true;\r\n        }\r\n        _;\r\n        if (isTopLevelCall) {\r\n            _initializing = false;\r\n            emit Initialized(1);\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\r\n     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\r\n     * used to initialize parent contracts.\r\n     *\r\n     * A reinitializer may be used after the original initialization step. This is essential to configure modules that\r\n     * are added through upgrades and that require initialization.\r\n     *\r\n     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\r\n     * cannot be nested. If one is invoked in the context of another, execution will revert.\r\n     *\r\n     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\r\n     * a contract, executing them in the right order is up to the developer or operator.\r\n     *\r\n     * WARNING: setting the version to 255 will prevent any future reinitialization.\r\n     *\r\n     * Emits an {Initialized} event.\r\n     */\r\n    modifier reinitializer(uint8 version) {\r\n        require(!_initializing && _initialized < version, \"Initializable: contract is already initialized\");\r\n        _initialized = version;\r\n        _initializing = true;\r\n        _;\r\n        _initializing = false;\r\n        emit Initialized(version);\r\n    }\r\n\r\n    /**\r\n     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\r\n     * {initializer} and {reinitializer} modifiers, directly or indirectly.\r\n     */\r\n    modifier onlyInitializing() {\r\n        require(_initializing, \"Initializable: contract is not initializing\");\r\n        _;\r\n    }\r\n\r\n    /**\r\n     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\r\n     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\r\n     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\r\n     * through proxies.\r\n     *\r\n     * Emits an {Initialized} event the first time it is successfully executed.\r\n     */\r\n    function _disableInitializers() internal virtual {\r\n        require(!_initializing, \"Initializable: contract is initializing\");\r\n        if (_initialized < type(uint8).max) {\r\n            _initialized = type(uint8).max;\r\n            emit Initialized(type(uint8).max);\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the highest version that has been initialized. See {reinitializer}.\r\n     */\r\n    function _getInitializedVersion() internal view returns (uint8) {\r\n        return _initialized;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\r\n     */\r\n    function _isInitializing() internal view returns (bool) {\r\n        return _initializing;\r\n    }\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol@v4.8.1\r\n\r\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\r\n\r\npragma solidity ^0.8.0;\r\n\r\n/**\r\n * @dev Provides information about the current execution context, including the\r\n * sender of the transaction and its data. While these are generally available\r\n * via msg.sender and msg.data, they should not be accessed in such a direct\r\n * manner, since when dealing with meta-transactions the account sending and\r\n * paying for execution may not be the actual sender (as far as an application\r\n * is concerned).\r\n *\r\n * This contract is only required for intermediate, library-like contracts.\r\n */\r\nabstract contract ContextUpgradeable is Initializable {\r\n    function __Context_init() internal onlyInitializing {\r\n    }\r\n\r\n    function __Context_init_unchained() internal onlyInitializing {\r\n    }\r\n    function _msgSender() internal view virtual returns (address) {\r\n        return msg.sender;\r\n    }\r\n\r\n    function _msgData() internal view virtual returns (bytes calldata) {\r\n        return msg.data;\r\n    }\r\n\r\n    /**\r\n     * @dev This empty reserved space is put in place to allow future versions to add new\r\n     * variables without shifting down storage in the inheritance chain.\r\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\r\n     */\r\n    uint256[50] private __gap;\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol@v4.8.1\r\n\r\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\r\n\r\npragma solidity ^0.8.0;\r\n\r\n/**\r\n * @dev Interface of the ERC165 standard, as defined in the\r\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\r\n *\r\n * Implementers can declare support of contract interfaces, which can then be\r\n * queried by others ({ERC165Checker}).\r\n *\r\n * For an implementation, see {ERC165}.\r\n */\r\ninterface IERC165Upgradeable {\r\n    /**\r\n     * @dev Returns true if this contract implements the interface defined by\r\n     * `interfaceId`. See the corresponding\r\n     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\r\n     * to learn more about how these ids are created.\r\n     *\r\n     * This function call must use less than 30 000 gas.\r\n     */\r\n    function supportsInterface(bytes4 interfaceId) external view returns (bool);\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol@v4.8.1\r\n\r\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\r\n\r\npragma solidity ^0.8.0;\r\n\r\n\r\n/**\r\n * @dev Implementation of the {IERC165} interface.\r\n *\r\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\r\n * for the additional interface id that will be supported. For example:\r\n *\r\n * ```solidity\r\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\r\n *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\r\n * }\r\n * ```\r\n *\r\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\r\n */\r\nabstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable {\r\n    function __ERC165_init() internal onlyInitializing {\r\n    }\r\n\r\n    function __ERC165_init_unchained() internal onlyInitializing {\r\n    }\r\n    /**\r\n     * @dev See {IERC165-supportsInterface}.\r\n     */\r\n    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\r\n        return interfaceId == type(IERC165Upgradeable).interfaceId;\r\n    }\r\n\r\n    /**\r\n     * @dev This empty reserved space is put in place to allow future versions to add new\r\n     * variables without shifting down storage in the inheritance chain.\r\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\r\n     */\r\n    uint256[50] private __gap;\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol@v4.8.1\r\n\r\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\r\n\r\npragma solidity ^0.8.0;\r\n\r\n/**\r\n * @dev Standard math utilities missing in the Solidity language.\r\n */\r\nlibrary MathUpgradeable {\r\n    enum Rounding {\r\n        Down, // Toward negative infinity\r\n        Up, // Toward infinity\r\n        Zero // Toward zero\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the largest of two numbers.\r\n     */\r\n    function max(uint256 a, uint256 b) internal pure returns (uint256) {\r\n        return a > b ? a : b;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the smallest of two numbers.\r\n     */\r\n    function min(uint256 a, uint256 b) internal pure returns (uint256) {\r\n        return a < b ? a : b;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the average of two numbers. The result is rounded towards\r\n     * zero.\r\n     */\r\n    function average(uint256 a, uint256 b) internal pure returns (uint256) {\r\n        // (a + b) / 2 can overflow.\r\n        return (a & b) + (a ^ b) / 2;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the ceiling of the division of two numbers.\r\n     *\r\n     * This differs from standard division with `/` in that it rounds up instead\r\n     * of rounding down.\r\n     */\r\n    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\r\n        // (a + b - 1) / b can overflow on addition, so we distribute.\r\n        return a == 0 ? 0 : (a - 1) / b + 1;\r\n    }\r\n\r\n    /**\r\n     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\r\n     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\r\n     * with further edits by Uniswap Labs also under MIT license.\r\n     */\r\n    function mulDiv(\r\n        uint256 x,\r\n        uint256 y,\r\n        uint256 denominator\r\n    ) internal pure returns (uint256 result) {\r\n        unchecked {\r\n            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\r\n            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\r\n            // variables such that product = prod1 * 2^256 + prod0.\r\n            uint256 prod0; // Least significant 256 bits of the product\r\n            uint256 prod1; // Most significant 256 bits of the product\r\n            assembly {\r\n                let mm := mulmod(x, y, not(0))\r\n                prod0 := mul(x, y)\r\n                prod1 := sub(sub(mm, prod0), lt(mm, prod0))\r\n            }\r\n\r\n            // Handle non-overflow cases, 256 by 256 division.\r\n            if (prod1 == 0) {\r\n                return prod0 / denominator;\r\n            }\r\n\r\n            // Make sure the result is less than 2^256. Also prevents denominator == 0.\r\n            require(denominator > prod1);\r\n\r\n            ///////////////////////////////////////////////\r\n            // 512 by 256 division.\r\n            ///////////////////////////////////////////////\r\n\r\n            // Make division exact by subtracting the remainder from [prod1 prod0].\r\n            uint256 remainder;\r\n            assembly {\r\n                // Compute remainder using mulmod.\r\n                remainder := mulmod(x, y, denominator)\r\n\r\n                // Subtract 256 bit number from 512 bit number.\r\n                prod1 := sub(prod1, gt(remainder, prod0))\r\n                prod0 := sub(prod0, remainder)\r\n            }\r\n\r\n            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\r\n            // See https://cs.stackexchange.com/q/138556/92363.\r\n\r\n            // Does not overflow because the denominator cannot be zero at this stage in the function.\r\n            uint256 twos = denominator & (~denominator + 1);\r\n            assembly {\r\n                // Divide denominator by twos.\r\n                denominator := div(denominator, twos)\r\n\r\n                // Divide [prod1 prod0] by twos.\r\n                prod0 := div(prod0, twos)\r\n\r\n                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\r\n                twos := add(div(sub(0, twos), twos), 1)\r\n            }\r\n\r\n            // Shift in bits from prod1 into prod0.\r\n            prod0 |= prod1 * twos;\r\n\r\n            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\r\n            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\r\n            // four bits. That is, denominator * inv = 1 mod 2^4.\r\n            uint256 inverse = (3 * denominator) ^ 2;\r\n\r\n            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\r\n            // in modular arithmetic, doubling the correct bits in each step.\r\n            inverse *= 2 - denominator * inverse; // inverse mod 2^8\r\n            inverse *= 2 - denominator * inverse; // inverse mod 2^16\r\n            inverse *= 2 - denominator * inverse; // inverse mod 2^32\r\n            inverse *= 2 - denominator * inverse; // inverse mod 2^64\r\n            inverse *= 2 - denominator * inverse; // inverse mod 2^128\r\n            inverse *= 2 - denominator * inverse; // inverse mod 2^256\r\n\r\n            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\r\n            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\r\n            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\r\n            // is no longer required.\r\n            result = prod0 * inverse;\r\n            return result;\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\r\n     */\r\n    function mulDiv(\r\n        uint256 x,\r\n        uint256 y,\r\n        uint256 denominator,\r\n        Rounding rounding\r\n    ) internal pure returns (uint256) {\r\n        uint256 result = mulDiv(x, y, denominator);\r\n        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\r\n            result += 1;\r\n        }\r\n        return result;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\r\n     *\r\n     * Inspired by Henry S. Warren, Jr.'s \"Hacker's Delight\" (Chapter 11).\r\n     */\r\n    function sqrt(uint256 a) internal pure returns (uint256) {\r\n        if (a == 0) {\r\n            return 0;\r\n        }\r\n\r\n        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\r\n        //\r\n        // We know that the \"msb\" (most significant bit) of our target number `a` is a power of 2 such that we have\r\n        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\r\n        //\r\n        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\r\n        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\r\n        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\r\n        //\r\n        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\r\n        uint256 result = 1 << (log2(a) >> 1);\r\n\r\n        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\r\n        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\r\n        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\r\n        // into the expected uint128 result.\r\n        unchecked {\r\n            result = (result + a / result) >> 1;\r\n            result = (result + a / result) >> 1;\r\n            result = (result + a / result) >> 1;\r\n            result = (result + a / result) >> 1;\r\n            result = (result + a / result) >> 1;\r\n            result = (result + a / result) >> 1;\r\n            result = (result + a / result) >> 1;\r\n            return min(result, a / result);\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @notice Calculates sqrt(a), following the selected rounding direction.\r\n     */\r\n    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\r\n        unchecked {\r\n            uint256 result = sqrt(a);\r\n            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @dev Return the log in base 2, rounded down, of a positive value.\r\n     * Returns 0 if given 0.\r\n     */\r\n    function log2(uint256 value) internal pure returns (uint256) {\r\n        uint256 result = 0;\r\n        unchecked {\r\n            if (value >> 128 > 0) {\r\n                value >>= 128;\r\n                result += 128;\r\n            }\r\n            if (value >> 64 > 0) {\r\n                value >>= 64;\r\n                result += 64;\r\n            }\r\n            if (value >> 32 > 0) {\r\n                value >>= 32;\r\n                result += 32;\r\n            }\r\n            if (value >> 16 > 0) {\r\n                value >>= 16;\r\n                result += 16;\r\n            }\r\n            if (value >> 8 > 0) {\r\n                value >>= 8;\r\n                result += 8;\r\n            }\r\n            if (value >> 4 > 0) {\r\n                value >>= 4;\r\n                result += 4;\r\n            }\r\n            if (value >> 2 > 0) {\r\n                value >>= 2;\r\n                result += 2;\r\n            }\r\n            if (value >> 1 > 0) {\r\n                result += 1;\r\n            }\r\n        }\r\n        return result;\r\n    }\r\n\r\n    /**\r\n     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\r\n     * Returns 0 if given 0.\r\n     */\r\n    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\r\n        unchecked {\r\n            uint256 result = log2(value);\r\n            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @dev Return the log in base 10, rounded down, of a positive value.\r\n     * Returns 0 if given 0.\r\n     */\r\n    function log10(uint256 value) internal pure returns (uint256) {\r\n        uint256 result = 0;\r\n        unchecked {\r\n            if (value >= 10**64) {\r\n                value /= 10**64;\r\n                result += 64;\r\n            }\r\n            if (value >= 10**32) {\r\n                value /= 10**32;\r\n                result += 32;\r\n            }\r\n            if (value >= 10**16) {\r\n                value /= 10**16;\r\n                result += 16;\r\n            }\r\n            if (value >= 10**8) {\r\n                value /= 10**8;\r\n                result += 8;\r\n            }\r\n            if (value >= 10**4) {\r\n                value /= 10**4;\r\n                result += 4;\r\n            }\r\n            if (value >= 10**2) {\r\n                value /= 10**2;\r\n                result += 2;\r\n            }\r\n            if (value >= 10**1) {\r\n                result += 1;\r\n            }\r\n        }\r\n        return result;\r\n    }\r\n\r\n    /**\r\n     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\r\n     * Returns 0 if given 0.\r\n     */\r\n    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\r\n        unchecked {\r\n            uint256 result = log10(value);\r\n            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @dev Return the log in base 256, rounded down, of a positive value.\r\n     * Returns 0 if given 0.\r\n     *\r\n     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\r\n     */\r\n    function log256(uint256 value) internal pure returns (uint256) {\r\n        uint256 result = 0;\r\n        unchecked {\r\n            if (value >> 128 > 0) {\r\n                value >>= 128;\r\n                result += 16;\r\n            }\r\n            if (value >> 64 > 0) {\r\n                value >>= 64;\r\n                result += 8;\r\n            }\r\n            if (value >> 32 > 0) {\r\n                value >>= 32;\r\n                result += 4;\r\n            }\r\n            if (value >> 16 > 0) {\r\n                value >>= 16;\r\n                result += 2;\r\n            }\r\n            if (value >> 8 > 0) {\r\n                result += 1;\r\n            }\r\n        }\r\n        return result;\r\n    }\r\n\r\n    /**\r\n     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\r\n     * Returns 0 if given 0.\r\n     */\r\n    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\r\n        unchecked {\r\n            uint256 result = log256(value);\r\n            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\r\n        }\r\n    }\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol@v4.8.1\r\n\r\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\r\n\r\npragma solidity ^0.8.0;\r\n\r\n/**\r\n * @dev String operations.\r\n */\r\nlibrary StringsUpgradeable {\r\n    bytes16 private constant _SYMBOLS = \"0123456789abcdef\";\r\n    uint8 private constant _ADDRESS_LENGTH = 20;\r\n\r\n    /**\r\n     * @dev Converts a `uint256` to its ASCII `string` decimal representation.\r\n     */\r\n    function toString(uint256 value) internal pure returns (string memory) {\r\n        unchecked {\r\n            uint256 length = MathUpgradeable.log10(value) + 1;\r\n            string memory buffer = new string(length);\r\n            uint256 ptr;\r\n            /// @solidity memory-safe-assembly\r\n            assembly {\r\n                ptr := add(buffer, add(32, length))\r\n            }\r\n            while (true) {\r\n                ptr--;\r\n                /// @solidity memory-safe-assembly\r\n                assembly {\r\n                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\r\n                }\r\n                value /= 10;\r\n                if (value == 0) break;\r\n            }\r\n            return buffer;\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\r\n     */\r\n    function toHexString(uint256 value) internal pure returns (string memory) {\r\n        unchecked {\r\n            return toHexString(value, MathUpgradeable.log256(value) + 1);\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\r\n     */\r\n    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\r\n        bytes memory buffer = new bytes(2 * length + 2);\r\n        buffer[0] = \"0\";\r\n        buffer[1] = \"x\";\r\n        for (uint256 i = 2 * length + 1; i > 1; --i) {\r\n            buffer[i] = _SYMBOLS[value & 0xf];\r\n            value >>= 4;\r\n        }\r\n        require(value == 0, \"Strings: hex length insufficient\");\r\n        return string(buffer);\r\n    }\r\n\r\n    /**\r\n     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\r\n     */\r\n    function toHexString(address addr) internal pure returns (string memory) {\r\n        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\r\n    }\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol@v4.8.1\r\n\r\n// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)\r\n\r\npragma solidity ^0.8.0;\r\n\r\n\r\n\r\n\r\n\r\n/**\r\n * @dev Contract module that allows children to implement role-based access\r\n * control mechanisms. This is a lightweight version that doesn't allow enumerating role\r\n * members except through off-chain means by accessing the contract event logs. Some\r\n * applications may benefit from on-chain enumerability, for those cases see\r\n * {AccessControlEnumerable}.\r\n *\r\n * Roles are referred to by their `bytes32` identifier. These should be exposed\r\n * in the external API and be unique. The best way to achieve this is by\r\n * using `public constant` hash digests:\r\n *\r\n * ```\r\n * bytes32 public constant MY_ROLE = keccak256(\"MY_ROLE\");\r\n * ```\r\n *\r\n * Roles can be used to represent a set of permissions. To restrict access to a\r\n * function call, use {hasRole}:\r\n *\r\n * ```\r\n * function foo() public {\r\n *     require(hasRole(MY_ROLE, msg.sender));\r\n *     ...\r\n * }\r\n * ```\r\n *\r\n * Roles can be granted and revoked dynamically via the {grantRole} and\r\n * {revokeRole} functions. Each role has an associated admin role, and only\r\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\r\n *\r\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\r\n * that only accounts with this role will be able to grant or revoke other\r\n * roles. More complex role relationships can be created by using\r\n * {_setRoleAdmin}.\r\n *\r\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\r\n * grant and revoke this role. Extra precautions should be taken to secure\r\n * accounts that have been granted it.\r\n */\r\nabstract contract AccessControlUpgradeable is Initializable, ContextUpgradeable, IAccessControlUpgradeable, ERC165Upgradeable {\r\n    function __AccessControl_init() internal onlyInitializing {\r\n    }\r\n\r\n    function __AccessControl_init_unchained() internal onlyInitializing {\r\n    }\r\n    struct RoleData {\r\n        mapping(address => bool) members;\r\n        bytes32 adminRole;\r\n    }\r\n\r\n    mapping(bytes32 => RoleData) private _roles;\r\n\r\n    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\r\n\r\n    /**\r\n     * @dev Modifier that checks that an account has a specific role. Reverts\r\n     * with a standardized message including the required role.\r\n     *\r\n     * The format of the revert reason is given by the following regular expression:\r\n     *\r\n     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\r\n     *\r\n     * _Available since v4.1._\r\n     */\r\n    modifier onlyRole(bytes32 role) {\r\n        _checkRole(role);\r\n        _;\r\n    }\r\n\r\n    /**\r\n     * @dev See {IERC165-supportsInterface}.\r\n     */\r\n    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\r\n        return interfaceId == type(IAccessControlUpgradeable).interfaceId || super.supportsInterface(interfaceId);\r\n    }\r\n\r\n    /**\r\n     * @dev Returns `true` if `account` has been granted `role`.\r\n     */\r\n    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {\r\n        return _roles[role].members[account];\r\n    }\r\n\r\n    /**\r\n     * @dev Revert with a standard message if `_msgSender()` is missing `role`.\r\n     * Overriding this function changes the behavior of the {onlyRole} modifier.\r\n     *\r\n     * Format of the revert message is described in {_checkRole}.\r\n     *\r\n     * _Available since v4.6._\r\n     */\r\n    function _checkRole(bytes32 role) internal view virtual {\r\n        _checkRole(role, _msgSender());\r\n    }\r\n\r\n    /**\r\n     * @dev Revert with a standard message if `account` is missing `role`.\r\n     *\r\n     * The format of the revert reason is given by the following regular expression:\r\n     *\r\n     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\r\n     */\r\n    function _checkRole(bytes32 role, address account) internal view virtual {\r\n        if (!hasRole(role, account)) {\r\n            revert(\r\n                string(\r\n                    abi.encodePacked(\r\n                        \"AccessControl: account \",\r\n                        StringsUpgradeable.toHexString(account),\r\n                        \" is missing role \",\r\n                        StringsUpgradeable.toHexString(uint256(role), 32)\r\n                    )\r\n                )\r\n            );\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the admin role that controls `role`. See {grantRole} and\r\n     * {revokeRole}.\r\n     *\r\n     * To change a role's admin, use {_setRoleAdmin}.\r\n     */\r\n    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {\r\n        return _roles[role].adminRole;\r\n    }\r\n\r\n    /**\r\n     * @dev Grants `role` to `account`.\r\n     *\r\n     * If `account` had not been already granted `role`, emits a {RoleGranted}\r\n     * event.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - the caller must have ``role``'s admin role.\r\n     *\r\n     * May emit a {RoleGranted} event.\r\n     */\r\n    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\r\n        _grantRole(role, account);\r\n    }\r\n\r\n    /**\r\n     * @dev Revokes `role` from `account`.\r\n     *\r\n     * If `account` had been granted `role`, emits a {RoleRevoked} event.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - the caller must have ``role``'s admin role.\r\n     *\r\n     * May emit a {RoleRevoked} event.\r\n     */\r\n    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\r\n        _revokeRole(role, account);\r\n    }\r\n\r\n    /**\r\n     * @dev Revokes `role` from the calling account.\r\n     *\r\n     * Roles are often managed via {grantRole} and {revokeRole}: this function's\r\n     * purpose is to provide a mechanism for accounts to lose their privileges\r\n     * if they are compromised (such as when a trusted device is misplaced).\r\n     *\r\n     * If the calling account had been revoked `role`, emits a {RoleRevoked}\r\n     * event.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - the caller must be `account`.\r\n     *\r\n     * May emit a {RoleRevoked} event.\r\n     */\r\n    function renounceRole(bytes32 role, address account) public virtual override {\r\n        require(account == _msgSender(), \"AccessControl: can only renounce roles for self\");\r\n\r\n        _revokeRole(role, account);\r\n    }\r\n\r\n    /**\r\n     * @dev Grants `role` to `account`.\r\n     *\r\n     * If `account` had not been already granted `role`, emits a {RoleGranted}\r\n     * event. Note that unlike {grantRole}, this function doesn't perform any\r\n     * checks on the calling account.\r\n     *\r\n     * May emit a {RoleGranted} event.\r\n     *\r\n     * [WARNING]\r\n     * ====\r\n     * This function should only be called from the constructor when setting\r\n     * up the initial roles for the system.\r\n     *\r\n     * Using this function in any other way is effectively circumventing the admin\r\n     * system imposed by {AccessControl}.\r\n     * ====\r\n     *\r\n     * NOTE: This function is deprecated in favor of {_grantRole}.\r\n     */\r\n    function _setupRole(bytes32 role, address account) internal virtual {\r\n        _grantRole(role, account);\r\n    }\r\n\r\n    /**\r\n     * @dev Sets `adminRole` as ``role``'s admin role.\r\n     *\r\n     * Emits a {RoleAdminChanged} event.\r\n     */\r\n    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\r\n        bytes32 previousAdminRole = getRoleAdmin(role);\r\n        _roles[role].adminRole = adminRole;\r\n        emit RoleAdminChanged(role, previousAdminRole, adminRole);\r\n    }\r\n\r\n    /**\r\n     * @dev Grants `role` to `account`.\r\n     *\r\n     * Internal function without access restriction.\r\n     *\r\n     * May emit a {RoleGranted} event.\r\n     */\r\n    function _grantRole(bytes32 role, address account) internal virtual {\r\n        if (!hasRole(role, account)) {\r\n            _roles[role].members[account] = true;\r\n            emit RoleGranted(role, account, _msgSender());\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @dev Revokes `role` from `account`.\r\n     *\r\n     * Internal function without access restriction.\r\n     *\r\n     * May emit a {RoleRevoked} event.\r\n     */\r\n    function _revokeRole(bytes32 role, address account) internal virtual {\r\n        if (hasRole(role, account)) {\r\n            _roles[role].members[account] = false;\r\n            emit RoleRevoked(role, account, _msgSender());\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @dev This empty reserved space is put in place to allow future versions to add new\r\n     * variables without shifting down storage in the inheritance chain.\r\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\r\n     */\r\n    uint256[49] private __gap;\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts-upgradeable/access/IAccessControlEnumerableUpgradeable.sol@v4.8.1\r\n\r\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)\r\n\r\npragma solidity ^0.8.0;\r\n\r\n/**\r\n * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.\r\n */\r\ninterface IAccessControlEnumerableUpgradeable is IAccessControlUpgradeable {\r\n    /**\r\n     * @dev Returns one of the accounts that have `role`. `index` must be a\r\n     * value between 0 and {getRoleMemberCount}, non-inclusive.\r\n     *\r\n     * Role bearers are not sorted in any particular way, and their ordering may\r\n     * change at any point.\r\n     *\r\n     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure\r\n     * you perform all queries on the same block. See the following\r\n     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]\r\n     * for more information.\r\n     */\r\n    function getRoleMember(bytes32 role, uint256 index) external view returns (address);\r\n\r\n    /**\r\n     * @dev Returns the number of accounts that have `role`. Can be used\r\n     * together with {getRoleMember} to enumerate all bearers of a role.\r\n     */\r\n    function getRoleMemberCount(bytes32 role) external view returns (uint256);\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts-upgradeable/utils/structs/EnumerableSetUpgradeable.sol@v4.8.1\r\n\r\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/structs/EnumerableSet.sol)\r\n// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.\r\n\r\npragma solidity ^0.8.0;\r\n\r\n/**\r\n * @dev Library for managing\r\n * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive\r\n * types.\r\n *\r\n * Sets have the following properties:\r\n *\r\n * - Elements are added, removed, and checked for existence in constant time\r\n * (O(1)).\r\n * - Elements are enumerated in O(n). No guarantees are made on the ordering.\r\n *\r\n * ```\r\n * contract Example {\r\n *     // Add the library methods\r\n *     using EnumerableSet for EnumerableSet.AddressSet;\r\n *\r\n *     // Declare a set state variable\r\n *     EnumerableSet.AddressSet private mySet;\r\n * }\r\n * ```\r\n *\r\n * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)\r\n * and `uint256` (`UintSet`) are supported.\r\n *\r\n * [WARNING]\r\n * ====\r\n * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure\r\n * unusable.\r\n * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.\r\n *\r\n * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an\r\n * array of EnumerableSet.\r\n * ====\r\n */\r\nlibrary EnumerableSetUpgradeable {\r\n    // To implement this library for multiple types with as little code\r\n    // repetition as possible, we write it in terms of a generic Set type with\r\n    // bytes32 values.\r\n    // The Set implementation uses private functions, and user-facing\r\n    // implementations (such as AddressSet) are just wrappers around the\r\n    // underlying Set.\r\n    // This means that we can only create new EnumerableSets for types that fit\r\n    // in bytes32.\r\n\r\n    struct Set {\r\n        // Storage of set values\r\n        bytes32[] _values;\r\n        // Position of the value in the `values` array, plus 1 because index 0\r\n        // means a value is not in the set.\r\n        mapping(bytes32 => uint256) _indexes;\r\n    }\r\n\r\n    /**\r\n     * @dev Add a value to a set. O(1).\r\n     *\r\n     * Returns true if the value was added to the set, that is if it was not\r\n     * already present.\r\n     */\r\n    function _add(Set storage set, bytes32 value) private returns (bool) {\r\n        if (!_contains(set, value)) {\r\n            set._values.push(value);\r\n            // The value is stored at length-1, but we add 1 to all indexes\r\n            // and use 0 as a sentinel value\r\n            set._indexes[value] = set._values.length;\r\n            return true;\r\n        } else {\r\n            return false;\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @dev Removes a value from a set. O(1).\r\n     *\r\n     * Returns true if the value was removed from the set, that is if it was\r\n     * present.\r\n     */\r\n    function _remove(Set storage set, bytes32 value) private returns (bool) {\r\n        // We read and store the value's index to prevent multiple reads from the same storage slot\r\n        uint256 valueIndex = set._indexes[value];\r\n\r\n        if (valueIndex != 0) {\r\n            // Equivalent to contains(set, value)\r\n            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\r\n            // the array, and then remove the last element (sometimes called as 'swap and pop').\r\n            // This modifies the order of the array, as noted in {at}.\r\n\r\n            uint256 toDeleteIndex = valueIndex - 1;\r\n            uint256 lastIndex = set._values.length - 1;\r\n\r\n            if (lastIndex != toDeleteIndex) {\r\n                bytes32 lastValue = set._values[lastIndex];\r\n\r\n                // Move the last value to the index where the value to delete is\r\n                set._values[toDeleteIndex] = lastValue;\r\n                // Update the index for the moved value\r\n                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex\r\n            }\r\n\r\n            // Delete the slot where the moved value was stored\r\n            set._values.pop();\r\n\r\n            // Delete the index for the deleted slot\r\n            delete set._indexes[value];\r\n\r\n            return true;\r\n        } else {\r\n            return false;\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @dev Returns true if the value is in the set. O(1).\r\n     */\r\n    function _contains(Set storage set, bytes32 value) private view returns (bool) {\r\n        return set._indexes[value] != 0;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the number of values on the set. O(1).\r\n     */\r\n    function _length(Set storage set) private view returns (uint256) {\r\n        return set._values.length;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the value stored at position `index` in the set. O(1).\r\n     *\r\n     * Note that there are no guarantees on the ordering of values inside the\r\n     * array, and it may change when more values are added or removed.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `index` must be strictly less than {length}.\r\n     */\r\n    function _at(Set storage set, uint256 index) private view returns (bytes32) {\r\n        return set._values[index];\r\n    }\r\n\r\n    /**\r\n     * @dev Return the entire set in an array\r\n     *\r\n     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\r\n     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\r\n     * this function has an unbounded cost, and using it as part of a state-changing function may render the function\r\n     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\r\n     */\r\n    function _values(Set storage set) private view returns (bytes32[] memory) {\r\n        return set._values;\r\n    }\r\n\r\n    // Bytes32Set\r\n\r\n    struct Bytes32Set {\r\n        Set _inner;\r\n    }\r\n\r\n    /**\r\n     * @dev Add a value to a set. O(1).\r\n     *\r\n     * Returns true if the value was added to the set, that is if it was not\r\n     * already present.\r\n     */\r\n    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {\r\n        return _add(set._inner, value);\r\n    }\r\n\r\n    /**\r\n     * @dev Removes a value from a set. O(1).\r\n     *\r\n     * Returns true if the value was removed from the set, that is if it was\r\n     * present.\r\n     */\r\n    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {\r\n        return _remove(set._inner, value);\r\n    }\r\n\r\n    /**\r\n     * @dev Returns true if the value is in the set. O(1).\r\n     */\r\n    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {\r\n        return _contains(set._inner, value);\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the number of values in the set. O(1).\r\n     */\r\n    function length(Bytes32Set storage set) internal view returns (uint256) {\r\n        return _length(set._inner);\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the value stored at position `index` in the set. O(1).\r\n     *\r\n     * Note that there are no guarantees on the ordering of values inside the\r\n     * array, and it may change when more values are added or removed.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `index` must be strictly less than {length}.\r\n     */\r\n    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {\r\n        return _at(set._inner, index);\r\n    }\r\n\r\n    /**\r\n     * @dev Return the entire set in an array\r\n     *\r\n     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\r\n     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\r\n     * this function has an unbounded cost, and using it as part of a state-changing function may render the function\r\n     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\r\n     */\r\n    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {\r\n        bytes32[] memory store = _values(set._inner);\r\n        bytes32[] memory result;\r\n\r\n        /// @solidity memory-safe-assembly\r\n        assembly {\r\n            result := store\r\n        }\r\n\r\n        return result;\r\n    }\r\n\r\n    // AddressSet\r\n\r\n    struct AddressSet {\r\n        Set _inner;\r\n    }\r\n\r\n    /**\r\n     * @dev Add a value to a set. O(1).\r\n     *\r\n     * Returns true if the value was added to the set, that is if it was not\r\n     * already present.\r\n     */\r\n    function add(AddressSet storage set, address value) internal returns (bool) {\r\n        return _add(set._inner, bytes32(uint256(uint160(value))));\r\n    }\r\n\r\n    /**\r\n     * @dev Removes a value from a set. O(1).\r\n     *\r\n     * Returns true if the value was removed from the set, that is if it was\r\n     * present.\r\n     */\r\n    function remove(AddressSet storage set, address value) internal returns (bool) {\r\n        return _remove(set._inner, bytes32(uint256(uint160(value))));\r\n    }\r\n\r\n    /**\r\n     * @dev Returns true if the value is in the set. O(1).\r\n     */\r\n    function contains(AddressSet storage set, address value) internal view returns (bool) {\r\n        return _contains(set._inner, bytes32(uint256(uint160(value))));\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the number of values in the set. O(1).\r\n     */\r\n    function length(AddressSet storage set) internal view returns (uint256) {\r\n        return _length(set._inner);\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the value stored at position `index` in the set. O(1).\r\n     *\r\n     * Note that there are no guarantees on the ordering of values inside the\r\n     * array, and it may change when more values are added or removed.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `index` must be strictly less than {length}.\r\n     */\r\n    function at(AddressSet storage set, uint256 index) internal view returns (address) {\r\n        return address(uint160(uint256(_at(set._inner, index))));\r\n    }\r\n\r\n    /**\r\n     * @dev Return the entire set in an array\r\n     *\r\n     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\r\n     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\r\n     * this function has an unbounded cost, and using it as part of a state-changing function may render the function\r\n     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\r\n     */\r\n    function values(AddressSet storage set) internal view returns (address[] memory) {\r\n        bytes32[] memory store = _values(set._inner);\r\n        address[] memory result;\r\n\r\n        /// @solidity memory-safe-assembly\r\n        assembly {\r\n            result := store\r\n        }\r\n\r\n        return result;\r\n    }\r\n\r\n    // UintSet\r\n\r\n    struct UintSet {\r\n        Set _inner;\r\n    }\r\n\r\n    /**\r\n     * @dev Add a value to a set. O(1).\r\n     *\r\n     * Returns true if the value was added to the set, that is if it was not\r\n     * already present.\r\n     */\r\n    function add(UintSet storage set, uint256 value) internal returns (bool) {\r\n        return _add(set._inner, bytes32(value));\r\n    }\r\n\r\n    /**\r\n     * @dev Removes a value from a set. O(1).\r\n     *\r\n     * Returns true if the value was removed from the set, that is if it was\r\n     * present.\r\n     */\r\n    function remove(UintSet storage set, uint256 value) internal returns (bool) {\r\n        return _remove(set._inner, bytes32(value));\r\n    }\r\n\r\n    /**\r\n     * @dev Returns true if the value is in the set. O(1).\r\n     */\r\n    function contains(UintSet storage set, uint256 value) internal view returns (bool) {\r\n        return _contains(set._inner, bytes32(value));\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the number of values in the set. O(1).\r\n     */\r\n    function length(UintSet storage set) internal view returns (uint256) {\r\n        return _length(set._inner);\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the value stored at position `index` in the set. O(1).\r\n     *\r\n     * Note that there are no guarantees on the ordering of values inside the\r\n     * array, and it may change when more values are added or removed.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `index` must be strictly less than {length}.\r\n     */\r\n    function at(UintSet storage set, uint256 index) internal view returns (uint256) {\r\n        return uint256(_at(set._inner, index));\r\n    }\r\n\r\n    /**\r\n     * @dev Return the entire set in an array\r\n     *\r\n     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\r\n     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\r\n     * this function has an unbounded cost, and using it as part of a state-changing function may render the function\r\n     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\r\n     */\r\n    function values(UintSet storage set) internal view returns (uint256[] memory) {\r\n        bytes32[] memory store = _values(set._inner);\r\n        uint256[] memory result;\r\n\r\n        /// @solidity memory-safe-assembly\r\n        assembly {\r\n            result := store\r\n        }\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts-upgradeable/access/AccessControlEnumerableUpgradeable.sol@v4.8.1\r\n\r\n// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)\r\n\r\npragma solidity ^0.8.0;\r\n\r\n\r\n\r\n\r\n/**\r\n * @dev Extension of {AccessControl} that allows enumerating the members of each role.\r\n */\r\nabstract contract AccessControlEnumerableUpgradeable is Initializable, IAccessControlEnumerableUpgradeable, AccessControlUpgradeable {\r\n    function __AccessControlEnumerable_init() internal onlyInitializing {\r\n    }\r\n\r\n    function __AccessControlEnumerable_init_unchained() internal onlyInitializing {\r\n    }\r\n    using EnumerableSetUpgradeable for EnumerableSetUpgradeable.AddressSet;\r\n\r\n    mapping(bytes32 => EnumerableSetUpgradeable.AddressSet) private _roleMembers;\r\n\r\n    /**\r\n     * @dev See {IERC165-supportsInterface}.\r\n     */\r\n    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\r\n        return interfaceId == type(IAccessControlEnumerableUpgradeable).interfaceId || super.supportsInterface(interfaceId);\r\n    }\r\n\r\n    /**\r\n     * @dev Returns one of the accounts that have `role`. `index` must be a\r\n     * value between 0 and {getRoleMemberCount}, non-inclusive.\r\n     *\r\n     * Role bearers are not sorted in any particular way, and their ordering may\r\n     * change at any point.\r\n     *\r\n     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure\r\n     * you perform all queries on the same block. See the following\r\n     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]\r\n     * for more information.\r\n     */\r\n    function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) {\r\n        return _roleMembers[role].at(index);\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the number of accounts that have `role`. Can be used\r\n     * together with {getRoleMember} to enumerate all bearers of a role.\r\n     */\r\n    function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) {\r\n        return _roleMembers[role].length();\r\n    }\r\n\r\n    /**\r\n     * @dev Overload {_grantRole} to track enumerable memberships\r\n     */\r\n    function _grantRole(bytes32 role, address account) internal virtual override {\r\n        super._grantRole(role, account);\r\n        _roleMembers[role].add(account);\r\n    }\r\n\r\n    /**\r\n     * @dev Overload {_revokeRole} to track enumerable memberships\r\n     */\r\n    function _revokeRole(bytes32 role, address account) internal virtual override {\r\n        super._revokeRole(role, account);\r\n        _roleMembers[role].remove(account);\r\n    }\r\n\r\n    /**\r\n     * @dev This empty reserved space is put in place to allow future versions to add new\r\n     * variables without shifting down storage in the inheritance chain.\r\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\r\n     */\r\n    uint256[49] private __gap;\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol@v4.8.1\r\n\r\n// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)\r\n\r\npragma solidity ^0.8.0;\r\n\r\n/**\r\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\r\n * proxy whose upgrades are fully controlled by the current implementation.\r\n */\r\ninterface IERC1822ProxiableUpgradeable {\r\n    /**\r\n     * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\r\n     * address.\r\n     *\r\n     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\r\n     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\r\n     * function revert if invoked through a proxy.\r\n     */\r\n    function proxiableUUID() external view returns (bytes32);\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.sol@v4.8.1\r\n\r\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\r\n\r\npragma solidity ^0.8.0;\r\n\r\n/**\r\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\r\n */\r\ninterface IBeaconUpgradeable {\r\n    /**\r\n     * @dev Must return an address that can be used as a delegate call target.\r\n     *\r\n     * {BeaconProxy} will check that this address is a contract.\r\n     */\r\n    function implementation() external view returns (address);\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts-upgradeable/utils/StorageSlotUpgradeable.sol@v4.8.1\r\n\r\n// OpenZeppelin Contracts (last updated v4.7.0) (utils/StorageSlot.sol)\r\n\r\npragma solidity ^0.8.0;\r\n\r\n/**\r\n * @dev Library for reading and writing primitive types to specific storage slots.\r\n *\r\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\r\n * This library helps with reading and writing to such slots without the need for inline assembly.\r\n *\r\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\r\n *\r\n * Example usage to set ERC1967 implementation slot:\r\n * ```\r\n * contract ERC1967 {\r\n *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\r\n *\r\n *     function _getImplementation() internal view returns (address) {\r\n *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\r\n *     }\r\n *\r\n *     function _setImplementation(address newImplementation) internal {\r\n *         require(Address.isContract(newImplementation), \"ERC1967: new implementation is not a contract\");\r\n *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\r\n *     }\r\n * }\r\n * ```\r\n *\r\n * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._\r\n */\r\nlibrary StorageSlotUpgradeable {\r\n    struct AddressSlot {\r\n        address value;\r\n    }\r\n\r\n    struct BooleanSlot {\r\n        bool value;\r\n    }\r\n\r\n    struct Bytes32Slot {\r\n        bytes32 value;\r\n    }\r\n\r\n    struct Uint256Slot {\r\n        uint256 value;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns an `AddressSlot` with member `value` located at `slot`.\r\n     */\r\n    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\r\n        /// @solidity memory-safe-assembly\r\n        assembly {\r\n            r.slot := slot\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\r\n     */\r\n    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\r\n        /// @solidity memory-safe-assembly\r\n        assembly {\r\n            r.slot := slot\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\r\n     */\r\n    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\r\n        /// @solidity memory-safe-assembly\r\n        assembly {\r\n            r.slot := slot\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\r\n     */\r\n    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\r\n        /// @solidity memory-safe-assembly\r\n        assembly {\r\n            r.slot := slot\r\n        }\r\n    }\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol@v4.8.1\r\n\r\n// OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol)\r\n\r\npragma solidity ^0.8.2;\r\n\r\n\r\n\r\n\r\n\r\n/**\r\n * @dev This abstract contract provides getters and event emitting update functions for\r\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\r\n *\r\n * _Available since v4.1._\r\n *\r\n * @custom:oz-upgrades-unsafe-allow delegatecall\r\n */\r\nabstract contract ERC1967UpgradeUpgradeable is Initializable {\r\n    function __ERC1967Upgrade_init() internal onlyInitializing {\r\n    }\r\n\r\n    function __ERC1967Upgrade_init_unchained() internal onlyInitializing {\r\n    }\r\n    // This is the keccak-256 hash of \"eip1967.proxy.rollback\" subtracted by 1\r\n    bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\r\n\r\n    /**\r\n     * @dev Storage slot with the address of the current implementation.\r\n     * This is the keccak-256 hash of \"eip1967.proxy.implementation\" subtracted by 1, and is\r\n     * validated in the constructor.\r\n     */\r\n    bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\r\n\r\n    /**\r\n     * @dev Emitted when the implementation is upgraded.\r\n     */\r\n    event Upgraded(address indexed implementation);\r\n\r\n    /**\r\n     * @dev Returns the current implementation address.\r\n     */\r\n    function _getImplementation() internal view returns (address) {\r\n        return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;\r\n    }\r\n\r\n    /**\r\n     * @dev Stores a new address in the EIP1967 implementation slot.\r\n     */\r\n    function _setImplementation(address newImplementation) private {\r\n        require(AddressUpgradeable.isContract(newImplementation), \"ERC1967: new implementation is not a contract\");\r\n        StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\r\n    }\r\n\r\n    /**\r\n     * @dev Perform implementation upgrade\r\n     *\r\n     * Emits an {Upgraded} event.\r\n     */\r\n    function _upgradeTo(address newImplementation) internal {\r\n        _setImplementation(newImplementation);\r\n        emit Upgraded(newImplementation);\r\n    }\r\n\r\n    /**\r\n     * @dev Perform implementation upgrade with additional setup call.\r\n     *\r\n     * Emits an {Upgraded} event.\r\n     */\r\n    function _upgradeToAndCall(\r\n        address newImplementation,\r\n        bytes memory data,\r\n        bool forceCall\r\n    ) internal {\r\n        _upgradeTo(newImplementation);\r\n        if (data.length > 0 || forceCall) {\r\n            _functionDelegateCall(newImplementation, data);\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\r\n     *\r\n     * Emits an {Upgraded} event.\r\n     */\r\n    function _upgradeToAndCallUUPS(\r\n        address newImplementation,\r\n        bytes memory data,\r\n        bool forceCall\r\n    ) internal {\r\n        // Upgrades from old implementations will perform a rollback test. This test requires the new\r\n        // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\r\n        // this special case will break upgrade paths from old UUPS implementation to new ones.\r\n        if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {\r\n            _setImplementation(newImplementation);\r\n        } else {\r\n            try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {\r\n                require(slot == _IMPLEMENTATION_SLOT, \"ERC1967Upgrade: unsupported proxiableUUID\");\r\n            } catch {\r\n                revert(\"ERC1967Upgrade: new implementation is not UUPS\");\r\n            }\r\n            _upgradeToAndCall(newImplementation, data, forceCall);\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @dev Storage slot with the admin of the contract.\r\n     * This is the keccak-256 hash of \"eip1967.proxy.admin\" subtracted by 1, and is\r\n     * validated in the constructor.\r\n     */\r\n    bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\r\n\r\n    /**\r\n     * @dev Emitted when the admin account has changed.\r\n     */\r\n    event AdminChanged(address previousAdmin, address newAdmin);\r\n\r\n    /**\r\n     * @dev Returns the current admin.\r\n     */\r\n    function _getAdmin() internal view returns (address) {\r\n        return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;\r\n    }\r\n\r\n    /**\r\n     * @dev Stores a new address in the EIP1967 admin slot.\r\n     */\r\n    function _setAdmin(address newAdmin) private {\r\n        require(newAdmin != address(0), \"ERC1967: new admin is the zero address\");\r\n        StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\r\n    }\r\n\r\n    /**\r\n     * @dev Changes the admin of the proxy.\r\n     *\r\n     * Emits an {AdminChanged} event.\r\n     */\r\n    function _changeAdmin(address newAdmin) internal {\r\n        emit AdminChanged(_getAdmin(), newAdmin);\r\n        _setAdmin(newAdmin);\r\n    }\r\n\r\n    /**\r\n     * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\r\n     * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.\r\n     */\r\n    bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\r\n\r\n    /**\r\n     * @dev Emitted when the beacon is upgraded.\r\n     */\r\n    event BeaconUpgraded(address indexed beacon);\r\n\r\n    /**\r\n     * @dev Returns the current beacon.\r\n     */\r\n    function _getBeacon() internal view returns (address) {\r\n        return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;\r\n    }\r\n\r\n    /**\r\n     * @dev Stores a new beacon in the EIP1967 beacon slot.\r\n     */\r\n    function _setBeacon(address newBeacon) private {\r\n        require(AddressUpgradeable.isContract(newBeacon), \"ERC1967: new beacon is not a contract\");\r\n        require(\r\n            AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),\r\n            \"ERC1967: beacon implementation is not a contract\"\r\n        );\r\n        StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;\r\n    }\r\n\r\n    /**\r\n     * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\r\n     * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\r\n     *\r\n     * Emits a {BeaconUpgraded} event.\r\n     */\r\n    function _upgradeBeaconToAndCall(\r\n        address newBeacon,\r\n        bytes memory data,\r\n        bool forceCall\r\n    ) internal {\r\n        _setBeacon(newBeacon);\r\n        emit BeaconUpgraded(newBeacon);\r\n        if (data.length > 0 || forceCall) {\r\n            _functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\r\n     * but performing a delegate call.\r\n     *\r\n     * _Available since v3.4._\r\n     */\r\n    function _functionDelegateCall(address target, bytes memory data) private returns (bytes memory) {\r\n        require(AddressUpgradeable.isContract(target), \"Address: delegate call to non-contract\");\r\n\r\n        // solhint-disable-next-line avoid-low-level-calls\r\n        (bool success, bytes memory returndata) = target.delegatecall(data);\r\n        return AddressUpgradeable.verifyCallResult(success, returndata, \"Address: low-level delegate call failed\");\r\n    }\r\n\r\n    /**\r\n     * @dev This empty reserved space is put in place to allow future versions to add new\r\n     * variables without shifting down storage in the inheritance chain.\r\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\r\n     */\r\n    uint256[50] private __gap;\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol@v4.8.1\r\n\r\n// OpenZeppelin Contracts (last updated v4.8.0) (proxy/utils/UUPSUpgradeable.sol)\r\n\r\npragma solidity ^0.8.0;\r\n\r\n\r\n\r\n/**\r\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\r\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\r\n *\r\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\r\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\r\n * `UUPSUpgradeable` with a custom implementation of upgrades.\r\n *\r\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\r\n *\r\n * _Available since v4.1._\r\n */\r\nabstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {\r\n    function __UUPSUpgradeable_init() internal onlyInitializing {\r\n    }\r\n\r\n    function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\r\n    }\r\n    /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment\r\n    address private immutable __self = address(this);\r\n\r\n    /**\r\n     * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\r\n     * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\r\n     * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\r\n     * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\r\n     * fail.\r\n     */\r\n    modifier onlyProxy() {\r\n        require(address(this) != __self, \"Function must be called through delegatecall\");\r\n        require(_getImplementation() == __self, \"Function must be called through active proxy\");\r\n        _;\r\n    }\r\n\r\n    /**\r\n     * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\r\n     * callable on the implementing contract but not through proxies.\r\n     */\r\n    modifier notDelegated() {\r\n        require(address(this) == __self, \"UUPSUpgradeable: must not be called through delegatecall\");\r\n        _;\r\n    }\r\n\r\n    /**\r\n     * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\r\n     * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\r\n     *\r\n     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\r\n     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\r\n     * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\r\n     */\r\n    function proxiableUUID() external view virtual override notDelegated returns (bytes32) {\r\n        return _IMPLEMENTATION_SLOT;\r\n    }\r\n\r\n    /**\r\n     * @dev Upgrade the implementation of the proxy to `newImplementation`.\r\n     *\r\n     * Calls {_authorizeUpgrade}.\r\n     *\r\n     * Emits an {Upgraded} event.\r\n     */\r\n    function upgradeTo(address newImplementation) external virtual onlyProxy {\r\n        _authorizeUpgrade(newImplementation);\r\n        _upgradeToAndCallUUPS(newImplementation, new bytes(0), false);\r\n    }\r\n\r\n    /**\r\n     * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\r\n     * encoded in `data`.\r\n     *\r\n     * Calls {_authorizeUpgrade}.\r\n     *\r\n     * Emits an {Upgraded} event.\r\n     */\r\n    function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual onlyProxy {\r\n        _authorizeUpgrade(newImplementation);\r\n        _upgradeToAndCallUUPS(newImplementation, data, true);\r\n    }\r\n\r\n    /**\r\n     * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\r\n     * {upgradeTo} and {upgradeToAndCall}.\r\n     *\r\n     * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\r\n     *\r\n     * ```solidity\r\n     * function _authorizeUpgrade(address) internal override onlyOwner {}\r\n     * ```\r\n     */\r\n    function _authorizeUpgrade(address newImplementation) internal virtual;\r\n\r\n    /**\r\n     * @dev This empty reserved space is put in place to allow future versions to add new\r\n     * variables without shifting down storage in the inheritance chain.\r\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\r\n     */\r\n    uint256[50] private __gap;\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol@v4.8.1\r\n\r\n// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)\r\n\r\npragma solidity ^0.8.0;\r\n\r\n\r\n/**\r\n * @dev Contract module which allows children to implement an emergency stop\r\n * mechanism that can be triggered by an authorized account.\r\n *\r\n * This module is used through inheritance. It will make available the\r\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\r\n * the functions of your contract. Note that they will not be pausable by\r\n * simply including this module, only once the modifiers are put in place.\r\n */\r\nabstract contract PausableUpgradeable is Initializable, ContextUpgradeable {\r\n    /**\r\n     * @dev Emitted when the pause is triggered by `account`.\r\n     */\r\n    event Paused(address account);\r\n\r\n    /**\r\n     * @dev Emitted when the pause is lifted by `account`.\r\n     */\r\n    event Unpaused(address account);\r\n\r\n    bool private _paused;\r\n\r\n    /**\r\n     * @dev Initializes the contract in unpaused state.\r\n     */\r\n    function __Pausable_init() internal onlyInitializing {\r\n        __Pausable_init_unchained();\r\n    }\r\n\r\n    function __Pausable_init_unchained() internal onlyInitializing {\r\n        _paused = false;\r\n    }\r\n\r\n    /**\r\n     * @dev Modifier to make a function callable only when the contract is not paused.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - The contract must not be paused.\r\n     */\r\n    modifier whenNotPaused() {\r\n        _requireNotPaused();\r\n        _;\r\n    }\r\n\r\n    /**\r\n     * @dev Modifier to make a function callable only when the contract is paused.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - The contract must be paused.\r\n     */\r\n    modifier whenPaused() {\r\n        _requirePaused();\r\n        _;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns true if the contract is paused, and false otherwise.\r\n     */\r\n    function paused() public view virtual returns (bool) {\r\n        return _paused;\r\n    }\r\n\r\n    /**\r\n     * @dev Throws if the contract is paused.\r\n     */\r\n    function _requireNotPaused() internal view virtual {\r\n        require(!paused(), \"Pausable: paused\");\r\n    }\r\n\r\n    /**\r\n     * @dev Throws if the contract is not paused.\r\n     */\r\n    function _requirePaused() internal view virtual {\r\n        require(paused(), \"Pausable: not paused\");\r\n    }\r\n\r\n    /**\r\n     * @dev Triggers stopped state.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - The contract must not be paused.\r\n     */\r\n    function _pause() internal virtual whenNotPaused {\r\n        _paused = true;\r\n        emit Paused(_msgSender());\r\n    }\r\n\r\n    /**\r\n     * @dev Returns to normal state.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - The contract must be paused.\r\n     */\r\n    function _unpause() internal virtual whenPaused {\r\n        _paused = false;\r\n        emit Unpaused(_msgSender());\r\n    }\r\n\r\n    /**\r\n     * @dev This empty reserved space is put in place to allow future versions to add new\r\n     * variables without shifting down storage in the inheritance chain.\r\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\r\n     */\r\n    uint256[49] private __gap;\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol@v4.8.1\r\n\r\n// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)\r\n\r\npragma solidity ^0.8.0;\r\n\r\n/**\r\n * @dev Interface of the ERC20 standard as defined in the EIP.\r\n */\r\ninterface IERC20Upgradeable {\r\n    /**\r\n     * @dev Emitted when `value` tokens are moved from one account (`from`) to\r\n     * another (`to`).\r\n     *\r\n     * Note that `value` may be zero.\r\n     */\r\n    event Transfer(address indexed from, address indexed to, uint256 value);\r\n\r\n    /**\r\n     * @dev Emitted when the allowance of a `spender` for an `owner` is set by\r\n     * a call to {approve}. `value` is the new allowance.\r\n     */\r\n    event Approval(address indexed owner, address indexed spender, uint256 value);\r\n\r\n    /**\r\n     * @dev Returns the amount of tokens in existence.\r\n     */\r\n    function totalSupply() external view returns (uint256);\r\n\r\n    /**\r\n     * @dev Returns the amount of tokens owned by `account`.\r\n     */\r\n    function balanceOf(address account) external view returns (uint256);\r\n\r\n    /**\r\n     * @dev Moves `amount` tokens from the caller's account to `to`.\r\n     *\r\n     * Returns a boolean value indicating whether the operation succeeded.\r\n     *\r\n     * Emits a {Transfer} event.\r\n     */\r\n    function transfer(address to, uint256 amount) external returns (bool);\r\n\r\n    /**\r\n     * @dev Returns the remaining number of tokens that `spender` will be\r\n     * allowed to spend on behalf of `owner` through {transferFrom}. This is\r\n     * zero by default.\r\n     *\r\n     * This value changes when {approve} or {transferFrom} are called.\r\n     */\r\n    function allowance(address owner, address spender) external view returns (uint256);\r\n\r\n    /**\r\n     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\r\n     *\r\n     * Returns a boolean value indicating whether the operation succeeded.\r\n     *\r\n     * IMPORTANT: Beware that changing an allowance with this method brings the risk\r\n     * that someone may use both the old and the new allowance by unfortunate\r\n     * transaction ordering. One possible solution to mitigate this race\r\n     * condition is to first reduce the spender's allowance to 0 and set the\r\n     * desired value afterwards:\r\n     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\r\n     *\r\n     * Emits an {Approval} event.\r\n     */\r\n    function approve(address spender, uint256 amount) external returns (bool);\r\n\r\n    /**\r\n     * @dev Moves `amount` tokens from `from` to `to` using the\r\n     * allowance mechanism. `amount` is then deducted from the caller's\r\n     * allowance.\r\n     *\r\n     * Returns a boolean value indicating whether the operation succeeded.\r\n     *\r\n     * Emits a {Transfer} event.\r\n     */\r\n    function transferFrom(\r\n        address from,\r\n        address to,\r\n        uint256 amount\r\n    ) external returns (bool);\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol@v4.8.1\r\n\r\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)\r\n\r\npragma solidity ^0.8.0;\r\n\r\n/**\r\n * @dev Interface for the optional metadata functions from the ERC20 standard.\r\n *\r\n * _Available since v4.1._\r\n */\r\ninterface IERC20MetadataUpgradeable is IERC20Upgradeable {\r\n    /**\r\n     * @dev Returns the name of the token.\r\n     */\r\n    function name() external view returns (string memory);\r\n\r\n    /**\r\n     * @dev Returns the symbol of the token.\r\n     */\r\n    function symbol() external view returns (string memory);\r\n\r\n    /**\r\n     * @dev Returns the decimals places of the token.\r\n     */\r\n    function decimals() external view returns (uint8);\r\n}\r\n\r\n\r\n// File @openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol@v4.8.1\r\n\r\n// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)\r\n\r\npragma solidity ^0.8.0;\r\n\r\n\r\n\r\n\r\n/**\r\n * @dev Implementation of the {IERC20} interface.\r\n *\r\n * This implementation is agnostic to the way tokens are created. This means\r\n * that a supply mechanism has to be added in a derived contract using {_mint}.\r\n * For a generic mechanism see {ERC20PresetMinterPauser}.\r\n *\r\n * TIP: For a detailed writeup see our guide\r\n * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How\r\n * to implement supply mechanisms].\r\n *\r\n * We have followed general OpenZeppelin Contracts guidelines: functions revert\r\n * instead returning `false` on failure. This behavior is nonetheless\r\n * conventional and does not conflict with the expectations of ERC20\r\n * applications.\r\n *\r\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\r\n * This allows applications to reconstruct the allowance for all accounts just\r\n * by listening to said events. Other implementations of the EIP may not emit\r\n * these events, as it isn't required by the specification.\r\n *\r\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\r\n * functions have been added to mitigate the well-known issues around setting\r\n * allowances. See {IERC20-approve}.\r\n */\r\ncontract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable {\r\n    mapping(address => uint256) private _balances;\r\n\r\n    mapping(address => mapping(address => uint256)) private _allowances;\r\n\r\n    uint256 private _totalSupply;\r\n\r\n    string private _name;\r\n    string private _symbol;\r\n\r\n    /**\r\n     * @dev Sets the values for {name} and {symbol}.\r\n     *\r\n     * The default value of {decimals} is 18. To select a different value for\r\n     * {decimals} you should overload it.\r\n     *\r\n     * All two of these values are immutable: they can only be set once during\r\n     * construction.\r\n     */\r\n    function __ERC20_init(string memory name_, string memory symbol_) internal onlyInitializing {\r\n        __ERC20_init_unchained(name_, symbol_);\r\n    }\r\n\r\n    function __ERC20_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing {\r\n        _name = name_;\r\n        _symbol = symbol_;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the name of the token.\r\n     */\r\n    function name() public view virtual override returns (string memory) {\r\n        return _name;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the symbol of the token, usually a shorter version of the\r\n     * name.\r\n     */\r\n    function symbol() public view virtual override returns (string memory) {\r\n        return _symbol;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the number of decimals used to get its user representation.\r\n     * For example, if `decimals` equals `2`, a balance of `505` tokens should\r\n     * be displayed to a user as `5.05` (`505 / 10 ** 2`).\r\n     *\r\n     * Tokens usually opt for a value of 18, imitating the relationship between\r\n     * Ether and Wei. This is the value {ERC20} uses, unless this function is\r\n     * overridden;\r\n     *\r\n     * NOTE: This information is only used for _display_ purposes: it in\r\n     * no way affects any of the arithmetic of the contract, including\r\n     * {IERC20-balanceOf} and {IERC20-transfer}.\r\n     */\r\n    function decimals() public view virtual override returns (uint8) {\r\n        return 18;\r\n    }\r\n\r\n    /**\r\n     * @dev See {IERC20-totalSupply}.\r\n     */\r\n    function totalSupply() public view virtual override returns (uint256) {\r\n        return _totalSupply;\r\n    }\r\n\r\n    /**\r\n     * @dev See {IERC20-balanceOf}.\r\n     */\r\n    function balanceOf(address account) public view virtual override returns (uint256) {\r\n        return _balances[account];\r\n    }\r\n\r\n    /**\r\n     * @dev See {IERC20-transfer}.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `to` cannot be the zero address.\r\n     * - the caller must have a balance of at least `amount`.\r\n     */\r\n    function transfer(address to, uint256 amount) public virtual override returns (bool) {\r\n        address owner = _msgSender();\r\n        _transfer(owner, to, amount);\r\n        return true;\r\n    }\r\n\r\n    /**\r\n     * @dev See {IERC20-allowance}.\r\n     */\r\n    function allowance(address owner, address spender) public view virtual override returns (uint256) {\r\n        return _allowances[owner][spender];\r\n    }\r\n\r\n    /**\r\n     * @dev See {IERC20-approve}.\r\n     *\r\n     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on\r\n     * `transferFrom`. This is semantically equivalent to an infinite approval.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `spender` cannot be the zero address.\r\n     */\r\n    function approve(address spender, uint256 amount) public virtual override returns (bool) {\r\n        address owner = _msgSender();\r\n        _approve(owner, spender, amount);\r\n        return true;\r\n    }\r\n\r\n    /**\r\n     * @dev See {IERC20-transferFrom}.\r\n     *\r\n     * Emits an {Approval} event indicating the updated allowance. This is not\r\n     * required by the EIP. See the note at the beginning of {ERC20}.\r\n     *\r\n     * NOTE: Does not update the allowance if the current allowance\r\n     * is the maximum `uint256`.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `from` and `to` cannot be the zero address.\r\n     * - `from` must have a balance of at least `amount`.\r\n     * - the caller must have allowance for ``from``'s tokens of at least\r\n     * `amount`.\r\n     */\r\n    function transferFrom(\r\n        address from,\r\n        address to,\r\n        uint256 amount\r\n    ) public virtual override returns (bool) {\r\n        address spender = _msgSender();\r\n        _spendAllowance(from, spender, amount);\r\n        _transfer(from, to, amount);\r\n        return true;\r\n    }\r\n\r\n    /**\r\n     * @dev Atomically increases the allowance granted to `spender` by the caller.\r\n     *\r\n     * This is an alternative to {approve} that can be used as a mitigation for\r\n     * problems described in {IERC20-approve}.\r\n     *\r\n     * Emits an {Approval} event indicating the updated allowance.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `spender` cannot be the zero address.\r\n     */\r\n    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\r\n        address owner = _msgSender();\r\n        _approve(owner, spender, allowance(owner, spender) + addedValue);\r\n        return true;\r\n    }\r\n\r\n    /**\r\n     * @dev Atomically decreases the allowance granted to `spender` by the caller.\r\n     *\r\n     * This is an alternative to {approve} that can be used as a mitigation for\r\n     * problems described in {IERC20-approve}.\r\n     *\r\n     * Emits an {Approval} event indicating the updated allowance.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `spender` cannot be the zero address.\r\n     * - `spender` must have allowance for the caller of at least\r\n     * `subtractedValue`.\r\n     */\r\n    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\r\n        address owner = _msgSender();\r\n        uint256 currentAllowance = allowance(owner, spender);\r\n        require(currentAllowance >= subtractedValue, \"ERC20: decreased allowance below zero\");\r\n        unchecked {\r\n            _approve(owner, spender, currentAllowance - subtractedValue);\r\n        }\r\n\r\n        return true;\r\n    }\r\n\r\n    /**\r\n     * @dev Moves `amount` of tokens from `from` to `to`.\r\n     *\r\n     * This internal function is equivalent to {transfer}, and can be used to\r\n     * e.g. implement automatic token fees, slashing mechanisms, etc.\r\n     *\r\n     * Emits a {Transfer} event.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `from` cannot be the zero address.\r\n     * - `to` cannot be the zero address.\r\n     * - `from` must have a balance of at least `amount`.\r\n     */\r\n    function _transfer(\r\n        address from,\r\n        address to,\r\n        uint256 amount\r\n    ) internal virtual {\r\n        require(from != address(0), \"ERC20: transfer from the zero address\");\r\n        require(to != address(0), \"ERC20: transfer to the zero address\");\r\n\r\n        _beforeTokenTransfer(from, to, amount);\r\n\r\n        uint256 fromBalance = _balances[from];\r\n        require(fromBalance >= amount, \"ERC20: transfer amount exceeds balance\");\r\n        unchecked {\r\n            _balances[from] = fromBalance - amount;\r\n            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by\r\n            // decrementing then incrementing.\r\n            _balances[to] += amount;\r\n        }\r\n\r\n        emit Transfer(from, to, amount);\r\n\r\n        _afterTokenTransfer(from, to, amount);\r\n    }\r\n\r\n    /** @dev Creates `amount` tokens and assigns them to `account`, increasing\r\n     * the total supply.\r\n     *\r\n     * Emits a {Transfer} event with `from` set to the zero address.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `account` cannot be the zero address.\r\n     */\r\n    function _mint(address account, uint256 amount) internal virtual {\r\n        require(account != address(0), \"ERC20: mint to the zero address\");\r\n\r\n        _beforeTokenTransfer(address(0), account, amount);\r\n\r\n        _totalSupply += amount;\r\n        unchecked {\r\n            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.\r\n            _balances[account] += amount;\r\n        }\r\n        emit Transfer(address(0), account, amount);\r\n\r\n        _afterTokenTransfer(address(0), account, amount);\r\n    }\r\n\r\n    /**\r\n     * @dev Destroys `amount` tokens from `account`, reducing the\r\n     * total supply.\r\n     *\r\n     * Emits a {Transfer} event with `to` set to the zero address.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `account` cannot be the zero address.\r\n     * - `account` must have at least `amount` tokens.\r\n     */\r\n    function _burn(address account, uint256 amount) internal virtual {\r\n        require(account != address(0), \"ERC20: burn from the zero address\");\r\n\r\n        _beforeTokenTransfer(account, address(0), amount);\r\n\r\n        uint256 accountBalance = _balances[account];\r\n        require(accountBalance >= amount, \"ERC20: burn amount exceeds balance\");\r\n        unchecked {\r\n            _balances[account] = accountBalance - amount;\r\n            // Overflow not possible: amount <= accountBalance <= totalSupply.\r\n            _totalSupply -= amount;\r\n        }\r\n\r\n        emit Transfer(account, address(0), amount);\r\n\r\n        _afterTokenTransfer(account, address(0), amount);\r\n    }\r\n\r\n    /**\r\n     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\r\n     *\r\n     * This internal function is equivalent to `approve`, and can be used to\r\n     * e.g. set automatic allowances for certain subsystems, etc.\r\n     *\r\n     * Emits an {Approval} event.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `owner` cannot be the zero address.\r\n     * - `spender` cannot be the zero address.\r\n     */\r\n    function _approve(\r\n        address owner,\r\n        address spender,\r\n        uint256 amount\r\n    ) internal virtual {\r\n        require(owner != address(0), \"ERC20: approve from the zero address\");\r\n        require(spender != address(0), \"ERC20: approve to the zero address\");\r\n\r\n        _allowances[owner][spender] = amount;\r\n        emit Approval(owner, spender, amount);\r\n    }\r\n\r\n    /**\r\n     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.\r\n     *\r\n     * Does not update the allowance amount in case of infinite allowance.\r\n     * Revert if not enough allowance is available.\r\n     *\r\n     * Might emit an {Approval} event.\r\n     */\r\n    function _spendAllowance(\r\n        address owner,\r\n        address spender,\r\n        uint256 amount\r\n    ) internal virtual {\r\n        uint256 currentAllowance = allowance(owner, spender);\r\n        if (currentAllowance != type(uint256).max) {\r\n            require(currentAllowance >= amount, \"ERC20: insufficient allowance\");\r\n            unchecked {\r\n                _approve(owner, spender, currentAllowance - amount);\r\n            }\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @dev Hook that is called before any transfer of tokens. This includes\r\n     * minting and burning.\r\n     *\r\n     * Calling conditions:\r\n     *\r\n     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\r\n     * will be transferred to `to`.\r\n     * - when `from` is zero, `amount` tokens will be minted for `to`.\r\n     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\r\n     * - `from` and `to` are never both zero.\r\n     *\r\n     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\r\n     */\r\n    function _beforeTokenTransfer(\r\n        address from,\r\n        address to,\r\n        uint256 amount\r\n    ) internal virtual {}\r\n\r\n    /**\r\n     * @dev Hook that is called after any transfer of tokens. This includes\r\n     * minting and burning.\r\n     *\r\n     * Calling conditions:\r\n     *\r\n     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\r\n     * has been transferred to `to`.\r\n     * - when `from` is zero, `amount` tokens have been minted for `to`.\r\n     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.\r\n     * - `from` and `to` are never both zero.\r\n     *\r\n     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\r\n     */\r\n    function _afterTokenTransfer(\r\n        address from,\r\n        address to,\r\n        uint256 amount\r\n    ) internal virtual {}\r\n\r\n    /**\r\n     * @dev This empty reserved space is put in place to allow future versions to add new\r\n     * variables without shifting down storage in the inheritance chain.\r\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\r\n     */\r\n    uint256[45] private __gap;\r\n}\r\n\r\n\r\n// File contracts/ErrorCoded.sol\r\n\r\n// Copyright FMR LLC\r\npragma solidity 0.8.9;\r\n\r\n/**\r\n * @title ErrorCoded\r\n * @dev ErrorCoded is a library that defines custom error types used in Mintable Token\r\n */\r\n\r\nlibrary ErrorCoded {\r\n    string public constant ERR_TRANSFER_RESTRICTED =\r\n        \"Restrictable: Unable to transfer to or from addresses on transfer restriction list\";\r\n    string public constant ERR_TRANSFER_RESTRICTION_INVALID =\r\n        \"Restrictable: Unable to restrict transfers of 0 address\";\r\n    string public constant ERR_CONTRACT_NOT_DEPLOYED =\r\n        \"MintableToken: Contract must be deployed prior to upgrading\";\r\n    string public constant ERR_INSUFFICIENT_MINT_ALLOCATION =\r\n        \"MintAllocated: Amount must be less than or equal to the current mint allocation for a minter\";\r\n    string public constant ERR_DEFAULT_ADMIN_CANNOT_RENOUNCE =\r\n        \"SafeAccessControlEnumerable: Default Admin cannot renounce own role\";\r\n    string public constant ERR_ONLY_MINTERS_HAVE_MINT_ALLOCATIONS =\r\n        \"MintAllocated: Unable to adjust the mint allocation for a non-minter\";\r\n    string public constant ERR_ADMIN_ADDRESS_INVALID =\r\n        \"MintableToken: Admin address cannot be set to 0\";\r\n    string public constant ERR_CANNOT_REVOKE_LAST_DEFAULT_ADMIN =\r\n        \"SafeAccessControlEnumerable: Can't revoke or renounce role of the Default Admin when there is only one remaining\";\r\n    string public constant ERR_ARITHMETIC_OVERFLOW_ALLOWANCE =\r\n        \"MintableToken: Arithmetic overflow\";\r\n    string public constant ERR_ARITHMETIC_OVERFLOW_MINT =\r\n        \"MintAllocated: Arithmetic overflow\";\r\n    string public constant ERR_INVALID_RECIPIENT =\r\n        \"MintableToken: Token cannot be transferred to token contract\";\r\n    string public constant ERR_USER_DOES_NOT_HAVE_ROLE =\r\n        \"SafeAccessControlEnumerable: User does not have role\";\r\n    string public constant ERR_RESTRICT_TRANSFERS_ADD =\r\n        \"Restrictable: User already in transfer restriction list\";\r\n    string public constant ERR_RESTRICT_TRANSFERS_REMOVE =\r\n        \"Restrictable: User not in transfer restriction list\";\r\n}\r\n\r\n\r\n// File contracts/RoleManaged.sol\r\n\r\n// Copyright FMR LLC\r\npragma solidity 0.8.9;\r\n\r\n/**\r\n * @title RoleManaged\r\n * @dev RoleManaged defines account role identifiers\r\n */\r\n\r\nlibrary RoleManaged {\r\n    /**\r\n     * @dev\r\n     *  DEFAULT_ADMIN_ROLE: Modify role entitlements, and unpause the contract\r\n     *  UPGRADER_ROLE: Upgrade the contract\r\n     *  MINTER_ROLE: Mint (to any address except those on transfer restriction list)\r\n     *               Burn (only tokens owned by minter, or for which the minter is an approved spender)\r\n     *  MINTER_ALLOCATOR_ROLE: Increase or decrease mint allocation assigned to minters\r\n     *  TOKEN_TRANSFER_CONTROLLER_ROLE: Add and remove addresses from the transfer restriction list\r\n     *  PAUSER_ROLE: Pause\r\n     */\r\n\r\n    // DEFAULT ADMIN_ROLE is inherited from OpenZeppelin AccessControlUpgradeable\r\n    // See https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/v4.8.1/contracts/access/AccessControlUpgradeable.sol#L63\r\n    // DEFAULT_ADMIN_ROLE: 0x0000000000000000000000000000000000000000000000000000000000000000\r\n\r\n    // UPGRADER_ROLE: 0x189ab7a9244df0848122154315af71fe140f3db0fe014031783b0946b8c9d2e3\r\n    bytes32 public constant UPGRADER_ROLE = keccak256(\"UPGRADER_ROLE\");\r\n\r\n    // MINT_ALLOCATOR_ROLE: 0x0cecf1b455fc79891fde338087a5bc58cc780c12baea2fdc499814ec6b42206a\r\n    bytes32 public constant MINT_ALLOCATOR_ROLE =\r\n        keccak256(\"MINT_ALLOCATOR_ROLE\");\r\n\r\n    // MINTER_ROLE: 0x9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6\r\n    bytes32 public constant MINTER_ROLE = keccak256(\"MINTER_ROLE\");\r\n\r\n    // TOKEN_TRANSFER_CONTROLLER_ROLE: 0xfacce159e6968cd08fd9a4077ce70318710e6a3e2ca966e7a450e0609027b94e\r\n    bytes32 public constant TOKEN_TRANSFER_CONTROLLER_ROLE =\r\n        keccak256(\"TOKEN_TRANSFER_CONTROLLER_ROLE\");\r\n\r\n    // PAUSER_ROLE: 0x65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a\r\n    bytes32 public constant PAUSER_ROLE = keccak256(\"PAUSER_ROLE\");\r\n}\r\n\r\n\r\n// File contracts/RestrictableUpgradeable.sol\r\n\r\n// Copyright FMR LLC\r\npragma solidity 0.8.9;\r\n\r\n\r\n\r\n\r\n\r\n/**\r\n * @title RestrictableUpgradeable\r\n * @dev RestrictableUpgradeable allows accounts to be transfer restricted\r\n * preventing them from sending or receiving tokens\r\n */\r\n\r\ncontract RestrictableUpgradeable is\r\n    Initializable,\r\n    AccessControlEnumerableUpgradeable,\r\n    PausableUpgradeable,\r\n    ERC20Upgradeable\r\n{\r\n    using EnumerableSetUpgradeable for EnumerableSetUpgradeable.AddressSet;\r\n    //mapping an address to the transfer restriction list\r\n    EnumerableSetUpgradeable.AddressSet private restricted;\r\n\r\n    function __RestrictableUpgradeable_init() internal onlyInitializing {}\r\n\r\n    function __RestrictableUpgradeable_init_unchained()\r\n        internal\r\n        onlyInitializing\r\n    {}\r\n\r\n    /**\r\n     * @dev Emitted when an account is added to, or removed from the transfer restriction list\r\n     */\r\n    event TransferRestrictionImposed(address indexed account);\r\n    event TransferRestrictionRemoved(address indexed account);\r\n\r\n    modifier whenNotRestricted(address actionAccount) {\r\n        require(\r\n            !(isTransferRestrictionImposed(actionAccount)),\r\n            ErrorCoded.ERR_TRANSFER_RESTRICTED\r\n        );\r\n        _;\r\n    }\r\n\r\n    /**\r\n     * @dev Unpauses the contract\r\n     *\r\n     * @notice Only the admin will be able to unpause the contract\r\n     */\r\n    function unpause() external virtual onlyRole(DEFAULT_ADMIN_ROLE) {\r\n        _unpause();\r\n    }\r\n\r\n    /**\r\n     * @dev When paused, most functions of the contract will be unusable until the contract is unpaused\r\n     *\r\n     * @notice Only pausers can use the `pause` function\r\n     */\r\n    function pause() external virtual onlyRole(RoleManaged.PAUSER_ROLE) {\r\n        _pause();\r\n    }\r\n\r\n    /**\r\n     * @dev Restricts `restrictedAddress` from making token transfers\r\n     *\r\n     * @param restrictedAddress address of account to add to the transfer restriction list\r\n     *\r\n     * @notice Only token transfer controllers can use the `restrictTransfers` function\r\n     */\r\n    function restrictTransfers(\r\n        address restrictedAddress\r\n    ) external virtual onlyRole(RoleManaged.TOKEN_TRANSFER_CONTROLLER_ROLE) {\r\n        require(\r\n            restrictedAddress != address(0),\r\n            ErrorCoded.ERR_TRANSFER_RESTRICTION_INVALID\r\n        );\r\n        bool success = EnumerableSetUpgradeable.add(\r\n            restricted,\r\n            restrictedAddress\r\n        );\r\n        require(success, ErrorCoded.ERR_RESTRICT_TRANSFERS_ADD);\r\n        emit TransferRestrictionImposed(restrictedAddress);\r\n    }\r\n\r\n    /**\r\n     * @dev Unrestricts `restrictedAddress` allowing them to make transfers again\r\n     *\r\n     * @param restrictedAddress address to be removed from the transfer restriction list\r\n     *\r\n     * @notice Only token transfer controllers can use the `unrestrictTransfers` function\r\n     */\r\n    function unrestrictTransfers(\r\n        address restrictedAddress\r\n    ) external virtual onlyRole(RoleManaged.TOKEN_TRANSFER_CONTROLLER_ROLE) {\r\n        bool success = EnumerableSetUpgradeable.remove(\r\n            restricted,\r\n            restrictedAddress\r\n        );\r\n        require(success, ErrorCoded.ERR_RESTRICT_TRANSFERS_REMOVE);\r\n        emit TransferRestrictionRemoved(restrictedAddress);\r\n    }\r\n\r\n    /**\r\n     * @dev Verifies if an address is on the transfer restriction list\r\n     *\r\n     * @param account address for which we are checking transferability\r\n     */\r\n    function isTransferRestrictionImposed(\r\n        address account\r\n    ) public view virtual returns (bool) {\r\n        return EnumerableSetUpgradeable.contains(restricted, account);\r\n    }\r\n\r\n    /**\r\n     * @dev Finds transfer restricted address by index\r\n     *\r\n     * @param index index in the transfer restriction list to fetch\r\n     */\r\n    function getTransferRestriction(\r\n        uint256 index\r\n    ) external view virtual returns (address) {\r\n        return EnumerableSetUpgradeable.at(restricted, index);\r\n    }\r\n\r\n    /**\r\n     * @dev Find number of transfer restricted addresses\r\n     */\r\n    function getTransferRestrictionCount()\r\n        external\r\n        view\r\n        virtual\r\n        returns (uint256)\r\n    {\r\n        return EnumerableSetUpgradeable.length(restricted);\r\n    }\r\n\r\n    /**\r\n     * @dev This empty reserved space is put in place to allow future versions to add new\r\n     * variables without shifting down storage in the inheritance chain.\r\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\r\n     */\r\n    uint256[48] private __gap;\r\n}\r\n\r\n\r\n// File contracts/MintAllocatedUpgradeable.sol\r\n\r\n// Copyright FMR LLC\r\npragma solidity 0.8.9;\r\n\r\n\r\n\r\n\r\n\r\n\r\n/**\r\n * @title MintAllocatedUpgradeable\r\n * @dev MintAllocatedUpgradeable enables token minting by addresses with the minter role\r\n * in accordance with allotments set by mint allocators\r\n */\r\n\r\ncontract MintAllocatedUpgradeable is\r\n    Initializable,\r\n    AccessControlEnumerableUpgradeable,\r\n    PausableUpgradeable,\r\n    ERC20Upgradeable,\r\n    RestrictableUpgradeable\r\n{\r\n    function __MintAllocatedUpgradeable_init() internal onlyInitializing {}\r\n\r\n    function __MintAllocatedUpgradeable_init_unchained()\r\n        internal\r\n        onlyInitializing\r\n    {}\r\n\r\n    /**\r\n     * @dev Mint Allocation is a per-minter allocation which allows minters to mint a certain number of tokens\r\n     *\r\n     * @notice Mint allocators can add or remove from this allowance\r\n     */\r\n    mapping(address => uint256) public mintAllocation;\r\n\r\n    /**\r\n     * @dev Emitted when a `mintAllocation` is updated by a mint allocator\r\n     */\r\n    event MintAllocationChanged(\r\n        address indexed mintAllocator,\r\n        address indexed minter,\r\n        uint256 allocation\r\n    );\r\n    event Mint(address indexed minter, address indexed to, uint256 value);\r\n    event Burn(address indexed burner, uint256 amount);\r\n\r\n    modifier isMinter(address actionAccount) {\r\n        require(\r\n            hasRole(RoleManaged.MINTER_ROLE, actionAccount),\r\n            ErrorCoded.ERR_ONLY_MINTERS_HAVE_MINT_ALLOCATIONS\r\n        );\r\n        _;\r\n    }\r\n\r\n    /**\r\n     * @dev Allows a mint allocator to increase a minter's mint allocation\r\n     *\r\n     * @param minter the minter's address\r\n     * @param amount total amount by which the mint allocation is increased\r\n     *\r\n     * @notice Only mint allocators can adjust the mint allocation of a minter\r\n     * @notice Only a valid minter address should be able to have an allocation set\r\n     */\r\n    function increaseMintAllocation(\r\n        address minter,\r\n        uint256 amount\r\n    )\r\n        external\r\n        virtual\r\n        whenNotPaused\r\n        onlyRole(RoleManaged.MINT_ALLOCATOR_ROLE)\r\n        isMinter(minter)\r\n    {\r\n        require(\r\n            type(uint256).max - mintAllocation[minter] >= amount,\r\n            ErrorCoded.ERR_ARITHMETIC_OVERFLOW_MINT\r\n        );\r\n        unchecked {\r\n            mintAllocation[minter] = mintAllocation[minter] + amount;\r\n        }\r\n        emit MintAllocationChanged(\r\n            _msgSender(),\r\n            minter,\r\n            mintAllocation[minter]\r\n        );\r\n    }\r\n\r\n    /**\r\n     * @dev Atomically decreases the mint allocation of a minter\r\n     *\r\n     * @param minter the minter's address\r\n     * @param amount total amount by which the minter's allocation is decreased\r\n     *\r\n     * @notice Decreases in mint allocation are allowed to succeed even when `amount` exceeds allocation to ensure that a\r\n     * decrease will succeed even in a race condition when a mint separately decreases the `mintAllocation`\r\n     */\r\n    function decreaseMintAllocation(\r\n        address minter,\r\n        uint256 amount\r\n    )\r\n        external\r\n        virtual\r\n        whenNotPaused\r\n        onlyRole(RoleManaged.MINT_ALLOCATOR_ROLE)\r\n        isMinter(minter)\r\n    {\r\n        uint256 newAllocation = mintAllocation[minter] > amount\r\n            ? mintAllocation[minter] - amount\r\n            : 0;\r\n\r\n        mintAllocation[minter] = newAllocation;\r\n\r\n        emit MintAllocationChanged(\r\n            _msgSender(),\r\n            minter,\r\n            mintAllocation[minter]\r\n        );\r\n    }\r\n\r\n    /**\r\n     * @dev Mints tokens to a specified address, decreasing the `mintAllocation` after the coins are minted.\r\n     *\r\n     * @param to address that will receive the newly minted tokens\r\n     * @param amount the quantity of tokens to mint\r\n     *\r\n     * @notice Only minters can use the mint function\r\n     * @notice The minter must have enough tokens in their `mintAllocation` to mint\r\n     */\r\n    function mint(\r\n        address to,\r\n        uint256 amount\r\n    )\r\n        external\r\n        virtual\r\n        whenNotPaused\r\n        onlyRole(RoleManaged.MINTER_ROLE)\r\n        whenNotRestricted(_msgSender())\r\n        whenNotRestricted(to)\r\n        whenNotRestricted(tx.origin)\r\n    {\r\n        require(\r\n            amount <= mintAllocation[_msgSender()],\r\n            ErrorCoded.ERR_INSUFFICIENT_MINT_ALLOCATION\r\n        );\r\n        _mint(to, amount);\r\n        unchecked {\r\n            mintAllocation[_msgSender()] =\r\n                mintAllocation[_msgSender()] -\r\n                amount;\r\n        }\r\n        emit Mint(_msgSender(), to, amount);\r\n    }\r\n\r\n    /**\r\n     * @dev Destroys `amount` tokens from the caller\r\n     *\r\n     * @param amount the quantity of tokens to burn\r\n     *\r\n     * @notice Only minters are allowed to burn tokens\r\n     */\r\n    function burn(\r\n        uint256 amount\r\n    )\r\n        external\r\n        virtual\r\n        whenNotPaused\r\n        onlyRole(RoleManaged.MINTER_ROLE)\r\n        whenNotRestricted(_msgSender())\r\n        whenNotRestricted(tx.origin)\r\n    {\r\n        _burn(_msgSender(), amount);\r\n        emit Burn(_msgSender(), amount);\r\n    }\r\n\r\n    /**\r\n     * @dev Destroys `amount` tokens from the caller\r\n     *\r\n     * @notice Only minters are allowed to `burnFrom` their own account\r\n     * or allowances they have been given\r\n     */\r\n    function burnFrom(\r\n        address account,\r\n        uint256 amount\r\n    )\r\n        external\r\n        virtual\r\n        whenNotPaused\r\n        onlyRole(RoleManaged.MINTER_ROLE)\r\n        whenNotRestricted(account)\r\n        whenNotRestricted(_msgSender())\r\n        whenNotRestricted(tx.origin)\r\n    {\r\n        if (account != _msgSender()) {\r\n            _spendAllowance(account, _msgSender(), amount);\r\n        }\r\n        _burn(account, amount);\r\n        emit Burn(account, amount);\r\n    }\r\n\r\n    /**\r\n     * @dev This empty reserved space is put in place to allow future versions to add new\r\n     * variables without shifting down storage in the inheritance chain.\r\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\r\n     */\r\n    uint256[49] private __gap;\r\n}\r\n\r\n\r\n// File contracts/SafeAccessControlEnumerableUpgradeable.sol\r\n\r\n// Copyright FMR LLC\r\npragma solidity 0.8.9;\r\n\r\n\r\n\r\n\r\n\r\n/**\r\n * @title SafeAccessControlEnumerableUpgradeable\r\n * @dev SafeAccessControlEnumerableUpgradeable adds role-specific logic\r\n * to the AccessControlEnumerableUpgradeable contract to ensure that\r\n * mint allocations are set back to 0 when a Minter role is revoked\r\n * and controls to ensure the contract always has at least one admin\r\n */\r\n\r\ncontract SafeAccessControlEnumerableUpgradeable is\r\n    Initializable,\r\n    AccessControlEnumerableUpgradeable,\r\n    ERC20Upgradeable,\r\n    MintAllocatedUpgradeable\r\n{\r\n    function __SafeAccessControlEnumerable_init() internal onlyInitializing {}\r\n\r\n    function __SafeAccessControlEnumerable_init_unchained()\r\n        internal\r\n        onlyInitializing\r\n    {}\r\n\r\n    /**\r\n     * @dev Revokes `role` from `account`\r\n     *\r\n     * @param role bytes32 of the role to revoke\r\n     * @param account address to remove from role list\r\n     */\r\n    function revokeRole(\r\n        bytes32 role,\r\n        address account\r\n    ) external virtual override {\r\n        _safeRevokeRenounce(role, account);\r\n        super.revokeRole(role, account);\r\n    }\r\n\r\n    /**\r\n     * @dev An account revokes `role` from its own address\r\n     *\r\n     * @param role bytes32 of the role to renounce\r\n     * @param account address to remove from role list\r\n     */\r\n    function renounceRole(\r\n        bytes32 role,\r\n        address account\r\n    ) public virtual override {\r\n        _safeRevokeRenounce(role, account);\r\n        super.renounceRole(role, account);\r\n    }\r\n\r\n    /**\r\n     * @dev Checks if role being revoked or renounced is a Minter or Default Admin\r\n     *\r\n     * @param role bytes32 of the role to renounce\r\n     * @param account address to remove from role list\r\n     *\r\n     * @notice We restrict revoke or renounce of a role for the last Default Admin Role account\r\n     * note that this is implicitly true because we don't allow an admin to revoke their own role\r\n     * @notice We set Mint Allocation to 0 if we revoke or renounce Minter Role\r\n     */\r\n    function _safeRevokeRenounce(bytes32 role, address account) internal {\r\n        require(hasRole(role, account), ErrorCoded.ERR_USER_DOES_NOT_HAVE_ROLE);\r\n        if (role == RoleManaged.MINTER_ROLE) {\r\n            unchecked {\r\n                mintAllocation[account] = 0;\r\n            }\r\n            emit MintAllocationChanged(\r\n                _msgSender(),\r\n                account,\r\n                mintAllocation[account]\r\n            );\r\n        }\r\n\r\n        // Admin is not allowed to revoke its own role. This is to prevent accidental\r\n        // loss of control of the contract\r\n        if (role == DEFAULT_ADMIN_ROLE) {\r\n            require(\r\n                _msgSender() != account,\r\n                ErrorCoded.ERR_DEFAULT_ADMIN_CANNOT_RENOUNCE\r\n            );\r\n            require(\r\n                getRoleMemberCount(DEFAULT_ADMIN_ROLE) > 1,\r\n                ErrorCoded.ERR_CANNOT_REVOKE_LAST_DEFAULT_ADMIN\r\n            );\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @dev This empty reserved space is put in place to allow future versions to add new\r\n     * variables without shifting down storage in the inheritance chain.\r\n     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\r\n     */\r\n    uint256[50] private __gap;\r\n}\r\n\r\n\r\n// File contracts/MintableToken.sol\r\n\r\n// Copyright FMR LLC\r\npragma solidity 0.8.9;\r\n\r\n\r\n// Custom modules\r\n\r\n\r\n\r\n\r\n\r\n/**\r\n * @title MintableToken\r\n * @dev MintableToken is an upgradeable ERC20 token with special provisions for minting, burning and transfer restrictions\r\n */\r\n\r\ncontract MintableToken is\r\n    UUPSUpgradeable,\r\n    RestrictableUpgradeable,\r\n    MintAllocatedUpgradeable,\r\n    SafeAccessControlEnumerableUpgradeable\r\n{\r\n    using RoleManaged for bytes32;\r\n    using ErrorCoded for string;\r\n\r\n    /**\r\n     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\r\n     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\r\n     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\r\n     * through proxies.\r\n     */\r\n    /// @custom:oz-upgrades-unsafe-allow constructor\r\n    constructor() {\r\n        _disableInitializers();\r\n    }\r\n\r\n    /**\r\n     * @dev Initializes the ERC20 contract with token name and symbol, and sets an address to the `DEFAULT_ADMIN_ROLE`\r\n     *\r\n     * @param _name the name of the token\r\n     * @param _symbol the symbol of the token\r\n     * @param _admin the default admin address for the token contract\r\n     *\r\n     * @notice Admin address must be set upon deployment. Contract deployer(_msgSender()) is not assumed to have any role.\r\n     * @notice All other roles of the token contract must be granted in additional transactions.\r\n     * @notice This must fail if the admin address is zero.\r\n     */\r\n    function initialize(\r\n        string calldata _name,\r\n        string calldata _symbol,\r\n        address _admin\r\n    ) external initializer {\r\n        require(_admin != address(0), ErrorCoded.ERR_ADMIN_ADDRESS_INVALID);\r\n\r\n        __ERC20_init(_name, _symbol);\r\n        __Pausable_init();\r\n        __UUPSUpgradeable_init();\r\n        __Context_init();\r\n        __AccessControl_init();\r\n        __AccessControlEnumerable_init();\r\n        __ERC165_init();\r\n        __ERC1967Upgrade_init();\r\n        //custom features\r\n        __MintAllocatedUpgradeable_init();\r\n        __RestrictableUpgradeable_init();\r\n        __SafeAccessControlEnumerable_init();\r\n        //RBAC\r\n        _grantRole(DEFAULT_ADMIN_ROLE, _admin);\r\n    }\r\n\r\n    /**\r\n     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens\r\n     *\r\n     * @param spender account being approved to spend the caller's tokens\r\n     * @param amount quantity of tokens being approved to be spent\r\n     */\r\n    function approve(\r\n        address spender,\r\n        uint256 amount\r\n    )\r\n        public\r\n        virtual\r\n        override\r\n        whenNotPaused\r\n        whenNotRestricted(_msgSender())\r\n        whenNotRestricted(spender)\r\n        whenNotRestricted(tx.origin)\r\n        returns (bool)\r\n    {\r\n        ERC20Upgradeable._approve(_msgSender(), spender, amount);\r\n        return true;\r\n    }\r\n\r\n    /**\r\n     * @dev Atomically increases the allowance granted to `spender` by the caller\r\n     *\r\n     * @param spender account being approved to spend the caller's tokens\r\n     * @param addedValue the additional quantity of tokens being approved to be spent\r\n     *\r\n     * @notice This is an alternative to {approve} that can be used as a mitigation for\r\n     * problems described in {IERC20-approve}.\r\n     */\r\n    function increaseAllowance(\r\n        address spender,\r\n        uint256 addedValue\r\n    )\r\n        public\r\n        virtual\r\n        override\r\n        whenNotPaused\r\n        whenNotRestricted(_msgSender())\r\n        whenNotRestricted(spender)\r\n        whenNotRestricted(tx.origin)\r\n        returns (bool)\r\n    {\r\n        uint256 currentAllowance = allowance(_msgSender(), spender);\r\n        require(\r\n            type(uint256).max - currentAllowance >= addedValue,\r\n            ErrorCoded.ERR_ARITHMETIC_OVERFLOW_ALLOWANCE\r\n        );\r\n        unchecked {\r\n            ERC20Upgradeable._approve(\r\n                _msgSender(),\r\n                spender,\r\n                currentAllowance + addedValue\r\n            );\r\n        }\r\n        return true;\r\n    }\r\n\r\n    /**\r\n     * @dev Atomically decreases the allowance granted to `spender` by the caller\r\n     *\r\n     * @param spender account that has been approved to spend the caller's tokens\r\n     * @param subtractedValue the quantity of tokens to remove from the spender's approval\r\n     *\r\n     * @notice Spender's allowance is set to zero when the `subtractedValue` exceeds current allowance. This is allowed\r\n     * to succeed as the caller still should be able to decrease the spender's allowance under a race condition when a\r\n     * transfer decreases the spender's allowance.\r\n     *\r\n     * @notice A transfer restricted user is allowed to decrease allowances.\r\n     * This is to prevent a compromised spender address from spending previously approved allowance immediately after the\r\n     * restriction is lifted. No fund transfer is allowed when there is a transfer restriction.\r\n     */\r\n    function decreaseAllowance(\r\n        address spender,\r\n        uint256 subtractedValue\r\n    ) public virtual override whenNotPaused returns (bool) {\r\n        uint256 currentAllowance = allowance(_msgSender(), spender);\r\n        uint256 newAllowance = currentAllowance > subtractedValue\r\n            ? currentAllowance - subtractedValue\r\n            : 0;\r\n\r\n        ERC20Upgradeable._approve(_msgSender(), spender, newAllowance);\r\n        return true;\r\n    }\r\n\r\n    /**\r\n     * @dev Moves `amount` tokens from msg.sender() to `to`\r\n     *\r\n     * @param to recipient of transfer\r\n     * @param amount quantity of tokens transferred\r\n     */\r\n    function transfer(\r\n        address to,\r\n        uint256 amount\r\n    )\r\n        public\r\n        virtual\r\n        override\r\n        whenNotPaused\r\n        whenNotRestricted(_msgSender())\r\n        whenNotRestricted(to)\r\n        whenNotRestricted(tx.origin)\r\n        returns (bool)\r\n    {\r\n        address owner = _msgSender();\r\n        ERC20Upgradeable._transfer(owner, to, amount);\r\n        return true;\r\n    }\r\n\r\n    /**\r\n     * @dev Moves amount tokens from `from` to `to` using the allowance mechanism. The `amount` is then deducted from the caller’s allowance\r\n     *\r\n     * @param from origin of transfer\r\n     * @param to recipient of transfer\r\n     * @param amount quantity of tokens transferred\r\n     *\r\n     * @notice Any address in the transfer restriction list is not allowed to transfer tokens\r\n     */\r\n    function transferFrom(\r\n        address from,\r\n        address to,\r\n        uint256 amount\r\n    )\r\n        public\r\n        virtual\r\n        override\r\n        whenNotPaused\r\n        whenNotRestricted(_msgSender())\r\n        whenNotRestricted(from)\r\n        whenNotRestricted(to)\r\n        whenNotRestricted(tx.origin)\r\n        returns (bool)\r\n    {\r\n        ERC20Upgradeable._spendAllowance(from, _msgSender(), amount);\r\n        ERC20Upgradeable._transfer(from, to, amount);\r\n        return true;\r\n    }\r\n\r\n    // ################### Internal checks before transfers\r\n\r\n    /**\r\n     * @dev Functions and modifiers to run prior to allowing a transfer\r\n     * @dev No account on the transfer restriction list should be allowed to send or receive\r\n     */\r\n    function _beforeTokenTransfer(\r\n        address from,\r\n        address to,\r\n        uint256 amount\r\n    ) internal override {\r\n        require(to != address(this), ErrorCoded.ERR_INVALID_RECIPIENT);\r\n        ERC20Upgradeable._beforeTokenTransfer(from, to, amount);\r\n    }\r\n\r\n    function _authorizeUpgrade(\r\n        address newImplementation\r\n    ) internal view override onlyRole(RoleManaged.UPGRADER_ROLE) {\r\n        require(\r\n            newImplementation.code.length > 0,\r\n            ErrorCoded.ERR_CONTRACT_NOT_DEPLOYED\r\n        );\r\n    }\r\n}","deployed_bytecode":"0x6080604052600436106102255760003560e01c806352d1902d116101235780639010d07c116100ab578063a9059cbb1161006f578063a9059cbb14610648578063ca15c87314610668578063d547741f14610688578063dd62ed3e146106a8578063e444f4d9146106c857600080fd5b80639010d07c146105be57806391d14854146105de57806395d89b41146105fe578063a217fddf14610613578063a457c2d71461062857600080fd5b806379cc6790116100f257806379cc6790146105345780637ade3ed714610554578063812d8430146105695780638456cb5914610589578063875cb2741461059e57600080fd5b806352d1902d146104af5780635c975abb146104c45780636387e222146104dd57806370a08231146104fd57600080fd5b806330c57e06116101b1578063395093511161017557806339509351146104275780633f4ba83a1461044757806340c10f191461045c57806342966c681461047c5780634f1ef2861461049c57600080fd5b806330c57e061461038b578063313ce567146103ab578063323ccaa0146103c757806336568abe146103e75780633659cfe61461040757600080fd5b806311d17dfd116101f857806311d17dfd146102c357806318160ddd146102fb57806323b872dd1461031b578063248a9ca31461033b5780632f2ff15d1461036b57600080fd5b806301ffc9a71461022a57806306fdde031461025f578063077f224a14610281578063095ea7b3146102a3575b600080fd5b34801561023657600080fd5b5061024a610245366004612e12565b6106f6565b60405190151581526020015b60405180910390f35b34801561026b57600080fd5b50610274610721565b6040516102569190612e68565b34801561028d57600080fd5b506102a161029c366004612f00565b6107b4565b005b3480156102af57600080fd5b5061024a6102be366004612f81565b6109e4565b3480156102cf57600080fd5b506102e36102de366004612fab565b610ace565b6040516001600160a01b039091168152602001610256565b34801561030757600080fd5b50610161545b604051908152602001610256565b34801561032757600080fd5b5061024a610336366004612fc4565b610adc565b34801561034757600080fd5b5061030d610356366004612fab565b600090815260c9602052604090206001015490565b34801561037757600080fd5b506102a1610386366004613000565b610c16565b34801561039757600080fd5b5061024a6103a636600461302c565b610c40565b3480156103b757600080fd5b5060405160128152602001610256565b3480156103d357600080fd5b506102a16103e236600461302c565b610c4e565b3480156103f357600080fd5b506102a1610402366004613000565b610d49565b34801561041357600080fd5b506102a161042236600461302c565b610d61565b34801561043357600080fd5b5061024a610442366004612f81565b610e41565b34801561045357600080fd5b506102a1610f83565b34801561046857600080fd5b506102a1610477366004612f81565b610f96565b34801561048857600080fd5b506102a1610497366004612fab565b611157565b6102a16104aa36600461305d565b611242565b3480156104bb57600080fd5b5061030d61130f565b3480156104d057600080fd5b5061012d5460ff1661024a565b3480156104e957600080fd5b506102a16104f836600461302c565b6113c2565b34801561050957600080fd5b5061030d61051836600461302c565b6001600160a01b0316600090815261015f602052604090205490565b34801561054057600080fd5b506102a161054f366004612f81565b61146e565b34801561056057600080fd5b5061030d6115c7565b34801561057557600080fd5b506102a1610584366004612f81565b6115d9565b34801561059557600080fd5b506102a161171b565b3480156105aa57600080fd5b506102a16105b9366004612f81565b61174d565b3480156105ca57600080fd5b506102e36105d936600461311f565b61187a565b3480156105ea57600080fd5b5061024a6105f9366004613000565b611899565b34801561060a57600080fd5b506102746118c4565b34801561061f57600080fd5b5061030d600081565b34801561063457600080fd5b5061024a610643366004612f81565b6118d4565b34801561065457600080fd5b5061024a610663366004612f81565b61191e565b34801561067457600080fd5b5061030d610683366004612fab565b6119fd565b34801561069457600080fd5b506102a16106a3366004613000565b611a14565b3480156106b457600080fd5b5061030d6106c3366004613141565b611a28565b3480156106d457600080fd5b5061030d6106e336600461302c565b6101c36020526000908152604090205481565b60006001600160e01b03198216635a05180f60e01b148061071b575061071b82611a54565b92915050565b606061016280546107319061316b565b80601f016020809104026020016040519081016040528092919081815260200182805461075d9061316b565b80156107aa5780601f1061077f576101008083540402835291602001916107aa565b820191906000526020600020905b81548152906001019060200180831161078d57829003601f168201915b5050505050905090565b600054610100900460ff16158080156107d45750600054600160ff909116105b806107ee5750303b1580156107ee575060005460ff166001145b6108565760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b6000805460ff191660011790558015610879576000805461ff0019166101001790555b60006001600160a01b0316826001600160a01b031614156040518060600160405280602f81526020016136b6602f9139906108c75760405162461bcd60e51b815260040161084d9190612e68565b5061093b86868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8a018190048102820181019092528881529250889150879081908401838280828437600092019190915250611a8992505050565b610943611aba565b61094b611aeb565b610953611aeb565b61095b611aeb565b610963611aeb565b61096b611aeb565b610973611aeb565b61097b611aeb565b610983611aeb565b61098b611aeb565b610996600083611b12565b80156109dc576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050505050565b60006109ee611b34565b336109f881610c40565b156040518060800160405280605281526020016133db6052913990610a305760405162461bcd60e51b815260040161084d9190612e68565b5083610a3b81610c40565b156040518060800160405280605281526020016133db6052913990610a735760405162461bcd60e51b815260040161084d9190612e68565b5032610a7e81610c40565b156040518060800160405280605281526020016133db6052913990610ab65760405162461bcd60e51b815260040161084d9190612e68565b50610ac2338787611b7b565b50600195945050505050565b600061071b61019183611ca0565b6000610ae6611b34565b33610af081610c40565b156040518060800160405280605281526020016133db6052913990610b285760405162461bcd60e51b815260040161084d9190612e68565b5084610b3381610c40565b156040518060800160405280605281526020016133db6052913990610b6b5760405162461bcd60e51b815260040161084d9190612e68565b5084610b7681610c40565b156040518060800160405280605281526020016133db6052913990610bae5760405162461bcd60e51b815260040161084d9190612e68565b5032610bb981610c40565b156040518060800160405280605281526020016133db6052913990610bf15760405162461bcd60e51b815260040161084d9190612e68565b50610bfd883388611cac565b610c08888888611d26565b506001979650505050505050565b600082815260c96020526040902060010154610c3181611ede565b610c3b8383611b12565b505050565b600061071b61019183611ee8565b7ffacce159e6968cd08fd9a4077ce70318710e6a3e2ca966e7a450e0609027b94e610c7881611ede565b60006001600160a01b0316826001600160a01b0316141560405180606001604052806037815260200161367f6037913990610cc65760405162461bcd60e51b815260040161084d9190612e68565b506000610cd561019184611f0a565b90508060405180606001604052806037815260200161354f6037913990610d0f5760405162461bcd60e51b815260040161084d9190612e68565b506040516001600160a01b038416907f31180c9d9d89196003f30f7b6643004f76e5feb146dbf10ae71764a88cfed5ef90600090a2505050565b610d538282611f1f565b610d5d828261205f565b5050565b306001600160a01b037f0000000000000000000000008ae9cb3d9095da33555494110f567e3d974c6753161415610daa5760405162461bcd60e51b815260040161084d906131a6565b7f0000000000000000000000008ae9cb3d9095da33555494110f567e3d974c67536001600160a01b0316610df36000805160206135e4833981519152546001600160a01b031690565b6001600160a01b031614610e195760405162461bcd60e51b815260040161084d906131f2565b610e22816120d9565b60408051600080825260208201909252610e3e91839190612148565b50565b6000610e4b611b34565b33610e5581610c40565b156040518060800160405280605281526020016133db6052913990610e8d5760405162461bcd60e51b815260040161084d9190612e68565b5083610e9881610c40565b156040518060800160405280605281526020016133db6052913990610ed05760405162461bcd60e51b815260040161084d9190612e68565b5032610edb81610c40565b156040518060800160405280605281526020016133db6052913990610f135760405162461bcd60e51b815260040161084d9190612e68565b506000610f203388611a28565b905085610f2f82600019613254565b10156040518060600160405280602281526020016135c26022913990610f685760405162461bcd60e51b815260040161084d9190612e68565b50610f763388888401611b7b565b5060019695505050505050565b6000610f8e81611ede565b610e3e6122c2565b610f9e611b34565b60008051602061362b833981519152610fb681611ede565b33610fc081610c40565b156040518060800160405280605281526020016133db6052913990610ff85760405162461bcd60e51b815260040161084d9190612e68565b508361100381610c40565b156040518060800160405280605281526020016133db605291399061103b5760405162461bcd60e51b815260040161084d9190612e68565b503261104681610c40565b156040518060800160405280605281526020016133db605291399061107e5760405162461bcd60e51b815260040161084d9190612e68565b506101c36000336001600160a01b03166001600160a01b03168152602001908152602001600020548511156040518060800160405280605c8152602001613707605c9139906110e05760405162461bcd60e51b815260040161084d9190612e68565b506110eb8686612315565b3360008181526101c360205260409020805487900390556001600160a01b038716906001600160a01b03167fab8530f87dc9b59234c4623bf917212bb2536d647574c8e7e5da92c2ede0c9f88760405161114791815260200190565b60405180910390a3505050505050565b61115f611b34565b60008051602061362b83398151915261117781611ede565b3361118181610c40565b156040518060800160405280605281526020016133db60529139906111b95760405162461bcd60e51b815260040161084d9190612e68565b50326111c481610c40565b156040518060800160405280605281526020016133db60529139906111fc5760405162461bcd60e51b815260040161084d9190612e68565b5061120733856123e4565b60405184815233907fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59060200160405180910390a250505050565b306001600160a01b037f0000000000000000000000008ae9cb3d9095da33555494110f567e3d974c675316141561128b5760405162461bcd60e51b815260040161084d906131a6565b7f0000000000000000000000008ae9cb3d9095da33555494110f567e3d974c67536001600160a01b03166112d46000805160206135e4833981519152546001600160a01b031690565b6001600160a01b0316146112fa5760405162461bcd60e51b815260040161084d906131f2565b611303826120d9565b610d5d82826001612148565b6000306001600160a01b037f0000000000000000000000008ae9cb3d9095da33555494110f567e3d974c675316146113af5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c0000000000000000606482015260840161084d565b506000805160206135e483398151915290565b7ffacce159e6968cd08fd9a4077ce70318710e6a3e2ca966e7a450e0609027b94e6113ec81611ede565b60006113fa61019184612527565b90508060405180606001604052806033815260200161349d60339139906114345760405162461bcd60e51b815260040161084d9190612e68565b506040516001600160a01b038416907f1c425db0931b7efc6b31b2491db198b75f20cfd6885f51c35f5f2a5495ef461990600090a2505050565b611476611b34565b60008051602061362b83398151915261148e81611ede565b8261149881610c40565b156040518060800160405280605281526020016133db60529139906114d05760405162461bcd60e51b815260040161084d9190612e68565b50336114db81610c40565b156040518060800160405280605281526020016133db60529139906115135760405162461bcd60e51b815260040161084d9190612e68565b503261151e81610c40565b156040518060800160405280605281526020016133db60529139906115565760405162461bcd60e51b815260040161084d9190612e68565b506001600160a01b038616331461157257611572863387611cac565b61157c86866123e4565b856001600160a01b03167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5866040516115b791815260200190565b60405180910390a2505050505050565b60006115d461019161253c565b905090565b6115e1611b34565b7f0cecf1b455fc79891fde338087a5bc58cc780c12baea2fdc499814ec6b42206a61160b81611ede565b8261162460008051602061362b83398151915282611899565b60405180608001604052806044815260200161350b604491399061165b5760405162461bcd60e51b815260040161084d9190612e68565b506001600160a01b03841660009081526101c36020526040902054839061168490600019613254565b10156040518060600160405280602281526020016136e560229139906116bd5760405162461bcd60e51b815260040161084d9190612e68565b506001600160a01b03841660008181526101c360209081526040918290208054870190819055915191825233917f1db181e6d9236a2b45d3527b5fd8ab150dd9b47b00b068f4c9b0b12d6c945589910160405180910390a350505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a61174581611ede565b610e3e612546565b611755611b34565b7f0cecf1b455fc79891fde338087a5bc58cc780c12baea2fdc499814ec6b42206a61177f81611ede565b8261179860008051602061362b83398151915282611899565b60405180608001604052806044815260200161350b60449139906117cf5760405162461bcd60e51b815260040161084d9190612e68565b506001600160a01b03841660009081526101c3602052604081205484106117f757600061181c565b6001600160a01b03851660009081526101c3602052604090205461181c908590613254565b6001600160a01b03861660008181526101c360209081526040918290208490559051838152929350909133917f1db181e6d9236a2b45d3527b5fd8ab150dd9b47b00b068f4c9b0b12d6c945589910160405180910390a35050505050565b600082815260fb602052604081206118929083611ca0565b9392505050565b600091825260c9602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606061016380546107319061316b565b60006118de611b34565b60006118ea3385611a28565b905060008382116118fc576000611906565b6119068483613254565b9050611913338683611b7b565b506001949350505050565b6000611928611b34565b3361193281610c40565b156040518060800160405280605281526020016133db605291399061196a5760405162461bcd60e51b815260040161084d9190612e68565b508361197581610c40565b156040518060800160405280605281526020016133db60529139906119ad5760405162461bcd60e51b815260040161084d9190612e68565b50326119b881610c40565b156040518060800160405280605281526020016133db60529139906119f05760405162461bcd60e51b815260040161084d9190612e68565b5033610f76818888611d26565b600081815260fb6020526040812061071b9061253c565b611a1e8282611f1f565b610d5d8282612584565b6001600160a01b0391821660009081526101606020908152604080832093909416825291909152205490565b60006001600160e01b03198216637965db0b60e01b148061071b57506301ffc9a760e01b6001600160e01b031983161461071b565b600054610100900460ff16611ab05760405162461bcd60e51b815260040161084d9061326b565b610d5d82826125a9565b600054610100900460ff16611ae15760405162461bcd60e51b815260040161084d9061326b565b611ae96125f9565b565b600054610100900460ff16611ae95760405162461bcd60e51b815260040161084d9061326b565b611b1c828261262d565b600082815260fb60205260409020610c3b9082611f0a565b61012d5460ff1615611ae95760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161084d565b6001600160a01b038316611bdd5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161084d565b6001600160a01b038216611c3e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161084d565b6001600160a01b038381166000818152610160602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600061189283836126b3565b6000611cb88484611a28565b90506000198114611d205781811015611d135760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161084d565b611d208484848403611b7b565b50505050565b6001600160a01b038316611d8a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161084d565b6001600160a01b038216611dec5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161084d565b611df78383836126dd565b6001600160a01b038316600090815261015f602052604090205481811015611e705760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161084d565b6001600160a01b03808516600081815261015f602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611ed19086815260200190565b60405180910390a3611d20565b610e3e813361272a565b6001600160a01b03811660009081526001830160205260408120541515611892565b6000611892836001600160a01b038416612783565b611f298282611899565b60405180606001604052806034815260200161364b6034913990611f605760405162461bcd60e51b815260040161084d9190612e68565b5060008051602061362b833981519152821415611fc8576001600160a01b03811660008181526101c3602090815260408083208390555191825233917f1db181e6d9236a2b45d3527b5fd8ab150dd9b47b00b068f4c9b0b12d6c945589910160405180910390a35b81610d5d576001600160a01b038116336001600160a01b03161415604051806080016040528060438152602001613763604391399061201a5760405162461bcd60e51b815260040161084d9190612e68565b50600161202760006119fd565b116040518060a001604052806070815260200161342d6070913990610c3b5760405162461bcd60e51b815260040161084d9190612e68565b6001600160a01b03811633146120cf5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161084d565b610d5d82826127d2565b7f189ab7a9244df0848122154315af71fe140f3db0fe014031783b0946b8c9d2e361210381611ede565b6000826001600160a01b03163b116040518060600160405280603b81526020016134d0603b913990610c3b5760405162461bcd60e51b815260040161084d9190612e68565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff161561217b57610c3b836127f4565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b815260040160206040518083038186803b1580156121b457600080fd5b505afa9250505080156121e4575060408051601f3d908101601f191682019092526121e1918101906132b6565b60015b6122475760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b606482015260840161084d565b6000805160206135e483398151915281146122b65760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b606482015260840161084d565b50610c3b838383612890565b6122ca6128b5565b61012d805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b03821661236b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161084d565b612377600083836126dd565b80610161600082825461238a91906132cf565b90915550506001600160a01b038216600081815261015f60209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b0382166124445760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161084d565b612450826000836126dd565b6001600160a01b038216600090815261015f6020526040902054818110156124c55760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161084d565b6001600160a01b038316600081815261015f60209081526040808320868603905561016180548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6000611892836001600160a01b0384166128ff565b600061071b825490565b61254e611b34565b61012d805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586122f83390565b600082815260c9602052604090206001015461259f81611ede565b610c3b83836127d2565b600054610100900460ff166125d05760405162461bcd60e51b815260040161084d9061326b565b81516125e490610162906020850190612d79565b508051610c3b90610163906020840190612d79565b600054610100900460ff166126205760405162461bcd60e51b815260040161084d9061326b565b61012d805460ff19169055565b6126378282611899565b610d5d57600082815260c9602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561266f3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008260000182815481106126ca576126ca6132e7565b9060005260206000200154905092915050565b306001600160a01b0316826001600160a01b031614156040518060600160405280603c8152602001613586603c913990611d205760405162461bcd60e51b815260040161084d9190612e68565b6127348282611899565b610d5d57612741816129f2565b61274c836020612a04565b60405160200161275d9291906132fd565b60408051601f198184030181529082905262461bcd60e51b825261084d91600401612e68565b60008181526001830160205260408120546127ca5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561071b565b50600061071b565b6127dc8282612ba0565b600082815260fb60205260409020610c3b9082612527565b6001600160a01b0381163b6128615760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b606482015260840161084d565b6000805160206135e483398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b61289983612c07565b6000825111806128a65750805b15610c3b57611d208383612c47565b61012d5460ff16611ae95760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161084d565b600081815260018301602052604081205480156129e8576000612923600183613254565b855490915060009061293790600190613254565b905081811461299c576000866000018281548110612957576129576132e7565b906000526020600020015490508087600001848154811061297a5761297a6132e7565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806129ad576129ad613372565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061071b565b600091505061071b565b606061071b6001600160a01b03831660145b60606000612a13836002613388565b612a1e9060026132cf565b67ffffffffffffffff811115612a3657612a36613047565b6040519080825280601f01601f191660200182016040528015612a60576020820181803683370190505b509050600360fc1b81600081518110612a7b57612a7b6132e7565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612aaa57612aaa6132e7565b60200101906001600160f81b031916908160001a9053506000612ace846002613388565b612ad99060016132cf565b90505b6001811115612b51576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612b0d57612b0d6132e7565b1a60f81b828281518110612b2357612b236132e7565b60200101906001600160f81b031916908160001a90535060049490941c93612b4a816133a7565b9050612adc565b5083156118925760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161084d565b612baa8282611899565b15610d5d57600082815260c9602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b612c10816127f4565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b612caf5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b606482015260840161084d565b600080846001600160a01b031684604051612cca91906133be565b600060405180830381855af49150503d8060008114612d05576040519150601f19603f3d011682016040523d82523d6000602084013e612d0a565b606091505b5091509150612d32828260405180606001604052806027815260200161360460279139612d3b565b95945050505050565b60608315612d4a575081611892565b6118928383815115612d5f5781518083602001fd5b8060405162461bcd60e51b815260040161084d9190612e68565b828054612d859061316b565b90600052602060002090601f016020900481019282612da75760008555612ded565b82601f10612dc057805160ff1916838001178555612ded565b82800160010185558215612ded579182015b82811115612ded578251825591602001919060010190612dd2565b50612df9929150612dfd565b5090565b5b80821115612df95760008155600101612dfe565b600060208284031215612e2457600080fd5b81356001600160e01b03198116811461189257600080fd5b60005b83811015612e57578181015183820152602001612e3f565b83811115611d205750506000910152565b6020815260008251806020840152612e87816040850160208701612e3c565b601f01601f19169190910160400192915050565b60008083601f840112612ead57600080fd5b50813567ffffffffffffffff811115612ec557600080fd5b602083019150836020828501011115612edd57600080fd5b9250929050565b80356001600160a01b0381168114612efb57600080fd5b919050565b600080600080600060608688031215612f1857600080fd5b853567ffffffffffffffff80821115612f3057600080fd5b612f3c89838a01612e9b565b90975095506020880135915080821115612f5557600080fd5b50612f6288828901612e9b565b9094509250612f75905060408701612ee4565b90509295509295909350565b60008060408385031215612f9457600080fd5b612f9d83612ee4565b946020939093013593505050565b600060208284031215612fbd57600080fd5b5035919050565b600080600060608486031215612fd957600080fd5b612fe284612ee4565b9250612ff060208501612ee4565b9150604084013590509250925092565b6000806040838503121561301357600080fd5b8235915061302360208401612ee4565b90509250929050565b60006020828403121561303e57600080fd5b61189282612ee4565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561307057600080fd5b61307983612ee4565b9150602083013567ffffffffffffffff8082111561309657600080fd5b818501915085601f8301126130aa57600080fd5b8135818111156130bc576130bc613047565b604051601f8201601f19908116603f011681019083821181831017156130e4576130e4613047565b816040528281528860208487010111156130fd57600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6000806040838503121561313257600080fd5b50508035926020909101359150565b6000806040838503121561315457600080fd5b61315d83612ee4565b915061302360208401612ee4565b600181811c9082168061317f57607f821691505b602082108114156131a057634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000828210156132665761326661323e565b500390565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6000602082840312156132c857600080fd5b5051919050565b600082198211156132e2576132e261323e565b500190565b634e487b7160e01b600052603260045260246000fd5b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613335816017850160208801612e3c565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613366816028840160208801612e3c565b01602801949350505050565b634e487b7160e01b600052603160045260246000fd5b60008160001904831182151516156133a2576133a261323e565b500290565b6000816133b6576133b661323e565b506000190190565b600082516133d0818460208701612e3c565b919091019291505056fe526573747269637461626c653a20556e61626c6520746f207472616e7366657220746f206f722066726f6d20616464726573736573206f6e207472616e73666572207265737472696374696f6e206c69737453616665416363657373436f6e74726f6c456e756d657261626c653a2043616e2774207265766f6b65206f722072656e6f756e636520726f6c65206f66207468652044656661756c742041646d696e207768656e207468657265206973206f6e6c79206f6e652072656d61696e696e67526573747269637461626c653a2055736572206e6f7420696e207472616e73666572207265737472696374696f6e206c6973744d696e7461626c65546f6b656e3a20436f6e7472616374206d757374206265206465706c6f796564207072696f7220746f20757067726164696e674d696e74416c6c6f63617465643a20556e61626c6520746f2061646a75737420746865206d696e7420616c6c6f636174696f6e20666f722061206e6f6e2d6d696e746572526573747269637461626c653a205573657220616c726561647920696e207472616e73666572207265737472696374696f6e206c6973744d696e7461626c65546f6b656e3a20546f6b656e2063616e6e6f74206265207472616e7366657272656420746f20746f6b656e20636f6e74726163744d696e7461626c65546f6b656e3a2041726974686d65746963206f766572666c6f77360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c65649f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a653616665416363657373436f6e74726f6c456e756d657261626c653a205573657220646f6573206e6f74206861766520726f6c65526573747269637461626c653a20556e61626c6520746f207265737472696374207472616e7366657273206f66203020616464726573734d696e7461626c65546f6b656e3a2041646d696e20616464726573732063616e6e6f742062652073657420746f20304d696e74416c6c6f63617465643a2041726974686d65746963206f766572666c6f774d696e74416c6c6f63617465643a20416d6f756e74206d757374206265206c657373207468616e206f7220657175616c20746f207468652063757272656e74206d696e7420616c6c6f636174696f6e20666f722061206d696e74657253616665416363657373436f6e74726f6c456e756d657261626c653a2044656661756c742041646d696e2063616e6e6f742072656e6f756e6365206f776e20726f6c65a2646970667358221220e4813d48d6796fc92db7da6d78ac27fdaa7eed2bc087b449b9815882a567d2e464736f6c63430008090033","optimization_enabled":true,"verified_twin_address_hash":null,"is_verified":true,"compiler_settings":{"evmVersion":"london","libraries":{},"metadata":{"bytecodeHash":"ipfs"},"optimizer":{"enabled":true,"runs":200},"remappings":[]},"optimization_runs":200,"sourcify_repo_url":"https://repo.sourcify.dev/contracts/partial_match/1/0x8aE9cb3d9095Da33555494110f567E3d974c6753/","decoded_constructor_args":null,"compiler_version":"0.8.9+commit.e5eed63a","is_verified_via_verifier_alliance":false,"verified_at":"2026-01-13T18:08:47.388453Z","implementations":[],"proxy_type":null,"external_libraries":[],"creation_bytecode":"0x60a0604052306080523480156200001557600080fd5b506200002062000026565b620000e8565b600054610100900460ff1615620000935760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff9081161015620000e6576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b6080516137db6200012060003960008181610d6c01528181610dac0152818161124d0152818161128d015261131c01526137db6000f3fe6080604052600436106102255760003560e01c806352d1902d116101235780639010d07c116100ab578063a9059cbb1161006f578063a9059cbb14610648578063ca15c87314610668578063d547741f14610688578063dd62ed3e146106a8578063e444f4d9146106c857600080fd5b80639010d07c146105be57806391d14854146105de57806395d89b41146105fe578063a217fddf14610613578063a457c2d71461062857600080fd5b806379cc6790116100f257806379cc6790146105345780637ade3ed714610554578063812d8430146105695780638456cb5914610589578063875cb2741461059e57600080fd5b806352d1902d146104af5780635c975abb146104c45780636387e222146104dd57806370a08231146104fd57600080fd5b806330c57e06116101b1578063395093511161017557806339509351146104275780633f4ba83a1461044757806340c10f191461045c57806342966c681461047c5780634f1ef2861461049c57600080fd5b806330c57e061461038b578063313ce567146103ab578063323ccaa0146103c757806336568abe146103e75780633659cfe61461040757600080fd5b806311d17dfd116101f857806311d17dfd146102c357806318160ddd146102fb57806323b872dd1461031b578063248a9ca31461033b5780632f2ff15d1461036b57600080fd5b806301ffc9a71461022a57806306fdde031461025f578063077f224a14610281578063095ea7b3146102a3575b600080fd5b34801561023657600080fd5b5061024a610245366004612e12565b6106f6565b60405190151581526020015b60405180910390f35b34801561026b57600080fd5b50610274610721565b6040516102569190612e68565b34801561028d57600080fd5b506102a161029c366004612f00565b6107b4565b005b3480156102af57600080fd5b5061024a6102be366004612f81565b6109e4565b3480156102cf57600080fd5b506102e36102de366004612fab565b610ace565b6040516001600160a01b039091168152602001610256565b34801561030757600080fd5b50610161545b604051908152602001610256565b34801561032757600080fd5b5061024a610336366004612fc4565b610adc565b34801561034757600080fd5b5061030d610356366004612fab565b600090815260c9602052604090206001015490565b34801561037757600080fd5b506102a1610386366004613000565b610c16565b34801561039757600080fd5b5061024a6103a636600461302c565b610c40565b3480156103b757600080fd5b5060405160128152602001610256565b3480156103d357600080fd5b506102a16103e236600461302c565b610c4e565b3480156103f357600080fd5b506102a1610402366004613000565b610d49565b34801561041357600080fd5b506102a161042236600461302c565b610d61565b34801561043357600080fd5b5061024a610442366004612f81565b610e41565b34801561045357600080fd5b506102a1610f83565b34801561046857600080fd5b506102a1610477366004612f81565b610f96565b34801561048857600080fd5b506102a1610497366004612fab565b611157565b6102a16104aa36600461305d565b611242565b3480156104bb57600080fd5b5061030d61130f565b3480156104d057600080fd5b5061012d5460ff1661024a565b3480156104e957600080fd5b506102a16104f836600461302c565b6113c2565b34801561050957600080fd5b5061030d61051836600461302c565b6001600160a01b0316600090815261015f602052604090205490565b34801561054057600080fd5b506102a161054f366004612f81565b61146e565b34801561056057600080fd5b5061030d6115c7565b34801561057557600080fd5b506102a1610584366004612f81565b6115d9565b34801561059557600080fd5b506102a161171b565b3480156105aa57600080fd5b506102a16105b9366004612f81565b61174d565b3480156105ca57600080fd5b506102e36105d936600461311f565b61187a565b3480156105ea57600080fd5b5061024a6105f9366004613000565b611899565b34801561060a57600080fd5b506102746118c4565b34801561061f57600080fd5b5061030d600081565b34801561063457600080fd5b5061024a610643366004612f81565b6118d4565b34801561065457600080fd5b5061024a610663366004612f81565b61191e565b34801561067457600080fd5b5061030d610683366004612fab565b6119fd565b34801561069457600080fd5b506102a16106a3366004613000565b611a14565b3480156106b457600080fd5b5061030d6106c3366004613141565b611a28565b3480156106d457600080fd5b5061030d6106e336600461302c565b6101c36020526000908152604090205481565b60006001600160e01b03198216635a05180f60e01b148061071b575061071b82611a54565b92915050565b606061016280546107319061316b565b80601f016020809104026020016040519081016040528092919081815260200182805461075d9061316b565b80156107aa5780601f1061077f576101008083540402835291602001916107aa565b820191906000526020600020905b81548152906001019060200180831161078d57829003601f168201915b5050505050905090565b600054610100900460ff16158080156107d45750600054600160ff909116105b806107ee5750303b1580156107ee575060005460ff166001145b6108565760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b6000805460ff191660011790558015610879576000805461ff0019166101001790555b60006001600160a01b0316826001600160a01b031614156040518060600160405280602f81526020016136b6602f9139906108c75760405162461bcd60e51b815260040161084d9190612e68565b5061093b86868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8a018190048102820181019092528881529250889150879081908401838280828437600092019190915250611a8992505050565b610943611aba565b61094b611aeb565b610953611aeb565b61095b611aeb565b610963611aeb565b61096b611aeb565b610973611aeb565b61097b611aeb565b610983611aeb565b61098b611aeb565b610996600083611b12565b80156109dc576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050505050565b60006109ee611b34565b336109f881610c40565b156040518060800160405280605281526020016133db6052913990610a305760405162461bcd60e51b815260040161084d9190612e68565b5083610a3b81610c40565b156040518060800160405280605281526020016133db6052913990610a735760405162461bcd60e51b815260040161084d9190612e68565b5032610a7e81610c40565b156040518060800160405280605281526020016133db6052913990610ab65760405162461bcd60e51b815260040161084d9190612e68565b50610ac2338787611b7b565b50600195945050505050565b600061071b61019183611ca0565b6000610ae6611b34565b33610af081610c40565b156040518060800160405280605281526020016133db6052913990610b285760405162461bcd60e51b815260040161084d9190612e68565b5084610b3381610c40565b156040518060800160405280605281526020016133db6052913990610b6b5760405162461bcd60e51b815260040161084d9190612e68565b5084610b7681610c40565b156040518060800160405280605281526020016133db6052913990610bae5760405162461bcd60e51b815260040161084d9190612e68565b5032610bb981610c40565b156040518060800160405280605281526020016133db6052913990610bf15760405162461bcd60e51b815260040161084d9190612e68565b50610bfd883388611cac565b610c08888888611d26565b506001979650505050505050565b600082815260c96020526040902060010154610c3181611ede565b610c3b8383611b12565b505050565b600061071b61019183611ee8565b7ffacce159e6968cd08fd9a4077ce70318710e6a3e2ca966e7a450e0609027b94e610c7881611ede565b60006001600160a01b0316826001600160a01b0316141560405180606001604052806037815260200161367f6037913990610cc65760405162461bcd60e51b815260040161084d9190612e68565b506000610cd561019184611f0a565b90508060405180606001604052806037815260200161354f6037913990610d0f5760405162461bcd60e51b815260040161084d9190612e68565b506040516001600160a01b038416907f31180c9d9d89196003f30f7b6643004f76e5feb146dbf10ae71764a88cfed5ef90600090a2505050565b610d538282611f1f565b610d5d828261205f565b5050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161415610daa5760405162461bcd60e51b815260040161084d906131a6565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610df36000805160206135e4833981519152546001600160a01b031690565b6001600160a01b031614610e195760405162461bcd60e51b815260040161084d906131f2565b610e22816120d9565b60408051600080825260208201909252610e3e91839190612148565b50565b6000610e4b611b34565b33610e5581610c40565b156040518060800160405280605281526020016133db6052913990610e8d5760405162461bcd60e51b815260040161084d9190612e68565b5083610e9881610c40565b156040518060800160405280605281526020016133db6052913990610ed05760405162461bcd60e51b815260040161084d9190612e68565b5032610edb81610c40565b156040518060800160405280605281526020016133db6052913990610f135760405162461bcd60e51b815260040161084d9190612e68565b506000610f203388611a28565b905085610f2f82600019613254565b10156040518060600160405280602281526020016135c26022913990610f685760405162461bcd60e51b815260040161084d9190612e68565b50610f763388888401611b7b565b5060019695505050505050565b6000610f8e81611ede565b610e3e6122c2565b610f9e611b34565b60008051602061362b833981519152610fb681611ede565b33610fc081610c40565b156040518060800160405280605281526020016133db6052913990610ff85760405162461bcd60e51b815260040161084d9190612e68565b508361100381610c40565b156040518060800160405280605281526020016133db605291399061103b5760405162461bcd60e51b815260040161084d9190612e68565b503261104681610c40565b156040518060800160405280605281526020016133db605291399061107e5760405162461bcd60e51b815260040161084d9190612e68565b506101c36000336001600160a01b03166001600160a01b03168152602001908152602001600020548511156040518060800160405280605c8152602001613707605c9139906110e05760405162461bcd60e51b815260040161084d9190612e68565b506110eb8686612315565b3360008181526101c360205260409020805487900390556001600160a01b038716906001600160a01b03167fab8530f87dc9b59234c4623bf917212bb2536d647574c8e7e5da92c2ede0c9f88760405161114791815260200190565b60405180910390a3505050505050565b61115f611b34565b60008051602061362b83398151915261117781611ede565b3361118181610c40565b156040518060800160405280605281526020016133db60529139906111b95760405162461bcd60e51b815260040161084d9190612e68565b50326111c481610c40565b156040518060800160405280605281526020016133db60529139906111fc5760405162461bcd60e51b815260040161084d9190612e68565b5061120733856123e4565b60405184815233907fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59060200160405180910390a250505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016141561128b5760405162461bcd60e51b815260040161084d906131a6565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166112d46000805160206135e4833981519152546001600160a01b031690565b6001600160a01b0316146112fa5760405162461bcd60e51b815260040161084d906131f2565b611303826120d9565b610d5d82826001612148565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146113af5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c0000000000000000606482015260840161084d565b506000805160206135e483398151915290565b7ffacce159e6968cd08fd9a4077ce70318710e6a3e2ca966e7a450e0609027b94e6113ec81611ede565b60006113fa61019184612527565b90508060405180606001604052806033815260200161349d60339139906114345760405162461bcd60e51b815260040161084d9190612e68565b506040516001600160a01b038416907f1c425db0931b7efc6b31b2491db198b75f20cfd6885f51c35f5f2a5495ef461990600090a2505050565b611476611b34565b60008051602061362b83398151915261148e81611ede565b8261149881610c40565b156040518060800160405280605281526020016133db60529139906114d05760405162461bcd60e51b815260040161084d9190612e68565b50336114db81610c40565b156040518060800160405280605281526020016133db60529139906115135760405162461bcd60e51b815260040161084d9190612e68565b503261151e81610c40565b156040518060800160405280605281526020016133db60529139906115565760405162461bcd60e51b815260040161084d9190612e68565b506001600160a01b038616331461157257611572863387611cac565b61157c86866123e4565b856001600160a01b03167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5866040516115b791815260200190565b60405180910390a2505050505050565b60006115d461019161253c565b905090565b6115e1611b34565b7f0cecf1b455fc79891fde338087a5bc58cc780c12baea2fdc499814ec6b42206a61160b81611ede565b8261162460008051602061362b83398151915282611899565b60405180608001604052806044815260200161350b604491399061165b5760405162461bcd60e51b815260040161084d9190612e68565b506001600160a01b03841660009081526101c36020526040902054839061168490600019613254565b10156040518060600160405280602281526020016136e560229139906116bd5760405162461bcd60e51b815260040161084d9190612e68565b506001600160a01b03841660008181526101c360209081526040918290208054870190819055915191825233917f1db181e6d9236a2b45d3527b5fd8ab150dd9b47b00b068f4c9b0b12d6c945589910160405180910390a350505050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a61174581611ede565b610e3e612546565b611755611b34565b7f0cecf1b455fc79891fde338087a5bc58cc780c12baea2fdc499814ec6b42206a61177f81611ede565b8261179860008051602061362b83398151915282611899565b60405180608001604052806044815260200161350b60449139906117cf5760405162461bcd60e51b815260040161084d9190612e68565b506001600160a01b03841660009081526101c3602052604081205484106117f757600061181c565b6001600160a01b03851660009081526101c3602052604090205461181c908590613254565b6001600160a01b03861660008181526101c360209081526040918290208490559051838152929350909133917f1db181e6d9236a2b45d3527b5fd8ab150dd9b47b00b068f4c9b0b12d6c945589910160405180910390a35050505050565b600082815260fb602052604081206118929083611ca0565b9392505050565b600091825260c9602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606061016380546107319061316b565b60006118de611b34565b60006118ea3385611a28565b905060008382116118fc576000611906565b6119068483613254565b9050611913338683611b7b565b506001949350505050565b6000611928611b34565b3361193281610c40565b156040518060800160405280605281526020016133db605291399061196a5760405162461bcd60e51b815260040161084d9190612e68565b508361197581610c40565b156040518060800160405280605281526020016133db60529139906119ad5760405162461bcd60e51b815260040161084d9190612e68565b50326119b881610c40565b156040518060800160405280605281526020016133db60529139906119f05760405162461bcd60e51b815260040161084d9190612e68565b5033610f76818888611d26565b600081815260fb6020526040812061071b9061253c565b611a1e8282611f1f565b610d5d8282612584565b6001600160a01b0391821660009081526101606020908152604080832093909416825291909152205490565b60006001600160e01b03198216637965db0b60e01b148061071b57506301ffc9a760e01b6001600160e01b031983161461071b565b600054610100900460ff16611ab05760405162461bcd60e51b815260040161084d9061326b565b610d5d82826125a9565b600054610100900460ff16611ae15760405162461bcd60e51b815260040161084d9061326b565b611ae96125f9565b565b600054610100900460ff16611ae95760405162461bcd60e51b815260040161084d9061326b565b611b1c828261262d565b600082815260fb60205260409020610c3b9082611f0a565b61012d5460ff1615611ae95760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161084d565b6001600160a01b038316611bdd5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161084d565b6001600160a01b038216611c3e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161084d565b6001600160a01b038381166000818152610160602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600061189283836126b3565b6000611cb88484611a28565b90506000198114611d205781811015611d135760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161084d565b611d208484848403611b7b565b50505050565b6001600160a01b038316611d8a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161084d565b6001600160a01b038216611dec5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161084d565b611df78383836126dd565b6001600160a01b038316600090815261015f602052604090205481811015611e705760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161084d565b6001600160a01b03808516600081815261015f602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611ed19086815260200190565b60405180910390a3611d20565b610e3e813361272a565b6001600160a01b03811660009081526001830160205260408120541515611892565b6000611892836001600160a01b038416612783565b611f298282611899565b60405180606001604052806034815260200161364b6034913990611f605760405162461bcd60e51b815260040161084d9190612e68565b5060008051602061362b833981519152821415611fc8576001600160a01b03811660008181526101c3602090815260408083208390555191825233917f1db181e6d9236a2b45d3527b5fd8ab150dd9b47b00b068f4c9b0b12d6c945589910160405180910390a35b81610d5d576001600160a01b038116336001600160a01b03161415604051806080016040528060438152602001613763604391399061201a5760405162461bcd60e51b815260040161084d9190612e68565b50600161202760006119fd565b116040518060a001604052806070815260200161342d6070913990610c3b5760405162461bcd60e51b815260040161084d9190612e68565b6001600160a01b03811633146120cf5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161084d565b610d5d82826127d2565b7f189ab7a9244df0848122154315af71fe140f3db0fe014031783b0946b8c9d2e361210381611ede565b6000826001600160a01b03163b116040518060600160405280603b81526020016134d0603b913990610c3b5760405162461bcd60e51b815260040161084d9190612e68565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff161561217b57610c3b836127f4565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b815260040160206040518083038186803b1580156121b457600080fd5b505afa9250505080156121e4575060408051601f3d908101601f191682019092526121e1918101906132b6565b60015b6122475760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b606482015260840161084d565b6000805160206135e483398151915281146122b65760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b606482015260840161084d565b50610c3b838383612890565b6122ca6128b5565b61012d805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b03821661236b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161084d565b612377600083836126dd565b80610161600082825461238a91906132cf565b90915550506001600160a01b038216600081815261015f60209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b0382166124445760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161084d565b612450826000836126dd565b6001600160a01b038216600090815261015f6020526040902054818110156124c55760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161084d565b6001600160a01b038316600081815261015f60209081526040808320868603905561016180548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6000611892836001600160a01b0384166128ff565b600061071b825490565b61254e611b34565b61012d805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586122f83390565b600082815260c9602052604090206001015461259f81611ede565b610c3b83836127d2565b600054610100900460ff166125d05760405162461bcd60e51b815260040161084d9061326b565b81516125e490610162906020850190612d79565b508051610c3b90610163906020840190612d79565b600054610100900460ff166126205760405162461bcd60e51b815260040161084d9061326b565b61012d805460ff19169055565b6126378282611899565b610d5d57600082815260c9602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561266f3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008260000182815481106126ca576126ca6132e7565b9060005260206000200154905092915050565b306001600160a01b0316826001600160a01b031614156040518060600160405280603c8152602001613586603c913990611d205760405162461bcd60e51b815260040161084d9190612e68565b6127348282611899565b610d5d57612741816129f2565b61274c836020612a04565b60405160200161275d9291906132fd565b60408051601f198184030181529082905262461bcd60e51b825261084d91600401612e68565b60008181526001830160205260408120546127ca5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561071b565b50600061071b565b6127dc8282612ba0565b600082815260fb60205260409020610c3b9082612527565b6001600160a01b0381163b6128615760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b606482015260840161084d565b6000805160206135e483398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b61289983612c07565b6000825111806128a65750805b15610c3b57611d208383612c47565b61012d5460ff16611ae95760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161084d565b600081815260018301602052604081205480156129e8576000612923600183613254565b855490915060009061293790600190613254565b905081811461299c576000866000018281548110612957576129576132e7565b906000526020600020015490508087600001848154811061297a5761297a6132e7565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806129ad576129ad613372565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061071b565b600091505061071b565b606061071b6001600160a01b03831660145b60606000612a13836002613388565b612a1e9060026132cf565b67ffffffffffffffff811115612a3657612a36613047565b6040519080825280601f01601f191660200182016040528015612a60576020820181803683370190505b509050600360fc1b81600081518110612a7b57612a7b6132e7565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612aaa57612aaa6132e7565b60200101906001600160f81b031916908160001a9053506000612ace846002613388565b612ad99060016132cf565b90505b6001811115612b51576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612b0d57612b0d6132e7565b1a60f81b828281518110612b2357612b236132e7565b60200101906001600160f81b031916908160001a90535060049490941c93612b4a816133a7565b9050612adc565b5083156118925760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161084d565b612baa8282611899565b15610d5d57600082815260c9602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b612c10816127f4565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b612caf5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b606482015260840161084d565b600080846001600160a01b031684604051612cca91906133be565b600060405180830381855af49150503d8060008114612d05576040519150601f19603f3d011682016040523d82523d6000602084013e612d0a565b606091505b5091509150612d32828260405180606001604052806027815260200161360460279139612d3b565b95945050505050565b60608315612d4a575081611892565b6118928383815115612d5f5781518083602001fd5b8060405162461bcd60e51b815260040161084d9190612e68565b828054612d859061316b565b90600052602060002090601f016020900481019282612da75760008555612ded565b82601f10612dc057805160ff1916838001178555612ded565b82800160010185558215612ded579182015b82811115612ded578251825591602001919060010190612dd2565b50612df9929150612dfd565b5090565b5b80821115612df95760008155600101612dfe565b600060208284031215612e2457600080fd5b81356001600160e01b03198116811461189257600080fd5b60005b83811015612e57578181015183820152602001612e3f565b83811115611d205750506000910152565b6020815260008251806020840152612e87816040850160208701612e3c565b601f01601f19169190910160400192915050565b60008083601f840112612ead57600080fd5b50813567ffffffffffffffff811115612ec557600080fd5b602083019150836020828501011115612edd57600080fd5b9250929050565b80356001600160a01b0381168114612efb57600080fd5b919050565b600080600080600060608688031215612f1857600080fd5b853567ffffffffffffffff80821115612f3057600080fd5b612f3c89838a01612e9b565b90975095506020880135915080821115612f5557600080fd5b50612f6288828901612e9b565b9094509250612f75905060408701612ee4565b90509295509295909350565b60008060408385031215612f9457600080fd5b612f9d83612ee4565b946020939093013593505050565b600060208284031215612fbd57600080fd5b5035919050565b600080600060608486031215612fd957600080fd5b612fe284612ee4565b9250612ff060208501612ee4565b9150604084013590509250925092565b6000806040838503121561301357600080fd5b8235915061302360208401612ee4565b90509250929050565b60006020828403121561303e57600080fd5b61189282612ee4565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561307057600080fd5b61307983612ee4565b9150602083013567ffffffffffffffff8082111561309657600080fd5b818501915085601f8301126130aa57600080fd5b8135818111156130bc576130bc613047565b604051601f8201601f19908116603f011681019083821181831017156130e4576130e4613047565b816040528281528860208487010111156130fd57600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6000806040838503121561313257600080fd5b50508035926020909101359150565b6000806040838503121561315457600080fd5b61315d83612ee4565b915061302360208401612ee4565b600181811c9082168061317f57607f821691505b602082108114156131a057634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000828210156132665761326661323e565b500390565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6000602082840312156132c857600080fd5b5051919050565b600082198211156132e2576132e261323e565b500190565b634e487b7160e01b600052603260045260246000fd5b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613335816017850160208801612e3c565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613366816028840160208801612e3c565b01602801949350505050565b634e487b7160e01b600052603160045260246000fd5b60008160001904831182151516156133a2576133a261323e565b500290565b6000816133b6576133b661323e565b506000190190565b600082516133d0818460208701612e3c565b919091019291505056fe526573747269637461626c653a20556e61626c6520746f207472616e7366657220746f206f722066726f6d20616464726573736573206f6e207472616e73666572207265737472696374696f6e206c69737453616665416363657373436f6e74726f6c456e756d657261626c653a2043616e2774207265766f6b65206f722072656e6f756e636520726f6c65206f66207468652044656661756c742041646d696e207768656e207468657265206973206f6e6c79206f6e652072656d61696e696e67526573747269637461626c653a2055736572206e6f7420696e207472616e73666572207265737472696374696f6e206c6973744d696e7461626c65546f6b656e3a20436f6e7472616374206d757374206265206465706c6f796564207072696f7220746f20757067726164696e674d696e74416c6c6f63617465643a20556e61626c6520746f2061646a75737420746865206d696e7420616c6c6f636174696f6e20666f722061206e6f6e2d6d696e746572526573747269637461626c653a205573657220616c726561647920696e207472616e73666572207265737472696374696f6e206c6973744d696e7461626c65546f6b656e3a20546f6b656e2063616e6e6f74206265207472616e7366657272656420746f20746f6b656e20636f6e74726163744d696e7461626c65546f6b656e3a2041726974686d65746963206f766572666c6f77360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c65649f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a653616665416363657373436f6e74726f6c456e756d657261626c653a205573657220646f6573206e6f74206861766520726f6c65526573747269637461626c653a20556e61626c6520746f207265737472696374207472616e7366657273206f66203020616464726573734d696e7461626c65546f6b656e3a2041646d696e20616464726573732063616e6e6f742062652073657420746f20304d696e74416c6c6f63617465643a2041726974686d65746963206f766572666c6f774d696e74416c6c6f63617465643a20416d6f756e74206d757374206265206c657373207468616e206f7220657175616c20746f207468652063757272656e74206d696e7420616c6c6f636174696f6e20666f722061206d696e74657253616665416363657373436f6e74726f6c456e756d657261626c653a2044656661756c742041646d696e2063616e6e6f742072656e6f756e6365206f776e20726f6c65a2646970667358221220e4813d48d6796fc92db7da6d78ac27fdaa7eed2bc087b449b9815882a567d2e464736f6c63430008090033","name":"MintableToken","is_blueprint":false,"license_type":"none","is_fully_verified":false,"is_verified_via_eth_bytecode_db":true,"language":"solidity","evm_version":"london","can_be_visualized_via_sol2uml":true,"is_verified_via_sourcify":true,"additional_sources":[],"certified":false,"conflicting_implementations":null,"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":"burner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"mintAllocator","type":"address"},{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"allocation","type":"uint256"}],"name":"MintAllocationChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":true,"internalType":"address","name":"account","type":"address"}],"name":"TransferRestrictionImposed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"TransferRestrictionRemoved","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":[{"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":"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":[],"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":"minter","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"decreaseMintAllocation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getTransferRestriction","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTransferRestrictionCount","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":[{"internalType":"address","name":"minter","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"increaseMintAllocation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_admin","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isTransferRestrictionImposed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"address","name":"","type":"address"}],"name":"mintAllocation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"restrictedAddress","type":"address"}],"name":"restrictTransfers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","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":"restrictedAddress","type":"address"}],"name":"unrestrictTransfers","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"}],"is_changed_bytecode":false,"is_partially_verified":true,"constructor_args":null}