ETH Price: $3,184.83 (+2.64%)

Token

lookaga.in (LOOOOK)
 

Overview

Max Total Supply

596 LOOOOK

Holders

286

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 LOOOOK
0x21aba82e3e016d67a751932c6f9e0b24876b51e3
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
Looook

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : Looook.sol
// SPDX-License-Identifier: MIT

/**
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░▓▓▓▓▓▓░░░░▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░▓░░░░░░▓░░▓░░░░░░▓░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░▓▓▓▓░░░░░▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░▓░░░░░░▓░▓░░░░░░▓░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░▓░░░░░░░░▓░░░░░░░░▓░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░▓░░░░░░░░░░▓░░░░░░░░▓░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░▓░░░░░░▓░░░▓░░░▓░░░░▓░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░▓░░░░░▓▓▓░░▓░░▓▓▓░░░▓░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░▓░░░░░▓░░▓░░░░▓░░░▓░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░▓░░░░░░▓░▓░░░░░░▓░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░▓▓▓▓░░░░░▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

LOOK AGAIN
Website: https://lookaga.in
Author: CTHDRL
**/

pragma solidity ^0.8.6;

import {SafeMath} from '@openzeppelin/contracts/utils/math/SafeMath.sol';
import {Address} from '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/cryptography/ECDSA.sol';
import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
import '@openzeppelin/contracts/interfaces/IERC2981.sol';
import '@openzeppelin/contracts/utils/Counters.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import './libs/ReentrancyGuard.sol';

contract Looook is Ownable, ERC721, ReentrancyGuard {
    using Counters for Counters.Counter;

    event PuzzleCreated(uint256 puzzleId);
    event PuzzleUpdated(uint256 puzzleId);

    struct Puzzle {
        // address of the
        // solution signer
        address solution;
        // wallet address of
        // the curator
        address curator;
        // the number of tokens currently
        // minted for this puzzle
        Counters.Counter counter;
        // string to represent
        // the puzzle/challenge
        string challenge;
    }

    struct Token {
        // ID of the puzzle
        // this token belongs to
        uint256 puzzleId;
        // the value of the puzzle
        // counter when this
        // token was minted
        uint256 number;
    }

    // ID counters
    Counters.Counter public currentQueuedPuzzleId;
    Counters.Counter public currentTokenId;

    // Keeps track of the last known
    // puzzle ID each time the interval
    // or startTime are changed
    uint256 public puzzleAnchorId = 1;
    uint256 public puzzleInterval = 86400;
    uint256 public startTime = 0;

    // metadata
    string public description;

    // Base token and contract URI
    string private _baseTokenURI;
    string private _baseContractURI;

    // Who to pay when no curator
    address public defaultCurator = address(0x0);

    // addess => Puzzle ID => true/false
    // Determine whether a particular looker has
    // already minted a particular puzzle.
    mapping(address => mapping(uint256 => bool)) public mintedPuzzle;

    // Map IDs to structs
    mapping(uint256 => Puzzle) public puzzles;
    mapping(uint256 => Token) public tokens;

    // Kill switch for end times
    bool public frozen = false;

    // EIP-721
    // https://eips.ethereum.org/EIPS/eip-721

    constructor() ERC721('lookaga.in', 'LOOOOK') {}

    // EIP-2981
    // https://eips.ethereum.org/EIPS/eip-2981

    /**
        @dev Get royalty information for token
        @param _price Sale price for the token
    */
    function royaltyInfo(
        uint256 _id,
        uint256 _price
    ) external view returns (address receiver, uint256 royaltyAmount) {
        uint256 _puzzleId = tokens[_id].puzzleId;
        receiver = curatorOf(_puzzleId);
        royaltyAmount = (_price * 5) / 100;
    }

    function supportsInterface(
        bytes4 interfaceId
    ) public view virtual override(ERC721) returns (bool) {
        return
            interfaceId == type(IERC2981).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
      @dev Allow the contract to receive ETH
     */
    receive() external payable {}

    /**
      @dev Read the contract meta URI
     */
    function contractURI() public view returns (string memory) {
        return _baseContractURI;
    }

    /**
      @dev Owner function to set the contract meta URI
     */
    function setContractURI(string memory baseContractURI_) public onlyOwner {
        require(!frozen, 'Contract is frozen');
        require(bytes(baseContractURI_).length > 0, 'Invalid baseContractUrl');
        _baseContractURI = baseContractURI_;
    }

    /**
      @dev Read the baseURI
     */
    function _baseURI() internal view virtual override returns (string memory) {
        return _baseTokenURI;
    }

    /**
      @dev Owner function to set the token baseURI
     */
    function setBaseURI(string memory baseURI_) public onlyOwner {
        require(!frozen, 'Contract is frozen');
        require(bytes(baseURI_).length > 0, 'Invalid baseUrl');
        _baseTokenURI = baseURI_;
    }

    /**
      @dev Owner function to set the description
     */
    function setDescription(string memory _description) public onlyOwner {
        require(!frozen, 'Contract is frozen');
        require(bytes(_description).length > 0, 'Invalid description');
        description = _description;
    }

    /**
      @dev Owner function to set default curator. Can only happen once.
     */
    function setDefaultCurator(address _curator) public onlyOwner {
        require(!frozen, 'Contract is frozen');
        require(
            defaultCurator == address(0x0),
            'The default curator has already been set'
        );
        defaultCurator = _curator;
    }

    /**
      @dev Kill switch, it can only be triggered once.
     */
    function freeze() public onlyOwner {
        require(!frozen, 'Contract is frozen');
        frozen = true;
    }

    // Puzzle that is currently minting
    function puzzleActive() public view returns (uint256) {
        if (startTime == 0 || startTime > block.timestamp || frozen) {
            return 0;
        }
        uint256 diff = SafeMath.div(
            SafeMath.sub(block.timestamp, startTime),
            puzzleInterval
        );
        return puzzleAnchorId + diff;
    }

    function setStartAndInterval(
        uint256 _startTime,
        uint256 _interval
    ) public onlyOwner {
        require(!frozen, 'Contract is frozen');
        require(_interval > 60, 'Minimum interval is 1 minute');
        require(puzzleInterval > 0, 'Contract must be initialized first');
        require(
            _startTime > block.timestamp,
            'Start time must be in the future'
        );

        // Set anchor if this is not
        // initialization
        if (startTime > 0) {
            uint256 diff = SafeMath.div(
                SafeMath.sub(block.timestamp, startTime),
                puzzleInterval
            );
            puzzleAnchorId = puzzleAnchorId + diff + 1;
        }

        // Set values
        startTime = _startTime;
        puzzleInterval = _interval;
    }

    /**
      @param _challenges - the IPFS hash where the challenge can be found
      @param _solutions - the public address of the solution wallet
      @param _curators - the address of the wallet who curated this puzzle
      @dev This allows the owner to create/queue one or many new puzzles
     */
    function createPuzzles(
        string[] calldata _challenges,
        address[] calldata _solutions,
        address[] memory _curators
    ) public onlyOwner returns (bool) {
        require(!frozen, 'Contract is frozen');

        for (uint256 i = 0; i < _challenges.length; i++) {
            // Default curator is owner
            if (_curators[i] == address(0x0)) {
                _curators[i] = owner();
            }

            currentQueuedPuzzleId.increment();
            uint256 _puzzleId = currentQueuedPuzzleId.current();

            puzzles[_puzzleId] = Puzzle(
                _solutions[i],
                _curators[i],
                Counters.Counter(0),
                _challenges[i]
            );
            emit PuzzleCreated(_puzzleId);
        }

        return true;
    }

    /**
      @param _puzzleId is the puzzle that is being updated. Must be 
      @param _challenge is the IPFS hash where the challenge can be found
      @param _solution is the public address of the solution wallet
      @param _curator is the address of the wallet who curated this puzzle
      @dev This allows the owner to update an existing queued puzzle
     */
    function updatePuzzle(
        uint256 _puzzleId,
        string memory _challenge,
        address _solution,
        address _curator
    ) public onlyOwner returns (uint256) {
        require(!frozen, 'Contract is frozen');
        require(
            puzzles[_puzzleId].solution != address(0x0),
            'Puzzle does not exist'
        );
        require(_puzzleId > puzzleActive(), 'Must be a queued future puzzle');

        // Default curator is owner
        if (_curator == address(0x0)) {
            _curator = owner();
        }

        puzzles[_puzzleId] = Puzzle(
            _solution,
            _curator,
            Counters.Counter(0),
            _challenge
        );
        emit PuzzleUpdated(_puzzleId);

        return _puzzleId;
    }

    /**
      @param signature is the signature proving that the looker found the solution
      @dev This allows anyone to mint an puzzle, given that they can prove that
            they have discovered the correct solution.
     */
    function mint(bytes calldata signature) external payable returns (uint256) {
        require(!frozen, 'Contract is frozen');

        // Ensure the curator is not minting
        address curator = curatorOf(puzzleActive());
        require(curator != _msgSender(), 'The curator cannot mint');

        // Verify that looker has found the solution
        Puzzle storage _puzzle = puzzles[puzzleActive()];
        address solutionSigner = _puzzle.solution;

        // Make sure there is a valid puzzle minting
        require(solutionSigner != address(0x0), 'There is no active puzzle');

        // Check solution
        require(
            _verify(solutionSigner, _hash(_msgSender()), signature),
            'Invalid signature provided'
        );

        // Ensure looker has not minted this puzzle already
        require(
            mintedPuzzle[_msgSender()][puzzleActive()] == false,
            'You`ve already minted this puzzle'
        );

        // Clear to mint

        // Increment token ID & puzzle counter
        currentTokenId.increment();
        uint256 _tokenId = currentTokenId.current();
        _puzzle.counter.increment();

        // Track that this looker has now minted this puzzle
        mintedPuzzle[_msgSender()][puzzleActive()] = true;

        // Track what puzzle this token is for, and its place within the puzzle
        tokens[_tokenId] = Token(puzzleActive(), _puzzle.counter.current());

        // First minter? Run payout.
        if (
            _puzzle.counter.current() == 1 &&
            address(this).balance > tx.gasprice
        ) {
            address beneficiaryCurator = curatorOf(puzzleActive() - 1);
            uint256 halfBal = SafeMath.div(address(this).balance, 2);
            Address.sendValue(payable(_msgSender()), halfBal);
            Address.sendValue(payable(beneficiaryCurator), halfBal);
        }

        // mint & return
        _safeMint(_msgSender(), _tokenId);
        return _tokenId;
    }

    /**
        @dev Convenience function to get the curator of any given puzzle
        @param _puzzleId token id
        @return address of curator
    */
    function curatorOf(uint256 _puzzleId) public view returns (address) {
        address _curator = puzzles[_puzzleId].curator;
        if (_curator == address(0x0)) {
            _curator = defaultCurator;
        }
        return _curator;
    }

    /**
        @dev Convenience function to get the public solution key of an puzzle
        @param _puzzleId token id
        @return address of solution
    */
    function solutionOf(uint256 _puzzleId) public view returns (address) {
        return puzzles[_puzzleId].solution;
    }

    /**
        @dev Convenience function to get the Puzzle ID of a given token
        @param _tokenId token id
        @return uint256 ID of corresponding puzzle
    */
    function puzzleOf(uint256 _tokenId) public view returns (uint256) {
        return tokens[_tokenId].puzzleId;
    }

    /**
        @param tokenId Token ID to burn
        User burn function for token id
     */
    function burn(uint256 tokenId) public {
        require(_isApprovedOrOwner(_msgSender(), tokenId), 'Not approved');
        _burn(tokenId);
    }

    function _verify(
        address signer,
        bytes32 hash,
        bytes memory signature
    ) private pure returns (bool) {
        return signer == ECDSA.recover(hash, signature);
    }

    function _hash(address account) private pure returns (bytes32) {
        return
            ECDSA.toEthSignedMessageHash(keccak256(abi.encodePacked(account)));
    }

    function totalSupply() external view returns (uint256) {
        return currentTokenId.current();
    }
}

File 2 of 17 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

abstract contract ReentrancyGuard {
    uint private unlocked = 1;
    modifier lock() {
        require(unlocked == 1, 'LOCKED');
        unlocked = 0;
        _;
        unlocked = 1;
    }
}

File 3 of 17 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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 4 of 17 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 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 10, 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 * 8) < value ? 1 : 0);
        }
    }
}

File 5 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 6 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 7 of 17 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV // Deprecated in v4.8
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

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

pragma solidity ^0.8.0;

import "./math/Math.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 `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);
    }
}

File 9 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 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.8.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
     * ====
     *
     * [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://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return 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.8.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 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 {
        if (batchSize > 1) {
            if (from != address(0)) {
                _balances[from] -= batchSize;
            }
            if (to != address(0)) {
                _balances[to] += batchSize;
            }
        }
    }

    /**
     * @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 {}
}

File 16 of 17 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "../utils/introspection/IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 17 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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 anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "evmVersion": "berlin",
  "libraries": {},
  "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":false,"internalType":"uint256","name":"puzzleId","type":"uint256"}],"name":"PuzzleCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"puzzleId","type":"uint256"}],"name":"PuzzleUpdated","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":"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":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string[]","name":"_challenges","type":"string[]"},{"internalType":"address[]","name":"_solutions","type":"address[]"},{"internalType":"address[]","name":"_curators","type":"address[]"}],"name":"createPuzzles","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_puzzleId","type":"uint256"}],"name":"curatorOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentQueuedPuzzleId","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentTokenId","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultCurator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"description","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeze","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"frozen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintedPuzzle","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":"puzzleActive","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"puzzleAnchorId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"puzzleInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"puzzleOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"puzzles","outputs":[{"internalType":"address","name":"solution","type":"address"},{"internalType":"address","name":"curator","type":"address"},{"components":[{"internalType":"uint256","name":"_value","type":"uint256"}],"internalType":"struct Counters.Counter","name":"counter","type":"tuple"},{"internalType":"string","name":"challenge","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseContractURI_","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_curator","type":"address"}],"name":"setDefaultCurator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_description","type":"string"}],"name":"setDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_interval","type":"uint256"}],"name":"setStartAndInterval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_puzzleId","type":"uint256"}],"name":"solutionOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokens","outputs":[{"internalType":"uint256","name":"puzzleId","type":"uint256"},{"internalType":"uint256","name":"number","type":"uint256"}],"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":[{"internalType":"uint256","name":"_puzzleId","type":"uint256"},{"internalType":"string","name":"_challenge","type":"string"},{"internalType":"address","name":"_solution","type":"address"},{"internalType":"address","name":"_curator","type":"address"}],"name":"updatePuzzle","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405260016007556001600a5562015180600b556000600c556000601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000601460006101000a81548160ff0219169083151502179055503480156200008457600080fd5b506040518060400160405280600a81526020017f6c6f6f6b6167612e696e000000000000000000000000000000000000000000008152506040518060400160405280600681526020017f4c4f4f4f4f4b000000000000000000000000000000000000000000000000000081525062000111620001056200014b60201b60201c565b6200015360201b60201c565b81600190805190602001906200012992919062000217565b5080600290805190602001906200014292919062000217565b5050506200032c565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200022590620002c7565b90600052602060002090601f01602090048101928262000249576000855562000295565b82601f106200026457805160ff191683800117855562000295565b8280016001018555821562000295579182015b828111156200029457825182559160200191906001019062000277565b5b509050620002a49190620002a8565b5090565b5b80821115620002c3576000816000905550600101620002a9565b5090565b60006002820490506001821680620002e057607f821691505b60208210811415620002f757620002f6620002fd565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b615fe9806200033c6000396000f3fe60806040526004361061026a5760003560e01c80637284e41611610144578063b422bcd9116100b6578063c87b56dd1161007a578063c87b56dd14610990578063e8a3d485146109cd578063e985e9c5146109f8578063eb7e50ed14610a35578063f2fde38b14610a5e578063f629d9be14610a8757610271565b8063b422bcd914610897578063b88d4fde146108d4578063bcb6d60c146108fd578063c4a7d08714610928578063c697d8dd1461096557610271565b806390ba26521161010857806390ba26521461078857806390c3f38f146107c8578063938e3d7b146107f157806395d89b411461081a57806399b47a7314610845578063a22cb4651461086e57610271565b80637284e4161461069a57806378e97925146106c55780637ab40036146106f05780637ba0e2e71461072d5780638da5cb5b1461075d57610271565b80632e3a42ea116101dd57806355f804b3116101a157806355f804b31461059e57806362a5af3b146105c75780636352211e146105de5780636f7216ac1461061b57806370a0823114610646578063715018a61461068357610271565b80632e3a42ea1461049457806331381c32146104d157806342842e0e1461050e57806342966c68146105375780634f64b2be1461056057610271565b8063095ea7b31161022f578063095ea7b3146103715780630b5867421461039a57806318160ddd146103c557806323b872dd146103f057806327a1aa5f146104195780632a55205a1461045657610271565b80629a9b7b1461027657806301ffc9a7146102a1578063054f7d9c146102de57806306fdde0314610309578063081812fc1461033457610271565b3661027157005b600080fd5b34801561028257600080fd5b5061028b610ab2565b604051610298919061522b565b60405180910390f35b3480156102ad57600080fd5b506102c860048036038101906102c39190614443565b610abe565b6040516102d59190614d89565b60405180910390f35b3480156102ea57600080fd5b506102f3610b38565b6040516103009190614d89565b60405180910390f35b34801561031557600080fd5b5061031e610b4b565b60405161032b9190614de9565b60405180910390f35b34801561034057600080fd5b5061035b60048036038101906103569190614533565b610bdd565b6040516103689190614cad565b60405180910390f35b34801561037d57600080fd5b5061039860048036038101906103939190614352565b610c23565b005b3480156103a657600080fd5b506103af610d3b565b6040516103bc919061522b565b60405180910390f35b3480156103d157600080fd5b506103da610d41565b6040516103e7919061522b565b60405180910390f35b3480156103fc57600080fd5b506104176004803603810190610412919061423c565b610d52565b005b34801561042557600080fd5b50610440600480360381019061043b9190614533565b610db2565b60405161044d9190614cad565b60405180910390f35b34801561046257600080fd5b5061047d600480360381019061047891906145e3565b610df2565b60405161048b929190614d60565b60405180910390f35b3480156104a057600080fd5b506104bb60048036038101906104b69190614560565b610e3e565b6040516104c8919061522b565b60405180910390f35b3480156104dd57600080fd5b506104f860048036038101906104f39190614533565b61113b565b6040516105059190614cad565b60405180910390f35b34801561051a57600080fd5b506105356004803603810190610530919061423c565b6111db565b005b34801561054357600080fd5b5061055e60048036038101906105599190614533565b6111fb565b005b34801561056c57600080fd5b5061058760048036038101906105829190614533565b611257565b604051610595929190615246565b60405180910390f35b3480156105aa57600080fd5b506105c560048036038101906105c091906144ea565b61127b565b005b3480156105d357600080fd5b506105dc611331565b005b3480156105ea57600080fd5b5061060560048036038101906106009190614533565b6113a6565b6040516106129190614cad565b60405180910390f35b34801561062757600080fd5b5061063061142d565b60405161063d9190614cad565b60405180910390f35b34801561065257600080fd5b5061066d600480360381019061066891906141cf565b611453565b60405161067a919061522b565b60405180910390f35b34801561068f57600080fd5b5061069861150b565b005b3480156106a657600080fd5b506106af61151f565b6040516106bc9190614de9565b60405180910390f35b3480156106d157600080fd5b506106da6115ad565b6040516106e7919061522b565b60405180910390f35b3480156106fc57600080fd5b5061071760048036038101906107129190614533565b6115b3565b604051610724919061522b565b60405180910390f35b6107476004803603810190610742919061449d565b6115d3565b604051610754919061522b565b60405180910390f35b34801561076957600080fd5b50610772611a2b565b60405161077f9190614cad565b60405180910390f35b34801561079457600080fd5b506107af60048036038101906107aa9190614533565b611a54565b6040516107bf9493929190614cc8565b60405180910390f35b3480156107d457600080fd5b506107ef60048036038101906107ea91906144ea565b611b60565b005b3480156107fd57600080fd5b50610818600480360381019061081391906144ea565b611c16565b005b34801561082657600080fd5b5061082f611ccc565b60405161083c9190614de9565b60405180910390f35b34801561085157600080fd5b5061086c600480360381019061086791906141cf565b611d5e565b005b34801561087a57600080fd5b5061089560048036038101906108909190614312565b611e8b565b005b3480156108a357600080fd5b506108be60048036038101906108b99190614392565b611ea1565b6040516108cb9190614d89565b60405180910390f35b3480156108e057600080fd5b506108fb60048036038101906108f6919061428f565b6121f9565b005b34801561090957600080fd5b5061091261225b565b60405161091f919061522b565b60405180910390f35b34801561093457600080fd5b5061094f600480360381019061094a9190614352565b612261565b60405161095c9190614d89565b60405180910390f35b34801561097157600080fd5b5061097a612290565b604051610987919061522b565b60405180910390f35b34801561099c57600080fd5b506109b760048036038101906109b29190614533565b61229c565b6040516109c49190614de9565b60405180910390f35b3480156109d957600080fd5b506109e2612304565b6040516109ef9190614de9565b60405180910390f35b348015610a0457600080fd5b50610a1f6004803603810190610a1a91906141fc565b612396565b604051610a2c9190614d89565b60405180910390f35b348015610a4157600080fd5b50610a5c6004803603810190610a5791906145e3565b61242a565b005b348015610a6a57600080fd5b50610a856004803603810190610a8091906141cf565b6125a6565b005b348015610a9357600080fd5b50610a9c61262a565b604051610aa9919061522b565b60405180910390f35b60098060000154905081565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b315750610b3082612692565b5b9050919050565b601460009054906101000a900460ff1681565b606060018054610b5a906155b5565b80601f0160208091040260200160405190810160405280929190818152602001828054610b86906155b5565b8015610bd35780601f10610ba857610100808354040283529160200191610bd3565b820191906000526020600020905b815481529060010190602001808311610bb657829003601f168201915b5050505050905090565b6000610be882612774565b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c2e826113a6565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c969061510b565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610cbe6127bf565b73ffffffffffffffffffffffffffffffffffffffff161480610ced5750610cec81610ce76127bf565b612396565b5b610d2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d239061518b565b60405180910390fd5b610d3683836127c7565b505050565b600a5481565b6000610d4d6009612880565b905090565b610d63610d5d6127bf565b8261288e565b610da2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9990614e2b565b60405180910390fd5b610dad838383612923565b505050565b60006012600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600080600060136000868152602001908152602001600020600001549050610e198161113b565b92506064600585610e2a919061545a565b610e349190615429565b9150509250929050565b6000610e48612c1d565b601460009054906101000a900460ff1615610e98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8f9061502b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166012600087815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610f3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3590614eeb565b60405180910390fd5b610f4661262a565b8511610f87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7e90614f6b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610fc757610fc4611a2b565b91505b60405180608001604052808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff168152602001604051806020016040528060008152508152602001858152506012600087815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060408201518160020160008201518160000155505060608201518160030190805190602001906110f5929190613e43565b509050507feeabd8cb7b8f7d8d9800ca194ba1d378920c5532d0775d5c0c6cf3bbcb36c63685604051611128919061522b565b60405180910390a1849050949350505050565b6000806012600084815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156111d257601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505b80915050919050565b6111f6838383604051806020016040528060008152506121f9565b505050565b61120c6112066127bf565b8261288e565b61124b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112429061500b565b60405180910390fd5b61125481612c9b565b50565b60136020528060005260406000206000915090508060000154908060010154905082565b611283612c1d565b601460009054906101000a900460ff16156112d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ca9061502b565b60405180910390fd5b6000815111611317576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130e906150ab565b60405180910390fd5b80600e908051906020019061132d929190613e43565b5050565b611339612c1d565b601460009054906101000a900460ff1615611389576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113809061502b565b60405180910390fd5b6001601460006101000a81548160ff021916908315150217905550565b6000806113b283612de9565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611424576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141b906150cb565b60405180910390fd5b80915050919050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156114c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114bb90614feb565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611513612c1d565b61151d6000612e26565b565b600d805461152c906155b5565b80601f0160208091040260200160405190810160405280929190818152602001828054611558906155b5565b80156115a55780601f1061157a576101008083540402835291602001916115a5565b820191906000526020600020905b81548152906001019060200180831161158857829003601f168201915b505050505081565b600c5481565b600060136000838152602001908152602001600020600001549050919050565b6000601460009054906101000a900460ff1615611625576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161c9061502b565b60405180910390fd5b600061163761163261262a565b61113b565b90506116416127bf565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156116af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a69061512b565b60405180910390fd5b6000601260006116bd61262a565b8152602001908152602001600020905060008160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611766576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175d906151cb565b60405180910390fd5b6117c48161177a6117756127bf565b612eea565b88888080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612f22565b611803576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117fa906151eb565b60405180910390fd5b60001515601160006118136127bf565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061185761262a565b815260200190815260200160002060009054906101000a900460ff161515146118b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ac906151ab565b60405180910390fd5b6118bf6009612f65565b60006118cb6009612880565b90506118d983600201612f65565b6001601160006118e76127bf565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061192b61262a565b815260200190815260200160002060006101000a81548160ff021916908315150217905550604051806040016040528061196361262a565b815260200161197485600201612880565b81525060136000838152602001908152602001600020600082015181600001556020820151816001015590505060016119af84600201612880565b1480156119bb57503a47115b15611a0d5760006119de60016119cf61262a565b6119d991906154b4565b61113b565b905060006119ed476002612f7b565b9050611a006119fa6127bf565b82612f91565b611a0a8282612f91565b50505b611a1e611a186127bf565b82613085565b8094505050505092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60126020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060020160405180602001604052908160008201548152505090806003018054611add906155b5565b80601f0160208091040260200160405190810160405280929190818152602001828054611b09906155b5565b8015611b565780601f10611b2b57610100808354040283529160200191611b56565b820191906000526020600020905b815481529060010190602001808311611b3957829003601f168201915b5050505050905084565b611b68612c1d565b601460009054906101000a900460ff1615611bb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611baf9061502b565b60405180910390fd5b6000815111611bfc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf39061514b565b60405180910390fd5b80600d9080519060200190611c12929190613e43565b5050565b611c1e612c1d565b601460009054906101000a900460ff1615611c6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c659061502b565b60405180910390fd5b6000815111611cb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca99061520b565b60405180910390fd5b80600f9080519060200190611cc8929190613e43565b5050565b606060028054611cdb906155b5565b80601f0160208091040260200160405190810160405280929190818152602001828054611d07906155b5565b8015611d545780601f10611d2957610100808354040283529160200191611d54565b820191906000526020600020905b815481529060010190602001808311611d3757829003601f168201915b5050505050905090565b611d66612c1d565b601460009054906101000a900460ff1615611db6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dad9061502b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611e47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e3e9061516b565b60405180910390fd5b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611e9d611e966127bf565b83836130a3565b5050565b6000611eab612c1d565b601460009054906101000a900460ff1615611efb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef29061502b565b60405180910390fd5b60005b868690508110156121eb57600073ffffffffffffffffffffffffffffffffffffffff16838281518110611f3457611f3361574b565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff161415611fae57611f60611a2b565b838281518110611f7357611f7261574b565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250505b611fb86008612f65565b6000611fc46008612880565b90506040518060800160405280878785818110611fe457611fe361574b565b5b9050602002016020810190611ff991906141cf565b73ffffffffffffffffffffffffffffffffffffffff1681526020018584815181106120275761202661574b565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1681526020016040518060200160405280600081525081526020018989858181106120725761207161574b565b5b9050602002810190612084919061526f565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508152506012600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550604082015181600201600082015181600001555050606082015181600301908051906020019061219c929190613e43565b509050507f85fbe01a123b6ceb66ce49b09f99065af4bd9d78eed50e11475726f3cd2ea041816040516121cf919061522b565b60405180910390a15080806121e390615618565b915050611efe565b506001905095945050505050565b61220a6122046127bf565b8361288e565b612249576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161224090614e2b565b60405180910390fd5b61225584848484613210565b50505050565b600b5481565b60116020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b60088060000154905081565b60606122a782612774565b60006122b161326c565b905060008151116122d157604051806020016040528060008152506122fc565b806122db846132fe565b6040516020016122ec929190614c4e565b6040516020818303038152906040525b915050919050565b6060600f8054612313906155b5565b80601f016020809104026020016040519081016040528092919081815260200182805461233f906155b5565b801561238c5780601f106123615761010080835404028352916020019161238c565b820191906000526020600020905b81548152906001019060200180831161236f57829003601f168201915b5050505050905090565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612432612c1d565b601460009054906101000a900460ff1615612482576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124799061502b565b60405180910390fd5b603c81116124c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124bc906150eb565b60405180910390fd5b6000600b541161250a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250190614f4b565b60405180910390fd5b42821161254c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125439061506b565b60405180910390fd5b6000600c54111561259457600061257061256842600c546133d6565b600b54612f7b565b9050600181600a5461258291906153d3565b61258c91906153d3565b600a81905550505b81600c8190555080600b819055505050565b6125ae612c1d565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561261e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161261590614e8b565b60405180910390fd5b61262781612e26565b50565b600080600c54148061263d575042600c54115b806126545750601460009054906101000a900460ff165b15612662576000905061268f565b600061267b61267342600c546133d6565b600b54612f7b565b905080600a5461268b91906153d3565b9150505b90565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061275d57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061276d575061276c826133ec565b5b9050919050565b61277d81613456565b6127bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127b3906150cb565b60405180910390fd5b50565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661283a836113a6565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081600001549050919050565b60008061289a836113a6565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806128dc57506128db8185612396565b5b8061291a57508373ffffffffffffffffffffffffffffffffffffffff1661290284610bdd565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612943826113a6565b73ffffffffffffffffffffffffffffffffffffffff1614612999576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161299090614eab565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612a09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a0090614f0b565b60405180910390fd5b612a168383836001613497565b8273ffffffffffffffffffffffffffffffffffffffff16612a36826113a6565b73ffffffffffffffffffffffffffffffffffffffff1614612a8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a8390614eab565b60405180910390fd5b6005600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612c1883838360016135bd565b505050565b612c256127bf565b73ffffffffffffffffffffffffffffffffffffffff16612c43611a2b565b73ffffffffffffffffffffffffffffffffffffffff1614612c99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c909061508b565b60405180910390fd5b565b6000612ca6826113a6565b9050612cb6816000846001613497565b612cbf826113a6565b90506005600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506003600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612de58160008460016135bd565b5050565b60006003600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000612f1b82604051602001612f009190614c33565b604051602081830303815290604052805190602001206135c3565b9050919050565b6000612f2e83836135f3565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161490509392505050565b6001816000016000828254019250508190555050565b60008183612f899190615429565b905092915050565b80471015612fd4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fcb90614fcb565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612ffa90614c98565b60006040518083038185875af1925050503d8060008114613037576040519150601f19603f3d011682016040523d82523d6000602084013e61303c565b606091505b5050905080613080576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161307790614f8b565b60405180910390fd5b505050565b61309f82826040518060200160405280600081525061361a565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613112576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161310990614f2b565b60405180910390fd5b80600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516132039190614d89565b60405180910390a3505050565b61321b848484612923565b61322784848484613675565b613266576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161325d90614e6b565b60405180910390fd5b50505050565b6060600e805461327b906155b5565b80601f01602080910402602001604051908101604052809291908181526020018280546132a7906155b5565b80156132f45780601f106132c9576101008083540402835291602001916132f4565b820191906000526020600020905b8154815290600101906020018083116132d757829003601f168201915b5050505050905090565b60606000600161330d8461380c565b01905060008167ffffffffffffffff81111561332c5761332b61577a565b5b6040519080825280601f01601f19166020018201604052801561335e5781602001600182028036833780820191505090505b509050600082602001820190505b6001156133cb578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816133b5576133b46156be565b5b04945060008514156133c6576133cb565b61336c565b819350505050919050565b600081836133e491906154b4565b905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff1661347883612de9565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60018111156135b757600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161461352b5780600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461352391906154b4565b925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146135b65780600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546135ae91906153d3565b925050819055505b5b50505050565b50505050565b6000816040516020016135d69190614c72565b604051602081830303815290604052805190602001209050919050565b6000806000613602858561395f565b9150915061360f816139b1565b819250505092915050565b6136248383613b1f565b6136316000848484613675565b613670576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161366790614e6b565b60405180910390fd5b505050565b60006136968473ffffffffffffffffffffffffffffffffffffffff16613d3d565b156137ff578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026136bf6127bf565b8786866040518563ffffffff1660e01b81526004016136e19493929190614d14565b602060405180830381600087803b1580156136fb57600080fd5b505af192505050801561372c57506040513d601f19601f820116820180604052508101906137299190614470565b60015b6137af573d806000811461375c576040519150601f19603f3d011682016040523d82523d6000602084013e613761565b606091505b506000815114156137a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161379e90614e6b565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613804565b600190505b949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061386a577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816138605761385f6156be565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106138a7576d04ee2d6d415b85acef8100000000838161389d5761389c6156be565b5b0492506020810190505b662386f26fc1000083106138d657662386f26fc1000083816138cc576138cb6156be565b5b0492506010810190505b6305f5e10083106138ff576305f5e10083816138f5576138f46156be565b5b0492506008810190505b612710831061392457612710838161391a576139196156be565b5b0492506004810190505b60648310613947576064838161393d5761393c6156be565b5b0492506002810190505b600a8310613956576001810190505b80915050919050565b6000806041835114156139a15760008060006020860151925060408601519150606086015160001a905061399587828585613d60565b945094505050506139aa565b60006002915091505b9250929050565b600060048111156139c5576139c46156ed565b5b8160048111156139d8576139d76156ed565b5b14156139e357613b1c565b600160048111156139f7576139f66156ed565b5b816004811115613a0a57613a096156ed565b5b1415613a4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a4290614e0b565b60405180910390fd5b60026004811115613a5f57613a5e6156ed565b5b816004811115613a7257613a716156ed565b5b1415613ab3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613aaa90614e4b565b60405180910390fd5b60036004811115613ac757613ac66156ed565b5b816004811115613ada57613ad96156ed565b5b1415613b1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b1290614fab565b60405180910390fd5b5b50565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b869061504b565b60405180910390fd5b613b9881613456565b15613bd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613bcf90614ecb565b60405180910390fd5b613be6600083836001613497565b613bef81613456565b15613c2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c2690614ecb565b60405180910390fd5b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613d396000838360016135bd565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613d9b576000600391509150613e3a565b600060018787878760405160008152602001604052604051613dc09493929190614da4565b6020604051602081039080840390855afa158015613de2573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613e3157600060019250925050613e3a565b80600092509250505b94509492505050565b828054613e4f906155b5565b90600052602060002090601f016020900481019282613e715760008555613eb8565b82601f10613e8a57805160ff1916838001178555613eb8565b82800160010185558215613eb8579182015b82811115613eb7578251825591602001919060010190613e9c565b5b509050613ec59190613ec9565b5090565b5b80821115613ee2576000816000905550600101613eca565b5090565b6000613ef9613ef4846152f7565b6152d2565b90508083825260208201905082856020860282011115613f1c57613f1b6157bd565b5b60005b85811015613f4c5781613f328882613fda565b845260208401935060208301925050600181019050613f1f565b5050509392505050565b6000613f69613f6484615323565b6152d2565b905082815260208101848484011115613f8557613f846157c7565b5b613f90848285615573565b509392505050565b6000613fab613fa684615354565b6152d2565b905082815260208101848484011115613fc757613fc66157c7565b5b613fd2848285615573565b509392505050565b600081359050613fe981615f57565b92915050565b60008083601f840112614005576140046157ae565b5b8235905067ffffffffffffffff811115614022576140216157a9565b5b60208301915083602082028301111561403e5761403d6157bd565b5b9250929050565b600082601f83011261405a576140596157ae565b5b813561406a848260208601613ee6565b91505092915050565b60008083601f840112614089576140886157ae565b5b8235905067ffffffffffffffff8111156140a6576140a56157a9565b5b6020830191508360208202830111156140c2576140c16157bd565b5b9250929050565b6000813590506140d881615f6e565b92915050565b6000813590506140ed81615f85565b92915050565b60008151905061410281615f85565b92915050565b60008083601f84011261411e5761411d6157ae565b5b8235905067ffffffffffffffff81111561413b5761413a6157a9565b5b602083019150836001820283011115614157576141566157bd565b5b9250929050565b600082601f830112614173576141726157ae565b5b8135614183848260208601613f56565b91505092915050565b600082601f8301126141a1576141a06157ae565b5b81356141b1848260208601613f98565b91505092915050565b6000813590506141c981615f9c565b92915050565b6000602082840312156141e5576141e46157d1565b5b60006141f384828501613fda565b91505092915050565b60008060408385031215614213576142126157d1565b5b600061422185828601613fda565b925050602061423285828601613fda565b9150509250929050565b600080600060608486031215614255576142546157d1565b5b600061426386828701613fda565b935050602061427486828701613fda565b9250506040614285868287016141ba565b9150509250925092565b600080600080608085870312156142a9576142a86157d1565b5b60006142b787828801613fda565b94505060206142c887828801613fda565b93505060406142d9878288016141ba565b925050606085013567ffffffffffffffff8111156142fa576142f96157cc565b5b6143068782880161415e565b91505092959194509250565b60008060408385031215614329576143286157d1565b5b600061433785828601613fda565b9250506020614348858286016140c9565b9150509250929050565b60008060408385031215614369576143686157d1565b5b600061437785828601613fda565b9250506020614388858286016141ba565b9150509250929050565b6000806000806000606086880312156143ae576143ad6157d1565b5b600086013567ffffffffffffffff8111156143cc576143cb6157cc565b5b6143d888828901614073565b9550955050602086013567ffffffffffffffff8111156143fb576143fa6157cc565b5b61440788828901613fef565b9350935050604086013567ffffffffffffffff81111561442a576144296157cc565b5b61443688828901614045565b9150509295509295909350565b600060208284031215614459576144586157d1565b5b6000614467848285016140de565b91505092915050565b600060208284031215614486576144856157d1565b5b6000614494848285016140f3565b91505092915050565b600080602083850312156144b4576144b36157d1565b5b600083013567ffffffffffffffff8111156144d2576144d16157cc565b5b6144de85828601614108565b92509250509250929050565b600060208284031215614500576144ff6157d1565b5b600082013567ffffffffffffffff81111561451e5761451d6157cc565b5b61452a8482850161418c565b91505092915050565b600060208284031215614549576145486157d1565b5b6000614557848285016141ba565b91505092915050565b6000806000806080858703121561457a576145796157d1565b5b6000614588878288016141ba565b945050602085013567ffffffffffffffff8111156145a9576145a86157cc565b5b6145b58782880161418c565b93505060406145c687828801613fda565b92505060606145d787828801613fda565b91505092959194509250565b600080604083850312156145fa576145f96157d1565b5b6000614608858286016141ba565b9250506020614619858286016141ba565b9150509250929050565b61462c816154e8565b82525050565b61464361463e826154e8565b615661565b82525050565b614652816154fa565b82525050565b61466181615506565b82525050565b61467861467382615506565b615673565b82525050565b600061468982615385565b614693818561539b565b93506146a3818560208601615582565b6146ac816157d6565b840191505092915050565b60006146c282615390565b6146cc81856153b7565b93506146dc818560208601615582565b6146e5816157d6565b840191505092915050565b60006146fb82615390565b61470581856153c8565b9350614715818560208601615582565b80840191505092915050565b600061472e6018836153b7565b9150614739826157f4565b602082019050919050565b6000614751602d836153b7565b915061475c8261581d565b604082019050919050565b6000614774601f836153b7565b915061477f8261586c565b602082019050919050565b6000614797601c836153c8565b91506147a282615895565b601c82019050919050565b60006147ba6032836153b7565b91506147c5826158be565b604082019050919050565b60006147dd6026836153b7565b91506147e88261590d565b604082019050919050565b60006148006025836153b7565b915061480b8261595c565b604082019050919050565b6000614823601c836153b7565b915061482e826159ab565b602082019050919050565b60006148466015836153b7565b9150614851826159d4565b602082019050919050565b60006148696024836153b7565b9150614874826159fd565b604082019050919050565b600061488c6019836153b7565b915061489782615a4c565b602082019050919050565b60006148af6022836153b7565b91506148ba82615a75565b604082019050919050565b60006148d2601e836153b7565b91506148dd82615ac4565b602082019050919050565b60006148f5603a836153b7565b915061490082615aed565b604082019050919050565b60006149186022836153b7565b915061492382615b3c565b604082019050919050565b600061493b601d836153b7565b915061494682615b8b565b602082019050919050565b600061495e6029836153b7565b915061496982615bb4565b604082019050919050565b6000614981600c836153b7565b915061498c82615c03565b602082019050919050565b60006149a46012836153b7565b91506149af82615c2c565b602082019050919050565b60006149c76020836153b7565b91506149d282615c55565b602082019050919050565b60006149ea6020836153b7565b91506149f582615c7e565b602082019050919050565b6000614a0d6020836153b7565b9150614a1882615ca7565b602082019050919050565b6000614a30600f836153b7565b9150614a3b82615cd0565b602082019050919050565b6000614a536018836153b7565b9150614a5e82615cf9565b602082019050919050565b6000614a76601c836153b7565b9150614a8182615d22565b602082019050919050565b6000614a996021836153b7565b9150614aa482615d4b565b604082019050919050565b6000614abc6017836153b7565b9150614ac782615d9a565b602082019050919050565b6000614adf6013836153b7565b9150614aea82615dc3565b602082019050919050565b6000614b026028836153b7565b9150614b0d82615dec565b604082019050919050565b6000614b256000836153ac565b9150614b3082615e3b565b600082019050919050565b6000614b48603d836153b7565b9150614b5382615e3e565b604082019050919050565b6000614b6b6021836153b7565b9150614b7682615e8d565b604082019050919050565b6000614b8e6019836153b7565b9150614b9982615edc565b602082019050919050565b6000614bb1601a836153b7565b9150614bbc82615f05565b602082019050919050565b6000614bd46017836153b7565b9150614bdf82615f2e565b602082019050919050565b602082016000820151614c006000850182614c06565b50505050565b614c0f8161555c565b82525050565b614c1e8161555c565b82525050565b614c2d81615566565b82525050565b6000614c3f8284614632565b60148201915081905092915050565b6000614c5a82856146f0565b9150614c6682846146f0565b91508190509392505050565b6000614c7d8261478a565b9150614c898284614667565b60208201915081905092915050565b6000614ca382614b18565b9150819050919050565b6000602082019050614cc26000830184614623565b92915050565b6000608082019050614cdd6000830187614623565b614cea6020830186614623565b614cf76040830185614bea565b8181036060830152614d0981846146b7565b905095945050505050565b6000608082019050614d296000830187614623565b614d366020830186614623565b614d436040830185614c15565b8181036060830152614d55818461467e565b905095945050505050565b6000604082019050614d756000830185614623565b614d826020830184614c15565b9392505050565b6000602082019050614d9e6000830184614649565b92915050565b6000608082019050614db96000830187614658565b614dc66020830186614c24565b614dd36040830185614658565b614de06060830184614658565b95945050505050565b60006020820190508181036000830152614e0381846146b7565b905092915050565b60006020820190508181036000830152614e2481614721565b9050919050565b60006020820190508181036000830152614e4481614744565b9050919050565b60006020820190508181036000830152614e6481614767565b9050919050565b60006020820190508181036000830152614e84816147ad565b9050919050565b60006020820190508181036000830152614ea4816147d0565b9050919050565b60006020820190508181036000830152614ec4816147f3565b9050919050565b60006020820190508181036000830152614ee481614816565b9050919050565b60006020820190508181036000830152614f0481614839565b9050919050565b60006020820190508181036000830152614f248161485c565b9050919050565b60006020820190508181036000830152614f448161487f565b9050919050565b60006020820190508181036000830152614f64816148a2565b9050919050565b60006020820190508181036000830152614f84816148c5565b9050919050565b60006020820190508181036000830152614fa4816148e8565b9050919050565b60006020820190508181036000830152614fc48161490b565b9050919050565b60006020820190508181036000830152614fe48161492e565b9050919050565b6000602082019050818103600083015261500481614951565b9050919050565b6000602082019050818103600083015261502481614974565b9050919050565b6000602082019050818103600083015261504481614997565b9050919050565b60006020820190508181036000830152615064816149ba565b9050919050565b60006020820190508181036000830152615084816149dd565b9050919050565b600060208201905081810360008301526150a481614a00565b9050919050565b600060208201905081810360008301526150c481614a23565b9050919050565b600060208201905081810360008301526150e481614a46565b9050919050565b6000602082019050818103600083015261510481614a69565b9050919050565b6000602082019050818103600083015261512481614a8c565b9050919050565b6000602082019050818103600083015261514481614aaf565b9050919050565b6000602082019050818103600083015261516481614ad2565b9050919050565b6000602082019050818103600083015261518481614af5565b9050919050565b600060208201905081810360008301526151a481614b3b565b9050919050565b600060208201905081810360008301526151c481614b5e565b9050919050565b600060208201905081810360008301526151e481614b81565b9050919050565b6000602082019050818103600083015261520481614ba4565b9050919050565b6000602082019050818103600083015261522481614bc7565b9050919050565b60006020820190506152406000830184614c15565b92915050565b600060408201905061525b6000830185614c15565b6152686020830184614c15565b9392505050565b6000808335600160200384360303811261528c5761528b6157b8565b5b80840192508235915067ffffffffffffffff8211156152ae576152ad6157b3565b5b6020830192506001820236038313156152ca576152c96157c2565b5b509250929050565b60006152dc6152ed565b90506152e882826155e7565b919050565b6000604051905090565b600067ffffffffffffffff8211156153125761531161577a565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561533e5761533d61577a565b5b615347826157d6565b9050602081019050919050565b600067ffffffffffffffff82111561536f5761536e61577a565b5b615378826157d6565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006153de8261555c565b91506153e98361555c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561541e5761541d61568f565b5b828201905092915050565b60006154348261555c565b915061543f8361555c565b92508261544f5761544e6156be565b5b828204905092915050565b60006154658261555c565b91506154708361555c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156154a9576154a861568f565b5b828202905092915050565b60006154bf8261555c565b91506154ca8361555c565b9250828210156154dd576154dc61568f565b5b828203905092915050565b60006154f38261553c565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b838110156155a0578082015181840152602081019050615585565b838111156155af576000848401525b50505050565b600060028204905060018216806155cd57607f821691505b602082108114156155e1576155e061571c565b5b50919050565b6155f0826157d6565b810181811067ffffffffffffffff8211171561560f5761560e61577a565b5b80604052505050565b60006156238261555c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156156565761565561568f565b5b600182019050919050565b600061566c8261567d565b9050919050565b6000819050919050565b6000615688826157e7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f50757a7a6c6520646f6573206e6f742065786973740000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f436f6e7472616374206d75737420626520696e697469616c697a65642066697260008201527f7374000000000000000000000000000000000000000000000000000000000000602082015250565b7f4d757374206265206120717565756564206675747572652070757a7a6c650000600082015250565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b7f4e6f7420617070726f7665640000000000000000000000000000000000000000600082015250565b7f436f6e74726163742069732066726f7a656e0000000000000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f53746172742074696d65206d75737420626520696e2074686520667574757265600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f496e76616c6964206261736555726c0000000000000000000000000000000000600082015250565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b7f4d696e696d756d20696e74657276616c2069732031206d696e75746500000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f5468652063757261746f722063616e6e6f74206d696e74000000000000000000600082015250565b7f496e76616c6964206465736372697074696f6e00000000000000000000000000600082015250565b7f5468652064656661756c742063757261746f722068617320616c72656164792060008201527f6265656e20736574000000000000000000000000000000000000000000000000602082015250565b50565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b7f596f7560766520616c7265616479206d696e74656420746869732070757a7a6c60008201527f6500000000000000000000000000000000000000000000000000000000000000602082015250565b7f5468657265206973206e6f206163746976652070757a7a6c6500000000000000600082015250565b7f496e76616c6964207369676e61747572652070726f7669646564000000000000600082015250565b7f496e76616c69642062617365436f6e747261637455726c000000000000000000600082015250565b615f60816154e8565b8114615f6b57600080fd5b50565b615f77816154fa565b8114615f8257600080fd5b50565b615f8e81615510565b8114615f9957600080fd5b50565b615fa58161555c565b8114615fb057600080fd5b5056fea26469706673582212207f2cd59049faf060798d8150e111b78a8c4ee95a064bc963bef4a3fa4a11ec3764736f6c63430008060033

Deployed Bytecode

0x60806040526004361061026a5760003560e01c80637284e41611610144578063b422bcd9116100b6578063c87b56dd1161007a578063c87b56dd14610990578063e8a3d485146109cd578063e985e9c5146109f8578063eb7e50ed14610a35578063f2fde38b14610a5e578063f629d9be14610a8757610271565b8063b422bcd914610897578063b88d4fde146108d4578063bcb6d60c146108fd578063c4a7d08714610928578063c697d8dd1461096557610271565b806390ba26521161010857806390ba26521461078857806390c3f38f146107c8578063938e3d7b146107f157806395d89b411461081a57806399b47a7314610845578063a22cb4651461086e57610271565b80637284e4161461069a57806378e97925146106c55780637ab40036146106f05780637ba0e2e71461072d5780638da5cb5b1461075d57610271565b80632e3a42ea116101dd57806355f804b3116101a157806355f804b31461059e57806362a5af3b146105c75780636352211e146105de5780636f7216ac1461061b57806370a0823114610646578063715018a61461068357610271565b80632e3a42ea1461049457806331381c32146104d157806342842e0e1461050e57806342966c68146105375780634f64b2be1461056057610271565b8063095ea7b31161022f578063095ea7b3146103715780630b5867421461039a57806318160ddd146103c557806323b872dd146103f057806327a1aa5f146104195780632a55205a1461045657610271565b80629a9b7b1461027657806301ffc9a7146102a1578063054f7d9c146102de57806306fdde0314610309578063081812fc1461033457610271565b3661027157005b600080fd5b34801561028257600080fd5b5061028b610ab2565b604051610298919061522b565b60405180910390f35b3480156102ad57600080fd5b506102c860048036038101906102c39190614443565b610abe565b6040516102d59190614d89565b60405180910390f35b3480156102ea57600080fd5b506102f3610b38565b6040516103009190614d89565b60405180910390f35b34801561031557600080fd5b5061031e610b4b565b60405161032b9190614de9565b60405180910390f35b34801561034057600080fd5b5061035b60048036038101906103569190614533565b610bdd565b6040516103689190614cad565b60405180910390f35b34801561037d57600080fd5b5061039860048036038101906103939190614352565b610c23565b005b3480156103a657600080fd5b506103af610d3b565b6040516103bc919061522b565b60405180910390f35b3480156103d157600080fd5b506103da610d41565b6040516103e7919061522b565b60405180910390f35b3480156103fc57600080fd5b506104176004803603810190610412919061423c565b610d52565b005b34801561042557600080fd5b50610440600480360381019061043b9190614533565b610db2565b60405161044d9190614cad565b60405180910390f35b34801561046257600080fd5b5061047d600480360381019061047891906145e3565b610df2565b60405161048b929190614d60565b60405180910390f35b3480156104a057600080fd5b506104bb60048036038101906104b69190614560565b610e3e565b6040516104c8919061522b565b60405180910390f35b3480156104dd57600080fd5b506104f860048036038101906104f39190614533565b61113b565b6040516105059190614cad565b60405180910390f35b34801561051a57600080fd5b506105356004803603810190610530919061423c565b6111db565b005b34801561054357600080fd5b5061055e60048036038101906105599190614533565b6111fb565b005b34801561056c57600080fd5b5061058760048036038101906105829190614533565b611257565b604051610595929190615246565b60405180910390f35b3480156105aa57600080fd5b506105c560048036038101906105c091906144ea565b61127b565b005b3480156105d357600080fd5b506105dc611331565b005b3480156105ea57600080fd5b5061060560048036038101906106009190614533565b6113a6565b6040516106129190614cad565b60405180910390f35b34801561062757600080fd5b5061063061142d565b60405161063d9190614cad565b60405180910390f35b34801561065257600080fd5b5061066d600480360381019061066891906141cf565b611453565b60405161067a919061522b565b60405180910390f35b34801561068f57600080fd5b5061069861150b565b005b3480156106a657600080fd5b506106af61151f565b6040516106bc9190614de9565b60405180910390f35b3480156106d157600080fd5b506106da6115ad565b6040516106e7919061522b565b60405180910390f35b3480156106fc57600080fd5b5061071760048036038101906107129190614533565b6115b3565b604051610724919061522b565b60405180910390f35b6107476004803603810190610742919061449d565b6115d3565b604051610754919061522b565b60405180910390f35b34801561076957600080fd5b50610772611a2b565b60405161077f9190614cad565b60405180910390f35b34801561079457600080fd5b506107af60048036038101906107aa9190614533565b611a54565b6040516107bf9493929190614cc8565b60405180910390f35b3480156107d457600080fd5b506107ef60048036038101906107ea91906144ea565b611b60565b005b3480156107fd57600080fd5b50610818600480360381019061081391906144ea565b611c16565b005b34801561082657600080fd5b5061082f611ccc565b60405161083c9190614de9565b60405180910390f35b34801561085157600080fd5b5061086c600480360381019061086791906141cf565b611d5e565b005b34801561087a57600080fd5b5061089560048036038101906108909190614312565b611e8b565b005b3480156108a357600080fd5b506108be60048036038101906108b99190614392565b611ea1565b6040516108cb9190614d89565b60405180910390f35b3480156108e057600080fd5b506108fb60048036038101906108f6919061428f565b6121f9565b005b34801561090957600080fd5b5061091261225b565b60405161091f919061522b565b60405180910390f35b34801561093457600080fd5b5061094f600480360381019061094a9190614352565b612261565b60405161095c9190614d89565b60405180910390f35b34801561097157600080fd5b5061097a612290565b604051610987919061522b565b60405180910390f35b34801561099c57600080fd5b506109b760048036038101906109b29190614533565b61229c565b6040516109c49190614de9565b60405180910390f35b3480156109d957600080fd5b506109e2612304565b6040516109ef9190614de9565b60405180910390f35b348015610a0457600080fd5b50610a1f6004803603810190610a1a91906141fc565b612396565b604051610a2c9190614d89565b60405180910390f35b348015610a4157600080fd5b50610a5c6004803603810190610a5791906145e3565b61242a565b005b348015610a6a57600080fd5b50610a856004803603810190610a8091906141cf565b6125a6565b005b348015610a9357600080fd5b50610a9c61262a565b604051610aa9919061522b565b60405180910390f35b60098060000154905081565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b315750610b3082612692565b5b9050919050565b601460009054906101000a900460ff1681565b606060018054610b5a906155b5565b80601f0160208091040260200160405190810160405280929190818152602001828054610b86906155b5565b8015610bd35780601f10610ba857610100808354040283529160200191610bd3565b820191906000526020600020905b815481529060010190602001808311610bb657829003601f168201915b5050505050905090565b6000610be882612774565b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c2e826113a6565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c969061510b565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610cbe6127bf565b73ffffffffffffffffffffffffffffffffffffffff161480610ced5750610cec81610ce76127bf565b612396565b5b610d2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d239061518b565b60405180910390fd5b610d3683836127c7565b505050565b600a5481565b6000610d4d6009612880565b905090565b610d63610d5d6127bf565b8261288e565b610da2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9990614e2b565b60405180910390fd5b610dad838383612923565b505050565b60006012600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600080600060136000868152602001908152602001600020600001549050610e198161113b565b92506064600585610e2a919061545a565b610e349190615429565b9150509250929050565b6000610e48612c1d565b601460009054906101000a900460ff1615610e98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8f9061502b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166012600087815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610f3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3590614eeb565b60405180910390fd5b610f4661262a565b8511610f87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7e90614f6b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610fc757610fc4611a2b565b91505b60405180608001604052808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff168152602001604051806020016040528060008152508152602001858152506012600087815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060408201518160020160008201518160000155505060608201518160030190805190602001906110f5929190613e43565b509050507feeabd8cb7b8f7d8d9800ca194ba1d378920c5532d0775d5c0c6cf3bbcb36c63685604051611128919061522b565b60405180910390a1849050949350505050565b6000806012600084815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156111d257601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505b80915050919050565b6111f6838383604051806020016040528060008152506121f9565b505050565b61120c6112066127bf565b8261288e565b61124b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112429061500b565b60405180910390fd5b61125481612c9b565b50565b60136020528060005260406000206000915090508060000154908060010154905082565b611283612c1d565b601460009054906101000a900460ff16156112d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ca9061502b565b60405180910390fd5b6000815111611317576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130e906150ab565b60405180910390fd5b80600e908051906020019061132d929190613e43565b5050565b611339612c1d565b601460009054906101000a900460ff1615611389576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113809061502b565b60405180910390fd5b6001601460006101000a81548160ff021916908315150217905550565b6000806113b283612de9565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611424576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141b906150cb565b60405180910390fd5b80915050919050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156114c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114bb90614feb565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611513612c1d565b61151d6000612e26565b565b600d805461152c906155b5565b80601f0160208091040260200160405190810160405280929190818152602001828054611558906155b5565b80156115a55780601f1061157a576101008083540402835291602001916115a5565b820191906000526020600020905b81548152906001019060200180831161158857829003601f168201915b505050505081565b600c5481565b600060136000838152602001908152602001600020600001549050919050565b6000601460009054906101000a900460ff1615611625576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161c9061502b565b60405180910390fd5b600061163761163261262a565b61113b565b90506116416127bf565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156116af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a69061512b565b60405180910390fd5b6000601260006116bd61262a565b8152602001908152602001600020905060008160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611766576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175d906151cb565b60405180910390fd5b6117c48161177a6117756127bf565b612eea565b88888080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612f22565b611803576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117fa906151eb565b60405180910390fd5b60001515601160006118136127bf565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061185761262a565b815260200190815260200160002060009054906101000a900460ff161515146118b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ac906151ab565b60405180910390fd5b6118bf6009612f65565b60006118cb6009612880565b90506118d983600201612f65565b6001601160006118e76127bf565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061192b61262a565b815260200190815260200160002060006101000a81548160ff021916908315150217905550604051806040016040528061196361262a565b815260200161197485600201612880565b81525060136000838152602001908152602001600020600082015181600001556020820151816001015590505060016119af84600201612880565b1480156119bb57503a47115b15611a0d5760006119de60016119cf61262a565b6119d991906154b4565b61113b565b905060006119ed476002612f7b565b9050611a006119fa6127bf565b82612f91565b611a0a8282612f91565b50505b611a1e611a186127bf565b82613085565b8094505050505092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60126020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060020160405180602001604052908160008201548152505090806003018054611add906155b5565b80601f0160208091040260200160405190810160405280929190818152602001828054611b09906155b5565b8015611b565780601f10611b2b57610100808354040283529160200191611b56565b820191906000526020600020905b815481529060010190602001808311611b3957829003601f168201915b5050505050905084565b611b68612c1d565b601460009054906101000a900460ff1615611bb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611baf9061502b565b60405180910390fd5b6000815111611bfc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf39061514b565b60405180910390fd5b80600d9080519060200190611c12929190613e43565b5050565b611c1e612c1d565b601460009054906101000a900460ff1615611c6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c659061502b565b60405180910390fd5b6000815111611cb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca99061520b565b60405180910390fd5b80600f9080519060200190611cc8929190613e43565b5050565b606060028054611cdb906155b5565b80601f0160208091040260200160405190810160405280929190818152602001828054611d07906155b5565b8015611d545780601f10611d2957610100808354040283529160200191611d54565b820191906000526020600020905b815481529060010190602001808311611d3757829003601f168201915b5050505050905090565b611d66612c1d565b601460009054906101000a900460ff1615611db6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dad9061502b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611e47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e3e9061516b565b60405180910390fd5b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611e9d611e966127bf565b83836130a3565b5050565b6000611eab612c1d565b601460009054906101000a900460ff1615611efb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef29061502b565b60405180910390fd5b60005b868690508110156121eb57600073ffffffffffffffffffffffffffffffffffffffff16838281518110611f3457611f3361574b565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff161415611fae57611f60611a2b565b838281518110611f7357611f7261574b565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250505b611fb86008612f65565b6000611fc46008612880565b90506040518060800160405280878785818110611fe457611fe361574b565b5b9050602002016020810190611ff991906141cf565b73ffffffffffffffffffffffffffffffffffffffff1681526020018584815181106120275761202661574b565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1681526020016040518060200160405280600081525081526020018989858181106120725761207161574b565b5b9050602002810190612084919061526f565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508152506012600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550604082015181600201600082015181600001555050606082015181600301908051906020019061219c929190613e43565b509050507f85fbe01a123b6ceb66ce49b09f99065af4bd9d78eed50e11475726f3cd2ea041816040516121cf919061522b565b60405180910390a15080806121e390615618565b915050611efe565b506001905095945050505050565b61220a6122046127bf565b8361288e565b612249576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161224090614e2b565b60405180910390fd5b61225584848484613210565b50505050565b600b5481565b60116020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b60088060000154905081565b60606122a782612774565b60006122b161326c565b905060008151116122d157604051806020016040528060008152506122fc565b806122db846132fe565b6040516020016122ec929190614c4e565b6040516020818303038152906040525b915050919050565b6060600f8054612313906155b5565b80601f016020809104026020016040519081016040528092919081815260200182805461233f906155b5565b801561238c5780601f106123615761010080835404028352916020019161238c565b820191906000526020600020905b81548152906001019060200180831161236f57829003601f168201915b5050505050905090565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612432612c1d565b601460009054906101000a900460ff1615612482576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124799061502b565b60405180910390fd5b603c81116124c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124bc906150eb565b60405180910390fd5b6000600b541161250a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250190614f4b565b60405180910390fd5b42821161254c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125439061506b565b60405180910390fd5b6000600c54111561259457600061257061256842600c546133d6565b600b54612f7b565b9050600181600a5461258291906153d3565b61258c91906153d3565b600a81905550505b81600c8190555080600b819055505050565b6125ae612c1d565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561261e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161261590614e8b565b60405180910390fd5b61262781612e26565b50565b600080600c54148061263d575042600c54115b806126545750601460009054906101000a900460ff165b15612662576000905061268f565b600061267b61267342600c546133d6565b600b54612f7b565b905080600a5461268b91906153d3565b9150505b90565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061275d57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061276d575061276c826133ec565b5b9050919050565b61277d81613456565b6127bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127b3906150cb565b60405180910390fd5b50565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661283a836113a6565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081600001549050919050565b60008061289a836113a6565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806128dc57506128db8185612396565b5b8061291a57508373ffffffffffffffffffffffffffffffffffffffff1661290284610bdd565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612943826113a6565b73ffffffffffffffffffffffffffffffffffffffff1614612999576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161299090614eab565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612a09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a0090614f0b565b60405180910390fd5b612a168383836001613497565b8273ffffffffffffffffffffffffffffffffffffffff16612a36826113a6565b73ffffffffffffffffffffffffffffffffffffffff1614612a8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a8390614eab565b60405180910390fd5b6005600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612c1883838360016135bd565b505050565b612c256127bf565b73ffffffffffffffffffffffffffffffffffffffff16612c43611a2b565b73ffffffffffffffffffffffffffffffffffffffff1614612c99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c909061508b565b60405180910390fd5b565b6000612ca6826113a6565b9050612cb6816000846001613497565b612cbf826113a6565b90506005600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506003600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612de58160008460016135bd565b5050565b60006003600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000612f1b82604051602001612f009190614c33565b604051602081830303815290604052805190602001206135c3565b9050919050565b6000612f2e83836135f3565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161490509392505050565b6001816000016000828254019250508190555050565b60008183612f899190615429565b905092915050565b80471015612fd4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fcb90614fcb565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612ffa90614c98565b60006040518083038185875af1925050503d8060008114613037576040519150601f19603f3d011682016040523d82523d6000602084013e61303c565b606091505b5050905080613080576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161307790614f8b565b60405180910390fd5b505050565b61309f82826040518060200160405280600081525061361a565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613112576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161310990614f2b565b60405180910390fd5b80600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516132039190614d89565b60405180910390a3505050565b61321b848484612923565b61322784848484613675565b613266576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161325d90614e6b565b60405180910390fd5b50505050565b6060600e805461327b906155b5565b80601f01602080910402602001604051908101604052809291908181526020018280546132a7906155b5565b80156132f45780601f106132c9576101008083540402835291602001916132f4565b820191906000526020600020905b8154815290600101906020018083116132d757829003601f168201915b5050505050905090565b60606000600161330d8461380c565b01905060008167ffffffffffffffff81111561332c5761332b61577a565b5b6040519080825280601f01601f19166020018201604052801561335e5781602001600182028036833780820191505090505b509050600082602001820190505b6001156133cb578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816133b5576133b46156be565b5b04945060008514156133c6576133cb565b61336c565b819350505050919050565b600081836133e491906154b4565b905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff1661347883612de9565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60018111156135b757600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161461352b5780600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461352391906154b4565b925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146135b65780600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546135ae91906153d3565b925050819055505b5b50505050565b50505050565b6000816040516020016135d69190614c72565b604051602081830303815290604052805190602001209050919050565b6000806000613602858561395f565b9150915061360f816139b1565b819250505092915050565b6136248383613b1f565b6136316000848484613675565b613670576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161366790614e6b565b60405180910390fd5b505050565b60006136968473ffffffffffffffffffffffffffffffffffffffff16613d3d565b156137ff578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026136bf6127bf565b8786866040518563ffffffff1660e01b81526004016136e19493929190614d14565b602060405180830381600087803b1580156136fb57600080fd5b505af192505050801561372c57506040513d601f19601f820116820180604052508101906137299190614470565b60015b6137af573d806000811461375c576040519150601f19603f3d011682016040523d82523d6000602084013e613761565b606091505b506000815114156137a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161379e90614e6b565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613804565b600190505b949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061386a577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816138605761385f6156be565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106138a7576d04ee2d6d415b85acef8100000000838161389d5761389c6156be565b5b0492506020810190505b662386f26fc1000083106138d657662386f26fc1000083816138cc576138cb6156be565b5b0492506010810190505b6305f5e10083106138ff576305f5e10083816138f5576138f46156be565b5b0492506008810190505b612710831061392457612710838161391a576139196156be565b5b0492506004810190505b60648310613947576064838161393d5761393c6156be565b5b0492506002810190505b600a8310613956576001810190505b80915050919050565b6000806041835114156139a15760008060006020860151925060408601519150606086015160001a905061399587828585613d60565b945094505050506139aa565b60006002915091505b9250929050565b600060048111156139c5576139c46156ed565b5b8160048111156139d8576139d76156ed565b5b14156139e357613b1c565b600160048111156139f7576139f66156ed565b5b816004811115613a0a57613a096156ed565b5b1415613a4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a4290614e0b565b60405180910390fd5b60026004811115613a5f57613a5e6156ed565b5b816004811115613a7257613a716156ed565b5b1415613ab3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613aaa90614e4b565b60405180910390fd5b60036004811115613ac757613ac66156ed565b5b816004811115613ada57613ad96156ed565b5b1415613b1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b1290614fab565b60405180910390fd5b5b50565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b869061504b565b60405180910390fd5b613b9881613456565b15613bd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613bcf90614ecb565b60405180910390fd5b613be6600083836001613497565b613bef81613456565b15613c2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c2690614ecb565b60405180910390fd5b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613d396000838360016135bd565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613d9b576000600391509150613e3a565b600060018787878760405160008152602001604052604051613dc09493929190614da4565b6020604051602081039080840390855afa158015613de2573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613e3157600060019250925050613e3a565b80600092509250505b94509492505050565b828054613e4f906155b5565b90600052602060002090601f016020900481019282613e715760008555613eb8565b82601f10613e8a57805160ff1916838001178555613eb8565b82800160010185558215613eb8579182015b82811115613eb7578251825591602001919060010190613e9c565b5b509050613ec59190613ec9565b5090565b5b80821115613ee2576000816000905550600101613eca565b5090565b6000613ef9613ef4846152f7565b6152d2565b90508083825260208201905082856020860282011115613f1c57613f1b6157bd565b5b60005b85811015613f4c5781613f328882613fda565b845260208401935060208301925050600181019050613f1f565b5050509392505050565b6000613f69613f6484615323565b6152d2565b905082815260208101848484011115613f8557613f846157c7565b5b613f90848285615573565b509392505050565b6000613fab613fa684615354565b6152d2565b905082815260208101848484011115613fc757613fc66157c7565b5b613fd2848285615573565b509392505050565b600081359050613fe981615f57565b92915050565b60008083601f840112614005576140046157ae565b5b8235905067ffffffffffffffff811115614022576140216157a9565b5b60208301915083602082028301111561403e5761403d6157bd565b5b9250929050565b600082601f83011261405a576140596157ae565b5b813561406a848260208601613ee6565b91505092915050565b60008083601f840112614089576140886157ae565b5b8235905067ffffffffffffffff8111156140a6576140a56157a9565b5b6020830191508360208202830111156140c2576140c16157bd565b5b9250929050565b6000813590506140d881615f6e565b92915050565b6000813590506140ed81615f85565b92915050565b60008151905061410281615f85565b92915050565b60008083601f84011261411e5761411d6157ae565b5b8235905067ffffffffffffffff81111561413b5761413a6157a9565b5b602083019150836001820283011115614157576141566157bd565b5b9250929050565b600082601f830112614173576141726157ae565b5b8135614183848260208601613f56565b91505092915050565b600082601f8301126141a1576141a06157ae565b5b81356141b1848260208601613f98565b91505092915050565b6000813590506141c981615f9c565b92915050565b6000602082840312156141e5576141e46157d1565b5b60006141f384828501613fda565b91505092915050565b60008060408385031215614213576142126157d1565b5b600061422185828601613fda565b925050602061423285828601613fda565b9150509250929050565b600080600060608486031215614255576142546157d1565b5b600061426386828701613fda565b935050602061427486828701613fda565b9250506040614285868287016141ba565b9150509250925092565b600080600080608085870312156142a9576142a86157d1565b5b60006142b787828801613fda565b94505060206142c887828801613fda565b93505060406142d9878288016141ba565b925050606085013567ffffffffffffffff8111156142fa576142f96157cc565b5b6143068782880161415e565b91505092959194509250565b60008060408385031215614329576143286157d1565b5b600061433785828601613fda565b9250506020614348858286016140c9565b9150509250929050565b60008060408385031215614369576143686157d1565b5b600061437785828601613fda565b9250506020614388858286016141ba565b9150509250929050565b6000806000806000606086880312156143ae576143ad6157d1565b5b600086013567ffffffffffffffff8111156143cc576143cb6157cc565b5b6143d888828901614073565b9550955050602086013567ffffffffffffffff8111156143fb576143fa6157cc565b5b61440788828901613fef565b9350935050604086013567ffffffffffffffff81111561442a576144296157cc565b5b61443688828901614045565b9150509295509295909350565b600060208284031215614459576144586157d1565b5b6000614467848285016140de565b91505092915050565b600060208284031215614486576144856157d1565b5b6000614494848285016140f3565b91505092915050565b600080602083850312156144b4576144b36157d1565b5b600083013567ffffffffffffffff8111156144d2576144d16157cc565b5b6144de85828601614108565b92509250509250929050565b600060208284031215614500576144ff6157d1565b5b600082013567ffffffffffffffff81111561451e5761451d6157cc565b5b61452a8482850161418c565b91505092915050565b600060208284031215614549576145486157d1565b5b6000614557848285016141ba565b91505092915050565b6000806000806080858703121561457a576145796157d1565b5b6000614588878288016141ba565b945050602085013567ffffffffffffffff8111156145a9576145a86157cc565b5b6145b58782880161418c565b93505060406145c687828801613fda565b92505060606145d787828801613fda565b91505092959194509250565b600080604083850312156145fa576145f96157d1565b5b6000614608858286016141ba565b9250506020614619858286016141ba565b9150509250929050565b61462c816154e8565b82525050565b61464361463e826154e8565b615661565b82525050565b614652816154fa565b82525050565b61466181615506565b82525050565b61467861467382615506565b615673565b82525050565b600061468982615385565b614693818561539b565b93506146a3818560208601615582565b6146ac816157d6565b840191505092915050565b60006146c282615390565b6146cc81856153b7565b93506146dc818560208601615582565b6146e5816157d6565b840191505092915050565b60006146fb82615390565b61470581856153c8565b9350614715818560208601615582565b80840191505092915050565b600061472e6018836153b7565b9150614739826157f4565b602082019050919050565b6000614751602d836153b7565b915061475c8261581d565b604082019050919050565b6000614774601f836153b7565b915061477f8261586c565b602082019050919050565b6000614797601c836153c8565b91506147a282615895565b601c82019050919050565b60006147ba6032836153b7565b91506147c5826158be565b604082019050919050565b60006147dd6026836153b7565b91506147e88261590d565b604082019050919050565b60006148006025836153b7565b915061480b8261595c565b604082019050919050565b6000614823601c836153b7565b915061482e826159ab565b602082019050919050565b60006148466015836153b7565b9150614851826159d4565b602082019050919050565b60006148696024836153b7565b9150614874826159fd565b604082019050919050565b600061488c6019836153b7565b915061489782615a4c565b602082019050919050565b60006148af6022836153b7565b91506148ba82615a75565b604082019050919050565b60006148d2601e836153b7565b91506148dd82615ac4565b602082019050919050565b60006148f5603a836153b7565b915061490082615aed565b604082019050919050565b60006149186022836153b7565b915061492382615b3c565b604082019050919050565b600061493b601d836153b7565b915061494682615b8b565b602082019050919050565b600061495e6029836153b7565b915061496982615bb4565b604082019050919050565b6000614981600c836153b7565b915061498c82615c03565b602082019050919050565b60006149a46012836153b7565b91506149af82615c2c565b602082019050919050565b60006149c76020836153b7565b91506149d282615c55565b602082019050919050565b60006149ea6020836153b7565b91506149f582615c7e565b602082019050919050565b6000614a0d6020836153b7565b9150614a1882615ca7565b602082019050919050565b6000614a30600f836153b7565b9150614a3b82615cd0565b602082019050919050565b6000614a536018836153b7565b9150614a5e82615cf9565b602082019050919050565b6000614a76601c836153b7565b9150614a8182615d22565b602082019050919050565b6000614a996021836153b7565b9150614aa482615d4b565b604082019050919050565b6000614abc6017836153b7565b9150614ac782615d9a565b602082019050919050565b6000614adf6013836153b7565b9150614aea82615dc3565b602082019050919050565b6000614b026028836153b7565b9150614b0d82615dec565b604082019050919050565b6000614b256000836153ac565b9150614b3082615e3b565b600082019050919050565b6000614b48603d836153b7565b9150614b5382615e3e565b604082019050919050565b6000614b6b6021836153b7565b9150614b7682615e8d565b604082019050919050565b6000614b8e6019836153b7565b9150614b9982615edc565b602082019050919050565b6000614bb1601a836153b7565b9150614bbc82615f05565b602082019050919050565b6000614bd46017836153b7565b9150614bdf82615f2e565b602082019050919050565b602082016000820151614c006000850182614c06565b50505050565b614c0f8161555c565b82525050565b614c1e8161555c565b82525050565b614c2d81615566565b82525050565b6000614c3f8284614632565b60148201915081905092915050565b6000614c5a82856146f0565b9150614c6682846146f0565b91508190509392505050565b6000614c7d8261478a565b9150614c898284614667565b60208201915081905092915050565b6000614ca382614b18565b9150819050919050565b6000602082019050614cc26000830184614623565b92915050565b6000608082019050614cdd6000830187614623565b614cea6020830186614623565b614cf76040830185614bea565b8181036060830152614d0981846146b7565b905095945050505050565b6000608082019050614d296000830187614623565b614d366020830186614623565b614d436040830185614c15565b8181036060830152614d55818461467e565b905095945050505050565b6000604082019050614d756000830185614623565b614d826020830184614c15565b9392505050565b6000602082019050614d9e6000830184614649565b92915050565b6000608082019050614db96000830187614658565b614dc66020830186614c24565b614dd36040830185614658565b614de06060830184614658565b95945050505050565b60006020820190508181036000830152614e0381846146b7565b905092915050565b60006020820190508181036000830152614e2481614721565b9050919050565b60006020820190508181036000830152614e4481614744565b9050919050565b60006020820190508181036000830152614e6481614767565b9050919050565b60006020820190508181036000830152614e84816147ad565b9050919050565b60006020820190508181036000830152614ea4816147d0565b9050919050565b60006020820190508181036000830152614ec4816147f3565b9050919050565b60006020820190508181036000830152614ee481614816565b9050919050565b60006020820190508181036000830152614f0481614839565b9050919050565b60006020820190508181036000830152614f248161485c565b9050919050565b60006020820190508181036000830152614f448161487f565b9050919050565b60006020820190508181036000830152614f64816148a2565b9050919050565b60006020820190508181036000830152614f84816148c5565b9050919050565b60006020820190508181036000830152614fa4816148e8565b9050919050565b60006020820190508181036000830152614fc48161490b565b9050919050565b60006020820190508181036000830152614fe48161492e565b9050919050565b6000602082019050818103600083015261500481614951565b9050919050565b6000602082019050818103600083015261502481614974565b9050919050565b6000602082019050818103600083015261504481614997565b9050919050565b60006020820190508181036000830152615064816149ba565b9050919050565b60006020820190508181036000830152615084816149dd565b9050919050565b600060208201905081810360008301526150a481614a00565b9050919050565b600060208201905081810360008301526150c481614a23565b9050919050565b600060208201905081810360008301526150e481614a46565b9050919050565b6000602082019050818103600083015261510481614a69565b9050919050565b6000602082019050818103600083015261512481614a8c565b9050919050565b6000602082019050818103600083015261514481614aaf565b9050919050565b6000602082019050818103600083015261516481614ad2565b9050919050565b6000602082019050818103600083015261518481614af5565b9050919050565b600060208201905081810360008301526151a481614b3b565b9050919050565b600060208201905081810360008301526151c481614b5e565b9050919050565b600060208201905081810360008301526151e481614b81565b9050919050565b6000602082019050818103600083015261520481614ba4565b9050919050565b6000602082019050818103600083015261522481614bc7565b9050919050565b60006020820190506152406000830184614c15565b92915050565b600060408201905061525b6000830185614c15565b6152686020830184614c15565b9392505050565b6000808335600160200384360303811261528c5761528b6157b8565b5b80840192508235915067ffffffffffffffff8211156152ae576152ad6157b3565b5b6020830192506001820236038313156152ca576152c96157c2565b5b509250929050565b60006152dc6152ed565b90506152e882826155e7565b919050565b6000604051905090565b600067ffffffffffffffff8211156153125761531161577a565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561533e5761533d61577a565b5b615347826157d6565b9050602081019050919050565b600067ffffffffffffffff82111561536f5761536e61577a565b5b615378826157d6565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006153de8261555c565b91506153e98361555c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561541e5761541d61568f565b5b828201905092915050565b60006154348261555c565b915061543f8361555c565b92508261544f5761544e6156be565b5b828204905092915050565b60006154658261555c565b91506154708361555c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156154a9576154a861568f565b5b828202905092915050565b60006154bf8261555c565b91506154ca8361555c565b9250828210156154dd576154dc61568f565b5b828203905092915050565b60006154f38261553c565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b838110156155a0578082015181840152602081019050615585565b838111156155af576000848401525b50505050565b600060028204905060018216806155cd57607f821691505b602082108114156155e1576155e061571c565b5b50919050565b6155f0826157d6565b810181811067ffffffffffffffff8211171561560f5761560e61577a565b5b80604052505050565b60006156238261555c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156156565761565561568f565b5b600182019050919050565b600061566c8261567d565b9050919050565b6000819050919050565b6000615688826157e7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f50757a7a6c6520646f6573206e6f742065786973740000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f436f6e7472616374206d75737420626520696e697469616c697a65642066697260008201527f7374000000000000000000000000000000000000000000000000000000000000602082015250565b7f4d757374206265206120717565756564206675747572652070757a7a6c650000600082015250565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b7f4e6f7420617070726f7665640000000000000000000000000000000000000000600082015250565b7f436f6e74726163742069732066726f7a656e0000000000000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f53746172742074696d65206d75737420626520696e2074686520667574757265600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f496e76616c6964206261736555726c0000000000000000000000000000000000600082015250565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b7f4d696e696d756d20696e74657276616c2069732031206d696e75746500000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f5468652063757261746f722063616e6e6f74206d696e74000000000000000000600082015250565b7f496e76616c6964206465736372697074696f6e00000000000000000000000000600082015250565b7f5468652064656661756c742063757261746f722068617320616c72656164792060008201527f6265656e20736574000000000000000000000000000000000000000000000000602082015250565b50565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b7f596f7560766520616c7265616479206d696e74656420746869732070757a7a6c60008201527f6500000000000000000000000000000000000000000000000000000000000000602082015250565b7f5468657265206973206e6f206163746976652070757a7a6c6500000000000000600082015250565b7f496e76616c6964207369676e61747572652070726f7669646564000000000000600082015250565b7f496e76616c69642062617365436f6e747261637455726c000000000000000000600082015250565b615f60816154e8565b8114615f6b57600080fd5b50565b615f77816154fa565b8114615f8257600080fd5b50565b615f8e81615510565b8114615f9957600080fd5b50565b615fa58161555c565b8114615fb057600080fd5b5056fea26469706673582212207f2cd59049faf060798d8150e111b78a8c4ee95a064bc963bef4a3fa4a11ec3764736f6c63430008060033

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.