Source Code
Overview
APE Balance
More Info
ContractCreator
TokenTracker
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Mint Primary | 17123990 | 9 days ago | IN | 1 APE | 0.00000148 |
Latest 1 internal transaction
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
17123990 | 9 days ago | 1 APE |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
ApeColorNFT
Compiler Version
v0.8.29+commit.ab55807c
Contract Source Code (Solidity)
/** *Submitted for verification at curtis.apescan.io on 2025-04-05 */ // Sources flattened with hardhat v2.22.19 https://hardhat.org // SPDX-License-Identifier: MIT // File @openzeppelin/contracts/utils/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } } // File @openzeppelin/contracts/access/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File @openzeppelin/contracts/interfaces/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC-20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC-721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC-1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); } // File @openzeppelin/contracts/utils/introspection/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[ERC]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File @openzeppelin/contracts/token/ERC721/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.20; /** * @dev Required interface of an ERC-721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC-721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or * {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC-721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the address zero. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); } // File @openzeppelin/contracts/token/ERC721/extensions/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.20; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } // File @openzeppelin/contracts/token/ERC721/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.20; /** * @title ERC-721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC-721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be * reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File @openzeppelin/contracts/token/ERC721/utils/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/utils/ERC721Utils.sol) pragma solidity ^0.8.20; /** * @dev Library that provide common ERC-721 utility functions. * * See https://eips.ethereum.org/EIPS/eip-721[ERC-721]. * * _Available since v5.1._ */ library ERC721Utils { /** * @dev Performs an acceptance check for the provided `operator` by calling {IERC721-onERC721Received} * on the `to` address. The `operator` is generally the address that initiated the token transfer (i.e. `msg.sender`). * * The acceptance call is not executed and treated as a no-op if the target address doesn't contain code (i.e. an EOA). * Otherwise, the recipient must implement {IERC721Receiver-onERC721Received} and return the acceptance magic value to accept * the transfer. */ function checkOnERC721Received( address operator, address from, address to, uint256 tokenId, bytes memory data ) internal { if (to.code.length > 0) { try IERC721Receiver(to).onERC721Received(operator, from, tokenId, data) returns (bytes4 retval) { if (retval != IERC721Receiver.onERC721Received.selector) { // Token rejected revert IERC721Errors.ERC721InvalidReceiver(to); } } catch (bytes memory reason) { if (reason.length == 0) { // non-IERC721Receiver implementer revert IERC721Errors.ERC721InvalidReceiver(to); } else { assembly ("memory-safe") { revert(add(32, reason), mload(reason)) } } } } } } // File @openzeppelin/contracts/utils/introspection/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/ERC165.sol) pragma solidity ^0.8.20; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC-165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File @openzeppelin/contracts/utils/math/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol) // This file was procedurally generated from scripts/generate/templates/SafeCast.js. pragma solidity ^0.8.20; /** * @dev Wrappers over Solidity's uintXX/intXX/bool casting operators with added overflow * checks. * * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can * easily result in undesired exploitation or bugs, since developers usually * assume that overflows raise errors. `SafeCast` restores this intuition by * reverting the transaction when such an operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeCast { /** * @dev Value doesn't fit in an uint of `bits` size. */ error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value); /** * @dev An int value doesn't fit in an uint of `bits` size. */ error SafeCastOverflowedIntToUint(int256 value); /** * @dev Value doesn't fit in an int of `bits` size. */ error SafeCastOverflowedIntDowncast(uint8 bits, int256 value); /** * @dev An uint value doesn't fit in an int of `bits` size. */ error SafeCastOverflowedUintToInt(uint256 value); /** * @dev Returns the downcasted uint248 from uint256, reverting on * overflow (when the input is greater than largest uint248). * * Counterpart to Solidity's `uint248` operator. * * Requirements: * * - input must fit into 248 bits */ function toUint248(uint256 value) internal pure returns (uint248) { if (value > type(uint248).max) { revert SafeCastOverflowedUintDowncast(248, value); } return uint248(value); } /** * @dev Returns the downcasted uint240 from uint256, reverting on * overflow (when the input is greater than largest uint240). * * Counterpart to Solidity's `uint240` operator. * * Requirements: * * - input must fit into 240 bits */ function toUint240(uint256 value) internal pure returns (uint240) { if (value > type(uint240).max) { revert SafeCastOverflowedUintDowncast(240, value); } return uint240(value); } /** * @dev Returns the downcasted uint232 from uint256, reverting on * overflow (when the input is greater than largest uint232). * * Counterpart to Solidity's `uint232` operator. * * Requirements: * * - input must fit into 232 bits */ function toUint232(uint256 value) internal pure returns (uint232) { if (value > type(uint232).max) { revert SafeCastOverflowedUintDowncast(232, value); } return uint232(value); } /** * @dev Returns the downcasted uint224 from uint256, reverting on * overflow (when the input is greater than largest uint224). * * Counterpart to Solidity's `uint224` operator. * * Requirements: * * - input must fit into 224 bits */ function toUint224(uint256 value) internal pure returns (uint224) { if (value > type(uint224).max) { revert SafeCastOverflowedUintDowncast(224, value); } return uint224(value); } /** * @dev Returns the downcasted uint216 from uint256, reverting on * overflow (when the input is greater than largest uint216). * * Counterpart to Solidity's `uint216` operator. * * Requirements: * * - input must fit into 216 bits */ function toUint216(uint256 value) internal pure returns (uint216) { if (value > type(uint216).max) { revert SafeCastOverflowedUintDowncast(216, value); } return uint216(value); } /** * @dev Returns the downcasted uint208 from uint256, reverting on * overflow (when the input is greater than largest uint208). * * Counterpart to Solidity's `uint208` operator. * * Requirements: * * - input must fit into 208 bits */ function toUint208(uint256 value) internal pure returns (uint208) { if (value > type(uint208).max) { revert SafeCastOverflowedUintDowncast(208, value); } return uint208(value); } /** * @dev Returns the downcasted uint200 from uint256, reverting on * overflow (when the input is greater than largest uint200). * * Counterpart to Solidity's `uint200` operator. * * Requirements: * * - input must fit into 200 bits */ function toUint200(uint256 value) internal pure returns (uint200) { if (value > type(uint200).max) { revert SafeCastOverflowedUintDowncast(200, value); } return uint200(value); } /** * @dev Returns the downcasted uint192 from uint256, reverting on * overflow (when the input is greater than largest uint192). * * Counterpart to Solidity's `uint192` operator. * * Requirements: * * - input must fit into 192 bits */ function toUint192(uint256 value) internal pure returns (uint192) { if (value > type(uint192).max) { revert SafeCastOverflowedUintDowncast(192, value); } return uint192(value); } /** * @dev Returns the downcasted uint184 from uint256, reverting on * overflow (when the input is greater than largest uint184). * * Counterpart to Solidity's `uint184` operator. * * Requirements: * * - input must fit into 184 bits */ function toUint184(uint256 value) internal pure returns (uint184) { if (value > type(uint184).max) { revert SafeCastOverflowedUintDowncast(184, value); } return uint184(value); } /** * @dev Returns the downcasted uint176 from uint256, reverting on * overflow (when the input is greater than largest uint176). * * Counterpart to Solidity's `uint176` operator. * * Requirements: * * - input must fit into 176 bits */ function toUint176(uint256 value) internal pure returns (uint176) { if (value > type(uint176).max) { revert SafeCastOverflowedUintDowncast(176, value); } return uint176(value); } /** * @dev Returns the downcasted uint168 from uint256, reverting on * overflow (when the input is greater than largest uint168). * * Counterpart to Solidity's `uint168` operator. * * Requirements: * * - input must fit into 168 bits */ function toUint168(uint256 value) internal pure returns (uint168) { if (value > type(uint168).max) { revert SafeCastOverflowedUintDowncast(168, value); } return uint168(value); } /** * @dev Returns the downcasted uint160 from uint256, reverting on * overflow (when the input is greater than largest uint160). * * Counterpart to Solidity's `uint160` operator. * * Requirements: * * - input must fit into 160 bits */ function toUint160(uint256 value) internal pure returns (uint160) { if (value > type(uint160).max) { revert SafeCastOverflowedUintDowncast(160, value); } return uint160(value); } /** * @dev Returns the downcasted uint152 from uint256, reverting on * overflow (when the input is greater than largest uint152). * * Counterpart to Solidity's `uint152` operator. * * Requirements: * * - input must fit into 152 bits */ function toUint152(uint256 value) internal pure returns (uint152) { if (value > type(uint152).max) { revert SafeCastOverflowedUintDowncast(152, value); } return uint152(value); } /** * @dev Returns the downcasted uint144 from uint256, reverting on * overflow (when the input is greater than largest uint144). * * Counterpart to Solidity's `uint144` operator. * * Requirements: * * - input must fit into 144 bits */ function toUint144(uint256 value) internal pure returns (uint144) { if (value > type(uint144).max) { revert SafeCastOverflowedUintDowncast(144, value); } return uint144(value); } /** * @dev Returns the downcasted uint136 from uint256, reverting on * overflow (when the input is greater than largest uint136). * * Counterpart to Solidity's `uint136` operator. * * Requirements: * * - input must fit into 136 bits */ function toUint136(uint256 value) internal pure returns (uint136) { if (value > type(uint136).max) { revert SafeCastOverflowedUintDowncast(136, value); } return uint136(value); } /** * @dev Returns the downcasted uint128 from uint256, reverting on * overflow (when the input is greater than largest uint128). * * Counterpart to Solidity's `uint128` operator. * * Requirements: * * - input must fit into 128 bits */ function toUint128(uint256 value) internal pure returns (uint128) { if (value > type(uint128).max) { revert SafeCastOverflowedUintDowncast(128, value); } return uint128(value); } /** * @dev Returns the downcasted uint120 from uint256, reverting on * overflow (when the input is greater than largest uint120). * * Counterpart to Solidity's `uint120` operator. * * Requirements: * * - input must fit into 120 bits */ function toUint120(uint256 value) internal pure returns (uint120) { if (value > type(uint120).max) { revert SafeCastOverflowedUintDowncast(120, value); } return uint120(value); } /** * @dev Returns the downcasted uint112 from uint256, reverting on * overflow (when the input is greater than largest uint112). * * Counterpart to Solidity's `uint112` operator. * * Requirements: * * - input must fit into 112 bits */ function toUint112(uint256 value) internal pure returns (uint112) { if (value > type(uint112).max) { revert SafeCastOverflowedUintDowncast(112, value); } return uint112(value); } /** * @dev Returns the downcasted uint104 from uint256, reverting on * overflow (when the input is greater than largest uint104). * * Counterpart to Solidity's `uint104` operator. * * Requirements: * * - input must fit into 104 bits */ function toUint104(uint256 value) internal pure returns (uint104) { if (value > type(uint104).max) { revert SafeCastOverflowedUintDowncast(104, value); } return uint104(value); } /** * @dev Returns the downcasted uint96 from uint256, reverting on * overflow (when the input is greater than largest uint96). * * Counterpart to Solidity's `uint96` operator. * * Requirements: * * - input must fit into 96 bits */ function toUint96(uint256 value) internal pure returns (uint96) { if (value > type(uint96).max) { revert SafeCastOverflowedUintDowncast(96, value); } return uint96(value); } /** * @dev Returns the downcasted uint88 from uint256, reverting on * overflow (when the input is greater than largest uint88). * * Counterpart to Solidity's `uint88` operator. * * Requirements: * * - input must fit into 88 bits */ function toUint88(uint256 value) internal pure returns (uint88) { if (value > type(uint88).max) { revert SafeCastOverflowedUintDowncast(88, value); } return uint88(value); } /** * @dev Returns the downcasted uint80 from uint256, reverting on * overflow (when the input is greater than largest uint80). * * Counterpart to Solidity's `uint80` operator. * * Requirements: * * - input must fit into 80 bits */ function toUint80(uint256 value) internal pure returns (uint80) { if (value > type(uint80).max) { revert SafeCastOverflowedUintDowncast(80, value); } return uint80(value); } /** * @dev Returns the downcasted uint72 from uint256, reverting on * overflow (when the input is greater than largest uint72). * * Counterpart to Solidity's `uint72` operator. * * Requirements: * * - input must fit into 72 bits */ function toUint72(uint256 value) internal pure returns (uint72) { if (value > type(uint72).max) { revert SafeCastOverflowedUintDowncast(72, value); } return uint72(value); } /** * @dev Returns the downcasted uint64 from uint256, reverting on * overflow (when the input is greater than largest uint64). * * Counterpart to Solidity's `uint64` operator. * * Requirements: * * - input must fit into 64 bits */ function toUint64(uint256 value) internal pure returns (uint64) { if (value > type(uint64).max) { revert SafeCastOverflowedUintDowncast(64, value); } return uint64(value); } /** * @dev Returns the downcasted uint56 from uint256, reverting on * overflow (when the input is greater than largest uint56). * * Counterpart to Solidity's `uint56` operator. * * Requirements: * * - input must fit into 56 bits */ function toUint56(uint256 value) internal pure returns (uint56) { if (value > type(uint56).max) { revert SafeCastOverflowedUintDowncast(56, value); } return uint56(value); } /** * @dev Returns the downcasted uint48 from uint256, reverting on * overflow (when the input is greater than largest uint48). * * Counterpart to Solidity's `uint48` operator. * * Requirements: * * - input must fit into 48 bits */ function toUint48(uint256 value) internal pure returns (uint48) { if (value > type(uint48).max) { revert SafeCastOverflowedUintDowncast(48, value); } return uint48(value); } /** * @dev Returns the downcasted uint40 from uint256, reverting on * overflow (when the input is greater than largest uint40). * * Counterpart to Solidity's `uint40` operator. * * Requirements: * * - input must fit into 40 bits */ function toUint40(uint256 value) internal pure returns (uint40) { if (value > type(uint40).max) { revert SafeCastOverflowedUintDowncast(40, value); } return uint40(value); } /** * @dev Returns the downcasted uint32 from uint256, reverting on * overflow (when the input is greater than largest uint32). * * Counterpart to Solidity's `uint32` operator. * * Requirements: * * - input must fit into 32 bits */ function toUint32(uint256 value) internal pure returns (uint32) { if (value > type(uint32).max) { revert SafeCastOverflowedUintDowncast(32, value); } return uint32(value); } /** * @dev Returns the downcasted uint24 from uint256, reverting on * overflow (when the input is greater than largest uint24). * * Counterpart to Solidity's `uint24` operator. * * Requirements: * * - input must fit into 24 bits */ function toUint24(uint256 value) internal pure returns (uint24) { if (value > type(uint24).max) { revert SafeCastOverflowedUintDowncast(24, value); } return uint24(value); } /** * @dev Returns the downcasted uint16 from uint256, reverting on * overflow (when the input is greater than largest uint16). * * Counterpart to Solidity's `uint16` operator. * * Requirements: * * - input must fit into 16 bits */ function toUint16(uint256 value) internal pure returns (uint16) { if (value > type(uint16).max) { revert SafeCastOverflowedUintDowncast(16, value); } return uint16(value); } /** * @dev Returns the downcasted uint8 from uint256, reverting on * overflow (when the input is greater than largest uint8). * * Counterpart to Solidity's `uint8` operator. * * Requirements: * * - input must fit into 8 bits */ function toUint8(uint256 value) internal pure returns (uint8) { if (value > type(uint8).max) { revert SafeCastOverflowedUintDowncast(8, value); } return uint8(value); } /** * @dev Converts a signed int256 into an unsigned uint256. * * Requirements: * * - input must be greater than or equal to 0. */ function toUint256(int256 value) internal pure returns (uint256) { if (value < 0) { revert SafeCastOverflowedIntToUint(value); } return uint256(value); } /** * @dev Returns the downcasted int248 from int256, reverting on * overflow (when the input is less than smallest int248 or * greater than largest int248). * * Counterpart to Solidity's `int248` operator. * * Requirements: * * - input must fit into 248 bits */ function toInt248(int256 value) internal pure returns (int248 downcasted) { downcasted = int248(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(248, value); } } /** * @dev Returns the downcasted int240 from int256, reverting on * overflow (when the input is less than smallest int240 or * greater than largest int240). * * Counterpart to Solidity's `int240` operator. * * Requirements: * * - input must fit into 240 bits */ function toInt240(int256 value) internal pure returns (int240 downcasted) { downcasted = int240(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(240, value); } } /** * @dev Returns the downcasted int232 from int256, reverting on * overflow (when the input is less than smallest int232 or * greater than largest int232). * * Counterpart to Solidity's `int232` operator. * * Requirements: * * - input must fit into 232 bits */ function toInt232(int256 value) internal pure returns (int232 downcasted) { downcasted = int232(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(232, value); } } /** * @dev Returns the downcasted int224 from int256, reverting on * overflow (when the input is less than smallest int224 or * greater than largest int224). * * Counterpart to Solidity's `int224` operator. * * Requirements: * * - input must fit into 224 bits */ function toInt224(int256 value) internal pure returns (int224 downcasted) { downcasted = int224(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(224, value); } } /** * @dev Returns the downcasted int216 from int256, reverting on * overflow (when the input is less than smallest int216 or * greater than largest int216). * * Counterpart to Solidity's `int216` operator. * * Requirements: * * - input must fit into 216 bits */ function toInt216(int256 value) internal pure returns (int216 downcasted) { downcasted = int216(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(216, value); } } /** * @dev Returns the downcasted int208 from int256, reverting on * overflow (when the input is less than smallest int208 or * greater than largest int208). * * Counterpart to Solidity's `int208` operator. * * Requirements: * * - input must fit into 208 bits */ function toInt208(int256 value) internal pure returns (int208 downcasted) { downcasted = int208(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(208, value); } } /** * @dev Returns the downcasted int200 from int256, reverting on * overflow (when the input is less than smallest int200 or * greater than largest int200). * * Counterpart to Solidity's `int200` operator. * * Requirements: * * - input must fit into 200 bits */ function toInt200(int256 value) internal pure returns (int200 downcasted) { downcasted = int200(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(200, value); } } /** * @dev Returns the downcasted int192 from int256, reverting on * overflow (when the input is less than smallest int192 or * greater than largest int192). * * Counterpart to Solidity's `int192` operator. * * Requirements: * * - input must fit into 192 bits */ function toInt192(int256 value) internal pure returns (int192 downcasted) { downcasted = int192(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(192, value); } } /** * @dev Returns the downcasted int184 from int256, reverting on * overflow (when the input is less than smallest int184 or * greater than largest int184). * * Counterpart to Solidity's `int184` operator. * * Requirements: * * - input must fit into 184 bits */ function toInt184(int256 value) internal pure returns (int184 downcasted) { downcasted = int184(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(184, value); } } /** * @dev Returns the downcasted int176 from int256, reverting on * overflow (when the input is less than smallest int176 or * greater than largest int176). * * Counterpart to Solidity's `int176` operator. * * Requirements: * * - input must fit into 176 bits */ function toInt176(int256 value) internal pure returns (int176 downcasted) { downcasted = int176(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(176, value); } } /** * @dev Returns the downcasted int168 from int256, reverting on * overflow (when the input is less than smallest int168 or * greater than largest int168). * * Counterpart to Solidity's `int168` operator. * * Requirements: * * - input must fit into 168 bits */ function toInt168(int256 value) internal pure returns (int168 downcasted) { downcasted = int168(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(168, value); } } /** * @dev Returns the downcasted int160 from int256, reverting on * overflow (when the input is less than smallest int160 or * greater than largest int160). * * Counterpart to Solidity's `int160` operator. * * Requirements: * * - input must fit into 160 bits */ function toInt160(int256 value) internal pure returns (int160 downcasted) { downcasted = int160(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(160, value); } } /** * @dev Returns the downcasted int152 from int256, reverting on * overflow (when the input is less than smallest int152 or * greater than largest int152). * * Counterpart to Solidity's `int152` operator. * * Requirements: * * - input must fit into 152 bits */ function toInt152(int256 value) internal pure returns (int152 downcasted) { downcasted = int152(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(152, value); } } /** * @dev Returns the downcasted int144 from int256, reverting on * overflow (when the input is less than smallest int144 or * greater than largest int144). * * Counterpart to Solidity's `int144` operator. * * Requirements: * * - input must fit into 144 bits */ function toInt144(int256 value) internal pure returns (int144 downcasted) { downcasted = int144(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(144, value); } } /** * @dev Returns the downcasted int136 from int256, reverting on * overflow (when the input is less than smallest int136 or * greater than largest int136). * * Counterpart to Solidity's `int136` operator. * * Requirements: * * - input must fit into 136 bits */ function toInt136(int256 value) internal pure returns (int136 downcasted) { downcasted = int136(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(136, value); } } /** * @dev Returns the downcasted int128 from int256, reverting on * overflow (when the input is less than smallest int128 or * greater than largest int128). * * Counterpart to Solidity's `int128` operator. * * Requirements: * * - input must fit into 128 bits */ function toInt128(int256 value) internal pure returns (int128 downcasted) { downcasted = int128(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(128, value); } } /** * @dev Returns the downcasted int120 from int256, reverting on * overflow (when the input is less than smallest int120 or * greater than largest int120). * * Counterpart to Solidity's `int120` operator. * * Requirements: * * - input must fit into 120 bits */ function toInt120(int256 value) internal pure returns (int120 downcasted) { downcasted = int120(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(120, value); } } /** * @dev Returns the downcasted int112 from int256, reverting on * overflow (when the input is less than smallest int112 or * greater than largest int112). * * Counterpart to Solidity's `int112` operator. * * Requirements: * * - input must fit into 112 bits */ function toInt112(int256 value) internal pure returns (int112 downcasted) { downcasted = int112(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(112, value); } } /** * @dev Returns the downcasted int104 from int256, reverting on * overflow (when the input is less than smallest int104 or * greater than largest int104). * * Counterpart to Solidity's `int104` operator. * * Requirements: * * - input must fit into 104 bits */ function toInt104(int256 value) internal pure returns (int104 downcasted) { downcasted = int104(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(104, value); } } /** * @dev Returns the downcasted int96 from int256, reverting on * overflow (when the input is less than smallest int96 or * greater than largest int96). * * Counterpart to Solidity's `int96` operator. * * Requirements: * * - input must fit into 96 bits */ function toInt96(int256 value) internal pure returns (int96 downcasted) { downcasted = int96(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(96, value); } } /** * @dev Returns the downcasted int88 from int256, reverting on * overflow (when the input is less than smallest int88 or * greater than largest int88). * * Counterpart to Solidity's `int88` operator. * * Requirements: * * - input must fit into 88 bits */ function toInt88(int256 value) internal pure returns (int88 downcasted) { downcasted = int88(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(88, value); } } /** * @dev Returns the downcasted int80 from int256, reverting on * overflow (when the input is less than smallest int80 or * greater than largest int80). * * Counterpart to Solidity's `int80` operator. * * Requirements: * * - input must fit into 80 bits */ function toInt80(int256 value) internal pure returns (int80 downcasted) { downcasted = int80(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(80, value); } } /** * @dev Returns the downcasted int72 from int256, reverting on * overflow (when the input is less than smallest int72 or * greater than largest int72). * * Counterpart to Solidity's `int72` operator. * * Requirements: * * - input must fit into 72 bits */ function toInt72(int256 value) internal pure returns (int72 downcasted) { downcasted = int72(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(72, value); } } /** * @dev Returns the downcasted int64 from int256, reverting on * overflow (when the input is less than smallest int64 or * greater than largest int64). * * Counterpart to Solidity's `int64` operator. * * Requirements: * * - input must fit into 64 bits */ function toInt64(int256 value) internal pure returns (int64 downcasted) { downcasted = int64(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(64, value); } } /** * @dev Returns the downcasted int56 from int256, reverting on * overflow (when the input is less than smallest int56 or * greater than largest int56). * * Counterpart to Solidity's `int56` operator. * * Requirements: * * - input must fit into 56 bits */ function toInt56(int256 value) internal pure returns (int56 downcasted) { downcasted = int56(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(56, value); } } /** * @dev Returns the downcasted int48 from int256, reverting on * overflow (when the input is less than smallest int48 or * greater than largest int48). * * Counterpart to Solidity's `int48` operator. * * Requirements: * * - input must fit into 48 bits */ function toInt48(int256 value) internal pure returns (int48 downcasted) { downcasted = int48(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(48, value); } } /** * @dev Returns the downcasted int40 from int256, reverting on * overflow (when the input is less than smallest int40 or * greater than largest int40). * * Counterpart to Solidity's `int40` operator. * * Requirements: * * - input must fit into 40 bits */ function toInt40(int256 value) internal pure returns (int40 downcasted) { downcasted = int40(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(40, value); } } /** * @dev Returns the downcasted int32 from int256, reverting on * overflow (when the input is less than smallest int32 or * greater than largest int32). * * Counterpart to Solidity's `int32` operator. * * Requirements: * * - input must fit into 32 bits */ function toInt32(int256 value) internal pure returns (int32 downcasted) { downcasted = int32(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(32, value); } } /** * @dev Returns the downcasted int24 from int256, reverting on * overflow (when the input is less than smallest int24 or * greater than largest int24). * * Counterpart to Solidity's `int24` operator. * * Requirements: * * - input must fit into 24 bits */ function toInt24(int256 value) internal pure returns (int24 downcasted) { downcasted = int24(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(24, value); } } /** * @dev Returns the downcasted int16 from int256, reverting on * overflow (when the input is less than smallest int16 or * greater than largest int16). * * Counterpart to Solidity's `int16` operator. * * Requirements: * * - input must fit into 16 bits */ function toInt16(int256 value) internal pure returns (int16 downcasted) { downcasted = int16(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(16, value); } } /** * @dev Returns the downcasted int8 from int256, reverting on * overflow (when the input is less than smallest int8 or * greater than largest int8). * * Counterpart to Solidity's `int8` operator. * * Requirements: * * - input must fit into 8 bits */ function toInt8(int256 value) internal pure returns (int8 downcasted) { downcasted = int8(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(8, value); } } /** * @dev Converts an unsigned uint256 into a signed int256. * * Requirements: * * - input must be less than or equal to maxInt256. */ function toInt256(uint256 value) internal pure returns (int256) { // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive if (value > uint256(type(int256).max)) { revert SafeCastOverflowedUintToInt(value); } return int256(value); } /** * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump. */ function toUint(bool b) internal pure returns (uint256 u) { assembly ("memory-safe") { u := iszero(iszero(b)) } } } // File @openzeppelin/contracts/utils/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol) pragma solidity ^0.8.20; /** * @dev Helper library for emitting standardized panic codes. * * ```solidity * contract Example { * using Panic for uint256; * * // Use any of the declared internal constants * function foo() { Panic.GENERIC.panic(); } * * // Alternatively * function foo() { Panic.panic(Panic.GENERIC); } * } * ``` * * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil]. * * _Available since v5.1._ */ // slither-disable-next-line unused-state library Panic { /// @dev generic / unspecified error uint256 internal constant GENERIC = 0x00; /// @dev used by the assert() builtin uint256 internal constant ASSERT = 0x01; /// @dev arithmetic underflow or overflow uint256 internal constant UNDER_OVERFLOW = 0x11; /// @dev division or modulo by zero uint256 internal constant DIVISION_BY_ZERO = 0x12; /// @dev enum conversion error uint256 internal constant ENUM_CONVERSION_ERROR = 0x21; /// @dev invalid encoding in storage uint256 internal constant STORAGE_ENCODING_ERROR = 0x22; /// @dev empty array pop uint256 internal constant EMPTY_ARRAY_POP = 0x31; /// @dev array out of bounds access uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32; /// @dev resource error (too large allocation or too large array) uint256 internal constant RESOURCE_ERROR = 0x41; /// @dev calling invalid internal function uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51; /// @dev Reverts with a panic code. Recommended to use with /// the internal constants with predefined codes. function panic(uint256 code) internal pure { assembly ("memory-safe") { mstore(0x00, 0x4e487b71) mstore(0x20, code) revert(0x1c, 0x24) } } } // File @openzeppelin/contracts/utils/math/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/math/Math.sol) pragma solidity ^0.8.20; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an success flag (no overflow). */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an success flag (no overflow). */ function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an success flag (no overflow). */ function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a success flag (no division by zero). */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero). */ function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant. * * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone. * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute * one branch when needed, making this function more expensive. */ function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) { unchecked { // branchless ternary works because: // b ^ (a ^ b) == a // b ^ 0 == b return b ^ ((a ^ b) * SafeCast.toUint(condition)); } } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return ternary(a > b, a, b); } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return ternary(a < b, a, b); } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. Panic.panic(Panic.DIVISION_BY_ZERO); } // The following calculation ensures accurate ceiling division without overflow. // Since a is non-zero, (a - 1) / b will not overflow. // The largest possible result occurs when (a - 1) / b is type(uint256).max, // but the largest value we can obtain is type(uint256).max - 1, which happens // when a = type(uint256).max and b = 1. unchecked { return SafeCast.toUint(a > 0) * ((a - 1) / b + 1); } } /** * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or * denominator == 0. * * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by * Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2²⁵⁶ + prod0. uint256 prod0 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0. if (denominator <= prod1) { Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW)); } /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. // Always >= 1. See https://cs.stackexchange.com/q/138556/92363. uint256 twos = denominator & (0 - denominator); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv ≡ 1 mod 2⁴. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also // works in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2⁸ inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶ inverse *= 2 - denominator * inverse; // inverse mod 2³² inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴ inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸ inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶ // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @dev Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0); } /** * @dev Calculate the modular multiplicative inverse of a number in Z/nZ. * * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0. * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible. * * If the input value is not inversible, 0 is returned. * * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}. */ function invMod(uint256 a, uint256 n) internal pure returns (uint256) { unchecked { if (n == 0) return 0; // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version) // Used to compute integers x and y such that: ax + ny = gcd(a, n). // When the gcd is 1, then the inverse of a modulo n exists and it's x. // ax + ny = 1 // ax = 1 + (-y)n // ax ≡ 1 (mod n) # x is the inverse of a modulo n // If the remainder is 0 the gcd is n right away. uint256 remainder = a % n; uint256 gcd = n; // Therefore the initial coefficients are: // ax + ny = gcd(a, n) = n // 0a + 1n = n int256 x = 0; int256 y = 1; while (remainder != 0) { uint256 quotient = gcd / remainder; (gcd, remainder) = ( // The old remainder is the next gcd to try. remainder, // Compute the next remainder. // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd // where gcd is at most n (capped to type(uint256).max) gcd - remainder * quotient ); (x, y) = ( // Increment the coefficient of a. y, // Decrement the coefficient of n. // Can overflow, but the result is casted to uint256 so that the // next value of y is "wrapped around" to a value between 0 and n - 1. x - y * int256(quotient) ); } if (gcd != 1) return 0; // No inverse exists. return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative. } } /** * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`. * * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that * `a**(p-2)` is the modular multiplicative inverse of a in Fp. * * NOTE: this function does NOT check that `p` is a prime greater than `2`. */ function invModPrime(uint256 a, uint256 p) internal view returns (uint256) { unchecked { return Math.modExp(a, p - 2, p); } } /** * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m) * * Requirements: * - modulus can't be zero * - underlying staticcall to precompile must succeed * * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make * sure the chain you're using it on supports the precompiled contract for modular exponentiation * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, * the underlying function will succeed given the lack of a revert, but the result may be incorrectly * interpreted as 0. */ function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) { (bool success, uint256 result) = tryModExp(b, e, m); if (!success) { Panic.panic(Panic.DIVISION_BY_ZERO); } return result; } /** * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m). * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying * to operate modulo 0 or if the underlying precompile reverted. * * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack * of a revert, but the result may be incorrectly interpreted as 0. */ function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) { if (m == 0) return (false, 0); assembly ("memory-safe") { let ptr := mload(0x40) // | Offset | Content | Content (Hex) | // |-----------|------------|--------------------------------------------------------------------| // | 0x00:0x1f | size of b | 0x0000000000000000000000000000000000000000000000000000000000000020 | // | 0x20:0x3f | size of e | 0x0000000000000000000000000000000000000000000000000000000000000020 | // | 0x40:0x5f | size of m | 0x0000000000000000000000000000000000000000000000000000000000000020 | // | 0x60:0x7f | value of b | 0x<.............................................................b> | // | 0x80:0x9f | value of e | 0x<.............................................................e> | // | 0xa0:0xbf | value of m | 0x<.............................................................m> | mstore(ptr, 0x20) mstore(add(ptr, 0x20), 0x20) mstore(add(ptr, 0x40), 0x20) mstore(add(ptr, 0x60), b) mstore(add(ptr, 0x80), e) mstore(add(ptr, 0xa0), m) // Given the result < m, it's guaranteed to fit in 32 bytes, // so we can use the memory scratch space located at offset 0. success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20) result := mload(0x00) } } /** * @dev Variant of {modExp} that supports inputs of arbitrary length. */ function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) { (bool success, bytes memory result) = tryModExp(b, e, m); if (!success) { Panic.panic(Panic.DIVISION_BY_ZERO); } return result; } /** * @dev Variant of {tryModExp} that supports inputs of arbitrary length. */ function tryModExp( bytes memory b, bytes memory e, bytes memory m ) internal view returns (bool success, bytes memory result) { if (_zeroBytes(m)) return (false, new bytes(0)); uint256 mLen = m.length; // Encode call args in result and move the free memory pointer result = abi.encodePacked(b.length, e.length, mLen, b, e, m); assembly ("memory-safe") { let dataPtr := add(result, 0x20) // Write result on top of args to avoid allocating extra memory. success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen) // Overwrite the length. // result.length > returndatasize() is guaranteed because returndatasize() == m.length mstore(result, mLen) // Set the memory pointer after the returned data. mstore(0x40, add(dataPtr, mLen)) } } /** * @dev Returns whether the provided byte array is zero. */ function _zeroBytes(bytes memory byteArray) private pure returns (bool) { for (uint256 i = 0; i < byteArray.length; ++i) { if (byteArray[i] != 0) { return false; } } return true; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded * towards zero. * * This method is based on Newton's method for computing square roots; the algorithm is restricted to only * using integer operations. */ function sqrt(uint256 a) internal pure returns (uint256) { unchecked { // Take care of easy edge cases when a == 0 or a == 1 if (a <= 1) { return a; } // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between // the current value as `ε_n = | x_n - sqrt(a) |`. // // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is // bigger than any uint256. // // By noticing that // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)` // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar // to the msb function. uint256 aa = a; uint256 xn = 1; if (aa >= (1 << 128)) { aa >>= 128; xn <<= 64; } if (aa >= (1 << 64)) { aa >>= 64; xn <<= 32; } if (aa >= (1 << 32)) { aa >>= 32; xn <<= 16; } if (aa >= (1 << 16)) { aa >>= 16; xn <<= 8; } if (aa >= (1 << 8)) { aa >>= 8; xn <<= 4; } if (aa >= (1 << 4)) { aa >>= 4; xn <<= 2; } if (aa >= (1 << 2)) { xn <<= 1; } // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1). // // We can refine our estimation by noticing that the middle of that interval minimizes the error. // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2). // This is going to be our x_0 (and ε_0) xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2) // From here, Newton's method give us: // x_{n+1} = (x_n + a / x_n) / 2 // // One should note that: // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a // = ((x_n² + a) / (2 * x_n))² - a // = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a // = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²) // = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²) // = (x_n² - a)² / (2 * x_n)² // = ((x_n² - a) / (2 * x_n))² // ≥ 0 // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n // // This gives us the proof of quadratic convergence of the sequence: // ε_{n+1} = | x_{n+1} - sqrt(a) | // = | (x_n + a / x_n) / 2 - sqrt(a) | // = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) | // = | (x_n - sqrt(a))² / (2 * x_n) | // = | ε_n² / (2 * x_n) | // = ε_n² / | (2 * x_n) | // // For the first iteration, we have a special case where x_0 is known: // ε_1 = ε_0² / | (2 * x_0) | // ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2))) // ≤ 2**(2*e-4) / (3 * 2**(e-1)) // ≤ 2**(e-3) / 3 // ≤ 2**(e-3-log2(3)) // ≤ 2**(e-4.5) // // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n: // ε_{n+1} = ε_n² / | (2 * x_n) | // ≤ (2**(e-k))² / (2 * 2**(e-1)) // ≤ 2**(2*e-2*k) / 2**e // ≤ 2**(e-2*k) xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5) -- special case, see above xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9) -- general case with k = 4.5 xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18) -- general case with k = 9 xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36) -- general case with k = 18 xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72) -- general case with k = 36 xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144) -- general case with k = 72 // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either // sqrt(a) or sqrt(a) + 1. return xn - SafeCast.toUint(xn > a / xn); } } /** * @dev Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; uint256 exp; unchecked { exp = 128 * SafeCast.toUint(value > (1 << 128) - 1); value >>= exp; result += exp; exp = 64 * SafeCast.toUint(value > (1 << 64) - 1); value >>= exp; result += exp; exp = 32 * SafeCast.toUint(value > (1 << 32) - 1); value >>= exp; result += exp; exp = 16 * SafeCast.toUint(value > (1 << 16) - 1); value >>= exp; result += exp; exp = 8 * SafeCast.toUint(value > (1 << 8) - 1); value >>= exp; result += exp; exp = 4 * SafeCast.toUint(value > (1 << 4) - 1); value >>= exp; result += exp; exp = 2 * SafeCast.toUint(value > (1 << 2) - 1); value >>= exp; result += exp; result += SafeCast.toUint(value > 1); } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; uint256 isGt; unchecked { isGt = SafeCast.toUint(value > (1 << 128) - 1); value >>= isGt * 128; result += isGt * 16; isGt = SafeCast.toUint(value > (1 << 64) - 1); value >>= isGt * 64; result += isGt * 8; isGt = SafeCast.toUint(value > (1 << 32) - 1); value >>= isGt * 32; result += isGt * 4; isGt = SafeCast.toUint(value > (1 << 16) - 1); value >>= isGt * 16; result += isGt * 2; result += SafeCast.toUint(value > (1 << 8) - 1); } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } } // File @openzeppelin/contracts/utils/math/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.20; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant. * * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone. * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute * one branch when needed, making this function more expensive. */ function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) { unchecked { // branchless ternary works because: // b ^ (a ^ b) == a // b ^ 0 == b return b ^ ((a ^ b) * int256(SafeCast.toUint(condition))); } } /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return ternary(a > b, a, b); } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return ternary(a < b, a, b); } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // Formula from the "Bit Twiddling Hacks" by Sean Eron Anderson. // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift, // taking advantage of the most significant (or "sign" bit) in two's complement representation. // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result, // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative). int256 mask = n >> 255; // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it. return uint256((n + mask) ^ mask); } } } // File @openzeppelin/contracts/utils/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.2.0) (utils/Strings.sol) pragma solidity ^0.8.20; /** * @dev String operations. */ library Strings { using SafeCast for *; bytes16 private constant HEX_DIGITS = "0123456789abcdef"; uint8 private constant ADDRESS_LENGTH = 20; /** * @dev The `value` string doesn't fit in the specified `length`. */ error StringsInsufficientHexLength(uint256 value, uint256 length); /** * @dev The string being parsed contains characters that are not in scope of the given base. */ error StringsInvalidChar(); /** * @dev The string being parsed is not a properly formatted address. */ error StringsInvalidAddressFormat(); /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; assembly ("memory-safe") { ptr := add(buffer, add(32, length)) } while (true) { ptr--; assembly ("memory-safe") { mstore8(ptr, byte(mod(value, 10), HEX_DIGITS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toStringSigned(int256 value) internal pure returns (string memory) { return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { uint256 localValue = value; bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = HEX_DIGITS[localValue & 0xf]; localValue >>= 4; } if (localValue != 0) { revert StringsInsufficientHexLength(value, length); } return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal * representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH); } /** * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal * representation, according to EIP-55. */ function toChecksumHexString(address addr) internal pure returns (string memory) { bytes memory buffer = bytes(toHexString(addr)); // hash the hex part of buffer (skip length + 2 bytes, length 40) uint256 hashValue; assembly ("memory-safe") { hashValue := shr(96, keccak256(add(buffer, 0x22), 40)) } for (uint256 i = 41; i > 1; --i) { // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f) if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) { // case shift by xoring with 0x20 buffer[i] ^= 0x20; } hashValue >>= 4; } return string(buffer); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b)); } /** * @dev Parse a decimal string and returns the value as a `uint256`. * * Requirements: * - The string must be formatted as `[0-9]*` * - The result must fit into an `uint256` type */ function parseUint(string memory input) internal pure returns (uint256) { return parseUint(input, 0, bytes(input).length); } /** * @dev Variant of {parseUint} that parses a substring of `input` located between position `begin` (included) and * `end` (excluded). * * Requirements: * - The substring must be formatted as `[0-9]*` * - The result must fit into an `uint256` type */ function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) { (bool success, uint256 value) = tryParseUint(input, begin, end); if (!success) revert StringsInvalidChar(); return value; } /** * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character. * * NOTE: This function will revert if the result does not fit in a `uint256`. */ function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) { return _tryParseUintUncheckedBounds(input, 0, bytes(input).length); } /** * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid * character. * * NOTE: This function will revert if the result does not fit in a `uint256`. */ function tryParseUint( string memory input, uint256 begin, uint256 end ) internal pure returns (bool success, uint256 value) { if (end > bytes(input).length || begin > end) return (false, 0); return _tryParseUintUncheckedBounds(input, begin, end); } /** * @dev Implementation of {tryParseUint} that does not check bounds. Caller should make sure that * `begin <= end <= input.length`. Other inputs would result in undefined behavior. */ function _tryParseUintUncheckedBounds( string memory input, uint256 begin, uint256 end ) private pure returns (bool success, uint256 value) { bytes memory buffer = bytes(input); uint256 result = 0; for (uint256 i = begin; i < end; ++i) { uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i))); if (chr > 9) return (false, 0); result *= 10; result += chr; } return (true, result); } /** * @dev Parse a decimal string and returns the value as a `int256`. * * Requirements: * - The string must be formatted as `[-+]?[0-9]*` * - The result must fit in an `int256` type. */ function parseInt(string memory input) internal pure returns (int256) { return parseInt(input, 0, bytes(input).length); } /** * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and * `end` (excluded). * * Requirements: * - The substring must be formatted as `[-+]?[0-9]*` * - The result must fit in an `int256` type. */ function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) { (bool success, int256 value) = tryParseInt(input, begin, end); if (!success) revert StringsInvalidChar(); return value; } /** * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if * the result does not fit in a `int256`. * * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`. */ function tryParseInt(string memory input) internal pure returns (bool success, int256 value) { return _tryParseIntUncheckedBounds(input, 0, bytes(input).length); } uint256 private constant ABS_MIN_INT256 = 2 ** 255; /** * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid * character or if the result does not fit in a `int256`. * * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`. */ function tryParseInt( string memory input, uint256 begin, uint256 end ) internal pure returns (bool success, int256 value) { if (end > bytes(input).length || begin > end) return (false, 0); return _tryParseIntUncheckedBounds(input, begin, end); } /** * @dev Implementation of {tryParseInt} that does not check bounds. Caller should make sure that * `begin <= end <= input.length`. Other inputs would result in undefined behavior. */ function _tryParseIntUncheckedBounds( string memory input, uint256 begin, uint256 end ) private pure returns (bool success, int256 value) { bytes memory buffer = bytes(input); // Check presence of a negative sign. bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty bool positiveSign = sign == bytes1("+"); bool negativeSign = sign == bytes1("-"); uint256 offset = (positiveSign || negativeSign).toUint(); (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end); if (absSuccess && absValue < ABS_MIN_INT256) { return (true, negativeSign ? -int256(absValue) : int256(absValue)); } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) { return (true, type(int256).min); } else return (false, 0); } /** * @dev Parse a hexadecimal string (with or without "0x" prefix), and returns the value as a `uint256`. * * Requirements: * - The string must be formatted as `(0x)?[0-9a-fA-F]*` * - The result must fit in an `uint256` type. */ function parseHexUint(string memory input) internal pure returns (uint256) { return parseHexUint(input, 0, bytes(input).length); } /** * @dev Variant of {parseHexUint} that parses a substring of `input` located between position `begin` (included) and * `end` (excluded). * * Requirements: * - The substring must be formatted as `(0x)?[0-9a-fA-F]*` * - The result must fit in an `uint256` type. */ function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) { (bool success, uint256 value) = tryParseHexUint(input, begin, end); if (!success) revert StringsInvalidChar(); return value; } /** * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character. * * NOTE: This function will revert if the result does not fit in a `uint256`. */ function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) { return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length); } /** * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an * invalid character. * * NOTE: This function will revert if the result does not fit in a `uint256`. */ function tryParseHexUint( string memory input, uint256 begin, uint256 end ) internal pure returns (bool success, uint256 value) { if (end > bytes(input).length || begin > end) return (false, 0); return _tryParseHexUintUncheckedBounds(input, begin, end); } /** * @dev Implementation of {tryParseHexUint} that does not check bounds. Caller should make sure that * `begin <= end <= input.length`. Other inputs would result in undefined behavior. */ function _tryParseHexUintUncheckedBounds( string memory input, uint256 begin, uint256 end ) private pure returns (bool success, uint256 value) { bytes memory buffer = bytes(input); // skip 0x prefix if present bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2("0x"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty uint256 offset = hasPrefix.toUint() * 2; uint256 result = 0; for (uint256 i = begin + offset; i < end; ++i) { uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i))); if (chr > 15) return (false, 0); result *= 16; unchecked { // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check). // This guaratees that adding a value < 16 will not cause an overflow, hence the unchecked. result += chr; } } return (true, result); } /** * @dev Parse a hexadecimal string (with or without "0x" prefix), and returns the value as an `address`. * * Requirements: * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}` */ function parseAddress(string memory input) internal pure returns (address) { return parseAddress(input, 0, bytes(input).length); } /** * @dev Variant of {parseAddress} that parses a substring of `input` located between position `begin` (included) and * `end` (excluded). * * Requirements: * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}` */ function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) { (bool success, address value) = tryParseAddress(input, begin, end); if (!success) revert StringsInvalidAddressFormat(); return value; } /** * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly * formatted address. See {parseAddress} requirements. */ function tryParseAddress(string memory input) internal pure returns (bool success, address value) { return tryParseAddress(input, 0, bytes(input).length); } /** * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly * formatted address. See {parseAddress} requirements. */ function tryParseAddress( string memory input, uint256 begin, uint256 end ) internal pure returns (bool success, address value) { if (end > bytes(input).length || begin > end) return (false, address(0)); bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2("0x"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty uint256 expectedLength = 40 + hasPrefix.toUint() * 2; // check that input is the correct length if (end - begin == expectedLength) { // length guarantees that this does not overflow, and value is at most type(uint160).max (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end); return (s, address(uint160(v))); } else { return (false, address(0)); } } function _tryParseChr(bytes1 chr) private pure returns (uint8) { uint8 value = uint8(chr); // Try to parse `chr`: // - Case 1: [0-9] // - Case 2: [a-f] // - Case 3: [A-F] // - otherwise not supported unchecked { if (value > 47 && value < 58) value -= 48; else if (value > 96 && value < 103) value -= 87; else if (value > 64 && value < 71) value -= 55; else return type(uint8).max; } return value; } /** * @dev Reads a bytes32 from a bytes array without bounds checking. * * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the * assembly block as such would prevent some optimizations. */ function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) { // This is not memory safe in the general case, but all calls to this private function are within bounds. assembly ("memory-safe") { value := mload(add(buffer, add(0x20, offset))) } } } // File @openzeppelin/contracts/token/ERC721/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.20; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC-721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Errors { using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; mapping(uint256 tokenId => address) private _owners; mapping(address owner => uint256) private _balances; mapping(uint256 tokenId => address) private _tokenApprovals; mapping(address owner => mapping(address operator => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual returns (uint256) { if (owner == address(0)) { revert ERC721InvalidOwner(address(0)); } return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual returns (address) { return _requireOwned(tokenId); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual returns (string memory) { _requireOwned(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string.concat(baseURI, tokenId.toString()) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual { _approve(to, tokenId, _msgSender()); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual returns (address) { _requireOwned(tokenId); return _getApproved(tokenId); } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } // Setting an "auth" arguments enables the `_isAuthorized` check which verifies that the token exists // (from != 0). Therefore, it is not needed to verify that the return value is not 0 here. address previousOwner = _update(to, tokenId, _msgSender()); if (previousOwner != from) { revert ERC721IncorrectOwner(from, tokenId, previousOwner); } } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual { transferFrom(from, to, tokenId); ERC721Utils.checkOnERC721Received(_msgSender(), from, to, tokenId, data); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist * * IMPORTANT: Any overrides to this function that add ownership of tokens not tracked by the * core ERC-721 logic MUST be matched with the use of {_increaseBalance} to keep balances * consistent with ownership. The invariant to preserve is that for any address `a` the value returned by * `balanceOf(a)` must be equal to the number of tokens such that `_ownerOf(tokenId)` is `a`. */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns the approved address for `tokenId`. Returns 0 if `tokenId` is not minted. */ function _getApproved(uint256 tokenId) internal view virtual returns (address) { return _tokenApprovals[tokenId]; } /** * @dev Returns whether `spender` is allowed to manage `owner`'s tokens, or `tokenId` in * particular (ignoring whether it is owned by `owner`). * * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this * assumption. */ function _isAuthorized(address owner, address spender, uint256 tokenId) internal view virtual returns (bool) { return spender != address(0) && (owner == spender || isApprovedForAll(owner, spender) || _getApproved(tokenId) == spender); } /** * @dev Checks if `spender` can operate on `tokenId`, assuming the provided `owner` is the actual owner. * Reverts if: * - `spender` does not have approval from `owner` for `tokenId`. * - `spender` does not have approval to manage all of `owner`'s assets. * * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this * assumption. */ function _checkAuthorized(address owner, address spender, uint256 tokenId) internal view virtual { if (!_isAuthorized(owner, spender, tokenId)) { if (owner == address(0)) { revert ERC721NonexistentToken(tokenId); } else { revert ERC721InsufficientApproval(spender, tokenId); } } } /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * NOTE: the value is limited to type(uint128).max. This protect against _balance overflow. It is unrealistic that * a uint256 would ever overflow from increments when these increments are bounded to uint128 values. * * WARNING: Increasing an account's balance using this function tends to be paired with an override of the * {_ownerOf} function to resolve the ownership of the corresponding tokens so that balances and ownership * remain consistent with one another. */ function _increaseBalance(address account, uint128 value) internal virtual { unchecked { _balances[account] += value; } } /** * @dev Transfers `tokenId` from its current owner to `to`, or alternatively mints (or burns) if the current owner * (or `to`) is the zero address. Returns the owner of the `tokenId` before the update. * * The `auth` argument is optional. If the value passed is non 0, then this function will check that * `auth` is either the owner of the token, or approved to operate on the token (by the owner). * * Emits a {Transfer} event. * * NOTE: If overriding this function in a way that tracks balances, see also {_increaseBalance}. */ function _update(address to, uint256 tokenId, address auth) internal virtual returns (address) { address from = _ownerOf(tokenId); // Perform (optional) operator check if (auth != address(0)) { _checkAuthorized(from, auth, tokenId); } // Execute the update if (from != address(0)) { // Clear approval. No need to re-authorize or emit the Approval event _approve(address(0), tokenId, address(0), false); unchecked { _balances[from] -= 1; } } if (to != address(0)) { unchecked { _balances[to] += 1; } } _owners[tokenId] = to; emit Transfer(from, to, tokenId); return from; } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } address previousOwner = _update(to, tokenId, address(0)); if (previousOwner != address(0)) { revert ERC721InvalidSender(address(0)); } } /** * @dev Mints `tokenId`, transfers it to `to` and checks for `to` acceptance. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual { _mint(to, tokenId); ERC721Utils.checkOnERC721Received(_msgSender(), address(0), to, tokenId, data); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal { address previousOwner = _update(address(0), tokenId, address(0)); if (previousOwner == address(0)) { revert ERC721NonexistentToken(tokenId); } } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } address previousOwner = _update(to, tokenId, address(0)); if (previousOwner == address(0)) { revert ERC721NonexistentToken(tokenId); } else if (previousOwner != from) { revert ERC721IncorrectOwner(from, tokenId, previousOwner); } } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking that contract recipients * are aware of the ERC-721 standard to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is like {safeTransferFrom} in the sense that it invokes * {IERC721Receiver-onERC721Received} on the receiver, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `tokenId` token must exist and be owned by `from`. * - `to` cannot be the zero address. * - `from` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer(address from, address to, uint256 tokenId) internal { _safeTransfer(from, to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeTransfer-address-address-uint256-}[`_safeTransfer`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual { _transfer(from, to, tokenId); ERC721Utils.checkOnERC721Received(_msgSender(), from, to, tokenId, data); } /** * @dev Approve `to` to operate on `tokenId` * * The `auth` argument is optional. If the value passed is non 0, then this function will check that `auth` is * either the owner of the token, or approved to operate on all tokens held by this owner. * * Emits an {Approval} event. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address to, uint256 tokenId, address auth) internal { _approve(to, tokenId, auth, true); } /** * @dev Variant of `_approve` with an optional flag to enable or disable the {Approval} event. The event is not * emitted in the context of transfers. */ function _approve(address to, uint256 tokenId, address auth, bool emitEvent) internal virtual { // Avoid reading the owner unless necessary if (emitEvent || auth != address(0)) { address owner = _requireOwned(tokenId); // We do not use _isAuthorized because single-token approvals should not be able to call approve if (auth != address(0) && owner != auth && !isApprovedForAll(owner, auth)) { revert ERC721InvalidApprover(auth); } if (emitEvent) { emit Approval(owner, to, tokenId); } } _tokenApprovals[tokenId] = to; } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Requirements: * - operator can't be the address zero. * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll(address owner, address operator, bool approved) internal virtual { if (operator == address(0)) { revert ERC721InvalidOperator(operator); } _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` doesn't have a current owner (it hasn't been minted, or it has been burned). * Returns the owner. * * Overrides to ownership logic should be done to {_ownerOf}. */ function _requireOwned(uint256 tokenId) internal view returns (address) { address owner = _ownerOf(tokenId); if (owner == address(0)) { revert ERC721NonexistentToken(tokenId); } return owner; } } // File contracts/utils/Base64.sol // Original license: SPDX_License_Identifier: MIT pragma solidity ^0.8.0; library Base64 { bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; function encode(bytes memory data) internal pure returns (string memory) { uint256 len = data.length; if (len == 0) return ""; uint256 encodedLen = 4 * ((len + 2) / 3); bytes memory result = new bytes(encodedLen + 32); uint256 i = 0; uint256 j = 0; for (; i < len - 2; i += 3) { uint256 value = (uint256(uint8(data[i])) << 16) | (uint256(uint8(data[i + 1])) << 8) | uint256(uint8(data[i + 2])); result[j++] = TABLE[(value >> 18) & 0x3F]; result[j++] = TABLE[(value >> 12) & 0x3F]; result[j++] = TABLE[(value >> 6) & 0x3F]; result[j++] = TABLE[value & 0x3F]; } if (i < len) { uint256 value = uint256(uint8(data[i])) << 16; if (i + 1 < len) { value |= uint256(uint8(data[i + 1])) << 8; } result[j++] = TABLE[(value >> 18) & 0x3F]; result[j++] = TABLE[(value >> 12) & 0x3F]; if (i + 1 < len) { result[j++] = TABLE[(value >> 6) & 0x3F]; result[j++] = '='; } else { result[j++] = '='; result[j++] = '='; } } return string(result); } } // File contracts/ApeColorNFT.sol // Original license: SPDX_License_Identifier: MIT pragma solidity ^0.8.29; contract ApeColorNFT is ERC721, Ownable { uint256 public constant MINT_FEE = 1 ether; uint256 public constant MIX_FEE = 0.1 ether; address public treasury; uint256 private _tokenIdCounter; struct ColorData { uint8 r; uint8 g; uint8 b; bool isPrimary; string name; } mapping(uint256 => ColorData) private _colors; constructor(address _treasury) ERC721("ApeColor", "APECOLOR") Ownable(msg.sender) { treasury = _treasury; } function mintPrimary(string memory color) external payable { require(msg.value == MINT_FEE, "Send exactly 1 ETH"); _sendValue(treasury, msg.value); uint256 tokenId = _tokenIdCounter; _safeMint(msg.sender, tokenId); (uint8 r, uint8 g, uint8 b) = _getColorValue(color); _colors[tokenId] = ColorData(r, g, b, true, color); _tokenIdCounter++; } function mixColors( uint256[] memory tokenIds, uint256[] memory percentages, string memory newName ) external payable { require(msg.value == MIX_FEE, "Send exactly 0.1 ETH"); _sendValue(treasury, msg.value); require(tokenIds.length == percentages.length, "Invalid input"); (uint256 totalR, uint256 totalG, uint256 totalB) = _calculateMixedColor(tokenIds, percentages); uint256 newTokenId = _tokenIdCounter; _safeMint(msg.sender, newTokenId); _colors[newTokenId] = ColorData( uint8(totalR / 100), uint8(totalG / 100), uint8(totalB / 100), false, newName ); _tokenIdCounter++; } function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_customExists(tokenId), "Token does not exist"); ColorData memory color = _colors[tokenId]; // 1. Generate SVG string memory svg = string(abi.encodePacked( '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300">', '<rect width="300" height="300" fill="rgb(', Strings.toString(color.r), ',', Strings.toString(color.g), ',', Strings.toString(color.b), ')"/></svg>' )); // 2. Encode image string memory image = string(abi.encodePacked( 'data:image/svg+xml;base64,', Base64.encode(bytes(svg)) )); // 3. Build JSON metadata string memory json = Base64.encode(bytes(abi.encodePacked( '{"name":"', color.name, '",', '"description":"ApeColor NFT",', '"attributes":[', '{"trait_type":"R","value":"', Strings.toString(color.r), '"},', '{"trait_type":"G","value":"', Strings.toString(color.g), '"},', '{"trait_type":"B","value":"', Strings.toString(color.b), '"},', '{"trait_type":"Primary","value":"', color.isPrimary ? 'true' : 'false', '"}', '],', '"image":"', image, '"}' ))); return string(abi.encodePacked('data:application/json;base64,', json)); } // ==================== UTILITY FUNCTIONS ==================== function _calculateMixedColor( uint256[] memory tokenIds, uint256[] memory percentages ) internal returns (uint256 totalR, uint256 totalG, uint256 totalB) { uint256 totalPercentage = 0; for (uint256 i = 0; i < tokenIds.length; i++) { require(_customExists(tokenIds[i]), "Token does not exist"); require(ownerOf(tokenIds[i]) == msg.sender, "Not token owner"); ColorData memory c = _colors[tokenIds[i]]; totalR += c.r * percentages[i]; totalG += c.g * percentages[i]; totalB += c.b * percentages[i]; totalPercentage += percentages[i]; _burn(tokenIds[i]); } require(totalPercentage == 100, "Percentages must sum to 100"); } function _sendValue(address recipient, uint256 amount) internal { (bool success, ) = recipient.call{value: amount}(""); require(success, "Transfer failed"); } function _customExists(uint256 tokenId) internal view returns (bool) { return _ownerOf(tokenId) != address(0) && bytes(_colors[tokenId].name).length > 0; } function _getColorValue(string memory color) internal pure returns (uint8 r, uint8 g, uint8 b) { bytes32 colorHash = keccak256(abi.encodePacked(color)); if (colorHash == keccak256(abi.encodePacked("red"))) { return (255, 0, 0); } else if (colorHash == keccak256(abi.encodePacked("green"))) { return (0, 255, 0); } else if (colorHash == keccak256(abi.encodePacked("blue"))) { return (0, 0, 255); } revert("Invalid color"); } // ==================== ADMIN FUNCTIONS ==================== function setTreasury(address _newTreasury) external onlyOwner { treasury = _newTreasury; } function getColorData(uint256 tokenId) external view returns ( uint8 r, uint8 g, uint8 b, bool isPrimary, string memory name ) { require(_customExists(tokenId), "NFT does not exist"); ColorData memory color = _colors[tokenId]; return (color.r, color.g, color.b, color.isPrimary, color.name); } }
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721IncorrectOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721InsufficientApproval","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC721InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC721InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721InvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC721InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC721InvalidSender","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721NonexistentToken","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MINT_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIX_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getColorData","outputs":[{"internalType":"uint8","name":"r","type":"uint8"},{"internalType":"uint8","name":"g","type":"uint8"},{"internalType":"uint8","name":"b","type":"uint8"},{"internalType":"bool","name":"isPrimary","type":"bool"},{"internalType":"string","name":"name","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"color","type":"string"}],"name":"mintPrimary","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"percentages","type":"uint256[]"},{"internalType":"string","name":"newName","type":"string"}],"name":"mixColors","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newTreasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561000f575f5ffd5b50604051615053380380615053833981810160405281019061003191906102a6565b336040518060400160405280600881526020017f417065436f6c6f720000000000000000000000000000000000000000000000008152506040518060400160405280600881526020017f415045434f4c4f52000000000000000000000000000000000000000000000000815250815f90816100ac919061050e565b5080600190816100bc919061050e565b5050505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361012f575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161012691906105ec565b60405180910390fd5b61013e8161018560201b60201c565b508060075f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610605565b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6102758261024c565b9050919050565b6102858161026b565b811461028f575f5ffd5b50565b5f815190506102a08161027c565b92915050565b5f602082840312156102bb576102ba610248565b5b5f6102c884828501610292565b91505092915050565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061034c57607f821691505b60208210810361035f5761035e610308565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026103c17fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82610386565b6103cb8683610386565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f61040f61040a610405846103e3565b6103ec565b6103e3565b9050919050565b5f819050919050565b610428836103f5565b61043c61043482610416565b848454610392565b825550505050565b5f5f905090565b610453610444565b61045e81848461041f565b505050565b5b81811015610481576104765f8261044b565b600181019050610464565b5050565b601f8211156104c65761049781610365565b6104a084610377565b810160208510156104af578190505b6104c36104bb85610377565b830182610463565b50505b505050565b5f82821c905092915050565b5f6104e65f19846008026104cb565b1980831691505092915050565b5f6104fe83836104d7565b9150826002028217905092915050565b610517826102d1565b67ffffffffffffffff8111156105305761052f6102db565b5b61053a8254610335565b610545828285610485565b5f60209050601f831160018114610576575f8415610564578287015190505b61056e85826104f3565b8655506105d5565b601f19841661058486610365565b5f5b828110156105ab57848901518255600182019150602085019450602081019050610586565b868310156105c857848901516105c4601f8916826104d7565b8355505b6001600288020188555050505b505050505050565b6105e68161026b565b82525050565b5f6020820190506105ff5f8301846105dd565b92915050565b614a41806106125f395ff3fe60806040526004361061013f575f3560e01c80638184eae2116100b5578063b88d4fde1161006e578063b88d4fde14610433578063c87b56dd1461045b578063d7bf81a314610497578063e985e9c5146104c1578063f0f44260146104fd578063f2fde38b146105255761013f565b80638184eae2146103555780638da5cb5b14610371578063959b44cb1461039b57806395d89b41146103b7578063a22cb465146103e1578063b7cc6ce3146104095761013f565b806342842e0e1161010757806342842e0e1461023557806361d027b31461025d5780636352211e1461028757806370a08231146102c3578063715018a6146102ff578063799ebe62146103155761013f565b806301ffc9a71461014357806306fdde031461017f578063081812fc146101a9578063095ea7b3146101e557806323b872dd1461020d575b5f5ffd5b34801561014e575f5ffd5b5061016960048036038101906101649190612fc4565b61054d565b6040516101769190613009565b60405180910390f35b34801561018a575f5ffd5b5061019361062e565b6040516101a09190613092565b60405180910390f35b3480156101b4575f5ffd5b506101cf60048036038101906101ca91906130e5565b6106bd565b6040516101dc919061314f565b60405180910390f35b3480156101f0575f5ffd5b5061020b60048036038101906102069190613192565b6106d8565b005b348015610218575f5ffd5b50610233600480360381019061022e91906131d0565b6106ee565b005b348015610240575f5ffd5b5061025b600480360381019061025691906131d0565b6107ed565b005b348015610268575f5ffd5b5061027161080c565b60405161027e919061314f565b60405180910390f35b348015610292575f5ffd5b506102ad60048036038101906102a891906130e5565b610831565b6040516102ba919061314f565b60405180910390f35b3480156102ce575f5ffd5b506102e960048036038101906102e49190613220565b610842565b6040516102f6919061325a565b60405180910390f35b34801561030a575f5ffd5b506103136108f8565b005b348015610320575f5ffd5b5061033b600480360381019061033691906130e5565b61090b565b60405161034c95949392919061328e565b60405180910390f35b61036f600480360381019061036a9190613412565b610aa1565b005b34801561037c575f5ffd5b50610385610c30565b604051610392919061314f565b60405180910390f35b6103b560048036038101906103b0919061351d565b610c58565b005b3480156103c2575f5ffd5b506103cb610e51565b6040516103d89190613092565b60405180910390f35b3480156103ec575f5ffd5b50610407600480360381019061040291906135eb565b610ee1565b005b348015610414575f5ffd5b5061041d610ef7565b60405161042a919061325a565b60405180910390f35b34801561043e575f5ffd5b50610459600480360381019061045491906136c7565b610f03565b005b348015610466575f5ffd5b50610481600480360381019061047c91906130e5565b610f28565b60405161048e9190613092565b60405180910390f35b3480156104a2575f5ffd5b506104ab611216565b6040516104b8919061325a565b60405180910390f35b3480156104cc575f5ffd5b506104e760048036038101906104e29190613747565b611222565b6040516104f49190613009565b60405180910390f35b348015610508575f5ffd5b50610523600480360381019061051e9190613220565b6112b0565b005b348015610530575f5ffd5b5061054b60048036038101906105469190613220565b6112fb565b005b5f7f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061061757507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061062757506106268261137f565b5b9050919050565b60605f805461063c906137b2565b80601f0160208091040260200160405190810160405280929190818152602001828054610668906137b2565b80156106b35780601f1061068a576101008083540402835291602001916106b3565b820191905f5260205f20905b81548152906001019060200180831161069657829003601f168201915b5050505050905090565b5f6106c7826113e8565b506106d18261146e565b9050919050565b6106ea82826106e56114a7565b6114ae565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361075e575f6040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401610755919061314f565b60405180910390fd5b5f610771838361076c6114a7565b6114c0565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146107e7578382826040517f64283d7b0000000000000000000000000000000000000000000000000000000081526004016107de939291906137e2565b60405180910390fd5b50505050565b61080783838360405180602001604052805f815250610f03565b505050565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f61083b826113e8565b9050919050565b5f5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036108b3575f6040517f89c62b640000000000000000000000000000000000000000000000000000000081526004016108aa919061314f565b60405180910390fd5b60035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b6109006116cb565b6109095f611752565b565b5f5f5f5f606061091a86611815565b610959576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095090613861565b60405180910390fd5b5f60095f8881526020019081526020015f206040518060a00160405290815f82015f9054906101000a900460ff1660ff1660ff1681526020015f820160019054906101000a900460ff1660ff1660ff1681526020015f820160029054906101000a900460ff1660ff1660ff1681526020015f820160039054906101000a900460ff161515151581526020016001820180546109f3906137b2565b80601f0160208091040260200160405190810160405280929190818152602001828054610a1f906137b2565b8015610a6a5780601f10610a4157610100808354040283529160200191610a6a565b820191905f5260205f20905b815481529060010190602001808311610a4d57829003601f168201915b5050505050815250509050805f01518160200151826040015183606001518460800151955095509550955095505091939590929450565b670de0b6b3a76400003414610aeb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae2906138c9565b60405180910390fd5b610b1660075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1634611880565b5f6008549050610b26338261192d565b5f5f5f610b328561194a565b9250925092506040518060a001604052808460ff1681526020018360ff1681526020018260ff1681526020016001151581526020018681525060095f8681526020019081526020015f205f820151815f015f6101000a81548160ff021916908360ff1602179055506020820151815f0160016101000a81548160ff021916908360ff1602179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151815f0160036101000a81548160ff0219169083151502179055506080820151816001019081610c0e9190613a87565b5090505060085f815480929190610c2490613b83565b91905055505050505050565b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b67016345785d8a00003414610ca2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9990613c14565b60405180910390fd5b610ccd60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1634611880565b8151835114610d11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0890613c7c565b60405180910390fd5b5f5f5f610d1e8686611a6a565b9250925092505f6008549050610d34338261192d565b6040518060a00160405280606486610d4c9190613cc7565b60ff168152602001606485610d619190613cc7565b60ff168152602001606484610d769190613cc7565b60ff1681526020015f151581526020018681525060095f8381526020019081526020015f205f820151815f015f6101000a81548160ff021916908360ff1602179055506020820151815f0160016101000a81548160ff021916908360ff1602179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151815f0160036101000a81548160ff0219169083151502179055506080820151816001019081610e2d9190613a87565b5090505060085f815480929190610e4390613b83565b919050555050505050505050565b606060018054610e60906137b2565b80601f0160208091040260200160405190810160405280929190818152602001828054610e8c906137b2565b8015610ed75780601f10610eae57610100808354040283529160200191610ed7565b820191905f5260205f20905b815481529060010190602001808311610eba57829003601f168201915b5050505050905090565b610ef3610eec6114a7565b8383611df9565b5050565b67016345785d8a000081565b610f0e8484846106ee565b610f22610f196114a7565b85858585611f62565b50505050565b6060610f3382611815565b610f72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6990613d41565b60405180910390fd5b5f60095f8481526020019081526020015f206040518060a00160405290815f82015f9054906101000a900460ff1660ff1660ff1681526020015f820160019054906101000a900460ff1660ff1660ff1681526020015f820160029054906101000a900460ff1660ff1660ff1681526020015f820160039054906101000a900460ff1615151515815260200160018201805461100c906137b2565b80601f0160208091040260200160405190810160405280929190818152602001828054611038906137b2565b80156110835780601f1061105a57610100808354040283529160200191611083565b820191905f5260205f20905b81548152906001019060200180831161106657829003601f168201915b50505050508152505090505f61109e825f015160ff1661210e565b6110ae836020015160ff1661210e565b6110be846040015160ff1661210e565b6040516020016110d093929190613f0d565b60405160208183030381529060405290505f6110eb826121d8565b6040516020016110fb9190613fbe565b60405160208183030381529060405290505f6111e98460800151611124865f015160ff1661210e565b611134876020015160ff1661210e565b611144886040015160ff1661210e565b8860600151611188576040518060400160405280600581526020017f66616c73650000000000000000000000000000000000000000000000000000008152506111bf565b6040518060400160405280600481526020017f74727565000000000000000000000000000000000000000000000000000000008152505b876040516020016111d59695949392919061437d565b6040516020818303038152906040526121d8565b9050806040516020016111fc91906144c3565b604051602081830303815290604052945050505050919050565b670de0b6b3a764000081565b5f60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b6112b86116cb565b8060075f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6113036116cb565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611373575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161136a919061314f565b60405180910390fd5b61137c81611752565b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f5f6113f3836128fa565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361146557826040517f7e27328900000000000000000000000000000000000000000000000000000000815260040161145c919061325a565b60405180910390fd5b80915050919050565b5f60045f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f33905090565b6114bb8383836001612933565b505050565b5f5f6114cb846128fa565b90505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461150c5761150b818486612af2565b5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146115975761154b5f855f5f612933565b600160035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825403925050819055505b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161461161657600160035f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8460025f8681526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4809150509392505050565b6116d36114a7565b73ffffffffffffffffffffffffffffffffffffffff166116f1610c30565b73ffffffffffffffffffffffffffffffffffffffff1614611750576117146114a7565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401611747919061314f565b60405180910390fd5b565b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f5f73ffffffffffffffffffffffffffffffffffffffff16611836836128fa565b73ffffffffffffffffffffffffffffffffffffffff161415801561187957505f60095f8481526020019081526020015f206001018054611875906137b2565b9050115b9050919050565b5f8273ffffffffffffffffffffffffffffffffffffffff16826040516118a590614511565b5f6040518083038185875af1925050503d805f81146118df576040519150601f19603f3d011682016040523d82523d5f602084013e6118e4565b606091505b5050905080611928576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191f9061456f565b60405180910390fd5b505050565b611946828260405180602001604052805f815250612bb5565b5050565b5f5f5f5f8460405160200161195f919061458d565b604051602081830303815290604052805190602001209050604051602001611986906145ed565b6040516020818303038152906040528051906020012081036119b25760ff5f5f93509350935050611a63565b6040516020016119c19061464b565b6040516020818303038152906040528051906020012081036119ed575f60ff5f93509350935050611a63565b6040516020016119fc906146a9565b604051602081830303815290604052805190602001208103611a28575f5f60ff93509350935050611a63565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5a90614707565b60405180910390fd5b9193909250565b5f5f5f5f5f90505f5f90505b8651811015611dad57611aa2878281518110611a9557611a94614725565b5b6020026020010151611815565b611ae1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad890613d41565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16611b1b888381518110611b0e57611b0d614725565b5b6020026020010151610831565b73ffffffffffffffffffffffffffffffffffffffff1614611b71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b689061479c565b60405180910390fd5b5f60095f898481518110611b8857611b87614725565b5b602002602001015181526020019081526020015f206040518060a00160405290815f82015f9054906101000a900460ff1660ff1660ff1681526020015f820160019054906101000a900460ff1660ff1660ff1681526020015f820160029054906101000a900460ff1660ff1660ff1681526020015f820160039054906101000a900460ff16151515158152602001600182018054611c25906137b2565b80601f0160208091040260200160405190810160405280929190818152602001828054611c51906137b2565b8015611c9c5780601f10611c7357610100808354040283529160200191611c9c565b820191905f5260205f20905b815481529060010190602001808311611c7f57829003601f168201915b5050505050815250509050868281518110611cba57611cb9614725565b5b6020026020010151815f015160ff16611cd391906147ba565b86611cde91906147fb565b9550868281518110611cf357611cf2614725565b5b6020026020010151816020015160ff16611d0d91906147ba565b85611d1891906147fb565b9450868281518110611d2d57611d2c614725565b5b6020026020010151816040015160ff16611d4791906147ba565b84611d5291906147fb565b9350868281518110611d6757611d66614725565b5b602002602001015183611d7a91906147fb565b9250611d9f888381518110611d9257611d91614725565b5b6020026020010151612bd8565b508080600101915050611a76565b5060648114611df1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de890614878565b60405180910390fd5b509250925092565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611e6957816040517f5b08ba18000000000000000000000000000000000000000000000000000000008152600401611e60919061314f565b60405180910390fd5b8060055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611f559190613009565b60405180910390a3505050565b5f8373ffffffffffffffffffffffffffffffffffffffff163b1115612107578273ffffffffffffffffffffffffffffffffffffffff1663150b7a02868685856040518563ffffffff1660e01b8152600401611fc094939291906148e8565b6020604051808303815f875af1925050508015611ffb57506040513d601f19601f82011682018060405250810190611ff89190614946565b60015b61207c573d805f8114612029576040519150601f19603f3d011682016040523d82523d5f602084013e61202e565b606091505b505f81510361207457836040517f64a0ae9200000000000000000000000000000000000000000000000000000000815260040161206b919061314f565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461210557836040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016120fc919061314f565b60405180910390fd5b505b5050505050565b60605f600161211c84612c5a565b0190505f8167ffffffffffffffff81111561213a576121396132ee565b5b6040519080825280601f01601f19166020018201604052801561216c5781602001600182028036833780820191505090505b5090505f82602001820190505b6001156121cd578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816121c2576121c1613c9a565b5b0494505f8503612179575b819350505050919050565b60605f825190505f81036121fd5760405180602001604052805f8152509150506128f5565b5f600360028361220d91906147fb565b6122179190613cc7565b600461222391906147ba565b90505f60208261223391906147fb565b67ffffffffffffffff81111561224c5761224b6132ee565b5b6040519080825280601f01601f19166020018201604052801561227e5781602001600182028036833780820191505090505b5090505f5f90505f5f90505b6002856122979190614971565b821015612568575f876002846122ad91906147fb565b815181106122be576122bd614725565b5b602001015160f81c60f81b60f81c60ff166008896001866122df91906147fb565b815181106122f0576122ef614725565b5b602001015160f81c60f81b60f81c60ff16901b60108a868151811061231857612317614725565b5b602001015160f81c60f81b60f81c60ff16901b171790506040518060600160405280604081526020016149cc60409139603f601283901c168151811061236157612360614725565b5b602001015160f81c60f81b84838061237890613b83565b94508151811061238b5761238a614725565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053506040518060600160405280604081526020016149cc60409139603f600c83901c16815181106123eb576123ea614725565b5b602001015160f81c60f81b84838061240290613b83565b94508151811061241557612414614725565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053506040518060600160405280604081526020016149cc60409139603f600683901c168151811061247557612474614725565b5b602001015160f81c60f81b84838061248c90613b83565b94508151811061249f5761249e614725565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053506040518060600160405280604081526020016149cc60409139603f8216815181106124fb576124fa614725565b5b602001015160f81c60f81b84838061251290613b83565b94508151811061252557612524614725565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053505060038261256191906147fb565b915061228a565b848210156128ec575f601088848151811061258657612585614725565b5b602001015160f81c60f81b60f81c60ff16901b9050856001846125a991906147fb565b10156125e8576008886001856125bf91906147fb565b815181106125d0576125cf614725565b5b602001015160f81c60f81b60f81c60ff16901b811790505b6040518060600160405280604081526020016149cc60409139603f601283901c168151811061261a57612619614725565b5b602001015160f81c60f81b84838061263190613b83565b94508151811061264457612643614725565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053506040518060600160405280604081526020016149cc60409139603f600c83901c16815181106126a4576126a3614725565b5b602001015160f81c60f81b8483806126bb90613b83565b9450815181106126ce576126cd614725565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053508560018461270a91906147fb565b101561280d576040518060600160405280604081526020016149cc60409139603f600683901c168151811061274257612741614725565b5b602001015160f81c60f81b84838061275990613b83565b94508151811061276c5761276b614725565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053507f3d000000000000000000000000000000000000000000000000000000000000008483806127c790613b83565b9450815181106127da576127d9614725565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053506128ea565b7f3d0000000000000000000000000000000000000000000000000000000000000084838061283a90613b83565b94508151811061284d5761284c614725565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053507f3d000000000000000000000000000000000000000000000000000000000000008483806128a890613b83565b9450815181106128bb576128ba614725565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053505b505b82955050505050505b919050565b5f60025f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b808061296b57505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15612a9d575f61297a846113e8565b90505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156129e457508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b80156129f757506129f58184611222565b155b15612a3957826040517fa9fbf51f000000000000000000000000000000000000000000000000000000008152600401612a30919061314f565b60405180910390fd5b8115612a9b57838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b8360045f8581526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b612afd838383612dab565b612bb0575f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612b7157806040517f7e273289000000000000000000000000000000000000000000000000000000008152600401612b68919061325a565b60405180910390fd5b81816040517f177e802f000000000000000000000000000000000000000000000000000000008152600401612ba79291906149a4565b60405180910390fd5b505050565b612bbf8383612e6b565b612bd3612bca6114a7565b5f858585611f62565b505050565b5f612be45f835f6114c0565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612c5657816040517f7e273289000000000000000000000000000000000000000000000000000000008152600401612c4d919061325a565b60405180910390fd5b5050565b5f5f5f90507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612cb6577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612cac57612cab613c9a565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612cf3576d04ee2d6d415b85acef81000000008381612ce957612ce8613c9a565b5b0492506020810190505b662386f26fc100008310612d2257662386f26fc100008381612d1857612d17613c9a565b5b0492506010810190505b6305f5e1008310612d4b576305f5e1008381612d4157612d40613c9a565b5b0492506008810190505b6127108310612d70576127108381612d6657612d65613c9a565b5b0492506004810190505b60648310612d935760648381612d8957612d88613c9a565b5b0492506002810190505b600a8310612da2576001810190505b80915050919050565b5f5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015612e6257508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612e235750612e228484611222565b5b80612e6157508273ffffffffffffffffffffffffffffffffffffffff16612e498361146e565b73ffffffffffffffffffffffffffffffffffffffff16145b5b90509392505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612edb575f6040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401612ed2919061314f565b60405180910390fd5b5f612ee783835f6114c0565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612f59575f6040517f73c6ac6e000000000000000000000000000000000000000000000000000000008152600401612f50919061314f565b60405180910390fd5b505050565b5f604051905090565b5f5ffd5b5f5ffd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612fa381612f6f565b8114612fad575f5ffd5b50565b5f81359050612fbe81612f9a565b92915050565b5f60208284031215612fd957612fd8612f67565b5b5f612fe684828501612fb0565b91505092915050565b5f8115159050919050565b61300381612fef565b82525050565b5f60208201905061301c5f830184612ffa565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61306482613022565b61306e818561302c565b935061307e81856020860161303c565b6130878161304a565b840191505092915050565b5f6020820190508181035f8301526130aa818461305a565b905092915050565b5f819050919050565b6130c4816130b2565b81146130ce575f5ffd5b50565b5f813590506130df816130bb565b92915050565b5f602082840312156130fa576130f9612f67565b5b5f613107848285016130d1565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61313982613110565b9050919050565b6131498161312f565b82525050565b5f6020820190506131625f830184613140565b92915050565b6131718161312f565b811461317b575f5ffd5b50565b5f8135905061318c81613168565b92915050565b5f5f604083850312156131a8576131a7612f67565b5b5f6131b58582860161317e565b92505060206131c6858286016130d1565b9150509250929050565b5f5f5f606084860312156131e7576131e6612f67565b5b5f6131f48682870161317e565b93505060206132058682870161317e565b9250506040613216868287016130d1565b9150509250925092565b5f6020828403121561323557613234612f67565b5b5f6132428482850161317e565b91505092915050565b613254816130b2565b82525050565b5f60208201905061326d5f83018461324b565b92915050565b5f60ff82169050919050565b61328881613273565b82525050565b5f60a0820190506132a15f83018861327f565b6132ae602083018761327f565b6132bb604083018661327f565b6132c86060830185612ffa565b81810360808301526132da818461305a565b90509695505050505050565b5f5ffd5b5f5ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6133248261304a565b810181811067ffffffffffffffff82111715613343576133426132ee565b5b80604052505050565b5f613355612f5e565b9050613361828261331b565b919050565b5f67ffffffffffffffff8211156133805761337f6132ee565b5b6133898261304a565b9050602081019050919050565b828183375f83830152505050565b5f6133b66133b184613366565b61334c565b9050828152602081018484840111156133d2576133d16132ea565b5b6133dd848285613396565b509392505050565b5f82601f8301126133f9576133f86132e6565b5b81356134098482602086016133a4565b91505092915050565b5f6020828403121561342757613426612f67565b5b5f82013567ffffffffffffffff81111561344457613443612f6b565b5b613450848285016133e5565b91505092915050565b5f67ffffffffffffffff821115613473576134726132ee565b5b602082029050602081019050919050565b5f5ffd5b5f61349a61349584613459565b61334c565b905080838252602082019050602084028301858111156134bd576134bc613484565b5b835b818110156134e657806134d288826130d1565b8452602084019350506020810190506134bf565b5050509392505050565b5f82601f830112613504576135036132e6565b5b8135613514848260208601613488565b91505092915050565b5f5f5f6060848603121561353457613533612f67565b5b5f84013567ffffffffffffffff81111561355157613550612f6b565b5b61355d868287016134f0565b935050602084013567ffffffffffffffff81111561357e5761357d612f6b565b5b61358a868287016134f0565b925050604084013567ffffffffffffffff8111156135ab576135aa612f6b565b5b6135b7868287016133e5565b9150509250925092565b6135ca81612fef565b81146135d4575f5ffd5b50565b5f813590506135e5816135c1565b92915050565b5f5f6040838503121561360157613600612f67565b5b5f61360e8582860161317e565b925050602061361f858286016135d7565b9150509250929050565b5f67ffffffffffffffff821115613643576136426132ee565b5b61364c8261304a565b9050602081019050919050565b5f61366b61366684613629565b61334c565b905082815260208101848484011115613687576136866132ea565b5b613692848285613396565b509392505050565b5f82601f8301126136ae576136ad6132e6565b5b81356136be848260208601613659565b91505092915050565b5f5f5f5f608085870312156136df576136de612f67565b5b5f6136ec8782880161317e565b94505060206136fd8782880161317e565b935050604061370e878288016130d1565b925050606085013567ffffffffffffffff81111561372f5761372e612f6b565b5b61373b8782880161369a565b91505092959194509250565b5f5f6040838503121561375d5761375c612f67565b5b5f61376a8582860161317e565b925050602061377b8582860161317e565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806137c957607f821691505b6020821081036137dc576137db613785565b5b50919050565b5f6060820190506137f55f830186613140565b613802602083018561324b565b61380f6040830184613140565b949350505050565b7f4e465420646f6573206e6f7420657869737400000000000000000000000000005f82015250565b5f61384b60128361302c565b915061385682613817565b602082019050919050565b5f6020820190508181035f8301526138788161383f565b9050919050565b7f53656e642065786163746c7920312045544800000000000000000000000000005f82015250565b5f6138b360128361302c565b91506138be8261387f565b602082019050919050565b5f6020820190508181035f8301526138e0816138a7565b9050919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026139437fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613908565b61394d8683613908565b95508019841693508086168417925050509392505050565b5f819050919050565b5f61398861398361397e846130b2565b613965565b6130b2565b9050919050565b5f819050919050565b6139a18361396e565b6139b56139ad8261398f565b848454613914565b825550505050565b5f5f905090565b6139cc6139bd565b6139d7818484613998565b505050565b5b818110156139fa576139ef5f826139c4565b6001810190506139dd565b5050565b601f821115613a3f57613a10816138e7565b613a19846138f9565b81016020851015613a28578190505b613a3c613a34856138f9565b8301826139dc565b50505b505050565b5f82821c905092915050565b5f613a5f5f1984600802613a44565b1980831691505092915050565b5f613a778383613a50565b9150826002028217905092915050565b613a9082613022565b67ffffffffffffffff811115613aa957613aa86132ee565b5b613ab382546137b2565b613abe8282856139fe565b5f60209050601f831160018114613aef575f8415613add578287015190505b613ae78582613a6c565b865550613b4e565b601f198416613afd866138e7565b5f5b82811015613b2457848901518255600182019150602085019450602081019050613aff565b86831015613b415784890151613b3d601f891682613a50565b8355505b6001600288020188555050505b505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f613b8d826130b2565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613bbf57613bbe613b56565b5b600182019050919050565b7f53656e642065786163746c7920302e31204554480000000000000000000000005f82015250565b5f613bfe60148361302c565b9150613c0982613bca565b602082019050919050565b5f6020820190508181035f830152613c2b81613bf2565b9050919050565b7f496e76616c696420696e707574000000000000000000000000000000000000005f82015250565b5f613c66600d8361302c565b9150613c7182613c32565b602082019050919050565b5f6020820190508181035f830152613c9381613c5a565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f613cd1826130b2565b9150613cdc836130b2565b925082613cec57613ceb613c9a565b5b828204905092915050565b7f546f6b656e20646f6573206e6f742065786973740000000000000000000000005f82015250565b5f613d2b60148361302c565b9150613d3682613cf7565b602082019050919050565b5f6020820190508181035f830152613d5881613d1f565b9050919050565b5f81905092915050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f32305f8201527f30302f737667222076696577426f783d223020302033303020333030223e0000602082015250565b5f613dc3603e83613d5f565b9150613dce82613d69565b603e82019050919050565b7f3c726563742077696474683d2233303022206865696768743d223330302220665f8201527f696c6c3d22726762280000000000000000000000000000000000000000000000602082015250565b5f613e33602983613d5f565b9150613e3e82613dd9565b602982019050919050565b5f613e5382613022565b613e5d8185613d5f565b9350613e6d81856020860161303c565b80840191505092915050565b7f2c000000000000000000000000000000000000000000000000000000000000005f82015250565b5f613ead600183613d5f565b9150613eb882613e79565b600182019050919050565b7f29222f3e3c2f7376673e000000000000000000000000000000000000000000005f82015250565b5f613ef7600a83613d5f565b9150613f0282613ec3565b600a82019050919050565b5f613f1782613db7565b9150613f2282613e27565b9150613f2e8286613e49565b9150613f3982613ea1565b9150613f458285613e49565b9150613f5082613ea1565b9150613f5c8284613e49565b9150613f6782613eeb565b9150819050949350505050565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c0000000000005f82015250565b5f613fa8601a83613d5f565b9150613fb382613f74565b601a82019050919050565b5f613fc882613f9c565b9150613fd48284613e49565b915081905092915050565b7f7b226e616d65223a2200000000000000000000000000000000000000000000005f82015250565b5f614013600983613d5f565b915061401e82613fdf565b600982019050919050565b7f222c0000000000000000000000000000000000000000000000000000000000005f82015250565b5f61405d600283613d5f565b915061406882614029565b600282019050919050565b7f226465736372697074696f6e223a22417065436f6c6f72204e4654222c0000005f82015250565b5f6140a7601d83613d5f565b91506140b282614073565b601d82019050919050565b7f2261747472696275746573223a5b0000000000000000000000000000000000005f82015250565b5f6140f1600e83613d5f565b91506140fc826140bd565b600e82019050919050565b7f7b2274726169745f74797065223a2252222c2276616c7565223a2200000000005f82015250565b5f61413b601b83613d5f565b915061414682614107565b601b82019050919050565b7f227d2c00000000000000000000000000000000000000000000000000000000005f82015250565b5f614185600383613d5f565b915061419082614151565b600382019050919050565b7f7b2274726169745f74797065223a2247222c2276616c7565223a2200000000005f82015250565b5f6141cf601b83613d5f565b91506141da8261419b565b601b82019050919050565b7f7b2274726169745f74797065223a2242222c2276616c7565223a2200000000005f82015250565b5f614219601b83613d5f565b9150614224826141e5565b601b82019050919050565b7f7b2274726169745f74797065223a225072696d617279222c2276616c7565223a5f8201527f2200000000000000000000000000000000000000000000000000000000000000602082015250565b5f614289602183613d5f565b91506142948261422f565b602182019050919050565b7f227d0000000000000000000000000000000000000000000000000000000000005f82015250565b5f6142d3600283613d5f565b91506142de8261429f565b600282019050919050565b7f5d2c0000000000000000000000000000000000000000000000000000000000005f82015250565b5f61431d600283613d5f565b9150614328826142e9565b600282019050919050565b7f22696d616765223a2200000000000000000000000000000000000000000000005f82015250565b5f614367600983613d5f565b915061437282614333565b600982019050919050565b5f61438782614007565b91506143938289613e49565b915061439e82614051565b91506143a98261409b565b91506143b4826140e5565b91506143bf8261412f565b91506143cb8288613e49565b91506143d682614179565b91506143e1826141c3565b91506143ed8287613e49565b91506143f882614179565b91506144038261420d565b915061440f8286613e49565b915061441a82614179565b91506144258261427d565b91506144318285613e49565b915061443c826142c7565b915061444782614311565b91506144528261435b565b915061445e8284613e49565b9150614469826142c7565b9150819050979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000005f82015250565b5f6144ad601d83613d5f565b91506144b882614479565b601d82019050919050565b5f6144cd826144a1565b91506144d98284613e49565b915081905092915050565b5f81905092915050565b50565b5f6144fc5f836144e4565b9150614507826144ee565b5f82019050919050565b5f61451b826144f1565b9150819050919050565b7f5472616e73666572206661696c656400000000000000000000000000000000005f82015250565b5f614559600f8361302c565b915061456482614525565b602082019050919050565b5f6020820190508181035f8301526145868161454d565b9050919050565b5f6145988284613e49565b915081905092915050565b7f72656400000000000000000000000000000000000000000000000000000000005f82015250565b5f6145d7600383613d5f565b91506145e2826145a3565b600382019050919050565b5f6145f7826145cb565b9150819050919050565b7f677265656e0000000000000000000000000000000000000000000000000000005f82015250565b5f614635600583613d5f565b915061464082614601565b600582019050919050565b5f61465582614629565b9150819050919050565b7f626c7565000000000000000000000000000000000000000000000000000000005f82015250565b5f614693600483613d5f565b915061469e8261465f565b600482019050919050565b5f6146b382614687565b9150819050919050565b7f496e76616c696420636f6c6f72000000000000000000000000000000000000005f82015250565b5f6146f1600d8361302c565b91506146fc826146bd565b602082019050919050565b5f6020820190508181035f83015261471e816146e5565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e6f7420746f6b656e206f776e657200000000000000000000000000000000005f82015250565b5f614786600f8361302c565b915061479182614752565b602082019050919050565b5f6020820190508181035f8301526147b38161477a565b9050919050565b5f6147c4826130b2565b91506147cf836130b2565b92508282026147dd816130b2565b915082820484148315176147f4576147f3613b56565b5b5092915050565b5f614805826130b2565b9150614810836130b2565b925082820190508082111561482857614827613b56565b5b92915050565b7f50657263656e7461676573206d7573742073756d20746f2031303000000000005f82015250565b5f614862601b8361302c565b915061486d8261482e565b602082019050919050565b5f6020820190508181035f83015261488f81614856565b9050919050565b5f81519050919050565b5f82825260208201905092915050565b5f6148ba82614896565b6148c481856148a0565b93506148d481856020860161303c565b6148dd8161304a565b840191505092915050565b5f6080820190506148fb5f830187613140565b6149086020830186613140565b614915604083018561324b565b818103606083015261492781846148b0565b905095945050505050565b5f8151905061494081612f9a565b92915050565b5f6020828403121561495b5761495a612f67565b5b5f61496884828501614932565b91505092915050565b5f61497b826130b2565b9150614986836130b2565b925082820390508181111561499e5761499d613b56565b5b92915050565b5f6040820190506149b75f830185613140565b6149c4602083018461324b565b939250505056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220274481ffa7835141be266adae64eeba8c237a1df7ce123507aa049831b88f73064736f6c634300081d00330000000000000000000000009f9afad1c7aecc9d80e2208bb5a8292160f3cf17
Deployed Bytecode
0x60806040526004361061013f575f3560e01c80638184eae2116100b5578063b88d4fde1161006e578063b88d4fde14610433578063c87b56dd1461045b578063d7bf81a314610497578063e985e9c5146104c1578063f0f44260146104fd578063f2fde38b146105255761013f565b80638184eae2146103555780638da5cb5b14610371578063959b44cb1461039b57806395d89b41146103b7578063a22cb465146103e1578063b7cc6ce3146104095761013f565b806342842e0e1161010757806342842e0e1461023557806361d027b31461025d5780636352211e1461028757806370a08231146102c3578063715018a6146102ff578063799ebe62146103155761013f565b806301ffc9a71461014357806306fdde031461017f578063081812fc146101a9578063095ea7b3146101e557806323b872dd1461020d575b5f5ffd5b34801561014e575f5ffd5b5061016960048036038101906101649190612fc4565b61054d565b6040516101769190613009565b60405180910390f35b34801561018a575f5ffd5b5061019361062e565b6040516101a09190613092565b60405180910390f35b3480156101b4575f5ffd5b506101cf60048036038101906101ca91906130e5565b6106bd565b6040516101dc919061314f565b60405180910390f35b3480156101f0575f5ffd5b5061020b60048036038101906102069190613192565b6106d8565b005b348015610218575f5ffd5b50610233600480360381019061022e91906131d0565b6106ee565b005b348015610240575f5ffd5b5061025b600480360381019061025691906131d0565b6107ed565b005b348015610268575f5ffd5b5061027161080c565b60405161027e919061314f565b60405180910390f35b348015610292575f5ffd5b506102ad60048036038101906102a891906130e5565b610831565b6040516102ba919061314f565b60405180910390f35b3480156102ce575f5ffd5b506102e960048036038101906102e49190613220565b610842565b6040516102f6919061325a565b60405180910390f35b34801561030a575f5ffd5b506103136108f8565b005b348015610320575f5ffd5b5061033b600480360381019061033691906130e5565b61090b565b60405161034c95949392919061328e565b60405180910390f35b61036f600480360381019061036a9190613412565b610aa1565b005b34801561037c575f5ffd5b50610385610c30565b604051610392919061314f565b60405180910390f35b6103b560048036038101906103b0919061351d565b610c58565b005b3480156103c2575f5ffd5b506103cb610e51565b6040516103d89190613092565b60405180910390f35b3480156103ec575f5ffd5b50610407600480360381019061040291906135eb565b610ee1565b005b348015610414575f5ffd5b5061041d610ef7565b60405161042a919061325a565b60405180910390f35b34801561043e575f5ffd5b50610459600480360381019061045491906136c7565b610f03565b005b348015610466575f5ffd5b50610481600480360381019061047c91906130e5565b610f28565b60405161048e9190613092565b60405180910390f35b3480156104a2575f5ffd5b506104ab611216565b6040516104b8919061325a565b60405180910390f35b3480156104cc575f5ffd5b506104e760048036038101906104e29190613747565b611222565b6040516104f49190613009565b60405180910390f35b348015610508575f5ffd5b50610523600480360381019061051e9190613220565b6112b0565b005b348015610530575f5ffd5b5061054b60048036038101906105469190613220565b6112fb565b005b5f7f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061061757507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061062757506106268261137f565b5b9050919050565b60605f805461063c906137b2565b80601f0160208091040260200160405190810160405280929190818152602001828054610668906137b2565b80156106b35780601f1061068a576101008083540402835291602001916106b3565b820191905f5260205f20905b81548152906001019060200180831161069657829003601f168201915b5050505050905090565b5f6106c7826113e8565b506106d18261146e565b9050919050565b6106ea82826106e56114a7565b6114ae565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361075e575f6040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401610755919061314f565b60405180910390fd5b5f610771838361076c6114a7565b6114c0565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146107e7578382826040517f64283d7b0000000000000000000000000000000000000000000000000000000081526004016107de939291906137e2565b60405180910390fd5b50505050565b61080783838360405180602001604052805f815250610f03565b505050565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f61083b826113e8565b9050919050565b5f5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036108b3575f6040517f89c62b640000000000000000000000000000000000000000000000000000000081526004016108aa919061314f565b60405180910390fd5b60035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b6109006116cb565b6109095f611752565b565b5f5f5f5f606061091a86611815565b610959576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095090613861565b60405180910390fd5b5f60095f8881526020019081526020015f206040518060a00160405290815f82015f9054906101000a900460ff1660ff1660ff1681526020015f820160019054906101000a900460ff1660ff1660ff1681526020015f820160029054906101000a900460ff1660ff1660ff1681526020015f820160039054906101000a900460ff161515151581526020016001820180546109f3906137b2565b80601f0160208091040260200160405190810160405280929190818152602001828054610a1f906137b2565b8015610a6a5780601f10610a4157610100808354040283529160200191610a6a565b820191905f5260205f20905b815481529060010190602001808311610a4d57829003601f168201915b5050505050815250509050805f01518160200151826040015183606001518460800151955095509550955095505091939590929450565b670de0b6b3a76400003414610aeb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae2906138c9565b60405180910390fd5b610b1660075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1634611880565b5f6008549050610b26338261192d565b5f5f5f610b328561194a565b9250925092506040518060a001604052808460ff1681526020018360ff1681526020018260ff1681526020016001151581526020018681525060095f8681526020019081526020015f205f820151815f015f6101000a81548160ff021916908360ff1602179055506020820151815f0160016101000a81548160ff021916908360ff1602179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151815f0160036101000a81548160ff0219169083151502179055506080820151816001019081610c0e9190613a87565b5090505060085f815480929190610c2490613b83565b91905055505050505050565b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b67016345785d8a00003414610ca2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9990613c14565b60405180910390fd5b610ccd60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1634611880565b8151835114610d11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0890613c7c565b60405180910390fd5b5f5f5f610d1e8686611a6a565b9250925092505f6008549050610d34338261192d565b6040518060a00160405280606486610d4c9190613cc7565b60ff168152602001606485610d619190613cc7565b60ff168152602001606484610d769190613cc7565b60ff1681526020015f151581526020018681525060095f8381526020019081526020015f205f820151815f015f6101000a81548160ff021916908360ff1602179055506020820151815f0160016101000a81548160ff021916908360ff1602179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151815f0160036101000a81548160ff0219169083151502179055506080820151816001019081610e2d9190613a87565b5090505060085f815480929190610e4390613b83565b919050555050505050505050565b606060018054610e60906137b2565b80601f0160208091040260200160405190810160405280929190818152602001828054610e8c906137b2565b8015610ed75780601f10610eae57610100808354040283529160200191610ed7565b820191905f5260205f20905b815481529060010190602001808311610eba57829003601f168201915b5050505050905090565b610ef3610eec6114a7565b8383611df9565b5050565b67016345785d8a000081565b610f0e8484846106ee565b610f22610f196114a7565b85858585611f62565b50505050565b6060610f3382611815565b610f72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6990613d41565b60405180910390fd5b5f60095f8481526020019081526020015f206040518060a00160405290815f82015f9054906101000a900460ff1660ff1660ff1681526020015f820160019054906101000a900460ff1660ff1660ff1681526020015f820160029054906101000a900460ff1660ff1660ff1681526020015f820160039054906101000a900460ff1615151515815260200160018201805461100c906137b2565b80601f0160208091040260200160405190810160405280929190818152602001828054611038906137b2565b80156110835780601f1061105a57610100808354040283529160200191611083565b820191905f5260205f20905b81548152906001019060200180831161106657829003601f168201915b50505050508152505090505f61109e825f015160ff1661210e565b6110ae836020015160ff1661210e565b6110be846040015160ff1661210e565b6040516020016110d093929190613f0d565b60405160208183030381529060405290505f6110eb826121d8565b6040516020016110fb9190613fbe565b60405160208183030381529060405290505f6111e98460800151611124865f015160ff1661210e565b611134876020015160ff1661210e565b611144886040015160ff1661210e565b8860600151611188576040518060400160405280600581526020017f66616c73650000000000000000000000000000000000000000000000000000008152506111bf565b6040518060400160405280600481526020017f74727565000000000000000000000000000000000000000000000000000000008152505b876040516020016111d59695949392919061437d565b6040516020818303038152906040526121d8565b9050806040516020016111fc91906144c3565b604051602081830303815290604052945050505050919050565b670de0b6b3a764000081565b5f60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b6112b86116cb565b8060075f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6113036116cb565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611373575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161136a919061314f565b60405180910390fd5b61137c81611752565b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f5f6113f3836128fa565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361146557826040517f7e27328900000000000000000000000000000000000000000000000000000000815260040161145c919061325a565b60405180910390fd5b80915050919050565b5f60045f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f33905090565b6114bb8383836001612933565b505050565b5f5f6114cb846128fa565b90505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461150c5761150b818486612af2565b5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146115975761154b5f855f5f612933565b600160035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825403925050819055505b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161461161657600160035f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8460025f8681526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4809150509392505050565b6116d36114a7565b73ffffffffffffffffffffffffffffffffffffffff166116f1610c30565b73ffffffffffffffffffffffffffffffffffffffff1614611750576117146114a7565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401611747919061314f565b60405180910390fd5b565b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f5f73ffffffffffffffffffffffffffffffffffffffff16611836836128fa565b73ffffffffffffffffffffffffffffffffffffffff161415801561187957505f60095f8481526020019081526020015f206001018054611875906137b2565b9050115b9050919050565b5f8273ffffffffffffffffffffffffffffffffffffffff16826040516118a590614511565b5f6040518083038185875af1925050503d805f81146118df576040519150601f19603f3d011682016040523d82523d5f602084013e6118e4565b606091505b5050905080611928576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191f9061456f565b60405180910390fd5b505050565b611946828260405180602001604052805f815250612bb5565b5050565b5f5f5f5f8460405160200161195f919061458d565b604051602081830303815290604052805190602001209050604051602001611986906145ed565b6040516020818303038152906040528051906020012081036119b25760ff5f5f93509350935050611a63565b6040516020016119c19061464b565b6040516020818303038152906040528051906020012081036119ed575f60ff5f93509350935050611a63565b6040516020016119fc906146a9565b604051602081830303815290604052805190602001208103611a28575f5f60ff93509350935050611a63565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5a90614707565b60405180910390fd5b9193909250565b5f5f5f5f5f90505f5f90505b8651811015611dad57611aa2878281518110611a9557611a94614725565b5b6020026020010151611815565b611ae1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad890613d41565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16611b1b888381518110611b0e57611b0d614725565b5b6020026020010151610831565b73ffffffffffffffffffffffffffffffffffffffff1614611b71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b689061479c565b60405180910390fd5b5f60095f898481518110611b8857611b87614725565b5b602002602001015181526020019081526020015f206040518060a00160405290815f82015f9054906101000a900460ff1660ff1660ff1681526020015f820160019054906101000a900460ff1660ff1660ff1681526020015f820160029054906101000a900460ff1660ff1660ff1681526020015f820160039054906101000a900460ff16151515158152602001600182018054611c25906137b2565b80601f0160208091040260200160405190810160405280929190818152602001828054611c51906137b2565b8015611c9c5780601f10611c7357610100808354040283529160200191611c9c565b820191905f5260205f20905b815481529060010190602001808311611c7f57829003601f168201915b5050505050815250509050868281518110611cba57611cb9614725565b5b6020026020010151815f015160ff16611cd391906147ba565b86611cde91906147fb565b9550868281518110611cf357611cf2614725565b5b6020026020010151816020015160ff16611d0d91906147ba565b85611d1891906147fb565b9450868281518110611d2d57611d2c614725565b5b6020026020010151816040015160ff16611d4791906147ba565b84611d5291906147fb565b9350868281518110611d6757611d66614725565b5b602002602001015183611d7a91906147fb565b9250611d9f888381518110611d9257611d91614725565b5b6020026020010151612bd8565b508080600101915050611a76565b5060648114611df1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de890614878565b60405180910390fd5b509250925092565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611e6957816040517f5b08ba18000000000000000000000000000000000000000000000000000000008152600401611e60919061314f565b60405180910390fd5b8060055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611f559190613009565b60405180910390a3505050565b5f8373ffffffffffffffffffffffffffffffffffffffff163b1115612107578273ffffffffffffffffffffffffffffffffffffffff1663150b7a02868685856040518563ffffffff1660e01b8152600401611fc094939291906148e8565b6020604051808303815f875af1925050508015611ffb57506040513d601f19601f82011682018060405250810190611ff89190614946565b60015b61207c573d805f8114612029576040519150601f19603f3d011682016040523d82523d5f602084013e61202e565b606091505b505f81510361207457836040517f64a0ae9200000000000000000000000000000000000000000000000000000000815260040161206b919061314f565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461210557836040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016120fc919061314f565b60405180910390fd5b505b5050505050565b60605f600161211c84612c5a565b0190505f8167ffffffffffffffff81111561213a576121396132ee565b5b6040519080825280601f01601f19166020018201604052801561216c5781602001600182028036833780820191505090505b5090505f82602001820190505b6001156121cd578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816121c2576121c1613c9a565b5b0494505f8503612179575b819350505050919050565b60605f825190505f81036121fd5760405180602001604052805f8152509150506128f5565b5f600360028361220d91906147fb565b6122179190613cc7565b600461222391906147ba565b90505f60208261223391906147fb565b67ffffffffffffffff81111561224c5761224b6132ee565b5b6040519080825280601f01601f19166020018201604052801561227e5781602001600182028036833780820191505090505b5090505f5f90505f5f90505b6002856122979190614971565b821015612568575f876002846122ad91906147fb565b815181106122be576122bd614725565b5b602001015160f81c60f81b60f81c60ff166008896001866122df91906147fb565b815181106122f0576122ef614725565b5b602001015160f81c60f81b60f81c60ff16901b60108a868151811061231857612317614725565b5b602001015160f81c60f81b60f81c60ff16901b171790506040518060600160405280604081526020016149cc60409139603f601283901c168151811061236157612360614725565b5b602001015160f81c60f81b84838061237890613b83565b94508151811061238b5761238a614725565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053506040518060600160405280604081526020016149cc60409139603f600c83901c16815181106123eb576123ea614725565b5b602001015160f81c60f81b84838061240290613b83565b94508151811061241557612414614725565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053506040518060600160405280604081526020016149cc60409139603f600683901c168151811061247557612474614725565b5b602001015160f81c60f81b84838061248c90613b83565b94508151811061249f5761249e614725565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053506040518060600160405280604081526020016149cc60409139603f8216815181106124fb576124fa614725565b5b602001015160f81c60f81b84838061251290613b83565b94508151811061252557612524614725565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053505060038261256191906147fb565b915061228a565b848210156128ec575f601088848151811061258657612585614725565b5b602001015160f81c60f81b60f81c60ff16901b9050856001846125a991906147fb565b10156125e8576008886001856125bf91906147fb565b815181106125d0576125cf614725565b5b602001015160f81c60f81b60f81c60ff16901b811790505b6040518060600160405280604081526020016149cc60409139603f601283901c168151811061261a57612619614725565b5b602001015160f81c60f81b84838061263190613b83565b94508151811061264457612643614725565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053506040518060600160405280604081526020016149cc60409139603f600c83901c16815181106126a4576126a3614725565b5b602001015160f81c60f81b8483806126bb90613b83565b9450815181106126ce576126cd614725565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053508560018461270a91906147fb565b101561280d576040518060600160405280604081526020016149cc60409139603f600683901c168151811061274257612741614725565b5b602001015160f81c60f81b84838061275990613b83565b94508151811061276c5761276b614725565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053507f3d000000000000000000000000000000000000000000000000000000000000008483806127c790613b83565b9450815181106127da576127d9614725565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053506128ea565b7f3d0000000000000000000000000000000000000000000000000000000000000084838061283a90613b83565b94508151811061284d5761284c614725565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053507f3d000000000000000000000000000000000000000000000000000000000000008483806128a890613b83565b9450815181106128bb576128ba614725565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053505b505b82955050505050505b919050565b5f60025f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b808061296b57505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15612a9d575f61297a846113e8565b90505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156129e457508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b80156129f757506129f58184611222565b155b15612a3957826040517fa9fbf51f000000000000000000000000000000000000000000000000000000008152600401612a30919061314f565b60405180910390fd5b8115612a9b57838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b8360045f8581526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b612afd838383612dab565b612bb0575f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612b7157806040517f7e273289000000000000000000000000000000000000000000000000000000008152600401612b68919061325a565b60405180910390fd5b81816040517f177e802f000000000000000000000000000000000000000000000000000000008152600401612ba79291906149a4565b60405180910390fd5b505050565b612bbf8383612e6b565b612bd3612bca6114a7565b5f858585611f62565b505050565b5f612be45f835f6114c0565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612c5657816040517f7e273289000000000000000000000000000000000000000000000000000000008152600401612c4d919061325a565b60405180910390fd5b5050565b5f5f5f90507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612cb6577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612cac57612cab613c9a565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612cf3576d04ee2d6d415b85acef81000000008381612ce957612ce8613c9a565b5b0492506020810190505b662386f26fc100008310612d2257662386f26fc100008381612d1857612d17613c9a565b5b0492506010810190505b6305f5e1008310612d4b576305f5e1008381612d4157612d40613c9a565b5b0492506008810190505b6127108310612d70576127108381612d6657612d65613c9a565b5b0492506004810190505b60648310612d935760648381612d8957612d88613c9a565b5b0492506002810190505b600a8310612da2576001810190505b80915050919050565b5f5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015612e6257508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612e235750612e228484611222565b5b80612e6157508273ffffffffffffffffffffffffffffffffffffffff16612e498361146e565b73ffffffffffffffffffffffffffffffffffffffff16145b5b90509392505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612edb575f6040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401612ed2919061314f565b60405180910390fd5b5f612ee783835f6114c0565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612f59575f6040517f73c6ac6e000000000000000000000000000000000000000000000000000000008152600401612f50919061314f565b60405180910390fd5b505050565b5f604051905090565b5f5ffd5b5f5ffd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612fa381612f6f565b8114612fad575f5ffd5b50565b5f81359050612fbe81612f9a565b92915050565b5f60208284031215612fd957612fd8612f67565b5b5f612fe684828501612fb0565b91505092915050565b5f8115159050919050565b61300381612fef565b82525050565b5f60208201905061301c5f830184612ffa565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61306482613022565b61306e818561302c565b935061307e81856020860161303c565b6130878161304a565b840191505092915050565b5f6020820190508181035f8301526130aa818461305a565b905092915050565b5f819050919050565b6130c4816130b2565b81146130ce575f5ffd5b50565b5f813590506130df816130bb565b92915050565b5f602082840312156130fa576130f9612f67565b5b5f613107848285016130d1565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61313982613110565b9050919050565b6131498161312f565b82525050565b5f6020820190506131625f830184613140565b92915050565b6131718161312f565b811461317b575f5ffd5b50565b5f8135905061318c81613168565b92915050565b5f5f604083850312156131a8576131a7612f67565b5b5f6131b58582860161317e565b92505060206131c6858286016130d1565b9150509250929050565b5f5f5f606084860312156131e7576131e6612f67565b5b5f6131f48682870161317e565b93505060206132058682870161317e565b9250506040613216868287016130d1565b9150509250925092565b5f6020828403121561323557613234612f67565b5b5f6132428482850161317e565b91505092915050565b613254816130b2565b82525050565b5f60208201905061326d5f83018461324b565b92915050565b5f60ff82169050919050565b61328881613273565b82525050565b5f60a0820190506132a15f83018861327f565b6132ae602083018761327f565b6132bb604083018661327f565b6132c86060830185612ffa565b81810360808301526132da818461305a565b90509695505050505050565b5f5ffd5b5f5ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6133248261304a565b810181811067ffffffffffffffff82111715613343576133426132ee565b5b80604052505050565b5f613355612f5e565b9050613361828261331b565b919050565b5f67ffffffffffffffff8211156133805761337f6132ee565b5b6133898261304a565b9050602081019050919050565b828183375f83830152505050565b5f6133b66133b184613366565b61334c565b9050828152602081018484840111156133d2576133d16132ea565b5b6133dd848285613396565b509392505050565b5f82601f8301126133f9576133f86132e6565b5b81356134098482602086016133a4565b91505092915050565b5f6020828403121561342757613426612f67565b5b5f82013567ffffffffffffffff81111561344457613443612f6b565b5b613450848285016133e5565b91505092915050565b5f67ffffffffffffffff821115613473576134726132ee565b5b602082029050602081019050919050565b5f5ffd5b5f61349a61349584613459565b61334c565b905080838252602082019050602084028301858111156134bd576134bc613484565b5b835b818110156134e657806134d288826130d1565b8452602084019350506020810190506134bf565b5050509392505050565b5f82601f830112613504576135036132e6565b5b8135613514848260208601613488565b91505092915050565b5f5f5f6060848603121561353457613533612f67565b5b5f84013567ffffffffffffffff81111561355157613550612f6b565b5b61355d868287016134f0565b935050602084013567ffffffffffffffff81111561357e5761357d612f6b565b5b61358a868287016134f0565b925050604084013567ffffffffffffffff8111156135ab576135aa612f6b565b5b6135b7868287016133e5565b9150509250925092565b6135ca81612fef565b81146135d4575f5ffd5b50565b5f813590506135e5816135c1565b92915050565b5f5f6040838503121561360157613600612f67565b5b5f61360e8582860161317e565b925050602061361f858286016135d7565b9150509250929050565b5f67ffffffffffffffff821115613643576136426132ee565b5b61364c8261304a565b9050602081019050919050565b5f61366b61366684613629565b61334c565b905082815260208101848484011115613687576136866132ea565b5b613692848285613396565b509392505050565b5f82601f8301126136ae576136ad6132e6565b5b81356136be848260208601613659565b91505092915050565b5f5f5f5f608085870312156136df576136de612f67565b5b5f6136ec8782880161317e565b94505060206136fd8782880161317e565b935050604061370e878288016130d1565b925050606085013567ffffffffffffffff81111561372f5761372e612f6b565b5b61373b8782880161369a565b91505092959194509250565b5f5f6040838503121561375d5761375c612f67565b5b5f61376a8582860161317e565b925050602061377b8582860161317e565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806137c957607f821691505b6020821081036137dc576137db613785565b5b50919050565b5f6060820190506137f55f830186613140565b613802602083018561324b565b61380f6040830184613140565b949350505050565b7f4e465420646f6573206e6f7420657869737400000000000000000000000000005f82015250565b5f61384b60128361302c565b915061385682613817565b602082019050919050565b5f6020820190508181035f8301526138788161383f565b9050919050565b7f53656e642065786163746c7920312045544800000000000000000000000000005f82015250565b5f6138b360128361302c565b91506138be8261387f565b602082019050919050565b5f6020820190508181035f8301526138e0816138a7565b9050919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026139437fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613908565b61394d8683613908565b95508019841693508086168417925050509392505050565b5f819050919050565b5f61398861398361397e846130b2565b613965565b6130b2565b9050919050565b5f819050919050565b6139a18361396e565b6139b56139ad8261398f565b848454613914565b825550505050565b5f5f905090565b6139cc6139bd565b6139d7818484613998565b505050565b5b818110156139fa576139ef5f826139c4565b6001810190506139dd565b5050565b601f821115613a3f57613a10816138e7565b613a19846138f9565b81016020851015613a28578190505b613a3c613a34856138f9565b8301826139dc565b50505b505050565b5f82821c905092915050565b5f613a5f5f1984600802613a44565b1980831691505092915050565b5f613a778383613a50565b9150826002028217905092915050565b613a9082613022565b67ffffffffffffffff811115613aa957613aa86132ee565b5b613ab382546137b2565b613abe8282856139fe565b5f60209050601f831160018114613aef575f8415613add578287015190505b613ae78582613a6c565b865550613b4e565b601f198416613afd866138e7565b5f5b82811015613b2457848901518255600182019150602085019450602081019050613aff565b86831015613b415784890151613b3d601f891682613a50565b8355505b6001600288020188555050505b505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f613b8d826130b2565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613bbf57613bbe613b56565b5b600182019050919050565b7f53656e642065786163746c7920302e31204554480000000000000000000000005f82015250565b5f613bfe60148361302c565b9150613c0982613bca565b602082019050919050565b5f6020820190508181035f830152613c2b81613bf2565b9050919050565b7f496e76616c696420696e707574000000000000000000000000000000000000005f82015250565b5f613c66600d8361302c565b9150613c7182613c32565b602082019050919050565b5f6020820190508181035f830152613c9381613c5a565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f613cd1826130b2565b9150613cdc836130b2565b925082613cec57613ceb613c9a565b5b828204905092915050565b7f546f6b656e20646f6573206e6f742065786973740000000000000000000000005f82015250565b5f613d2b60148361302c565b9150613d3682613cf7565b602082019050919050565b5f6020820190508181035f830152613d5881613d1f565b9050919050565b5f81905092915050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f32305f8201527f30302f737667222076696577426f783d223020302033303020333030223e0000602082015250565b5f613dc3603e83613d5f565b9150613dce82613d69565b603e82019050919050565b7f3c726563742077696474683d2233303022206865696768743d223330302220665f8201527f696c6c3d22726762280000000000000000000000000000000000000000000000602082015250565b5f613e33602983613d5f565b9150613e3e82613dd9565b602982019050919050565b5f613e5382613022565b613e5d8185613d5f565b9350613e6d81856020860161303c565b80840191505092915050565b7f2c000000000000000000000000000000000000000000000000000000000000005f82015250565b5f613ead600183613d5f565b9150613eb882613e79565b600182019050919050565b7f29222f3e3c2f7376673e000000000000000000000000000000000000000000005f82015250565b5f613ef7600a83613d5f565b9150613f0282613ec3565b600a82019050919050565b5f613f1782613db7565b9150613f2282613e27565b9150613f2e8286613e49565b9150613f3982613ea1565b9150613f458285613e49565b9150613f5082613ea1565b9150613f5c8284613e49565b9150613f6782613eeb565b9150819050949350505050565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c0000000000005f82015250565b5f613fa8601a83613d5f565b9150613fb382613f74565b601a82019050919050565b5f613fc882613f9c565b9150613fd48284613e49565b915081905092915050565b7f7b226e616d65223a2200000000000000000000000000000000000000000000005f82015250565b5f614013600983613d5f565b915061401e82613fdf565b600982019050919050565b7f222c0000000000000000000000000000000000000000000000000000000000005f82015250565b5f61405d600283613d5f565b915061406882614029565b600282019050919050565b7f226465736372697074696f6e223a22417065436f6c6f72204e4654222c0000005f82015250565b5f6140a7601d83613d5f565b91506140b282614073565b601d82019050919050565b7f2261747472696275746573223a5b0000000000000000000000000000000000005f82015250565b5f6140f1600e83613d5f565b91506140fc826140bd565b600e82019050919050565b7f7b2274726169745f74797065223a2252222c2276616c7565223a2200000000005f82015250565b5f61413b601b83613d5f565b915061414682614107565b601b82019050919050565b7f227d2c00000000000000000000000000000000000000000000000000000000005f82015250565b5f614185600383613d5f565b915061419082614151565b600382019050919050565b7f7b2274726169745f74797065223a2247222c2276616c7565223a2200000000005f82015250565b5f6141cf601b83613d5f565b91506141da8261419b565b601b82019050919050565b7f7b2274726169745f74797065223a2242222c2276616c7565223a2200000000005f82015250565b5f614219601b83613d5f565b9150614224826141e5565b601b82019050919050565b7f7b2274726169745f74797065223a225072696d617279222c2276616c7565223a5f8201527f2200000000000000000000000000000000000000000000000000000000000000602082015250565b5f614289602183613d5f565b91506142948261422f565b602182019050919050565b7f227d0000000000000000000000000000000000000000000000000000000000005f82015250565b5f6142d3600283613d5f565b91506142de8261429f565b600282019050919050565b7f5d2c0000000000000000000000000000000000000000000000000000000000005f82015250565b5f61431d600283613d5f565b9150614328826142e9565b600282019050919050565b7f22696d616765223a2200000000000000000000000000000000000000000000005f82015250565b5f614367600983613d5f565b915061437282614333565b600982019050919050565b5f61438782614007565b91506143938289613e49565b915061439e82614051565b91506143a98261409b565b91506143b4826140e5565b91506143bf8261412f565b91506143cb8288613e49565b91506143d682614179565b91506143e1826141c3565b91506143ed8287613e49565b91506143f882614179565b91506144038261420d565b915061440f8286613e49565b915061441a82614179565b91506144258261427d565b91506144318285613e49565b915061443c826142c7565b915061444782614311565b91506144528261435b565b915061445e8284613e49565b9150614469826142c7565b9150819050979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000005f82015250565b5f6144ad601d83613d5f565b91506144b882614479565b601d82019050919050565b5f6144cd826144a1565b91506144d98284613e49565b915081905092915050565b5f81905092915050565b50565b5f6144fc5f836144e4565b9150614507826144ee565b5f82019050919050565b5f61451b826144f1565b9150819050919050565b7f5472616e73666572206661696c656400000000000000000000000000000000005f82015250565b5f614559600f8361302c565b915061456482614525565b602082019050919050565b5f6020820190508181035f8301526145868161454d565b9050919050565b5f6145988284613e49565b915081905092915050565b7f72656400000000000000000000000000000000000000000000000000000000005f82015250565b5f6145d7600383613d5f565b91506145e2826145a3565b600382019050919050565b5f6145f7826145cb565b9150819050919050565b7f677265656e0000000000000000000000000000000000000000000000000000005f82015250565b5f614635600583613d5f565b915061464082614601565b600582019050919050565b5f61465582614629565b9150819050919050565b7f626c7565000000000000000000000000000000000000000000000000000000005f82015250565b5f614693600483613d5f565b915061469e8261465f565b600482019050919050565b5f6146b382614687565b9150819050919050565b7f496e76616c696420636f6c6f72000000000000000000000000000000000000005f82015250565b5f6146f1600d8361302c565b91506146fc826146bd565b602082019050919050565b5f6020820190508181035f83015261471e816146e5565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e6f7420746f6b656e206f776e657200000000000000000000000000000000005f82015250565b5f614786600f8361302c565b915061479182614752565b602082019050919050565b5f6020820190508181035f8301526147b38161477a565b9050919050565b5f6147c4826130b2565b91506147cf836130b2565b92508282026147dd816130b2565b915082820484148315176147f4576147f3613b56565b5b5092915050565b5f614805826130b2565b9150614810836130b2565b925082820190508082111561482857614827613b56565b5b92915050565b7f50657263656e7461676573206d7573742073756d20746f2031303000000000005f82015250565b5f614862601b8361302c565b915061486d8261482e565b602082019050919050565b5f6020820190508181035f83015261488f81614856565b9050919050565b5f81519050919050565b5f82825260208201905092915050565b5f6148ba82614896565b6148c481856148a0565b93506148d481856020860161303c565b6148dd8161304a565b840191505092915050565b5f6080820190506148fb5f830187613140565b6149086020830186613140565b614915604083018561324b565b818103606083015261492781846148b0565b905095945050505050565b5f8151905061494081612f9a565b92915050565b5f6020828403121561495b5761495a612f67565b5b5f61496884828501614932565b91505092915050565b5f61497b826130b2565b9150614986836130b2565b925082820390508181111561499e5761499d613b56565b5b92915050565b5f6040820190506149b75f830185613140565b6149c4602083018461324b565b939250505056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220274481ffa7835141be266adae64eeba8c237a1df7ce123507aa049831b88f73064736f6c634300081d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000009f9afad1c7aecc9d80e2208bb5a8292160f3cf17
-----Decoded View---------------
Arg [0] : _treasury (address): 0x9f9AFAD1C7aEcc9d80E2208bB5A8292160F3CF17
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000009f9afad1c7aecc9d80e2208bb5a8292160f3cf17
Deployed Bytecode Sourcemap
127814:5624:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;110767:305;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;111598:91;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;112770:158;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;112589:115;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;113439:588;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;114098:134;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;127962:23;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;111411:120;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;111136:213;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;3572:103;;;;;;;;;;;;;:::i;:::-;;133060:375;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;:::i;:::-;;;;;;;;128349:412;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;2897:87;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;128769:767;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;111758:95;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;113000:146;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;127910:43;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;114303:236;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;129544:1531;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;127861:42;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;113217:155;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;132948:104;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;3830:220;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;110767:305;110869:4;110921:25;110906:40;;;:11;:40;;;;:105;;;;110978:33;110963:48;;;:11;:48;;;;110906:105;:158;;;;111028:36;111052:11;111028:23;:36::i;:::-;110906:158;110886:178;;110767:305;;;:::o;111598:91::-;111643:13;111676:5;111669:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;111598:91;:::o;112770:158::-;112837:7;112857:22;112871:7;112857:13;:22::i;:::-;;112899:21;112912:7;112899:12;:21::i;:::-;112892:28;;112770:158;;;:::o;112589:115::-;112661:35;112670:2;112674:7;112683:12;:10;:12::i;:::-;112661:8;:35::i;:::-;112589:115;;:::o;113439:588::-;113548:1;113534:16;;:2;:16;;;113530:89;;113604:1;113574:33;;;;;;;;;;;:::i;:::-;;;;;;;;113530:89;113840:21;113864:34;113872:2;113876:7;113885:12;:10;:12::i;:::-;113864:7;:34::i;:::-;113840:58;;113930:4;113913:21;;:13;:21;;;113909:111;;113979:4;113985:7;113994:13;113958:50;;;;;;;;;;;;;:::i;:::-;;;;;;;;113909:111;113519:508;113439:588;;;:::o;114098:134::-;114185:39;114202:4;114208:2;114212:7;114185:39;;;;;;;;;;;;:16;:39::i;:::-;114098:134;;;:::o;127962:23::-;;;;;;;;;;;;;:::o;111411:120::-;111474:7;111501:22;111515:7;111501:13;:22::i;:::-;111494:29;;111411:120;;;:::o;111136:213::-;111199:7;111240:1;111223:19;;:5;:19;;;111219:89;;111293:1;111266:30;;;;;;;;;;;:::i;:::-;;;;;;;;111219:89;111325:9;:16;111335:5;111325:16;;;;;;;;;;;;;;;;111318:23;;111136:213;;;:::o;3572:103::-;2783:13;:11;:13::i;:::-;3637:30:::1;3664:1;3637:18;:30::i;:::-;3572:103::o:0;133060:375::-;133132:7;133150;133168;133186:14;133211:18;133256:22;133270:7;133256:13;:22::i;:::-;133248:53;;;;;;;;;;;;:::i;:::-;;;;;;;;;133312:22;133337:7;:16;133345:7;133337:16;;;;;;;;;;;133312:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;133372:5;:7;;;133381:5;:7;;;133390:5;:7;;;133399:5;:15;;;133416:5;:10;;;133364:63;;;;;;;;;;;133060:375;;;;;;;:::o;128349:412::-;127896:7;128427:9;:21;128419:52;;;;;;;;;;;;:::i;:::-;;;;;;;;;128482:31;128493:8;;;;;;;;;;;128503:9;128482:10;:31::i;:::-;128526:15;128544;;128526:33;;128570:30;128580:10;128592:7;128570:9;:30::i;:::-;128614:7;128623;128632;128643:21;128658:5;128643:14;:21::i;:::-;128613:51;;;;;;128694:31;;;;;;;;128704:1;128694:31;;;;;;128707:1;128694:31;;;;;;128710:1;128694:31;;;;;;128713:4;128694:31;;;;;;128719:5;128694:31;;;128675:7;:16;128683:7;128675:16;;;;;;;;;;;:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;128736:15;;:17;;;;;;;;;:::i;:::-;;;;;;128408:353;;;;128349:412;:::o;2897:87::-;2943:7;2970:6;;;;;;;;;;;2963:13;;2897:87;:::o;128769:767::-;127944:9;128938;:20;128930:53;;;;;;;;;;;;:::i;:::-;;;;;;;;;128994:31;129005:8;;;;;;;;;;;129015:9;128994:10;:31::i;:::-;129063:11;:18;129044:8;:15;:37;129036:63;;;;;;;;;;;;:::i;:::-;;;;;;;;;129113:14;129129;129145;129163:43;129184:8;129194:11;129163:20;:43::i;:::-;129112:94;;;;;;129219:18;129240:15;;129219:36;;129266:33;129276:10;129288;129266:9;:33::i;:::-;129334:164;;;;;;;;129373:3;129364:6;:12;;;;:::i;:::-;129334:164;;;;;;129407:3;129398:6;:12;;;;:::i;:::-;129334:164;;;;;;129441:3;129432:6;:12;;;;:::i;:::-;129334:164;;;;;;129460:5;129334:164;;;;;;129480:7;129334:164;;;129312:7;:19;129320:10;129312:19;;;;;;;;;;;:186;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;129511:15;;:17;;;;;;;;;:::i;:::-;;;;;;128919:617;;;;128769:767;;;:::o;111758:95::-;111805:13;111838:7;111831:14;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;111758:95;:::o;113000:146::-;113086:52;113105:12;:10;:12::i;:::-;113119:8;113129;113086:18;:52::i;:::-;113000:146;;:::o;127910:43::-;127944:9;127910:43;:::o;114303:236::-;114417:31;114430:4;114436:2;114440:7;114417:12;:31::i;:::-;114459:72;114493:12;:10;:12::i;:::-;114507:4;114513:2;114517:7;114526:4;114459:33;:72::i;:::-;114303:236;;;;:::o;129544:1531::-;129609:13;129643:22;129657:7;129643:13;:22::i;:::-;129635:55;;;;;;;;;;;;:::i;:::-;;;;;;;;;129701:22;129726:7;:16;129734:7;129726:16;;;;;;;;;;;129701:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;129791:17;129986:25;130003:5;:7;;;129986:25;;:16;:25::i;:::-;130031;130048:5;:7;;;130031:25;;:16;:25::i;:::-;130076;130093:5;:7;;;130076:25;;:16;:25::i;:::-;129818:321;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;129791:349;;130189:19;130292:25;130312:3;130292:13;:25::i;:::-;130218:110;;;;;;;;:::i;:::-;;;;;;;;;;;;;130189:140;;130385:18;130406:570;130470:5;:10;;;130613:25;130630:5;:7;;;130613:25;;:16;:25::i;:::-;130695;130712:5;:7;;;130695:25;;:16;:25::i;:::-;130777;130794:5;:7;;;130777:25;;:16;:25::i;:::-;130865:5;:15;;;:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;130952:5;130426:548;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;130406:13;:570::i;:::-;130385:591;;131061:4;131011:55;;;;;;;;:::i;:::-;;;;;;;;;;;;;130997:70;;;;;;129544:1531;;;:::o;127861:42::-;127896:7;127861:42;:::o;113217:155::-;113305:4;113329:18;:25;113348:5;113329:25;;;;;;;;;;;;;;;:35;113355:8;113329:35;;;;;;;;;;;;;;;;;;;;;;;;;113322:42;;113217:155;;;;:::o;132948:104::-;2783:13;:11;:13::i;:::-;133032:12:::1;133021:8;;:23;;;;;;;;;;;;;;;;;;132948:104:::0;:::o;3830:220::-;2783:13;:11;:13::i;:::-;3935:1:::1;3915:22;;:8;:22;;::::0;3911:93:::1;;3989:1;3961:31;;;;;;;;;;;:::i;:::-;;;;;;;;3911:93;4014:28;4033:8;4014:18;:28::i;:::-;3830:220:::0;:::o;22055:148::-;22131:4;22170:25;22155:40;;;:11;:40;;;;22148:47;;22055:148;;;:::o;125821:247::-;125884:7;125904:13;125920:17;125929:7;125920:8;:17::i;:::-;125904:33;;125969:1;125952:19;;:5;:19;;;125948:90;;126018:7;125995:31;;;;;;;;;;;:::i;:::-;;;;;;;;125948:90;126055:5;126048:12;;;125821:247;;;:::o;115302:129::-;115372:7;115399:15;:24;115415:7;115399:24;;;;;;;;;;;;;;;;;;;;;115392:31;;115302:129;;;:::o;851:98::-;904:7;931:10;924:17;;851:98;:::o;124053:122::-;124134:33;124143:2;124147:7;124156:4;124162;124134:8;:33::i;:::-;124053:122;;;:::o;118263:824::-;118349:7;118369:12;118384:17;118393:7;118384:8;:17::i;:::-;118369:32;;118480:1;118464:18;;:4;:18;;;118460:88;;118499:37;118516:4;118522;118528:7;118499:16;:37::i;:::-;118460:88;118611:1;118595:18;;:4;:18;;;118591:263;;118713:48;118730:1;118734:7;118751:1;118755:5;118713:8;:48::i;:::-;118826:1;118807:9;:15;118817:4;118807:15;;;;;;;;;;;;;;;;:20;;;;;;;;;;;118591:263;118884:1;118870:16;;:2;:16;;;118866:111;;118949:1;118932:9;:13;118942:2;118932:13;;;;;;;;;;;;;;;;:18;;;;;;;;;;;118866:111;119008:2;118989:7;:16;118997:7;118989:16;;;;;;;;;;;;:21;;;;;;;;;;;;;;;;;;119047:7;119043:2;119028:27;;119037:4;119028:27;;;;;;;;;;;;119075:4;119068:11;;;118263:824;;;;;:::o;3062:166::-;3133:12;:10;:12::i;:::-;3122:23;;:7;:5;:7::i;:::-;:23;;;3118:103;;3196:12;:10;:12::i;:::-;3169:40;;;;;;;;;;;:::i;:::-;;;;;;;;3118:103;3062:166::o;4210:191::-;4284:16;4303:6;;;;;;;;;;;4284:25;;4329:8;4320:6;;:17;;;;;;;;;;;;;;;;;;4384:8;4353:40;;4374:8;4353:40;;;;;;;;;;;;4273:128;4210:191;:::o;132166:169::-;132229:4;132282:1;132253:31;;:17;132262:7;132253:8;:17::i;:::-;:31;;;;:74;;;;;132326:1;132294:7;:16;132302:7;132294:16;;;;;;;;;;;:21;;132288:35;;;;;:::i;:::-;;;:39;132253:74;132246:81;;132166:169;;;:::o;131977:181::-;132053:12;132071:9;:14;;132093:6;132071:33;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;132052:52;;;132123:7;132115:35;;;;;;;;;;;;:::i;:::-;;;;;;;;;132041:117;131977:181;;:::o;120121:102::-;120189:26;120199:2;120203:7;120189:26;;;;;;;;;;;;:9;:26::i;:::-;120121:102;;:::o;132343:531::-;132411:7;132420;132429;132449:17;132496:5;132479:23;;;;;;;;:::i;:::-;;;;;;;;;;;;;132469:34;;;;;;132449:54;;132551:23;;;;;;;:::i;:::-;;;;;;;;;;;;;132541:34;;;;;;132528:9;:47;132524:309;;132600:3;132605:1;132608;132592:18;;;;;;;;;132524:309;132655:25;;;;;;;:::i;:::-;;;;;;;;;;;;;132645:36;;;;;;132632:9;:49;132628:205;;132706:1;132709:3;132714:1;132698:18;;;;;;;;;132628:205;132761:24;;;;;;;:::i;:::-;;;;;;;;;;;;;132751:35;;;;;;132738:9;:48;132734:99;;132811:1;132814;132817:3;132803:18;;;;;;;;;132734:99;132843:23;;;;;;;;;;:::i;:::-;;;;;;;;132343:531;;;;;;:::o;131151:818::-;131281:14;131297;131313;131340:23;131366:1;131340:27;;131385:9;131397:1;131385:13;;131380:509;131404:8;:15;131400:1;:19;131380:509;;;131449:26;131463:8;131472:1;131463:11;;;;;;;;:::i;:::-;;;;;;;;131449:13;:26::i;:::-;131441:59;;;;;;;;;;;;:::i;:::-;;;;;;;;;131547:10;131523:34;;:20;131531:8;131540:1;131531:11;;;;;;;;:::i;:::-;;;;;;;;131523:7;:20::i;:::-;:34;;;131515:62;;;;;;;;;;;;:::i;:::-;;;;;;;;;131606:18;131627:7;:20;131635:8;131644:1;131635:11;;;;;;;;:::i;:::-;;;;;;;;131627:20;;;;;;;;;;;131606:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;131678:11;131690:1;131678:14;;;;;;;;:::i;:::-;;;;;;;;131672:1;:3;;;:20;;;;;;:::i;:::-;131662:30;;;;;:::i;:::-;;;131723:11;131735:1;131723:14;;;;;;;;:::i;:::-;;;;;;;;131717:1;:3;;;:20;;;;;;:::i;:::-;131707:30;;;;;:::i;:::-;;;131768:11;131780:1;131768:14;;;;;;;;:::i;:::-;;;;;;;;131762:1;:3;;;:20;;;;;;:::i;:::-;131752:30;;;;;:::i;:::-;;;131816:11;131828:1;131816:14;;;;;;;;:::i;:::-;;;;;;;;131797:33;;;;;:::i;:::-;;;131859:18;131865:8;131874:1;131865:11;;;;;;;;:::i;:::-;;;;;;;;131859:5;:18::i;:::-;131426:463;131421:3;;;;;;;131380:509;;;;131926:3;131907:15;:22;131899:62;;;;;;;;;;;;:::i;:::-;;;;;;;;;131329:640;131151:818;;;;;:::o;125260:318::-;125388:1;125368:22;;:8;:22;;;125364:93;;125436:8;125414:31;;;;;;;;;;;:::i;:::-;;;;;;;;125364:93;125505:8;125467:18;:25;125486:5;125467:25;;;;;;;;;;;;;;;:35;125493:8;125467:35;;;;;;;;;;;;;;;;:46;;;;;;;;;;;;;;;;;;125551:8;125529:41;;125544:5;125529:41;;;125561:8;125529:41;;;;;;:::i;:::-;;;;;;;;125260:318;;;:::o;20263:948::-;20467:1;20450:2;:14;;;:18;20446:758;;;20505:2;20489:36;;;20526:8;20536:4;20542:7;20551:4;20489:67;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;20485:708;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20869:1;20852:6;:13;:18;20848:330;;20994:2;20958:39;;;;;;;;;;;:::i;:::-;;;;;;;;20848:330;21128:6;21122:13;21113:6;21109:2;21105:15;21098:38;20485:708;20614:41;;;20604:51;;;:6;:51;;;;20600:185;;20762:2;20726:39;;;;;;;;;;;:::i;:::-;;;;;;;;20600:185;20557:243;20446:758;20263:948;;;;;:::o;93206:650::-;93262:13;93313:14;93350:1;93330:17;93341:5;93330:10;:17::i;:::-;:21;93313:38;;93366:20;93400:6;93389:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;93366:41;;93422:11;93519:6;93515:2;93511:15;93503:6;93499:28;93492:35;;93556:254;93563:4;93556:254;;;93588:5;;;;;;;;93694:10;93689:2;93682:5;93678:14;93673:32;93668:3;93660:46;93752:2;93743:11;;;;;;:::i;:::-;;;;;93786:1;93777:5;:10;93556:254;93773:21;93556:254;93831:6;93824:13;;;;;93206:650;;;:::o;126322:1361::-;126380:13;126406:11;126420:4;:11;126406:25;;126453:1;126446:3;:8;126442:23;;126456:9;;;;;;;;;;;;;;;;;126442:23;126478:18;126516:1;126511;126505:3;:7;;;;:::i;:::-;126504:13;;;;:::i;:::-;126499:1;:19;;;;:::i;:::-;126478:40;;126529:19;126574:2;126561:10;:15;;;;:::i;:::-;126551:26;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;126529:48;;126590:9;126602:1;126590:13;;126614:9;126626:1;126614:13;;126640:446;126657:1;126651:3;:7;;;;:::i;:::-;126647:1;:11;126640:446;;;126683:13;126844:4;126853:1;126849;:5;;;;:::i;:::-;126844:11;;;;;;;;:::i;:::-;;;;;;;;;;126838:18;;126830:27;;126795:1;126778:4;126787:1;126783;:5;;;;:::i;:::-;126778:11;;;;;;;;:::i;:::-;;;;;;;;;;126772:18;;126764:27;;:32;;126727:2;126714:4;126719:1;126714:7;;;;;;;;:::i;:::-;;;;;;;;;;126708:14;;126700:23;;:29;;126699:98;:158;126683:174;;126888:5;;;;;;;;;;;;;;;;;126910:4;126904:2;126895:5;:11;;126894:20;126888:27;;;;;;;;:::i;:::-;;;;;;;;;;126874:6;126881:3;;;;;:::i;:::-;;;126874:11;;;;;;;;:::i;:::-;;;;;:41;;;;;;;;;;;126944:5;;;;;;;;;;;;;;;;;126966:4;126960:2;126951:5;:11;;126950:20;126944:27;;;;;;;;:::i;:::-;;;;;;;;;;126930:6;126937:3;;;;;:::i;:::-;;;126930:11;;;;;;;;:::i;:::-;;;;;:41;;;;;;;;;;;127000:5;;;;;;;;;;;;;;;;;127021:4;127016:1;127007:5;:10;;127006:19;127000:26;;;;;;;;:::i;:::-;;;;;;;;;;126986:6;126993:3;;;;;:::i;:::-;;;126986:11;;;;;;;;:::i;:::-;;;;;:40;;;;;;;;;;;127055:5;;;;;;;;;;;;;;;;;127069:4;127061:5;:12;127055:19;;;;;;;;:::i;:::-;;;;;;;;;;127041:6;127048:3;;;;;:::i;:::-;;;127041:11;;;;;;;;:::i;:::-;;;;;:33;;;;;;;;;;;126668:418;126665:1;126660:6;;;;;:::i;:::-;;;126640:446;;;127106:3;127102:1;:7;127098:544;;;127126:13;127169:2;127156:4;127161:1;127156:7;;;;;;;;:::i;:::-;;;;;;;;;;127150:14;;127142:23;;:29;;127126:45;;127198:3;127194:1;127190;:5;;;;:::i;:::-;:11;127186:93;;;127262:1;127245:4;127254:1;127250;:5;;;;:::i;:::-;127245:11;;;;;;;;:::i;:::-;;;;;;;;;;127239:18;;127231:27;;:32;;127222:41;;;;127186:93;127309:5;;;;;;;;;;;;;;;;;127331:4;127325:2;127316:5;:11;;127315:20;127309:27;;;;;;;;:::i;:::-;;;;;;;;;;127295:6;127302:3;;;;;:::i;:::-;;;127295:11;;;;;;;;:::i;:::-;;;;;:41;;;;;;;;;;;127365:5;;;;;;;;;;;;;;;;;127387:4;127381:2;127372:5;:11;;127371:20;127365:27;;;;;;;;:::i;:::-;;;;;;;;;;127351:6;127358:3;;;;;:::i;:::-;;;127351:11;;;;;;;;:::i;:::-;;;;;:41;;;;;;;;;;;127421:3;127417:1;127413;:5;;;;:::i;:::-;:11;127409:222;;;127459:5;;;;;;;;;;;;;;;;;127480:4;127475:1;127466:5;:10;;127465:19;127459:26;;;;;;;;:::i;:::-;;;;;;;;;;127445:6;127452:3;;;;;:::i;:::-;;;127445:11;;;;;;;;:::i;:::-;;;;;:40;;;;;;;;;;;127504:17;:6;127511:3;;;;;:::i;:::-;;;127504:11;;;;;;;;:::i;:::-;;;;;:17;;;;;;;;;;;127409:222;;;127562:17;:6;127569:3;;;;;:::i;:::-;;;127562:11;;;;;;;;:::i;:::-;;;;;:17;;;;;;;;;;;127598;:6;127605:3;;;;;:::i;:::-;;;127598:11;;;;;;;;:::i;:::-;;;;;:17;;;;;;;;;;;127409:222;127111:531;127098:544;127668:6;127654:21;;;;;;;126322:1361;;;;:::o;115064:117::-;115130:7;115157;:16;115165:7;115157:16;;;;;;;;;;;;;;;;;;;;;115150:23;;115064:117;;;:::o;124363:678::-;124525:9;:31;;;;124554:1;124538:18;;:4;:18;;;;124525:31;124521:471;;;124573:13;124589:22;124603:7;124589:13;:22::i;:::-;124573:38;;124758:1;124742:18;;:4;:18;;;;:35;;;;;124773:4;124764:13;;:5;:13;;;;124742:35;:69;;;;;124782:29;124799:5;124806:4;124782:16;:29::i;:::-;124781:30;124742:69;124738:144;;;124861:4;124839:27;;;;;;;;;;;:::i;:::-;;;;;;;;124738:144;124902:9;124898:83;;;124957:7;124953:2;124937:28;;124946:5;124937:28;;;;;;;;;;;;124898:83;124558:434;124521:471;125031:2;125004:15;:24;125020:7;125004:24;;;;;;;;;;;;:29;;;;;;;;;;;;;;;;;;124363:678;;;;:::o;116470:376::-;116583:38;116597:5;116604:7;116613;116583:13;:38::i;:::-;116578:261;;116659:1;116642:19;;:5;:19;;;116638:190;;116712:7;116689:31;;;;;;;;;;;:::i;:::-;;;;;;;;116638:190;116795:7;116804;116768:44;;;;;;;;;;;;:::i;:::-;;;;;;;;116578:261;116470:376;;;:::o;120450:210::-;120545:18;120551:2;120555:7;120545:5;:18::i;:::-;120574:78;120608:12;:10;:12::i;:::-;120630:1;120634:2;120638:7;120647:4;120574:33;:78::i;:::-;120450:210;;;:::o;120999:232::-;121051:21;121075:40;121091:1;121095:7;121112:1;121075:7;:40::i;:::-;121051:64;;121155:1;121130:27;;:13;:27;;;121126:98;;121204:7;121181:31;;;;;;;;;;;:::i;:::-;;;;;;;;121126:98;121040:191;120999:232;:::o;86423:948::-;86476:7;86496:14;86513:1;86496:18;;86563:8;86554:5;:17;86550:106;;86601:8;86592:17;;;;;;:::i;:::-;;;;;86638:2;86628:12;;;;86550:106;86683:8;86674:5;:17;86670:106;;86721:8;86712:17;;;;;;:::i;:::-;;;;;86758:2;86748:12;;;;86670:106;86803:8;86794:5;:17;86790:106;;86841:8;86832:17;;;;;;:::i;:::-;;;;;86878:2;86868:12;;;;86790:106;86923:7;86914:5;:16;86910:103;;86960:7;86951:16;;;;;;:::i;:::-;;;;;86996:1;86986:11;;;;86910:103;87040:7;87031:5;:16;87027:103;;87077:7;87068:16;;;;;;:::i;:::-;;;;;87113:1;87103:11;;;;87027:103;87157:7;87148:5;:16;87144:103;;87194:7;87185:16;;;;;;:::i;:::-;;;;;87230:1;87220:11;;;;87144:103;87274:7;87265:5;:16;87261:68;;87312:1;87302:11;;;;87261:68;87357:6;87350:13;;;86423:948;;;:::o;115751:276::-;115854:4;115910:1;115891:21;;:7;:21;;;;:128;;;;;115939:7;115930:16;;:5;:16;;;:52;;;;115950:32;115967:5;115974:7;115950:16;:32::i;:::-;115930:52;:88;;;;116011:7;115986:32;;:21;115999:7;115986:12;:21::i;:::-;:32;;;115930:88;115891:128;115871:148;;115751:276;;;;;:::o;119423:335::-;119505:1;119491:16;;:2;:16;;;119487:89;;119561:1;119531:33;;;;;;;;;;;:::i;:::-;;;;;;;;119487:89;119586:21;119610:32;119618:2;119622:7;119639:1;119610:7;:32::i;:::-;119586:56;;119682:1;119657:27;;:13;:27;;;119653:98;;119736:1;119708:31;;;;;;;;;;;:::i;:::-;;;;;;;;119653:98;119476:282;119423:335;;:::o;7:75:1:-;40:6;73:2;67:9;57:19;;7:75;:::o;88:117::-;197:1;194;187:12;211:117;320:1;317;310:12;334:149;370:7;410:66;403:5;399:78;388:89;;334:149;;;:::o;489:120::-;561:23;578:5;561:23;:::i;:::-;554:5;551:34;541:62;;599:1;596;589:12;541:62;489:120;:::o;615:137::-;660:5;698:6;685:20;676:29;;714:32;740:5;714:32;:::i;:::-;615:137;;;;:::o;758:327::-;816:6;865:2;853:9;844:7;840:23;836:32;833:119;;;871:79;;:::i;:::-;833:119;991:1;1016:52;1060:7;1051:6;1040:9;1036:22;1016:52;:::i;:::-;1006:62;;962:116;758:327;;;;:::o;1091:90::-;1125:7;1168:5;1161:13;1154:21;1143:32;;1091:90;;;:::o;1187:109::-;1268:21;1283:5;1268:21;:::i;:::-;1263:3;1256:34;1187:109;;:::o;1302:210::-;1389:4;1427:2;1416:9;1412:18;1404:26;;1440:65;1502:1;1491:9;1487:17;1478:6;1440:65;:::i;:::-;1302:210;;;;:::o;1518:99::-;1570:6;1604:5;1598:12;1588:22;;1518:99;;;:::o;1623:169::-;1707:11;1741:6;1736:3;1729:19;1781:4;1776:3;1772:14;1757:29;;1623:169;;;;:::o;1798:139::-;1887:6;1882:3;1877;1871:23;1928:1;1919:6;1914:3;1910:16;1903:27;1798:139;;;:::o;1943:102::-;1984:6;2035:2;2031:7;2026:2;2019:5;2015:14;2011:28;2001:38;;1943:102;;;:::o;2051:377::-;2139:3;2167:39;2200:5;2167:39;:::i;:::-;2222:71;2286:6;2281:3;2222:71;:::i;:::-;2215:78;;2302:65;2360:6;2355:3;2348:4;2341:5;2337:16;2302:65;:::i;:::-;2392:29;2414:6;2392:29;:::i;:::-;2387:3;2383:39;2376:46;;2143:285;2051:377;;;;:::o;2434:313::-;2547:4;2585:2;2574:9;2570:18;2562:26;;2634:9;2628:4;2624:20;2620:1;2609:9;2605:17;2598:47;2662:78;2735:4;2726:6;2662:78;:::i;:::-;2654:86;;2434:313;;;;:::o;2753:77::-;2790:7;2819:5;2808:16;;2753:77;;;:::o;2836:122::-;2909:24;2927:5;2909:24;:::i;:::-;2902:5;2899:35;2889:63;;2948:1;2945;2938:12;2889:63;2836:122;:::o;2964:139::-;3010:5;3048:6;3035:20;3026:29;;3064:33;3091:5;3064:33;:::i;:::-;2964:139;;;;:::o;3109:329::-;3168:6;3217:2;3205:9;3196:7;3192:23;3188:32;3185:119;;;3223:79;;:::i;:::-;3185:119;3343:1;3368:53;3413:7;3404:6;3393:9;3389:22;3368:53;:::i;:::-;3358:63;;3314:117;3109:329;;;;:::o;3444:126::-;3481:7;3521:42;3514:5;3510:54;3499:65;;3444:126;;;:::o;3576:96::-;3613:7;3642:24;3660:5;3642:24;:::i;:::-;3631:35;;3576:96;;;:::o;3678:118::-;3765:24;3783:5;3765:24;:::i;:::-;3760:3;3753:37;3678:118;;:::o;3802:222::-;3895:4;3933:2;3922:9;3918:18;3910:26;;3946:71;4014:1;4003:9;3999:17;3990:6;3946:71;:::i;:::-;3802:222;;;;:::o;4030:122::-;4103:24;4121:5;4103:24;:::i;:::-;4096:5;4093:35;4083:63;;4142:1;4139;4132:12;4083:63;4030:122;:::o;4158:139::-;4204:5;4242:6;4229:20;4220:29;;4258:33;4285:5;4258:33;:::i;:::-;4158:139;;;;:::o;4303:474::-;4371:6;4379;4428:2;4416:9;4407:7;4403:23;4399:32;4396:119;;;4434:79;;:::i;:::-;4396:119;4554:1;4579:53;4624:7;4615:6;4604:9;4600:22;4579:53;:::i;:::-;4569:63;;4525:117;4681:2;4707:53;4752:7;4743:6;4732:9;4728:22;4707:53;:::i;:::-;4697:63;;4652:118;4303:474;;;;;:::o;4783:619::-;4860:6;4868;4876;4925:2;4913:9;4904:7;4900:23;4896:32;4893:119;;;4931:79;;:::i;:::-;4893:119;5051:1;5076:53;5121:7;5112:6;5101:9;5097:22;5076:53;:::i;:::-;5066:63;;5022:117;5178:2;5204:53;5249:7;5240:6;5229:9;5225:22;5204:53;:::i;:::-;5194:63;;5149:118;5306:2;5332:53;5377:7;5368:6;5357:9;5353:22;5332:53;:::i;:::-;5322:63;;5277:118;4783:619;;;;;:::o;5408:329::-;5467:6;5516:2;5504:9;5495:7;5491:23;5487:32;5484:119;;;5522:79;;:::i;:::-;5484:119;5642:1;5667:53;5712:7;5703:6;5692:9;5688:22;5667:53;:::i;:::-;5657:63;;5613:117;5408:329;;;;:::o;5743:118::-;5830:24;5848:5;5830:24;:::i;:::-;5825:3;5818:37;5743:118;;:::o;5867:222::-;5960:4;5998:2;5987:9;5983:18;5975:26;;6011:71;6079:1;6068:9;6064:17;6055:6;6011:71;:::i;:::-;5867:222;;;;:::o;6095:86::-;6130:7;6170:4;6163:5;6159:16;6148:27;;6095:86;;;:::o;6187:112::-;6270:22;6286:5;6270:22;:::i;:::-;6265:3;6258:35;6187:112;;:::o;6305:719::-;6512:4;6550:3;6539:9;6535:19;6527:27;;6564:67;6628:1;6617:9;6613:17;6604:6;6564:67;:::i;:::-;6641:68;6705:2;6694:9;6690:18;6681:6;6641:68;:::i;:::-;6719;6783:2;6772:9;6768:18;6759:6;6719:68;:::i;:::-;6797:66;6859:2;6848:9;6844:18;6835:6;6797:66;:::i;:::-;6911:9;6905:4;6901:20;6895:3;6884:9;6880:19;6873:49;6939:78;7012:4;7003:6;6939:78;:::i;:::-;6931:86;;6305:719;;;;;;;;:::o;7030:117::-;7139:1;7136;7129:12;7153:117;7262:1;7259;7252:12;7276:180;7324:77;7321:1;7314:88;7421:4;7418:1;7411:15;7445:4;7442:1;7435:15;7462:281;7545:27;7567:4;7545:27;:::i;:::-;7537:6;7533:40;7675:6;7663:10;7660:22;7639:18;7627:10;7624:34;7621:62;7618:88;;;7686:18;;:::i;:::-;7618:88;7726:10;7722:2;7715:22;7505:238;7462:281;;:::o;7749:129::-;7783:6;7810:20;;:::i;:::-;7800:30;;7839:33;7867:4;7859:6;7839:33;:::i;:::-;7749:129;;;:::o;7884:308::-;7946:4;8036:18;8028:6;8025:30;8022:56;;;8058:18;;:::i;:::-;8022:56;8096:29;8118:6;8096:29;:::i;:::-;8088:37;;8180:4;8174;8170:15;8162:23;;7884:308;;;:::o;8198:148::-;8296:6;8291:3;8286;8273:30;8337:1;8328:6;8323:3;8319:16;8312:27;8198:148;;;:::o;8352:425::-;8430:5;8455:66;8471:49;8513:6;8471:49;:::i;:::-;8455:66;:::i;:::-;8446:75;;8544:6;8537:5;8530:21;8582:4;8575:5;8571:16;8620:3;8611:6;8606:3;8602:16;8599:25;8596:112;;;8627:79;;:::i;:::-;8596:112;8717:54;8764:6;8759:3;8754;8717:54;:::i;:::-;8436:341;8352:425;;;;;:::o;8797:340::-;8853:5;8902:3;8895:4;8887:6;8883:17;8879:27;8869:122;;8910:79;;:::i;:::-;8869:122;9027:6;9014:20;9052:79;9127:3;9119:6;9112:4;9104:6;9100:17;9052:79;:::i;:::-;9043:88;;8859:278;8797:340;;;;:::o;9143:509::-;9212:6;9261:2;9249:9;9240:7;9236:23;9232:32;9229:119;;;9267:79;;:::i;:::-;9229:119;9415:1;9404:9;9400:17;9387:31;9445:18;9437:6;9434:30;9431:117;;;9467:79;;:::i;:::-;9431:117;9572:63;9627:7;9618:6;9607:9;9603:22;9572:63;:::i;:::-;9562:73;;9358:287;9143:509;;;;:::o;9658:311::-;9735:4;9825:18;9817:6;9814:30;9811:56;;;9847:18;;:::i;:::-;9811:56;9897:4;9889:6;9885:17;9877:25;;9957:4;9951;9947:15;9939:23;;9658:311;;;:::o;9975:117::-;10084:1;10081;10074:12;10115:710;10211:5;10236:81;10252:64;10309:6;10252:64;:::i;:::-;10236:81;:::i;:::-;10227:90;;10337:5;10366:6;10359:5;10352:21;10400:4;10393:5;10389:16;10382:23;;10453:4;10445:6;10441:17;10433:6;10429:30;10482:3;10474:6;10471:15;10468:122;;;10501:79;;:::i;:::-;10468:122;10616:6;10599:220;10633:6;10628:3;10625:15;10599:220;;;10708:3;10737:37;10770:3;10758:10;10737:37;:::i;:::-;10732:3;10725:50;10804:4;10799:3;10795:14;10788:21;;10675:144;10659:4;10654:3;10650:14;10643:21;;10599:220;;;10603:21;10217:608;;10115:710;;;;;:::o;10848:370::-;10919:5;10968:3;10961:4;10953:6;10949:17;10945:27;10935:122;;10976:79;;:::i;:::-;10935:122;11093:6;11080:20;11118:94;11208:3;11200:6;11193:4;11185:6;11181:17;11118:94;:::i;:::-;11109:103;;10925:293;10848:370;;;;:::o;11224:1219::-;11361:6;11369;11377;11426:2;11414:9;11405:7;11401:23;11397:32;11394:119;;;11432:79;;:::i;:::-;11394:119;11580:1;11569:9;11565:17;11552:31;11610:18;11602:6;11599:30;11596:117;;;11632:79;;:::i;:::-;11596:117;11737:78;11807:7;11798:6;11787:9;11783:22;11737:78;:::i;:::-;11727:88;;11523:302;11892:2;11881:9;11877:18;11864:32;11923:18;11915:6;11912:30;11909:117;;;11945:79;;:::i;:::-;11909:117;12050:78;12120:7;12111:6;12100:9;12096:22;12050:78;:::i;:::-;12040:88;;11835:303;12205:2;12194:9;12190:18;12177:32;12236:18;12228:6;12225:30;12222:117;;;12258:79;;:::i;:::-;12222:117;12363:63;12418:7;12409:6;12398:9;12394:22;12363:63;:::i;:::-;12353:73;;12148:288;11224:1219;;;;;:::o;12449:116::-;12519:21;12534:5;12519:21;:::i;:::-;12512:5;12509:32;12499:60;;12555:1;12552;12545:12;12499:60;12449:116;:::o;12571:133::-;12614:5;12652:6;12639:20;12630:29;;12668:30;12692:5;12668:30;:::i;:::-;12571:133;;;;:::o;12710:468::-;12775:6;12783;12832:2;12820:9;12811:7;12807:23;12803:32;12800:119;;;12838:79;;:::i;:::-;12800:119;12958:1;12983:53;13028:7;13019:6;13008:9;13004:22;12983:53;:::i;:::-;12973:63;;12929:117;13085:2;13111:50;13153:7;13144:6;13133:9;13129:22;13111:50;:::i;:::-;13101:60;;13056:115;12710:468;;;;;:::o;13184:307::-;13245:4;13335:18;13327:6;13324:30;13321:56;;;13357:18;;:::i;:::-;13321:56;13395:29;13417:6;13395:29;:::i;:::-;13387:37;;13479:4;13473;13469:15;13461:23;;13184:307;;;:::o;13497:423::-;13574:5;13599:65;13615:48;13656:6;13615:48;:::i;:::-;13599:65;:::i;:::-;13590:74;;13687:6;13680:5;13673:21;13725:4;13718:5;13714:16;13763:3;13754:6;13749:3;13745:16;13742:25;13739:112;;;13770:79;;:::i;:::-;13739:112;13860:54;13907:6;13902:3;13897;13860:54;:::i;:::-;13580:340;13497:423;;;;;:::o;13939:338::-;13994:5;14043:3;14036:4;14028:6;14024:17;14020:27;14010:122;;14051:79;;:::i;:::-;14010:122;14168:6;14155:20;14193:78;14267:3;14259:6;14252:4;14244:6;14240:17;14193:78;:::i;:::-;14184:87;;14000:277;13939:338;;;;:::o;14283:943::-;14378:6;14386;14394;14402;14451:3;14439:9;14430:7;14426:23;14422:33;14419:120;;;14458:79;;:::i;:::-;14419:120;14578:1;14603:53;14648:7;14639:6;14628:9;14624:22;14603:53;:::i;:::-;14593:63;;14549:117;14705:2;14731:53;14776:7;14767:6;14756:9;14752:22;14731:53;:::i;:::-;14721:63;;14676:118;14833:2;14859:53;14904:7;14895:6;14884:9;14880:22;14859:53;:::i;:::-;14849:63;;14804:118;14989:2;14978:9;14974:18;14961:32;15020:18;15012:6;15009:30;15006:117;;;15042:79;;:::i;:::-;15006:117;15147:62;15201:7;15192:6;15181:9;15177:22;15147:62;:::i;:::-;15137:72;;14932:287;14283:943;;;;;;;:::o;15232:474::-;15300:6;15308;15357:2;15345:9;15336:7;15332:23;15328:32;15325:119;;;15363:79;;:::i;:::-;15325:119;15483:1;15508:53;15553:7;15544:6;15533:9;15529:22;15508:53;:::i;:::-;15498:63;;15454:117;15610:2;15636:53;15681:7;15672:6;15661:9;15657:22;15636:53;:::i;:::-;15626:63;;15581:118;15232:474;;;;;:::o;15712:180::-;15760:77;15757:1;15750:88;15857:4;15854:1;15847:15;15881:4;15878:1;15871:15;15898:320;15942:6;15979:1;15973:4;15969:12;15959:22;;16026:1;16020:4;16016:12;16047:18;16037:81;;16103:4;16095:6;16091:17;16081:27;;16037:81;16165:2;16157:6;16154:14;16134:18;16131:38;16128:84;;16184:18;;:::i;:::-;16128:84;15949:269;15898:320;;;:::o;16224:442::-;16373:4;16411:2;16400:9;16396:18;16388:26;;16424:71;16492:1;16481:9;16477:17;16468:6;16424:71;:::i;:::-;16505:72;16573:2;16562:9;16558:18;16549:6;16505:72;:::i;:::-;16587;16655:2;16644:9;16640:18;16631:6;16587:72;:::i;:::-;16224:442;;;;;;:::o;16672:168::-;16812:20;16808:1;16800:6;16796:14;16789:44;16672:168;:::o;16846:366::-;16988:3;17009:67;17073:2;17068:3;17009:67;:::i;:::-;17002:74;;17085:93;17174:3;17085:93;:::i;:::-;17203:2;17198:3;17194:12;17187:19;;16846:366;;;:::o;17218:419::-;17384:4;17422:2;17411:9;17407:18;17399:26;;17471:9;17465:4;17461:20;17457:1;17446:9;17442:17;17435:47;17499:131;17625:4;17499:131;:::i;:::-;17491:139;;17218:419;;;:::o;17643:168::-;17783:20;17779:1;17771:6;17767:14;17760:44;17643:168;:::o;17817:366::-;17959:3;17980:67;18044:2;18039:3;17980:67;:::i;:::-;17973:74;;18056:93;18145:3;18056:93;:::i;:::-;18174:2;18169:3;18165:12;18158:19;;17817:366;;;:::o;18189:419::-;18355:4;18393:2;18382:9;18378:18;18370:26;;18442:9;18436:4;18432:20;18428:1;18417:9;18413:17;18406:47;18470:131;18596:4;18470:131;:::i;:::-;18462:139;;18189:419;;;:::o;18614:141::-;18663:4;18686:3;18678:11;;18709:3;18706:1;18699:14;18743:4;18740:1;18730:18;18722:26;;18614:141;;;:::o;18761:93::-;18798:6;18845:2;18840;18833:5;18829:14;18825:23;18815:33;;18761:93;;;:::o;18860:107::-;18904:8;18954:5;18948:4;18944:16;18923:37;;18860:107;;;;:::o;18973:393::-;19042:6;19092:1;19080:10;19076:18;19115:97;19145:66;19134:9;19115:97;:::i;:::-;19233:39;19263:8;19252:9;19233:39;:::i;:::-;19221:51;;19305:4;19301:9;19294:5;19290:21;19281:30;;19354:4;19344:8;19340:19;19333:5;19330:30;19320:40;;19049:317;;18973:393;;;;;:::o;19372:60::-;19400:3;19421:5;19414:12;;19372:60;;;:::o;19438:142::-;19488:9;19521:53;19539:34;19548:24;19566:5;19548:24;:::i;:::-;19539:34;:::i;:::-;19521:53;:::i;:::-;19508:66;;19438:142;;;:::o;19586:75::-;19629:3;19650:5;19643:12;;19586:75;;;:::o;19667:269::-;19777:39;19808:7;19777:39;:::i;:::-;19838:91;19887:41;19911:16;19887:41;:::i;:::-;19879:6;19872:4;19866:11;19838:91;:::i;:::-;19832:4;19825:105;19743:193;19667:269;;;:::o;19942:73::-;19987:3;20008:1;20001:8;;19942:73;:::o;20021:189::-;20098:32;;:::i;:::-;20139:65;20197:6;20189;20183:4;20139:65;:::i;:::-;20074:136;20021:189;;:::o;20216:186::-;20276:120;20293:3;20286:5;20283:14;20276:120;;;20347:39;20384:1;20377:5;20347:39;:::i;:::-;20320:1;20313:5;20309:13;20300:22;;20276:120;;;20216:186;;:::o;20408:543::-;20509:2;20504:3;20501:11;20498:446;;;20543:38;20575:5;20543:38;:::i;:::-;20627:29;20645:10;20627:29;:::i;:::-;20617:8;20613:44;20810:2;20798:10;20795:18;20792:49;;;20831:8;20816:23;;20792:49;20854:80;20910:22;20928:3;20910:22;:::i;:::-;20900:8;20896:37;20883:11;20854:80;:::i;:::-;20513:431;;20498:446;20408:543;;;:::o;20957:117::-;21011:8;21061:5;21055:4;21051:16;21030:37;;20957:117;;;;:::o;21080:169::-;21124:6;21157:51;21205:1;21201:6;21193:5;21190:1;21186:13;21157:51;:::i;:::-;21153:56;21238:4;21232;21228:15;21218:25;;21131:118;21080:169;;;;:::o;21254:295::-;21330:4;21476:29;21501:3;21495:4;21476:29;:::i;:::-;21468:37;;21538:3;21535:1;21531:11;21525:4;21522:21;21514:29;;21254:295;;;;:::o;21554:1395::-;21671:37;21704:3;21671:37;:::i;:::-;21773:18;21765:6;21762:30;21759:56;;;21795:18;;:::i;:::-;21759:56;21839:38;21871:4;21865:11;21839:38;:::i;:::-;21924:67;21984:6;21976;21970:4;21924:67;:::i;:::-;22018:1;22042:4;22029:17;;22074:2;22066:6;22063:14;22091:1;22086:618;;;;22748:1;22765:6;22762:77;;;22814:9;22809:3;22805:19;22799:26;22790:35;;22762:77;22865:67;22925:6;22918:5;22865:67;:::i;:::-;22859:4;22852:81;22721:222;22056:887;;22086:618;22138:4;22134:9;22126:6;22122:22;22172:37;22204:4;22172:37;:::i;:::-;22231:1;22245:208;22259:7;22256:1;22253:14;22245:208;;;22338:9;22333:3;22329:19;22323:26;22315:6;22308:42;22389:1;22381:6;22377:14;22367:24;;22436:2;22425:9;22421:18;22408:31;;22282:4;22279:1;22275:12;22270:17;;22245:208;;;22481:6;22472:7;22469:19;22466:179;;;22539:9;22534:3;22530:19;22524:26;22582:48;22624:4;22616:6;22612:17;22601:9;22582:48;:::i;:::-;22574:6;22567:64;22489:156;22466:179;22691:1;22687;22679:6;22675:14;22671:22;22665:4;22658:36;22093:611;;;22056:887;;21646:1303;;;21554:1395;;:::o;22955:180::-;23003:77;23000:1;22993:88;23100:4;23097:1;23090:15;23124:4;23121:1;23114:15;23141:233;23180:3;23203:24;23221:5;23203:24;:::i;:::-;23194:33;;23249:66;23242:5;23239:77;23236:103;;23319:18;;:::i;:::-;23236:103;23366:1;23359:5;23355:13;23348:20;;23141:233;;;:::o;23380:170::-;23520:22;23516:1;23508:6;23504:14;23497:46;23380:170;:::o;23556:366::-;23698:3;23719:67;23783:2;23778:3;23719:67;:::i;:::-;23712:74;;23795:93;23884:3;23795:93;:::i;:::-;23913:2;23908:3;23904:12;23897:19;;23556:366;;;:::o;23928:419::-;24094:4;24132:2;24121:9;24117:18;24109:26;;24181:9;24175:4;24171:20;24167:1;24156:9;24152:17;24145:47;24209:131;24335:4;24209:131;:::i;:::-;24201:139;;23928:419;;;:::o;24353:163::-;24493:15;24489:1;24481:6;24477:14;24470:39;24353:163;:::o;24522:366::-;24664:3;24685:67;24749:2;24744:3;24685:67;:::i;:::-;24678:74;;24761:93;24850:3;24761:93;:::i;:::-;24879:2;24874:3;24870:12;24863:19;;24522:366;;;:::o;24894:419::-;25060:4;25098:2;25087:9;25083:18;25075:26;;25147:9;25141:4;25137:20;25133:1;25122:9;25118:17;25111:47;25175:131;25301:4;25175:131;:::i;:::-;25167:139;;24894:419;;;:::o;25319:180::-;25367:77;25364:1;25357:88;25464:4;25461:1;25454:15;25488:4;25485:1;25478:15;25505:185;25545:1;25562:20;25580:1;25562:20;:::i;:::-;25557:25;;25596:20;25614:1;25596:20;:::i;:::-;25591:25;;25635:1;25625:35;;25640:18;;:::i;:::-;25625:35;25682:1;25679;25675:9;25670:14;;25505:185;;;;:::o;25696:170::-;25836:22;25832:1;25824:6;25820:14;25813:46;25696:170;:::o;25872:366::-;26014:3;26035:67;26099:2;26094:3;26035:67;:::i;:::-;26028:74;;26111:93;26200:3;26111:93;:::i;:::-;26229:2;26224:3;26220:12;26213:19;;25872:366;;;:::o;26244:419::-;26410:4;26448:2;26437:9;26433:18;26425:26;;26497:9;26491:4;26487:20;26483:1;26472:9;26468:17;26461:47;26525:131;26651:4;26525:131;:::i;:::-;26517:139;;26244:419;;;:::o;26669:148::-;26771:11;26808:3;26793:18;;26669:148;;;;:::o;26823:315::-;26963:66;26959:1;26951:6;26947:14;26940:90;27064:66;27059:2;27051:6;27047:15;27040:91;26823:315;:::o;27144:402::-;27304:3;27325:85;27407:2;27402:3;27325:85;:::i;:::-;27318:92;;27419:93;27508:3;27419:93;:::i;:::-;27537:2;27532:3;27528:12;27521:19;;27144:402;;;:::o;27552:315::-;27692:66;27688:1;27680:6;27676:14;27669:90;27793:66;27788:2;27780:6;27776:15;27769:91;27552:315;:::o;27873:402::-;28033:3;28054:85;28136:2;28131:3;28054:85;:::i;:::-;28047:92;;28148:93;28237:3;28148:93;:::i;:::-;28266:2;28261:3;28257:12;28250:19;;27873:402;;;:::o;28281:390::-;28387:3;28415:39;28448:5;28415:39;:::i;:::-;28470:89;28552:6;28547:3;28470:89;:::i;:::-;28463:96;;28568:65;28626:6;28621:3;28614:4;28607:5;28603:16;28568:65;:::i;:::-;28658:6;28653:3;28649:16;28642:23;;28391:280;28281:390;;;;:::o;28677:151::-;28817:3;28813:1;28805:6;28801:14;28794:27;28677:151;:::o;28834:400::-;28994:3;29015:84;29097:1;29092:3;29015:84;:::i;:::-;29008:91;;29108:93;29197:3;29108:93;:::i;:::-;29226:1;29221:3;29217:11;29210:18;;28834:400;;;:::o;29240:214::-;29380:66;29376:1;29368:6;29364:14;29357:90;29240:214;:::o;29460:402::-;29620:3;29641:85;29723:2;29718:3;29641:85;:::i;:::-;29634:92;;29735:93;29824:3;29735:93;:::i;:::-;29853:2;29848:3;29844:12;29837:19;;29460:402;;;:::o;29868:1925::-;30601:3;30623:148;30767:3;30623:148;:::i;:::-;30616:155;;30788:148;30932:3;30788:148;:::i;:::-;30781:155;;30953:95;31044:3;31035:6;30953:95;:::i;:::-;30946:102;;31065:148;31209:3;31065:148;:::i;:::-;31058:155;;31230:95;31321:3;31312:6;31230:95;:::i;:::-;31223:102;;31342:148;31486:3;31342:148;:::i;:::-;31335:155;;31507:95;31598:3;31589:6;31507:95;:::i;:::-;31500:102;;31619:148;31763:3;31619:148;:::i;:::-;31612:155;;31784:3;31777:10;;29868:1925;;;;;;:::o;31799:176::-;31939:28;31935:1;31927:6;31923:14;31916:52;31799:176;:::o;31981:402::-;32141:3;32162:85;32244:2;32239:3;32162:85;:::i;:::-;32155:92;;32256:93;32345:3;32256:93;:::i;:::-;32374:2;32369:3;32365:12;32358:19;;31981:402;;;:::o;32389:541::-;32622:3;32644:148;32788:3;32644:148;:::i;:::-;32637:155;;32809:95;32900:3;32891:6;32809:95;:::i;:::-;32802:102;;32921:3;32914:10;;32389:541;;;;:::o;32936:214::-;33076:66;33072:1;33064:6;33060:14;33053:90;32936:214;:::o;33156:400::-;33316:3;33337:84;33419:1;33414:3;33337:84;:::i;:::-;33330:91;;33430:93;33519:3;33430:93;:::i;:::-;33548:1;33543:3;33539:11;33532:18;;33156:400;;;:::o;33562:214::-;33702:66;33698:1;33690:6;33686:14;33679:90;33562:214;:::o;33782:400::-;33942:3;33963:84;34045:1;34040:3;33963:84;:::i;:::-;33956:91;;34056:93;34145:3;34056:93;:::i;:::-;34174:1;34169:3;34165:11;34158:18;;33782:400;;;:::o;34188:214::-;34328:66;34324:1;34316:6;34312:14;34305:90;34188:214;:::o;34408:402::-;34568:3;34589:85;34671:2;34666:3;34589:85;:::i;:::-;34582:92;;34683:93;34772:3;34683:93;:::i;:::-;34801:2;34796:3;34792:12;34785:19;;34408:402;;;:::o;34816:214::-;34956:66;34952:1;34944:6;34940:14;34933:90;34816:214;:::o;35036:402::-;35196:3;35217:85;35299:2;35294:3;35217:85;:::i;:::-;35210:92;;35311:93;35400:3;35311:93;:::i;:::-;35429:2;35424:3;35420:12;35413:19;;35036:402;;;:::o;35444:214::-;35584:66;35580:1;35572:6;35568:14;35561:90;35444:214;:::o;35664:402::-;35824:3;35845:85;35927:2;35922:3;35845:85;:::i;:::-;35838:92;;35939:93;36028:3;35939:93;:::i;:::-;36057:2;36052:3;36048:12;36041:19;;35664:402;;;:::o;36072:214::-;36212:66;36208:1;36200:6;36196:14;36189:90;36072:214;:::o;36292:400::-;36452:3;36473:84;36555:1;36550:3;36473:84;:::i;:::-;36466:91;;36566:93;36655:3;36566:93;:::i;:::-;36684:1;36679:3;36675:11;36668:18;;36292:400;;;:::o;36698:214::-;36838:66;36834:1;36826:6;36822:14;36815:90;36698:214;:::o;36918:402::-;37078:3;37099:85;37181:2;37176:3;37099:85;:::i;:::-;37092:92;;37193:93;37282:3;37193:93;:::i;:::-;37311:2;37306:3;37302:12;37295:19;;36918:402;;;:::o;37326:214::-;37466:66;37462:1;37454:6;37450:14;37443:90;37326:214;:::o;37546:402::-;37706:3;37727:85;37809:2;37804:3;37727:85;:::i;:::-;37720:92;;37821:93;37910:3;37821:93;:::i;:::-;37939:2;37934:3;37930:12;37923:19;;37546:402;;;:::o;37954:315::-;38094:66;38090:1;38082:6;38078:14;38071:90;38195:66;38190:2;38182:6;38178:15;38171:91;37954:315;:::o;38275:402::-;38435:3;38456:85;38538:2;38533:3;38456:85;:::i;:::-;38449:92;;38550:93;38639:3;38550:93;:::i;:::-;38668:2;38663:3;38659:12;38652:19;;38275:402;;;:::o;38683:214::-;38823:66;38819:1;38811:6;38807:14;38800:90;38683:214;:::o;38903:400::-;39063:3;39084:84;39166:1;39161:3;39084:84;:::i;:::-;39077:91;;39177:93;39266:3;39177:93;:::i;:::-;39295:1;39290:3;39286:11;39279:18;;38903:400;;;:::o;39309:152::-;39449:4;39445:1;39437:6;39433:14;39426:28;39309:152;:::o;39467:400::-;39627:3;39648:84;39730:1;39725:3;39648:84;:::i;:::-;39641:91;;39741:93;39830:3;39741:93;:::i;:::-;39859:1;39854:3;39850:11;39843:18;;39467:400;;;:::o;39873:214::-;40013:66;40009:1;40001:6;39997:14;39990:90;39873:214;:::o;40093:400::-;40253:3;40274:84;40356:1;40351:3;40274:84;:::i;:::-;40267:91;;40367:93;40456:3;40367:93;:::i;:::-;40485:1;40480:3;40476:11;40469:18;;40093:400;;;:::o;40499:5065::-;42386:3;42408:148;42552:3;42408:148;:::i;:::-;42401:155;;42573:95;42664:3;42655:6;42573:95;:::i;:::-;42566:102;;42685:148;42829:3;42685:148;:::i;:::-;42678:155;;42850:148;42994:3;42850:148;:::i;:::-;42843:155;;43015:148;43159:3;43015:148;:::i;:::-;43008:155;;43180:148;43324:3;43180:148;:::i;:::-;43173:155;;43345:95;43436:3;43427:6;43345:95;:::i;:::-;43338:102;;43457:148;43601:3;43457:148;:::i;:::-;43450:155;;43622:148;43766:3;43622:148;:::i;:::-;43615:155;;43787:95;43878:3;43869:6;43787:95;:::i;:::-;43780:102;;43899:148;44043:3;43899:148;:::i;:::-;43892:155;;44064:148;44208:3;44064:148;:::i;:::-;44057:155;;44229:95;44320:3;44311:6;44229:95;:::i;:::-;44222:102;;44341:148;44485:3;44341:148;:::i;:::-;44334:155;;44506:148;44650:3;44506:148;:::i;:::-;44499:155;;44671:95;44762:3;44753:6;44671:95;:::i;:::-;44664:102;;44783:148;44927:3;44783:148;:::i;:::-;44776:155;;44948:148;45092:3;44948:148;:::i;:::-;44941:155;;45113:148;45257:3;45113:148;:::i;:::-;45106:155;;45278:95;45369:3;45360:6;45278:95;:::i;:::-;45271:102;;45390:148;45534:3;45390:148;:::i;:::-;45383:155;;45555:3;45548:10;;40499:5065;;;;;;;;;:::o;45570:179::-;45710:31;45706:1;45698:6;45694:14;45687:55;45570:179;:::o;45755:402::-;45915:3;45936:85;46018:2;46013:3;45936:85;:::i;:::-;45929:92;;46030:93;46119:3;46030:93;:::i;:::-;46148:2;46143:3;46139:12;46132:19;;45755:402;;;:::o;46163:541::-;46396:3;46418:148;46562:3;46418:148;:::i;:::-;46411:155;;46583:95;46674:3;46665:6;46583:95;:::i;:::-;46576:102;;46695:3;46688:10;;46163:541;;;;:::o;46710:147::-;46811:11;46848:3;46833:18;;46710:147;;;;:::o;46863:114::-;;:::o;46983:398::-;47142:3;47163:83;47244:1;47239:3;47163:83;:::i;:::-;47156:90;;47255:93;47344:3;47255:93;:::i;:::-;47373:1;47368:3;47364:11;47357:18;;46983:398;;;:::o;47387:379::-;47571:3;47593:147;47736:3;47593:147;:::i;:::-;47586:154;;47757:3;47750:10;;47387:379;;;:::o;47772:165::-;47912:17;47908:1;47900:6;47896:14;47889:41;47772:165;:::o;47943:366::-;48085:3;48106:67;48170:2;48165:3;48106:67;:::i;:::-;48099:74;;48182:93;48271:3;48182:93;:::i;:::-;48300:2;48295:3;48291:12;48284:19;;47943:366;;;:::o;48315:419::-;48481:4;48519:2;48508:9;48504:18;48496:26;;48568:9;48562:4;48558:20;48554:1;48543:9;48539:17;48532:47;48596:131;48722:4;48596:131;:::i;:::-;48588:139;;48315:419;;;:::o;48740:275::-;48872:3;48894:95;48985:3;48976:6;48894:95;:::i;:::-;48887:102;;49006:3;48999:10;;48740:275;;;;:::o;49021:153::-;49161:5;49157:1;49149:6;49145:14;49138:29;49021:153;:::o;49180:400::-;49340:3;49361:84;49443:1;49438:3;49361:84;:::i;:::-;49354:91;;49454:93;49543:3;49454:93;:::i;:::-;49572:1;49567:3;49563:11;49556:18;;49180:400;;;:::o;49586:381::-;49771:3;49793:148;49937:3;49793:148;:::i;:::-;49786:155;;49958:3;49951:10;;49586:381;;;:::o;49973:155::-;50113:7;50109:1;50101:6;50097:14;50090:31;49973:155;:::o;50134:400::-;50294:3;50315:84;50397:1;50392:3;50315:84;:::i;:::-;50308:91;;50408:93;50497:3;50408:93;:::i;:::-;50526:1;50521:3;50517:11;50510:18;;50134:400;;;:::o;50540:381::-;50725:3;50747:148;50891:3;50747:148;:::i;:::-;50740:155;;50912:3;50905:10;;50540:381;;;:::o;50927:154::-;51067:6;51063:1;51055:6;51051:14;51044:30;50927:154;:::o;51087:400::-;51247:3;51268:84;51350:1;51345:3;51268:84;:::i;:::-;51261:91;;51361:93;51450:3;51361:93;:::i;:::-;51479:1;51474:3;51470:11;51463:18;;51087:400;;;:::o;51493:381::-;51678:3;51700:148;51844:3;51700:148;:::i;:::-;51693:155;;51865:3;51858:10;;51493:381;;;:::o;51880:163::-;52020:15;52016:1;52008:6;52004:14;51997:39;51880:163;:::o;52049:366::-;52191:3;52212:67;52276:2;52271:3;52212:67;:::i;:::-;52205:74;;52288:93;52377:3;52288:93;:::i;:::-;52406:2;52401:3;52397:12;52390:19;;52049:366;;;:::o;52421:419::-;52587:4;52625:2;52614:9;52610:18;52602:26;;52674:9;52668:4;52664:20;52660:1;52649:9;52645:17;52638:47;52702:131;52828:4;52702:131;:::i;:::-;52694:139;;52421:419;;;:::o;52846:180::-;52894:77;52891:1;52884:88;52991:4;52988:1;52981:15;53015:4;53012:1;53005:15;53032:165;53172:17;53168:1;53160:6;53156:14;53149:41;53032:165;:::o;53203:366::-;53345:3;53366:67;53430:2;53425:3;53366:67;:::i;:::-;53359:74;;53442:93;53531:3;53442:93;:::i;:::-;53560:2;53555:3;53551:12;53544:19;;53203:366;;;:::o;53575:419::-;53741:4;53779:2;53768:9;53764:18;53756:26;;53828:9;53822:4;53818:20;53814:1;53803:9;53799:17;53792:47;53856:131;53982:4;53856:131;:::i;:::-;53848:139;;53575:419;;;:::o;54000:410::-;54040:7;54063:20;54081:1;54063:20;:::i;:::-;54058:25;;54097:20;54115:1;54097:20;:::i;:::-;54092:25;;54152:1;54149;54145:9;54174:30;54192:11;54174:30;:::i;:::-;54163:41;;54353:1;54344:7;54340:15;54337:1;54334:22;54314:1;54307:9;54287:83;54264:139;;54383:18;;:::i;:::-;54264:139;54048:362;54000:410;;;;:::o;54416:191::-;54456:3;54475:20;54493:1;54475:20;:::i;:::-;54470:25;;54509:20;54527:1;54509:20;:::i;:::-;54504:25;;54552:1;54549;54545:9;54538:16;;54573:3;54570:1;54567:10;54564:36;;;54580:18;;:::i;:::-;54564:36;54416:191;;;;:::o;54613:177::-;54753:29;54749:1;54741:6;54737:14;54730:53;54613:177;:::o;54796:366::-;54938:3;54959:67;55023:2;55018:3;54959:67;:::i;:::-;54952:74;;55035:93;55124:3;55035:93;:::i;:::-;55153:2;55148:3;55144:12;55137:19;;54796:366;;;:::o;55168:419::-;55334:4;55372:2;55361:9;55357:18;55349:26;;55421:9;55415:4;55411:20;55407:1;55396:9;55392:17;55385:47;55449:131;55575:4;55449:131;:::i;:::-;55441:139;;55168:419;;;:::o;55593:98::-;55644:6;55678:5;55672:12;55662:22;;55593:98;;;:::o;55697:168::-;55780:11;55814:6;55809:3;55802:19;55854:4;55849:3;55845:14;55830:29;;55697:168;;;;:::o;55871:373::-;55957:3;55985:38;56017:5;55985:38;:::i;:::-;56039:70;56102:6;56097:3;56039:70;:::i;:::-;56032:77;;56118:65;56176:6;56171:3;56164:4;56157:5;56153:16;56118:65;:::i;:::-;56208:29;56230:6;56208:29;:::i;:::-;56203:3;56199:39;56192:46;;55961:283;55871:373;;;;:::o;56250:640::-;56445:4;56483:3;56472:9;56468:19;56460:27;;56497:71;56565:1;56554:9;56550:17;56541:6;56497:71;:::i;:::-;56578:72;56646:2;56635:9;56631:18;56622:6;56578:72;:::i;:::-;56660;56728:2;56717:9;56713:18;56704:6;56660:72;:::i;:::-;56779:9;56773:4;56769:20;56764:2;56753:9;56749:18;56742:48;56807:76;56878:4;56869:6;56807:76;:::i;:::-;56799:84;;56250:640;;;;;;;:::o;56896:141::-;56952:5;56983:6;56977:13;56968:22;;56999:32;57025:5;56999:32;:::i;:::-;56896:141;;;;:::o;57043:349::-;57112:6;57161:2;57149:9;57140:7;57136:23;57132:32;57129:119;;;57167:79;;:::i;:::-;57129:119;57287:1;57312:63;57367:7;57358:6;57347:9;57343:22;57312:63;:::i;:::-;57302:73;;57258:127;57043:349;;;;:::o;57398:194::-;57438:4;57458:20;57476:1;57458:20;:::i;:::-;57453:25;;57492:20;57510:1;57492:20;:::i;:::-;57487:25;;57536:1;57533;57529:9;57521:17;;57560:1;57554:4;57551:11;57548:37;;;57565:18;;:::i;:::-;57548:37;57398:194;;;;:::o;57598:332::-;57719:4;57757:2;57746:9;57742:18;57734:26;;57770:71;57838:1;57827:9;57823:17;57814:6;57770:71;:::i;:::-;57851:72;57919:2;57908:9;57904:18;57895:6;57851:72;:::i;:::-;57598:332;;;;;:::o
Swarm Source
ipfs://274481ffa7835141be266adae64eeba8c237a1df7ce123507aa049831b88f730
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.