Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
93 MyPFPland
Holders
23
Total Transfers
-
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MyPFPland
Compiler Version
v0.6.5+commit.f956cc89
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-10-16 */ // File: @openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/contracts-upgradeable/proxy/Initializable.sol // SPDX-License-Identifier: MIT // solhint-disable-next-line compiler-version pragma solidity >=0.4.24 <0.8.0; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {UpgradeableProxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } /// @dev Returns true if and only if the function is running in the constructor function _isConstructor() private view returns (bool) { return !AddressUpgradeable.isContract(address(this)); } } // File: @openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal initializer { __Context_init_unchained(); } function __Context_init_unchained() internal initializer { } function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } uint256[50] private __gap; } // File: @openzeppelin/contracts-upgradeable/introspection/IERC165Upgradeable.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165Upgradeable { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721Upgradeable is IERC165Upgradeable { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; } // File: @openzeppelin/contracts-upgradeable/token/ERC721/IERC721MetadataUpgradeable.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721MetadataUpgradeable is IERC721Upgradeable { /** * @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-upgradeable/token/ERC721/IERC721EnumerableUpgradeable.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721EnumerableUpgradeable is IERC721Upgradeable { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } // File: @openzeppelin/contracts-upgradeable/token/ERC721/IERC721ReceiverUpgradeable.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721ReceiverUpgradeable { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4); } // File: @openzeppelin/contracts-upgradeable/introspection/ERC165Upgradeable.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts may inherit from this and call {_registerInterface} to declare * their support of an interface. */ abstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable { /* * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7 */ bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7; /** * @dev Mapping of interface ids to whether or not it's supported. */ mapping(bytes4 => bool) private _supportedInterfaces; function __ERC165_init() internal initializer { __ERC165_init_unchained(); } function __ERC165_init_unchained() internal initializer { // Derived contracts need only register support for their own interfaces, // we register support for ERC165 itself here _registerInterface(_INTERFACE_ID_ERC165); } /** * @dev See {IERC165-supportsInterface}. * * Time complexity O(1), guaranteed to always use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return _supportedInterfaces[interfaceId]; } /** * @dev Registers the contract as an implementer of the interface defined by * `interfaceId`. Support of the actual ERC165 interface is automatic and * registering its interface id is not required. * * See {IERC165-supportsInterface}. * * Requirements: * * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`). */ function _registerInterface(bytes4 interfaceId) internal virtual { require(interfaceId != 0xffffffff, "ERC165: invalid interface id"); _supportedInterfaces[interfaceId] = true; } uint256[49] private __gap; } // File: @openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when 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 SafeMathUpgradeable { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } } // File: @openzeppelin/contracts-upgradeable/utils/EnumerableSetUpgradeable.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSetUpgradeable { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } } // File: @openzeppelin/contracts-upgradeable/utils/EnumerableMapUpgradeable.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Library for managing an enumerable variant of Solidity's * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`] * type. * * Maps have the following properties: * * - Entries are added, removed, and checked for existence in constant time * (O(1)). * - Entries are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableMap for EnumerableMap.UintToAddressMap; * * // Declare a set state variable * EnumerableMap.UintToAddressMap private myMap; * } * ``` * * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are * supported. */ library EnumerableMapUpgradeable { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Map type with // bytes32 keys and values. // The Map implementation uses private functions, and user-facing // implementations (such as Uint256ToAddressMap) are just wrappers around // the underlying Map. // This means that we can only create new EnumerableMaps for types that fit // in bytes32. struct MapEntry { bytes32 _key; bytes32 _value; } struct Map { // Storage of map keys and values MapEntry[] _entries; // Position of the entry defined by a key in the `entries` array, plus 1 // because index 0 means a key is not in the map. mapping (bytes32 => uint256) _indexes; } /** * @dev Adds a key-value pair to a map, or updates the value for an existing * key. O(1). * * Returns true if the key was added to the map, that is if it was not * already present. */ function _set(Map storage map, bytes32 key, bytes32 value) private returns (bool) { // We read and store the key's index to prevent multiple reads from the same storage slot uint256 keyIndex = map._indexes[key]; if (keyIndex == 0) { // Equivalent to !contains(map, key) map._entries.push(MapEntry({ _key: key, _value: value })); // The entry is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value map._indexes[key] = map._entries.length; return true; } else { map._entries[keyIndex - 1]._value = value; return false; } } /** * @dev Removes a key-value pair from a map. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function _remove(Map storage map, bytes32 key) private returns (bool) { // We read and store the key's index to prevent multiple reads from the same storage slot uint256 keyIndex = map._indexes[key]; if (keyIndex != 0) { // Equivalent to contains(map, key) // To delete a key-value pair from the _entries array in O(1), we swap the entry to delete with the last one // in the array, and then remove the last entry (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = keyIndex - 1; uint256 lastIndex = map._entries.length - 1; // When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. MapEntry storage lastEntry = map._entries[lastIndex]; // Move the last entry to the index where the entry to delete is map._entries[toDeleteIndex] = lastEntry; // Update the index for the moved entry map._indexes[lastEntry._key] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved entry was stored map._entries.pop(); // Delete the index for the deleted slot delete map._indexes[key]; return true; } else { return false; } } /** * @dev Returns true if the key is in the map. O(1). */ function _contains(Map storage map, bytes32 key) private view returns (bool) { return map._indexes[key] != 0; } /** * @dev Returns the number of key-value pairs in the map. O(1). */ function _length(Map storage map) private view returns (uint256) { return map._entries.length; } /** * @dev Returns the key-value pair stored at position `index` in the map. O(1). * * Note that there are no guarantees on the ordering of entries inside the * array, and it may change when more entries are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) { require(map._entries.length > index, "EnumerableMap: index out of bounds"); MapEntry storage entry = map._entries[index]; return (entry._key, entry._value); } /** * @dev Tries to returns the value associated with `key`. O(1). * Does not revert if `key` is not in the map. */ function _tryGet(Map storage map, bytes32 key) private view returns (bool, bytes32) { uint256 keyIndex = map._indexes[key]; if (keyIndex == 0) return (false, 0); // Equivalent to contains(map, key) return (true, map._entries[keyIndex - 1]._value); // All indexes are 1-based } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function _get(Map storage map, bytes32 key) private view returns (bytes32) { uint256 keyIndex = map._indexes[key]; require(keyIndex != 0, "EnumerableMap: nonexistent key"); // Equivalent to contains(map, key) return map._entries[keyIndex - 1]._value; // All indexes are 1-based } /** * @dev Same as {_get}, with a custom error message when `key` is not in the map. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {_tryGet}. */ function _get(Map storage map, bytes32 key, string memory errorMessage) private view returns (bytes32) { uint256 keyIndex = map._indexes[key]; require(keyIndex != 0, errorMessage); // Equivalent to contains(map, key) return map._entries[keyIndex - 1]._value; // All indexes are 1-based } // UintToAddressMap struct UintToAddressMap { Map _inner; } /** * @dev Adds a key-value pair to a map, or updates the value for an existing * key. O(1). * * Returns true if the key was added to the map, that is if it was not * already present. */ function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) { return _set(map._inner, bytes32(key), bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) { return _remove(map._inner, bytes32(key)); } /** * @dev Returns true if the key is in the map. O(1). */ function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) { return _contains(map._inner, bytes32(key)); } /** * @dev Returns the number of elements in the map. O(1). */ function length(UintToAddressMap storage map) internal view returns (uint256) { return _length(map._inner); } /** * @dev Returns the element stored at position `index` in the set. O(1). * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) { (bytes32 key, bytes32 value) = _at(map._inner, index); return (uint256(key), address(uint160(uint256(value)))); } /** * @dev Tries to returns the value associated with `key`. O(1). * Does not revert if `key` is not in the map. * * _Available since v3.4._ */ function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool, address) { (bool success, bytes32 value) = _tryGet(map._inner, bytes32(key)); return (success, address(uint160(uint256(value)))); } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function get(UintToAddressMap storage map, uint256 key) internal view returns (address) { return address(uint160(uint256(_get(map._inner, bytes32(key))))); } /** * @dev Same as {get}, with a custom error message when `key` is not in the map. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryGet}. */ function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) { return address(uint160(uint256(_get(map._inner, bytes32(key), errorMessage)))); } } // File: @openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev String operations. */ library StringsUpgradeable { /** * @dev Converts a `uint256` to its ASCII `string` representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); uint256 index = digits - 1; temp = value; while (temp != 0) { buffer[index--] = bytes1(uint8(48 + temp % 10)); temp /= 10; } return string(buffer); } } // File: @openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @title ERC721 Non-Fungible Token Standard basic implementation * @dev see https://eips.ethereum.org/EIPS/eip-721 */ contract ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable, IERC721EnumerableUpgradeable { using SafeMathUpgradeable for uint256; using AddressUpgradeable for address; using EnumerableSetUpgradeable for EnumerableSetUpgradeable.UintSet; using EnumerableMapUpgradeable for EnumerableMapUpgradeable.UintToAddressMap; using StringsUpgradeable for uint256; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector` bytes4 private constant _ERC721_RECEIVED = 0x150b7a02; // Mapping from holder address to their (enumerable) set of owned tokens mapping (address => EnumerableSetUpgradeable.UintSet) private _holderTokens; // Enumerable mapping from token ids to their owners EnumerableMapUpgradeable.UintToAddressMap private _tokenOwners; // Mapping from token ID to approved address mapping (uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping (address => mapping (address => bool)) private _operatorApprovals; // Token name string private _name; // Token symbol string private _symbol; // Optional mapping for token URIs mapping (uint256 => string) private _tokenURIs; // Base URI string private _baseURI; /* * bytes4(keccak256('balanceOf(address)')) == 0x70a08231 * bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e * bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3 * bytes4(keccak256('getApproved(uint256)')) == 0x081812fc * bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465 * bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5 * bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd * bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e * bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde * * => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^ * 0xa22cb465 ^ 0xe985e9c5 ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd */ bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd; /* * bytes4(keccak256('name()')) == 0x06fdde03 * bytes4(keccak256('symbol()')) == 0x95d89b41 * bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd * * => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f */ bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f; /* * bytes4(keccak256('totalSupply()')) == 0x18160ddd * bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59 * bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7 * * => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63 */ bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ function __ERC721_init(string memory name_, string memory symbol_) internal initializer { __Context_init_unchained(); __ERC165_init_unchained(); __ERC721_init_unchained(name_, symbol_); } function __ERC721_init_unchained(string memory name_, string memory symbol_) internal initializer { _name = name_; _symbol = symbol_; // register the supported interfaces to conform to ERC721 via ERC165 _registerInterface(_INTERFACE_ID_ERC721); _registerInterface(_INTERFACE_ID_ERC721_METADATA); _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _holderTokens[owner].length(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return _tokenOwners.get(tokenId, "ERC721: owner query for nonexistent token"); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } // If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI. return string(abi.encodePacked(base, tokenId.toString())); } /** * @dev Returns the base URI set via {_setBaseURI}. This will be * automatically added as a prefix in {tokenURI} to each token's URI, or * to the token ID if no specific URI is set for that token ID. */ function baseURI() public view virtual returns (string memory) { return _baseURI; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { return _holderTokens[owner].at(index); } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds return _tokenOwners.length(); } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { (uint256 tokenId, ) = _tokenOwners.at(index); return tokenId; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721Upgradeable.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require(_msgSender() == owner || ERC721Upgradeable.isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _tokenOwners.contains(tokenId); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721Upgradeable.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || ERC721Upgradeable.isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: d* * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual { _mint(to, tokenId); require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _holderTokens[to].add(tokenId); _tokenOwners.set(tokenId, to); emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721Upgradeable.ownerOf(tokenId); // internal owner _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); // Clear metadata (if any) if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } _holderTokens[owner].remove(tokenId); _tokenOwners.remove(tokenId); emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal virtual { require(ERC721Upgradeable.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); // internal owner require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _holderTokens[from].remove(tokenId); _holderTokens[to].add(tokenId); _tokenOwners.set(tokenId, to); emit Transfer(from, to, tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @dev Internal function to set the base URI for all token IDs. It is * automatically added as a prefix to the value returned in {tokenURI}, * or to the token ID if {tokenURI} is empty. */ function _setBaseURI(string memory baseURI_) internal virtual { _baseURI = baseURI_; } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data) private returns (bool) { if (!to.isContract()) { return true; } bytes memory returndata = to.functionCall(abi.encodeWithSelector( IERC721ReceiverUpgradeable(to).onERC721Received.selector, _msgSender(), from, tokenId, _data ), "ERC721: transfer to non ERC721Receiver implementer"); bytes4 retval = abi.decode(returndata, (bytes4)); return (retval == _ERC721_RECEIVED); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721Upgradeable.ownerOf(tokenId), to, tokenId); // internal owner } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { } uint256[41] private __gap; } // File: @openzeppelin/contracts-upgradeable/utils/CountersUpgradeable.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` * Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the {SafeMath} * overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never * directly accessed. */ library CountersUpgradeable { using SafeMathUpgradeable for uint256; struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { // The {SafeMath} overflow check can be skipped here, see the comment at the top counter._value += 1; } function decrement(Counter storage counter) internal { counter._value = counter._value.sub(1); } } // File: @openzeppelin/contracts/utils/Context.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File: @openzeppelin/contracts/introspection/IERC165.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/contracts/token/ERC721/IERC721.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; } // File: @openzeppelin/contracts/token/ERC721/IERC721Metadata.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } // File: @openzeppelin/contracts/token/ERC721/IERC721Enumerable.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } // File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4); } // File: @openzeppelin/contracts/introspection/ERC165.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts may inherit from this and call {_registerInterface} to declare * their support of an interface. */ abstract contract ERC165 is IERC165 { /* * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7 */ bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7; /** * @dev Mapping of interface ids to whether or not it's supported. */ mapping(bytes4 => bool) private _supportedInterfaces; constructor () internal { // Derived contracts need only register support for their own interfaces, // we register support for ERC165 itself here _registerInterface(_INTERFACE_ID_ERC165); } /** * @dev See {IERC165-supportsInterface}. * * Time complexity O(1), guaranteed to always use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return _supportedInterfaces[interfaceId]; } /** * @dev Registers the contract as an implementer of the interface defined by * `interfaceId`. Support of the actual ERC165 interface is automatic and * registering its interface id is not required. * * See {IERC165-supportsInterface}. * * Requirements: * * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`). */ function _registerInterface(bytes4 interfaceId) internal virtual { require(interfaceId != 0xffffffff, "ERC165: invalid interface id"); _supportedInterfaces[interfaceId] = true; } } // File: @openzeppelin/contracts/math/SafeMath.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when 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 SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } } // File: @openzeppelin/contracts/utils/Address.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/contracts/utils/EnumerableSet.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } } // File: @openzeppelin/contracts/utils/EnumerableMap.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Library for managing an enumerable variant of Solidity's * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`] * type. * * Maps have the following properties: * * - Entries are added, removed, and checked for existence in constant time * (O(1)). * - Entries are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableMap for EnumerableMap.UintToAddressMap; * * // Declare a set state variable * EnumerableMap.UintToAddressMap private myMap; * } * ``` * * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are * supported. */ library EnumerableMap { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Map type with // bytes32 keys and values. // The Map implementation uses private functions, and user-facing // implementations (such as Uint256ToAddressMap) are just wrappers around // the underlying Map. // This means that we can only create new EnumerableMaps for types that fit // in bytes32. struct MapEntry { bytes32 _key; bytes32 _value; } struct Map { // Storage of map keys and values MapEntry[] _entries; // Position of the entry defined by a key in the `entries` array, plus 1 // because index 0 means a key is not in the map. mapping (bytes32 => uint256) _indexes; } /** * @dev Adds a key-value pair to a map, or updates the value for an existing * key. O(1). * * Returns true if the key was added to the map, that is if it was not * already present. */ function _set(Map storage map, bytes32 key, bytes32 value) private returns (bool) { // We read and store the key's index to prevent multiple reads from the same storage slot uint256 keyIndex = map._indexes[key]; if (keyIndex == 0) { // Equivalent to !contains(map, key) map._entries.push(MapEntry({ _key: key, _value: value })); // The entry is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value map._indexes[key] = map._entries.length; return true; } else { map._entries[keyIndex - 1]._value = value; return false; } } /** * @dev Removes a key-value pair from a map. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function _remove(Map storage map, bytes32 key) private returns (bool) { // We read and store the key's index to prevent multiple reads from the same storage slot uint256 keyIndex = map._indexes[key]; if (keyIndex != 0) { // Equivalent to contains(map, key) // To delete a key-value pair from the _entries array in O(1), we swap the entry to delete with the last one // in the array, and then remove the last entry (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = keyIndex - 1; uint256 lastIndex = map._entries.length - 1; // When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. MapEntry storage lastEntry = map._entries[lastIndex]; // Move the last entry to the index where the entry to delete is map._entries[toDeleteIndex] = lastEntry; // Update the index for the moved entry map._indexes[lastEntry._key] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved entry was stored map._entries.pop(); // Delete the index for the deleted slot delete map._indexes[key]; return true; } else { return false; } } /** * @dev Returns true if the key is in the map. O(1). */ function _contains(Map storage map, bytes32 key) private view returns (bool) { return map._indexes[key] != 0; } /** * @dev Returns the number of key-value pairs in the map. O(1). */ function _length(Map storage map) private view returns (uint256) { return map._entries.length; } /** * @dev Returns the key-value pair stored at position `index` in the map. O(1). * * Note that there are no guarantees on the ordering of entries inside the * array, and it may change when more entries are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) { require(map._entries.length > index, "EnumerableMap: index out of bounds"); MapEntry storage entry = map._entries[index]; return (entry._key, entry._value); } /** * @dev Tries to returns the value associated with `key`. O(1). * Does not revert if `key` is not in the map. */ function _tryGet(Map storage map, bytes32 key) private view returns (bool, bytes32) { uint256 keyIndex = map._indexes[key]; if (keyIndex == 0) return (false, 0); // Equivalent to contains(map, key) return (true, map._entries[keyIndex - 1]._value); // All indexes are 1-based } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function _get(Map storage map, bytes32 key) private view returns (bytes32) { uint256 keyIndex = map._indexes[key]; require(keyIndex != 0, "EnumerableMap: nonexistent key"); // Equivalent to contains(map, key) return map._entries[keyIndex - 1]._value; // All indexes are 1-based } /** * @dev Same as {_get}, with a custom error message when `key` is not in the map. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {_tryGet}. */ function _get(Map storage map, bytes32 key, string memory errorMessage) private view returns (bytes32) { uint256 keyIndex = map._indexes[key]; require(keyIndex != 0, errorMessage); // Equivalent to contains(map, key) return map._entries[keyIndex - 1]._value; // All indexes are 1-based } // UintToAddressMap struct UintToAddressMap { Map _inner; } /** * @dev Adds a key-value pair to a map, or updates the value for an existing * key. O(1). * * Returns true if the key was added to the map, that is if it was not * already present. */ function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) { return _set(map._inner, bytes32(key), bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) { return _remove(map._inner, bytes32(key)); } /** * @dev Returns true if the key is in the map. O(1). */ function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) { return _contains(map._inner, bytes32(key)); } /** * @dev Returns the number of elements in the map. O(1). */ function length(UintToAddressMap storage map) internal view returns (uint256) { return _length(map._inner); } /** * @dev Returns the element stored at position `index` in the set. O(1). * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) { (bytes32 key, bytes32 value) = _at(map._inner, index); return (uint256(key), address(uint160(uint256(value)))); } /** * @dev Tries to returns the value associated with `key`. O(1). * Does not revert if `key` is not in the map. * * _Available since v3.4._ */ function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool, address) { (bool success, bytes32 value) = _tryGet(map._inner, bytes32(key)); return (success, address(uint160(uint256(value)))); } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function get(UintToAddressMap storage map, uint256 key) internal view returns (address) { return address(uint160(uint256(_get(map._inner, bytes32(key))))); } /** * @dev Same as {get}, with a custom error message when `key` is not in the map. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryGet}. */ function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) { return address(uint160(uint256(_get(map._inner, bytes32(key), errorMessage)))); } } // File: @openzeppelin/contracts/utils/Strings.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev String operations. */ library Strings { /** * @dev Converts a `uint256` to its ASCII `string` representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); uint256 index = digits - 1; temp = value; while (temp != 0) { buffer[index--] = bytes1(uint8(48 + temp % 10)); temp /= 10; } return string(buffer); } } // File: @openzeppelin/contracts/token/ERC721/ERC721.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @title ERC721 Non-Fungible Token Standard basic implementation * @dev see https://eips.ethereum.org/EIPS/eip-721 */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector` bytes4 private constant _ERC721_RECEIVED = 0x150b7a02; // Mapping from holder address to their (enumerable) set of owned tokens mapping (address => EnumerableSet.UintSet) private _holderTokens; // Enumerable mapping from token ids to their owners EnumerableMap.UintToAddressMap private _tokenOwners; // Mapping from token ID to approved address mapping (uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping (address => mapping (address => bool)) private _operatorApprovals; // Token name string private _name; // Token symbol string private _symbol; // Optional mapping for token URIs mapping (uint256 => string) private _tokenURIs; // Base URI string private _baseURI; /* * bytes4(keccak256('balanceOf(address)')) == 0x70a08231 * bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e * bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3 * bytes4(keccak256('getApproved(uint256)')) == 0x081812fc * bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465 * bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5 * bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd * bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e * bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde * * => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^ * 0xa22cb465 ^ 0xe985e9c5 ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd */ bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd; /* * bytes4(keccak256('name()')) == 0x06fdde03 * bytes4(keccak256('symbol()')) == 0x95d89b41 * bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd * * => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f */ bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f; /* * bytes4(keccak256('totalSupply()')) == 0x18160ddd * bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59 * bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7 * * => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63 */ bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor (string memory name_, string memory symbol_) public { _name = name_; _symbol = symbol_; // register the supported interfaces to conform to ERC721 via ERC165 _registerInterface(_INTERFACE_ID_ERC721); _registerInterface(_INTERFACE_ID_ERC721_METADATA); _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _holderTokens[owner].length(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return _tokenOwners.get(tokenId, "ERC721: owner query for nonexistent token"); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } // If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI. return string(abi.encodePacked(base, tokenId.toString())); } /** * @dev Returns the base URI set via {_setBaseURI}. This will be * automatically added as a prefix in {tokenURI} to each token's URI, or * to the token ID if no specific URI is set for that token ID. */ function baseURI() public view virtual returns (string memory) { return _baseURI; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { return _holderTokens[owner].at(index); } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds return _tokenOwners.length(); } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { (uint256 tokenId, ) = _tokenOwners.at(index); return tokenId; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require(_msgSender() == owner || ERC721.isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _tokenOwners.contains(tokenId); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || ERC721.isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: d* * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual { _mint(to, tokenId); require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _holderTokens[to].add(tokenId); _tokenOwners.set(tokenId, to); emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); // internal owner _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); // Clear metadata (if any) if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } _holderTokens[owner].remove(tokenId); _tokenOwners.remove(tokenId); emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); // internal owner require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _holderTokens[from].remove(tokenId); _holderTokens[to].add(tokenId); _tokenOwners.set(tokenId, to); emit Transfer(from, to, tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @dev Internal function to set the base URI for all token IDs. It is * automatically added as a prefix to the value returned in {tokenURI}, * or to the token ID if {tokenURI} is empty. */ function _setBaseURI(string memory baseURI_) internal virtual { _baseURI = baseURI_; } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data) private returns (bool) { if (!to.isContract()) { return true; } bytes memory returndata = to.functionCall(abi.encodeWithSelector( IERC721Receiver(to).onERC721Received.selector, _msgSender(), from, tokenId, _data ), "ERC721: transfer to non ERC721Receiver implementer"); bytes4 retval = abi.decode(returndata, (bytes4)); return (retval == _ERC721_RECEIVED); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); // internal owner } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { } } // File: contracts/MyPFPland.sol // SPDX-License-Identifier: MIT pragma solidity ^0.6.5; contract MyPFPland is ERC721Upgradeable { using CountersUpgradeable for CountersUpgradeable.Counter; CountersUpgradeable.Counter internal toyTokenIDs; CountersUpgradeable.Counter internal paintingTokenIDs; CountersUpgradeable.Counter internal statuetteTokenIDs; uint256 internal toyTokenIDBase; uint256 internal paintingTokenIDBase; uint256 internal statuetteTokenIDBase; address public _owner; bool public isOpenPayment; bool public isPausedClaimingToy; bool public isPausedClaimingPainting; bool public isPausedClaimingStatteute; mapping(address => uint256) internal addressToClaimedToy; mapping(address => uint256) internal addressToClaimedPainting; mapping(address => uint256) internal addressToClaimedStatteute; mapping(address => uint256) internal addressToMigratedCameo; mapping(address => uint256) internal addressToMigratedHonorary; mapping(address => uint256) internal addressToRoyalty; ERC721 blootNFT; modifier onlyOwner() { require(_owner == msg.sender, "Ownable: caller is not the owner" ); _; } function initialize() initializer external { __ERC721_init("MyPFPland", "MyPFPland"); _owner = msg.sender; toyTokenIDBase = 0; paintingTokenIDBase = 300; statuetteTokenIDBase = 400; blootNFT = ERC721(0x72541Ad75E05BC77C7A92304225937a8F6653372); } function claim(uint256 _category, uint256 _count) external payable { require(_category >= 1, "out of range"); require(_category <= 3, "out of range"); if (_category == 1) require(isPausedClaimingToy == false, "toy claiming is paused"); if (_category == 2) require(isPausedClaimingPainting == false, "painting claiming is paused"); if (_category == 3) require(isPausedClaimingStatteute == false, "statteute claiming is paused"); uint256 totalDerivative = getTotalDerivative(msg.sender, _category); if (_category == 1) totalDerivative += addressToMigratedCameo[msg.sender]; else if (_category == 2) totalDerivative += addressToMigratedHonorary[msg.sender]; uint256 tokenID = 0; if (_category == 1) require(totalDerivative >= addressToClaimedToy[msg.sender] + _count, "already claimed all toys"); else if (_category == 2) require(totalDerivative >= addressToClaimedPainting[msg.sender] + _count, "already claimed all paintings"); else if (_category == 3) require(totalDerivative >= addressToClaimedStatteute[msg.sender] + _count, "already claimed all statteutes"); for (uint8 i = 0; i < _count; i++) { if (_category == 1) { toyTokenIDs.increment(); tokenID = toyTokenIDs.current() + toyTokenIDBase; } else if (_category == 2) { paintingTokenIDs.increment(); tokenID = paintingTokenIDs.current() + paintingTokenIDBase; } else if (_category == 3) { statuetteTokenIDs.increment(); tokenID = statuetteTokenIDs.current() + statuetteTokenIDBase; } _safeMint(msg.sender, tokenID); _setTokenURI(tokenID, uint2str(tokenID)); } if (_category == 1) addressToClaimedToy[msg.sender] += _count; else if (_category == 2) addressToClaimedPainting[msg.sender] += _count; else if (_category == 3) addressToClaimedStatteute[msg.sender] += _count; } function getDerivativesToClaim(address _claimer, uint256 _category) public view returns(uint256) { uint256 remain = 0; if (_category < 1 || _category > 3) return remain; uint256 totalDerivative = getTotalDerivative(_claimer, _category); if (_category == 1) { totalDerivative += addressToMigratedCameo[_claimer]; remain = totalDerivative - addressToClaimedToy[_claimer]; } else if (_category == 2) { totalDerivative += addressToMigratedHonorary[_claimer]; remain = totalDerivative - addressToClaimedPainting[_claimer]; } else if (_category == 3) { remain = totalDerivative - addressToClaimedStatteute[_claimer]; } return remain; } function getTotalDerivative(address _claimer, uint256 _category) internal view returns(uint256) { uint256 result = 0; if (blootNFT.balanceOf(_claimer) == 0) return result; uint256 tokenIdMin; uint256 tokenIdMax; if (_category == 1) { tokenIdMin = 4790; tokenIdMax = 4962; } else if (_category == 2) { tokenIdMin = 4963; tokenIdMax = 5000; } else if (_category == 3) { tokenIdMin = 1; tokenIdMax = 1484; } for (uint256 i = 0; i < blootNFT.balanceOf(_claimer); i++) { uint256 tokenId = blootNFT.tokenOfOwnerByIndex(_claimer, i); if (tokenId >= tokenIdMin && tokenId <= tokenIdMax) result ++; } return result; } function setPauseClaimingToy(bool _pauseClaimingToy) external onlyOwner { isPausedClaimingToy = _pauseClaimingToy; } function setPauseClaimingPainting(bool _pauseClaimingPainting) external onlyOwner { isPausedClaimingPainting = _pauseClaimingPainting; } function setPauseClaimingStatteute(bool _pauseClaimingStatteute) external onlyOwner { isPausedClaimingStatteute = _pauseClaimingStatteute; } function setBatchCameoWhitelist(address[] calldata _whitelist, uint256 _count) external onlyOwner { for (uint256 i = 0; i < _count; i++) { addressToMigratedCameo[_whitelist[i]] += 1; } } function setBatchHonoraryWhitelist(address[] calldata _whitelist, uint256 _count) external onlyOwner { for (uint256 i = 0; i < _count; i++) { addressToMigratedHonorary[_whitelist[i]] += 1; } } function setBaseURI(string calldata _baseURI) external onlyOwner { super._setBaseURI(_baseURI); } function setTokenURI(uint256 _tokenID, uint256 _tokenURI) external onlyOwner { super._setTokenURI(_tokenID, uint2str(_tokenURI)); } function setTokenURIs(uint256[] calldata _tokenIDs, uint256[] calldata _tokenURIs, uint256 _count) external onlyOwner { for (uint256 i = 0; i < _count; i++) { super._setTokenURI(_tokenIDs[i], uint2str(_tokenURIs[i])); } } function openPayment(bool _open) external onlyOwner { isOpenPayment = _open; } function setBatchRoyalty(address[] calldata _people, uint256[] calldata _amount, uint256 _count) external onlyOwner { for (uint256 i = 0; i < _count; i++) { addressToRoyalty[_people[i]] = _amount[i]; } } function setRoyalty(address _person, uint256 _amount) external onlyOwner { addressToRoyalty[_person] = _amount; } function royaltyOf(address _person) external view returns(uint256) { return addressToRoyalty[_person]; } function withdraw() external onlyOwner { (bool success, ) = _owner.call{value: address(this).balance}(""); require(success, "Failed to send"); } function withdrawRoyalty() external { require(isOpenPayment == true, "Payment is closed"); require(addressToRoyalty[msg.sender] > 0, "You don't have any royalties"); require(address(this).balance >= addressToRoyalty[msg.sender], "Insufficient balance in the contract"); require(msg.sender != address(0x0), "invalid caller"); (bool success, ) = msg.sender.call{value: addressToRoyalty[msg.sender]}(""); require(success, "Failed to send eth"); addressToRoyalty[msg.sender] = 0; } function transferOwnership(address newOwner) external onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _owner = newOwner; } function uint2str(uint _i) internal pure returns (string memory _uintAsString) { if (_i == 0) { return "0"; } uint j = _i; uint len; while (j != 0) { len++; j /= 10; } bytes memory bstr = new bytes(len); uint k = len - 1; while (_i != 0) { bstr[k--] = byte(uint8(48 + _i % 10)); _i /= 10; } return string(bstr); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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":"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":"_owner","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_category","type":"uint256"},{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_claimer","type":"address"},{"internalType":"uint256","name":"_category","type":"uint256"}],"name":"getDerivativesToClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","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":[],"name":"isOpenPayment","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPausedClaimingPainting","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPausedClaimingStatteute","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPausedClaimingToy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_open","type":"bool"}],"name":"openPayment","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_person","type":"address"}],"name":"royaltyOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_whitelist","type":"address[]"},{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"setBatchCameoWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_whitelist","type":"address[]"},{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"setBatchHonoraryWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_people","type":"address[]"},{"internalType":"uint256[]","name":"_amount","type":"uint256[]"},{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"setBatchRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_pauseClaimingPainting","type":"bool"}],"name":"setPauseClaimingPainting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_pauseClaimingStatteute","type":"bool"}],"name":"setPauseClaimingStatteute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_pauseClaimingToy","type":"bool"}],"name":"setPauseClaimingToy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_person","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenID","type":"uint256"},{"internalType":"uint256","name":"_tokenURI","type":"uint256"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIDs","type":"uint256[]"},{"internalType":"uint256[]","name":"_tokenURIs","type":"uint256[]"},{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"setTokenURIs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50615ee780620000216000396000f3fe60806040526004361061023b5760003560e01c80635bf0234d1161012e578063bb30d4ce116100ab578063d78233601161006f578063d7823360146110f7578063e6031d1b1461113c578063e985e9c51461116b578063f1147bae146111f4578063f2fde38b1461120b5761023b565b8063bb30d4ce14610ea7578063c31dbf9614610f0c578063c349026314610f9c578063c87b56dd14610fd4578063c8d6ab56146110885761023b565b806395d89b41116100f257806395d89b4114610c145780639de4ff1514610ca4578063a22cb46514610ce1578063b2bdfa7b14610d3e578063b88d4fde14610d955761023b565b80635bf0234d14610a5e5780636352211e14610a8d5780636c0360eb14610b0857806370a0823114610b985780638129fc1c14610bfd5761023b565b806328331595116101bc5780634587b3ee116101805780634587b3ee146108385780634d8980f1146108675780634f6ccce7146108a457806355f804b3146108f3578063572c61c3146109795761023b565b8063283315951461066a5780632cd1826b146106fa5780632f745c59146107375780633ccfd60b146107a657806342842e0e146107bd5761023b565b806318160ddd1161020357806318160ddd146104735780631b33bf571461049e5780631c5822fe146105835780631f3221b4146105b257806323b872dd146105ef5761023b565b806301ffc9a71461024057806306fdde03146102b2578063081812fc14610342578063095ea7b3146103bd57806310fd332b14610418575b600080fd5b34801561024c57600080fd5b506102986004803603602081101561026357600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916906020019092919050505061125c565b604051808215151515815260200191505060405180910390f35b3480156102be57600080fd5b506102c76112c4565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103075780820151818401526020810190506102ec565b50505050905090810190601f1680156103345780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561034e57600080fd5b5061037b6004803603602081101561036557600080fd5b8101908080359060200190929190505050611366565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156103c957600080fd5b50610416600480360360408110156103e057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611401565b005b34801561042457600080fd5b506104716004803603604081101561043b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611545565b005b34801561047f57600080fd5b50610488611650565b6040518082815260200191505060405180910390f35b3480156104aa57600080fd5b50610581600480360360608110156104c157600080fd5b81019080803590602001906401000000008111156104de57600080fd5b8201836020820111156104f057600080fd5b8035906020019184602083028401116401000000008311171561051257600080fd5b90919293919293908035906020019064010000000081111561053357600080fd5b82018360208201111561054557600080fd5b8035906020019184602083028401116401000000008311171561056757600080fd5b909192939192939080359060200190929190505050611661565b005b34801561058f57600080fd5b5061059861177d565b604051808215151515815260200191505060405180910390f35b3480156105be57600080fd5b506105ed600480360360208110156105d557600080fd5b81019080803515159060200190929190505050611790565b005b3480156105fb57600080fd5b506106686004803603606081101561061257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611870565b005b34801561067657600080fd5b506106f86004803603604081101561068d57600080fd5b81019080803590602001906401000000008111156106aa57600080fd5b8201836020820111156106bc57600080fd5b803590602001918460208302840111640100000000831117156106de57600080fd5b9091929391929390803590602001909291905050506118e6565b005b34801561070657600080fd5b506107356004803603602081101561071d57600080fd5b81019080803515159060200190929190505050611a40565b005b34801561074357600080fd5b506107906004803603604081101561075a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611b20565b6040518082815260200191505060405180910390f35b3480156107b257600080fd5b506107bb611b7b565b005b3480156107c957600080fd5b50610836600480360360608110156107e057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611d3f565b005b34801561084457600080fd5b5061084d611d5f565b604051808215151515815260200191505060405180910390f35b34801561087357600080fd5b506108a26004803603602081101561088a57600080fd5b81019080803515159060200190929190505050611d72565b005b3480156108b057600080fd5b506108dd600480360360208110156108c757600080fd5b8101908080359060200190929190505050611e52565b6040518082815260200191505060405180910390f35b3480156108ff57600080fd5b506109776004803603602081101561091657600080fd5b810190808035906020019064010000000081111561093357600080fd5b82018360208201111561094557600080fd5b8035906020019184600183028401116401000000008311171561096757600080fd5b9091929391929390505050611e75565b005b34801561098557600080fd5b50610a5c6004803603606081101561099c57600080fd5b81019080803590602001906401000000008111156109b957600080fd5b8201836020820111156109cb57600080fd5b803590602001918460208302840111640100000000831117156109ed57600080fd5b909192939192939080359060200190640100000000811115610a0e57600080fd5b820183602082011115610a2057600080fd5b80359060200191846020830284011164010000000083111715610a4257600080fd5b909192939192939080359060200190929190505050611f89565b005b348015610a6a57600080fd5b50610a736120ed565b604051808215151515815260200191505060405180910390f35b348015610a9957600080fd5b50610ac660048036036020811015610ab057600080fd5b8101908080359060200190929190505050612100565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610b1457600080fd5b50610b1d612137565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610b5d578082015181840152602081019050610b42565b50505050905090810190601f168015610b8a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610ba457600080fd5b50610be760048036036020811015610bbb57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506121d9565b6040518082815260200191505060405180910390f35b348015610c0957600080fd5b50610c126122ae565b005b348015610c2057600080fd5b50610c296124d1565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610c69578082015181840152602081019050610c4e565b50505050905090810190601f168015610c965780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610cb057600080fd5b50610cdf60048036036020811015610cc757600080fd5b81019080803515159060200190929190505050612573565b005b348015610ced57600080fd5b50610d3c60048036036040811015610d0457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050612653565b005b348015610d4a57600080fd5b50610d5361280b565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610da157600080fd5b50610ea560048036036080811015610db857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190640100000000811115610e1f57600080fd5b820183602082011115610e3157600080fd5b80359060200191846001830284011164010000000083111715610e5357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050612831565b005b348015610eb357600080fd5b50610ef660048036036020811015610eca57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506128a9565b6040518082815260200191505060405180910390f35b348015610f1857600080fd5b50610f9a60048036036040811015610f2f57600080fd5b8101908080359060200190640100000000811115610f4c57600080fd5b820183602082011115610f5e57600080fd5b80359060200191846020830284011164010000000083111715610f8057600080fd5b9091929391929390803590602001909291905050506128f2565b005b610fd260048036036040811015610fb257600080fd5b810190808035906020019092919080359060200190929190505050612a4c565b005b348015610fe057600080fd5b5061100d60048036036020811015610ff757600080fd5b81019080803590602001909291905050506131ba565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561104d578082015181840152602081019050611032565b50505050905090810190601f16801561107a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561109457600080fd5b506110e1600480360360408110156110ab57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061348b565b6040518082815260200191505060405180910390f35b34801561110357600080fd5b5061113a6004803603604081101561111a57600080fd5b810190808035906020019092919080359060200190929190505050613645565b005b34801561114857600080fd5b5061115161371e565b604051808215151515815260200191505060405180910390f35b34801561117757600080fd5b506111da6004803603604081101561118e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613731565b604051808215151515815260200191505060405180910390f35b34801561120057600080fd5b506112096137c5565b005b34801561121757600080fd5b5061125a6004803603602081101561122e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613ba1565b005b600060336000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b6060606a8054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561135c5780601f106113315761010080835404028352916020019161135c565b820191906000526020600020905b81548152906001019060200180831161133f57829003601f168201915b5050505050905090565b600061137182613d2e565b6113c6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180615d8c602c913960400191505060405180910390fd5b6068600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061140c82612100565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611493576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180615e3c6021913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166114b2613d4b565b73ffffffffffffffffffffffffffffffffffffffff1614806114e157506114e0816114db613d4b565b613731565b5b611536576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526038815260200180615cb16038913960400191505060405180910390fd5b6115408383613d53565b505050565b3373ffffffffffffffffffffffffffffffffffffffff16609d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611608576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8060a360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b600061165c6066613e0c565b905090565b3373ffffffffffffffffffffffffffffffffffffffff16609d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611724576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60008090505b818110156117755761176886868381811061174157fe5b9050602002013561176386868581811061175757fe5b90506020020135613e21565b613f65565b808060010191505061172a565b505050505050565b609d60159054906101000a900460ff1681565b3373ffffffffffffffffffffffffffffffffffffffff16609d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611853576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80609d60176101000a81548160ff02191690831515021790555050565b61188161187b613d4b565b82613fef565b6118d6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526031815260200180615e5d6031913960400191505060405180910390fd5b6118e18383836140e3565b505050565b3373ffffffffffffffffffffffffffffffffffffffff16609d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146119a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60008090505b81811015611a3a57600160a160008686858181106119c957fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555080806001019150506119af565b50505050565b3373ffffffffffffffffffffffffffffffffffffffff16609d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611b03576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80609d60146101000a81548160ff02191690831515021790555050565b6000611b7382606560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061432690919063ffffffff16565b905092915050565b3373ffffffffffffffffffffffffffffffffffffffff16609d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611c3e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6000609d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff164760405180600001905060006040518083038185875af1925050503d8060008114611cc0576040519150601f19603f3d011682016040523d82523d6000602084013e611cc5565b606091505b5050905080611d3c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f4661696c656420746f2073656e6400000000000000000000000000000000000081525060200191505060405180910390fd5b50565b611d5a83838360405180602001604052806000815250612831565b505050565b609d60179054906101000a900460ff1681565b3373ffffffffffffffffffffffffffffffffffffffff16609d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611e35576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80609d60156101000a81548160ff02191690831515021790555050565b600080611e6983606661434090919063ffffffff16565b50905080915050919050565b3373ffffffffffffffffffffffffffffffffffffffff16609d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611f38576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b611f8582828080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061436f565b5050565b3373ffffffffffffffffffffffffffffffffffffffff16609d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461204c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60008090505b818110156120e55783838281811061206657fe5b9050602002013560a3600088888581811061207d57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508080600101915050612052565b505050505050565b609d60169054906101000a900460ff1681565b600061213082604051806060016040528060298152602001615d136029913960666143899092919063ffffffff16565b9050919050565b6060606d8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156121cf5780601f106121a4576101008083540402835291602001916121cf565b820191906000526020600020905b8154815290600101906020018083116121b257829003601f168201915b5050505050905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612260576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180615ce9602a913960400191505060405180910390fd5b6122a7606560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206143a8565b9050919050565b600060019054906101000a900460ff16806122cd57506122cc6143bd565b5b806122e457506000809054906101000a900460ff16155b612339576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180615d3c602e913960400191505060405180910390fd5b60008060019054906101000a900460ff161590508015612389576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6123fd6040518060400160405280600981526020017f4d795046506c616e6400000000000000000000000000000000000000000000008152506040518060400160405280600981526020017f4d795046506c616e6400000000000000000000000000000000000000000000008152506143ce565b33609d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000609a8190555061012c609b81905550610190609c819055507372541ad75e05bc77c7a92304225937a8f665337260a460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080156124ce5760008060016101000a81548160ff0219169083151502179055505b50565b6060606b8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156125695780601f1061253e57610100808354040283529160200191612569565b820191906000526020600020905b81548152906001019060200180831161254c57829003601f168201915b5050505050905090565b3373ffffffffffffffffffffffffffffffffffffffff16609d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612636576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80609d60166101000a81548160ff02191690831515021790555050565b61265b613d4b565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156126fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f4552433732313a20617070726f766520746f2063616c6c65720000000000000081525060200191505060405180910390fd5b8060696000612709613d4b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166127b6613d4b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051808215151515815260200191505060405180910390a35050565b609d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61284261283c613d4b565b83613fef565b612897576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526031815260200180615e5d6031913960400191505060405180910390fd5b6128a3848484846144e9565b50505050565b600060a360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b3373ffffffffffffffffffffffffffffffffffffffff16609d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146129b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60008090505b81811015612a4657600160a260008686858181106129d557fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555080806001019150506129bb565b50505050565b6001821015612ac3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600c8152602001807f6f7574206f662072616e6765000000000000000000000000000000000000000081525060200191505060405180910390fd5b6003821115612b3a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600c8152602001807f6f7574206f662072616e6765000000000000000000000000000000000000000081525060200191505060405180910390fd5b6001821415612bcd5760001515609d60159054906101000a900460ff16151514612bcc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f746f7920636c61696d696e67206973207061757365640000000000000000000081525060200191505060405180910390fd5b5b6002821415612c605760001515609d60169054906101000a900460ff16151514612c5f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f7061696e74696e6720636c61696d696e6720697320706175736564000000000081525060200191505060405180910390fd5b5b6003821415612cf35760001515609d60179054906101000a900460ff16151514612cf2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f73746174746575746520636c61696d696e67206973207061757365640000000081525060200191505060405180910390fd5b5b6000612cff338461455b565b90506001831415612d535760a160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481019050612da2565b6002831415612da15760a260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054810190505b5b60008090506001841415612e6c5782609e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205401821015612e67576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f616c726561647920636c61696d656420616c6c20746f7973000000000000000081525060200191505060405180910390fd5b612ff4565b6002841415612f315782609f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205401821015612f2c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f616c726561647920636c61696d656420616c6c207061696e74696e677300000081525060200191505060405180910390fd5b612ff3565b6003841415612ff2578260a060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205401821015612ff1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f616c726561647920636c61696d656420616c6c2073746174746575746573000081525060200191505060405180910390fd5b5b5b5b60008090505b838160ff1610156130a457600185141561302d57613018609761489c565b609a5461302560976148b2565b01915061307b565b600285141561305557613040609861489c565b609b5461304d60986148b2565b01915061307a565b600385141561307957613068609961489c565b609c5461307560996148b2565b0191505b5b5b61308533836148c0565b6130978261309284613e21565b613f65565b8080600101915050612ffa565b5060018414156131005782609e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506131b4565b600284141561315b5782609f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506131b3565b60038414156131b2578260a060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b5b5b50505050565b60606131c582613d2e565b61321a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180615e0d602f913960400191505060405180910390fd5b6060606c60008481526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156132c35780601f10613298576101008083540402835291602001916132c3565b820191906000526020600020905b8154815290600101906020018083116132a657829003601f168201915b5050505050905060606132d4612137565b90506000815114156132ea578192505050613486565b6000825111156133bb5780826040516020018083805190602001908083835b6020831061332c5780518252602082019150602081019050602083039250613309565b6001836020036101000a03801982511681845116808217855250505050505090500182805190602001908083835b6020831061337d578051825260208201915060208101905060208303925061335a565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405292505050613486565b806133c5856148de565b6040516020018083805190602001908083835b602083106133fb57805182526020820191506020810190506020830392506133d8565b6001836020036101000a03801982511681845116808217855250505050505090500182805190602001908083835b6020831061344c5780518252602082019150602081019050602083039250613429565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052925050505b919050565b6000806000905060018310806134a15750600383115b156134af578091505061363f565b60006134bb858561455b565b905060018414156135535760a160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481019050609e60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481039150613639565b60028414156135e95760a260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481019050609f60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481039150613638565b60038414156136375760a060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054810391505b5b5b81925050505b92915050565b3373ffffffffffffffffffffffffffffffffffffffff16609d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614613708576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b61371a8261371583613e21565b613f65565b5050565b609d60149054906101000a900460ff1681565b6000606960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60011515609d60149054906101000a900460ff1615151461384e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f5061796d656e7420697320636c6f73656400000000000000000000000000000081525060200191505060405180910390fd5b600060a360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411613903576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f596f7520646f6e2774206861766520616e7920726f79616c746965730000000081525060200191505060405180910390fd5b60a360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205447101561399b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180615e8e6024913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415613a3e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f696e76616c69642063616c6c657200000000000000000000000000000000000081525060200191505060405180910390fd5b60003373ffffffffffffffffffffffffffffffffffffffff1660a360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205460405180600001905060006040518083038185875af1925050503d8060008114613add576040519150601f19603f3d011682016040523d82523d6000602084013e613ae2565b606091505b5050905080613b59576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f4661696c656420746f2073656e6420657468000000000000000000000000000081525060200191505060405180910390fd5b600060a360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050565b3373ffffffffffffffffffffffffffffffffffffffff16609d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614613c64576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613cea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180615c156026913960400191505060405180910390fd5b80609d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000613d44826066614a2590919063ffffffff16565b9050919050565b600033905090565b816068600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16613dc683612100565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000613e1a82600001614a3f565b9050919050565b60606000821415613e69576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613f60565b600082905060005b60008214613e93578080600101915050600a8281613e8b57fe5b049150613e71565b60608167ffffffffffffffff81118015613eac57600080fd5b506040519080825280601f01601f191660200182016040528015613edf5781602001600182028036833780820191505090505b50905060006001830390505b60008614613f5857600a8681613efd57fe5b0660300160f81b82828060019003935081518110613f1757fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8681613f5057fe5b049550613eeb565b819450505050505b919050565b613f6e82613d2e565b613fc3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180615db8602c913960400191505060405180910390fd5b80606c60008481526020019081526020016000209080519060200190613fea929190615b1b565b505050565b6000613ffa82613d2e565b61404f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180615c85602c913960400191505060405180910390fd5b600061405a83612100565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806140c957508373ffffffffffffffffffffffffffffffffffffffff166140b184611366565b73ffffffffffffffffffffffffffffffffffffffff16145b806140da57506140d98185613731565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661410382612100565b73ffffffffffffffffffffffffffffffffffffffff161461416f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526029815260200180615de46029913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156141f5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180615c3b6024913960400191505060405180910390fd5b614200838383614a50565b61420b600082613d53565b61425c81606560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020614a5590919063ffffffff16565b506142ae81606560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020614a6f90919063ffffffff16565b506142c581836066614a899092919063ffffffff16565b50808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60006143358360000183614abe565b60001c905092915050565b6000806000806143538660000186614b41565b915091508160001c8160001c8090509350935050509250929050565b80606d9080519060200190614385929190615b1b565b5050565b600061439c846000018460001b84614bda565b60001c90509392505050565b60006143b682600001614cd0565b9050919050565b60006143c830614ce1565b15905090565b600060019054906101000a900460ff16806143ed57506143ec6143bd565b5b8061440457506000809054906101000a900460ff16155b614459576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180615d3c602e913960400191505060405180910390fd5b60008060019054906101000a900460ff1615905080156144a9576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6144b1614cf4565b6144b9614df3565b6144c38383614f02565b80156144e45760008060016101000a81548160ff0219169083151502179055505b505050565b6144f48484846140e3565b61450084848484615061565b614555576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526032815260200180615be36032913960400191505060405180910390fd5b50505050565b60008060009050600060a460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561460357600080fd5b505afa158015614617573d6000803e3d6000fd5b505050506040513d602081101561462d57600080fd5b8101908080519060200190929190505050141561464d5780915050614896565b6000806001851415614668576112b691506113629050614695565b60028514156146805761136391506113889050614694565b600385141561469357600191506105cc90505b5b5b60008090505b60a460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231886040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561473a57600080fd5b505afa15801561474e573d6000803e3d6000fd5b505050506040513d602081101561476457600080fd5b810190808051906020019092919050505081101561488e57600060a460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632f745c5989846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060206040518083038186803b15801561482557600080fd5b505afa158015614839573d6000803e3d6000fd5b505050506040513d602081101561484f57600080fd5b810190808051906020019092919050505090508381101580156148725750828111155b156148805784806001019550505b50808060010191505061469b565b508293505050505b92915050565b6001816000016000828254019250508190555050565b600081600001549050919050565b6148da8282604051806020016040528060008152506152a6565b5050565b60606000821415614926576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050614a20565b600082905060005b60008214614950578080600101915050600a828161494857fe5b04915061492e565b60608167ffffffffffffffff8111801561496957600080fd5b506040519080825280601f01601f19166020018201604052801561499c5781602001600182028036833780820191505090505b50905060006001830390508593505b60008414614a1857600a84816149bd57fe5b0660300160f81b828280600190039350815181106149d757fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8481614a1057fe5b0493506149ab565b819450505050505b919050565b6000614a37836000018360001b615317565b905092915050565b600081600001805490509050919050565b505050565b6000614a67836000018360001b61533a565b905092915050565b6000614a81836000018360001b615422565b905092915050565b6000614ab5846000018460001b8473ffffffffffffffffffffffffffffffffffffffff1660001b615492565b90509392505050565b600081836000018054905011614b1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180615bc16022913960400191505060405180910390fd5b826000018281548110614b2e57fe5b9060005260206000200154905092915050565b60008082846000018054905011614ba3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180615d6a6022913960400191505060405180910390fd5b6000846000018481548110614bb457fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008084600101600085815260200190815260200160002054905060008114158390614ca1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015614c66578082015181840152602081019050614c4b565b50505050905090810190601f168015614c935780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50846000016001820381548110614cb457fe5b9060005260206000209060020201600101549150509392505050565b600081600001805490509050919050565b600080823b905060008111915050919050565b600060019054906101000a900460ff1680614d135750614d126143bd565b5b80614d2a57506000809054906101000a900460ff16155b614d7f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180615d3c602e913960400191505060405180910390fd5b60008060019054906101000a900460ff161590508015614dcf576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b8015614df05760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680614e125750614e116143bd565b5b80614e2957506000809054906101000a900460ff16155b614e7e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180615d3c602e913960400191505060405180910390fd5b60008060019054906101000a900460ff161590508015614ece576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b614ede6301ffc9a760e01b61556e565b8015614eff5760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680614f215750614f206143bd565b5b80614f3857506000809054906101000a900460ff16155b614f8d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180615d3c602e913960400191505060405180910390fd5b60008060019054906101000a900460ff161590508015614fdd576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b82606a9080519060200190614ff3929190615b1b565b5081606b908051906020019061500a929190615b1b565b5061501b6380ac58cd60e01b61556e565b61502b635b5e139f60e01b61556e565b61503b63780e9d6360e01b61556e565b801561505c5760008060016101000a81548160ff0219169083151502179055505b505050565b60006150828473ffffffffffffffffffffffffffffffffffffffff16614ce1565b61508f576001905061529e565b606061522563150b7a0260e01b6150a4613d4b565b888787604051602401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015615154578082015181840152602081019050615139565b50505050905090810190601f1680156151815780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051806060016040528060328152602001615be3603291398773ffffffffffffffffffffffffffffffffffffffff166156779092919063ffffffff16565b9050600081806020019051602081101561523e57600080fd5b8101908080519060200190929190505050905063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614925050505b949350505050565b6152b0838361568f565b6152bd6000848484615061565b615312576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526032815260200180615be36032913960400191505060405180910390fd5b505050565b600080836001016000848152602001908152602001600020541415905092915050565b60008083600101600084815260200190815260200160002054905060008114615416576000600182039050600060018660000180549050039050600086600001828154811061538557fe5b90600052602060002001549050808760000184815481106153a257fe5b90600052602060002001819055506001830187600101600083815260200190815260200160002081905550866000018054806153da57fe5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061541c565b60009150505b92915050565b600061542e8383615883565b61548757826000018290806001815401808255809150506001900390600052602060002001600090919091909150558260000180549050836001016000848152602001908152602001600020819055506001905061548c565b600090505b92915050565b600080846001016000858152602001908152602001600020549050600081141561553957846000016040518060400160405280868152602001858152509080600181540180825580915050600190039060005260206000209060020201600090919091909150600082015181600001556020820151816001015550508460000180549050856001016000868152602001908152602001600020819055506001915050615567565b8285600001600183038154811061554c57fe5b90600052602060002090600202016001018190555060009150505b9392505050565b63ffffffff60e01b817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141561560a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4552433136353a20696e76616c696420696e746572666163652069640000000081525060200191505060405180910390fd5b600160336000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b606061568684846000856158a6565b90509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415615732576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4552433732313a206d696e7420746f20746865207a65726f206164647265737381525060200191505060405180910390fd5b61573b81613d2e565b156157ae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081525060200191505060405180910390fd5b6157ba60008383614a50565b61580b81606560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020614a6f90919063ffffffff16565b5061582281836066614a899092919063ffffffff16565b50808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080836001016000848152602001908152602001600020541415905092915050565b606082471015615901576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180615c5f6026913960400191505060405180910390fd5b61590a85614ce1565b61597c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106159cc57805182526020820191506020810190506020830392506159a9565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114615a2e576040519150601f19603f3d011682016040523d82523d6000602084013e615a33565b606091505b5091509150615a43828286615a4f565b92505050949350505050565b60608315615a5f57829050615b14565b600083511115615a725782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015615ad9578082015181840152602081019050615abe565b50505050905090810190601f168015615b065780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10615b5c57805160ff1916838001178555615b8a565b82800160010185558215615b8a579182015b82811115615b89578251825591602001919060010190615b6e565b5b509050615b979190615b9b565b5090565b615bbd91905b80821115615bb9576000816000905550600101615ba1565b5090565b9056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734552433732313a207472616e7366657220746f20746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a6564456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732314d657461646174613a2055524920736574206f66206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564496e73756666696369656e742062616c616e636520696e2074686520636f6e7472616374a2646970667358221220e37676486e62222a6a101e3224646cda2db60ff6803ed8936a069827de764c4a64736f6c63430006050033
Deployed Bytecode
0x60806040526004361061023b5760003560e01c80635bf0234d1161012e578063bb30d4ce116100ab578063d78233601161006f578063d7823360146110f7578063e6031d1b1461113c578063e985e9c51461116b578063f1147bae146111f4578063f2fde38b1461120b5761023b565b8063bb30d4ce14610ea7578063c31dbf9614610f0c578063c349026314610f9c578063c87b56dd14610fd4578063c8d6ab56146110885761023b565b806395d89b41116100f257806395d89b4114610c145780639de4ff1514610ca4578063a22cb46514610ce1578063b2bdfa7b14610d3e578063b88d4fde14610d955761023b565b80635bf0234d14610a5e5780636352211e14610a8d5780636c0360eb14610b0857806370a0823114610b985780638129fc1c14610bfd5761023b565b806328331595116101bc5780634587b3ee116101805780634587b3ee146108385780634d8980f1146108675780634f6ccce7146108a457806355f804b3146108f3578063572c61c3146109795761023b565b8063283315951461066a5780632cd1826b146106fa5780632f745c59146107375780633ccfd60b146107a657806342842e0e146107bd5761023b565b806318160ddd1161020357806318160ddd146104735780631b33bf571461049e5780631c5822fe146105835780631f3221b4146105b257806323b872dd146105ef5761023b565b806301ffc9a71461024057806306fdde03146102b2578063081812fc14610342578063095ea7b3146103bd57806310fd332b14610418575b600080fd5b34801561024c57600080fd5b506102986004803603602081101561026357600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916906020019092919050505061125c565b604051808215151515815260200191505060405180910390f35b3480156102be57600080fd5b506102c76112c4565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103075780820151818401526020810190506102ec565b50505050905090810190601f1680156103345780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561034e57600080fd5b5061037b6004803603602081101561036557600080fd5b8101908080359060200190929190505050611366565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156103c957600080fd5b50610416600480360360408110156103e057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611401565b005b34801561042457600080fd5b506104716004803603604081101561043b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611545565b005b34801561047f57600080fd5b50610488611650565b6040518082815260200191505060405180910390f35b3480156104aa57600080fd5b50610581600480360360608110156104c157600080fd5b81019080803590602001906401000000008111156104de57600080fd5b8201836020820111156104f057600080fd5b8035906020019184602083028401116401000000008311171561051257600080fd5b90919293919293908035906020019064010000000081111561053357600080fd5b82018360208201111561054557600080fd5b8035906020019184602083028401116401000000008311171561056757600080fd5b909192939192939080359060200190929190505050611661565b005b34801561058f57600080fd5b5061059861177d565b604051808215151515815260200191505060405180910390f35b3480156105be57600080fd5b506105ed600480360360208110156105d557600080fd5b81019080803515159060200190929190505050611790565b005b3480156105fb57600080fd5b506106686004803603606081101561061257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611870565b005b34801561067657600080fd5b506106f86004803603604081101561068d57600080fd5b81019080803590602001906401000000008111156106aa57600080fd5b8201836020820111156106bc57600080fd5b803590602001918460208302840111640100000000831117156106de57600080fd5b9091929391929390803590602001909291905050506118e6565b005b34801561070657600080fd5b506107356004803603602081101561071d57600080fd5b81019080803515159060200190929190505050611a40565b005b34801561074357600080fd5b506107906004803603604081101561075a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611b20565b6040518082815260200191505060405180910390f35b3480156107b257600080fd5b506107bb611b7b565b005b3480156107c957600080fd5b50610836600480360360608110156107e057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611d3f565b005b34801561084457600080fd5b5061084d611d5f565b604051808215151515815260200191505060405180910390f35b34801561087357600080fd5b506108a26004803603602081101561088a57600080fd5b81019080803515159060200190929190505050611d72565b005b3480156108b057600080fd5b506108dd600480360360208110156108c757600080fd5b8101908080359060200190929190505050611e52565b6040518082815260200191505060405180910390f35b3480156108ff57600080fd5b506109776004803603602081101561091657600080fd5b810190808035906020019064010000000081111561093357600080fd5b82018360208201111561094557600080fd5b8035906020019184600183028401116401000000008311171561096757600080fd5b9091929391929390505050611e75565b005b34801561098557600080fd5b50610a5c6004803603606081101561099c57600080fd5b81019080803590602001906401000000008111156109b957600080fd5b8201836020820111156109cb57600080fd5b803590602001918460208302840111640100000000831117156109ed57600080fd5b909192939192939080359060200190640100000000811115610a0e57600080fd5b820183602082011115610a2057600080fd5b80359060200191846020830284011164010000000083111715610a4257600080fd5b909192939192939080359060200190929190505050611f89565b005b348015610a6a57600080fd5b50610a736120ed565b604051808215151515815260200191505060405180910390f35b348015610a9957600080fd5b50610ac660048036036020811015610ab057600080fd5b8101908080359060200190929190505050612100565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610b1457600080fd5b50610b1d612137565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610b5d578082015181840152602081019050610b42565b50505050905090810190601f168015610b8a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610ba457600080fd5b50610be760048036036020811015610bbb57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506121d9565b6040518082815260200191505060405180910390f35b348015610c0957600080fd5b50610c126122ae565b005b348015610c2057600080fd5b50610c296124d1565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610c69578082015181840152602081019050610c4e565b50505050905090810190601f168015610c965780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610cb057600080fd5b50610cdf60048036036020811015610cc757600080fd5b81019080803515159060200190929190505050612573565b005b348015610ced57600080fd5b50610d3c60048036036040811015610d0457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050612653565b005b348015610d4a57600080fd5b50610d5361280b565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610da157600080fd5b50610ea560048036036080811015610db857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190640100000000811115610e1f57600080fd5b820183602082011115610e3157600080fd5b80359060200191846001830284011164010000000083111715610e5357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050612831565b005b348015610eb357600080fd5b50610ef660048036036020811015610eca57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506128a9565b6040518082815260200191505060405180910390f35b348015610f1857600080fd5b50610f9a60048036036040811015610f2f57600080fd5b8101908080359060200190640100000000811115610f4c57600080fd5b820183602082011115610f5e57600080fd5b80359060200191846020830284011164010000000083111715610f8057600080fd5b9091929391929390803590602001909291905050506128f2565b005b610fd260048036036040811015610fb257600080fd5b810190808035906020019092919080359060200190929190505050612a4c565b005b348015610fe057600080fd5b5061100d60048036036020811015610ff757600080fd5b81019080803590602001909291905050506131ba565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561104d578082015181840152602081019050611032565b50505050905090810190601f16801561107a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561109457600080fd5b506110e1600480360360408110156110ab57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061348b565b6040518082815260200191505060405180910390f35b34801561110357600080fd5b5061113a6004803603604081101561111a57600080fd5b810190808035906020019092919080359060200190929190505050613645565b005b34801561114857600080fd5b5061115161371e565b604051808215151515815260200191505060405180910390f35b34801561117757600080fd5b506111da6004803603604081101561118e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613731565b604051808215151515815260200191505060405180910390f35b34801561120057600080fd5b506112096137c5565b005b34801561121757600080fd5b5061125a6004803603602081101561122e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613ba1565b005b600060336000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b6060606a8054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561135c5780601f106113315761010080835404028352916020019161135c565b820191906000526020600020905b81548152906001019060200180831161133f57829003601f168201915b5050505050905090565b600061137182613d2e565b6113c6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180615d8c602c913960400191505060405180910390fd5b6068600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061140c82612100565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611493576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180615e3c6021913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166114b2613d4b565b73ffffffffffffffffffffffffffffffffffffffff1614806114e157506114e0816114db613d4b565b613731565b5b611536576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526038815260200180615cb16038913960400191505060405180910390fd5b6115408383613d53565b505050565b3373ffffffffffffffffffffffffffffffffffffffff16609d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611608576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8060a360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b600061165c6066613e0c565b905090565b3373ffffffffffffffffffffffffffffffffffffffff16609d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611724576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60008090505b818110156117755761176886868381811061174157fe5b9050602002013561176386868581811061175757fe5b90506020020135613e21565b613f65565b808060010191505061172a565b505050505050565b609d60159054906101000a900460ff1681565b3373ffffffffffffffffffffffffffffffffffffffff16609d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611853576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80609d60176101000a81548160ff02191690831515021790555050565b61188161187b613d4b565b82613fef565b6118d6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526031815260200180615e5d6031913960400191505060405180910390fd5b6118e18383836140e3565b505050565b3373ffffffffffffffffffffffffffffffffffffffff16609d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146119a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60008090505b81811015611a3a57600160a160008686858181106119c957fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555080806001019150506119af565b50505050565b3373ffffffffffffffffffffffffffffffffffffffff16609d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611b03576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80609d60146101000a81548160ff02191690831515021790555050565b6000611b7382606560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061432690919063ffffffff16565b905092915050565b3373ffffffffffffffffffffffffffffffffffffffff16609d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611c3e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6000609d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff164760405180600001905060006040518083038185875af1925050503d8060008114611cc0576040519150601f19603f3d011682016040523d82523d6000602084013e611cc5565b606091505b5050905080611d3c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f4661696c656420746f2073656e6400000000000000000000000000000000000081525060200191505060405180910390fd5b50565b611d5a83838360405180602001604052806000815250612831565b505050565b609d60179054906101000a900460ff1681565b3373ffffffffffffffffffffffffffffffffffffffff16609d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611e35576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80609d60156101000a81548160ff02191690831515021790555050565b600080611e6983606661434090919063ffffffff16565b50905080915050919050565b3373ffffffffffffffffffffffffffffffffffffffff16609d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611f38576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b611f8582828080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061436f565b5050565b3373ffffffffffffffffffffffffffffffffffffffff16609d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461204c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60008090505b818110156120e55783838281811061206657fe5b9050602002013560a3600088888581811061207d57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508080600101915050612052565b505050505050565b609d60169054906101000a900460ff1681565b600061213082604051806060016040528060298152602001615d136029913960666143899092919063ffffffff16565b9050919050565b6060606d8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156121cf5780601f106121a4576101008083540402835291602001916121cf565b820191906000526020600020905b8154815290600101906020018083116121b257829003601f168201915b5050505050905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612260576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180615ce9602a913960400191505060405180910390fd5b6122a7606560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206143a8565b9050919050565b600060019054906101000a900460ff16806122cd57506122cc6143bd565b5b806122e457506000809054906101000a900460ff16155b612339576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180615d3c602e913960400191505060405180910390fd5b60008060019054906101000a900460ff161590508015612389576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6123fd6040518060400160405280600981526020017f4d795046506c616e6400000000000000000000000000000000000000000000008152506040518060400160405280600981526020017f4d795046506c616e6400000000000000000000000000000000000000000000008152506143ce565b33609d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000609a8190555061012c609b81905550610190609c819055507372541ad75e05bc77c7a92304225937a8f665337260a460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080156124ce5760008060016101000a81548160ff0219169083151502179055505b50565b6060606b8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156125695780601f1061253e57610100808354040283529160200191612569565b820191906000526020600020905b81548152906001019060200180831161254c57829003601f168201915b5050505050905090565b3373ffffffffffffffffffffffffffffffffffffffff16609d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612636576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80609d60166101000a81548160ff02191690831515021790555050565b61265b613d4b565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156126fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f4552433732313a20617070726f766520746f2063616c6c65720000000000000081525060200191505060405180910390fd5b8060696000612709613d4b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166127b6613d4b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051808215151515815260200191505060405180910390a35050565b609d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61284261283c613d4b565b83613fef565b612897576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526031815260200180615e5d6031913960400191505060405180910390fd5b6128a3848484846144e9565b50505050565b600060a360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b3373ffffffffffffffffffffffffffffffffffffffff16609d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146129b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60008090505b81811015612a4657600160a260008686858181106129d557fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555080806001019150506129bb565b50505050565b6001821015612ac3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600c8152602001807f6f7574206f662072616e6765000000000000000000000000000000000000000081525060200191505060405180910390fd5b6003821115612b3a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600c8152602001807f6f7574206f662072616e6765000000000000000000000000000000000000000081525060200191505060405180910390fd5b6001821415612bcd5760001515609d60159054906101000a900460ff16151514612bcc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f746f7920636c61696d696e67206973207061757365640000000000000000000081525060200191505060405180910390fd5b5b6002821415612c605760001515609d60169054906101000a900460ff16151514612c5f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f7061696e74696e6720636c61696d696e6720697320706175736564000000000081525060200191505060405180910390fd5b5b6003821415612cf35760001515609d60179054906101000a900460ff16151514612cf2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f73746174746575746520636c61696d696e67206973207061757365640000000081525060200191505060405180910390fd5b5b6000612cff338461455b565b90506001831415612d535760a160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481019050612da2565b6002831415612da15760a260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054810190505b5b60008090506001841415612e6c5782609e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205401821015612e67576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f616c726561647920636c61696d656420616c6c20746f7973000000000000000081525060200191505060405180910390fd5b612ff4565b6002841415612f315782609f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205401821015612f2c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f616c726561647920636c61696d656420616c6c207061696e74696e677300000081525060200191505060405180910390fd5b612ff3565b6003841415612ff2578260a060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205401821015612ff1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f616c726561647920636c61696d656420616c6c2073746174746575746573000081525060200191505060405180910390fd5b5b5b5b60008090505b838160ff1610156130a457600185141561302d57613018609761489c565b609a5461302560976148b2565b01915061307b565b600285141561305557613040609861489c565b609b5461304d60986148b2565b01915061307a565b600385141561307957613068609961489c565b609c5461307560996148b2565b0191505b5b5b61308533836148c0565b6130978261309284613e21565b613f65565b8080600101915050612ffa565b5060018414156131005782609e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506131b4565b600284141561315b5782609f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506131b3565b60038414156131b2578260a060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b5b5b50505050565b60606131c582613d2e565b61321a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180615e0d602f913960400191505060405180910390fd5b6060606c60008481526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156132c35780601f10613298576101008083540402835291602001916132c3565b820191906000526020600020905b8154815290600101906020018083116132a657829003601f168201915b5050505050905060606132d4612137565b90506000815114156132ea578192505050613486565b6000825111156133bb5780826040516020018083805190602001908083835b6020831061332c5780518252602082019150602081019050602083039250613309565b6001836020036101000a03801982511681845116808217855250505050505090500182805190602001908083835b6020831061337d578051825260208201915060208101905060208303925061335a565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405292505050613486565b806133c5856148de565b6040516020018083805190602001908083835b602083106133fb57805182526020820191506020810190506020830392506133d8565b6001836020036101000a03801982511681845116808217855250505050505090500182805190602001908083835b6020831061344c5780518252602082019150602081019050602083039250613429565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052925050505b919050565b6000806000905060018310806134a15750600383115b156134af578091505061363f565b60006134bb858561455b565b905060018414156135535760a160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481019050609e60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481039150613639565b60028414156135e95760a260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481019050609f60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481039150613638565b60038414156136375760a060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054810391505b5b5b81925050505b92915050565b3373ffffffffffffffffffffffffffffffffffffffff16609d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614613708576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b61371a8261371583613e21565b613f65565b5050565b609d60149054906101000a900460ff1681565b6000606960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60011515609d60149054906101000a900460ff1615151461384e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f5061796d656e7420697320636c6f73656400000000000000000000000000000081525060200191505060405180910390fd5b600060a360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411613903576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f596f7520646f6e2774206861766520616e7920726f79616c746965730000000081525060200191505060405180910390fd5b60a360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205447101561399b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180615e8e6024913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415613a3e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f696e76616c69642063616c6c657200000000000000000000000000000000000081525060200191505060405180910390fd5b60003373ffffffffffffffffffffffffffffffffffffffff1660a360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205460405180600001905060006040518083038185875af1925050503d8060008114613add576040519150601f19603f3d011682016040523d82523d6000602084013e613ae2565b606091505b5050905080613b59576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f4661696c656420746f2073656e6420657468000000000000000000000000000081525060200191505060405180910390fd5b600060a360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050565b3373ffffffffffffffffffffffffffffffffffffffff16609d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614613c64576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613cea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180615c156026913960400191505060405180910390fd5b80609d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000613d44826066614a2590919063ffffffff16565b9050919050565b600033905090565b816068600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16613dc683612100565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000613e1a82600001614a3f565b9050919050565b60606000821415613e69576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613f60565b600082905060005b60008214613e93578080600101915050600a8281613e8b57fe5b049150613e71565b60608167ffffffffffffffff81118015613eac57600080fd5b506040519080825280601f01601f191660200182016040528015613edf5781602001600182028036833780820191505090505b50905060006001830390505b60008614613f5857600a8681613efd57fe5b0660300160f81b82828060019003935081518110613f1757fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8681613f5057fe5b049550613eeb565b819450505050505b919050565b613f6e82613d2e565b613fc3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180615db8602c913960400191505060405180910390fd5b80606c60008481526020019081526020016000209080519060200190613fea929190615b1b565b505050565b6000613ffa82613d2e565b61404f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180615c85602c913960400191505060405180910390fd5b600061405a83612100565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806140c957508373ffffffffffffffffffffffffffffffffffffffff166140b184611366565b73ffffffffffffffffffffffffffffffffffffffff16145b806140da57506140d98185613731565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661410382612100565b73ffffffffffffffffffffffffffffffffffffffff161461416f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526029815260200180615de46029913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156141f5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180615c3b6024913960400191505060405180910390fd5b614200838383614a50565b61420b600082613d53565b61425c81606560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020614a5590919063ffffffff16565b506142ae81606560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020614a6f90919063ffffffff16565b506142c581836066614a899092919063ffffffff16565b50808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60006143358360000183614abe565b60001c905092915050565b6000806000806143538660000186614b41565b915091508160001c8160001c8090509350935050509250929050565b80606d9080519060200190614385929190615b1b565b5050565b600061439c846000018460001b84614bda565b60001c90509392505050565b60006143b682600001614cd0565b9050919050565b60006143c830614ce1565b15905090565b600060019054906101000a900460ff16806143ed57506143ec6143bd565b5b8061440457506000809054906101000a900460ff16155b614459576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180615d3c602e913960400191505060405180910390fd5b60008060019054906101000a900460ff1615905080156144a9576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6144b1614cf4565b6144b9614df3565b6144c38383614f02565b80156144e45760008060016101000a81548160ff0219169083151502179055505b505050565b6144f48484846140e3565b61450084848484615061565b614555576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526032815260200180615be36032913960400191505060405180910390fd5b50505050565b60008060009050600060a460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561460357600080fd5b505afa158015614617573d6000803e3d6000fd5b505050506040513d602081101561462d57600080fd5b8101908080519060200190929190505050141561464d5780915050614896565b6000806001851415614668576112b691506113629050614695565b60028514156146805761136391506113889050614694565b600385141561469357600191506105cc90505b5b5b60008090505b60a460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231886040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561473a57600080fd5b505afa15801561474e573d6000803e3d6000fd5b505050506040513d602081101561476457600080fd5b810190808051906020019092919050505081101561488e57600060a460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632f745c5989846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060206040518083038186803b15801561482557600080fd5b505afa158015614839573d6000803e3d6000fd5b505050506040513d602081101561484f57600080fd5b810190808051906020019092919050505090508381101580156148725750828111155b156148805784806001019550505b50808060010191505061469b565b508293505050505b92915050565b6001816000016000828254019250508190555050565b600081600001549050919050565b6148da8282604051806020016040528060008152506152a6565b5050565b60606000821415614926576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050614a20565b600082905060005b60008214614950578080600101915050600a828161494857fe5b04915061492e565b60608167ffffffffffffffff8111801561496957600080fd5b506040519080825280601f01601f19166020018201604052801561499c5781602001600182028036833780820191505090505b50905060006001830390508593505b60008414614a1857600a84816149bd57fe5b0660300160f81b828280600190039350815181106149d757fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8481614a1057fe5b0493506149ab565b819450505050505b919050565b6000614a37836000018360001b615317565b905092915050565b600081600001805490509050919050565b505050565b6000614a67836000018360001b61533a565b905092915050565b6000614a81836000018360001b615422565b905092915050565b6000614ab5846000018460001b8473ffffffffffffffffffffffffffffffffffffffff1660001b615492565b90509392505050565b600081836000018054905011614b1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180615bc16022913960400191505060405180910390fd5b826000018281548110614b2e57fe5b9060005260206000200154905092915050565b60008082846000018054905011614ba3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180615d6a6022913960400191505060405180910390fd5b6000846000018481548110614bb457fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008084600101600085815260200190815260200160002054905060008114158390614ca1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015614c66578082015181840152602081019050614c4b565b50505050905090810190601f168015614c935780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50846000016001820381548110614cb457fe5b9060005260206000209060020201600101549150509392505050565b600081600001805490509050919050565b600080823b905060008111915050919050565b600060019054906101000a900460ff1680614d135750614d126143bd565b5b80614d2a57506000809054906101000a900460ff16155b614d7f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180615d3c602e913960400191505060405180910390fd5b60008060019054906101000a900460ff161590508015614dcf576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b8015614df05760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680614e125750614e116143bd565b5b80614e2957506000809054906101000a900460ff16155b614e7e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180615d3c602e913960400191505060405180910390fd5b60008060019054906101000a900460ff161590508015614ece576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b614ede6301ffc9a760e01b61556e565b8015614eff5760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680614f215750614f206143bd565b5b80614f3857506000809054906101000a900460ff16155b614f8d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180615d3c602e913960400191505060405180910390fd5b60008060019054906101000a900460ff161590508015614fdd576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b82606a9080519060200190614ff3929190615b1b565b5081606b908051906020019061500a929190615b1b565b5061501b6380ac58cd60e01b61556e565b61502b635b5e139f60e01b61556e565b61503b63780e9d6360e01b61556e565b801561505c5760008060016101000a81548160ff0219169083151502179055505b505050565b60006150828473ffffffffffffffffffffffffffffffffffffffff16614ce1565b61508f576001905061529e565b606061522563150b7a0260e01b6150a4613d4b565b888787604051602401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015615154578082015181840152602081019050615139565b50505050905090810190601f1680156151815780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051806060016040528060328152602001615be3603291398773ffffffffffffffffffffffffffffffffffffffff166156779092919063ffffffff16565b9050600081806020019051602081101561523e57600080fd5b8101908080519060200190929190505050905063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614925050505b949350505050565b6152b0838361568f565b6152bd6000848484615061565b615312576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526032815260200180615be36032913960400191505060405180910390fd5b505050565b600080836001016000848152602001908152602001600020541415905092915050565b60008083600101600084815260200190815260200160002054905060008114615416576000600182039050600060018660000180549050039050600086600001828154811061538557fe5b90600052602060002001549050808760000184815481106153a257fe5b90600052602060002001819055506001830187600101600083815260200190815260200160002081905550866000018054806153da57fe5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061541c565b60009150505b92915050565b600061542e8383615883565b61548757826000018290806001815401808255809150506001900390600052602060002001600090919091909150558260000180549050836001016000848152602001908152602001600020819055506001905061548c565b600090505b92915050565b600080846001016000858152602001908152602001600020549050600081141561553957846000016040518060400160405280868152602001858152509080600181540180825580915050600190039060005260206000209060020201600090919091909150600082015181600001556020820151816001015550508460000180549050856001016000868152602001908152602001600020819055506001915050615567565b8285600001600183038154811061554c57fe5b90600052602060002090600202016001018190555060009150505b9392505050565b63ffffffff60e01b817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141561560a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4552433136353a20696e76616c696420696e746572666163652069640000000081525060200191505060405180910390fd5b600160336000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b606061568684846000856158a6565b90509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415615732576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4552433732313a206d696e7420746f20746865207a65726f206164647265737381525060200191505060405180910390fd5b61573b81613d2e565b156157ae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081525060200191505060405180910390fd5b6157ba60008383614a50565b61580b81606560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020614a6f90919063ffffffff16565b5061582281836066614a899092919063ffffffff16565b50808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080836001016000848152602001908152602001600020541415905092915050565b606082471015615901576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180615c5f6026913960400191505060405180910390fd5b61590a85614ce1565b61597c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106159cc57805182526020820191506020810190506020830392506159a9565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114615a2e576040519150601f19603f3d011682016040523d82523d6000602084013e615a33565b606091505b5091509150615a43828286615a4f565b92505050949350505050565b60608315615a5f57829050615b14565b600083511115615a725782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015615ad9578082015181840152602081019050615abe565b50505050905090810190601f168015615b065780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10615b5c57805160ff1916838001178555615b8a565b82800160010185558215615b8a579182015b82811115615b89578251825591602001919060010190615b6e565b5b509050615b979190615b9b565b5090565b615bbd91905b80821115615bb9576000816000905550600101615ba1565b5090565b9056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734552433732313a207472616e7366657220746f20746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a6564456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732314d657461646174613a2055524920736574206f66206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564496e73756666696369656e742062616c616e636520696e2074686520636f6e7472616374a2646970667358221220e37676486e62222a6a101e3224646cda2db60ff6803ed8936a069827de764c4a64736f6c63430006050033
Deployed Bytecode Sourcemap
134050:8864:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;20330:150:0;;5:9:-1;2:2;;;27:1;24;17:12;2:2;20330:150:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;20330:150:0;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;54390:100;;5:9:-1;2:2;;;27:1;24;17:12;2:2;54390:100:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;54390:100:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57198:221;;5:9:-1;2:2;;;27:1;24;17:12;2:2;57198:221:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;57198:221:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;56706:426;;5:9:-1;2:2;;;27:1;24;17:12;2:2;56706:426:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;56706:426:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;141246:127;;5:9:-1;2:2;;;27:1;24;17:12;2:2;141246:127:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;141246:127:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;56184:211;;5:9:-1;2:2;;;27:1;24;17:12;2:2;56184:211:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;140634:257;;5:9:-1;2:2;;;27:1;24;17:12;2:2;140634:257:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;140634:257:0;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;140634:257:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;140634:257:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;140634:257:0;;;;;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;140634:257:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;140634:257:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;140634:257:0;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;134530:31;;5:9:-1;2:2;;;27:1;24;17:12;2:2;134530:31:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;139734:154;;5:9:-1;2:2;;;27:1;24;17:12;2:2;139734:154:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;139734:154:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;58088:305;;5:9:-1;2:2;;;27:1;24;17:12;2:2;58088:305:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;58088:305:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;139896:222;;5:9:-1;2:2;;;27:1;24;17:12;2:2;139896:222:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;139896:222:0;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;139896:222:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;139896:222:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;139896:222:0;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;140899:92;;5:9:-1;2:2;;;27:1;24;17:12;2:2;140899:92:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;140899:92:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;55946:162;;5:9:-1;2:2;;;27:1;24;17:12;2:2;55946:162:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;55946:162:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;141507:167;;5:9:-1;2:2;;;27:1;24;17:12;2:2;141507:167:0;;;:::i;:::-;;58464:151;;5:9:-1;2:2;;;27:1;24;17:12;2:2;58464:151:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;58464:151:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;134611:37;;5:9:-1;2:2;;;27:1;24;17:12;2:2;134611:37:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;139438:130;;5:9:-1;2:2;;;27:1;24;17:12;2:2;139438:130:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;139438:130:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;56472:172;;5:9:-1;2:2;;;27:1;24;17:12;2:2;56472:172:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;56472:172:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;140362:111;;5:9:-1;2:2;;;27:1;24;17:12;2:2;140362:111:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;140362:111:0;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;140362:111:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;140362:111:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;140362:111:0;;;;;;;;;;;;:::i;:::-;;140999:239;;5:9:-1;2:2;;;27:1;24;17:12;2:2;140999:239:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;140999:239:0;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;140999:239:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;140999:239:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;140999:239:0;;;;;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;140999:239:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;140999:239:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;140999:239:0;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;134568:36;;5:9:-1;2:2;;;27:1;24;17:12;2:2;134568:36:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;54146:177;;5:9:-1;2:2;;;27:1;24;17:12;2:2;54146:177:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;54146:177:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;55765:97;;5:9:-1;2:2;;;27:1;24;17:12;2:2;55765:97:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;55765:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53863:221;;5:9:-1;2:2;;;27:1;24;17:12;2:2;53863:221:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;53863:221:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;135210:307;;5:9:-1;2:2;;;27:1;24;17:12;2:2;135210:307:0;;;:::i;:::-;;54559:104;;5:9:-1;2:2;;;27:1;24;17:12;2:2;54559:104:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;54559:104:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;139576:150;;5:9:-1;2:2;;;27:1;24;17:12;2:2;139576:150:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;139576:150:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;57491:295;;5:9:-1;2:2;;;27:1;24;17:12;2:2;57491:295:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;57491:295:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;134468:21;;5:9:-1;2:2;;;27:1;24;17:12;2:2;134468:21:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;58686:285;;5:9:-1;2:2;;;27:1;24;17:12;2:2;58686:285:0;;;;;;15:3:-1;10;7:12;4:2;;;32:1;29;22:12;4:2;58686:285:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;58686:285:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;58686:285:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;58686:285:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;58686:285:0;;;;;;;;;;;;;;;:::i;:::-;;141381:118;;5:9:-1;2:2;;;27:1;24;17:12;2:2;141381:118:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;141381:118:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;140126:228;;5:9:-1;2:2;;;27:1;24;17:12;2:2;140126:228:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;140126:228:0;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;140126:228:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;140126:228:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;140126:228:0;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;135525:2227;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;135525:2227:0;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;54734:792;;5:9:-1;2:2;;;27:1;24;17:12;2:2;54734:792:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;54734:792:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;54734:792:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;137760:814;;5:9:-1;2:2;;;27:1;24;17:12;2:2;137760:814:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;137760:814:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;140481:145;;5:9:-1;2:2;;;27:1;24;17:12;2:2;140481:145:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;140481:145:0;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;134496:25;;5:9:-1;2:2;;;27:1;24;17:12;2:2;134496:25:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;57857:164;;5:9:-1;2:2;;;27:1;24;17:12;2:2;57857:164:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;57857:164:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;141682:547;;5:9:-1;2:2;;;27:1;24;17:12;2:2;141682:547:0;;;:::i;:::-;;142237:184;;5:9:-1;2:2;;;27:1;24;17:12;2:2;142237:184:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;142237:184:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;20330:150;20415:4;20439:20;:33;20460:11;20439:33;;;;;;;;;;;;;;;;;;;;;;;;;;;20432:40;;20330:150;;;:::o;54390:100::-;54444:13;54477:5;54470:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54390:100;:::o;57198:221::-;57274:7;57302:16;57310:7;57302;:16::i;:::-;57294:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57387:15;:24;57403:7;57387:24;;;;;;;;;;;;;;;;;;;;;57380:31;;57198:221;;;:::o;56706:426::-;56787:13;56803:34;56829:7;56803:25;:34::i;:::-;56787:50;;56862:5;56856:11;;:2;:11;;;;56848:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56942:5;56926:21;;:12;:10;:12::i;:::-;:21;;;:80;;;;56951:55;56986:5;56993:12;:10;:12::i;:::-;56951:34;:55::i;:::-;56926:80;56918:172;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57103:21;57112:2;57116:7;57103:8;:21::i;:::-;56706:426;;;:::o;141246:127::-;135134:10;135124:20;;:6;;;;;;;;;;;:20;;;135116:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;141358:7:::1;141330:16;:25;141347:7;141330:25;;;;;;;;;;;;;;;:35;;;;141246:127:::0;;:::o;56184:211::-;56245:7;56366:21;:12;:19;:21::i;:::-;56359:28;;56184:211;:::o;140634:257::-;135134:10;135124:20;;:6;;;;;;;;;;;:20;;;135116:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;140768:9:::1;140780:1:::0;140768:13:::1;;140763:121;140787:6;140783:1;:10;140763:121;;;140815:57;140834:9;;140844:1;140834:12;;;;;;;;;;;;;140848:23;140857:10;;140868:1;140857:13;;;;;;;;;;;;;140848:8;:23::i;:::-;140815:18;:57::i;:::-;140795:3;;;;;;;140763:121;;;;140634:257:::0;;;;;:::o;134530:31::-;;;;;;;;;;;;;:::o;139734:154::-;135134:10;135124:20;;:6;;;;;;;;;;;:20;;;135116:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;139857:23:::1;139829:25;;:51;;;;;;;;;;;;;;;;;;139734:154:::0;:::o;58088:305::-;58249:41;58268:12;:10;:12::i;:::-;58282:7;58249:18;:41::i;:::-;58241:103;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58357:28;58367:4;58373:2;58377:7;58357:9;:28::i;:::-;58088:305;;;:::o;139896:222::-;135134:10;135124:20;;:6;;;;;;;;;;;:20;;;135116:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;140010:9:::1;140022:1:::0;140010:13:::1;;140005:106;140029:6;140025:1;:10;140005:106;;;140098:1;140057:22;:37;140080:10;;140091:1;140080:13;;;;;;;;;;;;;;;140057:37;;;;;;;;;;;;;;;;:42;;;;;;;;;;;140037:3;;;;;;;140005:106;;;;139896:222:::0;;;:::o;140899:92::-;135134:10;135124:20;;:6;;;;;;;;;;;:20;;;135116:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;140978:5:::1;140962:13;;:21;;;;;;;;;;;;;;;;;;140899:92:::0;:::o;55946:162::-;56043:7;56070:30;56094:5;56070:13;:20;56084:5;56070:20;;;;;;;;;;;;;;;:23;;:30;;;;:::i;:::-;56063:37;;55946:162;;;;:::o;141507:167::-;135134:10;135124:20;;:6;;;;;;;;;;;:20;;;135116:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;141558:12:::1;141576:6;;;;;;;;;;;:11;;141595:21;141576:45;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;14:27;32:4;27:9;;5:228;;141557:64:0;;;141640:7;141632:34;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;135193:1;141507:167::o:0;58464:151::-;58568:39;58585:4;58591:2;58595:7;58568:39;;;;;;;;;;;;:16;:39::i;:::-;58464:151;;;:::o;134611:37::-;;;;;;;;;;;;;:::o;139438:130::-;135134:10;135124:20;;:6;;;;;;;;;;;:20;;;135116:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;139543:17:::1;139521:19;;:39;;;;;;;;;;;;;;;;;;139438:130:::0;:::o;56472:172::-;56547:7;56568:15;56589:22;56605:5;56589:12;:15;;:22;;;;:::i;:::-;56567:44;;;56629:7;56622:14;;;56472:172;;;:::o;140362:111::-;135134:10;135124:20;;:6;;;;;;;;;;;:20;;;135116:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;140438:27:::1;140456:8;;140438:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;140438:27:0;;;;;;:17;:27::i;:::-;140362:111:::0;;:::o;140999:239::-;135134:10;135124:20;;:6;;;;;;;;;;;:20;;;135116:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;141131:9:::1;141143:1:::0;141131:13:::1;;141126:105;141150:6;141146:1;:10;141126:105;;;141209:7;;141217:1;141209:10;;;;;;;;;;;;;141178:16;:28;141195:7;;141203:1;141195:10;;;;;;;;;;;;;;;141178:28;;;;;;;;;;;;;;;:41;;;;141158:3;;;;;;;141126:105;;;;140999:239:::0;;;;;:::o;134568:36::-;;;;;;;;;;;;;:::o;54146:177::-;54218:7;54245:70;54262:7;54245:70;;;;;;;;;;;;;;;;;:12;:16;;:70;;;;;:::i;:::-;54238:77;;54146:177;;;:::o;55765:97::-;55813:13;55846:8;55839:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55765:97;:::o;53863:221::-;53935:7;53980:1;53963:19;;:5;:19;;;;53955:74;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54047:29;:13;:20;54061:5;54047:20;;;;;;;;;;;;;;;:27;:29::i;:::-;54040:36;;53863:221;;;:::o;135210:307::-;8670:13;;;;;;;;;;;:33;;;;8687:16;:14;:16::i;:::-;8670:33;:50;;;;8708:12;;;;;;;;;;;8707:13;8670:50;8662:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8784:19;8807:13;;;;;;;;;;;8806:14;8784:36;;8835:14;8831:101;;;8882:4;8866:13;;:20;;;;;;;;;;;;;;;;;;8916:4;8901:12;;:19;;;;;;;;;;;;;;;;;;8831:101;135264:39:::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;::::0;:13:::1;:39::i;:::-;135323:10;135314:6;;:19;;;;;;;;;;;;;;;;;;135363:1;135346:14;:18;;;;135397:3;135375:19;:25;;;;135434:3;135411:20;:26;;;;135466:42;135448:8;;:61;;;;;;;;;;;;;;;;;;8962:14:::0;8958:68;;;9009:5;8993:13;;:21;;;;;;;;;;;;;;;;;;8958:68;135210:307;:::o;54559:104::-;54615:13;54648:7;54641:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54559:104;:::o;139576:150::-;135134:10;135124:20;;:6;;;;;;;;;;;:20;;;135116:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;139696:22:::1;139669:24;;:49;;;;;;;;;;;;;;;;;;139576:150:::0;:::o;57491:295::-;57606:12;:10;:12::i;:::-;57594:24;;:8;:24;;;;57586:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57706:8;57661:18;:32;57680:12;:10;:12::i;:::-;57661:32;;;;;;;;;;;;;;;:42;57694:8;57661:42;;;;;;;;;;;;;;;;:53;;;;;;;;;;;;;;;;;;57759:8;57730:48;;57745:12;:10;:12::i;:::-;57730:48;;;57769:8;57730:48;;;;;;;;;;;;;;;;;;;;;;57491:295;;:::o;134468:21::-;;;;;;;;;;;;;:::o;58686:285::-;58818:41;58837:12;:10;:12::i;:::-;58851:7;58818:18;:41::i;:::-;58810:103;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58924:39;58938:4;58944:2;58948:7;58957:5;58924:13;:39::i;:::-;58686:285;;;;:::o;141381:118::-;141439:7;141466:16;:25;141483:7;141466:25;;;;;;;;;;;;;;;;141459:32;;141381:118;;;:::o;140126:228::-;135134:10;135124:20;;:6;;;;;;;;;;;:20;;;135116:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;140243:9:::1;140255:1:::0;140243:13:::1;;140238:109;140262:6;140258:1;:10;140238:109;;;140334:1;140290:25;:40;140316:10;;140327:1;140316:13;;;;;;;;;;;;;;;140290:40;;;;;;;;;;;;;;;;:45;;;;;;;;;;;140270:3;;;;;;;140238:109;;;;140126:228:::0;;;:::o;135525:2227::-;135624:1;135611:9;:14;;135603:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;135674:1;135661:9;:14;;135653:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;135720:1;135707:9;:14;135703:96;;;135767:5;135744:28;;:19;;;;;;;;;;;:28;;;135736:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;135703:96;135827:1;135814:9;:14;135810:106;;;135879:5;135851:33;;:24;;;;;;;;;;;:33;;;135843:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;135810:106;135944:1;135931:9;:14;135927:108;;;135997:5;135968:34;;:25;;;;;;;;;;;:34;;;135960:75;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;135927:108;136056:23;136082:41;136101:10;136113:9;136082:18;:41::i;:::-;136056:67;;136151:1;136138:9;:14;136134:191;;;136186:22;:34;136209:10;136186:34;;;;;;;;;;;;;;;;136167:53;;;;136134:191;;;136253:1;136240:9;:14;136236:89;;;136288:25;:37;136314:10;136288:37;;;;;;;;;;;;;;;;136269:56;;;;136236:89;136134:191;136338:15;136356:1;136338:19;;136385:1;136372:9;:14;136368:441;;;136462:6;136428:19;:31;136448:10;136428:31;;;;;;;;;;;;;;;;:40;136409:15;:59;;136401:96;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;136368:441;;;136530:1;136517:9;:14;136513:296;;;136612:6;136573:24;:36;136598:10;136573:36;;;;;;;;;;;;;;;;:45;136554:15;:64;;136546:106;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;136513:296;;;136685:1;136672:9;:14;136668:141;;;136768:6;136728:25;:37;136754:10;136728:37;;;;;;;;;;;;;;;;:46;136709:15;:65;;136701:108;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;136668:141;136513:296;136368:441;136831:7;136841:1;136831:11;;136826:641;136848:6;136844:1;:10;;;136826:641;;;136893:1;136880:9;:14;136876:480;;;136915:23;:11;:21;:23::i;:::-;136991:14;;136967:21;:11;:19;:21::i;:::-;:38;136957:48;;136876:480;;;137044:1;137031:9;:14;137027:329;;;137066:28;:16;:26;:28::i;:::-;137152:19;;137123:26;:16;:24;:26::i;:::-;:48;137113:58;;137027:329;;;137210:1;137197:9;:14;137193:163;;;137232:29;:17;:27;:29::i;:::-;137320:20;;137290:27;:17;:25;:27::i;:::-;:50;137280:60;;137193:163;137027:329;136876:480;137370:30;137380:10;137392:7;137370:9;:30::i;:::-;137415:40;137428:7;137437:17;137446:7;137437:8;:17::i;:::-;137415:12;:40::i;:::-;136856:3;;;;;;;136826:641;;;;137496:1;137483:9;:14;137479:265;;;137547:6;137512:19;:31;137532:10;137512:31;;;;;;;;;;;;;;;;:41;;;;;;;;;;;137479:265;;;137586:1;137573:9;:14;137569:175;;;137642:6;137602:24;:36;137627:10;137602:36;;;;;;;;;;;;;;;;:46;;;;;;;;;;;137569:175;;;137681:1;137668:9;:14;137664:80;;;137738:6;137697:25;:37;137723:10;137697:37;;;;;;;;;;;;;;;;:47;;;;;;;;;;;137664:80;137569:175;137479:265;135525:2227;;;;:::o;54734:792::-;54807:13;54841:16;54849:7;54841;:16::i;:::-;54833:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54922:23;54948:10;:19;54959:7;54948:19;;;;;;;;;;;54922:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54978:18;54999:9;:7;:9::i;:::-;54978:30;;55106:1;55090:4;55084:18;:23;55080:72;;;55131:9;55124:16;;;;;;55080:72;55282:1;55262:9;55256:23;:27;55252:108;;;55331:4;55337:9;55314:33;;;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;55314:33:0;;;;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;55314:33:0;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;55314:33:0;;;55300:48;;;;;;55252:108;55492:4;55498:18;:7;:16;:18::i;:::-;55475:42;;;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;55475:42:0;;;;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;55475:42:0;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;55475:42:0;;;55461:57;;;;54734:792;;;;:::o;137760:814::-;137848:7;137868:14;137885:1;137868:18;;137913:1;137901:9;:13;:30;;;;137930:1;137918:9;:13;137901:30;137897:62;;;137953:6;137946:13;;;;;137897:62;137980:23;138006:39;138025:8;138035:9;138006:18;:39::i;:::-;137980:65;;138073:1;138060:9;:14;138056:485;;;138110:22;:32;138133:8;138110:32;;;;;;;;;;;;;;;;138091:51;;;;138184:19;:29;138204:8;138184:29;;;;;;;;;;;;;;;;138166:15;:47;138157:56;;138056:485;;;138257:1;138244:9;:14;138240:301;;;138294:25;:35;138320:8;138294:35;;;;;;;;;;;;;;;;138275:54;;;;138371:24;:34;138396:8;138371:34;;;;;;;;;;;;;;;;138353:15;:52;138344:61;;138240:301;;;138449:1;138436:9;:14;138432:109;;;138494:25;:35;138520:8;138494:35;;;;;;;;;;;;;;;;138476:15;:53;138467:62;;138432:109;138240:301;138056:485;138560:6;138553:13;;;;137760:814;;;;;:::o;140481:145::-;135134:10;135124:20;;:6;;;;;;;;;;;:20;;;135116:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;140569:49:::1;140588:8;140598:19;140607:9;140598:8;:19::i;:::-;140569:18;:49::i;:::-;140481:145:::0;;:::o;134496:25::-;;;;;;;;;;;;;:::o;57857:164::-;57954:4;57978:18;:25;57997:5;57978:25;;;;;;;;;;;;;;;:35;58004:8;57978:35;;;;;;;;;;;;;;;;;;;;;;;;;57971:42;;57857:164;;;;:::o;141682:547::-;141754:4;141737:21;;:13;;;;;;;;;;;:21;;;141729:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;141830:1;141799:16;:28;141816:10;141799:28;;;;;;;;;;;;;;;;:32;141791:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;141908:16;:28;141925:10;141908:28;;;;;;;;;;;;;;;;141883:21;:53;;141875:102;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;142018:3;141996:26;;:10;:26;;;;141988:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;142055:12;142073:10;:15;;142096:16;:28;142113:10;142096:28;;;;;;;;;;;;;;;;142073:56;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;14:27;32:4;27:9;;5:228;;142054:75:0;;;142148:7;142140:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;142220:1;142189:16;:28;142206:10;142189:28;;;;;;;;;;;;;;;:32;;;;141682:547;:::o;142237:184::-;135134:10;135124:20;;:6;;;;;;;;;;;:20;;;135116:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;142340:1:::1;142320:22;;:8;:22;;;;142312:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;142405:8;142396:6;;:17;;;;;;;;;;;;;;;;;;142237:184:::0;:::o;60438:127::-;60503:4;60527:30;60549:7;60527:12;:21;;:30;;;;:::i;:::-;60520:37;;60438:127;;;:::o;10149:106::-;10202:15;10237:10;10230:17;;10149:106;:::o;66511:203::-;66613:2;66586:15;:24;66602:7;66586:24;;;;;;;;;;;;:29;;;;;;;;;;;;;;;;;;66680:7;66676:2;66631:57;;66640:34;66666:7;66640:25;:34::i;:::-;66631:57;;;;;;;;;;;;66511:203;;:::o;46567:123::-;46636:7;46663:19;46671:3;:10;;46663:7;:19::i;:::-;46656:26;;46567:123;;;:::o;142429:482::-;142479:27;142529:1;142523:2;:7;142519:50;;;142547:10;;;;;;;;;;;;;;;;;;;;;142519:50;142579:6;142588:2;142579:11;;142601:8;142620:69;142632:1;142627;:6;142620:69;;142650:5;;;;;;;142675:2;142670:7;;;;;;;;;142620:69;;;142699:17;142729:3;142719:14;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;142719:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;29:1:-1;21:6;17:14;124:4;108:14;100:6;87:42;155:4;147:6;143:17;133:27;;0:164;142719:14:0;;;;142699:34;;142744:6;142759:1;142753:3;:7;142744:16;;142771:103;142784:1;142778:2;:7;142771:103;;142835:2;142830;:7;;;;;;142825:2;:12;142814:25;;142802:4;142807:3;;;;;;;142802:9;;;;;;;;;;;:37;;;;;;;;;;;142860:2;142854:8;;;;;;;;;142771:103;;;142898:4;142884:19;;;;;;142429:482;;;;:::o;64667:215::-;64767:16;64775:7;64767;:16::i;:::-;64759:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64865:9;64843:10;:19;64854:7;64843:19;;;;;;;;;;;:31;;;;;;;;;;;;:::i;:::-;;64667:215;;:::o;60732:377::-;60825:4;60850:16;60858:7;60850;:16::i;:::-;60842:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60926:13;60942:34;60968:7;60942:25;:34::i;:::-;60926:50;;61006:5;60995:16;;:7;:16;;;:51;;;;61039:7;61015:31;;:20;61027:7;61015:11;:20::i;:::-;:31;;;60995:51;:105;;;;61050:50;61085:5;61092:7;61050:34;:50::i;:::-;60995:105;60987:114;;;60732:377;;;;:::o;63901:610::-;64037:4;63999:42;;:34;64025:7;63999:25;:34::i;:::-;:42;;;63991:96;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64138:1;64124:16;;:2;:16;;;;64116:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64194:39;64215:4;64221:2;64225:7;64194:20;:39::i;:::-;64298:29;64315:1;64319:7;64298:8;:29::i;:::-;64340:35;64367:7;64340:13;:19;64354:4;64340:19;;;;;;;;;;;;;;;:26;;:35;;;;:::i;:::-;;64386:30;64408:7;64386:13;:17;64400:2;64386:17;;;;;;;;;;;;;;;:21;;:30;;;;:::i;:::-;;64429:29;64446:7;64455:2;64429:12;:16;;:29;;;;;:::i;:::-;;64495:7;64491:2;64476:27;;64485:4;64476:27;;;;;;;;;;;;63901:610;;;:::o;38293:137::-;38364:7;38399:22;38403:3;:10;;38415:5;38399:3;:22::i;:::-;38391:31;;38384:38;;38293:137;;;;:::o;47029:236::-;47109:7;47118;47139:11;47152:13;47169:22;47173:3;:10;;47185:5;47169:3;:22::i;:::-;47138:53;;;;47218:3;47210:12;;47248:5;47240:14;;47202:55;;;;;;;;;47029:236;;;;;:::o;65112:100::-;65196:8;65185;:19;;;;;;;;;;;;:::i;:::-;;65112:100;:::o;48315:213::-;48422:7;48473:44;48478:3;:10;;48498:3;48490:12;;48504;48473:4;:44::i;:::-;48465:53;;48442:78;;48315:213;;;;;:::o;37835:114::-;37895:7;37922:19;37930:3;:10;;37922:7;:19::i;:::-;37915:26;;37835:114;;;:::o;9126:125::-;9174:4;9199:44;9237:4;9199:29;:44::i;:::-;9198:45;9191:52;;9126:125;:::o;53161:219::-;8670:13;;;;;;;;;;;:33;;;;8687:16;:14;:16::i;:::-;8670:33;:50;;;;8708:12;;;;;;;;;;;8707:13;8670:50;8662:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8784:19;8807:13;;;;;;;;;;;8806:14;8784:36;;8835:14;8831:101;;;8882:4;8866:13;;:20;;;;;;;;;;;;;;;;;;8916:4;8901:12;;:19;;;;;;;;;;;;;;;;;;8831:101;53260:26:::1;:24;:26::i;:::-;53297:25;:23;:25::i;:::-;53333:39;53357:5;53364:7;53333:23;:39::i;:::-;8962:14:::0;8958:68;;;9009:5;8993:13;;:21;;;;;;;;;;;;;;;;;;8958:68;53161:219;;;:::o;59853:272::-;59967:28;59977:4;59983:2;59987:7;59967:9;:28::i;:::-;60014:48;60037:4;60043:2;60047:7;60056:5;60014:22;:48::i;:::-;60006:111;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59853:272;;;;:::o;138582:848::-;138669:7;138689:14;138706:1;138689:18;;138754:1;138722:8;;;;;;;;;;;:18;;;138741:8;138722:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;138722:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;138722:28:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;138722:28:0;;;;;;;;;;;;;;;;:33;138718:65;;;138777:6;138770:13;;;;;138718:65;138794:18;138823;138869:1;138856:9;:14;138852:297;;;138900:4;138887:17;;138932:4;138919:17;;138852:297;;;138971:1;138958:9;:14;138954:195;;;139002:4;138989:17;;139034:4;139021:17;;138954:195;;;139073:1;139060:9;:14;139056:93;;;139104:1;139091:14;;139133:4;139120:17;;139056:93;138954:195;138852:297;139166:9;139178:1;139166:13;;139161:238;139185:8;;;;;;;;;;;:18;;;139204:8;139185:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;139185:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;139185:28:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;139185:28:0;;;;;;;;;;;;;;;;139181:1;:32;139161:238;;;139235:15;139253:8;;;;;;;;;;;:28;;;139282:8;139292:1;139253:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;139253:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;139253:41:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;139253:41:0;;;;;;;;;;;;;;;;139235:59;;139324:10;139313:7;:21;;:46;;;;;139349:10;139338:7;:21;;139313:46;139309:78;;;139378:9;;;;;;;139309:78;139161:238;139215:3;;;;;;;139161:238;;;;139416:6;139409:13;;;;;138582:848;;;;;:::o;68782:181::-;68954:1;68936:7;:14;;;:19;;;;;;;;;;;68782:181;:::o;68660:114::-;68725:7;68752;:14;;;68745:21;;68660:114;;;:::o;61452:110::-;61528:26;61538:2;61542:7;61528:26;;;;;;;;;;;;:9;:26::i;:::-;61452:110;;:::o;48844:746::-;48900:13;49130:1;49121:5;:10;49117:53;;;49148:10;;;;;;;;;;;;;;;;;;;;;49117:53;49180:12;49195:5;49180:20;;49211:14;49236:78;49251:1;49243:4;:9;49236:78;;49269:8;;;;;;;49300:2;49292:10;;;;;;;;;49236:78;;;49324:19;49356:6;49346:17;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;49346:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;29:1:-1;21:6;17:14;124:4;108:14;100:6;87:42;155:4;147:6;143:17;133:27;;0:164;49346:17:0;;;;49324:39;;49374:13;49399:1;49390:6;:10;49374:26;;49418:5;49411:12;;49434:117;49449:1;49441:4;:9;49434:117;;49510:2;49503:4;:9;;;;;;49498:2;:14;49485:29;;49467:6;49474:7;;;;;;;49467:15;;;;;;;;;;;:47;;;;;;;;;;;49537:2;49529:10;;;;;;;;;49434:117;;;49575:6;49561:21;;;;;;48844:746;;;;:::o;46328:151::-;46412:4;46436:35;46446:3;:10;;46466:3;46458:12;;46436:9;:35::i;:::-;46429:42;;46328:151;;;;:::o;43146:110::-;43202:7;43229:3;:12;;:19;;;;43222:26;;43146:110;;;:::o;67327:93::-;;;;:::o;37380:137::-;37450:4;37474:35;37482:3;:10;;37502:5;37494:14;;37474:7;:35::i;:::-;37467:42;;37380:137;;;;:::o;37073:131::-;37140:4;37164:32;37169:3;:10;;37189:5;37181:14;;37164:4;:32::i;:::-;37157:39;;37073:131;;;;:::o;45751:185::-;45840:4;45864:64;45869:3;:10;;45889:3;45881:12;;45919:5;45903:23;;45895:32;;45864:4;:64::i;:::-;45857:71;;45751:185;;;;;:::o;33331:204::-;33398:7;33447:5;33426:3;:11;;:18;;;;:26;33418:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33509:3;:11;;33521:5;33509:18;;;;;;;;;;;;;;;;33502:25;;33331:204;;;;:::o;43611:279::-;43678:7;43687;43737:5;43715:3;:12;;:19;;;;:27;43707:74;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43794:22;43819:3;:12;;43832:5;43819:19;;;;;;;;;;;;;;;;;;43794:44;;43857:5;:10;;;43869:5;:12;;;43849:33;;;;;43611:279;;;;;:::o;45108:319::-;45202:7;45222:16;45241:3;:12;;:17;45254:3;45241:17;;;;;;;;;;;;45222:36;;45289:1;45277:8;:13;;45292:12;45269:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;45269:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45359:3;:12;;45383:1;45372:8;:12;45359:26;;;;;;;;;;;;;;;;;;:33;;;45352:40;;;45108:319;;;;;:::o;32878:109::-;32934:7;32961:3;:11;;:18;;;;32954:25;;32878:109;;;:::o;839:422::-;899:4;1107:12;1218:7;1206:20;1198:28;;1252:1;1245:4;:8;1238:15;;;839:422;;;:::o;10078:65::-;8670:13;;;;;;;;;;;:33;;;;8687:16;:14;:16::i;:::-;8670:33;:50;;;;8708:12;;;;;;;;;;;8707:13;8670:50;8662:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8784:19;8807:13;;;;;;;;;;;8806:14;8784:36;;8835:14;8831:101;;;8882:4;8866:13;;:20;;;;;;;;;;;;;;;;;;8916:4;8901:12;;:19;;;;;;;;;;;;;;;;;;8831:101;8962:14;8958:68;;;9009:5;8993:13;;:21;;;;;;;;;;;;;;;;;;8958:68;10078:65;:::o;19920:253::-;8670:13;;;;;;;;;;;:33;;;;8687:16;:14;:16::i;:::-;8670:33;:50;;;;8708:12;;;;;;;;;;;8707:13;8670:50;8662:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8784:19;8807:13;;;;;;;;;;;8806:14;8784:36;;8835:14;8831:101;;;8882:4;8866:13;;:20;;;;;;;;;;;;;;;;;;8916:4;8901:12;;:19;;;;;;;;;;;;;;;;;;8831:101;20125:40:::1;19652:10;20144:20;;20125:18;:40::i;:::-;8962:14:::0;8958:68;;;9009:5;8993:13;;:21;;;;;;;;;;;;;;;;;;8958:68;19920:253;:::o;53388:411::-;8670:13;;;;;;;;;;;:33;;;;8687:16;:14;:16::i;:::-;8670:33;:50;;;;8708:12;;;;;;;;;;;8707:13;8670:50;8662:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8784:19;8807:13;;;;;;;;;;;8806:14;8784:36;;8835:14;8831:101;;;8882:4;8866:13;;:20;;;;;;;;;;;;;;;;;;8916:4;8901:12;;:19;;;;;;;;;;;;;;;;;;8831:101;53505:5:::1;53497;:13;;;;;;;;;;;;:::i;:::-;;53531:7;53521;:17;;;;;;;;;;;;:::i;:::-;;53629:40;52303:10;53648:20;;53629:18;:40::i;:::-;53680:49;52644:10;53699:29;;53680:18;:49::i;:::-;53740:51;53026:10;53759:31;;53740:18;:51::i;:::-;8962:14:::0;8958:68;;;9009:5;8993:13;;:21;;;;;;;;;;;;;;;;;;8958:68;53388:411;;;:::o;65777:615::-;65898:4;65925:15;:2;:13;;;:15::i;:::-;65920:60;;65964:4;65957:11;;;;65920:60;65990:23;66016:263;66069:56;;;66140:12;:10;:12::i;:::-;66167:4;66186:7;66208:5;66032:192;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;66032:192:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;66032:192:0;;;;;;;38:4:-1;29:7;25:18;67:10;61:17;96:58;199:8;192:4;186;182:15;179:29;167:10;160:49;0:215;;;66032:192:0;66016:263;;;;;;;;;;;;;;;;;:2;:15;;;;:263;;;;;:::i;:::-;65990:289;;66290:13;66317:10;66306:32;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;66306:32:0;;;;;;;;;;;;;;;;66290:48;;50577:10;66367:16;;66357:26;;;:6;:26;;;;66349:35;;;;65777:615;;;;;;;:::o;61789:250::-;61885:18;61891:2;61895:7;61885:5;:18::i;:::-;61922:54;61953:1;61957:2;61961:7;61970:5;61922:22;:54::i;:::-;61914:117;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61789:250;;;:::o;42926:125::-;42997:4;43042:1;43021:3;:12;;:17;43034:3;43021:17;;;;;;;;;;;;:22;;43014:29;;42926:125;;;;:::o;31033:1544::-;31099:4;31217:18;31238:3;:12;;:19;31251:5;31238:19;;;;;;;;;;;;31217:40;;31288:1;31274:10;:15;31270:1300;;31636:21;31673:1;31660:10;:14;31636:38;;31689:17;31730:1;31709:3;:11;;:18;;;;:22;31689:42;;31976:17;31996:3;:11;;32008:9;31996:22;;;;;;;;;;;;;;;;31976:42;;32142:9;32113:3;:11;;32125:13;32113:26;;;;;;;;;;;;;;;:38;;;;32261:1;32245:13;:17;32219:3;:12;;:23;32232:9;32219:23;;;;;;;;;;;:43;;;;32371:3;:11;;:17;;;;;;;;;;;;;;;;;;;;;;;;32466:3;:12;;:19;32479:5;32466:19;;;;;;;;;;;32459:26;;;32509:4;32502:11;;;;;;;;31270:1300;32553:5;32546:12;;;31033:1544;;;;;:::o;30443:414::-;30506:4;30528:21;30538:3;30543:5;30528:9;:21::i;:::-;30523:327;;30566:3;:11;;30583:5;30566:23;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;30566:23:0;;;;;;;;;;;;;;;;;;;30749:3;:11;;:18;;;;30727:3;:12;;:19;30740:5;30727:19;;;;;;;;;;;:40;;;;30789:4;30782:11;;;;30523:327;30833:5;30826:12;;30443:414;;;;;:::o;40426:692::-;40502:4;40618:16;40637:3;:12;;:17;40650:3;40637:17;;;;;;;;;;;;40618:36;;40683:1;40671:8;:13;40667:444;;;40738:3;:12;;40756:38;;;;;;;;40773:3;40756:38;;;;40786:5;40756:38;;;40738:57;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;40738:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40953:3;:12;;:19;;;;40933:3;:12;;:17;40946:3;40933:17;;;;;;;;;;;:39;;;;40994:4;40987:11;;;;;40667:444;41067:5;41031:3;:12;;41055:1;41044:8;:12;41031:26;;;;;;;;;;;;;;;;;;:33;;:41;;;;41094:5;41087:12;;;40426:692;;;;;;:::o;20887:201::-;20986:10;20971:25;;:11;:25;;;;;20963:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21076:4;21040:20;:33;21061:11;21040:33;;;;;;;;;;;;;;;;;;:40;;;;;;;;;;;;;;;;;;20887:201;:::o;3757:195::-;3860:12;3892:52;3914:6;3922:4;3928:1;3931:12;3892:21;:52::i;:::-;3885:59;;3757:195;;;;;:::o;62375:404::-;62469:1;62455:16;;:2;:16;;;;62447:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62528:16;62536:7;62528;:16::i;:::-;62527:17;62519:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62590:45;62619:1;62623:2;62627:7;62590:20;:45::i;:::-;62648:30;62670:7;62648:13;:17;62662:2;62648:17;;;;;;;;;;;;;;;:21;;:30;;;;:::i;:::-;;62691:29;62708:7;62717:2;62691:12;:16;;:29;;;;;:::i;:::-;;62763:7;62759:2;62738:33;;62755:1;62738:33;;;;;;;;;;;;62375:404;;:::o;32663:129::-;32736:4;32783:1;32760:3;:12;;:19;32773:5;32760:19;;;;;;;;;;;;:24;;32753:31;;32663:129;;;;:::o;4809:530::-;4936:12;4994:5;4969:21;:30;;4961:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5061:18;5072:6;5061:10;:18::i;:::-;5053:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5187:12;5201:23;5228:6;:11;;5248:5;5256:4;5228:33;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;5228:33:0;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;14:27;32:4;27:9;;5:228;;5186:75:0;;;;5279:52;5297:7;5306:10;5318:12;5279:17;:52::i;:::-;5272:59;;;;4809:530;;;;;;:::o;6345:742::-;6460:12;6489:7;6485:595;;;6520:10;6513:17;;;;6485:595;6654:1;6634:10;:17;:21;6630:439;;;6897:10;6891:17;6958:15;6945:10;6941:2;6937:19;6930:44;6845:148;7040:12;7033:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;7033:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6345:742;;;;;;:::o;134050:8864::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o
Swarm Source
ipfs://e37676486e62222a6a101e3224646cda2db60ff6803ed8936a069827de764c4a
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.