Address Details
contract
token
0x082C09c950d002a6020d68BA8e20a13802B0B20d
- Token
- PixelAvaV2 (PXA)
- Creator
- 0xebd0a5–5c1367 at 0xe9b814–2ff5ea
- Balance
- 0 CELO ( )
- Locked CELO Balance
- 0.00 CELO
- Voting CELO Balance
- 0.00 CELO
- Pending Unlocked Gold
- 0.00 CELO
- Tokens
-
Fetching tokens...
- Transactions
- 107 Transactions
- Transfers
- 0 Transfers
- Gas Used
- 21,530,715
- Last Balance Update
- 11898606
This contract has been verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- PixelAva
- Optimization enabled
- false
- Compiler version
- v0.8.4+commit.c7e474f2
- EVM Version
- istanbul
- Verified at
- 2022-05-20T16:03:40.806083Z
contracts/PixelAva.sol
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract PixelAva is ERC721Enumerable, Ownable { using Counters for Counters.Counter; string private BASE_URI; mapping(address => uint256) private _mainTokenIds; Counters.Counter private _tokenIds; mapping(uint256 => string) private _names; constructor(string memory baseUri) ERC721("PixelAvaV2", "PXA") { BASE_URI = baseUri; } event Mint(uint256 indexed tokenId, uint8[16][16] matrix, string[5] colors); event Name(uint256 indexed tokenId, string name); function setBaseURI(string memory baseURI) public onlyOwner { BASE_URI = baseURI; } function _baseURI() internal view override returns (string memory) { return BASE_URI; } function mainTokenId() public view returns (uint256) { return _mainTokenIds[_msgSender()]; } function setMainTokenId(uint256 tokenId) public { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); require(_msgSender() == owner, "PixelAva: only owner can set this token to their main token"); require(tokenId != _mainTokenIds[_msgSender()], "PixelAva: this token id is your main token id"); _mainTokenIds[_msgSender()] = tokenId; } function tokenName(uint256 tokenId) public view returns (string memory) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); return _names[tokenId]; } function setTokenName(uint256 tokenId, string memory name) public { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); require(_msgSender() == owner, "PixelAva: only owner can name the token"); _setTokenName(tokenId, name); } function _setTokenName(uint256 tokenId, string memory name) private { _names[tokenId] = name; emit Name(tokenId, name); } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal override { super._beforeTokenTransfer(from, to, tokenId); if (tokenId == _mainTokenIds[from]) { delete _mainTokenIds[from]; } } function mint(uint8[16][16] memory matrix, string[5] memory colors) public onlyOwner { _tokenIds.increment(); uint256 id = _tokenIds.current(); _mint(_msgSender(), id); emit Mint(id, matrix, colors); } }
/_openzeppelin/contracts/access/Ownable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
/_openzeppelin/contracts/token/ERC721/ERC721.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not 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 { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: 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 _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[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); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[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"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @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` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
/_openzeppelin/contracts/token/ERC721/IERC721.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @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; }
/_openzeppelin/contracts/token/ERC721/IERC721Receiver.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
/_openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev 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 override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
/_openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @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); }
/_openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @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); }
/_openzeppelin/contracts/utils/Address.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^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; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev 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"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
/_openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
/_openzeppelin/contracts/utils/Counters.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
/_openzeppelin/contracts/utils/Strings.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
/_openzeppelin/contracts/utils/introspection/ERC165.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
/_openzeppelin/contracts/utils/introspection/IERC165.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"string","name":"baseUri","internalType":"string"}]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"approved","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"event","name":"ApprovalForAll","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"operator","internalType":"address","indexed":true},{"type":"bool","name":"approved","internalType":"bool","indexed":false}],"anonymous":false},{"type":"event","name":"Mint","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true},{"type":"uint8[16][16]","name":"matrix","internalType":"uint8[16][16]","indexed":false},{"type":"string[5]","name":"colors","internalType":"string[5]","indexed":false}],"anonymous":false},{"type":"event","name":"Name","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true},{"type":"string","name":"name","internalType":"string","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"approve","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"getApproved","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isApprovedForAll","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"operator","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"mainTokenId","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"mint","inputs":[{"type":"uint8[16][16]","name":"matrix","internalType":"uint8[16][16]"},{"type":"string[5]","name":"colors","internalType":"string[5]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"ownerOf","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeTransferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeTransferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"bytes","name":"_data","internalType":"bytes"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setApprovalForAll","inputs":[{"type":"address","name":"operator","internalType":"address"},{"type":"bool","name":"approved","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setBaseURI","inputs":[{"type":"string","name":"baseURI","internalType":"string"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMainTokenId","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setTokenName","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"string","name":"name","internalType":"string"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceId","internalType":"bytes4"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tokenByIndex","inputs":[{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"tokenName","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tokenOfOwnerByIndex","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"tokenURI","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]}]
Contract Creation Code
0x60806040523480156200001157600080fd5b50604051620047a8380380620047a8833981810160405281019062000037919062000307565b6040518060400160405280600a81526020017f506978656c4176615632000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f50584100000000000000000000000000000000000000000000000000000000008152508160009080519060200190620000bb929190620001e5565b508060019080519060200190620000d4929190620001e5565b505050620000f7620000eb6200011760201b60201c565b6200011f60201b60201c565b80600b90805190602001906200010f929190620001e5565b5050620004bc565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620001f390620003e1565b90600052602060002090601f01602090048101928262000217576000855562000263565b82601f106200023257805160ff191683800117855562000263565b8280016001018555821562000263579182015b828111156200026257825182559160200191906001019062000245565b5b50905062000272919062000276565b5090565b5b808211156200029157600081600090555060010162000277565b5090565b6000620002ac620002a68462000375565b6200034c565b905082815260208101848484011115620002c557600080fd5b620002d2848285620003ab565b509392505050565b600082601f830112620002ec57600080fd5b8151620002fe84826020860162000295565b91505092915050565b6000602082840312156200031a57600080fd5b600082015167ffffffffffffffff8111156200033557600080fd5b6200034384828501620002da565b91505092915050565b6000620003586200036b565b905062000366828262000417565b919050565b6000604051905090565b600067ffffffffffffffff8211156200039357620003926200047c565b5b6200039e82620004ab565b9050602081019050919050565b60005b83811015620003cb578082015181840152602081019050620003ae565b83811115620003db576000848401525b50505050565b60006002820490506001821680620003fa57607f821691505b602082108114156200041157620004106200044d565b5b50919050565b6200042282620004ab565b810181811067ffffffffffffffff821117156200044457620004436200047c565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b6142dc80620004cc6000396000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c806370a08231116100de578063c87b56dd11610097578063e725f87711610071578063e725f87714610448578063e985e9c514610478578063f2fde38b146104a8578063f61d4895146104c457610173565b8063c87b56dd146103e0578063cdb0e89e14610410578063ce10e81d1461042c57610173565b806370a0823114610332578063715018a6146103625780638da5cb5b1461036c57806395d89b411461038a578063a22cb465146103a8578063b88d4fde146103c457610173565b806323b872dd1161013057806323b872dd1461024e5780632f745c591461026a57806342842e0e1461029a5780634f6ccce7146102b657806355f804b3146102e65780636352211e1461030257610173565b806301ffc9a71461017857806306fdde03146101a8578063081812fc146101c65780630892a263146101f6578063095ea7b31461021457806318160ddd14610230575b600080fd5b610192600480360381019061018d9190612d30565b6104e0565b60405161019f919061345c565b60405180910390f35b6101b061055a565b6040516101bd9190613477565b60405180910390f35b6101e060048036038101906101db9190612dc3565b6105ec565b6040516101ed91906133c3565b60405180910390f35b6101fe610671565b60405161020b9190613739565b60405180910390f35b61022e60048036038101906102299190612c9e565b6106bf565b005b6102386107d7565b6040516102459190613739565b60405180910390f35b61026860048036038101906102639190612b98565b6107e4565b005b610284600480360381019061027f9190612c9e565b610844565b6040516102919190613739565b60405180910390f35b6102b460048036038101906102af9190612b98565b6108e9565b005b6102d060048036038101906102cb9190612dc3565b610909565b6040516102dd9190613739565b60405180910390f35b61030060048036038101906102fb9190612d82565b6109a0565b005b61031c60048036038101906103179190612dc3565b610a36565b60405161032991906133c3565b60405180910390f35b61034c60048036038101906103479190612b33565b610ae8565b6040516103599190613739565b60405180910390f35b61036a610ba0565b005b610374610c28565b60405161038191906133c3565b60405180910390f35b610392610c52565b60405161039f9190613477565b60405180910390f35b6103c260048036038101906103bd9190612c62565b610ce4565b005b6103de60048036038101906103d99190612be7565b610cfa565b005b6103fa60048036038101906103f59190612dc3565b610d5c565b6040516104079190613477565b60405180910390f35b61042a60048036038101906104259190612dec565b610e03565b005b61044660048036038101906104419190612dc3565b610edc565b005b610462600480360381019061045d9190612dc3565b61107e565b60405161046f9190613477565b60405180910390f35b610492600480360381019061048d9190612b5c565b61116b565b60405161049f919061345c565b60405180910390f35b6104c260048036038101906104bd9190612b33565b6111ff565b005b6104de60048036038101906104d99190612cda565b6112f7565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806105535750610552826113db565b5b9050919050565b60606000805461056990613aa6565b80601f016020809104026020016040519081016040528092919081815260200182805461059590613aa6565b80156105e25780601f106105b7576101008083540402835291602001916105e2565b820191906000526020600020905b8154815290600101906020018083116105c557829003601f168201915b5050505050905090565b60006105f7826114bd565b610636576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161062d90613619565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600c600061067f611529565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905090565b60006106ca82610a36565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561073b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161073290613699565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661075a611529565b73ffffffffffffffffffffffffffffffffffffffff161480610789575061078881610783611529565b61116b565b5b6107c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107bf90613599565b60405180910390fd5b6107d28383611531565b505050565b6000600880549050905090565b6107f56107ef611529565b826115ea565b610834576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082b906136b9565b60405180910390fd5b61083f8383836116c8565b505050565b600061084f83610ae8565b8210610890576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610887906134b9565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b61090483838360405180602001604052806000815250610cfa565b505050565b60006109136107d7565b8210610954576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094b906136f9565b60405180910390fd5b6008828154811061098e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6109a8611529565b73ffffffffffffffffffffffffffffffffffffffff166109c6610c28565b73ffffffffffffffffffffffffffffffffffffffff1614610a1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1390613639565b60405180910390fd5b80600b9080519060200190610a32929190612788565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610adf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad6906135d9565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610b59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b50906135b9565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610ba8611529565b73ffffffffffffffffffffffffffffffffffffffff16610bc6610c28565b73ffffffffffffffffffffffffffffffffffffffff1614610c1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1390613639565b60405180910390fd5b610c266000611924565b565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054610c6190613aa6565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8d90613aa6565b8015610cda5780601f10610caf57610100808354040283529160200191610cda565b820191906000526020600020905b815481529060010190602001808311610cbd57829003601f168201915b5050505050905090565b610cf6610cef611529565b83836119ea565b5050565b610d0b610d05611529565b836115ea565b610d4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d41906136b9565b60405180910390fd5b610d5684848484611b57565b50505050565b6060610d67826114bd565b610da6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9d90613679565b60405180910390fd5b6000610db0611bb3565b90506000815111610dd05760405180602001604052806000815250610dfb565b80610dda84611c45565b604051602001610deb92919061339f565b6040516020818303038152906040525b915050919050565b610e0c826114bd565b610e4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4290613579565b60405180910390fd5b6000610e5683610a36565b90508073ffffffffffffffffffffffffffffffffffffffff16610e77611529565b73ffffffffffffffffffffffffffffffffffffffff1614610ecd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec4906136d9565b60405180910390fd5b610ed78383611df2565b505050565b610ee5816114bd565b610f24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1b90613579565b60405180910390fd5b6000610f2f82610a36565b90508073ffffffffffffffffffffffffffffffffffffffff16610f50611529565b73ffffffffffffffffffffffffffffffffffffffff1614610fa6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9d90613719565b60405180910390fd5b600c6000610fb2611529565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482141561102f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102690613499565b60405180910390fd5b81600c600061103c611529565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b6060611089826114bd565b6110c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110bf90613579565b60405180910390fd5b600e600083815260200190815260200160002080546110e690613aa6565b80601f016020809104026020016040519081016040528092919081815260200182805461111290613aa6565b801561115f5780601f106111345761010080835404028352916020019161115f565b820191906000526020600020905b81548152906001019060200180831161114257829003601f168201915b50505050509050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611207611529565b73ffffffffffffffffffffffffffffffffffffffff16611225610c28565b73ffffffffffffffffffffffffffffffffffffffff161461127b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127290613639565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156112eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e2906134f9565b60405180910390fd5b6112f481611924565b50565b6112ff611529565b73ffffffffffffffffffffffffffffffffffffffff1661131d610c28565b73ffffffffffffffffffffffffffffffffffffffff1614611373576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136a90613639565b60405180910390fd5b61137d600d611e56565b6000611389600d611e6c565b905061139c611396611529565b82611e7a565b807f5c909aab679ba0f1c7b67d3dfb34dd9a7527935f4766a96eea7906426a6349a884846040516113ce92919061342a565b60405180910390a2505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806114a657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806114b657506114b582612048565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166115a483610a36565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006115f5826114bd565b611634576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162b90613579565b60405180910390fd5b600061163f83610a36565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806116ae57508373ffffffffffffffffffffffffffffffffffffffff16611696846105ec565b73ffffffffffffffffffffffffffffffffffffffff16145b806116bf57506116be818561116b565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166116e882610a36565b73ffffffffffffffffffffffffffffffffffffffff161461173e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173590613659565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156117ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a590613539565b60405180910390fd5b6117b98383836120b2565b6117c4600082611531565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461181491906139af565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461186b9190613928565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611a59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5090613559565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b4a919061345c565b60405180910390a3505050565b611b628484846116c8565b611b6e8484848461214d565b611bad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba4906134d9565b60405180910390fd5b50505050565b6060600b8054611bc290613aa6565b80601f0160208091040260200160405190810160405280929190818152602001828054611bee90613aa6565b8015611c3b5780601f10611c1057610100808354040283529160200191611c3b565b820191906000526020600020905b815481529060010190602001808311611c1e57829003601f168201915b5050505050905090565b60606000821415611c8d576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611ded565b600082905060005b60008214611cbf578080611ca890613b09565b915050600a82611cb8919061397e565b9150611c95565b60008167ffffffffffffffff811115611d01577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611d335781602001600182028036833780820191505090505b5090505b60008514611de657600182611d4c91906139af565b9150600a85611d5b9190613b52565b6030611d679190613928565b60f81b818381518110611da3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611ddf919061397e565b9450611d37565b8093505050505b919050565b80600e60008481526020019081526020016000209080519060200190611e19929190612788565b50817f824d030cbc47ef68adced218831ff38c52d28704475e9f908c8a7d4344040c2f82604051611e4a9190613477565b60405180910390a25050565b6001816000016000828254019250508190555050565b600081600001549050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611eea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee1906135f9565b60405180910390fd5b611ef3816114bd565b15611f33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2a90613519565b60405180910390fd5b611f3f600083836120b2565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f8f9190613928565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6120bd8383836122e4565b600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481141561214857600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600090555b505050565b600061216e8473ffffffffffffffffffffffffffffffffffffffff166123f8565b156122d7578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612197611529565b8786866040518563ffffffff1660e01b81526004016121b994939291906133de565b602060405180830381600087803b1580156121d357600080fd5b505af192505050801561220457506040513d601f19601f820116820180604052508101906122019190612d59565b60015b612287573d8060008114612234576040519150601f19603f3d011682016040523d82523d6000602084013e612239565b606091505b5060008151141561227f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612276906134d9565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506122dc565b600190505b949350505050565b6122ef83838361240b565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156123325761232d81612410565b612371565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146123705761236f8382612459565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156123b4576123af816125c6565b6123f3565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146123f2576123f18282612709565b5b5b505050565b600080823b905060008111915050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161246684610ae8565b61247091906139af565b9050600060076000848152602001908152602001600020549050818114612555576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506125da91906139af565b9050600060096000848152602001908152602001600020549050600060088381548110612630577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060088381548110612678577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806126ed577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061271483610ae8565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b82805461279490613aa6565b90600052602060002090601f0160209004810192826127b657600085556127fd565b82601f106127cf57805160ff19168380011785556127fd565b828001600101855582156127fd579182015b828111156127fc5782518255916020019190600101906127e1565b5b50905061280a919061280e565b5090565b5b8082111561282757600081600090555060010161280f565b5090565b600061283e61283984613779565b613754565b905080828561020086028201111561285557600080fd5b60005b85811015612886578161286b8882612a4f565b84526020840193506102008301925050600181019050612858565b5050509392505050565b60006128a361289e8461379f565b613754565b905080828560208602820111156128b957600080fd5b60005b8581101561290357813567ffffffffffffffff8111156128db57600080fd5b8086016128e88982612adf565b855260208501945060208401935050506001810190506128bc565b5050509392505050565b600061292061291b846137c5565b613754565b9050808285602086028201111561293657600080fd5b60005b85811015612966578161294c8882612b1e565b845260208401935060208301925050600181019050612939565b5050509392505050565b600061298361297e846137eb565b613754565b90508281526020810184848401111561299b57600080fd5b6129a6848285613a64565b509392505050565b60006129c16129bc8461381c565b613754565b9050828152602081018484840111156129d957600080fd5b6129e4848285613a64565b509392505050565b6000813590506129fb81614233565b92915050565b600082601f830112612a1257600080fd5b6010612a1f84828561282b565b91505092915050565b600082601f830112612a3957600080fd5b6005612a46848285612890565b91505092915050565b600082601f830112612a6057600080fd5b6010612a6d84828561290d565b91505092915050565b600081359050612a858161424a565b92915050565b600081359050612a9a81614261565b92915050565b600081519050612aaf81614261565b92915050565b600082601f830112612ac657600080fd5b8135612ad6848260208601612970565b91505092915050565b600082601f830112612af057600080fd5b8135612b008482602086016129ae565b91505092915050565b600081359050612b1881614278565b92915050565b600081359050612b2d8161428f565b92915050565b600060208284031215612b4557600080fd5b6000612b53848285016129ec565b91505092915050565b60008060408385031215612b6f57600080fd5b6000612b7d858286016129ec565b9250506020612b8e858286016129ec565b9150509250929050565b600080600060608486031215612bad57600080fd5b6000612bbb868287016129ec565b9350506020612bcc868287016129ec565b9250506040612bdd86828701612b09565b9150509250925092565b60008060008060808587031215612bfd57600080fd5b6000612c0b878288016129ec565b9450506020612c1c878288016129ec565b9350506040612c2d87828801612b09565b925050606085013567ffffffffffffffff811115612c4a57600080fd5b612c5687828801612ab5565b91505092959194509250565b60008060408385031215612c7557600080fd5b6000612c83858286016129ec565b9250506020612c9485828601612a76565b9150509250929050565b60008060408385031215612cb157600080fd5b6000612cbf858286016129ec565b9250506020612cd085828601612b09565b9150509250929050565b6000806120208385031215612cee57600080fd5b6000612cfc85828601612a01565b92505061200083013567ffffffffffffffff811115612d1a57600080fd5b612d2685828601612a28565b9150509250929050565b600060208284031215612d4257600080fd5b6000612d5084828501612a8b565b91505092915050565b600060208284031215612d6b57600080fd5b6000612d7984828501612aa0565b91505092915050565b600060208284031215612d9457600080fd5b600082013567ffffffffffffffff811115612dae57600080fd5b612dba84828501612adf565b91505092915050565b600060208284031215612dd557600080fd5b6000612de384828501612b09565b91505092915050565b60008060408385031215612dff57600080fd5b6000612e0d85828601612b09565b925050602083013567ffffffffffffffff811115612e2a57600080fd5b612e3685828601612adf565b9150509250929050565b6000612e4c8383612f60565b6102008301905092915050565b6000612e658383612fff565b905092915050565b6000612e798383613390565b60208301905092915050565b612e8e816139e3565b82525050565b612e9d8161386b565b612ea781846138c9565b9250612eb28261384d565b8060005b83811015612ee3578151612eca8782612e40565b9650612ed5836138a2565b925050600181019050612eb6565b505050505050565b6000612ef682613876565b612f0081856138d4565b935083602082028501612f1285613857565b8060005b85811015612f4e5784840389528151612f2f8582612e59565b9450612f3a836138af565b925060208a01995050600181019050612f16565b50829750879550505050505092915050565b612f6981613881565b612f7381846138df565b9250612f7e82613861565b8060005b83811015612faf578151612f968782612e6d565b9650612fa1836138bc565b925050600181019050612f82565b505050505050565b612fc0816139f5565b82525050565b6000612fd18261388c565b612fdb81856138ea565b9350612feb818560208601613a73565b612ff481613c3f565b840191505092915050565b600061300a82613897565b61301481856138fb565b9350613024818560208601613a73565b61302d81613c3f565b840191505092915050565b600061304382613897565b61304d818561390c565b935061305d818560208601613a73565b61306681613c3f565b840191505092915050565b600061307c82613897565b613086818561391d565b9350613096818560208601613a73565b80840191505092915050565b60006130af602d8361390c565b91506130ba82613c50565b604082019050919050565b60006130d2602b8361390c565b91506130dd82613c9f565b604082019050919050565b60006130f560328361390c565b915061310082613cee565b604082019050919050565b600061311860268361390c565b915061312382613d3d565b604082019050919050565b600061313b601c8361390c565b915061314682613d8c565b602082019050919050565b600061315e60248361390c565b915061316982613db5565b604082019050919050565b600061318160198361390c565b915061318c82613e04565b602082019050919050565b60006131a4602c8361390c565b91506131af82613e2d565b604082019050919050565b60006131c760388361390c565b91506131d282613e7c565b604082019050919050565b60006131ea602a8361390c565b91506131f582613ecb565b604082019050919050565b600061320d60298361390c565b915061321882613f1a565b604082019050919050565b600061323060208361390c565b915061323b82613f69565b602082019050919050565b6000613253602c8361390c565b915061325e82613f92565b604082019050919050565b600061327660208361390c565b915061328182613fe1565b602082019050919050565b600061329960298361390c565b91506132a48261400a565b604082019050919050565b60006132bc602f8361390c565b91506132c782614059565b604082019050919050565b60006132df60218361390c565b91506132ea826140a8565b604082019050919050565b600061330260318361390c565b915061330d826140f7565b604082019050919050565b600061332560278361390c565b915061333082614146565b604082019050919050565b6000613348602c8361390c565b915061335382614195565b604082019050919050565b600061336b603b8361390c565b9150613376826141e4565b604082019050919050565b61338a81613a4d565b82525050565b61339981613a57565b82525050565b60006133ab8285613071565b91506133b78284613071565b91508190509392505050565b60006020820190506133d86000830184612e85565b92915050565b60006080820190506133f36000830187612e85565b6134006020830186612e85565b61340d6040830185613381565b818103606083015261341f8184612fc6565b905095945050505050565b6000612020820190506134406000830185612e94565b8181036120008301526134538184612eeb565b90509392505050565b60006020820190506134716000830184612fb7565b92915050565b600060208201905081810360008301526134918184613038565b905092915050565b600060208201905081810360008301526134b2816130a2565b9050919050565b600060208201905081810360008301526134d2816130c5565b9050919050565b600060208201905081810360008301526134f2816130e8565b9050919050565b600060208201905081810360008301526135128161310b565b9050919050565b600060208201905081810360008301526135328161312e565b9050919050565b6000602082019050818103600083015261355281613151565b9050919050565b6000602082019050818103600083015261357281613174565b9050919050565b6000602082019050818103600083015261359281613197565b9050919050565b600060208201905081810360008301526135b2816131ba565b9050919050565b600060208201905081810360008301526135d2816131dd565b9050919050565b600060208201905081810360008301526135f281613200565b9050919050565b6000602082019050818103600083015261361281613223565b9050919050565b6000602082019050818103600083015261363281613246565b9050919050565b6000602082019050818103600083015261365281613269565b9050919050565b600060208201905081810360008301526136728161328c565b9050919050565b60006020820190508181036000830152613692816132af565b9050919050565b600060208201905081810360008301526136b2816132d2565b9050919050565b600060208201905081810360008301526136d2816132f5565b9050919050565b600060208201905081810360008301526136f281613318565b9050919050565b600060208201905081810360008301526137128161333b565b9050919050565b600060208201905081810360008301526137328161335e565b9050919050565b600060208201905061374e6000830184613381565b92915050565b600061375e61376f565b905061376a8282613ad8565b919050565b6000604051905090565b600067ffffffffffffffff82111561379457613793613c10565b5b602082029050919050565b600067ffffffffffffffff8211156137ba576137b9613c10565b5b602082029050919050565b600067ffffffffffffffff8211156137e0576137df613c10565b5b602082029050919050565b600067ffffffffffffffff82111561380657613805613c10565b5b61380f82613c3f565b9050602081019050919050565b600067ffffffffffffffff82111561383757613836613c10565b5b61384082613c3f565b9050602081019050919050565b6000819050919050565b6000819050919050565b6000819050919050565b600060109050919050565b600060059050919050565b600060109050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b600081905092915050565b600081905092915050565b600081905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061393382613a4d565b915061393e83613a4d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561397357613972613b83565b5b828201905092915050565b600061398982613a4d565b915061399483613a4d565b9250826139a4576139a3613bb2565b5b828204905092915050565b60006139ba82613a4d565b91506139c583613a4d565b9250828210156139d8576139d7613b83565b5b828203905092915050565b60006139ee82613a2d565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015613a91578082015181840152602081019050613a76565b83811115613aa0576000848401525b50505050565b60006002820490506001821680613abe57607f821691505b60208210811415613ad257613ad1613be1565b5b50919050565b613ae182613c3f565b810181811067ffffffffffffffff82111715613b0057613aff613c10565b5b80604052505050565b6000613b1482613a4d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613b4757613b46613b83565b5b600182019050919050565b6000613b5d82613a4d565b9150613b6883613a4d565b925082613b7857613b77613bb2565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f506978656c4176613a207468697320746f6b656e20696420697320796f75722060008201527f6d61696e20746f6b656e20696400000000000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f506978656c4176613a206f6e6c79206f776e65722063616e206e616d6520746860008201527f6520746f6b656e00000000000000000000000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f506978656c4176613a206f6e6c79206f776e65722063616e207365742074686960008201527f7320746f6b656e20746f207468656972206d61696e20746f6b656e0000000000602082015250565b61423c816139e3565b811461424757600080fd5b50565b614253816139f5565b811461425e57600080fd5b50565b61426a81613a01565b811461427557600080fd5b50565b61428181613a4d565b811461428c57600080fd5b50565b61429881613a57565b81146142a357600080fd5b5056fea2646970667358221220d91161cbf4914bfddb96e6c96cd23786f032824179fb1254fa870efbda17e74264736f6c634300080400330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003168747470733a2f2f6d6f636b2d736572766963652e706978656c6176612e73706163652f6170692f6d657461646174612f000000000000000000000000000000
Deployed ByteCode
0x608060405234801561001057600080fd5b50600436106101735760003560e01c806370a08231116100de578063c87b56dd11610097578063e725f87711610071578063e725f87714610448578063e985e9c514610478578063f2fde38b146104a8578063f61d4895146104c457610173565b8063c87b56dd146103e0578063cdb0e89e14610410578063ce10e81d1461042c57610173565b806370a0823114610332578063715018a6146103625780638da5cb5b1461036c57806395d89b411461038a578063a22cb465146103a8578063b88d4fde146103c457610173565b806323b872dd1161013057806323b872dd1461024e5780632f745c591461026a57806342842e0e1461029a5780634f6ccce7146102b657806355f804b3146102e65780636352211e1461030257610173565b806301ffc9a71461017857806306fdde03146101a8578063081812fc146101c65780630892a263146101f6578063095ea7b31461021457806318160ddd14610230575b600080fd5b610192600480360381019061018d9190612d30565b6104e0565b60405161019f919061345c565b60405180910390f35b6101b061055a565b6040516101bd9190613477565b60405180910390f35b6101e060048036038101906101db9190612dc3565b6105ec565b6040516101ed91906133c3565b60405180910390f35b6101fe610671565b60405161020b9190613739565b60405180910390f35b61022e60048036038101906102299190612c9e565b6106bf565b005b6102386107d7565b6040516102459190613739565b60405180910390f35b61026860048036038101906102639190612b98565b6107e4565b005b610284600480360381019061027f9190612c9e565b610844565b6040516102919190613739565b60405180910390f35b6102b460048036038101906102af9190612b98565b6108e9565b005b6102d060048036038101906102cb9190612dc3565b610909565b6040516102dd9190613739565b60405180910390f35b61030060048036038101906102fb9190612d82565b6109a0565b005b61031c60048036038101906103179190612dc3565b610a36565b60405161032991906133c3565b60405180910390f35b61034c60048036038101906103479190612b33565b610ae8565b6040516103599190613739565b60405180910390f35b61036a610ba0565b005b610374610c28565b60405161038191906133c3565b60405180910390f35b610392610c52565b60405161039f9190613477565b60405180910390f35b6103c260048036038101906103bd9190612c62565b610ce4565b005b6103de60048036038101906103d99190612be7565b610cfa565b005b6103fa60048036038101906103f59190612dc3565b610d5c565b6040516104079190613477565b60405180910390f35b61042a60048036038101906104259190612dec565b610e03565b005b61044660048036038101906104419190612dc3565b610edc565b005b610462600480360381019061045d9190612dc3565b61107e565b60405161046f9190613477565b60405180910390f35b610492600480360381019061048d9190612b5c565b61116b565b60405161049f919061345c565b60405180910390f35b6104c260048036038101906104bd9190612b33565b6111ff565b005b6104de60048036038101906104d99190612cda565b6112f7565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806105535750610552826113db565b5b9050919050565b60606000805461056990613aa6565b80601f016020809104026020016040519081016040528092919081815260200182805461059590613aa6565b80156105e25780601f106105b7576101008083540402835291602001916105e2565b820191906000526020600020905b8154815290600101906020018083116105c557829003601f168201915b5050505050905090565b60006105f7826114bd565b610636576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161062d90613619565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600c600061067f611529565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905090565b60006106ca82610a36565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561073b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161073290613699565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661075a611529565b73ffffffffffffffffffffffffffffffffffffffff161480610789575061078881610783611529565b61116b565b5b6107c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107bf90613599565b60405180910390fd5b6107d28383611531565b505050565b6000600880549050905090565b6107f56107ef611529565b826115ea565b610834576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082b906136b9565b60405180910390fd5b61083f8383836116c8565b505050565b600061084f83610ae8565b8210610890576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610887906134b9565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b61090483838360405180602001604052806000815250610cfa565b505050565b60006109136107d7565b8210610954576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094b906136f9565b60405180910390fd5b6008828154811061098e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6109a8611529565b73ffffffffffffffffffffffffffffffffffffffff166109c6610c28565b73ffffffffffffffffffffffffffffffffffffffff1614610a1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1390613639565b60405180910390fd5b80600b9080519060200190610a32929190612788565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610adf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad6906135d9565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610b59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b50906135b9565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610ba8611529565b73ffffffffffffffffffffffffffffffffffffffff16610bc6610c28565b73ffffffffffffffffffffffffffffffffffffffff1614610c1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1390613639565b60405180910390fd5b610c266000611924565b565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054610c6190613aa6565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8d90613aa6565b8015610cda5780601f10610caf57610100808354040283529160200191610cda565b820191906000526020600020905b815481529060010190602001808311610cbd57829003601f168201915b5050505050905090565b610cf6610cef611529565b83836119ea565b5050565b610d0b610d05611529565b836115ea565b610d4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d41906136b9565b60405180910390fd5b610d5684848484611b57565b50505050565b6060610d67826114bd565b610da6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9d90613679565b60405180910390fd5b6000610db0611bb3565b90506000815111610dd05760405180602001604052806000815250610dfb565b80610dda84611c45565b604051602001610deb92919061339f565b6040516020818303038152906040525b915050919050565b610e0c826114bd565b610e4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4290613579565b60405180910390fd5b6000610e5683610a36565b90508073ffffffffffffffffffffffffffffffffffffffff16610e77611529565b73ffffffffffffffffffffffffffffffffffffffff1614610ecd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec4906136d9565b60405180910390fd5b610ed78383611df2565b505050565b610ee5816114bd565b610f24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1b90613579565b60405180910390fd5b6000610f2f82610a36565b90508073ffffffffffffffffffffffffffffffffffffffff16610f50611529565b73ffffffffffffffffffffffffffffffffffffffff1614610fa6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9d90613719565b60405180910390fd5b600c6000610fb2611529565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482141561102f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102690613499565b60405180910390fd5b81600c600061103c611529565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b6060611089826114bd565b6110c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110bf90613579565b60405180910390fd5b600e600083815260200190815260200160002080546110e690613aa6565b80601f016020809104026020016040519081016040528092919081815260200182805461111290613aa6565b801561115f5780601f106111345761010080835404028352916020019161115f565b820191906000526020600020905b81548152906001019060200180831161114257829003601f168201915b50505050509050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611207611529565b73ffffffffffffffffffffffffffffffffffffffff16611225610c28565b73ffffffffffffffffffffffffffffffffffffffff161461127b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127290613639565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156112eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e2906134f9565b60405180910390fd5b6112f481611924565b50565b6112ff611529565b73ffffffffffffffffffffffffffffffffffffffff1661131d610c28565b73ffffffffffffffffffffffffffffffffffffffff1614611373576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136a90613639565b60405180910390fd5b61137d600d611e56565b6000611389600d611e6c565b905061139c611396611529565b82611e7a565b807f5c909aab679ba0f1c7b67d3dfb34dd9a7527935f4766a96eea7906426a6349a884846040516113ce92919061342a565b60405180910390a2505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806114a657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806114b657506114b582612048565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166115a483610a36565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006115f5826114bd565b611634576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162b90613579565b60405180910390fd5b600061163f83610a36565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806116ae57508373ffffffffffffffffffffffffffffffffffffffff16611696846105ec565b73ffffffffffffffffffffffffffffffffffffffff16145b806116bf57506116be818561116b565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166116e882610a36565b73ffffffffffffffffffffffffffffffffffffffff161461173e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173590613659565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156117ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a590613539565b60405180910390fd5b6117b98383836120b2565b6117c4600082611531565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461181491906139af565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461186b9190613928565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611a59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5090613559565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b4a919061345c565b60405180910390a3505050565b611b628484846116c8565b611b6e8484848461214d565b611bad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba4906134d9565b60405180910390fd5b50505050565b6060600b8054611bc290613aa6565b80601f0160208091040260200160405190810160405280929190818152602001828054611bee90613aa6565b8015611c3b5780601f10611c1057610100808354040283529160200191611c3b565b820191906000526020600020905b815481529060010190602001808311611c1e57829003601f168201915b5050505050905090565b60606000821415611c8d576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611ded565b600082905060005b60008214611cbf578080611ca890613b09565b915050600a82611cb8919061397e565b9150611c95565b60008167ffffffffffffffff811115611d01577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611d335781602001600182028036833780820191505090505b5090505b60008514611de657600182611d4c91906139af565b9150600a85611d5b9190613b52565b6030611d679190613928565b60f81b818381518110611da3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611ddf919061397e565b9450611d37565b8093505050505b919050565b80600e60008481526020019081526020016000209080519060200190611e19929190612788565b50817f824d030cbc47ef68adced218831ff38c52d28704475e9f908c8a7d4344040c2f82604051611e4a9190613477565b60405180910390a25050565b6001816000016000828254019250508190555050565b600081600001549050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611eea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee1906135f9565b60405180910390fd5b611ef3816114bd565b15611f33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2a90613519565b60405180910390fd5b611f3f600083836120b2565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f8f9190613928565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6120bd8383836122e4565b600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481141561214857600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600090555b505050565b600061216e8473ffffffffffffffffffffffffffffffffffffffff166123f8565b156122d7578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612197611529565b8786866040518563ffffffff1660e01b81526004016121b994939291906133de565b602060405180830381600087803b1580156121d357600080fd5b505af192505050801561220457506040513d601f19601f820116820180604052508101906122019190612d59565b60015b612287573d8060008114612234576040519150601f19603f3d011682016040523d82523d6000602084013e612239565b606091505b5060008151141561227f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612276906134d9565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506122dc565b600190505b949350505050565b6122ef83838361240b565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156123325761232d81612410565b612371565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146123705761236f8382612459565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156123b4576123af816125c6565b6123f3565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146123f2576123f18282612709565b5b5b505050565b600080823b905060008111915050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161246684610ae8565b61247091906139af565b9050600060076000848152602001908152602001600020549050818114612555576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506125da91906139af565b9050600060096000848152602001908152602001600020549050600060088381548110612630577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060088381548110612678577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806126ed577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061271483610ae8565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b82805461279490613aa6565b90600052602060002090601f0160209004810192826127b657600085556127fd565b82601f106127cf57805160ff19168380011785556127fd565b828001600101855582156127fd579182015b828111156127fc5782518255916020019190600101906127e1565b5b50905061280a919061280e565b5090565b5b8082111561282757600081600090555060010161280f565b5090565b600061283e61283984613779565b613754565b905080828561020086028201111561285557600080fd5b60005b85811015612886578161286b8882612a4f565b84526020840193506102008301925050600181019050612858565b5050509392505050565b60006128a361289e8461379f565b613754565b905080828560208602820111156128b957600080fd5b60005b8581101561290357813567ffffffffffffffff8111156128db57600080fd5b8086016128e88982612adf565b855260208501945060208401935050506001810190506128bc565b5050509392505050565b600061292061291b846137c5565b613754565b9050808285602086028201111561293657600080fd5b60005b85811015612966578161294c8882612b1e565b845260208401935060208301925050600181019050612939565b5050509392505050565b600061298361297e846137eb565b613754565b90508281526020810184848401111561299b57600080fd5b6129a6848285613a64565b509392505050565b60006129c16129bc8461381c565b613754565b9050828152602081018484840111156129d957600080fd5b6129e4848285613a64565b509392505050565b6000813590506129fb81614233565b92915050565b600082601f830112612a1257600080fd5b6010612a1f84828561282b565b91505092915050565b600082601f830112612a3957600080fd5b6005612a46848285612890565b91505092915050565b600082601f830112612a6057600080fd5b6010612a6d84828561290d565b91505092915050565b600081359050612a858161424a565b92915050565b600081359050612a9a81614261565b92915050565b600081519050612aaf81614261565b92915050565b600082601f830112612ac657600080fd5b8135612ad6848260208601612970565b91505092915050565b600082601f830112612af057600080fd5b8135612b008482602086016129ae565b91505092915050565b600081359050612b1881614278565b92915050565b600081359050612b2d8161428f565b92915050565b600060208284031215612b4557600080fd5b6000612b53848285016129ec565b91505092915050565b60008060408385031215612b6f57600080fd5b6000612b7d858286016129ec565b9250506020612b8e858286016129ec565b9150509250929050565b600080600060608486031215612bad57600080fd5b6000612bbb868287016129ec565b9350506020612bcc868287016129ec565b9250506040612bdd86828701612b09565b9150509250925092565b60008060008060808587031215612bfd57600080fd5b6000612c0b878288016129ec565b9450506020612c1c878288016129ec565b9350506040612c2d87828801612b09565b925050606085013567ffffffffffffffff811115612c4a57600080fd5b612c5687828801612ab5565b91505092959194509250565b60008060408385031215612c7557600080fd5b6000612c83858286016129ec565b9250506020612c9485828601612a76565b9150509250929050565b60008060408385031215612cb157600080fd5b6000612cbf858286016129ec565b9250506020612cd085828601612b09565b9150509250929050565b6000806120208385031215612cee57600080fd5b6000612cfc85828601612a01565b92505061200083013567ffffffffffffffff811115612d1a57600080fd5b612d2685828601612a28565b9150509250929050565b600060208284031215612d4257600080fd5b6000612d5084828501612a8b565b91505092915050565b600060208284031215612d6b57600080fd5b6000612d7984828501612aa0565b91505092915050565b600060208284031215612d9457600080fd5b600082013567ffffffffffffffff811115612dae57600080fd5b612dba84828501612adf565b91505092915050565b600060208284031215612dd557600080fd5b6000612de384828501612b09565b91505092915050565b60008060408385031215612dff57600080fd5b6000612e0d85828601612b09565b925050602083013567ffffffffffffffff811115612e2a57600080fd5b612e3685828601612adf565b9150509250929050565b6000612e4c8383612f60565b6102008301905092915050565b6000612e658383612fff565b905092915050565b6000612e798383613390565b60208301905092915050565b612e8e816139e3565b82525050565b612e9d8161386b565b612ea781846138c9565b9250612eb28261384d565b8060005b83811015612ee3578151612eca8782612e40565b9650612ed5836138a2565b925050600181019050612eb6565b505050505050565b6000612ef682613876565b612f0081856138d4565b935083602082028501612f1285613857565b8060005b85811015612f4e5784840389528151612f2f8582612e59565b9450612f3a836138af565b925060208a01995050600181019050612f16565b50829750879550505050505092915050565b612f6981613881565b612f7381846138df565b9250612f7e82613861565b8060005b83811015612faf578151612f968782612e6d565b9650612fa1836138bc565b925050600181019050612f82565b505050505050565b612fc0816139f5565b82525050565b6000612fd18261388c565b612fdb81856138ea565b9350612feb818560208601613a73565b612ff481613c3f565b840191505092915050565b600061300a82613897565b61301481856138fb565b9350613024818560208601613a73565b61302d81613c3f565b840191505092915050565b600061304382613897565b61304d818561390c565b935061305d818560208601613a73565b61306681613c3f565b840191505092915050565b600061307c82613897565b613086818561391d565b9350613096818560208601613a73565b80840191505092915050565b60006130af602d8361390c565b91506130ba82613c50565b604082019050919050565b60006130d2602b8361390c565b91506130dd82613c9f565b604082019050919050565b60006130f560328361390c565b915061310082613cee565b604082019050919050565b600061311860268361390c565b915061312382613d3d565b604082019050919050565b600061313b601c8361390c565b915061314682613d8c565b602082019050919050565b600061315e60248361390c565b915061316982613db5565b604082019050919050565b600061318160198361390c565b915061318c82613e04565b602082019050919050565b60006131a4602c8361390c565b91506131af82613e2d565b604082019050919050565b60006131c760388361390c565b91506131d282613e7c565b604082019050919050565b60006131ea602a8361390c565b91506131f582613ecb565b604082019050919050565b600061320d60298361390c565b915061321882613f1a565b604082019050919050565b600061323060208361390c565b915061323b82613f69565b602082019050919050565b6000613253602c8361390c565b915061325e82613f92565b604082019050919050565b600061327660208361390c565b915061328182613fe1565b602082019050919050565b600061329960298361390c565b91506132a48261400a565b604082019050919050565b60006132bc602f8361390c565b91506132c782614059565b604082019050919050565b60006132df60218361390c565b91506132ea826140a8565b604082019050919050565b600061330260318361390c565b915061330d826140f7565b604082019050919050565b600061332560278361390c565b915061333082614146565b604082019050919050565b6000613348602c8361390c565b915061335382614195565b604082019050919050565b600061336b603b8361390c565b9150613376826141e4565b604082019050919050565b61338a81613a4d565b82525050565b61339981613a57565b82525050565b60006133ab8285613071565b91506133b78284613071565b91508190509392505050565b60006020820190506133d86000830184612e85565b92915050565b60006080820190506133f36000830187612e85565b6134006020830186612e85565b61340d6040830185613381565b818103606083015261341f8184612fc6565b905095945050505050565b6000612020820190506134406000830185612e94565b8181036120008301526134538184612eeb565b90509392505050565b60006020820190506134716000830184612fb7565b92915050565b600060208201905081810360008301526134918184613038565b905092915050565b600060208201905081810360008301526134b2816130a2565b9050919050565b600060208201905081810360008301526134d2816130c5565b9050919050565b600060208201905081810360008301526134f2816130e8565b9050919050565b600060208201905081810360008301526135128161310b565b9050919050565b600060208201905081810360008301526135328161312e565b9050919050565b6000602082019050818103600083015261355281613151565b9050919050565b6000602082019050818103600083015261357281613174565b9050919050565b6000602082019050818103600083015261359281613197565b9050919050565b600060208201905081810360008301526135b2816131ba565b9050919050565b600060208201905081810360008301526135d2816131dd565b9050919050565b600060208201905081810360008301526135f281613200565b9050919050565b6000602082019050818103600083015261361281613223565b9050919050565b6000602082019050818103600083015261363281613246565b9050919050565b6000602082019050818103600083015261365281613269565b9050919050565b600060208201905081810360008301526136728161328c565b9050919050565b60006020820190508181036000830152613692816132af565b9050919050565b600060208201905081810360008301526136b2816132d2565b9050919050565b600060208201905081810360008301526136d2816132f5565b9050919050565b600060208201905081810360008301526136f281613318565b9050919050565b600060208201905081810360008301526137128161333b565b9050919050565b600060208201905081810360008301526137328161335e565b9050919050565b600060208201905061374e6000830184613381565b92915050565b600061375e61376f565b905061376a8282613ad8565b919050565b6000604051905090565b600067ffffffffffffffff82111561379457613793613c10565b5b602082029050919050565b600067ffffffffffffffff8211156137ba576137b9613c10565b5b602082029050919050565b600067ffffffffffffffff8211156137e0576137df613c10565b5b602082029050919050565b600067ffffffffffffffff82111561380657613805613c10565b5b61380f82613c3f565b9050602081019050919050565b600067ffffffffffffffff82111561383757613836613c10565b5b61384082613c3f565b9050602081019050919050565b6000819050919050565b6000819050919050565b6000819050919050565b600060109050919050565b600060059050919050565b600060109050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b600081905092915050565b600081905092915050565b600081905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061393382613a4d565b915061393e83613a4d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561397357613972613b83565b5b828201905092915050565b600061398982613a4d565b915061399483613a4d565b9250826139a4576139a3613bb2565b5b828204905092915050565b60006139ba82613a4d565b91506139c583613a4d565b9250828210156139d8576139d7613b83565b5b828203905092915050565b60006139ee82613a2d565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015613a91578082015181840152602081019050613a76565b83811115613aa0576000848401525b50505050565b60006002820490506001821680613abe57607f821691505b60208210811415613ad257613ad1613be1565b5b50919050565b613ae182613c3f565b810181811067ffffffffffffffff82111715613b0057613aff613c10565b5b80604052505050565b6000613b1482613a4d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613b4757613b46613b83565b5b600182019050919050565b6000613b5d82613a4d565b9150613b6883613a4d565b925082613b7857613b77613bb2565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f506978656c4176613a207468697320746f6b656e20696420697320796f75722060008201527f6d61696e20746f6b656e20696400000000000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f506978656c4176613a206f6e6c79206f776e65722063616e206e616d6520746860008201527f6520746f6b656e00000000000000000000000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f506978656c4176613a206f6e6c79206f776e65722063616e207365742074686960008201527f7320746f6b656e20746f207468656972206d61696e20746f6b656e0000000000602082015250565b61423c816139e3565b811461424757600080fd5b50565b614253816139f5565b811461425e57600080fd5b50565b61426a81613a01565b811461427557600080fd5b50565b61428181613a4d565b811461428c57600080fd5b50565b61429881613a57565b81146142a357600080fd5b5056fea2646970667358221220d91161cbf4914bfddb96e6c96cd23786f032824179fb1254fa870efbda17e74264736f6c63430008040033