Address Details
contract
token

0xfE1ec619F88f17132587EAa7e547d5261282B4Ec

Token
SolarPunk (spunk)
Creator
0x8b2f36–66963a at 0x2b8f1d–41bc73
Balance
0 CELO ( )
Locked CELO Balance
0.00 CELO
Voting CELO Balance
0.00 CELO
Pending Unlocked Gold
0.00 CELO
Tokens
Fetching tokens...
Transactions
1 Transactions
Transfers
0 Transfers
Gas Used
165,192
Last Balance Update
16194174
This contract has been verified via Sourcify. View contract in Sourcify repository
Contract name:
NounsToken




Optimization enabled
false
Compiler version
v0.8.7+commit.e28d00a7




EVM Version
london




Verified at
2022-11-16T22:44:15.226691Z

contracts/NounsToken.sol

// SPDX-License-Identifier: GPL-3.0

/// @title The Nouns ERC-721 token

/*********************************
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░██░░░████░░██░░░████░░░ *
 * ░░██████░░░████████░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 *********************************/

pragma solidity ^0.8.6;

import { Ownable } from '@openzeppelin/contracts/access/Ownable.sol';
import { ERC721Checkpointable } from './base/ERC721Checkpointable.sol';
// import { INounsDescriptorMinimal } from './interfaces/INounsDescriptorMinimal.sol';
// import { INounsSeeder } from './interfaces/INounsSeeder.sol';
import { INounsToken } from './interfaces/INounsToken.sol';
import { ERC721 } from './base/ERC721.sol';
import { IERC721 } from '@openzeppelin/contracts/token/ERC721/IERC721.sol';
// import { IProxyRegistry } from './external/opensea/IProxyRegistry.sol';

contract NounsToken is INounsToken, Ownable, ERC721Checkpointable {
    // The nounders DAO address (creators org)
    address public noundersDAO;

    // An address who has permissions to mint Nouns
    address public minter;

    // The Nouns token URI descriptor
    // INounsDescriptorMinimal public descriptor;

    // The Nouns token seeder
    // INounsSeeder public seeder;

    // Whether the minter can be updated
    bool public isMinterLocked;

    // Whether the descriptor can be updated
    // bool public isDescriptorLocked;

    // Whether the seeder can be updated
    // bool public isSeederLocked;

    // The noun seeds
    // mapping(uint256 => INounsSeeder.Seed) public seeds;

    // The internal noun ID tracker
    uint256 private _currentNounId;

    // IPFS content hash of contract-level metadata
    string private _contractURIHash = 'QmRsbpn1wAmdr5VB6vWUMGSUVzjTSr46UDetVjPrx15D8u';

    // OpenSea's Proxy Registry
    // IProxyRegistry public immutable proxyRegistry;

    /**
     * @notice Require that the minter has not been locked.
     */
    modifier whenMinterNotLocked() {
        require(!isMinterLocked, 'Minter is locked');
        _;
    }

    // /**
    //  * @notice Require that the descriptor has not been locked.
    //  */
    // modifier whenDescriptorNotLocked() {
    //     require(!isDescriptorLocked, 'Descriptor is locked');
    //     _;
    // }

    // /**
    //  * @notice Require that the seeder has not been locked.
    //  */
    // modifier whenSeederNotLocked() {
    //     require(!isSeederLocked, 'Seeder is locked');
    //     _;
    // }

    /**
     * @notice Require that the sender is the nounders DAO.
     */
    modifier onlyNoundersDAO() {
        require(msg.sender == noundersDAO, 'Sender is not the nounders DAO');
        _;
    }

    /**
     * @notice Require that the sender is the minter.
     */
    modifier onlyMinter() {
        require(msg.sender == minter, 'Sender is not the minter');
        _;
    }

    constructor(
        address _noundersDAO,
        address _minter
        // INounsDescriptorMinimal _descriptor,
        // INounsSeeder _seeder
        // ,
        // IProxyRegistry _proxyRegistry
    ) ERC721('SolarPunk', 'spunk') {
        noundersDAO = _noundersDAO;
        minter = _minter;
        // descriptor = _descriptor;
        // seeder = _seeder;
        // proxyRegistry = _proxyRegistry;
    }

    /**
     * @notice The IPFS URI of contract-level metadata.
     */
    function contractURI() public view returns (string memory) {
        return string(abi.encodePacked('ipfs://', _contractURIHash));
    }

    /**
     * @notice Set the _contractURIHash.
     * @dev Only callable by the owner.
     */
    function setContractURIHash(string memory newContractURIHash) external onlyOwner {
        _contractURIHash = newContractURIHash;
    }

    /**
     * @notice Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings.
     */
    function isApprovedForAll(address owner, address operator) public view override(IERC721, ERC721) returns (bool) {
        // Whitelist OpenSea proxy contract for easy trading.
        // if (proxyRegistry.proxies(owner) == operator) {
        //     return true;
        // }
        return super.isApprovedForAll(owner, operator);
    }

    /**
     * @notice Mint a Noun to the minter, along with a possible nounders reward
     * Noun. Nounders reward Nouns are minted every 10 Nouns, starting at 0,
     * until 183 nounder Nouns have been minted (5 years w/ 24 hour auctions).
     * @dev Call _mintTo with the to address(es).
     */
    function mint() public override onlyMinter returns (uint256) {
        // if (_currentNounId <= 1820 && _currentNounId % 10 == 0) {
        //     _mintTo(noundersDAO, _currentNounId++);
        // }
        return _mintTo(minter, _currentNounId++);
    }

    /**
     * @notice Burn a noun.
     */
    function burn(uint256 nounId) public override onlyMinter {
        _burn(nounId);
        emit NounBurned(nounId);
    }

    // /**
    //  * @notice A distinct Uniform Resource Identifier (URI) for a given asset.
    //  * @dev See {IERC721Metadata-tokenURI}.
    //  */
    // function tokenURI(uint256 tokenId) public view override returns (string memory) {
    //     require(_exists(tokenId), 'NounsToken: URI query for nonexistent token');
    //     return string(abi.encodePacked(baseURI, tokenId.toString()));
    // }

    /**
     * @notice Similar to `tokenURI`, but always serves a base64 encoded data URI
     * with the JSON contents directly inlined.
     */
    function dataURI(uint256 tokenId) public view override returns (string memory) {
        require(_exists(tokenId), 'NounsToken: URI query for nonexistent token');
        return tokenURI(tokenId);
    }

    /**
     * @notice Set the nounders DAO.
     * @dev Only callable by the nounders DAO when not locked.
     */
    function setNoundersDAO(address _noundersDAO) external override onlyNoundersDAO {
        noundersDAO = _noundersDAO;

        emit NoundersDAOUpdated(_noundersDAO);
    }

    /**
     * @notice Set the token minter.
     * @dev Only callable by the owner when not locked.
     */
    function setMinter(address _minter) external override onlyOwner whenMinterNotLocked {
        minter = _minter;

        emit MinterUpdated(_minter);
    }

    /**
     * @notice Lock the minter.
     * @dev This cannot be reversed and is only callable by the owner when not locked.
     */
    function lockMinter() external override onlyOwner whenMinterNotLocked {
        isMinterLocked = true;

        emit MinterLocked();
    }

    // /**
    //  * @notice Set the token URI descriptor.
    //  * @dev Only callable by the owner when not locked.
    //  */
    // function setDescriptor(INounsDescriptorMinimal _descriptor) external override onlyOwner whenDescriptorNotLocked {
    //     descriptor = _descriptor;

    //     emit DescriptorUpdated(_descriptor);
    // }

    // /**
    //  * @notice Lock the descriptor.
    //  * @dev This cannot be reversed and is only callable by the owner when not locked.
    //  */
    // function lockDescriptor() external override onlyOwner whenDescriptorNotLocked {
    //     isDescriptorLocked = true;

    //     emit DescriptorLocked();
    // }

    // /**
    //  * @notice Set the token seeder.
    //  * @dev Only callable by the owner when not locked.
    //  */
    // function setSeeder(INounsSeeder _seeder) external override onlyOwner whenSeederNotLocked {
    //     seeder = _seeder;

    //     emit SeederUpdated(_seeder);
    // }

    // /**
    //  * @notice Lock the seeder.
    //  * @dev This cannot be reversed and is only callable by the owner when not locked.
    //  */
    // function lockSeeder() external override onlyOwner whenSeederNotLocked {
    //     isSeederLocked = true;

    //     emit SeederLocked();
    // }

    /**
     * @notice Mint a Noun with `nounId` to the provided `to` address.
     */
    function _mintTo(address to, uint256 nounId) internal returns (uint256) {
        // INounsSeeder.Seed memory seed = seeds[nounId] = seeder.generateSeed(nounId, descriptor);

        _mint(owner(), to, nounId);
        emit NounCreated(nounId);

        return nounId;
    }
}
        

/_openzeppelin/contracts/access/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);
    }
}
          

/_openzeppelin/contracts/token/ERC721/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);
}
          

/_openzeppelin/contracts/token/ERC721/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);
}
          

/_openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

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

/_openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}
          

/_openzeppelin/contracts/utils/Address.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (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);
        }
    }
}
          

/_openzeppelin/contracts/utils/Context.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}
          

/_openzeppelin/contracts/utils/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);
    }
}
          

/_openzeppelin/contracts/utils/introspection/ERC165.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}
          

/_openzeppelin/contracts/utils/introspection/IERC165.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
          

/_openzeppelin/contracts/utils/math/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);
        }
    }
}
          

/contracts/base/ERC721.sol

// SPDX-License-Identifier: MIT

/// @title ERC721 Token Implementation

/*********************************
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░██░░░████░░██░░░████░░░ *
 * ░░██████░░░████████░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 *********************************/

// LICENSE
// ERC721.sol modifies OpenZeppelin's ERC721.sol:
// https://github.com/OpenZeppelin/openzeppelin-contracts/blob/6618f9f18424ade44116d0221719f4c93be6a078/contracts/token/ERC721/ERC721.sol
//
// ERC721.sol source code copyright OpenZeppelin licensed under the MIT License.
// With modifications by Nounders DAO.
//
//
// MODIFICATIONS:
// `_safeMint` and `_mint` contain an additional `creator` argument and
// emit two `Transfer` logs, rather than one. The first log displays the
// transfer (mint) from `address(0)` to the `creator`. The second displays the
// transfer from the `creator` to the `to` address. This enables correct
// attribution on various NFT marketplaces.

pragma solidity ^0.8.6;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), 'ERC721: balance query for the zero address');
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), 'ERC721: owner query for nonexistent token');
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), 'ERC721Metadata: URI query for nonexistent token');

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : '';
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, 'ERC721: approval to current owner');

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            'ERC721: approve caller is not owner nor approved for all'
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), 'ERC721: approved query for nonexistent token');

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), 'ERC721: approve to caller');

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), 'ERC721: transfer caller is not owner nor approved');

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), 'ERC721: transfer caller is not owner nor approved');
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), 'ERC721: transfer to non ERC721Receiver implementer');
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), 'ERC721: operator query for nonexistent token');
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId`, transfers it to `to`, and emits two log events -
     * 1. Credits the `minter` with the mint.
     * 2. Shows transfer from the `minter` 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 creator,
        address to,
        uint256 tokenId
    ) internal virtual {
        _safeMint(creator, 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 creator,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(creator, to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            'ERC721: transfer to non ERC721Receiver implementer'
        );
    }

    /**
     * @dev Mints `tokenId`, transfers it to `to`, and emits two log events -
     * 1. Credits the `creator` with the mint.
     * 2. Shows transfer from the `creator` 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 creator,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(to != address(0), 'ERC721: mint to the zero address');
        require(!_exists(tokenId), 'ERC721: token already minted');

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

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

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, 'ERC721: transfer of token that is not own');
        require(to != address(0), 'ERC721: transfer to the zero address');

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @dev 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(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert('ERC721: transfer to non ERC721Receiver implementer');
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}
          

/contracts/base/ERC721Checkpointable.sol

// SPDX-License-Identifier: BSD-3-Clause

/// @title Vote checkpointing for an ERC-721 token

/*********************************
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░██░░░████░░██░░░████░░░ *
 * ░░██████░░░████████░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 *********************************/

// LICENSE
// ERC721Checkpointable.sol uses and modifies part of Compound Lab's Comp.sol:
// https://github.com/compound-finance/compound-protocol/blob/ae4388e780a8d596d97619d9704a931a2752c2bc/contracts/Governance/Comp.sol
//
// Comp.sol source code Copyright 2020 Compound Labs, Inc. licensed under the BSD-3-Clause license.
// With modifications by Nounders DAO.
//
// Additional conditions of BSD-3-Clause can be found here: https://opensource.org/licenses/BSD-3-Clause
//
// MODIFICATIONS
// Checkpointing logic from Comp.sol has been used with the following modifications:
// - `delegates` is renamed to `_delegates` and is set to private
// - `delegates` is a public function that uses the `_delegates` mapping look-up, but unlike
//   Comp.sol, returns the delegator's own address if there is no delegate.
//   This avoids the delegator needing to "delegate to self" with an additional transaction
// - `_transferTokens()` is renamed `_beforeTokenTransfer()` and adapted to hook into OpenZeppelin's ERC721 hooks.

pragma solidity ^0.8.6;

import './ERC721Enumerable.sol';

abstract contract ERC721Checkpointable is ERC721Enumerable {
    /// @notice Defines decimals as per ERC-20 convention to make integrations with 3rd party governance platforms easier
    uint8 public constant decimals = 0;

    /// @notice A record of each accounts delegate
    mapping(address => address) private _delegates;

    /// @notice A checkpoint for marking number of votes from a given block
    struct Checkpoint {
        uint32 fromBlock;
        uint96 votes;
    }

    /// @notice A record of votes checkpoints for each account, by index
    mapping(address => mapping(uint32 => Checkpoint)) public checkpoints;

    /// @notice The number of checkpoints for each account
    mapping(address => uint32) public numCheckpoints;

    /// @notice The EIP-712 typehash for the contract's domain
    bytes32 public constant DOMAIN_TYPEHASH =
        keccak256('EIP712Domain(string name,uint256 chainId,address verifyingContract)');

    /// @notice The EIP-712 typehash for the delegation struct used by the contract
    bytes32 public constant DELEGATION_TYPEHASH =
        keccak256('Delegation(address delegatee,uint256 nonce,uint256 expiry)');

    /// @notice A record of states for signing / validating signatures
    mapping(address => uint256) public nonces;

    /// @notice An event thats emitted when an account changes its delegate
    event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate);

    /// @notice An event thats emitted when a delegate account's vote balance changes
    event DelegateVotesChanged(address indexed delegate, uint256 previousBalance, uint256 newBalance);

    /**
     * @notice The votes a delegator can delegate, which is the current balance of the delegator.
     * @dev Used when calling `_delegate()`
     */
    function votesToDelegate(address delegator) public view returns (uint96) {
        return safe96(balanceOf(delegator), 'ERC721Checkpointable::votesToDelegate: amount exceeds 96 bits');
    }

    /**
     * @notice Overrides the standard `Comp.sol` delegates mapping to return
     * the delegator's own address if they haven't delegated.
     * This avoids having to delegate to oneself.
     */
    function delegates(address delegator) public view returns (address) {
        address current = _delegates[delegator];
        return current == address(0) ? delegator : current;
    }

    /**
     * @notice Adapted from `_transferTokens()` in `Comp.sol` to update delegate votes.
     * @dev hooks into OpenZeppelin's `ERC721._transfer`
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override {
        super._beforeTokenTransfer(from, to, tokenId);

        /// @notice Differs from `_transferTokens()` to use `delegates` override method to simulate auto-delegation
        _moveDelegates(delegates(from), delegates(to), 1);
    }

    /**
     * @notice Delegate votes from `msg.sender` to `delegatee`
     * @param delegatee The address to delegate votes to
     */
    function delegate(address delegatee) public {
        if (delegatee == address(0)) delegatee = msg.sender;
        return _delegate(msg.sender, delegatee);
    }

    /**
     * @notice Delegates votes from signatory to `delegatee`
     * @param delegatee The address to delegate votes to
     * @param nonce The contract state required to match the signature
     * @param expiry The time at which to expire the signature
     * @param v The recovery byte of the signature
     * @param r Half of the ECDSA signature pair
     * @param s Half of the ECDSA signature pair
     */
    function delegateBySig(
        address delegatee,
        uint256 nonce,
        uint256 expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public {
        bytes32 domainSeparator = keccak256(
            abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(name())), getChainId(), address(this))
        );
        bytes32 structHash = keccak256(abi.encode(DELEGATION_TYPEHASH, delegatee, nonce, expiry));
        bytes32 digest = keccak256(abi.encodePacked('\x19\x01', domainSeparator, structHash));
        address signatory = ecrecover(digest, v, r, s);
        require(signatory != address(0), 'ERC721Checkpointable::delegateBySig: invalid signature');
        require(nonce == nonces[signatory]++, 'ERC721Checkpointable::delegateBySig: invalid nonce');
        require(block.timestamp <= expiry, 'ERC721Checkpointable::delegateBySig: signature expired');
        return _delegate(signatory, delegatee);
    }

    /**
     * @notice Gets the current votes balance for `account`
     * @param account The address to get votes balance
     * @return The number of current votes for `account`
     */
    function getCurrentVotes(address account) external view returns (uint96) {
        uint32 nCheckpoints = numCheckpoints[account];
        return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0;
    }

    /**
     * @notice Determine the prior number of votes for an account as of a block number
     * @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
     * @param account The address of the account to check
     * @param blockNumber The block number to get the vote balance at
     * @return The number of votes the account had as of the given block
     */
    function getPriorVotes(address account, uint256 blockNumber) public view returns (uint96) {
        require(blockNumber < block.number, 'ERC721Checkpointable::getPriorVotes: not yet determined');

        uint32 nCheckpoints = numCheckpoints[account];
        if (nCheckpoints == 0) {
            return 0;
        }

        // First check most recent balance
        if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) {
            return checkpoints[account][nCheckpoints - 1].votes;
        }

        // Next check implicit zero balance
        if (checkpoints[account][0].fromBlock > blockNumber) {
            return 0;
        }

        uint32 lower = 0;
        uint32 upper = nCheckpoints - 1;
        while (upper > lower) {
            uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow
            Checkpoint memory cp = checkpoints[account][center];
            if (cp.fromBlock == blockNumber) {
                return cp.votes;
            } else if (cp.fromBlock < blockNumber) {
                lower = center;
            } else {
                upper = center - 1;
            }
        }
        return checkpoints[account][lower].votes;
    }

    function _delegate(address delegator, address delegatee) internal {
        /// @notice differs from `_delegate()` in `Comp.sol` to use `delegates` override method to simulate auto-delegation
        address currentDelegate = delegates(delegator);

        _delegates[delegator] = delegatee;

        emit DelegateChanged(delegator, currentDelegate, delegatee);

        uint96 amount = votesToDelegate(delegator);

        _moveDelegates(currentDelegate, delegatee, amount);
    }

    function _moveDelegates(
        address srcRep,
        address dstRep,
        uint96 amount
    ) internal {
        if (srcRep != dstRep && amount > 0) {
            if (srcRep != address(0)) {
                uint32 srcRepNum = numCheckpoints[srcRep];
                uint96 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0;
                uint96 srcRepNew = sub96(srcRepOld, amount, 'ERC721Checkpointable::_moveDelegates: amount underflows');
                _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew);
            }

            if (dstRep != address(0)) {
                uint32 dstRepNum = numCheckpoints[dstRep];
                uint96 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0;
                uint96 dstRepNew = add96(dstRepOld, amount, 'ERC721Checkpointable::_moveDelegates: amount overflows');
                _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew);
            }
        }
    }

    function _writeCheckpoint(
        address delegatee,
        uint32 nCheckpoints,
        uint96 oldVotes,
        uint96 newVotes
    ) internal {
        uint32 blockNumber = safe32(
            block.number,
            'ERC721Checkpointable::_writeCheckpoint: block number exceeds 32 bits'
        );

        if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) {
            checkpoints[delegatee][nCheckpoints - 1].votes = newVotes;
        } else {
            checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes);
            numCheckpoints[delegatee] = nCheckpoints + 1;
        }

        emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
    }

    function safe32(uint256 n, string memory errorMessage) internal pure returns (uint32) {
        require(n < 2**32, errorMessage);
        return uint32(n);
    }

    function safe96(uint256 n, string memory errorMessage) internal pure returns (uint96) {
        require(n < 2**96, errorMessage);
        return uint96(n);
    }

    function add96(
        uint96 a,
        uint96 b,
        string memory errorMessage
    ) internal pure returns (uint96) {
        uint96 c = a + b;
        require(c >= a, errorMessage);
        return c;
    }

    function sub96(
        uint96 a,
        uint96 b,
        string memory errorMessage
    ) internal pure returns (uint96) {
        require(b <= a, errorMessage);
        return a - b;
    }

    function getChainId() internal view returns (uint256) {
        uint256 chainId;
        assembly {
            chainId := chainid()
        }
        return chainId;
    }
}
          

/contracts/base/ERC721Enumerable.sol

// SPDX-License-Identifier: MIT

/// @title ERC721 Enumerable Extension

/*********************************
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░██░░░████░░██░░░████░░░ *
 * ░░██████░░░████████░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 *********************************/

// LICENSE
// ERC721.sol modifies OpenZeppelin's ERC721Enumerable.sol:
// https://github.com/OpenZeppelin/openzeppelin-contracts/blob/6618f9f18424ade44116d0221719f4c93be6a078/contracts/token/ERC721/extensions/ERC721Enumerable.sol
//
// ERC721Enumerable.sol source code copyright OpenZeppelin licensed under the MIT License.
// With modifications by Nounders DAO.
//
// MODIFICATIONS:
// Consumes modified `ERC721` contract. See notes in `ERC721.sol`.

pragma solidity ^0.8.0;

import './ERC721.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol';

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), 'ERC721Enumerable: owner index out of bounds');
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), 'ERC721Enumerable: global index out of bounds');
        return _allTokens[index];
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}
          

/contracts/interfaces/INounsToken.sol

// SPDX-License-Identifier: GPL-3.0

/// @title Interface for NounsToken

/*********************************
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░██░░░████░░██░░░████░░░ *
 * ░░██████░░░████████░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 *********************************/

pragma solidity ^0.8.6;

import { IERC721 } from '@openzeppelin/contracts/token/ERC721/IERC721.sol';
// import { INounsDescriptorMinimal } from './INounsDescriptorMinimal.sol';
// import { INounsSeeder } from './INounsSeeder.sol';

interface INounsToken is IERC721 {
    event NounCreated(uint256 indexed tokenId);

    event NounBurned(uint256 indexed tokenId);

    event NoundersDAOUpdated(address noundersDAO);

    event MinterUpdated(address minter);

    event MinterLocked();

    // event DescriptorUpdated(INounsDescriptorMinimal descriptor);

    event DescriptorLocked();

    // event SeederUpdated(INounsSeeder seeder);

    event SeederLocked();

    function mint() external returns (uint256);

    function burn(uint256 tokenId) external;

    function dataURI(uint256 tokenId) external returns (string memory);

    function setNoundersDAO(address noundersDAO) external;

    function setMinter(address minter) external;

    function lockMinter() external;

    // function setDescriptor(INounsDescriptorMinimal descriptor) external;

    // function lockDescriptor() external;

    // function setSeeder(INounsSeeder seeder) external;

    // function lockSeeder() external;
}
          

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_noundersDAO","internalType":"address"},{"type":"address","name":"_minter","internalType":"address"}]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"approved","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"event","name":"ApprovalForAll","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"operator","internalType":"address","indexed":true},{"type":"bool","name":"approved","internalType":"bool","indexed":false}],"anonymous":false},{"type":"event","name":"DelegateChanged","inputs":[{"type":"address","name":"delegator","internalType":"address","indexed":true},{"type":"address","name":"fromDelegate","internalType":"address","indexed":true},{"type":"address","name":"toDelegate","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"DelegateVotesChanged","inputs":[{"type":"address","name":"delegate","internalType":"address","indexed":true},{"type":"uint256","name":"previousBalance","internalType":"uint256","indexed":false},{"type":"uint256","name":"newBalance","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"DescriptorLocked","inputs":[],"anonymous":false},{"type":"event","name":"MinterLocked","inputs":[],"anonymous":false},{"type":"event","name":"MinterUpdated","inputs":[{"type":"address","name":"minter","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"NounBurned","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"event","name":"NounCreated","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"event","name":"NoundersDAOUpdated","inputs":[{"type":"address","name":"noundersDAO","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"SeederLocked","inputs":[],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DELEGATION_TYPEHASH","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DOMAIN_TYPEHASH","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"approve","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"burn","inputs":[{"type":"uint256","name":"nounId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint32","name":"fromBlock","internalType":"uint32"},{"type":"uint96","name":"votes","internalType":"uint96"}],"name":"checkpoints","inputs":[{"type":"address","name":"","internalType":"address"},{"type":"uint32","name":"","internalType":"uint32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"contractURI","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"dataURI","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"delegate","inputs":[{"type":"address","name":"delegatee","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"delegateBySig","inputs":[{"type":"address","name":"delegatee","internalType":"address"},{"type":"uint256","name":"nonce","internalType":"uint256"},{"type":"uint256","name":"expiry","internalType":"uint256"},{"type":"uint8","name":"v","internalType":"uint8"},{"type":"bytes32","name":"r","internalType":"bytes32"},{"type":"bytes32","name":"s","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"delegates","inputs":[{"type":"address","name":"delegator","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"getApproved","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint96","name":"","internalType":"uint96"}],"name":"getCurrentVotes","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint96","name":"","internalType":"uint96"}],"name":"getPriorVotes","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"uint256","name":"blockNumber","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isApprovedForAll","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"operator","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isMinterLocked","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"lockMinter","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"mint","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"minter","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"nonces","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"noundersDAO","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint32","name":"","internalType":"uint32"}],"name":"numCheckpoints","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"ownerOf","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeTransferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeTransferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"bytes","name":"_data","internalType":"bytes"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setApprovalForAll","inputs":[{"type":"address","name":"operator","internalType":"address"},{"type":"bool","name":"approved","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setContractURIHash","inputs":[{"type":"string","name":"newContractURIHash","internalType":"string"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMinter","inputs":[{"type":"address","name":"_minter","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setNoundersDAO","inputs":[{"type":"address","name":"_noundersDAO","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceId","internalType":"bytes4"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tokenByIndex","inputs":[{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tokenOfOwnerByIndex","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"tokenURI","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint96","name":"","internalType":"uint96"}],"name":"votesToDelegate","inputs":[{"type":"address","name":"delegator","internalType":"address"}]}]
              

Contract Creation Code

0x60806040526040518060600160405280602e815260200162006160602e913960129080519060200190620000359291906200027f565b503480156200004357600080fd5b506040516200618e3803806200618e833981810160405281019062000069919062000346565b6040518060400160405280600981526020017f536f6c617250756e6b00000000000000000000000000000000000000000000008152506040518060400160405280600581526020017f7370756e6b000000000000000000000000000000000000000000000000000000815250620000f5620000e9620001b360201b60201c565b620001bb60201b60201c565b81600190805190602001906200010d9291906200027f565b508060029080519060200190620001269291906200027f565b50505081600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505062000445565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200028d90620003c1565b90600052602060002090601f016020900481019282620002b15760008555620002fd565b82601f10620002cc57805160ff1916838001178555620002fd565b82800160010185558215620002fd579182015b82811115620002fc578251825591602001919060010190620002df565b5b5090506200030c919062000310565b5090565b5b808211156200032b57600081600090555060010162000311565b5090565b60008151905062000340816200042b565b92915050565b6000806040838503121562000360576200035f62000426565b5b600062000370858286016200032f565b925050602062000383858286016200032f565b9150509250929050565b60006200039a82620003a1565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006002820490506001821680620003da57607f821691505b60208210811415620003f157620003f0620003f7565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b62000436816200038d565b81146200044257600080fd5b50565b615d0b80620004556000396000f3fe608060405234801561001057600080fd5b506004361061025e5760003560e01c80636fcfff4511610146578063b88d4fde116100c3578063e8a3d48511610087578063e8a3d48514610749578063e9580e9114610767578063e985e9c514610797578063f1127ed8146107c7578063f2fde38b146107f8578063fca3b5aa146108145761025e565b8063b88d4fde146106a7578063baedc1c4146106c3578063c3cda520146106df578063c87b56dd146106fb578063e7a324dc1461072b5761025e565b80637ecebe001161010a5780637ecebe00146105ef5780638da5cb5b1461061f57806395d89b411461063d578063a22cb4651461065b578063b4b5ea57146106775761025e565b80636fcfff451461054b57806370a082311461057b578063715018a6146105ab57806376daebe1146105b5578063782d6fe1146105bf5761025e565b806323b872dd116101df5780634f6ccce7116101a35780634f6ccce714610451578063587cde1e146104815780635ac1e3bb146104b15780635c19a95c146104e15780636352211e146104fd578063655932a41461052d5761025e565b806323b872dd146103af5780632f745c59146103cb578063313ce567146103fb57806342842e0e1461041957806342966c68146104355761025e565b8063095ea7b311610226578063095ea7b31461031b5780631249c58b1461033757806318160ddd146103555780631e688e101461037357806320606b70146103915761025e565b806301ffc9a714610263578063058df0ab1461029357806306fdde03146102af57806307546172146102cd578063081812fc146102eb575b600080fd5b61027d60048036038101906102789190614220565b610830565b60405161028a9190614959565b60405180910390f35b6102ad60048036038101906102a89190613f90565b6108aa565b005b6102b76109b5565b6040516102c49190614a5e565b60405180910390f35b6102d5610a47565b6040516102e291906148f2565b60405180910390f35b610305600480360381019061030091906142c3565b610a6d565b60405161031291906148f2565b60405180910390f35b61033560048036038101906103309190614113565b610af2565b005b61033f610c0a565b60405161034c9190614dc0565b60405180910390f35b61035d610ce3565b60405161036a9190614dc0565b60405180910390f35b61037b610cf0565b6040516103889190614959565b60405180910390f35b610399610d03565b6040516103a69190614974565b60405180910390f35b6103c960048036038101906103c49190613ffd565b610d27565b005b6103e560048036038101906103e09190614113565b610d87565b6040516103f29190614dc0565b60405180910390f35b610403610e2c565b6040516104109190614e1f565b60405180910390f35b610433600480360381019061042e9190613ffd565b610e31565b005b61044f600480360381019061044a91906142c3565b610e51565b005b61046b600480360381019061046691906142c3565b610f1a565b6040516104789190614dc0565b60405180910390f35b61049b60048036038101906104969190613f90565b610f8b565b6040516104a891906148f2565b60405180910390f35b6104cb60048036038101906104c691906142c3565b611034565b6040516104d89190614a5e565b60405180910390f35b6104fb60048036038101906104f69190613f90565b61108e565b005b610517600480360381019061051291906142c3565b6110d4565b60405161052491906148f2565b60405180910390f35b610535611186565b60405161054291906148f2565b60405180910390f35b61056560048036038101906105609190613f90565b6111ac565b6040516105729190614ddb565b60405180910390f35b61059560048036038101906105909190613f90565b6111cf565b6040516105a29190614dc0565b60405180910390f35b6105b3611287565b005b6105bd61129b565b005b6105d960048036038101906105d49190614113565b61133c565b6040516105e69190614e3a565b60405180910390f35b61060960048036038101906106049190613f90565b611777565b6040516106169190614dc0565b60405180910390f35b61062761178f565b60405161063491906148f2565b60405180910390f35b6106456117b8565b6040516106529190614a5e565b60405180910390f35b610675600480360381019061067091906140d3565b61184a565b005b610691600480360381019061068c9190613f90565b6119cb565b60405161069e9190614e3a565b60405180910390f35b6106c160048036038101906106bc9190614050565b611ac2565b005b6106dd60048036038101906106d8919061427a565b611b24565b005b6106f960048036038101906106f49190614153565b611b46565b005b610715600480360381019061071091906142c3565b611ddb565b6040516107229190614a5e565b60405180910390f35b610733611e82565b6040516107409190614974565b60405180910390f35b610751611ea6565b60405161075e9190614a5e565b60405180910390f35b610781600480360381019061077c9190613f90565b611ece565b60405161078e9190614e3a565b60405180910390f35b6107b160048036038101906107ac9190613fbd565b611f01565b6040516107be9190614959565b60405180910390f35b6107e160048036038101906107dc91906141e0565b611f15565b6040516107ef929190614df6565b60405180910390f35b610812600480360381019061080d9190613f90565b611f6e565b005b61082e60048036038101906108299190613f90565b611ff2565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108a357506108a2826120c5565b5b9050919050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461093a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093190614d40565b60405180910390fd5b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f3a0b923617f180781f3530e464cb4a8b9393e69f47607e4eb28d61cd87ce968c816040516109aa91906148f2565b60405180910390a150565b6060600180546109c490615203565b80601f01602080910402602001604051908101604052809291908181526020018280546109f090615203565b8015610a3d5780601f10610a1257610100808354040283529160200191610a3d565b820191906000526020600020905b815481529060010190602001808311610a2057829003601f168201915b5050505050905090565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610a78826121a7565b610ab7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aae90614ca0565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610afd826110d4565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6590614d20565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b8d612213565b73ffffffffffffffffffffffffffffffffffffffff161480610bbc5750610bbb81610bb6612213565b611f01565b5b610bfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf290614c00565b60405180910390fd5b610c05838361221b565b505050565b6000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9390614b00565b60405180910390fd5b610cde601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660116000815480929190610cd590615266565b919050556122d4565b905090565b6000600980549050905090565b601060149054906101000a900460ff1681565b7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b610d38610d32612213565b8261231e565b610d77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6e90614d60565b60405180910390fd5b610d828383836123fc565b505050565b6000610d92836111cf565b8210610dd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dca90614aa0565b60405180910390fd5b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600081565b610e4c83838360405180602001604052806000815250611ac2565b505050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ee1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed890614b00565b60405180910390fd5b610eea81612658565b807f806be94a2ac8b92d74e99aa8add5a8e54528a01ec914a9e00d201a6480ed986360405160405180910390a250565b6000610f24610ce3565b8210610f65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5c90614da0565b60405180910390fd5b60098281548110610f7957610f78615375565b5b90600052602060002001549050919050565b600080600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461102a578061102c565b825b915050919050565b606061103f826121a7565b61107e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107590614c60565b60405180910390fd5b61108782611ddb565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156110c7573390505b6110d13382612769565b50565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561117d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117490614c40565b60405180910390fd5b80915050919050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600d6020528060005260406000206000915054906101000a900463ffffffff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611240576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123790614c20565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61128f612883565b6112996000612901565b565b6112a3612883565b601060149054906101000a900460ff16156112f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ea90614be0565b60405180910390fd5b6001601060146101000a81548160ff0219169083151502179055507f192417b3f16b1ce69e0c59b0376549666650245ffc05e4b2569089dda8589b6660405160405180910390a1565b6000438210611380576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137790614d80565b60405180910390fd5b6000600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff16905060008163ffffffff1614156113ed576000915050611771565b82600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600060018461143c9190615094565b63ffffffff1663ffffffff16815260200190815260200160002060000160009054906101000a900463ffffffff1663ffffffff161161150157600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006001836114c39190615094565b63ffffffff1663ffffffff16815260200190815260200160002060000160049054906101000a90046bffffffffffffffffffffffff16915050611771565b82600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008063ffffffff16815260200190815260200160002060000160009054906101000a900463ffffffff1663ffffffff161115611582576000915050611771565b6000806001836115929190615094565b90505b8163ffffffff168163ffffffff1611156116f3576000600283836115b99190615094565b6115c3919061502f565b826115ce9190615094565b90506000600c60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008363ffffffff1663ffffffff1681526020019081526020016000206040518060400160405290816000820160009054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160049054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff1681525050905086816000015163ffffffff1614156116c257806020015195505050505050611771565b86816000015163ffffffff1610156116dc578193506116ec565b6001826116e99190615094565b92505b5050611595565b600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008363ffffffff1663ffffffff16815260200190815260200160002060000160049054906101000a90046bffffffffffffffffffffffff1693505050505b92915050565b600e6020528060005260406000206000915090505481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600280546117c790615203565b80601f01602080910402602001604051908101604052809291908181526020018280546117f390615203565b80156118405780601f1061181557610100808354040283529160200191611840565b820191906000526020600020905b81548152906001019060200180831161182357829003601f168201915b5050505050905090565b611852612213565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b790614b80565b60405180910390fd5b80600660006118cd612213565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661197a612213565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516119bf9190614959565b60405180910390a35050565b600080600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff16905060008163ffffffff1611611a35576000611aba565b600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000600183611a839190615094565b63ffffffff1663ffffffff16815260200190815260200160002060000160049054906101000a90046bffffffffffffffffffffffff165b915050919050565b611ad3611acd612213565b8361231e565b611b12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0990614d60565b60405180910390fd5b611b1e848484846129c5565b50505050565b611b2c612883565b8060129080519060200190611b42929190613d65565b5050565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866611b716109b5565b80519060200120611b80612a21565b30604051602001611b9494939291906149d4565b60405160208183030381529060405280519060200120905060007fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf888888604051602001611be5949392919061498f565b60405160208183030381529060405280519060200120905060008282604051602001611c12929190614899565b604051602081830303815290604052805190602001209050600060018288888860405160008152602001604052604051611c4f9493929190614a19565b6020604051602081039080840390855afa158015611c71573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611ced576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ce490614ba0565b60405180910390fd5b600e60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190611d3d90615266565b919050558914611d82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7990614b40565b60405180910390fd5b87421115611dc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dbc90614a80565b60405180910390fd5b611dcf818b612769565b50505050505050505050565b6060611de6826121a7565b611e25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1c90614d00565b60405180910390fd5b6000611e2f612a2e565b90506000815111611e4f5760405180602001604052806000815250611e7a565b80611e5984612a45565b604051602001611e6a929190614875565b6040516020818303038152906040525b915050919050565b7fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b60606012604051602001611eba91906148d0565b604051602081830303815290604052905090565b6000611efa611edc836111cf565b6040518060600160405280603d8152602001615c62603d9139612b1d565b9050919050565b6000611f0d8383612b7b565b905092915050565b600c602052816000526040600020602052806000526040600020600091509150508060000160009054906101000a900463ffffffff16908060000160049054906101000a90046bffffffffffffffffffffffff16905082565b611f76612883565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611fe6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fdd90614ae0565b60405180910390fd5b611fef81612901565b50565b611ffa612883565b601060149054906101000a900460ff161561204a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204190614be0565b60405180910390fd5b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fad0f299ec81a386c98df0ac27dae11dd020ed1b56963c53a7292e7a3a314539a816040516120ba91906148f2565b60405180910390a150565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061219057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806121a0575061219f82612c0f565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661228e836110d4565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006122e86122e161178f565b8484612c79565b817f500276f57d63380e3c42ff9520054fa8200e8665da928e4553c8fa67d159087960405160405180910390a281905092915050565b6000612329826121a7565b612368576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161235f90614bc0565b60405180910390fd5b6000612373836110d4565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806123e257508373ffffffffffffffffffffffffffffffffffffffff166123ca84610a6d565b73ffffffffffffffffffffffffffffffffffffffff16145b806123f357506123f28185611f01565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661241c826110d4565b73ffffffffffffffffffffffffffffffffffffffff1614612472576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246990614ce0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156124e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d990614b60565b60405180910390fd5b6124ed838383612ea3565b6124f860008261221b565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125489190615060565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461259f9190614f5d565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000612663826110d4565b905061267181600084612ea3565b61267c60008361221b565b6001600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126cc9190615060565b925050819055506003600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600061277483610f8b565b905081600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f60405160405180910390a4600061287084611ece565b905061287d828483612ecf565b50505050565b61288b612213565b73ffffffffffffffffffffffffffffffffffffffff166128a961178f565b73ffffffffffffffffffffffffffffffffffffffff16146128ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128f690614cc0565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6129d08484846123fc565b6129dc848484846131dc565b612a1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a1290614ac0565b60405180910390fd5b50505050565b6000804690508091505090565b606060405180602001604052806000815250905090565b606060006001612a5484613373565b01905060008167ffffffffffffffff811115612a7357612a726153a4565b5b6040519080825280601f01601f191660200182016040528015612aa55781602001600182028036833780820191505090505b509050600082602001820190505b600115612b12578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612afc57612afb6152e8565b5b0494506000851415612b0d57612b12565b612ab3565b819350505050919050565b60006c0100000000000000000000000083108290612b71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b689190614a5e565b60405180910390fd5b5082905092915050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612ce9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ce090614c80565b60405180910390fd5b612cf2816121a7565b15612d32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d2990614b20565b60405180910390fd5b612d3e60008383612ea3565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612d8e9190614f5d565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808373ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b612eae8383836134c6565b612eca612eba84610f8b565b612ec384610f8b565b6001612ecf565b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015612f1957506000816bffffffffffffffffffffffff16115b156131d757600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461307a576000600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff1690506000808263ffffffff1611612fbc576000613041565b600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600060018461300a9190615094565b63ffffffff1663ffffffff16815260200190815260200160002060000160049054906101000a90046bffffffffffffffffffffffff165b905060006130688285604051806060016040528060378152602001615c9f603791396135da565b905061307686848484613654565b5050505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146131d6576000600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff1690506000808263ffffffff161161311857600061319d565b600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006001846131669190615094565b63ffffffff1663ffffffff16815260200190815260200160002060000160049054906101000a90046bffffffffffffffffffffffff165b905060006131c48285604051806060016040528060368152602001615be860369139613962565b90506131d285848484613654565b5050505b5b505050565b60006131fd8473ffffffffffffffffffffffffffffffffffffffff166139e1565b15613366578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613226612213565b8786866040518563ffffffff1660e01b8152600401613248949392919061490d565b602060405180830381600087803b15801561326257600080fd5b505af192505050801561329357506040513d601f19601f82011682018060405250810190613290919061424d565b60015b613316573d80600081146132c3576040519150601f19603f3d011682016040523d82523d6000602084013e6132c8565b606091505b5060008151141561330e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161330590614ac0565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061336b565b600190505b949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106133d1577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816133c7576133c66152e8565b5b0492506040810190505b6d04ee2d6d415b85acef8100000000831061340e576d04ee2d6d415b85acef81000000008381613404576134036152e8565b5b0492506020810190505b662386f26fc10000831061343d57662386f26fc100008381613433576134326152e8565b5b0492506010810190505b6305f5e1008310613466576305f5e100838161345c5761345b6152e8565b5b0492506008810190505b612710831061348b576127108381613481576134806152e8565b5b0492506004810190505b606483106134ae57606483816134a4576134a36152e8565b5b0492506002810190505b600a83106134bd576001810190505b80915050919050565b6134d1838383613a04565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156135145761350f81613a09565b613553565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614613552576135518382613a52565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156135965761359181613bbf565b6135d5565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146135d4576135d38282613c90565b5b5b505050565b6000836bffffffffffffffffffffffff16836bffffffffffffffffffffffff161115829061363e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136359190614a5e565b60405180910390fd5b50828461364b91906150c8565b90509392505050565b600061367843604051806080016040528060448152602001615c1e60449139613d0f565b905060008463ffffffff1611801561371657508063ffffffff16600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006001876136e09190615094565b63ffffffff1663ffffffff16815260200190815260200160002060000160009054906101000a900463ffffffff1663ffffffff16145b156137ba5781600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600060018761376a9190615094565b63ffffffff1663ffffffff16815260200190815260200160002060000160046101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555061390b565b60405180604001604052808263ffffffff168152602001836bffffffffffffffffffffffff16815250600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008663ffffffff1663ffffffff16815260200190815260200160002060008201518160000160006101000a81548163ffffffff021916908363ffffffff16021790555060208201518160000160046101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050506001846138ad9190614fb3565b600d60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548163ffffffff021916908363ffffffff1602179055505b8473ffffffffffffffffffffffffffffffffffffffff167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248484604051613953929190614e55565b60405180910390a25050505050565b60008083856139719190614fed565b9050846bffffffffffffffffffffffff16816bffffffffffffffffffffffff16101583906139d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139cc9190614a5e565b60405180910390fd5b50809150509392505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b505050565b600980549050600a600083815260200190815260200160002081905550600981908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613a5f846111cf565b613a699190615060565b9050600060086000848152602001908152602001600020549050818114613b4e576000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816008600083815260200190815260200160002081905550505b6008600084815260200190815260200160002060009055600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600980549050613bd39190615060565b90506000600a6000848152602001908152602001600020549050600060098381548110613c0357613c02615375565b5b906000526020600020015490508060098381548110613c2557613c24615375565b5b906000526020600020018190555081600a600083815260200190815260200160002081905550600a6000858152602001908152602001600020600090556009805480613c7457613c73615346565b5b6001900381819060005260206000200160009055905550505050565b6000613c9b836111cf565b905081600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806008600084815260200190815260200160002081905550505050565b600064010000000083108290613d5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d529190614a5e565b60405180910390fd5b5082905092915050565b828054613d7190615203565b90600052602060002090601f016020900481019282613d935760008555613dda565b82601f10613dac57805160ff1916838001178555613dda565b82800160010185558215613dda579182015b82811115613dd9578251825591602001919060010190613dbe565b5b509050613de79190613deb565b5090565b5b80821115613e04576000816000905550600101613dec565b5090565b6000613e1b613e1684614ea3565b614e7e565b905082815260208101848484011115613e3757613e366153d8565b5b613e428482856151c1565b509392505050565b6000613e5d613e5884614ed4565b614e7e565b905082815260208101848484011115613e7957613e786153d8565b5b613e848482856151c1565b509392505050565b600081359050613e9b81615b46565b92915050565b600081359050613eb081615b5d565b92915050565b600081359050613ec581615b74565b92915050565b600081359050613eda81615b8b565b92915050565b600081519050613eef81615b8b565b92915050565b600082601f830112613f0a57613f096153d3565b5b8135613f1a848260208601613e08565b91505092915050565b600082601f830112613f3857613f376153d3565b5b8135613f48848260208601613e4a565b91505092915050565b600081359050613f6081615ba2565b92915050565b600081359050613f7581615bb9565b92915050565b600081359050613f8a81615bd0565b92915050565b600060208284031215613fa657613fa56153e2565b5b6000613fb484828501613e8c565b91505092915050565b60008060408385031215613fd457613fd36153e2565b5b6000613fe285828601613e8c565b9250506020613ff385828601613e8c565b9150509250929050565b600080600060608486031215614016576140156153e2565b5b600061402486828701613e8c565b935050602061403586828701613e8c565b925050604061404686828701613f51565b9150509250925092565b6000806000806080858703121561406a576140696153e2565b5b600061407887828801613e8c565b945050602061408987828801613e8c565b935050604061409a87828801613f51565b925050606085013567ffffffffffffffff8111156140bb576140ba6153dd565b5b6140c787828801613ef5565b91505092959194509250565b600080604083850312156140ea576140e96153e2565b5b60006140f885828601613e8c565b925050602061410985828601613ea1565b9150509250929050565b6000806040838503121561412a576141296153e2565b5b600061413885828601613e8c565b925050602061414985828601613f51565b9150509250929050565b60008060008060008060c087890312156141705761416f6153e2565b5b600061417e89828a01613e8c565b965050602061418f89828a01613f51565b95505060406141a089828a01613f51565b94505060606141b189828a01613f7b565b93505060806141c289828a01613eb6565b92505060a06141d389828a01613eb6565b9150509295509295509295565b600080604083850312156141f7576141f66153e2565b5b600061420585828601613e8c565b925050602061421685828601613f66565b9150509250929050565b600060208284031215614236576142356153e2565b5b600061424484828501613ecb565b91505092915050565b600060208284031215614263576142626153e2565b5b600061427184828501613ee0565b91505092915050565b6000602082840312156142905761428f6153e2565b5b600082013567ffffffffffffffff8111156142ae576142ad6153dd565b5b6142ba84828501613f23565b91505092915050565b6000602082840312156142d9576142d86153e2565b5b60006142e784828501613f51565b91505092915050565b6142f9816150fc565b82525050565b6143088161510e565b82525050565b6143178161511a565b82525050565b61432e6143298261511a565b6152af565b82525050565b600061433f82614f1a565b6143498185614f30565b93506143598185602086016151d0565b614362816153e7565b840191505092915050565b600061437882614f25565b6143828185614f41565b93506143928185602086016151d0565b61439b816153e7565b840191505092915050565b60006143b182614f25565b6143bb8185614f52565b93506143cb8185602086016151d0565b80840191505092915050565b600081546143e481615203565b6143ee8186614f52565b94506001821660008114614409576001811461441a5761444d565b60ff1983168652818601935061444d565b61442385614f05565b60005b8381101561444557815481890152600182019150602081019050614426565b838801955050505b50505092915050565b6000614463603683614f41565b915061446e826153f8565b604082019050919050565b6000614486602b83614f41565b915061449182615447565b604082019050919050565b60006144a9603283614f41565b91506144b482615496565b604082019050919050565b60006144cc602683614f41565b91506144d7826154e5565b604082019050919050565b60006144ef601883614f41565b91506144fa82615534565b602082019050919050565b6000614512601c83614f41565b915061451d8261555d565b602082019050919050565b6000614535600283614f52565b915061454082615586565b600282019050919050565b6000614558603283614f41565b9150614563826155af565b604082019050919050565b600061457b602483614f41565b9150614586826155fe565b604082019050919050565b600061459e601983614f41565b91506145a98261564d565b602082019050919050565b60006145c1603683614f41565b91506145cc82615676565b604082019050919050565b60006145e4602c83614f41565b91506145ef826156c5565b604082019050919050565b6000614607600783614f52565b915061461282615714565b600782019050919050565b600061462a601083614f41565b91506146358261573d565b602082019050919050565b600061464d603883614f41565b915061465882615766565b604082019050919050565b6000614670602a83614f41565b915061467b826157b5565b604082019050919050565b6000614693602983614f41565b915061469e82615804565b604082019050919050565b60006146b6602b83614f41565b91506146c182615853565b604082019050919050565b60006146d9602083614f41565b91506146e4826158a2565b602082019050919050565b60006146fc602c83614f41565b9150614707826158cb565b604082019050919050565b600061471f602083614f41565b915061472a8261591a565b602082019050919050565b6000614742602983614f41565b915061474d82615943565b604082019050919050565b6000614765602f83614f41565b915061477082615992565b604082019050919050565b6000614788602183614f41565b9150614793826159e1565b604082019050919050565b60006147ab601e83614f41565b91506147b682615a30565b602082019050919050565b60006147ce603183614f41565b91506147d982615a59565b604082019050919050565b60006147f1603783614f41565b91506147fc82615aa8565b604082019050919050565b6000614814602c83614f41565b915061481f82615af7565b604082019050919050565b61483381615170565b82525050565b6148428161517a565b82525050565b6148518161518a565b82525050565b614860816151af565b82525050565b61486f81615197565b82525050565b600061488182856143a6565b915061488d82846143a6565b91508190509392505050565b60006148a482614528565b91506148b0828561431d565b6020820191506148c0828461431d565b6020820191508190509392505050565b60006148db826145fa565b91506148e782846143d7565b915081905092915050565b600060208201905061490760008301846142f0565b92915050565b600060808201905061492260008301876142f0565b61492f60208301866142f0565b61493c604083018561482a565b818103606083015261494e8184614334565b905095945050505050565b600060208201905061496e60008301846142ff565b92915050565b6000602082019050614989600083018461430e565b92915050565b60006080820190506149a4600083018761430e565b6149b160208301866142f0565b6149be604083018561482a565b6149cb606083018461482a565b95945050505050565b60006080820190506149e9600083018761430e565b6149f6602083018661430e565b614a03604083018561482a565b614a1060608301846142f0565b95945050505050565b6000608082019050614a2e600083018761430e565b614a3b6020830186614848565b614a48604083018561430e565b614a55606083018461430e565b95945050505050565b60006020820190508181036000830152614a78818461436d565b905092915050565b60006020820190508181036000830152614a9981614456565b9050919050565b60006020820190508181036000830152614ab981614479565b9050919050565b60006020820190508181036000830152614ad98161449c565b9050919050565b60006020820190508181036000830152614af9816144bf565b9050919050565b60006020820190508181036000830152614b19816144e2565b9050919050565b60006020820190508181036000830152614b3981614505565b9050919050565b60006020820190508181036000830152614b598161454b565b9050919050565b60006020820190508181036000830152614b798161456e565b9050919050565b60006020820190508181036000830152614b9981614591565b9050919050565b60006020820190508181036000830152614bb9816145b4565b9050919050565b60006020820190508181036000830152614bd9816145d7565b9050919050565b60006020820190508181036000830152614bf98161461d565b9050919050565b60006020820190508181036000830152614c1981614640565b9050919050565b60006020820190508181036000830152614c3981614663565b9050919050565b60006020820190508181036000830152614c5981614686565b9050919050565b60006020820190508181036000830152614c79816146a9565b9050919050565b60006020820190508181036000830152614c99816146cc565b9050919050565b60006020820190508181036000830152614cb9816146ef565b9050919050565b60006020820190508181036000830152614cd981614712565b9050919050565b60006020820190508181036000830152614cf981614735565b9050919050565b60006020820190508181036000830152614d1981614758565b9050919050565b60006020820190508181036000830152614d398161477b565b9050919050565b60006020820190508181036000830152614d598161479e565b9050919050565b60006020820190508181036000830152614d79816147c1565b9050919050565b60006020820190508181036000830152614d99816147e4565b9050919050565b60006020820190508181036000830152614db981614807565b9050919050565b6000602082019050614dd5600083018461482a565b92915050565b6000602082019050614df06000830184614839565b92915050565b6000604082019050614e0b6000830185614839565b614e186020830184614866565b9392505050565b6000602082019050614e346000830184614848565b92915050565b6000602082019050614e4f6000830184614866565b92915050565b6000604082019050614e6a6000830185614857565b614e776020830184614857565b9392505050565b6000614e88614e99565b9050614e948282615235565b919050565b6000604051905090565b600067ffffffffffffffff821115614ebe57614ebd6153a4565b5b614ec7826153e7565b9050602081019050919050565b600067ffffffffffffffff821115614eef57614eee6153a4565b5b614ef8826153e7565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000614f6882615170565b9150614f7383615170565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614fa857614fa76152b9565b5b828201905092915050565b6000614fbe8261517a565b9150614fc98361517a565b92508263ffffffff03821115614fe257614fe16152b9565b5b828201905092915050565b6000614ff882615197565b915061500383615197565b9250826bffffffffffffffffffffffff03821115615024576150236152b9565b5b828201905092915050565b600061503a8261517a565b91506150458361517a565b925082615055576150546152e8565b5b828204905092915050565b600061506b82615170565b915061507683615170565b925082821015615089576150886152b9565b5b828203905092915050565b600061509f8261517a565b91506150aa8361517a565b9250828210156150bd576150bc6152b9565b5b828203905092915050565b60006150d382615197565b91506150de83615197565b9250828210156150f1576150f06152b9565b5b828203905092915050565b600061510782615150565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600060ff82169050919050565b60006bffffffffffffffffffffffff82169050919050565b60006151ba82615197565b9050919050565b82818337600083830152505050565b60005b838110156151ee5780820151818401526020810190506151d3565b838111156151fd576000848401525b50505050565b6000600282049050600182168061521b57607f821691505b6020821081141561522f5761522e615317565b5b50919050565b61523e826153e7565b810181811067ffffffffffffffff8211171561525d5761525c6153a4565b5b80604052505050565b600061527182615170565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156152a4576152a36152b9565b5b600182019050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f455243373231436865636b706f696e7461626c653a3a64656c6567617465427960008201527f5369673a207369676e6174757265206578706972656400000000000000000000602082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f53656e646572206973206e6f7420746865206d696e7465720000000000000000600082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b7f455243373231436865636b706f696e7461626c653a3a64656c6567617465427960008201527f5369673a20696e76616c6964206e6f6e63650000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f455243373231436865636b706f696e7461626c653a3a64656c6567617465427960008201527f5369673a20696e76616c6964207369676e617475726500000000000000000000602082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f697066733a2f2f00000000000000000000000000000000000000000000000000600082015250565b7f4d696e746572206973206c6f636b656400000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4e6f756e73546f6b656e3a2055524920717565727920666f72206e6f6e65786960008201527f7374656e7420746f6b656e000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f53656e646572206973206e6f7420746865206e6f756e646572732044414f0000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231436865636b706f696e7461626c653a3a6765745072696f72566f60008201527f7465733a206e6f74207965742064657465726d696e6564000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b615b4f816150fc565b8114615b5a57600080fd5b50565b615b668161510e565b8114615b7157600080fd5b50565b615b7d8161511a565b8114615b8857600080fd5b50565b615b9481615124565b8114615b9f57600080fd5b50565b615bab81615170565b8114615bb657600080fd5b50565b615bc28161517a565b8114615bcd57600080fd5b50565b615bd98161518a565b8114615be457600080fd5b5056fe455243373231436865636b706f696e7461626c653a3a5f6d6f766544656c6567617465733a20616d6f756e74206f766572666c6f7773455243373231436865636b706f696e7461626c653a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473455243373231436865636b706f696e7461626c653a3a766f746573546f44656c65676174653a20616d6f756e7420657863656564732039362062697473455243373231436865636b706f696e7461626c653a3a5f6d6f766544656c6567617465733a20616d6f756e7420756e646572666c6f7773a2646970667358221220cef5e2bcb1001acbe9683f963ece6c86a3d1db23e6120003f0dd1b4a5a3eea1764736f6c63430008070033516d527362706e3177416d6472355642367657554d475355567a6a545372343655446574566a50727831354438750000000000000000000000008b2f369379c6ccfec432e34d435712616666963a0000000000000000000000008b2f369379c6ccfec432e34d435712616666963a

Deployed ByteCode

0x608060405234801561001057600080fd5b506004361061025e5760003560e01c80636fcfff4511610146578063b88d4fde116100c3578063e8a3d48511610087578063e8a3d48514610749578063e9580e9114610767578063e985e9c514610797578063f1127ed8146107c7578063f2fde38b146107f8578063fca3b5aa146108145761025e565b8063b88d4fde146106a7578063baedc1c4146106c3578063c3cda520146106df578063c87b56dd146106fb578063e7a324dc1461072b5761025e565b80637ecebe001161010a5780637ecebe00146105ef5780638da5cb5b1461061f57806395d89b411461063d578063a22cb4651461065b578063b4b5ea57146106775761025e565b80636fcfff451461054b57806370a082311461057b578063715018a6146105ab57806376daebe1146105b5578063782d6fe1146105bf5761025e565b806323b872dd116101df5780634f6ccce7116101a35780634f6ccce714610451578063587cde1e146104815780635ac1e3bb146104b15780635c19a95c146104e15780636352211e146104fd578063655932a41461052d5761025e565b806323b872dd146103af5780632f745c59146103cb578063313ce567146103fb57806342842e0e1461041957806342966c68146104355761025e565b8063095ea7b311610226578063095ea7b31461031b5780631249c58b1461033757806318160ddd146103555780631e688e101461037357806320606b70146103915761025e565b806301ffc9a714610263578063058df0ab1461029357806306fdde03146102af57806307546172146102cd578063081812fc146102eb575b600080fd5b61027d60048036038101906102789190614220565b610830565b60405161028a9190614959565b60405180910390f35b6102ad60048036038101906102a89190613f90565b6108aa565b005b6102b76109b5565b6040516102c49190614a5e565b60405180910390f35b6102d5610a47565b6040516102e291906148f2565b60405180910390f35b610305600480360381019061030091906142c3565b610a6d565b60405161031291906148f2565b60405180910390f35b61033560048036038101906103309190614113565b610af2565b005b61033f610c0a565b60405161034c9190614dc0565b60405180910390f35b61035d610ce3565b60405161036a9190614dc0565b60405180910390f35b61037b610cf0565b6040516103889190614959565b60405180910390f35b610399610d03565b6040516103a69190614974565b60405180910390f35b6103c960048036038101906103c49190613ffd565b610d27565b005b6103e560048036038101906103e09190614113565b610d87565b6040516103f29190614dc0565b60405180910390f35b610403610e2c565b6040516104109190614e1f565b60405180910390f35b610433600480360381019061042e9190613ffd565b610e31565b005b61044f600480360381019061044a91906142c3565b610e51565b005b61046b600480360381019061046691906142c3565b610f1a565b6040516104789190614dc0565b60405180910390f35b61049b60048036038101906104969190613f90565b610f8b565b6040516104a891906148f2565b60405180910390f35b6104cb60048036038101906104c691906142c3565b611034565b6040516104d89190614a5e565b60405180910390f35b6104fb60048036038101906104f69190613f90565b61108e565b005b610517600480360381019061051291906142c3565b6110d4565b60405161052491906148f2565b60405180910390f35b610535611186565b60405161054291906148f2565b60405180910390f35b61056560048036038101906105609190613f90565b6111ac565b6040516105729190614ddb565b60405180910390f35b61059560048036038101906105909190613f90565b6111cf565b6040516105a29190614dc0565b60405180910390f35b6105b3611287565b005b6105bd61129b565b005b6105d960048036038101906105d49190614113565b61133c565b6040516105e69190614e3a565b60405180910390f35b61060960048036038101906106049190613f90565b611777565b6040516106169190614dc0565b60405180910390f35b61062761178f565b60405161063491906148f2565b60405180910390f35b6106456117b8565b6040516106529190614a5e565b60405180910390f35b610675600480360381019061067091906140d3565b61184a565b005b610691600480360381019061068c9190613f90565b6119cb565b60405161069e9190614e3a565b60405180910390f35b6106c160048036038101906106bc9190614050565b611ac2565b005b6106dd60048036038101906106d8919061427a565b611b24565b005b6106f960048036038101906106f49190614153565b611b46565b005b610715600480360381019061071091906142c3565b611ddb565b6040516107229190614a5e565b60405180910390f35b610733611e82565b6040516107409190614974565b60405180910390f35b610751611ea6565b60405161075e9190614a5e565b60405180910390f35b610781600480360381019061077c9190613f90565b611ece565b60405161078e9190614e3a565b60405180910390f35b6107b160048036038101906107ac9190613fbd565b611f01565b6040516107be9190614959565b60405180910390f35b6107e160048036038101906107dc91906141e0565b611f15565b6040516107ef929190614df6565b60405180910390f35b610812600480360381019061080d9190613f90565b611f6e565b005b61082e60048036038101906108299190613f90565b611ff2565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108a357506108a2826120c5565b5b9050919050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461093a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093190614d40565b60405180910390fd5b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f3a0b923617f180781f3530e464cb4a8b9393e69f47607e4eb28d61cd87ce968c816040516109aa91906148f2565b60405180910390a150565b6060600180546109c490615203565b80601f01602080910402602001604051908101604052809291908181526020018280546109f090615203565b8015610a3d5780601f10610a1257610100808354040283529160200191610a3d565b820191906000526020600020905b815481529060010190602001808311610a2057829003601f168201915b5050505050905090565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610a78826121a7565b610ab7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aae90614ca0565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610afd826110d4565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6590614d20565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b8d612213565b73ffffffffffffffffffffffffffffffffffffffff161480610bbc5750610bbb81610bb6612213565b611f01565b5b610bfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf290614c00565b60405180910390fd5b610c05838361221b565b505050565b6000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9390614b00565b60405180910390fd5b610cde601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660116000815480929190610cd590615266565b919050556122d4565b905090565b6000600980549050905090565b601060149054906101000a900460ff1681565b7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b610d38610d32612213565b8261231e565b610d77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6e90614d60565b60405180910390fd5b610d828383836123fc565b505050565b6000610d92836111cf565b8210610dd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dca90614aa0565b60405180910390fd5b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600081565b610e4c83838360405180602001604052806000815250611ac2565b505050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ee1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed890614b00565b60405180910390fd5b610eea81612658565b807f806be94a2ac8b92d74e99aa8add5a8e54528a01ec914a9e00d201a6480ed986360405160405180910390a250565b6000610f24610ce3565b8210610f65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5c90614da0565b60405180910390fd5b60098281548110610f7957610f78615375565b5b90600052602060002001549050919050565b600080600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461102a578061102c565b825b915050919050565b606061103f826121a7565b61107e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107590614c60565b60405180910390fd5b61108782611ddb565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156110c7573390505b6110d13382612769565b50565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561117d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117490614c40565b60405180910390fd5b80915050919050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600d6020528060005260406000206000915054906101000a900463ffffffff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611240576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123790614c20565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61128f612883565b6112996000612901565b565b6112a3612883565b601060149054906101000a900460ff16156112f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ea90614be0565b60405180910390fd5b6001601060146101000a81548160ff0219169083151502179055507f192417b3f16b1ce69e0c59b0376549666650245ffc05e4b2569089dda8589b6660405160405180910390a1565b6000438210611380576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137790614d80565b60405180910390fd5b6000600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff16905060008163ffffffff1614156113ed576000915050611771565b82600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600060018461143c9190615094565b63ffffffff1663ffffffff16815260200190815260200160002060000160009054906101000a900463ffffffff1663ffffffff161161150157600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006001836114c39190615094565b63ffffffff1663ffffffff16815260200190815260200160002060000160049054906101000a90046bffffffffffffffffffffffff16915050611771565b82600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008063ffffffff16815260200190815260200160002060000160009054906101000a900463ffffffff1663ffffffff161115611582576000915050611771565b6000806001836115929190615094565b90505b8163ffffffff168163ffffffff1611156116f3576000600283836115b99190615094565b6115c3919061502f565b826115ce9190615094565b90506000600c60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008363ffffffff1663ffffffff1681526020019081526020016000206040518060400160405290816000820160009054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160049054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff1681525050905086816000015163ffffffff1614156116c257806020015195505050505050611771565b86816000015163ffffffff1610156116dc578193506116ec565b6001826116e99190615094565b92505b5050611595565b600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008363ffffffff1663ffffffff16815260200190815260200160002060000160049054906101000a90046bffffffffffffffffffffffff1693505050505b92915050565b600e6020528060005260406000206000915090505481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600280546117c790615203565b80601f01602080910402602001604051908101604052809291908181526020018280546117f390615203565b80156118405780601f1061181557610100808354040283529160200191611840565b820191906000526020600020905b81548152906001019060200180831161182357829003601f168201915b5050505050905090565b611852612213565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b790614b80565b60405180910390fd5b80600660006118cd612213565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661197a612213565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516119bf9190614959565b60405180910390a35050565b600080600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff16905060008163ffffffff1611611a35576000611aba565b600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000600183611a839190615094565b63ffffffff1663ffffffff16815260200190815260200160002060000160049054906101000a90046bffffffffffffffffffffffff165b915050919050565b611ad3611acd612213565b8361231e565b611b12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0990614d60565b60405180910390fd5b611b1e848484846129c5565b50505050565b611b2c612883565b8060129080519060200190611b42929190613d65565b5050565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866611b716109b5565b80519060200120611b80612a21565b30604051602001611b9494939291906149d4565b60405160208183030381529060405280519060200120905060007fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf888888604051602001611be5949392919061498f565b60405160208183030381529060405280519060200120905060008282604051602001611c12929190614899565b604051602081830303815290604052805190602001209050600060018288888860405160008152602001604052604051611c4f9493929190614a19565b6020604051602081039080840390855afa158015611c71573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611ced576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ce490614ba0565b60405180910390fd5b600e60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190611d3d90615266565b919050558914611d82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7990614b40565b60405180910390fd5b87421115611dc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dbc90614a80565b60405180910390fd5b611dcf818b612769565b50505050505050505050565b6060611de6826121a7565b611e25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1c90614d00565b60405180910390fd5b6000611e2f612a2e565b90506000815111611e4f5760405180602001604052806000815250611e7a565b80611e5984612a45565b604051602001611e6a929190614875565b6040516020818303038152906040525b915050919050565b7fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b60606012604051602001611eba91906148d0565b604051602081830303815290604052905090565b6000611efa611edc836111cf565b6040518060600160405280603d8152602001615c62603d9139612b1d565b9050919050565b6000611f0d8383612b7b565b905092915050565b600c602052816000526040600020602052806000526040600020600091509150508060000160009054906101000a900463ffffffff16908060000160049054906101000a90046bffffffffffffffffffffffff16905082565b611f76612883565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611fe6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fdd90614ae0565b60405180910390fd5b611fef81612901565b50565b611ffa612883565b601060149054906101000a900460ff161561204a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204190614be0565b60405180910390fd5b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fad0f299ec81a386c98df0ac27dae11dd020ed1b56963c53a7292e7a3a314539a816040516120ba91906148f2565b60405180910390a150565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061219057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806121a0575061219f82612c0f565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661228e836110d4565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006122e86122e161178f565b8484612c79565b817f500276f57d63380e3c42ff9520054fa8200e8665da928e4553c8fa67d159087960405160405180910390a281905092915050565b6000612329826121a7565b612368576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161235f90614bc0565b60405180910390fd5b6000612373836110d4565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806123e257508373ffffffffffffffffffffffffffffffffffffffff166123ca84610a6d565b73ffffffffffffffffffffffffffffffffffffffff16145b806123f357506123f28185611f01565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661241c826110d4565b73ffffffffffffffffffffffffffffffffffffffff1614612472576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246990614ce0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156124e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d990614b60565b60405180910390fd5b6124ed838383612ea3565b6124f860008261221b565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125489190615060565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461259f9190614f5d565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000612663826110d4565b905061267181600084612ea3565b61267c60008361221b565b6001600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126cc9190615060565b925050819055506003600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600061277483610f8b565b905081600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f60405160405180910390a4600061287084611ece565b905061287d828483612ecf565b50505050565b61288b612213565b73ffffffffffffffffffffffffffffffffffffffff166128a961178f565b73ffffffffffffffffffffffffffffffffffffffff16146128ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128f690614cc0565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6129d08484846123fc565b6129dc848484846131dc565b612a1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a1290614ac0565b60405180910390fd5b50505050565b6000804690508091505090565b606060405180602001604052806000815250905090565b606060006001612a5484613373565b01905060008167ffffffffffffffff811115612a7357612a726153a4565b5b6040519080825280601f01601f191660200182016040528015612aa55781602001600182028036833780820191505090505b509050600082602001820190505b600115612b12578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612afc57612afb6152e8565b5b0494506000851415612b0d57612b12565b612ab3565b819350505050919050565b60006c0100000000000000000000000083108290612b71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b689190614a5e565b60405180910390fd5b5082905092915050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612ce9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ce090614c80565b60405180910390fd5b612cf2816121a7565b15612d32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d2990614b20565b60405180910390fd5b612d3e60008383612ea3565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612d8e9190614f5d565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808373ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b612eae8383836134c6565b612eca612eba84610f8b565b612ec384610f8b565b6001612ecf565b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015612f1957506000816bffffffffffffffffffffffff16115b156131d757600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461307a576000600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff1690506000808263ffffffff1611612fbc576000613041565b600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600060018461300a9190615094565b63ffffffff1663ffffffff16815260200190815260200160002060000160049054906101000a90046bffffffffffffffffffffffff165b905060006130688285604051806060016040528060378152602001615c9f603791396135da565b905061307686848484613654565b5050505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146131d6576000600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff1690506000808263ffffffff161161311857600061319d565b600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006001846131669190615094565b63ffffffff1663ffffffff16815260200190815260200160002060000160049054906101000a90046bffffffffffffffffffffffff165b905060006131c48285604051806060016040528060368152602001615be860369139613962565b90506131d285848484613654565b5050505b5b505050565b60006131fd8473ffffffffffffffffffffffffffffffffffffffff166139e1565b15613366578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613226612213565b8786866040518563ffffffff1660e01b8152600401613248949392919061490d565b602060405180830381600087803b15801561326257600080fd5b505af192505050801561329357506040513d601f19601f82011682018060405250810190613290919061424d565b60015b613316573d80600081146132c3576040519150601f19603f3d011682016040523d82523d6000602084013e6132c8565b606091505b5060008151141561330e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161330590614ac0565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061336b565b600190505b949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106133d1577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816133c7576133c66152e8565b5b0492506040810190505b6d04ee2d6d415b85acef8100000000831061340e576d04ee2d6d415b85acef81000000008381613404576134036152e8565b5b0492506020810190505b662386f26fc10000831061343d57662386f26fc100008381613433576134326152e8565b5b0492506010810190505b6305f5e1008310613466576305f5e100838161345c5761345b6152e8565b5b0492506008810190505b612710831061348b576127108381613481576134806152e8565b5b0492506004810190505b606483106134ae57606483816134a4576134a36152e8565b5b0492506002810190505b600a83106134bd576001810190505b80915050919050565b6134d1838383613a04565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156135145761350f81613a09565b613553565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614613552576135518382613a52565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156135965761359181613bbf565b6135d5565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146135d4576135d38282613c90565b5b5b505050565b6000836bffffffffffffffffffffffff16836bffffffffffffffffffffffff161115829061363e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136359190614a5e565b60405180910390fd5b50828461364b91906150c8565b90509392505050565b600061367843604051806080016040528060448152602001615c1e60449139613d0f565b905060008463ffffffff1611801561371657508063ffffffff16600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006001876136e09190615094565b63ffffffff1663ffffffff16815260200190815260200160002060000160009054906101000a900463ffffffff1663ffffffff16145b156137ba5781600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600060018761376a9190615094565b63ffffffff1663ffffffff16815260200190815260200160002060000160046101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555061390b565b60405180604001604052808263ffffffff168152602001836bffffffffffffffffffffffff16815250600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008663ffffffff1663ffffffff16815260200190815260200160002060008201518160000160006101000a81548163ffffffff021916908363ffffffff16021790555060208201518160000160046101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050506001846138ad9190614fb3565b600d60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548163ffffffff021916908363ffffffff1602179055505b8473ffffffffffffffffffffffffffffffffffffffff167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248484604051613953929190614e55565b60405180910390a25050505050565b60008083856139719190614fed565b9050846bffffffffffffffffffffffff16816bffffffffffffffffffffffff16101583906139d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139cc9190614a5e565b60405180910390fd5b50809150509392505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b505050565b600980549050600a600083815260200190815260200160002081905550600981908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613a5f846111cf565b613a699190615060565b9050600060086000848152602001908152602001600020549050818114613b4e576000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816008600083815260200190815260200160002081905550505b6008600084815260200190815260200160002060009055600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600980549050613bd39190615060565b90506000600a6000848152602001908152602001600020549050600060098381548110613c0357613c02615375565b5b906000526020600020015490508060098381548110613c2557613c24615375565b5b906000526020600020018190555081600a600083815260200190815260200160002081905550600a6000858152602001908152602001600020600090556009805480613c7457613c73615346565b5b6001900381819060005260206000200160009055905550505050565b6000613c9b836111cf565b905081600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806008600084815260200190815260200160002081905550505050565b600064010000000083108290613d5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d529190614a5e565b60405180910390fd5b5082905092915050565b828054613d7190615203565b90600052602060002090601f016020900481019282613d935760008555613dda565b82601f10613dac57805160ff1916838001178555613dda565b82800160010185558215613dda579182015b82811115613dd9578251825591602001919060010190613dbe565b5b509050613de79190613deb565b5090565b5b80821115613e04576000816000905550600101613dec565b5090565b6000613e1b613e1684614ea3565b614e7e565b905082815260208101848484011115613e3757613e366153d8565b5b613e428482856151c1565b509392505050565b6000613e5d613e5884614ed4565b614e7e565b905082815260208101848484011115613e7957613e786153d8565b5b613e848482856151c1565b509392505050565b600081359050613e9b81615b46565b92915050565b600081359050613eb081615b5d565b92915050565b600081359050613ec581615b74565b92915050565b600081359050613eda81615b8b565b92915050565b600081519050613eef81615b8b565b92915050565b600082601f830112613f0a57613f096153d3565b5b8135613f1a848260208601613e08565b91505092915050565b600082601f830112613f3857613f376153d3565b5b8135613f48848260208601613e4a565b91505092915050565b600081359050613f6081615ba2565b92915050565b600081359050613f7581615bb9565b92915050565b600081359050613f8a81615bd0565b92915050565b600060208284031215613fa657613fa56153e2565b5b6000613fb484828501613e8c565b91505092915050565b60008060408385031215613fd457613fd36153e2565b5b6000613fe285828601613e8c565b9250506020613ff385828601613e8c565b9150509250929050565b600080600060608486031215614016576140156153e2565b5b600061402486828701613e8c565b935050602061403586828701613e8c565b925050604061404686828701613f51565b9150509250925092565b6000806000806080858703121561406a576140696153e2565b5b600061407887828801613e8c565b945050602061408987828801613e8c565b935050604061409a87828801613f51565b925050606085013567ffffffffffffffff8111156140bb576140ba6153dd565b5b6140c787828801613ef5565b91505092959194509250565b600080604083850312156140ea576140e96153e2565b5b60006140f885828601613e8c565b925050602061410985828601613ea1565b9150509250929050565b6000806040838503121561412a576141296153e2565b5b600061413885828601613e8c565b925050602061414985828601613f51565b9150509250929050565b60008060008060008060c087890312156141705761416f6153e2565b5b600061417e89828a01613e8c565b965050602061418f89828a01613f51565b95505060406141a089828a01613f51565b94505060606141b189828a01613f7b565b93505060806141c289828a01613eb6565b92505060a06141d389828a01613eb6565b9150509295509295509295565b600080604083850312156141f7576141f66153e2565b5b600061420585828601613e8c565b925050602061421685828601613f66565b9150509250929050565b600060208284031215614236576142356153e2565b5b600061424484828501613ecb565b91505092915050565b600060208284031215614263576142626153e2565b5b600061427184828501613ee0565b91505092915050565b6000602082840312156142905761428f6153e2565b5b600082013567ffffffffffffffff8111156142ae576142ad6153dd565b5b6142ba84828501613f23565b91505092915050565b6000602082840312156142d9576142d86153e2565b5b60006142e784828501613f51565b91505092915050565b6142f9816150fc565b82525050565b6143088161510e565b82525050565b6143178161511a565b82525050565b61432e6143298261511a565b6152af565b82525050565b600061433f82614f1a565b6143498185614f30565b93506143598185602086016151d0565b614362816153e7565b840191505092915050565b600061437882614f25565b6143828185614f41565b93506143928185602086016151d0565b61439b816153e7565b840191505092915050565b60006143b182614f25565b6143bb8185614f52565b93506143cb8185602086016151d0565b80840191505092915050565b600081546143e481615203565b6143ee8186614f52565b94506001821660008114614409576001811461441a5761444d565b60ff1983168652818601935061444d565b61442385614f05565b60005b8381101561444557815481890152600182019150602081019050614426565b838801955050505b50505092915050565b6000614463603683614f41565b915061446e826153f8565b604082019050919050565b6000614486602b83614f41565b915061449182615447565b604082019050919050565b60006144a9603283614f41565b91506144b482615496565b604082019050919050565b60006144cc602683614f41565b91506144d7826154e5565b604082019050919050565b60006144ef601883614f41565b91506144fa82615534565b602082019050919050565b6000614512601c83614f41565b915061451d8261555d565b602082019050919050565b6000614535600283614f52565b915061454082615586565b600282019050919050565b6000614558603283614f41565b9150614563826155af565b604082019050919050565b600061457b602483614f41565b9150614586826155fe565b604082019050919050565b600061459e601983614f41565b91506145a98261564d565b602082019050919050565b60006145c1603683614f41565b91506145cc82615676565b604082019050919050565b60006145e4602c83614f41565b91506145ef826156c5565b604082019050919050565b6000614607600783614f52565b915061461282615714565b600782019050919050565b600061462a601083614f41565b91506146358261573d565b602082019050919050565b600061464d603883614f41565b915061465882615766565b604082019050919050565b6000614670602a83614f41565b915061467b826157b5565b604082019050919050565b6000614693602983614f41565b915061469e82615804565b604082019050919050565b60006146b6602b83614f41565b91506146c182615853565b604082019050919050565b60006146d9602083614f41565b91506146e4826158a2565b602082019050919050565b60006146fc602c83614f41565b9150614707826158cb565b604082019050919050565b600061471f602083614f41565b915061472a8261591a565b602082019050919050565b6000614742602983614f41565b915061474d82615943565b604082019050919050565b6000614765602f83614f41565b915061477082615992565b604082019050919050565b6000614788602183614f41565b9150614793826159e1565b604082019050919050565b60006147ab601e83614f41565b91506147b682615a30565b602082019050919050565b60006147ce603183614f41565b91506147d982615a59565b604082019050919050565b60006147f1603783614f41565b91506147fc82615aa8565b604082019050919050565b6000614814602c83614f41565b915061481f82615af7565b604082019050919050565b61483381615170565b82525050565b6148428161517a565b82525050565b6148518161518a565b82525050565b614860816151af565b82525050565b61486f81615197565b82525050565b600061488182856143a6565b915061488d82846143a6565b91508190509392505050565b60006148a482614528565b91506148b0828561431d565b6020820191506148c0828461431d565b6020820191508190509392505050565b60006148db826145fa565b91506148e782846143d7565b915081905092915050565b600060208201905061490760008301846142f0565b92915050565b600060808201905061492260008301876142f0565b61492f60208301866142f0565b61493c604083018561482a565b818103606083015261494e8184614334565b905095945050505050565b600060208201905061496e60008301846142ff565b92915050565b6000602082019050614989600083018461430e565b92915050565b60006080820190506149a4600083018761430e565b6149b160208301866142f0565b6149be604083018561482a565b6149cb606083018461482a565b95945050505050565b60006080820190506149e9600083018761430e565b6149f6602083018661430e565b614a03604083018561482a565b614a1060608301846142f0565b95945050505050565b6000608082019050614a2e600083018761430e565b614a3b6020830186614848565b614a48604083018561430e565b614a55606083018461430e565b95945050505050565b60006020820190508181036000830152614a78818461436d565b905092915050565b60006020820190508181036000830152614a9981614456565b9050919050565b60006020820190508181036000830152614ab981614479565b9050919050565b60006020820190508181036000830152614ad98161449c565b9050919050565b60006020820190508181036000830152614af9816144bf565b9050919050565b60006020820190508181036000830152614b19816144e2565b9050919050565b60006020820190508181036000830152614b3981614505565b9050919050565b60006020820190508181036000830152614b598161454b565b9050919050565b60006020820190508181036000830152614b798161456e565b9050919050565b60006020820190508181036000830152614b9981614591565b9050919050565b60006020820190508181036000830152614bb9816145b4565b9050919050565b60006020820190508181036000830152614bd9816145d7565b9050919050565b60006020820190508181036000830152614bf98161461d565b9050919050565b60006020820190508181036000830152614c1981614640565b9050919050565b60006020820190508181036000830152614c3981614663565b9050919050565b60006020820190508181036000830152614c5981614686565b9050919050565b60006020820190508181036000830152614c79816146a9565b9050919050565b60006020820190508181036000830152614c99816146cc565b9050919050565b60006020820190508181036000830152614cb9816146ef565b9050919050565b60006020820190508181036000830152614cd981614712565b9050919050565b60006020820190508181036000830152614cf981614735565b9050919050565b60006020820190508181036000830152614d1981614758565b9050919050565b60006020820190508181036000830152614d398161477b565b9050919050565b60006020820190508181036000830152614d598161479e565b9050919050565b60006020820190508181036000830152614d79816147c1565b9050919050565b60006020820190508181036000830152614d99816147e4565b9050919050565b60006020820190508181036000830152614db981614807565b9050919050565b6000602082019050614dd5600083018461482a565b92915050565b6000602082019050614df06000830184614839565b92915050565b6000604082019050614e0b6000830185614839565b614e186020830184614866565b9392505050565b6000602082019050614e346000830184614848565b92915050565b6000602082019050614e4f6000830184614866565b92915050565b6000604082019050614e6a6000830185614857565b614e776020830184614857565b9392505050565b6000614e88614e99565b9050614e948282615235565b919050565b6000604051905090565b600067ffffffffffffffff821115614ebe57614ebd6153a4565b5b614ec7826153e7565b9050602081019050919050565b600067ffffffffffffffff821115614eef57614eee6153a4565b5b614ef8826153e7565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000614f6882615170565b9150614f7383615170565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614fa857614fa76152b9565b5b828201905092915050565b6000614fbe8261517a565b9150614fc98361517a565b92508263ffffffff03821115614fe257614fe16152b9565b5b828201905092915050565b6000614ff882615197565b915061500383615197565b9250826bffffffffffffffffffffffff03821115615024576150236152b9565b5b828201905092915050565b600061503a8261517a565b91506150458361517a565b925082615055576150546152e8565b5b828204905092915050565b600061506b82615170565b915061507683615170565b925082821015615089576150886152b9565b5b828203905092915050565b600061509f8261517a565b91506150aa8361517a565b9250828210156150bd576150bc6152b9565b5b828203905092915050565b60006150d382615197565b91506150de83615197565b9250828210156150f1576150f06152b9565b5b828203905092915050565b600061510782615150565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600060ff82169050919050565b60006bffffffffffffffffffffffff82169050919050565b60006151ba82615197565b9050919050565b82818337600083830152505050565b60005b838110156151ee5780820151818401526020810190506151d3565b838111156151fd576000848401525b50505050565b6000600282049050600182168061521b57607f821691505b6020821081141561522f5761522e615317565b5b50919050565b61523e826153e7565b810181811067ffffffffffffffff8211171561525d5761525c6153a4565b5b80604052505050565b600061527182615170565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156152a4576152a36152b9565b5b600182019050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f455243373231436865636b706f696e7461626c653a3a64656c6567617465427960008201527f5369673a207369676e6174757265206578706972656400000000000000000000602082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f53656e646572206973206e6f7420746865206d696e7465720000000000000000600082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b7f455243373231436865636b706f696e7461626c653a3a64656c6567617465427960008201527f5369673a20696e76616c6964206e6f6e63650000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f455243373231436865636b706f696e7461626c653a3a64656c6567617465427960008201527f5369673a20696e76616c6964207369676e617475726500000000000000000000602082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f697066733a2f2f00000000000000000000000000000000000000000000000000600082015250565b7f4d696e746572206973206c6f636b656400000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4e6f756e73546f6b656e3a2055524920717565727920666f72206e6f6e65786960008201527f7374656e7420746f6b656e000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f53656e646572206973206e6f7420746865206e6f756e646572732044414f0000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231436865636b706f696e7461626c653a3a6765745072696f72566f60008201527f7465733a206e6f74207965742064657465726d696e6564000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b615b4f816150fc565b8114615b5a57600080fd5b50565b615b668161510e565b8114615b7157600080fd5b50565b615b7d8161511a565b8114615b8857600080fd5b50565b615b9481615124565b8114615b9f57600080fd5b50565b615bab81615170565b8114615bb657600080fd5b50565b615bc28161517a565b8114615bcd57600080fd5b50565b615bd98161518a565b8114615be457600080fd5b5056fe455243373231436865636b706f696e7461626c653a3a5f6d6f766544656c6567617465733a20616d6f756e74206f766572666c6f7773455243373231436865636b706f696e7461626c653a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473455243373231436865636b706f696e7461626c653a3a766f746573546f44656c65676174653a20616d6f756e7420657863656564732039362062697473455243373231436865636b706f696e7461626c653a3a5f6d6f766544656c6567617465733a20616d6f756e7420756e646572666c6f7773a2646970667358221220cef5e2bcb1001acbe9683f963ece6c86a3d1db23e6120003f0dd1b4a5a3eea1764736f6c63430008070033