ETH Price: $2,628.31 (+1.82%)

Token

OxCRYPTOPUNKS (OxϾ)
 

Overview

Max Total Supply

23 OxϾ

Holders

7

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
tokenowner.eth
Balance
6 OxϾ
0x18badf36ec74dae9d3f028805b58c8ca27775268
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
OxCryptoPunksBlackMarket

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : OxCryptoPunksBlackMarket.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

/// @title: OxCryptoPunks™
/// @author: Takuhatsu

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";

/****************************************************
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░████████████░░██░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░██████████████████░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░████████████████████████░░░░░░░░░░░░ *
 * ░░░░░░░░░░████████████████████████░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░██████████████░░██████░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░██████░░██░░░░██░░░░██████░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░████░░░░░░██░░░░░░██░░░░▒▒░░░░░░░░ *
 * ░░░░░░░░░░░░░░██░░░░░░░░░░░░░░░░██░░░░▒▒░░░░░░░░ *
 * ░░░░░░░░░░░░██░░░░▓▓▓▓░░░░░░▓▓▓▓██░░░░▒▒░░░░░░░░ *
 * ░░░░░░░░░░░░██░░░░██▒▒░░░░░░██▒▒██░░░░▒▒░░░░░░░░ *
 * ░░░░░░░░░░░░████░░░░░░░░░░░░░░░░██░░░░▒▒░░░░░░░░ *
 * ░░░░░░░░░░░░░░██░░░░░░░░░░░░░░░░██░░░░▒▒░░░░░░░░ *
 * ░░░░░░░░░░░░░░██░░░░░░░░██░░░░░░██░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░██░░░░░░░░░░░░████████████░░░░░░░░ *
 * ░░░░░░░░░░░░░░██░░░░░░██████░░░░░░░░░░▓▓██░░░░░░ *
 * ░░░░░░░░░░░░░░░░██░░░░░░░░░░████████████░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░██░░██░░░░░░██░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░██░░░░██████░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░██░░░░░░██░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░██░░░░░░██░░░░░░░░░░░░░░░░░░░░░░ *
 *                              OxCryptoPunks™ 2023 *
 ****************************************************/

// OxCryptoPunks™ is a programming experiment which combines two ways of storing NFT data:
// IPFS files and on-chain image bytes with accessories stored as array

contract OxCryptoPunksBlackMarket is ERC721, ERC721Enumerable, Ownable {
    // You can use this hash to verify the image file containing all the oxpunks
    string public imageHash =
        "b682ed0cd8072dd7b38bd85f0f301970c0fa3f595fdb9256bf14d6cc0686f438";

    string internal nftName = "OxCRYPTOPUNKS";
    string internal nftSymbol = unicode"OxϾ";

    string _baseTokenURI;

    uint16 public constant totalPunks = 10000;
    uint16 private punkAttributesCount;
    uint128 public constant punkPrice = 5000000000000000; // 0.005 ether

    using Counters for Counters.Counter;
    Counters.Counter private _tokenIdCounter;
    using Strings for uint256;
    using SafeMath for uint256;

    constructor() ERC721(nftName, nftSymbol) {}

    function _baseURI() internal view virtual override returns (string memory) {
        return _baseTokenURI;
    }

    function setBaseURI(string memory baseURI) public onlyOwner {
        _baseTokenURI = baseURI;
    }

    function getPunkDev(address to, uint16 numPunks) public onlyOwner {
        require(
            numPunks <= 20,
            "You can mint 20 punks max, in each transaction"
        ); // Limit to mint 50 punks per transaction
        require(
            totalSupply().add(numPunks) < totalPunks,
            "All punks are minted"
        );
        for (uint16 i = 0; i < numPunks; i++) {
            uint256 tokenId = _tokenIdCounter.current();
            _tokenIdCounter.increment();
            _safeMint(to, tokenId);
        }
    }

    function getPunk(uint16 numPunks) public payable {
        require(
            numPunks <= 20,
            "You can mint 20 punks max, in each transaction"
        );
        require(msg.value == numPunks * punkPrice, "Incorrect amount of funds");
        require(
            totalSupply().add(numPunks) <= totalPunks,
            "All punks are minted"
        );
        for (uint16 i = 0; i < numPunks; i++) {
            uint256 tokenId = _tokenIdCounter.current();
            _tokenIdCounter.increment();
            _safeMint(msg.sender, tokenId);
        }
    }

    function punksRemained() public view returns (uint256) {
        uint256 punksMinted = totalSupply();
        uint256 _punksRemained = uint256(totalPunks).sub(punksMinted);
        if (punksMinted == 0) {
            return totalPunks;
        } else {
            return _punksRemained;
        }
    }

    function withdraw() public onlyOwner {
        uint256 balance = address(this).balance;
        require(balance > 0, "No balance to withdraw");
        payable(owner()).transfer(balance);
    }

    // OxCryptoPunks on-chain implementation inspired by "CryptoPunks: Data" by Larva Labs
    // https://etherscan.io/address/0x16f5a35647d6f03d5d3da7b35409d65ba03af3b2

    string internal constant SVG_HEADER =
        'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.2" viewBox="0 0 24 24">';
    string internal constant SVG_FOOTER = "</svg>";

    bytes[] private punkImageBytesVault; // Storage for storing each punk's image byte data
    mapping(uint256 => uint8[]) private punkAttributesVault; // Storage for storing each punk's attributes
    string[] private punkAttributesList; // Storage for the list of all available attributes

    bool private contractSealed;

    // Seal the contract once punkImageBytesVault and punkAttributesVault are populated
    modifier unsealed() {
        require(!contractSealed, "Contract sealed");
        _;
    }

    // Check if user owns a particular punk
    modifier onlyPunkOwner(uint16 index) {
        require(
            ownerOf(index) == msg.sender,
            "Only the owner of the given punk is allowed to run this function"
        );
        _;
    }

    function addPunkAttributesList(
        string[] memory input
    ) external onlyOwner unsealed {
        for (uint256 i = 0; i < input.length; i++) {
            punkAttributesList.push(input[i]);
        }
    }

    // Emergency function which can override punk image data at any index
    function addPunkImageDev(
        uint16 _index,
        bytes memory _data
    ) external onlyOwner unsealed {
        require(_index < totalPunks, "Index out of range"); // Make sure index is within bounds
        if (_index >= punkImageBytesVault.length) {
            // If the index is greater than or equal to the length of the array, we need to add elements to the array
            uint256 elementsToAdd = (_index - punkImageBytesVault.length) + 1;
            for (uint256 i = 0; i < elementsToAdd; i++) {
                punkImageBytesVault.push("");
            }
        }
        punkImageBytesVault[_index] = _data; // Set the data for the given index
    }

    // Emergency function which can override punk attributes data at any index
    function addToPunkAttributesVaultDev(
        uint16[] memory indexes,
        uint8[][] memory attributeIndices
    ) external onlyOwner unsealed {
        require(
            indexes.length == attributeIndices.length,
            "Arrays length mismatch"
        );

        for (uint16 i = 0; i < indexes.length; i++) {
            uint16 index = indexes[i];
            uint8[] memory indices = attributeIndices[i];

            punkAttributesVault[index] = indices;

            if (index >= punkAttributesCount) {
                punkAttributesCount = index + 1;
            }
        }
    }

    function addPunkImage(
        uint16 index,
        bytes memory _data
    ) external onlyPunkOwner(index) unsealed {
        require(index < totalPunks, "Index out of range"); // Make sure index is within bounds
        if (index >= punkImageBytesVault.length) {
            // If the index is greater than or equal to the length of the array, we need to add elements to the array
            uint256 elementsToAdd = (index - punkImageBytesVault.length) + 1;
            for (uint256 i = 0; i < elementsToAdd; i++) {
                punkImageBytesVault.push("");
            }
        }
        punkImageBytesVault[index] = _data; // Set the data for the given index
    }

    function addToPunkAttributesVault(
        uint16 index,
        uint8[] memory attributeIndices
    ) external unsealed onlyPunkOwner(index) {
        require(
            attributeIndices.length > 0,
            "Attribute indices array is empty"
        );

        punkAttributesVault[index] = attributeIndices;

        if (index >= punkAttributesCount) {
            punkAttributesCount = index + 1;
        }
    }

    // Seal the contract once punkImageBytesVault and punkAttributesVault are populated
    function sealContract() external onlyOwner unsealed {
        contractSealed = true;
    }

    // Returns punk image bytes
    function getPunkImage(uint16 _index) public view returns (bytes memory) {
        require(
            _index < punkImageBytesVault.length,
            "OxCryptoPunks: index out of range"
        );
        return punkImageBytesVault[_index];
    }

    // Returns punk image in SVG
    function getPunkImageSvg(
        uint16 index
    ) external view returns (string memory svg) {
        bytes memory pixels = getPunkImage(index);
        svg = string(abi.encodePacked(SVG_HEADER));
        bytes memory buffer = new bytes(8);
        for (uint256 y = 0; y < 24; y++) {
            for (uint256 x = 0; x < 24; x++) {
                uint256 p = (y * 24 + x) * 4;
                if (uint8(pixels[p + 3]) > 0) {
                    for (uint256 i = 0; i < 4; i++) {
                        uint8 value = uint8(pixels[p + i]);
                        buffer[i * 2 + 1] = _HEX_SYMBOLS[value & 0xf];
                        value >>= 4;
                        buffer[i * 2] = _HEX_SYMBOLS[value & 0xf];
                    }
                    svg = string(
                        abi.encodePacked(
                            svg,
                            '<rect x="',
                            toString(x),
                            '" y="',
                            toString(y),
                            '" width="1" height="1" shape-rendering="crispEdges" fill="#',
                            string(buffer),
                            '"/>'
                        )
                    );
                }
            }
        }
        svg = string(abi.encodePacked(svg, SVG_FOOTER));
    }

    function getPunkAttributes(
        uint16 index
    ) external view returns (string memory text) {
        require(index < punkAttributesCount, "Invalid index");

        uint8[] memory attributeIndices = punkAttributesVault[index];
        string memory result;

        for (uint16 i = 0; i < attributeIndices.length; i++) {
            uint8 attributeIndex = attributeIndices[i];
            require(
                attributeIndex < punkAttributesList.length,
                "Invalid attribute index"
            );
            if (i > 0) {
                result = string(
                    abi.encodePacked(
                        result,
                        ", ",
                        punkAttributesList[attributeIndex]
                    )
                );
            } else {
                result = punkAttributesList[attributeIndex];
            }
        }

        require(bytes(result).length > 0, "Attributes not added");

        return result;
    }

    // Helper function to split a string by a delimiter
    function split(
        string memory input,
        string memory delimiter
    ) internal pure returns (string[] memory) {
        bytes memory inputBytes = bytes(input);
        bytes memory delimiterBytes = bytes(delimiter);
        uint16 delimiterCount = 1;

        // Count the number of delimiters in the input string
        for (
            uint16 i = 0;
            i < inputBytes.length - delimiterBytes.length + 1;
            i++
        ) {
            bytes memory currentBytes;
            for (uint16 j = 0; j < delimiterBytes.length; j++) {
                currentBytes = abi.encodePacked(
                    currentBytes,
                    inputBytes[i + j]
                );
            }
            if (keccak256(currentBytes) == keccak256(delimiterBytes)) {
                delimiterCount++;
                i += uint16(delimiterBytes.length) - 1;
            }
        }

        // Split the input string into an array
        string[] memory tokens = new string[](delimiterCount);
        uint16 tokenIndex = 0;
        uint16 start = 0;

        for (
            uint16 i = 0;
            i < inputBytes.length - delimiterBytes.length + 1;
            i++
        ) {
            bytes memory currentBytes;
            for (uint16 j = 0; j < delimiterBytes.length; j++) {
                currentBytes = abi.encodePacked(
                    currentBytes,
                    inputBytes[i + j]
                );
            }
            if (keccak256(currentBytes) == keccak256(delimiterBytes)) {
                tokens[tokenIndex] = substring(input, start, i);
                start = uint16(i) + uint16(delimiterBytes.length);
                tokenIndex++;
                i += uint16(delimiterBytes.length) - 1;
            }
        }

        tokens[tokenIndex] = substring(input, start, uint16(inputBytes.length));
        return tokens;
    }

    // Helper function to get a substring from a string
    function substring(
        string memory str,
        uint16 startIndex,
        uint16 endIndex
    ) internal pure returns (string memory) {
        bytes memory strBytes = bytes(str);
        bytes memory result = new bytes(endIndex - startIndex);
        for (uint16 i = startIndex; i < endIndex; i++) {
            result[i - startIndex] = strBytes[i];
        }
        return string(result);
    }

    // String stuff from https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Strings.sol

    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    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);
    }

    // OVERRIDES

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId,
        uint256 batchSize
    ) internal override(ERC721, ERC721Enumerable) {
        super._beforeTokenTransfer(from, to, tokenId, batchSize);
    }

    function supportsInterface(
        bytes4 interfaceId
    ) public view override(ERC721, ERC721Enumerable) returns (bool) {
        return super.supportsInterface(interfaceId);
    }
}

File 2 of 17 : 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;
    }
}

File 3 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        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);
    }
}

File 4 of 17 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 5 of 17 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (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 See {ERC721-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, firstTokenId, batchSize);

        if (batchSize > 1) {
            // Will only trigger during construction. Batch transferring (minting) is not available afterwards.
            revert("ERC721Enumerable: consecutive transfers not supported");
        }

        uint256 tokenId = firstTokenId;

        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();
    }
}

File 6 of 17 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (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: address zero is not a valid owner");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _ownerOf(tokenId);
        require(owner != address(0), "ERC721: invalid token ID");
        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) {
        _requireMinted(tokenId);

        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 overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual 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 token owner or approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        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: caller is not token owner or 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: caller is not token owner or 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 the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @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 _ownerOf(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) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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, 1);

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId, 1);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId, 1);

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId, 1);
    }

    /**
     * @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 from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId, 1);

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId, 1);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {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 Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @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 {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
     * - When `from` is zero, the tokens will be minted for `to`.
     * - When `to` is zero, ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {}

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {}

    /**
     * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override.
     *
     * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant
     * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such
     * that `ownerOf(tokenId)` is `a`.
     */
    // solhint-disable-next-line func-name-mixedcase
    function __unsafe_increaseBalance(address account, uint256 amount) internal {
        _balances[account] += amount;
    }
}

File 7 of 17 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (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);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 8 of 17 : 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;
    }
}

File 9 of 17 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 10 of 17 : 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;
    }
}

File 11 of 17 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 12 of 17 : 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);
}

File 13 of 17 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 14 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (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`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the 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 have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

File 15 of 17 : 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);
}

File 16 of 17 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 17 of 17 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"string[]","name":"input","type":"string[]"}],"name":"addPunkAttributesList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"index","type":"uint16"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"addPunkImage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_index","type":"uint16"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"addPunkImageDev","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"index","type":"uint16"},{"internalType":"uint8[]","name":"attributeIndices","type":"uint8[]"}],"name":"addToPunkAttributesVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"indexes","type":"uint16[]"},{"internalType":"uint8[][]","name":"attributeIndices","type":"uint8[][]"}],"name":"addToPunkAttributesVaultDev","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"numPunks","type":"uint16"}],"name":"getPunk","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"index","type":"uint16"}],"name":"getPunkAttributes","outputs":[{"internalType":"string","name":"text","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint16","name":"numPunks","type":"uint16"}],"name":"getPunkDev","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_index","type":"uint16"}],"name":"getPunkImage","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"index","type":"uint16"}],"name":"getPunkImageSvg","outputs":[{"internalType":"string","name":"svg","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"imageHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"punkPrice","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"punksRemained","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sealContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalPunks","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526040518060600160405280604081526020016200644a60409139600b9080519060200190620000359291906200032e565b506040518060400160405280600d81526020017f4f7843525950544f50554e4b5300000000000000000000000000000000000000815250600c9080519060200190620000839291906200032e565b506040518060400160405280600481526020017f4f78cfbe00000000000000000000000000000000000000000000000000000000815250600d9080519060200190620000d19291906200032e565b50348015620000df57600080fd5b50600c8054620000ef906200040d565b80601f01602080910402602001604051908101604052809291908181526020018280546200011d906200040d565b80156200016e5780601f1062000142576101008083540402835291602001916200016e565b820191906000526020600020905b8154815290600101906020018083116200015057829003601f168201915b5050505050600d805462000182906200040d565b80601f0160208091040260200160405190810160405280929190818152602001828054620001b0906200040d565b8015620002015780601f10620001d55761010080835404028352916020019162000201565b820191906000526020600020905b815481529060010190602001808311620001e357829003601f168201915b505050505081600090805190602001906200021e9291906200032e565b508060019080519060200190620002379291906200032e565b5050506200025a6200024e6200026060201b60201c565b6200026860201b60201c565b62000443565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200033c906200040d565b90600052602060002090601f016020900481019282620003605760008555620003ac565b82601f106200037b57805160ff1916838001178555620003ac565b82800160010185558215620003ac579182015b82811115620003ab5782518255916020019190600101906200038e565b5b509050620003bb9190620003bf565b5090565b5b80821115620003da576000816000905550600101620003c0565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200042657607f821691505b602082108114156200043d576200043c620003de565b5b50919050565b615ff780620004536000396000f3fe60806040526004361061020f5760003560e01c806367c60fdf11610118578063a22cb465116100a0578063b9a25e391161006f578063b9a25e3914610778578063c87b56dd146107a1578063d9691a2d146107de578063e985e9c51461081b578063f2fde38b146108585761020f565b8063a22cb465146106d0578063a94d7601146106f9578063b3a9a25814610724578063b88d4fde1461074f5761020f565b8063752edbd5116100e7578063752edbd5146105e95780638da5cb5b14610612578063954474eb1461063d57806395d89b41146106685780639c1f473e146106935761020f565b806367c60fdf1461055557806368bd580e1461057e57806370a0823114610595578063715018a6146105d25761020f565b80633250344c1161019b578063471100f11161016a578063471100f11461044a5780634f6ccce71461048757806351605d80146104c457806355f804b3146104ef5780636352211e146105185761020f565b80633250344c146103b85780633ccfd60b146103e157806341db2aa3146103f857806342842e0e146104215761020f565b806318160ddd116101e257806318160ddd146102e257806322a4789a1461030d57806323b872dd1461032957806325d8b417146103525780632f745c591461037b5761020f565b806301ffc9a71461021457806306fdde0314610251578063081812fc1461027c578063095ea7b3146102b9575b600080fd5b34801561022057600080fd5b5061023b60048036038101906102369190613d14565b610881565b6040516102489190613d5c565b60405180910390f35b34801561025d57600080fd5b50610266610893565b6040516102739190613e10565b60405180910390f35b34801561028857600080fd5b506102a3600480360381019061029e9190613e68565b610925565b6040516102b09190613ed6565b60405180910390f35b3480156102c557600080fd5b506102e060048036038101906102db9190613f1d565b61096b565b005b3480156102ee57600080fd5b506102f7610a83565b6040516103049190613f6c565b60405180910390f35b61032760048036038101906103229190613fc1565b610a90565b005b34801561033557600080fd5b50610350600480360381019061034b9190613fee565b610bf5565b005b34801561035e57600080fd5b5061037960048036038101906103749190614176565b610c55565b005b34801561038757600080fd5b506103a2600480360381019061039d9190613f1d565b610dd2565b6040516103af9190613f6c565b60405180910390f35b3480156103c457600080fd5b506103df60048036038101906103da9190614477565b610e77565b005b3480156103ed57600080fd5b506103f6610ff8565b005b34801561040457600080fd5b5061041f600480360381019061041a9190614671565b611099565b005b34801561042d57600080fd5b5061044860048036038101906104439190613fee565b61116a565b005b34801561045657600080fd5b50610471600480360381019061046c9190613fc1565b61118a565b60405161047e919061470f565b60405180910390f35b34801561049357600080fd5b506104ae60048036038101906104a99190613e68565b611289565b6040516104bb9190613f6c565b60405180910390f35b3480156104d057600080fd5b506104d96112fa565b6040516104e69190613e10565b60405180910390f35b3480156104fb57600080fd5b5061051660048036038101906105119190614731565b611388565b005b34801561052457600080fd5b5061053f600480360381019061053a9190613e68565b6113aa565b60405161054c9190613ed6565b60405180910390f35b34801561056157600080fd5b5061057c6004803603810190610577919061477a565b611431565b005b34801561058a57600080fd5b50610593611534565b005b3480156105a157600080fd5b506105bc60048036038101906105b791906147ba565b6115a9565b6040516105c99190613f6c565b60405180910390f35b3480156105de57600080fd5b506105e7611661565b005b3480156105f557600080fd5b50610610600480360381019061060b91906147e7565b611675565b005b34801561061e57600080fd5b506106276117fe565b6040516106349190613ed6565b60405180910390f35b34801561064957600080fd5b50610652611828565b60405161065f9190613f6c565b60405180910390f35b34801561067457600080fd5b5061067d611874565b60405161068a9190613e10565b60405180910390f35b34801561069f57600080fd5b506106ba60048036038101906106b59190613fc1565b611906565b6040516106c79190613e10565b60405180910390f35b3480156106dc57600080fd5b506106f760048036038101906106f2919061486f565b611c58565b005b34801561070557600080fd5b5061070e611c6e565b60405161071b91906148be565b60405180910390f35b34801561073057600080fd5b50610739611c74565b6040516107469190614904565b60405180910390f35b34801561075b57600080fd5b506107766004803603810190610771919061491f565b611c7f565b005b34801561078457600080fd5b5061079f600480360381019061079a9190614176565b611ce1565b005b3480156107ad57600080fd5b506107c860048036038101906107c39190613e68565b611ed2565b6040516107d59190613e10565b60405180910390f35b3480156107ea57600080fd5b5061080560048036038101906108009190613fc1565b611f3a565b6040516108129190613e10565b60405180910390f35b34801561082757600080fd5b50610842600480360381019061083d91906149a2565b61220b565b60405161084f9190613d5c565b60405180910390f35b34801561086457600080fd5b5061087f600480360381019061087a91906147ba565b61229f565b005b600061088c82612323565b9050919050565b6060600080546108a290614a11565b80601f01602080910402602001604051908101604052809291908181526020018280546108ce90614a11565b801561091b5780601f106108f05761010080835404028352916020019161091b565b820191906000526020600020905b8154815290600101906020018083116108fe57829003601f168201915b5050505050905090565b60006109308261239d565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610976826113aa565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109de90614ab5565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a066123e8565b73ffffffffffffffffffffffffffffffffffffffff161480610a355750610a3481610a2f6123e8565b61220b565b5b610a74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6b90614b47565b60405180910390fd5b610a7e83836123f0565b505050565b6000600880549050905090565b60148161ffff161115610ad8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610acf90614bd9565b60405180910390fd5b6611c37937e080008161ffff16610aef9190614c28565b6fffffffffffffffffffffffffffffffff163414610b42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3990614cbe565b60405180910390fd5b61271061ffff16610b678261ffff16610b59610a83565b6124a990919063ffffffff16565b1115610ba8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9f90614d2a565b60405180910390fd5b60005b8161ffff168161ffff161015610bf1576000610bc760106124bf565b9050610bd360106124cd565b610bdd33826124e3565b508080610be990614d4a565b915050610bab565b5050565b610c06610c006123e8565b82612501565b610c45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3c90614de7565b60405180910390fd5b610c50838383612596565b505050565b610c5d612890565b601460009054906101000a900460ff1615610cad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca490614e53565b60405180910390fd5b61271061ffff168261ffff1610610cf9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf090614ebf565b60405180910390fd5b6011805490508261ffff1610610d9757600060016011805490508461ffff16610d229190614edf565b610d2c9190614f13565b905060005b81811015610d9457601180600181540180825580915050600190039060005260206000200160006040518060200160405280600081525090919091509080519060200190610d80929190613a52565b508080610d8c90614f69565b915050610d31565b50505b8060118361ffff1681548110610db057610daf614fb2565b5b906000526020600020019080519060200190610dcd929190613ad8565b505050565b6000610ddd836115a9565b8210610e1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1590615053565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610e7f612890565b601460009054906101000a900460ff1615610ecf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec690614e53565b60405180910390fd5b8051825114610f13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0a906150bf565b60405180910390fd5b60005b82518161ffff161015610ff3576000838261ffff1681518110610f3c57610f3b614fb2565b5b602002602001015190506000838361ffff1681518110610f5f57610f5e614fb2565b5b6020026020010151905080601260008461ffff1681526020019081526020016000209080519060200190610f94929190613b5e565b50600f60009054906101000a900461ffff1661ffff168261ffff1610610fde57600182610fc191906150df565b600f60006101000a81548161ffff021916908361ffff1602179055505b50508080610feb90614d4a565b915050610f16565b505050565b611000612890565b600047905060008111611048576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103f90615163565b60405180910390fd5b6110506117fe565b73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611095573d6000803e3d6000fd5b5050565b6110a1612890565b601460009054906101000a900460ff16156110f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e890614e53565b60405180910390fd5b60005b815181101561116657601382828151811061111257611111614fb2565b5b6020026020010151908060018154018082558091505060019003906000526020600020016000909190919091509080519060200190611152929190613c05565b50808061115e90614f69565b9150506110f4565b5050565b61118583838360405180602001604052806000815250611c7f565b505050565b60606011805490508261ffff16106111d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ce906151f5565b60405180910390fd5b60118261ffff16815481106111ef576111ee614fb2565b5b90600052602060002001805461120490614a11565b80601f016020809104026020016040519081016040528092919081815260200182805461123090614a11565b801561127d5780601f106112525761010080835404028352916020019161127d565b820191906000526020600020905b81548152906001019060200180831161126057829003601f168201915b50505050509050919050565b6000611293610a83565b82106112d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112cb90615287565b60405180910390fd5b600882815481106112e8576112e7614fb2565b5b90600052602060002001549050919050565b600b805461130790614a11565b80601f016020809104026020016040519081016040528092919081815260200182805461133390614a11565b80156113805780601f1061135557610100808354040283529160200191611380565b820191906000526020600020905b81548152906001019060200180831161136357829003601f168201915b505050505081565b611390612890565b80600e90805190602001906113a6929190613c05565b5050565b6000806113b68361290e565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611428576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141f906152f3565b60405180910390fd5b80915050919050565b611439612890565b60148161ffff161115611481576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147890614bd9565b60405180910390fd5b61271061ffff166114a68261ffff16611498610a83565b6124a990919063ffffffff16565b106114e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114dd90614d2a565b60405180910390fd5b60005b8161ffff168161ffff16101561152f57600061150560106124bf565b905061151160106124cd565b61151b84826124e3565b50808061152790614d4a565b9150506114e9565b505050565b61153c612890565b601460009054906101000a900460ff161561158c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158390614e53565b60405180910390fd5b6001601460006101000a81548160ff021916908315150217905550565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561161a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161190615385565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611669612890565b611673600061294b565b565b601460009054906101000a900460ff16156116c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116bc90614e53565b60405180910390fd5b813373ffffffffffffffffffffffffffffffffffffffff166116ea8261ffff166113aa565b73ffffffffffffffffffffffffffffffffffffffff1614611740576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173790615417565b60405180910390fd5b6000825111611784576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177b90615483565b60405180910390fd5b81601260008561ffff16815260200190815260200160002090805190602001906117af929190613b5e565b50600f60009054906101000a900461ffff1661ffff168361ffff16106117f9576001836117dc91906150df565b600f60006101000a81548161ffff021916908361ffff1602179055505b505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600080611833610a83565b905060006118508261271061ffff16612a1190919063ffffffff16565b9050600082141561186b5761271061ffff1692505050611871565b80925050505b90565b60606001805461188390614a11565b80601f01602080910402602001604051908101604052809291908181526020018280546118af90614a11565b80156118fc5780601f106118d1576101008083540402835291602001916118fc565b820191906000526020600020905b8154815290600101906020018083116118df57829003601f168201915b5050505050905090565b606060006119138361118a565b90506040518060a0016040528060628152602001615f606062913960405160200161193e91906154df565b60405160208183030381529060405291506000600867ffffffffffffffff81111561196c5761196b61404b565b5b6040519080825280601f01601f19166020018201604052801561199e5781602001600182028036833780820191505090505b50905060005b6018811015611bf75760005b6018811015611be35760006004826018856119cb91906154f6565b6119d59190614f13565b6119df91906154f6565b90506000856003836119f19190614f13565b81518110611a0257611a01614fb2565b5b602001015160f81c60f81b60f81c60ff161115611bcf5760005b6004811015611b95576000868284611a349190614f13565b81518110611a4557611a44614fb2565b5b602001015160f81c60f81b60f81c90507f3031323334353637383961626364656600000000000000000000000000000000600f821660ff1660108110611a8e57611a8d614fb2565b5b1a60f81b866001600285611aa291906154f6565b611aac9190614f13565b81518110611abd57611abc614fb2565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060048160ff16901c90507f3031323334353637383961626364656600000000000000000000000000000000600f821660ff1660108110611b2f57611b2e614fb2565b5b1a60f81b86600284611b4191906154f6565b81518110611b5257611b51614fb2565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350508080611b8d90614f69565b915050611a1c565b5085611ba083612a27565b611ba985612a27565b86604051602001611bbd94939291906156a6565b60405160208183030381529060405295505b508080611bdb90614f69565b9150506119b0565b508080611bef90614f69565b9150506119a4565b50826040518060400160405280600681526020017f3c2f7376673e0000000000000000000000000000000000000000000000000000815250604051602001611c40929190615710565b60405160208183030381529060405292505050919050565b611c6a611c636123e8565b8383612b88565b5050565b61271081565b6611c37937e0800081565b611c90611c8a6123e8565b83612501565b611ccf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cc690614de7565b60405180910390fd5b611cdb84848484612cf5565b50505050565b813373ffffffffffffffffffffffffffffffffffffffff16611d068261ffff166113aa565b73ffffffffffffffffffffffffffffffffffffffff1614611d5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5390615417565b60405180910390fd5b601460009054906101000a900460ff1615611dac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da390614e53565b60405180910390fd5b61271061ffff168361ffff1610611df8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611def90614ebf565b60405180910390fd5b6011805490508361ffff1610611e9657600060016011805490508561ffff16611e219190614edf565b611e2b9190614f13565b905060005b81811015611e9357601180600181540180825580915050600190039060005260206000200160006040518060200160405280600081525090919091509080519060200190611e7f929190613a52565b508080611e8b90614f69565b915050611e30565b50505b8160118461ffff1681548110611eaf57611eae614fb2565b5b906000526020600020019080519060200190611ecc929190613ad8565b50505050565b6060611edd8261239d565b6000611ee7612d51565b90506000815111611f075760405180602001604052806000815250611f32565b80611f1184612de3565b604051602001611f22929190615710565b6040516020818303038152906040525b915050919050565b6060600f60009054906101000a900461ffff1661ffff168261ffff1610611f96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f8d90615780565b60405180910390fd5b6000601260008461ffff16815260200190815260200160002080548060200260200160405190810160405280929190818152602001828054801561201f57602002820191906000526020600020906000905b82829054906101000a900460ff1660ff1681526020019060010190602082600001049283019260010382029150808411611fe85790505b50505050509050606060005b82518161ffff1610156121bc576000838261ffff168151811061205157612050614fb2565b5b602002602001015190506013805490508160ff16106120a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209c906157ec565b60405180910390fd5b60008261ffff1611156120fb578260138260ff16815481106120ca576120c9614fb2565b5b906000526020600020016040516020016120e59291906158ec565b60405160208183030381529060405292506121a8565b60138160ff168154811061211257612111614fb2565b5b90600052602060002001805461212790614a11565b80601f016020809104026020016040519081016040528092919081815260200182805461215390614a11565b80156121a05780601f10612175576101008083540402835291602001916121a0565b820191906000526020600020905b81548152906001019060200180831161218357829003601f168201915b505050505092505b5080806121b490614d4a565b91505061202b565b506000815111612201576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121f890615967565b60405180910390fd5b8092505050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6122a7612890565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612317576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161230e906159f9565b60405180910390fd5b6123208161294b565b50565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612396575061239582612ebb565b5b9050919050565b6123a681612f9d565b6123e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123dc906152f3565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612463836113aa565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081836124b79190614f13565b905092915050565b600081600001549050919050565b6001816000016000828254019250508190555050565b6124fd828260405180602001604052806000815250612fde565b5050565b60008061250d836113aa565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061254f575061254e818561220b565b5b8061258d57508373ffffffffffffffffffffffffffffffffffffffff1661257584610925565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166125b6826113aa565b73ffffffffffffffffffffffffffffffffffffffff161461260c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260390615a8b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561267c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161267390615b1d565b60405180910390fd5b6126898383836001613039565b8273ffffffffffffffffffffffffffffffffffffffff166126a9826113aa565b73ffffffffffffffffffffffffffffffffffffffff16146126ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126f690615a8b565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461288b838383600161304b565b505050565b6128986123e8565b73ffffffffffffffffffffffffffffffffffffffff166128b66117fe565b73ffffffffffffffffffffffffffffffffffffffff161461290c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161290390615b89565b60405180910390fd5b565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008183612a1f9190614edf565b905092915050565b60606000821415612a6f576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612b83565b600082905060005b60008214612aa1578080612a8a90614f69565b915050600a82612a9a9190615bd8565b9150612a77565b60008167ffffffffffffffff811115612abd57612abc61404b565b5b6040519080825280601f01601f191660200182016040528015612aef5781602001600182028036833780820191505090505b5090505b60008514612b7c57600182612b089190614edf565b9150600a85612b179190615c09565b6030612b239190614f13565b60f81b818381518110612b3957612b38614fb2565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612b759190615bd8565b9450612af3565b8093505050505b919050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612bf7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bee90615c86565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612ce89190613d5c565b60405180910390a3505050565b612d00848484612596565b612d0c84848484613051565b612d4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d4290615d18565b60405180910390fd5b50505050565b6060600e8054612d6090614a11565b80601f0160208091040260200160405190810160405280929190818152602001828054612d8c90614a11565b8015612dd95780601f10612dae57610100808354040283529160200191612dd9565b820191906000526020600020905b815481529060010190602001808311612dbc57829003601f168201915b5050505050905090565b606060006001612df2846131e8565b01905060008167ffffffffffffffff811115612e1157612e1061404b565b5b6040519080825280601f01601f191660200182016040528015612e435781602001600182028036833780820191505090505b509050600082602001820190505b600115612eb0578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612e9a57612e99615ba9565b5b0494506000851415612eab57612eb0565b612e51565b819350505050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612f8657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612f965750612f958261333b565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff16612fbf8361290e565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b612fe883836133a5565b612ff56000848484613051565b613034576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161302b90615d18565b60405180910390fd5b505050565b613045848484846135c3565b50505050565b50505050565b60006130728473ffffffffffffffffffffffffffffffffffffffff16613723565b156131db578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261309b6123e8565b8786866040518563ffffffff1660e01b81526004016130bd9493929190615d38565b602060405180830381600087803b1580156130d757600080fd5b505af192505050801561310857506040513d601f19601f820116820180604052508101906131059190615d99565b60015b61318b573d8060008114613138576040519150601f19603f3d011682016040523d82523d6000602084013e61313d565b606091505b50600081511415613183576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161317a90615d18565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506131e0565b600190505b949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613246577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161323c5761323b615ba9565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613283576d04ee2d6d415b85acef8100000000838161327957613278615ba9565b5b0492506020810190505b662386f26fc1000083106132b257662386f26fc1000083816132a8576132a7615ba9565b5b0492506010810190505b6305f5e10083106132db576305f5e10083816132d1576132d0615ba9565b5b0492506008810190505b61271083106133005761271083816132f6576132f5615ba9565b5b0492506004810190505b60648310613323576064838161331957613318615ba9565b5b0492506002810190505b600a8310613332576001810190505b80915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613415576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161340c90615e12565b60405180910390fd5b61341e81612f9d565b1561345e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161345590615e7e565b60405180910390fd5b61346c600083836001613039565b61347581612f9d565b156134b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134ac90615e7e565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46135bf60008383600161304b565b5050565b6135cf84848484613746565b6001811115613613576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161360a90615f10565b60405180910390fd5b6000829050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141561365b576136568161374c565b61369a565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614613699576136988582613795565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156136dd576136d881613902565b61371c565b8473ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161461371b5761371a84826139d3565b5b5b5050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b50505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016137a2846115a9565b6137ac9190614edf565b9050600060076000848152602001908152602001600020549050818114613891576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506139169190614edf565b905060006009600084815260200190815260200160002054905060006008838154811061394657613945614fb2565b5b90600052602060002001549050806008838154811061396857613967614fb2565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806139b7576139b6615f30565b5b6001900381819060005260206000200160009055905550505050565b60006139de836115a9565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b828054613a5e90614a11565b90600052602060002090601f016020900481019282613a805760008555613ac7565b82601f10613a9957805160ff1916838001178555613ac7565b82800160010185558215613ac7579182015b82811115613ac6578251825591602001919060010190613aab565b5b509050613ad49190613c8b565b5090565b828054613ae490614a11565b90600052602060002090601f016020900481019282613b065760008555613b4d565b82601f10613b1f57805160ff1916838001178555613b4d565b82800160010185558215613b4d579182015b82811115613b4c578251825591602001919060010190613b31565b5b509050613b5a9190613c8b565b5090565b82805482825590600052602060002090601f01602090048101928215613bf45791602002820160005b83821115613bc557835183826101000a81548160ff021916908360ff1602179055509260200192600101602081600001049283019260010302613b87565b8015613bf25782816101000a81549060ff0219169055600101602081600001049283019260010302613bc5565b505b509050613c019190613c8b565b5090565b828054613c1190614a11565b90600052602060002090601f016020900481019282613c335760008555613c7a565b82601f10613c4c57805160ff1916838001178555613c7a565b82800160010185558215613c7a579182015b82811115613c79578251825591602001919060010190613c5e565b5b509050613c879190613c8b565b5090565b5b80821115613ca4576000816000905550600101613c8c565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613cf181613cbc565b8114613cfc57600080fd5b50565b600081359050613d0e81613ce8565b92915050565b600060208284031215613d2a57613d29613cb2565b5b6000613d3884828501613cff565b91505092915050565b60008115159050919050565b613d5681613d41565b82525050565b6000602082019050613d716000830184613d4d565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613db1578082015181840152602081019050613d96565b83811115613dc0576000848401525b50505050565b6000601f19601f8301169050919050565b6000613de282613d77565b613dec8185613d82565b9350613dfc818560208601613d93565b613e0581613dc6565b840191505092915050565b60006020820190508181036000830152613e2a8184613dd7565b905092915050565b6000819050919050565b613e4581613e32565b8114613e5057600080fd5b50565b600081359050613e6281613e3c565b92915050565b600060208284031215613e7e57613e7d613cb2565b5b6000613e8c84828501613e53565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613ec082613e95565b9050919050565b613ed081613eb5565b82525050565b6000602082019050613eeb6000830184613ec7565b92915050565b613efa81613eb5565b8114613f0557600080fd5b50565b600081359050613f1781613ef1565b92915050565b60008060408385031215613f3457613f33613cb2565b5b6000613f4285828601613f08565b9250506020613f5385828601613e53565b9150509250929050565b613f6681613e32565b82525050565b6000602082019050613f816000830184613f5d565b92915050565b600061ffff82169050919050565b613f9e81613f87565b8114613fa957600080fd5b50565b600081359050613fbb81613f95565b92915050565b600060208284031215613fd757613fd6613cb2565b5b6000613fe584828501613fac565b91505092915050565b60008060006060848603121561400757614006613cb2565b5b600061401586828701613f08565b935050602061402686828701613f08565b925050604061403786828701613e53565b9150509250925092565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61408382613dc6565b810181811067ffffffffffffffff821117156140a2576140a161404b565b5b80604052505050565b60006140b5613ca8565b90506140c1828261407a565b919050565b600067ffffffffffffffff8211156140e1576140e061404b565b5b6140ea82613dc6565b9050602081019050919050565b82818337600083830152505050565b6000614119614114846140c6565b6140ab565b90508281526020810184848401111561413557614134614046565b5b6141408482856140f7565b509392505050565b600082601f83011261415d5761415c614041565b5b813561416d848260208601614106565b91505092915050565b6000806040838503121561418d5761418c613cb2565b5b600061419b85828601613fac565b925050602083013567ffffffffffffffff8111156141bc576141bb613cb7565b5b6141c885828601614148565b9150509250929050565b600067ffffffffffffffff8211156141ed576141ec61404b565b5b602082029050602081019050919050565b600080fd5b6000614216614211846141d2565b6140ab565b90508083825260208201905060208402830185811115614239576142386141fe565b5b835b81811015614262578061424e8882613fac565b84526020840193505060208101905061423b565b5050509392505050565b600082601f83011261428157614280614041565b5b8135614291848260208601614203565b91505092915050565b600067ffffffffffffffff8211156142b5576142b461404b565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156142e1576142e061404b565b5b602082029050602081019050919050565b600060ff82169050919050565b614308816142f2565b811461431357600080fd5b50565b600081359050614325816142ff565b92915050565b600061433e614339846142c6565b6140ab565b90508083825260208201905060208402830185811115614361576143606141fe565b5b835b8181101561438a57806143768882614316565b845260208401935050602081019050614363565b5050509392505050565b600082601f8301126143a9576143a8614041565b5b81356143b984826020860161432b565b91505092915050565b60006143d56143d08461429a565b6140ab565b905080838252602082019050602084028301858111156143f8576143f76141fe565b5b835b8181101561443f57803567ffffffffffffffff81111561441d5761441c614041565b5b80860161442a8982614394565b855260208501945050506020810190506143fa565b5050509392505050565b600082601f83011261445e5761445d614041565b5b813561446e8482602086016143c2565b91505092915050565b6000806040838503121561448e5761448d613cb2565b5b600083013567ffffffffffffffff8111156144ac576144ab613cb7565b5b6144b88582860161426c565b925050602083013567ffffffffffffffff8111156144d9576144d8613cb7565b5b6144e585828601614449565b9150509250929050565b600067ffffffffffffffff82111561450a5761450961404b565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156145365761453561404b565b5b61453f82613dc6565b9050602081019050919050565b600061455f61455a8461451b565b6140ab565b90508281526020810184848401111561457b5761457a614046565b5b6145868482856140f7565b509392505050565b600082601f8301126145a3576145a2614041565b5b81356145b384826020860161454c565b91505092915050565b60006145cf6145ca846144ef565b6140ab565b905080838252602082019050602084028301858111156145f2576145f16141fe565b5b835b8181101561463957803567ffffffffffffffff81111561461757614616614041565b5b808601614624898261458e565b855260208501945050506020810190506145f4565b5050509392505050565b600082601f83011261465857614657614041565b5b81356146688482602086016145bc565b91505092915050565b60006020828403121561468757614686613cb2565b5b600082013567ffffffffffffffff8111156146a5576146a4613cb7565b5b6146b184828501614643565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60006146e1826146ba565b6146eb81856146c5565b93506146fb818560208601613d93565b61470481613dc6565b840191505092915050565b6000602082019050818103600083015261472981846146d6565b905092915050565b60006020828403121561474757614746613cb2565b5b600082013567ffffffffffffffff81111561476557614764613cb7565b5b6147718482850161458e565b91505092915050565b6000806040838503121561479157614790613cb2565b5b600061479f85828601613f08565b92505060206147b085828601613fac565b9150509250929050565b6000602082840312156147d0576147cf613cb2565b5b60006147de84828501613f08565b91505092915050565b600080604083850312156147fe576147fd613cb2565b5b600061480c85828601613fac565b925050602083013567ffffffffffffffff81111561482d5761482c613cb7565b5b61483985828601614394565b9150509250929050565b61484c81613d41565b811461485757600080fd5b50565b60008135905061486981614843565b92915050565b6000806040838503121561488657614885613cb2565b5b600061489485828601613f08565b92505060206148a58582860161485a565b9150509250929050565b6148b881613f87565b82525050565b60006020820190506148d360008301846148af565b92915050565b60006fffffffffffffffffffffffffffffffff82169050919050565b6148fe816148d9565b82525050565b600060208201905061491960008301846148f5565b92915050565b6000806000806080858703121561493957614938613cb2565b5b600061494787828801613f08565b945050602061495887828801613f08565b935050604061496987828801613e53565b925050606085013567ffffffffffffffff81111561498a57614989613cb7565b5b61499687828801614148565b91505092959194509250565b600080604083850312156149b9576149b8613cb2565b5b60006149c785828601613f08565b92505060206149d885828601613f08565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614a2957607f821691505b60208210811415614a3d57614a3c6149e2565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000614a9f602183613d82565b9150614aaa82614a43565b604082019050919050565b60006020820190508181036000830152614ace81614a92565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b6000614b31603d83613d82565b9150614b3c82614ad5565b604082019050919050565b60006020820190508181036000830152614b6081614b24565b9050919050565b7f596f752063616e206d696e742032302070756e6b73206d61782c20696e20656160008201527f6368207472616e73616374696f6e000000000000000000000000000000000000602082015250565b6000614bc3602e83613d82565b9150614bce82614b67565b604082019050919050565b60006020820190508181036000830152614bf281614bb6565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614c33826148d9565b9150614c3e836148d9565b9250816fffffffffffffffffffffffffffffffff0483118215151615614c6757614c66614bf9565b5b828202905092915050565b7f496e636f727265637420616d6f756e74206f662066756e647300000000000000600082015250565b6000614ca8601983613d82565b9150614cb382614c72565b602082019050919050565b60006020820190508181036000830152614cd781614c9b565b9050919050565b7f416c6c2070756e6b7320617265206d696e746564000000000000000000000000600082015250565b6000614d14601483613d82565b9150614d1f82614cde565b602082019050919050565b60006020820190508181036000830152614d4381614d07565b9050919050565b6000614d5582613f87565b915061ffff821415614d6a57614d69614bf9565b5b600182019050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b6000614dd1602d83613d82565b9150614ddc82614d75565b604082019050919050565b60006020820190508181036000830152614e0081614dc4565b9050919050565b7f436f6e7472616374207365616c65640000000000000000000000000000000000600082015250565b6000614e3d600f83613d82565b9150614e4882614e07565b602082019050919050565b60006020820190508181036000830152614e6c81614e30565b9050919050565b7f496e646578206f7574206f662072616e67650000000000000000000000000000600082015250565b6000614ea9601283613d82565b9150614eb482614e73565b602082019050919050565b60006020820190508181036000830152614ed881614e9c565b9050919050565b6000614eea82613e32565b9150614ef583613e32565b925082821015614f0857614f07614bf9565b5b828203905092915050565b6000614f1e82613e32565b9150614f2983613e32565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614f5e57614f5d614bf9565b5b828201905092915050565b6000614f7482613e32565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614fa757614fa6614bf9565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b600061503d602b83613d82565b915061504882614fe1565b604082019050919050565b6000602082019050818103600083015261506c81615030565b9050919050565b7f417272617973206c656e677468206d69736d6174636800000000000000000000600082015250565b60006150a9601683613d82565b91506150b482615073565b602082019050919050565b600060208201905081810360008301526150d88161509c565b9050919050565b60006150ea82613f87565b91506150f583613f87565b92508261ffff0382111561510c5761510b614bf9565b5b828201905092915050565b7f4e6f2062616c616e636520746f20776974686472617700000000000000000000600082015250565b600061514d601683613d82565b915061515882615117565b602082019050919050565b6000602082019050818103600083015261517c81615140565b9050919050565b7f4f7843727970746f50756e6b733a20696e646578206f7574206f662072616e6760008201527f6500000000000000000000000000000000000000000000000000000000000000602082015250565b60006151df602183613d82565b91506151ea82615183565b604082019050919050565b6000602082019050818103600083015261520e816151d2565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000615271602c83613d82565b915061527c82615215565b604082019050919050565b600060208201905081810360008301526152a081615264565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006152dd601883613d82565b91506152e8826152a7565b602082019050919050565b6000602082019050818103600083015261530c816152d0565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b600061536f602983613d82565b915061537a82615313565b604082019050919050565b6000602082019050818103600083015261539e81615362565b9050919050565b7f4f6e6c7920746865206f776e6572206f662074686520676976656e2070756e6b60008201527f20697320616c6c6f77656420746f2072756e20746869732066756e6374696f6e602082015250565b6000615401604083613d82565b915061540c826153a5565b604082019050919050565b60006020820190508181036000830152615430816153f4565b9050919050565b7f41747472696275746520696e646963657320617272617920697320656d707479600082015250565b600061546d602083613d82565b915061547882615437565b602082019050919050565b6000602082019050818103600083015261549c81615460565b9050919050565b600081905092915050565b60006154b982613d77565b6154c381856154a3565b93506154d3818560208601613d93565b80840191505092915050565b60006154eb82846154ae565b915081905092915050565b600061550182613e32565b915061550c83613e32565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561554557615544614bf9565b5b828202905092915050565b7f3c7265637420783d220000000000000000000000000000000000000000000000600082015250565b60006155866009836154a3565b915061559182615550565b600982019050919050565b7f2220793d22000000000000000000000000000000000000000000000000000000600082015250565b60006155d26005836154a3565b91506155dd8261559c565b600582019050919050565b7f222077696474683d223122206865696768743d2231222073686170652d72656e60008201527f646572696e673d2263726973704564676573222066696c6c3d22230000000000602082015250565b6000615644603b836154a3565b915061564f826155e8565b603b82019050919050565b7f222f3e0000000000000000000000000000000000000000000000000000000000600082015250565b60006156906003836154a3565b915061569b8261565a565b600382019050919050565b60006156b282876154ae565b91506156bd82615579565b91506156c982866154ae565b91506156d4826155c5565b91506156e082856154ae565b91506156eb82615637565b91506156f782846154ae565b915061570282615683565b915081905095945050505050565b600061571c82856154ae565b915061572882846154ae565b91508190509392505050565b7f496e76616c696420696e64657800000000000000000000000000000000000000600082015250565b600061576a600d83613d82565b915061577582615734565b602082019050919050565b600060208201905081810360008301526157998161575d565b9050919050565b7f496e76616c69642061747472696275746520696e646578000000000000000000600082015250565b60006157d6601783613d82565b91506157e1826157a0565b602082019050919050565b60006020820190508181036000830152615805816157c9565b9050919050565b7f2c20000000000000000000000000000000000000000000000000000000000000600082015250565b60006158426002836154a3565b915061584d8261580c565b600282019050919050565b60008190508160005260206000209050919050565b6000815461587a81614a11565b61588481866154a3565b9450600182166000811461589f57600181146158b0576158e3565b60ff198316865281860193506158e3565b6158b985615858565b60005b838110156158db578154818901526001820191506020810190506158bc565b838801955050505b50505092915050565b60006158f882856154ae565b915061590382615835565b915061590f828461586d565b91508190509392505050565b7f41747472696275746573206e6f74206164646564000000000000000000000000600082015250565b6000615951601483613d82565b915061595c8261591b565b602082019050919050565b6000602082019050818103600083015261598081615944565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006159e3602683613d82565b91506159ee82615987565b604082019050919050565b60006020820190508181036000830152615a12816159d6565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000615a75602583613d82565b9150615a8082615a19565b604082019050919050565b60006020820190508181036000830152615aa481615a68565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000615b07602483613d82565b9150615b1282615aab565b604082019050919050565b60006020820190508181036000830152615b3681615afa565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615b73602083613d82565b9150615b7e82615b3d565b602082019050919050565b60006020820190508181036000830152615ba281615b66565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000615be382613e32565b9150615bee83613e32565b925082615bfe57615bfd615ba9565b5b828204905092915050565b6000615c1482613e32565b9150615c1f83613e32565b925082615c2f57615c2e615ba9565b5b828206905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000615c70601983613d82565b9150615c7b82615c3a565b602082019050919050565b60006020820190508181036000830152615c9f81615c63565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000615d02603283613d82565b9150615d0d82615ca6565b604082019050919050565b60006020820190508181036000830152615d3181615cf5565b9050919050565b6000608082019050615d4d6000830187613ec7565b615d5a6020830186613ec7565b615d676040830185613f5d565b8181036060830152615d7981846146d6565b905095945050505050565b600081519050615d9381613ce8565b92915050565b600060208284031215615daf57615dae613cb2565b5b6000615dbd84828501615d84565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615dfc602083613d82565b9150615e0782615dc6565b602082019050919050565b60006020820190508181036000830152615e2b81615def565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615e68601c83613d82565b9150615e7382615e32565b602082019050919050565b60006020820190508181036000830152615e9781615e5b565b9050919050565b7f455243373231456e756d657261626c653a20636f6e736563757469766520747260008201527f616e7366657273206e6f7420737570706f727465640000000000000000000000602082015250565b6000615efa603583613d82565b9150615f0582615e9e565b604082019050919050565b60006020820190508181036000830152615f2981615eed565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfe646174613a696d6167652f7376672b786d6c3b757466382c3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667222076657273696f6e3d22312e32222076696577426f783d22302030203234203234223ea264697066735822122039f24162ba7e79c7829643629acedb802058c8baab4cba008cae02080a31a5a464736f6c6343000809003362363832656430636438303732646437623338626438356630663330313937306330666133663539356664623932353662663134643663633036383666343338

Deployed Bytecode

0x60806040526004361061020f5760003560e01c806367c60fdf11610118578063a22cb465116100a0578063b9a25e391161006f578063b9a25e3914610778578063c87b56dd146107a1578063d9691a2d146107de578063e985e9c51461081b578063f2fde38b146108585761020f565b8063a22cb465146106d0578063a94d7601146106f9578063b3a9a25814610724578063b88d4fde1461074f5761020f565b8063752edbd5116100e7578063752edbd5146105e95780638da5cb5b14610612578063954474eb1461063d57806395d89b41146106685780639c1f473e146106935761020f565b806367c60fdf1461055557806368bd580e1461057e57806370a0823114610595578063715018a6146105d25761020f565b80633250344c1161019b578063471100f11161016a578063471100f11461044a5780634f6ccce71461048757806351605d80146104c457806355f804b3146104ef5780636352211e146105185761020f565b80633250344c146103b85780633ccfd60b146103e157806341db2aa3146103f857806342842e0e146104215761020f565b806318160ddd116101e257806318160ddd146102e257806322a4789a1461030d57806323b872dd1461032957806325d8b417146103525780632f745c591461037b5761020f565b806301ffc9a71461021457806306fdde0314610251578063081812fc1461027c578063095ea7b3146102b9575b600080fd5b34801561022057600080fd5b5061023b60048036038101906102369190613d14565b610881565b6040516102489190613d5c565b60405180910390f35b34801561025d57600080fd5b50610266610893565b6040516102739190613e10565b60405180910390f35b34801561028857600080fd5b506102a3600480360381019061029e9190613e68565b610925565b6040516102b09190613ed6565b60405180910390f35b3480156102c557600080fd5b506102e060048036038101906102db9190613f1d565b61096b565b005b3480156102ee57600080fd5b506102f7610a83565b6040516103049190613f6c565b60405180910390f35b61032760048036038101906103229190613fc1565b610a90565b005b34801561033557600080fd5b50610350600480360381019061034b9190613fee565b610bf5565b005b34801561035e57600080fd5b5061037960048036038101906103749190614176565b610c55565b005b34801561038757600080fd5b506103a2600480360381019061039d9190613f1d565b610dd2565b6040516103af9190613f6c565b60405180910390f35b3480156103c457600080fd5b506103df60048036038101906103da9190614477565b610e77565b005b3480156103ed57600080fd5b506103f6610ff8565b005b34801561040457600080fd5b5061041f600480360381019061041a9190614671565b611099565b005b34801561042d57600080fd5b5061044860048036038101906104439190613fee565b61116a565b005b34801561045657600080fd5b50610471600480360381019061046c9190613fc1565b61118a565b60405161047e919061470f565b60405180910390f35b34801561049357600080fd5b506104ae60048036038101906104a99190613e68565b611289565b6040516104bb9190613f6c565b60405180910390f35b3480156104d057600080fd5b506104d96112fa565b6040516104e69190613e10565b60405180910390f35b3480156104fb57600080fd5b5061051660048036038101906105119190614731565b611388565b005b34801561052457600080fd5b5061053f600480360381019061053a9190613e68565b6113aa565b60405161054c9190613ed6565b60405180910390f35b34801561056157600080fd5b5061057c6004803603810190610577919061477a565b611431565b005b34801561058a57600080fd5b50610593611534565b005b3480156105a157600080fd5b506105bc60048036038101906105b791906147ba565b6115a9565b6040516105c99190613f6c565b60405180910390f35b3480156105de57600080fd5b506105e7611661565b005b3480156105f557600080fd5b50610610600480360381019061060b91906147e7565b611675565b005b34801561061e57600080fd5b506106276117fe565b6040516106349190613ed6565b60405180910390f35b34801561064957600080fd5b50610652611828565b60405161065f9190613f6c565b60405180910390f35b34801561067457600080fd5b5061067d611874565b60405161068a9190613e10565b60405180910390f35b34801561069f57600080fd5b506106ba60048036038101906106b59190613fc1565b611906565b6040516106c79190613e10565b60405180910390f35b3480156106dc57600080fd5b506106f760048036038101906106f2919061486f565b611c58565b005b34801561070557600080fd5b5061070e611c6e565b60405161071b91906148be565b60405180910390f35b34801561073057600080fd5b50610739611c74565b6040516107469190614904565b60405180910390f35b34801561075b57600080fd5b506107766004803603810190610771919061491f565b611c7f565b005b34801561078457600080fd5b5061079f600480360381019061079a9190614176565b611ce1565b005b3480156107ad57600080fd5b506107c860048036038101906107c39190613e68565b611ed2565b6040516107d59190613e10565b60405180910390f35b3480156107ea57600080fd5b5061080560048036038101906108009190613fc1565b611f3a565b6040516108129190613e10565b60405180910390f35b34801561082757600080fd5b50610842600480360381019061083d91906149a2565b61220b565b60405161084f9190613d5c565b60405180910390f35b34801561086457600080fd5b5061087f600480360381019061087a91906147ba565b61229f565b005b600061088c82612323565b9050919050565b6060600080546108a290614a11565b80601f01602080910402602001604051908101604052809291908181526020018280546108ce90614a11565b801561091b5780601f106108f05761010080835404028352916020019161091b565b820191906000526020600020905b8154815290600101906020018083116108fe57829003601f168201915b5050505050905090565b60006109308261239d565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610976826113aa565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109de90614ab5565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a066123e8565b73ffffffffffffffffffffffffffffffffffffffff161480610a355750610a3481610a2f6123e8565b61220b565b5b610a74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6b90614b47565b60405180910390fd5b610a7e83836123f0565b505050565b6000600880549050905090565b60148161ffff161115610ad8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610acf90614bd9565b60405180910390fd5b6611c37937e080008161ffff16610aef9190614c28565b6fffffffffffffffffffffffffffffffff163414610b42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3990614cbe565b60405180910390fd5b61271061ffff16610b678261ffff16610b59610a83565b6124a990919063ffffffff16565b1115610ba8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9f90614d2a565b60405180910390fd5b60005b8161ffff168161ffff161015610bf1576000610bc760106124bf565b9050610bd360106124cd565b610bdd33826124e3565b508080610be990614d4a565b915050610bab565b5050565b610c06610c006123e8565b82612501565b610c45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3c90614de7565b60405180910390fd5b610c50838383612596565b505050565b610c5d612890565b601460009054906101000a900460ff1615610cad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca490614e53565b60405180910390fd5b61271061ffff168261ffff1610610cf9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf090614ebf565b60405180910390fd5b6011805490508261ffff1610610d9757600060016011805490508461ffff16610d229190614edf565b610d2c9190614f13565b905060005b81811015610d9457601180600181540180825580915050600190039060005260206000200160006040518060200160405280600081525090919091509080519060200190610d80929190613a52565b508080610d8c90614f69565b915050610d31565b50505b8060118361ffff1681548110610db057610daf614fb2565b5b906000526020600020019080519060200190610dcd929190613ad8565b505050565b6000610ddd836115a9565b8210610e1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1590615053565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610e7f612890565b601460009054906101000a900460ff1615610ecf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec690614e53565b60405180910390fd5b8051825114610f13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0a906150bf565b60405180910390fd5b60005b82518161ffff161015610ff3576000838261ffff1681518110610f3c57610f3b614fb2565b5b602002602001015190506000838361ffff1681518110610f5f57610f5e614fb2565b5b6020026020010151905080601260008461ffff1681526020019081526020016000209080519060200190610f94929190613b5e565b50600f60009054906101000a900461ffff1661ffff168261ffff1610610fde57600182610fc191906150df565b600f60006101000a81548161ffff021916908361ffff1602179055505b50508080610feb90614d4a565b915050610f16565b505050565b611000612890565b600047905060008111611048576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103f90615163565b60405180910390fd5b6110506117fe565b73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611095573d6000803e3d6000fd5b5050565b6110a1612890565b601460009054906101000a900460ff16156110f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e890614e53565b60405180910390fd5b60005b815181101561116657601382828151811061111257611111614fb2565b5b6020026020010151908060018154018082558091505060019003906000526020600020016000909190919091509080519060200190611152929190613c05565b50808061115e90614f69565b9150506110f4565b5050565b61118583838360405180602001604052806000815250611c7f565b505050565b60606011805490508261ffff16106111d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ce906151f5565b60405180910390fd5b60118261ffff16815481106111ef576111ee614fb2565b5b90600052602060002001805461120490614a11565b80601f016020809104026020016040519081016040528092919081815260200182805461123090614a11565b801561127d5780601f106112525761010080835404028352916020019161127d565b820191906000526020600020905b81548152906001019060200180831161126057829003601f168201915b50505050509050919050565b6000611293610a83565b82106112d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112cb90615287565b60405180910390fd5b600882815481106112e8576112e7614fb2565b5b90600052602060002001549050919050565b600b805461130790614a11565b80601f016020809104026020016040519081016040528092919081815260200182805461133390614a11565b80156113805780601f1061135557610100808354040283529160200191611380565b820191906000526020600020905b81548152906001019060200180831161136357829003601f168201915b505050505081565b611390612890565b80600e90805190602001906113a6929190613c05565b5050565b6000806113b68361290e565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611428576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141f906152f3565b60405180910390fd5b80915050919050565b611439612890565b60148161ffff161115611481576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147890614bd9565b60405180910390fd5b61271061ffff166114a68261ffff16611498610a83565b6124a990919063ffffffff16565b106114e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114dd90614d2a565b60405180910390fd5b60005b8161ffff168161ffff16101561152f57600061150560106124bf565b905061151160106124cd565b61151b84826124e3565b50808061152790614d4a565b9150506114e9565b505050565b61153c612890565b601460009054906101000a900460ff161561158c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158390614e53565b60405180910390fd5b6001601460006101000a81548160ff021916908315150217905550565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561161a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161190615385565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611669612890565b611673600061294b565b565b601460009054906101000a900460ff16156116c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116bc90614e53565b60405180910390fd5b813373ffffffffffffffffffffffffffffffffffffffff166116ea8261ffff166113aa565b73ffffffffffffffffffffffffffffffffffffffff1614611740576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173790615417565b60405180910390fd5b6000825111611784576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177b90615483565b60405180910390fd5b81601260008561ffff16815260200190815260200160002090805190602001906117af929190613b5e565b50600f60009054906101000a900461ffff1661ffff168361ffff16106117f9576001836117dc91906150df565b600f60006101000a81548161ffff021916908361ffff1602179055505b505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600080611833610a83565b905060006118508261271061ffff16612a1190919063ffffffff16565b9050600082141561186b5761271061ffff1692505050611871565b80925050505b90565b60606001805461188390614a11565b80601f01602080910402602001604051908101604052809291908181526020018280546118af90614a11565b80156118fc5780601f106118d1576101008083540402835291602001916118fc565b820191906000526020600020905b8154815290600101906020018083116118df57829003601f168201915b5050505050905090565b606060006119138361118a565b90506040518060a0016040528060628152602001615f606062913960405160200161193e91906154df565b60405160208183030381529060405291506000600867ffffffffffffffff81111561196c5761196b61404b565b5b6040519080825280601f01601f19166020018201604052801561199e5781602001600182028036833780820191505090505b50905060005b6018811015611bf75760005b6018811015611be35760006004826018856119cb91906154f6565b6119d59190614f13565b6119df91906154f6565b90506000856003836119f19190614f13565b81518110611a0257611a01614fb2565b5b602001015160f81c60f81b60f81c60ff161115611bcf5760005b6004811015611b95576000868284611a349190614f13565b81518110611a4557611a44614fb2565b5b602001015160f81c60f81b60f81c90507f3031323334353637383961626364656600000000000000000000000000000000600f821660ff1660108110611a8e57611a8d614fb2565b5b1a60f81b866001600285611aa291906154f6565b611aac9190614f13565b81518110611abd57611abc614fb2565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060048160ff16901c90507f3031323334353637383961626364656600000000000000000000000000000000600f821660ff1660108110611b2f57611b2e614fb2565b5b1a60f81b86600284611b4191906154f6565b81518110611b5257611b51614fb2565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350508080611b8d90614f69565b915050611a1c565b5085611ba083612a27565b611ba985612a27565b86604051602001611bbd94939291906156a6565b60405160208183030381529060405295505b508080611bdb90614f69565b9150506119b0565b508080611bef90614f69565b9150506119a4565b50826040518060400160405280600681526020017f3c2f7376673e0000000000000000000000000000000000000000000000000000815250604051602001611c40929190615710565b60405160208183030381529060405292505050919050565b611c6a611c636123e8565b8383612b88565b5050565b61271081565b6611c37937e0800081565b611c90611c8a6123e8565b83612501565b611ccf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cc690614de7565b60405180910390fd5b611cdb84848484612cf5565b50505050565b813373ffffffffffffffffffffffffffffffffffffffff16611d068261ffff166113aa565b73ffffffffffffffffffffffffffffffffffffffff1614611d5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5390615417565b60405180910390fd5b601460009054906101000a900460ff1615611dac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da390614e53565b60405180910390fd5b61271061ffff168361ffff1610611df8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611def90614ebf565b60405180910390fd5b6011805490508361ffff1610611e9657600060016011805490508561ffff16611e219190614edf565b611e2b9190614f13565b905060005b81811015611e9357601180600181540180825580915050600190039060005260206000200160006040518060200160405280600081525090919091509080519060200190611e7f929190613a52565b508080611e8b90614f69565b915050611e30565b50505b8160118461ffff1681548110611eaf57611eae614fb2565b5b906000526020600020019080519060200190611ecc929190613ad8565b50505050565b6060611edd8261239d565b6000611ee7612d51565b90506000815111611f075760405180602001604052806000815250611f32565b80611f1184612de3565b604051602001611f22929190615710565b6040516020818303038152906040525b915050919050565b6060600f60009054906101000a900461ffff1661ffff168261ffff1610611f96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f8d90615780565b60405180910390fd5b6000601260008461ffff16815260200190815260200160002080548060200260200160405190810160405280929190818152602001828054801561201f57602002820191906000526020600020906000905b82829054906101000a900460ff1660ff1681526020019060010190602082600001049283019260010382029150808411611fe85790505b50505050509050606060005b82518161ffff1610156121bc576000838261ffff168151811061205157612050614fb2565b5b602002602001015190506013805490508160ff16106120a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209c906157ec565b60405180910390fd5b60008261ffff1611156120fb578260138260ff16815481106120ca576120c9614fb2565b5b906000526020600020016040516020016120e59291906158ec565b60405160208183030381529060405292506121a8565b60138160ff168154811061211257612111614fb2565b5b90600052602060002001805461212790614a11565b80601f016020809104026020016040519081016040528092919081815260200182805461215390614a11565b80156121a05780601f10612175576101008083540402835291602001916121a0565b820191906000526020600020905b81548152906001019060200180831161218357829003601f168201915b505050505092505b5080806121b490614d4a565b91505061202b565b506000815111612201576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121f890615967565b60405180910390fd5b8092505050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6122a7612890565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612317576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161230e906159f9565b60405180910390fd5b6123208161294b565b50565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612396575061239582612ebb565b5b9050919050565b6123a681612f9d565b6123e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123dc906152f3565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612463836113aa565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081836124b79190614f13565b905092915050565b600081600001549050919050565b6001816000016000828254019250508190555050565b6124fd828260405180602001604052806000815250612fde565b5050565b60008061250d836113aa565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061254f575061254e818561220b565b5b8061258d57508373ffffffffffffffffffffffffffffffffffffffff1661257584610925565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166125b6826113aa565b73ffffffffffffffffffffffffffffffffffffffff161461260c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260390615a8b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561267c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161267390615b1d565b60405180910390fd5b6126898383836001613039565b8273ffffffffffffffffffffffffffffffffffffffff166126a9826113aa565b73ffffffffffffffffffffffffffffffffffffffff16146126ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126f690615a8b565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461288b838383600161304b565b505050565b6128986123e8565b73ffffffffffffffffffffffffffffffffffffffff166128b66117fe565b73ffffffffffffffffffffffffffffffffffffffff161461290c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161290390615b89565b60405180910390fd5b565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008183612a1f9190614edf565b905092915050565b60606000821415612a6f576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612b83565b600082905060005b60008214612aa1578080612a8a90614f69565b915050600a82612a9a9190615bd8565b9150612a77565b60008167ffffffffffffffff811115612abd57612abc61404b565b5b6040519080825280601f01601f191660200182016040528015612aef5781602001600182028036833780820191505090505b5090505b60008514612b7c57600182612b089190614edf565b9150600a85612b179190615c09565b6030612b239190614f13565b60f81b818381518110612b3957612b38614fb2565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612b759190615bd8565b9450612af3565b8093505050505b919050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612bf7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bee90615c86565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612ce89190613d5c565b60405180910390a3505050565b612d00848484612596565b612d0c84848484613051565b612d4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d4290615d18565b60405180910390fd5b50505050565b6060600e8054612d6090614a11565b80601f0160208091040260200160405190810160405280929190818152602001828054612d8c90614a11565b8015612dd95780601f10612dae57610100808354040283529160200191612dd9565b820191906000526020600020905b815481529060010190602001808311612dbc57829003601f168201915b5050505050905090565b606060006001612df2846131e8565b01905060008167ffffffffffffffff811115612e1157612e1061404b565b5b6040519080825280601f01601f191660200182016040528015612e435781602001600182028036833780820191505090505b509050600082602001820190505b600115612eb0578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612e9a57612e99615ba9565b5b0494506000851415612eab57612eb0565b612e51565b819350505050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612f8657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612f965750612f958261333b565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff16612fbf8361290e565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b612fe883836133a5565b612ff56000848484613051565b613034576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161302b90615d18565b60405180910390fd5b505050565b613045848484846135c3565b50505050565b50505050565b60006130728473ffffffffffffffffffffffffffffffffffffffff16613723565b156131db578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261309b6123e8565b8786866040518563ffffffff1660e01b81526004016130bd9493929190615d38565b602060405180830381600087803b1580156130d757600080fd5b505af192505050801561310857506040513d601f19601f820116820180604052508101906131059190615d99565b60015b61318b573d8060008114613138576040519150601f19603f3d011682016040523d82523d6000602084013e61313d565b606091505b50600081511415613183576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161317a90615d18565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506131e0565b600190505b949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613246577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161323c5761323b615ba9565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613283576d04ee2d6d415b85acef8100000000838161327957613278615ba9565b5b0492506020810190505b662386f26fc1000083106132b257662386f26fc1000083816132a8576132a7615ba9565b5b0492506010810190505b6305f5e10083106132db576305f5e10083816132d1576132d0615ba9565b5b0492506008810190505b61271083106133005761271083816132f6576132f5615ba9565b5b0492506004810190505b60648310613323576064838161331957613318615ba9565b5b0492506002810190505b600a8310613332576001810190505b80915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613415576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161340c90615e12565b60405180910390fd5b61341e81612f9d565b1561345e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161345590615e7e565b60405180910390fd5b61346c600083836001613039565b61347581612f9d565b156134b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134ac90615e7e565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46135bf60008383600161304b565b5050565b6135cf84848484613746565b6001811115613613576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161360a90615f10565b60405180910390fd5b6000829050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141561365b576136568161374c565b61369a565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614613699576136988582613795565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156136dd576136d881613902565b61371c565b8473ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161461371b5761371a84826139d3565b5b5b5050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b50505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016137a2846115a9565b6137ac9190614edf565b9050600060076000848152602001908152602001600020549050818114613891576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506139169190614edf565b905060006009600084815260200190815260200160002054905060006008838154811061394657613945614fb2565b5b90600052602060002001549050806008838154811061396857613967614fb2565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806139b7576139b6615f30565b5b6001900381819060005260206000200160009055905550505050565b60006139de836115a9565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b828054613a5e90614a11565b90600052602060002090601f016020900481019282613a805760008555613ac7565b82601f10613a9957805160ff1916838001178555613ac7565b82800160010185558215613ac7579182015b82811115613ac6578251825591602001919060010190613aab565b5b509050613ad49190613c8b565b5090565b828054613ae490614a11565b90600052602060002090601f016020900481019282613b065760008555613b4d565b82601f10613b1f57805160ff1916838001178555613b4d565b82800160010185558215613b4d579182015b82811115613b4c578251825591602001919060010190613b31565b5b509050613b5a9190613c8b565b5090565b82805482825590600052602060002090601f01602090048101928215613bf45791602002820160005b83821115613bc557835183826101000a81548160ff021916908360ff1602179055509260200192600101602081600001049283019260010302613b87565b8015613bf25782816101000a81549060ff0219169055600101602081600001049283019260010302613bc5565b505b509050613c019190613c8b565b5090565b828054613c1190614a11565b90600052602060002090601f016020900481019282613c335760008555613c7a565b82601f10613c4c57805160ff1916838001178555613c7a565b82800160010185558215613c7a579182015b82811115613c79578251825591602001919060010190613c5e565b5b509050613c879190613c8b565b5090565b5b80821115613ca4576000816000905550600101613c8c565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613cf181613cbc565b8114613cfc57600080fd5b50565b600081359050613d0e81613ce8565b92915050565b600060208284031215613d2a57613d29613cb2565b5b6000613d3884828501613cff565b91505092915050565b60008115159050919050565b613d5681613d41565b82525050565b6000602082019050613d716000830184613d4d565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613db1578082015181840152602081019050613d96565b83811115613dc0576000848401525b50505050565b6000601f19601f8301169050919050565b6000613de282613d77565b613dec8185613d82565b9350613dfc818560208601613d93565b613e0581613dc6565b840191505092915050565b60006020820190508181036000830152613e2a8184613dd7565b905092915050565b6000819050919050565b613e4581613e32565b8114613e5057600080fd5b50565b600081359050613e6281613e3c565b92915050565b600060208284031215613e7e57613e7d613cb2565b5b6000613e8c84828501613e53565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613ec082613e95565b9050919050565b613ed081613eb5565b82525050565b6000602082019050613eeb6000830184613ec7565b92915050565b613efa81613eb5565b8114613f0557600080fd5b50565b600081359050613f1781613ef1565b92915050565b60008060408385031215613f3457613f33613cb2565b5b6000613f4285828601613f08565b9250506020613f5385828601613e53565b9150509250929050565b613f6681613e32565b82525050565b6000602082019050613f816000830184613f5d565b92915050565b600061ffff82169050919050565b613f9e81613f87565b8114613fa957600080fd5b50565b600081359050613fbb81613f95565b92915050565b600060208284031215613fd757613fd6613cb2565b5b6000613fe584828501613fac565b91505092915050565b60008060006060848603121561400757614006613cb2565b5b600061401586828701613f08565b935050602061402686828701613f08565b925050604061403786828701613e53565b9150509250925092565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61408382613dc6565b810181811067ffffffffffffffff821117156140a2576140a161404b565b5b80604052505050565b60006140b5613ca8565b90506140c1828261407a565b919050565b600067ffffffffffffffff8211156140e1576140e061404b565b5b6140ea82613dc6565b9050602081019050919050565b82818337600083830152505050565b6000614119614114846140c6565b6140ab565b90508281526020810184848401111561413557614134614046565b5b6141408482856140f7565b509392505050565b600082601f83011261415d5761415c614041565b5b813561416d848260208601614106565b91505092915050565b6000806040838503121561418d5761418c613cb2565b5b600061419b85828601613fac565b925050602083013567ffffffffffffffff8111156141bc576141bb613cb7565b5b6141c885828601614148565b9150509250929050565b600067ffffffffffffffff8211156141ed576141ec61404b565b5b602082029050602081019050919050565b600080fd5b6000614216614211846141d2565b6140ab565b90508083825260208201905060208402830185811115614239576142386141fe565b5b835b81811015614262578061424e8882613fac565b84526020840193505060208101905061423b565b5050509392505050565b600082601f83011261428157614280614041565b5b8135614291848260208601614203565b91505092915050565b600067ffffffffffffffff8211156142b5576142b461404b565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156142e1576142e061404b565b5b602082029050602081019050919050565b600060ff82169050919050565b614308816142f2565b811461431357600080fd5b50565b600081359050614325816142ff565b92915050565b600061433e614339846142c6565b6140ab565b90508083825260208201905060208402830185811115614361576143606141fe565b5b835b8181101561438a57806143768882614316565b845260208401935050602081019050614363565b5050509392505050565b600082601f8301126143a9576143a8614041565b5b81356143b984826020860161432b565b91505092915050565b60006143d56143d08461429a565b6140ab565b905080838252602082019050602084028301858111156143f8576143f76141fe565b5b835b8181101561443f57803567ffffffffffffffff81111561441d5761441c614041565b5b80860161442a8982614394565b855260208501945050506020810190506143fa565b5050509392505050565b600082601f83011261445e5761445d614041565b5b813561446e8482602086016143c2565b91505092915050565b6000806040838503121561448e5761448d613cb2565b5b600083013567ffffffffffffffff8111156144ac576144ab613cb7565b5b6144b88582860161426c565b925050602083013567ffffffffffffffff8111156144d9576144d8613cb7565b5b6144e585828601614449565b9150509250929050565b600067ffffffffffffffff82111561450a5761450961404b565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156145365761453561404b565b5b61453f82613dc6565b9050602081019050919050565b600061455f61455a8461451b565b6140ab565b90508281526020810184848401111561457b5761457a614046565b5b6145868482856140f7565b509392505050565b600082601f8301126145a3576145a2614041565b5b81356145b384826020860161454c565b91505092915050565b60006145cf6145ca846144ef565b6140ab565b905080838252602082019050602084028301858111156145f2576145f16141fe565b5b835b8181101561463957803567ffffffffffffffff81111561461757614616614041565b5b808601614624898261458e565b855260208501945050506020810190506145f4565b5050509392505050565b600082601f83011261465857614657614041565b5b81356146688482602086016145bc565b91505092915050565b60006020828403121561468757614686613cb2565b5b600082013567ffffffffffffffff8111156146a5576146a4613cb7565b5b6146b184828501614643565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60006146e1826146ba565b6146eb81856146c5565b93506146fb818560208601613d93565b61470481613dc6565b840191505092915050565b6000602082019050818103600083015261472981846146d6565b905092915050565b60006020828403121561474757614746613cb2565b5b600082013567ffffffffffffffff81111561476557614764613cb7565b5b6147718482850161458e565b91505092915050565b6000806040838503121561479157614790613cb2565b5b600061479f85828601613f08565b92505060206147b085828601613fac565b9150509250929050565b6000602082840312156147d0576147cf613cb2565b5b60006147de84828501613f08565b91505092915050565b600080604083850312156147fe576147fd613cb2565b5b600061480c85828601613fac565b925050602083013567ffffffffffffffff81111561482d5761482c613cb7565b5b61483985828601614394565b9150509250929050565b61484c81613d41565b811461485757600080fd5b50565b60008135905061486981614843565b92915050565b6000806040838503121561488657614885613cb2565b5b600061489485828601613f08565b92505060206148a58582860161485a565b9150509250929050565b6148b881613f87565b82525050565b60006020820190506148d360008301846148af565b92915050565b60006fffffffffffffffffffffffffffffffff82169050919050565b6148fe816148d9565b82525050565b600060208201905061491960008301846148f5565b92915050565b6000806000806080858703121561493957614938613cb2565b5b600061494787828801613f08565b945050602061495887828801613f08565b935050604061496987828801613e53565b925050606085013567ffffffffffffffff81111561498a57614989613cb7565b5b61499687828801614148565b91505092959194509250565b600080604083850312156149b9576149b8613cb2565b5b60006149c785828601613f08565b92505060206149d885828601613f08565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614a2957607f821691505b60208210811415614a3d57614a3c6149e2565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000614a9f602183613d82565b9150614aaa82614a43565b604082019050919050565b60006020820190508181036000830152614ace81614a92565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b6000614b31603d83613d82565b9150614b3c82614ad5565b604082019050919050565b60006020820190508181036000830152614b6081614b24565b9050919050565b7f596f752063616e206d696e742032302070756e6b73206d61782c20696e20656160008201527f6368207472616e73616374696f6e000000000000000000000000000000000000602082015250565b6000614bc3602e83613d82565b9150614bce82614b67565b604082019050919050565b60006020820190508181036000830152614bf281614bb6565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614c33826148d9565b9150614c3e836148d9565b9250816fffffffffffffffffffffffffffffffff0483118215151615614c6757614c66614bf9565b5b828202905092915050565b7f496e636f727265637420616d6f756e74206f662066756e647300000000000000600082015250565b6000614ca8601983613d82565b9150614cb382614c72565b602082019050919050565b60006020820190508181036000830152614cd781614c9b565b9050919050565b7f416c6c2070756e6b7320617265206d696e746564000000000000000000000000600082015250565b6000614d14601483613d82565b9150614d1f82614cde565b602082019050919050565b60006020820190508181036000830152614d4381614d07565b9050919050565b6000614d5582613f87565b915061ffff821415614d6a57614d69614bf9565b5b600182019050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b6000614dd1602d83613d82565b9150614ddc82614d75565b604082019050919050565b60006020820190508181036000830152614e0081614dc4565b9050919050565b7f436f6e7472616374207365616c65640000000000000000000000000000000000600082015250565b6000614e3d600f83613d82565b9150614e4882614e07565b602082019050919050565b60006020820190508181036000830152614e6c81614e30565b9050919050565b7f496e646578206f7574206f662072616e67650000000000000000000000000000600082015250565b6000614ea9601283613d82565b9150614eb482614e73565b602082019050919050565b60006020820190508181036000830152614ed881614e9c565b9050919050565b6000614eea82613e32565b9150614ef583613e32565b925082821015614f0857614f07614bf9565b5b828203905092915050565b6000614f1e82613e32565b9150614f2983613e32565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614f5e57614f5d614bf9565b5b828201905092915050565b6000614f7482613e32565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614fa757614fa6614bf9565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b600061503d602b83613d82565b915061504882614fe1565b604082019050919050565b6000602082019050818103600083015261506c81615030565b9050919050565b7f417272617973206c656e677468206d69736d6174636800000000000000000000600082015250565b60006150a9601683613d82565b91506150b482615073565b602082019050919050565b600060208201905081810360008301526150d88161509c565b9050919050565b60006150ea82613f87565b91506150f583613f87565b92508261ffff0382111561510c5761510b614bf9565b5b828201905092915050565b7f4e6f2062616c616e636520746f20776974686472617700000000000000000000600082015250565b600061514d601683613d82565b915061515882615117565b602082019050919050565b6000602082019050818103600083015261517c81615140565b9050919050565b7f4f7843727970746f50756e6b733a20696e646578206f7574206f662072616e6760008201527f6500000000000000000000000000000000000000000000000000000000000000602082015250565b60006151df602183613d82565b91506151ea82615183565b604082019050919050565b6000602082019050818103600083015261520e816151d2565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000615271602c83613d82565b915061527c82615215565b604082019050919050565b600060208201905081810360008301526152a081615264565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006152dd601883613d82565b91506152e8826152a7565b602082019050919050565b6000602082019050818103600083015261530c816152d0565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b600061536f602983613d82565b915061537a82615313565b604082019050919050565b6000602082019050818103600083015261539e81615362565b9050919050565b7f4f6e6c7920746865206f776e6572206f662074686520676976656e2070756e6b60008201527f20697320616c6c6f77656420746f2072756e20746869732066756e6374696f6e602082015250565b6000615401604083613d82565b915061540c826153a5565b604082019050919050565b60006020820190508181036000830152615430816153f4565b9050919050565b7f41747472696275746520696e646963657320617272617920697320656d707479600082015250565b600061546d602083613d82565b915061547882615437565b602082019050919050565b6000602082019050818103600083015261549c81615460565b9050919050565b600081905092915050565b60006154b982613d77565b6154c381856154a3565b93506154d3818560208601613d93565b80840191505092915050565b60006154eb82846154ae565b915081905092915050565b600061550182613e32565b915061550c83613e32565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561554557615544614bf9565b5b828202905092915050565b7f3c7265637420783d220000000000000000000000000000000000000000000000600082015250565b60006155866009836154a3565b915061559182615550565b600982019050919050565b7f2220793d22000000000000000000000000000000000000000000000000000000600082015250565b60006155d26005836154a3565b91506155dd8261559c565b600582019050919050565b7f222077696474683d223122206865696768743d2231222073686170652d72656e60008201527f646572696e673d2263726973704564676573222066696c6c3d22230000000000602082015250565b6000615644603b836154a3565b915061564f826155e8565b603b82019050919050565b7f222f3e0000000000000000000000000000000000000000000000000000000000600082015250565b60006156906003836154a3565b915061569b8261565a565b600382019050919050565b60006156b282876154ae565b91506156bd82615579565b91506156c982866154ae565b91506156d4826155c5565b91506156e082856154ae565b91506156eb82615637565b91506156f782846154ae565b915061570282615683565b915081905095945050505050565b600061571c82856154ae565b915061572882846154ae565b91508190509392505050565b7f496e76616c696420696e64657800000000000000000000000000000000000000600082015250565b600061576a600d83613d82565b915061577582615734565b602082019050919050565b600060208201905081810360008301526157998161575d565b9050919050565b7f496e76616c69642061747472696275746520696e646578000000000000000000600082015250565b60006157d6601783613d82565b91506157e1826157a0565b602082019050919050565b60006020820190508181036000830152615805816157c9565b9050919050565b7f2c20000000000000000000000000000000000000000000000000000000000000600082015250565b60006158426002836154a3565b915061584d8261580c565b600282019050919050565b60008190508160005260206000209050919050565b6000815461587a81614a11565b61588481866154a3565b9450600182166000811461589f57600181146158b0576158e3565b60ff198316865281860193506158e3565b6158b985615858565b60005b838110156158db578154818901526001820191506020810190506158bc565b838801955050505b50505092915050565b60006158f882856154ae565b915061590382615835565b915061590f828461586d565b91508190509392505050565b7f41747472696275746573206e6f74206164646564000000000000000000000000600082015250565b6000615951601483613d82565b915061595c8261591b565b602082019050919050565b6000602082019050818103600083015261598081615944565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006159e3602683613d82565b91506159ee82615987565b604082019050919050565b60006020820190508181036000830152615a12816159d6565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000615a75602583613d82565b9150615a8082615a19565b604082019050919050565b60006020820190508181036000830152615aa481615a68565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000615b07602483613d82565b9150615b1282615aab565b604082019050919050565b60006020820190508181036000830152615b3681615afa565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615b73602083613d82565b9150615b7e82615b3d565b602082019050919050565b60006020820190508181036000830152615ba281615b66565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000615be382613e32565b9150615bee83613e32565b925082615bfe57615bfd615ba9565b5b828204905092915050565b6000615c1482613e32565b9150615c1f83613e32565b925082615c2f57615c2e615ba9565b5b828206905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000615c70601983613d82565b9150615c7b82615c3a565b602082019050919050565b60006020820190508181036000830152615c9f81615c63565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000615d02603283613d82565b9150615d0d82615ca6565b604082019050919050565b60006020820190508181036000830152615d3181615cf5565b9050919050565b6000608082019050615d4d6000830187613ec7565b615d5a6020830186613ec7565b615d676040830185613f5d565b8181036060830152615d7981846146d6565b905095945050505050565b600081519050615d9381613ce8565b92915050565b600060208284031215615daf57615dae613cb2565b5b6000615dbd84828501615d84565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615dfc602083613d82565b9150615e0782615dc6565b602082019050919050565b60006020820190508181036000830152615e2b81615def565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615e68601c83613d82565b9150615e7382615e32565b602082019050919050565b60006020820190508181036000830152615e9781615e5b565b9050919050565b7f455243373231456e756d657261626c653a20636f6e736563757469766520747260008201527f616e7366657273206e6f7420737570706f727465640000000000000000000000602082015250565b6000615efa603583613d82565b9150615f0582615e9e565b604082019050919050565b60006020820190508181036000830152615f2981615eed565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfe646174613a696d6167652f7376672b786d6c3b757466382c3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667222076657273696f6e3d22312e32222076696577426f783d22302030203234203234223ea264697066735822122039f24162ba7e79c7829643629acedb802058c8baab4cba008cae02080a31a5a464736f6c63430008090033

Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.