ETH Price: $3,457.71 (+1.54%)
Gas: 9 Gwei

Contract

0x4812a95c3A3f81AcE48DB92a60Ab96d8B9465015
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60806040149422822022-06-11 4:20:47767 days ago1654921247IN
 Create: CustomToken
0 ETH0.1152284522

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CustomToken

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 21 : CustomToken.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

import { LibDiamond } from  "../libraries/LibDiamond.sol";
import '@solidstate/contracts/token/ERC721/enumerable/ERC721Enumerable.sol';
import "../libraries/MyNFTTokenLibrary.sol";
import { AppStorage, Trait } from "../libraries/LibAppStorage.sol";
import { ERC721Base } from '@solidstate/contracts/token/ERC721/base/ERC721Base.sol';
import { ERC721BaseStorage } from '@solidstate/contracts/token/ERC721/base/ERC721BaseStorage.sol';
import { ERC165 } from '@solidstate/contracts/introspection/ERC165.sol';
import "@openzeppelin/contracts/utils/Strings.sol";

contract CustomToken is ERC721Enumerable, ERC721Base {
    using ERC721BaseStorage for ERC721BaseStorage.Layout;
    using MyNFTTokenLibrary for uint8;

    AppStorage private s;

   // This implements ERC-165.
    function supportsInterface(bytes4 _interfaceId) external override pure returns (bool) {
        return true;
    }
     /**
     * @dev Converts a digit from 0 - 10000 into its corresponding rarity based on the given rarity tier.
     * @param _randinput The input from 0 - 10000 to use for rarity gen.
     * @param _rarityTier The tier to use.
     */
    function rarityGen(uint256 _randinput, uint8 _rarityTier)
        internal
        view
        returns (string memory)
    {
        uint16 currentLowerBound = 0;
        for (uint8 i = 0; i < s.TIERS[_rarityTier].length; i++) {
            uint16 thisPercentage = s.TIERS[_rarityTier][i];
            if (
                _randinput >= currentLowerBound &&
                _randinput < currentLowerBound + thisPercentage
            ) {
                return s.LETTERS[i];
            }
            currentLowerBound = currentLowerBound + thisPercentage;
        }

        revert();
    }

    /**
     * @dev Mint internal, this is to avoid code duplication.
     */
    function mintInternal() internal {
        uint256 _totalSupply = totalSupply();
        require(_totalSupply < s.MAX_SUPPLY);
        require(!MyNFTTokenLibrary.isContract(msg.sender));
        uint256 thisTokenId = _totalSupply;
        s.tokenIdToHash[thisTokenId] = hash(thisTokenId, msg.sender, 0);
        s.hashToMinted[s.tokenIdToHash[thisTokenId]] = true;
        _mint(msg.sender, thisTokenId);
    }

    /**
     * @dev Mints new tokens.
     */
    function mint() public {
        return mintInternal();
    }

    /**
     * @dev Generates a 7 digit hash from a tokenId, address, and random number.
     * @param _t The token id to be used within the hash.
     * @param _a The address to be used within the hash.
     * @param _c The custom nonce to be used within the hash.
     */
    function hash(
        uint256 _t,
        address _a,
        uint256 _c
    ) internal returns (string memory) {
        require(_c < 80);

        // This will generate a 7 character string.
        //The last 6 digits are random, the first is a, due to the nft not being burned.
        string memory currentHash = "";

        for (uint8 i = 0; i < 6; i++) {
            s.SEED_NONCE++;
            uint16 _randinput = uint16(
                uint256(
                    keccak256(
                        abi.encodePacked(
                            block.timestamp,
                            block.coinbase,
                            block.difficulty,
                            _t,
                            _a,
                            _c,
                            s.SEED_NONCE
                        )
                    )
                ) % 10000
            );

            currentHash = string(
                abi.encodePacked(currentHash, rarityGen(_randinput, i))
            );
        }

        if (s.hashToMinted[currentHash]) return hash(_t, _a, _c + 1);

        return currentHash;
    }
  // custom code...
   /**
     * @dev Returns the SVG and metadata for a token Id
     * @param _tokenId The tokenId to return the SVG and metadata for.
     */
    function tokenURI(uint256 _tokenId)
        public
        view
        returns (string memory)
    {
        require(ERC721BaseStorage.layout().exists(_tokenId));

        string memory thisName = s.name;

        string memory tokenHash = s.tokenIdToHash[_tokenId];
        string memory name = string(abi.encodePacked("", thisName, " #", MyNFTTokenLibrary.toString(_tokenId)));
        string memory bio = string(abi.encodePacked("Stored 100% on-chain. ", s.name, " #", MyNFTTokenLibrary.toString(_tokenId)));

        return
            string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    MyNFTTokenLibrary.encode(
                        bytes(
                            string(
                                abi.encodePacked(
                                    '{"name": "',
                                    name,
                                    '", "description": "',
                                    bio,
                                    '","image": "data:image/svg+xml;base64,',
                                    MyNFTTokenLibrary.encode(
                                        bytes(hashToSVG(tokenHash))
                                    ),
                                    '","attributes":',
                                    hashToMetadata(tokenHash),
                                    "}"
                                )
                            )
                        )
                    )
                )
            );
    }

    /**
     * @dev Hash to metadata function
     */
    function hashToMetadata(string memory _hash)
        internal
        view
        returns (string memory)
    {
        string memory metadataString = '';

        for (uint8 i = 0; i < 6;) {
            uint256 thisTraitIndex = letterToNumber(
                MyNFTTokenLibrary.substring(_hash, i, i + 1)
            );

            metadataString = string(
                abi.encodePacked(
                    metadataString,
                    '{"trait_type":"',
                    s.traitTypes[i][thisTraitIndex].traitType,
                    '","value":"',
                    s.traitTypes[i][thisTraitIndex].traitName,
                    '"}'
                )
            );

            if (i != 5)
                metadataString = string(abi.encodePacked(metadataString, ","));
            unchecked {
              ++i;
            }
        }

        return string(abi.encodePacked("[", metadataString, "]"));
    }

     /**
     * @dev Hash to SVG function
     */
    function hashToSVG(string memory _hash)
        public
        view
        returns (string memory)
    {

        string memory svgString = "";
        bool[24][24][24] memory placedPixels;

        for (uint8 i = 0; i < 6; i++) {
            uint8 thisTraitIndex = letterToNumber(MyNFTTokenLibrary.substring(_hash, i, i + 1));

            for (
                uint8 k = 0;
                k < s.traitTypes[i][thisTraitIndex].pixelCount.length;
                k++
            ) {
                string memory da = "";
                for (
                    uint8 p = 0;
                    p < s.traitTypes[i][thisTraitIndex].pixelCount.length;
                    p++
                )  {
                    if (p == k) {
                        da = string(abi.encodePacked(da, "inline;"));
                    } else {
                        da = string(abi.encodePacked(da, "none;"));
                    }
                }
                if (s.traitTypes[i][thisTraitIndex].pixelCount[k] > 0)  {
                    svgString = string(
                            abi.encodePacked(
                                svgString,
                                "<g>",
                                "<animate id='", s.LETTERS[k], "' attributeName='display' values='", da, "' repeatCount='indefinite' dur='0.45s' begin='0s'/>"
                        )
                    );
                }
                for (
                    uint256 j = 0;
                    j < s.traitTypes[i][thisTraitIndex].pixelCount[k];
                    j++
                ) {
                    string memory thisPixel = MyNFTTokenLibrary.substring(
                        s.traitTypes[i][thisTraitIndex].pixels[k],
                        j * 4,
                        j * 4 + 4
                    );

                    uint8 x = letterToNumber(
                        MyNFTTokenLibrary.substring(thisPixel, 0, 1)
                    );
                    uint8 y = letterToNumber(
                        MyNFTTokenLibrary.substring(thisPixel, 1, 2)
                    );

                    if (placedPixels[k][x][y]) continue;

                    string memory color = MyNFTTokenLibrary.substring(thisPixel, 2, 4);

                    svgString = string(
                        abi.encodePacked(
                            svgString,
                            "<rect class='c",
                            color,
                            "' x='",
                            x.toString(),
                            "' y='",
                            y.toString(),
                            "'></rect>"
                        )
                    );

                    placedPixels[k][x][y] = true;
                }

                if (s.traitTypes[i][thisTraitIndex].pixelCount[k] > 0)  {
                    svgString = string(
                            abi.encodePacked(
                                svgString,
                                "</g>"
                        )
                    );
                }
            }
        }

        svgString = string(
            abi.encodePacked(
                '<svg id="svg" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet" viewBox="0 0 24 24"> ',
                svgString,
                "<style>rect{width:1px;height:1px;}#svg{shape-rendering: crispedges;}.c00{fill:#000000}.c01{fill:#222034}.c02{fill:#45283c}.c03{fill:#663931}.c04{fill:#8f563b}.c05{fill:#df7126}.c06{fill:#d9a066}.c07{fill:#eec39a}.c08{fill:#fbf236}.c09{fill:#99e550}.c10{fill:#6abe30}.c11{fill:#37946e}.c12{fill:#4b692f}.c13{fill:#524b24}.c14{fill:#323c39}.c15{fill:#3f3f74}.c16{fill:#306082}.c17{fill:#5b6ee1}.c18{fill:#639bff}.c19{fill:#5fcde4}.c20{fill:#cbdbfc}.c21{fill:#ffffff}.c22{fill:#9badb7}.c23{fill:#847e87}.c24{fill:#696a6a}.c25{fill:#595652}.c26{fill:#76428a}.c27{fill:#ac3232}.c28{fill:#d95763}.c29{fill:#d77bba}.c30{fill:#8f974a}.c31{fill:#8a6f30}.c32{fill:#814848}.c33{fill:#9d4a4a}.c34{fill:#403640}.c35{fill:#868282}.c36{fill:#424058}.c37{fill:#2f315a}.c38{fill:#34378b}.c39{fill:#dcd530}.c40{fill:#fefff4}.c41{fill:#e3e1e1}.c42{fill:#634464}.c43{fill:#7d4881}.c44{fill:#b549bc}.c45{fill:#343cff}.c46{fill:#f6d953}.c47{fill:#bd8228}.c48{fill:#ebb337}</style>",
                "</svg>"
            )
        );

        return svgString;
    }


    /**
     * @dev Helper function to reduce pixel size within contract
     */
    function letterToNumber(string memory _inputLetter)
        internal
        view
        returns (uint8)
    {
        for (uint8 i = 0; i < s.LETTERS.length;) {
            if (
                keccak256(abi.encodePacked((s.LETTERS[i]))) ==
                keccak256(abi.encodePacked((_inputLetter)))
            ) return i;
            unchecked { ++i; }
        }
        revert();
    }

   modifier onlyOwner() {
        require(s._owner == msg.sender, "only owner");
        _;
    }


        /**
     * @dev Clears the traits.
    //  */
    // function clearTraits() public onlyOwner {
    //     for (uint256 i = 0; i < 6; i++) {
    //         delete s.traitTypes[i];
    //     }
    // }

    /**
     * @dev Add a trait type
     * @param _traitTypeIndex The trait type index
     * @param traits Array of traits to add
     */

    function addTraitType(uint256 _traitTypeIndex, Trait[] memory traits)
        public
        onlyOwner
    {
        for (uint256 i = 0; i < traits.length; i++) {
            s.traitTypes[_traitTypeIndex].push(
                Trait(
                    traits[i].traitName,
                    traits[i].traitType,
                    traits[i].pixels,
                    traits[i].pixelCount
                )
            );
        }

        return;
    }

    /**
     * @dev Returns the wallet of a given wallet. Mainly for ease for frontend devs.
     * @param _wallet The wallet to get the tokens of.
     */
    function walletOfOwner(address _wallet)
        public
        view
        returns (uint256[] memory)
    {
        uint256 tokenCount = _balanceOf(_wallet);

        uint256[] memory tokensId = new uint256[](tokenCount);
        for (uint256 i; i < tokenCount; i++) {
            tokensId[i] = tokenOfOwnerByIndex(_wallet, i);
        }
        return tokensId;
    }

}

File 2 of 21 : LibDiamond.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/******************************************************************************\
* Author: Nick Mudge <[email protected]> (https://twitter.com/mudgen)
* EIP-2535 Diamonds: https://eips.ethereum.org/EIPS/eip-2535
/******************************************************************************/
import { IDiamondCut } from "../interfaces/IDiamondCut.sol";

library LibDiamond {
    bytes32 constant DIAMOND_STORAGE_POSITION = keccak256("diamond.standard.diamond.storage");

    struct FacetAddressAndPosition {
        address facetAddress;
        uint96 functionSelectorPosition; // position in facetFunctionSelectors.functionSelectors array
    }

    struct FacetFunctionSelectors {
        bytes4[] functionSelectors;
        uint256 facetAddressPosition; // position of facetAddress in facetAddresses array
    }

    struct DiamondStorage {
        // maps function selector to the facet address and
        // the position of the selector in the facetFunctionSelectors.selectors array
        mapping(bytes4 => FacetAddressAndPosition) selectorToFacetAndPosition;
        // maps facet addresses to function selectors
        mapping(address => FacetFunctionSelectors) facetFunctionSelectors;
        // facet addresses
        address[] facetAddresses;
        // Used to query if a contract implements an interface.
        // Used to implement ERC-165.
        mapping(bytes4 => bool) supportedInterfaces;
        // owner of the contract
        address contractOwner;
    }

    function diamondStorage() internal pure returns (DiamondStorage storage ds) {
        bytes32 position = DIAMOND_STORAGE_POSITION;
        assembly {
            ds.slot := position
        }
    }

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    function setContractOwner(address _newOwner) internal {
        DiamondStorage storage ds = diamondStorage();
        address previousOwner = ds.contractOwner;
        ds.contractOwner = _newOwner;
        emit OwnershipTransferred(previousOwner, _newOwner);
    }

    function contractOwner() internal view returns (address contractOwner_) {
        contractOwner_ = diamondStorage().contractOwner;
    }

    function enforceIsContractOwner() internal view {
        require(msg.sender == diamondStorage().contractOwner, "LibDiamond: Must be contract owner");
    }

    event DiamondCut(IDiamondCut.FacetCut[] _diamondCut, address _init, bytes _calldata);

    // Internal function version of diamondCut
    function diamondCut(
        IDiamondCut.FacetCut[] memory _diamondCut,
        address _init,
        bytes memory _calldata
    ) internal {
        for (uint256 facetIndex; facetIndex < _diamondCut.length; facetIndex++) {
            IDiamondCut.FacetCutAction action = _diamondCut[facetIndex].action;
            if (action == IDiamondCut.FacetCutAction.Add) {
                addFunctions(_diamondCut[facetIndex].facetAddress, _diamondCut[facetIndex].functionSelectors);
            } else if (action == IDiamondCut.FacetCutAction.Replace) {
                replaceFunctions(_diamondCut[facetIndex].facetAddress, _diamondCut[facetIndex].functionSelectors);
            } else if (action == IDiamondCut.FacetCutAction.Remove) {
                removeFunctions(_diamondCut[facetIndex].facetAddress, _diamondCut[facetIndex].functionSelectors);
            } else {
                revert("LibDiamondCut: Incorrect FacetCutAction");
            }
        }
        emit DiamondCut(_diamondCut, _init, _calldata);
        initializeDiamondCut(_init, _calldata);
    }

    function addFunctions(address _facetAddress, bytes4[] memory _functionSelectors) internal {
        require(_functionSelectors.length > 0, "LibDiamondCut: No selectors in facet to cut");
        DiamondStorage storage ds = diamondStorage();        
        require(_facetAddress != address(0), "LibDiamondCut: Add facet can't be address(0)");
        uint96 selectorPosition = uint96(ds.facetFunctionSelectors[_facetAddress].functionSelectors.length);
        // add new facet address if it does not exist
        if (selectorPosition == 0) {
            addFacet(ds, _facetAddress);            
        }
        for (uint256 selectorIndex; selectorIndex < _functionSelectors.length; selectorIndex++) {
            bytes4 selector = _functionSelectors[selectorIndex];
            address oldFacetAddress = ds.selectorToFacetAndPosition[selector].facetAddress;
            require(oldFacetAddress == address(0), "LibDiamondCut: Can't add function that already exists");
            addFunction(ds, selector, selectorPosition, _facetAddress);
            selectorPosition++;
        }
    }

    function replaceFunctions(address _facetAddress, bytes4[] memory _functionSelectors) internal {
        require(_functionSelectors.length > 0, "LibDiamondCut: No selectors in facet to cut");
        DiamondStorage storage ds = diamondStorage();
        require(_facetAddress != address(0), "LibDiamondCut: Add facet can't be address(0)");
        uint96 selectorPosition = uint96(ds.facetFunctionSelectors[_facetAddress].functionSelectors.length);
        // add new facet address if it does not exist
        if (selectorPosition == 0) {
            addFacet(ds, _facetAddress);
        }
        for (uint256 selectorIndex; selectorIndex < _functionSelectors.length; selectorIndex++) {
            bytes4 selector = _functionSelectors[selectorIndex];
            address oldFacetAddress = ds.selectorToFacetAndPosition[selector].facetAddress;
            require(oldFacetAddress != _facetAddress, "LibDiamondCut: Can't replace function with same function");
            removeFunction(ds, oldFacetAddress, selector);
            addFunction(ds, selector, selectorPosition, _facetAddress);
            selectorPosition++;
        }
    }

    function removeFunctions(address _facetAddress, bytes4[] memory _functionSelectors) internal {
        require(_functionSelectors.length > 0, "LibDiamondCut: No selectors in facet to cut");
        DiamondStorage storage ds = diamondStorage();
        // if function does not exist then do nothing and return
        require(_facetAddress == address(0), "LibDiamondCut: Remove facet address must be address(0)");
        for (uint256 selectorIndex; selectorIndex < _functionSelectors.length; selectorIndex++) {
            bytes4 selector = _functionSelectors[selectorIndex];
            address oldFacetAddress = ds.selectorToFacetAndPosition[selector].facetAddress;
            removeFunction(ds, oldFacetAddress, selector);
        }
    }

    function addFacet(DiamondStorage storage ds, address _facetAddress) internal {
        enforceHasContractCode(_facetAddress, "LibDiamondCut: New facet has no code");
        ds.facetFunctionSelectors[_facetAddress].facetAddressPosition = ds.facetAddresses.length;
        ds.facetAddresses.push(_facetAddress);
    }    


    function addFunction(DiamondStorage storage ds, bytes4 _selector, uint96 _selectorPosition, address _facetAddress) internal {
        ds.selectorToFacetAndPosition[_selector].functionSelectorPosition = _selectorPosition;
        ds.facetFunctionSelectors[_facetAddress].functionSelectors.push(_selector);
        ds.selectorToFacetAndPosition[_selector].facetAddress = _facetAddress;
    }

    function removeFunction(DiamondStorage storage ds, address _facetAddress, bytes4 _selector) internal {        
        require(_facetAddress != address(0), "LibDiamondCut: Can't remove function that doesn't exist");
        // an immutable function is a function defined directly in a diamond
        require(_facetAddress != address(this), "LibDiamondCut: Can't remove immutable function");
        // replace selector with last selector, then delete last selector
        uint256 selectorPosition = ds.selectorToFacetAndPosition[_selector].functionSelectorPosition;
        uint256 lastSelectorPosition = ds.facetFunctionSelectors[_facetAddress].functionSelectors.length - 1;
        // if not the same then replace _selector with lastSelector
        if (selectorPosition != lastSelectorPosition) {
            bytes4 lastSelector = ds.facetFunctionSelectors[_facetAddress].functionSelectors[lastSelectorPosition];
            ds.facetFunctionSelectors[_facetAddress].functionSelectors[selectorPosition] = lastSelector;
            ds.selectorToFacetAndPosition[lastSelector].functionSelectorPosition = uint96(selectorPosition);
        }
        // delete the last selector
        ds.facetFunctionSelectors[_facetAddress].functionSelectors.pop();
        delete ds.selectorToFacetAndPosition[_selector];

        // if no more selectors for facet address then delete the facet address
        if (lastSelectorPosition == 0) {
            // replace facet address with last facet address and delete last facet address
            uint256 lastFacetAddressPosition = ds.facetAddresses.length - 1;
            uint256 facetAddressPosition = ds.facetFunctionSelectors[_facetAddress].facetAddressPosition;
            if (facetAddressPosition != lastFacetAddressPosition) {
                address lastFacetAddress = ds.facetAddresses[lastFacetAddressPosition];
                ds.facetAddresses[facetAddressPosition] = lastFacetAddress;
                ds.facetFunctionSelectors[lastFacetAddress].facetAddressPosition = facetAddressPosition;
            }
            ds.facetAddresses.pop();
            delete ds.facetFunctionSelectors[_facetAddress].facetAddressPosition;
        }
    }

    function initializeDiamondCut(address _init, bytes memory _calldata) internal {
        if (_init == address(0)) {
            require(_calldata.length == 0, "LibDiamondCut: _init is address(0) but_calldata is not empty");
        } else {
            require(_calldata.length > 0, "LibDiamondCut: _calldata is empty but _init is not address(0)");
            if (_init != address(this)) {
                enforceHasContractCode(_init, "LibDiamondCut: _init address has no code");
            }
            (bool success, bytes memory error) = _init.delegatecall(_calldata);
            if (!success) {
                if (error.length > 0) {
                    // bubble up the error
                    revert(string(error));
                } else {
                    revert("LibDiamondCut: _init function reverted");
                }
            }
        }
    }

    function enforceHasContractCode(address _contract, string memory _errorMessage) internal view {
        uint256 contractSize;
        assembly {
            contractSize := extcodesize(_contract)
        }
        require(contractSize > 0, _errorMessage);
    }
}

File 3 of 21 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import { EnumerableMap } from '../../../utils/EnumerableMap.sol';
import { EnumerableSet } from '../../../utils/EnumerableSet.sol';
import { ERC721BaseStorage } from '../base/ERC721BaseStorage.sol';
import { IERC721Enumerable } from './IERC721Enumerable.sol';
import { ERC721EnumerableInternal } from './ERC721EnumerableInternal.sol';

abstract contract ERC721Enumerable is
    IERC721Enumerable,
    ERC721EnumerableInternal
{
    using EnumerableMap for EnumerableMap.UintToAddressMap;
    using EnumerableSet for EnumerableSet.UintSet;

    /**
     * @inheritdoc IERC721Enumerable
     */
    function totalSupply() public view override returns (uint256) {
        return _totalSupply();
    }

    /**
     * @inheritdoc IERC721Enumerable
     */
    function tokenOfOwnerByIndex(address owner, uint256 index)
        public
        view
        override
        returns (uint256)
    {
        return _tokenOfOwnerByIndex(owner, index);
    }

    /**
     * @inheritdoc IERC721Enumerable
     */
    function tokenByIndex(uint256 index)
        public
        view
        override
        returns (uint256)
    {
        return _tokenByIndex(index);
    }
}

File 4 of 21 : MyNFTTokenLibrary.sol
// Forked from Anonymice
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

library MyNFTTokenLibrary {
    string internal constant TABLE =
        "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    function encode(bytes memory data) internal pure returns (string memory) {
        if (data.length == 0) return "";

        // load the table into memory
        string memory table = TABLE;

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((data.length + 2) / 3);

        // add some extra buffer at the end required for the writing
        string memory result = new string(encodedLen + 32);

        assembly {
            // set the actual output length
            mstore(result, encodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 3 bytes at a time
            for {

            } lt(dataPtr, endPtr) {

            } {
                dataPtr := add(dataPtr, 3)

                // read 3 bytes
                let input := mload(dataPtr)

                // write 4 characters
                mstore(
                    resultPtr,
                    shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                )
                resultPtr := add(resultPtr, 1)
                mstore(
                    resultPtr,
                    shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                )
                resultPtr := add(resultPtr, 1)
                mstore(
                    resultPtr,
                    shl(248, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                )
                resultPtr := add(resultPtr, 1)
                mstore(
                    resultPtr,
                    shl(248, mload(add(tablePtr, and(input, 0x3F))))
                )
                resultPtr := add(resultPtr, 1)
            }

            // padding with '='
            switch mod(mload(data), 3)
            case 1 {
                mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
            }
            case 2 {
                mstore(sub(resultPtr, 1), shl(248, 0x3d))
            }
        }

        return result;
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    function parseInt(string memory _a)
        internal
        pure
        returns (uint8 _parsedInt)
    {
        bytes memory bresult = bytes(_a);
        uint8 mint = 0;
        for (uint8 i = 0; i < bresult.length; i++) {
            if (
                (uint8(uint8(bresult[i])) >= 48) &&
                (uint8(uint8(bresult[i])) <= 57)
            ) {
                mint *= 10;
                mint += uint8(bresult[i]) - 48;
            }
        }
        return mint;
    }

    function substring(
        string memory str,
        uint256 startIndex,
        uint256 endIndex
    ) internal pure returns (string memory) {
        bytes memory strBytes = bytes(str);
        bytes memory result = new bytes(endIndex - startIndex);
        for (uint256 i = startIndex; i < endIndex; i++) {
            result[i - startIndex] = strBytes[i];
        }
        return string(result);
    }

    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }
}

File 5 of 21 : LibAppStorage.sol
pragma solidity ^0.8.0;

struct Trait {
    string traitName;
    string traitType;
    string[] pixels;
    uint256[] pixelCount;
}

struct AppStorage {
  mapping(uint256 => Trait[]) traitTypes;
  mapping(string => bool) hashToMinted;
  mapping(uint256 => string) tokenIdToHash;
  mapping(uint256 => string) tokenIdToName;
  mapping(uint256 => string) tokenIdToBio;
  mapping(uint256 => uint256) tokenIdToLevel;
	mapping (string => bool) nameReserved;
  uint256 LAST_MINT_TIME;
  uint256 MAX_SUPPLY;
  uint256 SEED_NONCE;
  uint16[][20] TIERS;
  string name;
  string[] LETTERS;
  address _owner;
}

library LibAppStorage {

    function diamondStorage() internal pure returns (AppStorage storage ds) {
        assembly {
            ds.slot := 0
        }
    }

    function abs(int256 x) internal pure returns (uint256) {
        return uint256(x >= 0 ? x : -x);
    }
}

File 6 of 21 : ERC721Base.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import { AddressUtils } from '../../../utils/AddressUtils.sol';
import { EnumerableMap } from '../../../utils/EnumerableMap.sol';
import { EnumerableSet } from '../../../utils/EnumerableSet.sol';
import { IERC721 } from '../IERC721.sol';
import { IERC721Receiver } from '../IERC721Receiver.sol';
import { ERC721BaseStorage } from './ERC721BaseStorage.sol';
import { ERC721BaseInternal } from './ERC721BaseInternal.sol';

/**
 * @notice Base ERC721 implementation, excluding optional extensions
 */
abstract contract ERC721Base is IERC721, ERC721BaseInternal {
    using AddressUtils for address;
    using EnumerableMap for EnumerableMap.UintToAddressMap;
    using EnumerableSet for EnumerableSet.UintSet;

    /**
     * @inheritdoc IERC721
     */
    function balanceOf(address account) public view override returns (uint256) {
        return _balanceOf(account);
    }

    /**
     * @inheritdoc IERC721
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return _ownerOf(tokenId);
    }

    /**
     * @inheritdoc IERC721
     */
    function getApproved(uint256 tokenId)
        public
        view
        override
        returns (address)
    {
        return _getApproved(tokenId);
    }

    /**
     * @inheritdoc IERC721
     */
    function isApprovedForAll(address account, address operator)
        public
        view
        override
        returns (bool)
    {
        return _isApprovedForAll(account, operator);
    }

    /**
     * @inheritdoc IERC721
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable override {
        _handleTransferMessageValue(from, to, tokenId, msg.value);
        require(
            _isApprovedOrOwner(msg.sender, tokenId),
            'ERC721: transfer caller is not owner or approved'
        );
        _transfer(from, to, tokenId);
    }

    /**
     * @inheritdoc IERC721
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @inheritdoc IERC721
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public payable override {
        _handleTransferMessageValue(from, to, tokenId, msg.value);
        require(
            _isApprovedOrOwner(msg.sender, tokenId),
            'ERC721: transfer caller is not owner or approved'
        );
        _safeTransfer(from, to, tokenId, data);
    }

    /**
     * @inheritdoc IERC721
     */
    function approve(address operator, uint256 tokenId)
        public
        payable
        override
    {
        _handleApproveMessageValue(operator, tokenId, msg.value);
        address owner = ownerOf(tokenId);
        require(operator != owner, 'ERC721: approval to current owner');
        require(
            msg.sender == owner || isApprovedForAll(owner, msg.sender),
            'ERC721: approve caller is not owner nor approved for all'
        );
        _approve(operator, tokenId);
    }

    /**
     * @inheritdoc IERC721
     */
    function setApprovalForAll(address operator, bool status) public override {
        require(operator != msg.sender, 'ERC721: approve to caller');
        ERC721BaseStorage.layout().operatorApprovals[msg.sender][
            operator
        ] = status;
        emit ApprovalForAll(msg.sender, operator, status);
    }
}

File 7 of 21 : ERC721BaseStorage.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import { EnumerableMap } from '../../../utils/EnumerableMap.sol';
import { EnumerableSet } from '../../../utils/EnumerableSet.sol';

library ERC721BaseStorage {
    using EnumerableSet for EnumerableSet.UintSet;
    using EnumerableMap for EnumerableMap.UintToAddressMap;

    bytes32 internal constant STORAGE_SLOT =
        keccak256('solidstate.contracts.storage.ERC721Base');

    struct Layout {
        EnumerableMap.UintToAddressMap tokenOwners;
        mapping(address => EnumerableSet.UintSet) holderTokens;
        mapping(uint256 => address) tokenApprovals;
        mapping(address => mapping(address => bool)) operatorApprovals;
    }

    function layout() internal pure returns (Layout storage l) {
        bytes32 slot = STORAGE_SLOT;
        assembly {
            l.slot := slot
        }
    }

    function exists(Layout storage l, uint256 tokenId)
        internal
        view
        returns (bool)
    {
        return l.tokenOwners.contains(tokenId);
    }

    function totalSupply(Layout storage l) internal view returns (uint256) {
        return l.tokenOwners.length();
    }

    function tokenOfOwnerByIndex(
        Layout storage l,
        address owner,
        uint256 index
    ) internal view returns (uint256) {
        return l.holderTokens[owner].at(index);
    }

    function tokenByIndex(Layout storage l, uint256 index)
        internal
        view
        returns (uint256)
    {
        (uint256 tokenId, ) = l.tokenOwners.at(index);
        return tokenId;
    }
}

File 8 of 21 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import { IERC165 } from './IERC165.sol';
import { ERC165Storage } from './ERC165Storage.sol';

/**
 * @title ERC165 implementation
 */
abstract contract ERC165 is IERC165 {
    using ERC165Storage for ERC165Storage.Layout;

    /**
     * @inheritdoc IERC165
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        override
        returns (bool)
    {
        return ERC165Storage.layout().isSupportedInterface(interfaceId);
    }
}

File 9 of 21 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 10 of 21 : IDiamondCut.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/******************************************************************************\
* Author: Nick Mudge <[email protected]> (https://twitter.com/mudgen)
* EIP-2535 Diamonds: https://eips.ethereum.org/EIPS/eip-2535
/******************************************************************************/

interface IDiamondCut {
    enum FacetCutAction {Add, Replace, Remove}
    // Add=0, Replace=1, Remove=2

    struct FacetCut {
        address facetAddress;
        FacetCutAction action;
        bytes4[] functionSelectors;
    }

    /// @notice Add/replace/remove any number of functions and optionally execute
    ///         a function with delegatecall
    /// @param _diamondCut Contains the facet addresses and function selectors
    /// @param _init The address of the contract or facet to execute _calldata
    /// @param _calldata A function call, including function selector and arguments
    ///                  _calldata is executed with delegatecall on _init
    function diamondCut(
        FacetCut[] calldata _diamondCut,
        address _init,
        bytes calldata _calldata
    ) external;

    event DiamondCut(FacetCut[] _diamondCut, address _init, bytes _calldata);
}

File 11 of 21 : EnumerableMap.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title Map implementation with enumeration functions
 * @dev derived from https://github.com/OpenZeppelin/openzeppelin-contracts (MIT license)
 */
library EnumerableMap {
    struct MapEntry {
        bytes32 _key;
        bytes32 _value;
    }

    struct Map {
        MapEntry[] _entries;
        // 1-indexed to allow 0 to signify nonexistence
        mapping(bytes32 => uint256) _indexes;
    }

    struct AddressToAddressMap {
        Map _inner;
    }

    struct UintToAddressMap {
        Map _inner;
    }

    function at(AddressToAddressMap storage map, uint256 index)
        internal
        view
        returns (address, address)
    {
        (bytes32 key, bytes32 value) = _at(map._inner, index);
        address addressKey;
        assembly {
            addressKey := mload(add(key, 20))
        }
        return (addressKey, address(uint160(uint256(value))));
    }

    function at(UintToAddressMap storage map, uint256 index)
        internal
        view
        returns (uint256, address)
    {
        (bytes32 key, bytes32 value) = _at(map._inner, index);
        return (uint256(key), address(uint160(uint256(value))));
    }

    function contains(AddressToAddressMap storage map, address key)
        internal
        view
        returns (bool)
    {
        return _contains(map._inner, bytes32(uint256(uint160(key))));
    }

    function contains(UintToAddressMap storage map, uint256 key)
        internal
        view
        returns (bool)
    {
        return _contains(map._inner, bytes32(key));
    }

    function length(AddressToAddressMap storage map)
        internal
        view
        returns (uint256)
    {
        return _length(map._inner);
    }

    function length(UintToAddressMap storage map)
        internal
        view
        returns (uint256)
    {
        return _length(map._inner);
    }

    function get(AddressToAddressMap storage map, address key)
        internal
        view
        returns (address)
    {
        return
            address(
                uint160(
                    uint256(_get(map._inner, bytes32(uint256(uint160(key)))))
                )
            );
    }

    function get(UintToAddressMap storage map, uint256 key)
        internal
        view
        returns (address)
    {
        return address(uint160(uint256(_get(map._inner, bytes32(key)))));
    }

    function set(
        AddressToAddressMap storage map,
        address key,
        address value
    ) internal returns (bool) {
        return
            _set(
                map._inner,
                bytes32(uint256(uint160(key))),
                bytes32(uint256(uint160(value)))
            );
    }

    function set(
        UintToAddressMap storage map,
        uint256 key,
        address value
    ) internal returns (bool) {
        return _set(map._inner, bytes32(key), bytes32(uint256(uint160(value))));
    }

    function remove(AddressToAddressMap storage map, address key)
        internal
        returns (bool)
    {
        return _remove(map._inner, bytes32(uint256(uint160(key))));
    }

    function remove(UintToAddressMap storage map, uint256 key)
        internal
        returns (bool)
    {
        return _remove(map._inner, bytes32(key));
    }

    function _at(Map storage map, uint256 index)
        private
        view
        returns (bytes32, bytes32)
    {
        require(
            map._entries.length > index,
            'EnumerableMap: index out of bounds'
        );

        MapEntry storage entry = map._entries[index];
        return (entry._key, entry._value);
    }

    function _contains(Map storage map, bytes32 key)
        private
        view
        returns (bool)
    {
        return map._indexes[key] != 0;
    }

    function _length(Map storage map) private view returns (uint256) {
        return map._entries.length;
    }

    function _get(Map storage map, bytes32 key) private view returns (bytes32) {
        uint256 keyIndex = map._indexes[key];
        require(keyIndex != 0, 'EnumerableMap: nonexistent key');
        return map._entries[keyIndex - 1]._value;
    }

    function _set(
        Map storage map,
        bytes32 key,
        bytes32 value
    ) private returns (bool) {
        uint256 keyIndex = map._indexes[key];

        if (keyIndex == 0) {
            map._entries.push(MapEntry({ _key: key, _value: value }));
            map._indexes[key] = map._entries.length;
            return true;
        } else {
            map._entries[keyIndex - 1]._value = value;
            return false;
        }
    }

    function _remove(Map storage map, bytes32 key) private returns (bool) {
        uint256 keyIndex = map._indexes[key];

        if (keyIndex != 0) {
            uint256 index = keyIndex - 1;
            MapEntry storage last = map._entries[map._entries.length - 1];

            // move last entry to now-vacant index

            map._entries[index] = last;
            map._indexes[last._key] = index + 1;

            // clear last index

            map._entries.pop();
            delete map._indexes[key];

            return true;
        } else {
            return false;
        }
    }
}

File 12 of 21 : EnumerableSet.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title Set implementation with enumeration functions
 * @dev derived from https://github.com/OpenZeppelin/openzeppelin-contracts (MIT license)
 */
library EnumerableSet {
    struct Set {
        bytes32[] _values;
        // 1-indexed to allow 0 to signify nonexistence
        mapping(bytes32 => uint256) _indexes;
    }

    struct Bytes32Set {
        Set _inner;
    }

    struct AddressSet {
        Set _inner;
    }

    struct UintSet {
        Set _inner;
    }

    function at(Bytes32Set storage set, uint256 index)
        internal
        view
        returns (bytes32)
    {
        return _at(set._inner, index);
    }

    function at(AddressSet storage set, uint256 index)
        internal
        view
        returns (address)
    {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    function at(UintSet storage set, uint256 index)
        internal
        view
        returns (uint256)
    {
        return uint256(_at(set._inner, index));
    }

    function contains(Bytes32Set storage set, bytes32 value)
        internal
        view
        returns (bool)
    {
        return _contains(set._inner, value);
    }

    function contains(AddressSet storage set, address value)
        internal
        view
        returns (bool)
    {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    function contains(UintSet storage set, uint256 value)
        internal
        view
        returns (bool)
    {
        return _contains(set._inner, bytes32(value));
    }

    function indexOf(Bytes32Set storage set, bytes32 value)
        internal
        view
        returns (uint256)
    {
        return _indexOf(set._inner, value);
    }

    function indexOf(AddressSet storage set, address value)
        internal
        view
        returns (uint256)
    {
        return _indexOf(set._inner, bytes32(uint256(uint160(value))));
    }

    function indexOf(UintSet storage set, uint256 value)
        internal
        view
        returns (uint256)
    {
        return _indexOf(set._inner, bytes32(value));
    }

    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    function add(Bytes32Set storage set, bytes32 value)
        internal
        returns (bool)
    {
        return _add(set._inner, value);
    }

    function add(AddressSet storage set, address value)
        internal
        returns (bool)
    {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    function remove(Bytes32Set storage set, bytes32 value)
        internal
        returns (bool)
    {
        return _remove(set._inner, value);
    }

    function remove(AddressSet storage set, address value)
        internal
        returns (bool)
    {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    function remove(UintSet storage set, uint256 value)
        internal
        returns (bool)
    {
        return _remove(set._inner, bytes32(value));
    }

    function _at(Set storage set, uint256 index)
        private
        view
        returns (bytes32)
    {
        require(
            set._values.length > index,
            'EnumerableSet: index out of bounds'
        );
        return set._values[index];
    }

    function _contains(Set storage set, bytes32 value)
        private
        view
        returns (bool)
    {
        return set._indexes[value] != 0;
    }

    function _indexOf(Set storage set, bytes32 value)
        private
        view
        returns (uint256)
    {
        unchecked {
            return set._indexes[value] - 1;
        }
    }

    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    function _remove(Set storage set, bytes32 value) private returns (bool) {
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            uint256 index = valueIndex - 1;
            bytes32 last = set._values[set._values.length - 1];

            // move last value to now-vacant index

            set._values[index] = last;
            set._indexes[last] = index + 1;

            // clear last index

            set._values.pop();
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }
}

File 13 of 21 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IERC721Enumerable {
    /**
     * @notice get total token supply
     * @return total supply
     */
    function totalSupply() external view returns (uint256);

    /**
     * @notice get token of given owner at given internal storage index
     * @param owner token holder to query
     * @param index position in owner's token list to query
     * @return tokenId id of retrieved token
     */
    function tokenOfOwnerByIndex(address owner, uint256 index)
        external
        view
        returns (uint256 tokenId);

    /**
     * @notice get token at given internal storage index
     * @param index position in global token list to query
     * @return tokenId id of retrieved token
     */
    function tokenByIndex(uint256 index)
        external
        view
        returns (uint256 tokenId);
}

File 14 of 21 : ERC721EnumerableInternal.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import { ERC721BaseStorage } from '../base/ERC721BaseStorage.sol';
import { ERC721BaseInternal } from '../base/ERC721BaseInternal.sol';

abstract contract ERC721EnumerableInternal is ERC721BaseInternal {
    using ERC721BaseStorage for ERC721BaseStorage.Layout;

    /**
     * @notice TODO
     */
    function _totalSupply() internal view returns (uint256) {
        return ERC721BaseStorage.layout().totalSupply();
    }

    /**
     * @notice TODO
     */
    function _tokenOfOwnerByIndex(address owner, uint256 index)
        internal
        view
        returns (uint256)
    {
        return ERC721BaseStorage.layout().tokenOfOwnerByIndex(owner, index);
    }

    /**
     * @notice TODO
     */
    function _tokenByIndex(uint256 index) internal view returns (uint256) {
        return ERC721BaseStorage.layout().tokenByIndex(index);
    }
}

File 15 of 21 : ERC721BaseInternal.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import { AddressUtils } from '../../../utils/AddressUtils.sol';
import { EnumerableMap } from '../../../utils/EnumerableMap.sol';
import { EnumerableSet } from '../../../utils/EnumerableSet.sol';
import { IERC721Internal } from '../IERC721Internal.sol';
import { IERC721Receiver } from '../IERC721Receiver.sol';
import { ERC721BaseStorage } from './ERC721BaseStorage.sol';

/**
 * @notice Base ERC721 internal functions
 */
abstract contract ERC721BaseInternal is IERC721Internal {
    using ERC721BaseStorage for ERC721BaseStorage.Layout;
    using AddressUtils for address;
    using EnumerableMap for EnumerableMap.UintToAddressMap;
    using EnumerableSet for EnumerableSet.UintSet;

    function _balanceOf(address account) internal view returns (uint256) {
        require(
            account != address(0),
            'ERC721: balance query for the zero address'
        );
        return ERC721BaseStorage.layout().holderTokens[account].length();
    }

    function _ownerOf(uint256 tokenId) internal view returns (address) {
        address owner = ERC721BaseStorage.layout().tokenOwners.get(tokenId);
        require(owner != address(0), 'ERC721: invalid owner');
        return owner;
    }

    function _getApproved(uint256 tokenId) internal view returns (address) {
        ERC721BaseStorage.Layout storage l = ERC721BaseStorage.layout();

        require(
            l.exists(tokenId),
            'ERC721: approved query for nonexistent token'
        );

        return l.tokenApprovals[tokenId];
    }

    function _isApprovedForAll(address account, address operator)
        internal
        view
        returns (bool)
    {
        return ERC721BaseStorage.layout().operatorApprovals[account][operator];
    }

    function _isApprovedOrOwner(address spender, uint256 tokenId)
        internal
        view
        returns (bool)
    {
        require(
            ERC721BaseStorage.layout().exists(tokenId),
            'ERC721: query for nonexistent token'
        );

        address owner = _ownerOf(tokenId);

        return (spender == owner ||
            _getApproved(tokenId) == spender ||
            _isApprovedForAll(owner, spender));
    }

    function _mint(address to, uint256 tokenId) internal {
        require(to != address(0), 'ERC721: mint to the zero address');

        ERC721BaseStorage.Layout storage l = ERC721BaseStorage.layout();

        require(!l.exists(tokenId), 'ERC721: token already minted');

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

        l.holderTokens[to].add(tokenId);
        l.tokenOwners.set(tokenId, to);

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

    function _safeMint(address to, uint256 tokenId) internal {
        _safeMint(to, tokenId, '');
    }

    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, data),
            'ERC721: transfer to non ERC721Receiver implementer'
        );
    }

    function _burn(uint256 tokenId) internal {
        address owner = _ownerOf(tokenId);

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

        _approve(address(0), tokenId);

        ERC721BaseStorage.Layout storage l = ERC721BaseStorage.layout();
        l.holderTokens[owner].remove(tokenId);
        l.tokenOwners.remove(tokenId);

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

    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal {
        require(
            _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);

        _approve(address(0), tokenId);

        ERC721BaseStorage.Layout storage l = ERC721BaseStorage.layout();
        l.holderTokens[from].remove(tokenId);
        l.holderTokens[to].add(tokenId);
        l.tokenOwners.set(tokenId, to);

        emit Transfer(from, to, tokenId);
    }

    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal {
        _transfer(from, to, tokenId);
        require(
            _checkOnERC721Received(from, to, tokenId, data),
            'ERC721: transfer to non ERC721Receiver implementer'
        );
    }

    function _approve(address operator, uint256 tokenId) internal {
        ERC721BaseStorage.layout().tokenApprovals[tokenId] = operator;
        emit Approval(_ownerOf(tokenId), operator, tokenId);
    }

    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal returns (bool) {
        if (!to.isContract()) {
            return true;
        }

        bytes memory returnData = to.functionCall(
            abi.encodeWithSelector(
                IERC721Receiver(to).onERC721Received.selector,
                msg.sender,
                from,
                tokenId,
                data
            ),
            'ERC721: transfer to non ERC721Receiver implementer'
        );

        bytes4 returnValue = abi.decode(returnData, (bytes4));
        return returnValue == type(IERC721Receiver).interfaceId;
    }

    /**
     * @notice ERC721 hook, called before externally called approvals for processing of included message value
     * @param operator beneficiary of approval
     * @param tokenId id of transferred token
     * @param value message value
     */
    function _handleApproveMessageValue(
        address operator,
        uint256 tokenId,
        uint256 value
    ) internal virtual {}

    /**
     * @notice ERC721 hook, called before externally called transfers for processing of included message value
     * @param from sender of token
     * @param to receiver of token
     * @param tokenId id of transferred token
     * @param value message value
     */
    function _handleTransferMessageValue(
        address from,
        address to,
        uint256 tokenId,
        uint256 value
    ) internal virtual {}

    /**
     * @notice ERC721 hook, called before all transfers including mint and burn
     * @dev function should be overridden and new implementation must call super
     * @param from sender of token
     * @param to receiver of token
     * @param tokenId id of transferred token
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 16 of 21 : AddressUtils.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

library AddressUtils {
    function toString(address account) internal pure returns (string memory) {
        bytes32 value = bytes32(uint256(uint160(account)));
        bytes memory alphabet = '0123456789abcdef';
        bytes memory chars = new bytes(42);

        chars[0] = '0';
        chars[1] = 'x';

        for (uint256 i = 0; i < 20; i++) {
            chars[2 + i * 2] = alphabet[uint8(value[i + 12] >> 4)];
            chars[3 + i * 2] = alphabet[uint8(value[i + 12] & 0x0f)];
        }

        return string(chars);
    }

    function isContract(address account) internal view returns (bool) {
        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    function sendValue(address payable account, uint256 amount) internal {
        (bool success, ) = account.call{ value: amount }('');
        require(success, 'AddressUtils: failed to send value');
    }

    function functionCall(address target, bytes memory data)
        internal
        returns (bytes memory)
    {
        return
            functionCall(target, data, 'AddressUtils: failed low-level call');
    }

    function functionCall(
        address target,
        bytes memory data,
        string memory error
    ) internal returns (bytes memory) {
        return _functionCallWithValue(target, data, 0, error);
    }

    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return
            functionCallWithValue(
                target,
                data,
                value,
                'AddressUtils: failed low-level call with value'
            );
    }

    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory error
    ) internal returns (bytes memory) {
        require(
            address(this).balance >= value,
            'AddressUtils: insufficient balance for call'
        );
        return _functionCallWithValue(target, data, value, error);
    }

    function _functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory error
    ) private returns (bytes memory) {
        require(
            isContract(target),
            'AddressUtils: function call to non-contract'
        );

        (bool success, bytes memory returnData) = target.call{ value: value }(
            data
        );

        if (success) {
            return returnData;
        } else if (returnData.length > 0) {
            assembly {
                let returnData_size := mload(returnData)
                revert(add(32, returnData), returnData_size)
            }
        } else {
            revert(error);
        }
    }
}

File 17 of 21 : IERC721Internal.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @notice Partial ERC721 interface needed by internal functions
 */
interface IERC721Internal {
    event Transfer(
        address indexed from,
        address indexed to,
        uint256 indexed tokenId
    );

    event Approval(
        address indexed owner,
        address indexed operator,
        uint256 indexed tokenId
    );

    event ApprovalForAll(
        address indexed owner,
        address indexed operator,
        bool approved
    );
}

File 18 of 21 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 19 of 21 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import { IERC165 } from '../../introspection/IERC165.sol';
import { IERC721Internal } from './IERC721Internal.sol';

/**
 * @notice ERC721 interface
 * @dev see https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721 is IERC721Internal, IERC165 {
    /**
     * @notice query the balance of given address
     * @return balance quantity of tokens held
     */
    function balanceOf(address account) external view returns (uint256 balance);

    /**
     * @notice query the owner of given token
     * @param tokenId token to query
     * @return owner token owner
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @notice transfer token between given addresses, checking for ERC721Receiver implementation if applicable
     * @param from sender of token
     * @param to receiver of token
     * @param tokenId token id
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

    /**
     * @notice transfer token between given addresses, checking for ERC721Receiver implementation if applicable
     * @param from sender of token
     * @param to receiver of token
     * @param tokenId token id
     * @param data data payload
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external payable;

    /**
     * @notice transfer token between given addresses, without checking for ERC721Receiver implementation if applicable
     * @param from sender of token
     * @param to receiver of token
     * @param tokenId token id
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

    /**
     * @notice grant approval to given account to spend token
     * @param operator address to be approved
     * @param tokenId token to approve
     */
    function approve(address operator, uint256 tokenId) external payable;

    /**
     * @notice get approval status for given token
     * @param tokenId token to query
     * @return operator address approved to spend token
     */
    function getApproved(uint256 tokenId)
        external
        view
        returns (address operator);

    /**
     * @notice grant approval to or revoke approval from given account to spend all tokens held by sender
     * @param operator address to be approved
     * @param status approval status
     */
    function setApprovalForAll(address operator, bool status) external;

    /**
     * @notice query approval status of given operator with respect to given address
     * @param account address to query for approval granted
     * @param operator address to query for approval received
     * @return status whether operator is approved to spend tokens held by account
     */
    function isApprovedForAll(address account, address operator)
        external
        view
        returns (bool status);
}

File 20 of 21 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title ERC165 interface registration interface
 * @dev see https://eips.ethereum.org/EIPS/eip-165
 */
interface IERC165 {
    /**
     * @notice query whether contract has registered support for given interface
     * @param interfaceId interface id
     * @return bool whether interface is supported
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 21 of 21 : ERC165Storage.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

library ERC165Storage {
    struct Layout {
        mapping(bytes4 => bool) supportedInterfaces;
    }

    bytes32 internal constant STORAGE_SLOT =
        keccak256('solidstate.contracts.storage.ERC165');

    function layout() internal pure returns (Layout storage l) {
        bytes32 slot = STORAGE_SLOT;
        assembly {
            l.slot := slot
        }
    }

    function isSupportedInterface(Layout storage l, bytes4 interfaceId)
        internal
        view
        returns (bool)
    {
        return l.supportedInterfaces[interfaceId];
    }

    function setSupportedInterface(
        Layout storage l,
        bytes4 interfaceId,
        bool status
    ) internal {
        require(interfaceId != 0xffffffff, 'ERC165: invalid interface id');
        l.supportedInterfaces[interfaceId] = status;
    }
}

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"_traitTypeIndex","type":"uint256"},{"components":[{"internalType":"string","name":"traitName","type":"string"},{"internalType":"string","name":"traitType","type":"string"},{"internalType":"string[]","name":"pixels","type":"string[]"},{"internalType":"uint256[]","name":"pixelCount","type":"uint256[]"}],"internalType":"struct Trait[]","name":"traits","type":"tuple[]"}],"name":"addTraitType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_hash","type":"string"}],"name":"hashToSVG","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"_interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50615e2f80620000216000396000f3fe6080604052600436106101095760003560e01c80634f6ccce71161009557806389ce30741161006457806389ce307414610378578063a22cb465146103b5578063b88d4fde146103de578063c87b56dd146103fa578063e985e9c51461043757610109565b80634f6ccce7146102985780636352211e146102d557806370a082311461031257806382ee88ce1461034f57610109565b806318160ddd116100dc57806318160ddd146101bb57806323b872dd146101e65780632f745c591461020257806342842e0e1461023f578063438b63001461025b57610109565b806301ffc9a71461010e578063081812fc1461014b578063095ea7b3146101885780631249c58b146101a4575b600080fd5b34801561011a57600080fd5b5061013560048036038101906101309190613709565b610474565b6040516101429190614572565b60405180910390f35b34801561015757600080fd5b50610172600480360381019061016d91906137ac565b61047f565b60405161017f91906144e9565b60405180910390f35b6101a2600480360381019061019d91906136c9565b610491565b005b3480156101b057600080fd5b506101b96105a6565b005b3480156101c757600080fd5b506101d06105b0565b6040516101dd91906147ef565b60405180910390f35b61020060048036038101906101fb91906135b3565b6105bf565b005b34801561020e57600080fd5b50610229600480360381019061022491906136c9565b610624565b60405161023691906147ef565b60405180910390f35b610259600480360381019061025491906135b3565b610638565b005b34801561026757600080fd5b50610282600480360381019061027d9190613546565b610658565b60405161028f9190614550565b60405180910390f35b3480156102a457600080fd5b506102bf60048036038101906102ba91906137ac565b610706565b6040516102cc91906147ef565b60405180910390f35b3480156102e157600080fd5b506102fc60048036038101906102f791906137ac565b610718565b60405161030991906144e9565b60405180910390f35b34801561031e57600080fd5b5061033960048036038101906103349190613546565b61072a565b60405161034691906147ef565b60405180910390f35b34801561035b57600080fd5b50610376600480360381019061037191906137d9565b61073c565b005b34801561038457600080fd5b5061039f600480360381019061039a9190613763565b610940565b6040516103ac919061458d565b60405180910390f35b3480156103c157600080fd5b506103dc60048036038101906103d79190613689565b610f13565b005b6103f860048036038101906103f39190613606565b611088565b005b34801561040657600080fd5b50610421600480360381019061041c91906137ac565b6110ef565b60405161042e919061458d565b60405180910390f35b34801561044357600080fd5b5061045e60048036038101906104599190613573565b611316565b60405161046b9190614572565b60405180910390f35b600060019050919050565b600061048a8261132a565b9050919050565b61049c8282346113c7565b60006104a782610718565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610518576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161050f9061476f565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061055857506105578133611316565b5b610597576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161058e9061464f565b60405180910390fd5b6105a183836113cc565b505050565b6105ae61148e565b565b60006105ba611556565b905090565b6105cb8383833461156d565b6105d53382611573565b610614576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161060b906147cf565b60405180910390fd5b61061f838383611662565b505050565b6000610630838361188c565b905092915050565b61065383838360405180602001604052806000815250611088565b505050565b60606000610665836118b2565b905060008167ffffffffffffffff81111561068357610682614e4a565b5b6040519080825280602002602001820160405280156106b15781602001602082028036833780820191505090505b50905060005b828110156106fb576106c98582610624565b8282815181106106dc576106db614e1b565b5b60200260200101818152505080806106f390614c7b565b9150506106b7565b508092505050919050565b60006107118261197a565b9050919050565b60006107238261199d565b9050919050565b6000610735826118b2565b9050919050565b3373ffffffffffffffffffffffffffffffffffffffff16600060200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146107cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107c69061474f565b60405180910390fd5b60005b815181101561093b57600080016000848152602001908152602001600020604051806080016040528084848151811061080e5761080d614e1b565b5b602002602001015160000151815260200184848151811061083257610831614e1b565b5b602002602001015160200151815260200184848151811061085657610855614e1b565b5b602002602001015160400151815260200184848151811061087a57610879614e1b565b5b602002602001015160600151815250908060018154018082558091505060019003906000526020600020906004020160009091909190915060008201518160000190805190602001906108ce929190612ecc565b5060208201518160010190805190602001906108eb929190612ecc565b506040820151816002019080519060200190610908929190612f52565b506060820151816003019080519060200190610925929190612fb2565b505050808061093390614c7b565b9150506107d2565b505050565b6060600060405180602001604052806000815250905061095e612fff565b60005b60068160ff161015610ee657600061099461098f878460ff166001866109879190614a3f565b60ff16611a38565b611b34565b905060005b6000800160008460ff1681526020019081526020016000208260ff16815481106109c6576109c5614e1b565b5b9060005260206000209060040201600301805490508160ff161015610ed157600060405180602001604052806000815250905060005b6000800160008660ff1681526020019081526020016000208460ff1681548110610a2957610a28614e1b565b5b9060005260206000209060040201600301805490508160ff161015610ab3578260ff168160ff161415610a7d5781604051602001610a67919061419d565b6040516020818303038152906040529150610aa0565b81604051602001610a8e919061429d565b60405160208183030381529060405291505b8080610aab90614cc4565b9150506109fc565b5060008060000160008660ff1681526020019081526020016000208460ff1681548110610ae357610ae2614e1b565b5b90600052602060002090600402016003018360ff1681548110610b0957610b08614e1b565b5b90600052602060002001541115610b6457856000601f018360ff1681548110610b3557610b34614e1b565b5b9060005260206000200182604051602001610b5293929190614140565b60405160208183030381529060405295505b60005b6000800160008660ff1681526020019081526020016000208460ff1681548110610b9457610b93614e1b565b5b90600052602060002090600402016003018360ff1681548110610bba57610bb9614e1b565b5b9060005260206000200154811015610e33576000610ce16000800160008860ff1681526020019081526020016000208660ff1681548110610bfe57610bfd614e1b565b5b90600052602060002090600402016002018560ff1681548110610c2457610c23614e1b565b5b906000526020600020018054610c3990614c18565b80601f0160208091040260200160405190810160405280929190818152602001828054610c6590614c18565b8015610cb25780601f10610c8757610100808354040283529160200191610cb2565b820191906000526020600020905b815481529060010190602001808311610c9557829003601f168201915b5050505050600484610cc49190614aa7565b60048086610cd29190614aa7565b610cdc91906149e9565b611a38565b90506000610cfa610cf58360006001611a38565b611b34565b90506000610d13610d0e8460016002611a38565b611b34565b9050888660ff1660188110610d2b57610d2a614e1b565b5b60200201518260ff1660188110610d4557610d44614e1b565b5b60200201518160ff1660188110610d5f57610d5e614e1b565b5b602002015115610d7157505050610e20565b6000610d808460026004611a38565b90508a81610d908560ff16611be5565b610d9c8560ff16611be5565b604051602001610daf94939291906141e1565b6040516020818303038152906040529a5060018a8860ff1660188110610dd857610dd7614e1b565b5b60200201518460ff1660188110610df257610df1614e1b565b5b60200201518360ff1660188110610e0c57610e0b614e1b565b5b602002019015159081151581525050505050505b8080610e2b90614c7b565b915050610b67565b5060008060000160008660ff1681526020019081526020016000208460ff1681548110610e6357610e62614e1b565b5b90600052602060002090600402016003018360ff1681548110610e8957610e88614e1b565b5b90600052602060002001541115610ebd5785604051602001610eab91906142bf565b60405160208183030381529060405295505b508080610ec990614cc4565b915050610999565b50508080610ede90614cc4565b915050610961565b5081604051602001610ef89190614430565b60405160208183030381529060405291508192505050919050565b3373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610f82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f799061462f565b60405180910390fd5b80610f8b611d46565b60040160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161107c9190614572565b60405180910390a35050565b6110948484843461156d565b61109e3383611573565b6110dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d4906147cf565b60405180910390fd5b6110e984848484611d73565b50505050565b606061110b826110fd611d46565b611dcf90919063ffffffff16565b61111457600080fd5b600080601e01805461112590614c18565b80601f016020809104026020016040519081016040528092919081815260200182805461115190614c18565b801561119e5780601f106111735761010080835404028352916020019161119e565b820191906000526020600020905b81548152906001019060200180831161118157829003601f168201915b50505050509050600080600201600085815260200190815260200160002080546111c790614c18565b80601f01602080910402602001604051908101604052809291908181526020018280546111f390614c18565b80156112405780601f1061121557610100808354040283529160200191611240565b820191906000526020600020905b81548152906001019060200180831161122357829003601f168201915b5050505050905060008261125386611be5565b6040516020016112649291906143bc565b6040516020818303038152906040529050600080601e0161128487611be5565b6040516020016112959291906143f6565b60405160208183030381529060405290506112ec82826112bc6112b787610940565b611def565b6112c587611f74565b6040516020016112d89493929190614325565b604051602081830303815290604052611def565b6040516020016112fc919061439a565b604051602081830303815290604052945050505050919050565b600061132283836120c2565b905092915050565b600080611335611d46565b905061134a8382611dcf90919063ffffffff16565b611389576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611380906146ef565b60405180910390fd5b80600301600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16915050919050565b505050565b816113d5611d46565b600301600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166114488361199d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006114986105b0565b905060006008015481106114ab57600080fd5b6114b43361215f565b156114be57600080fd5b60008190506114cf81336000612172565b6000600201600083815260200190815260200160002090805190602001906114f8929190612ecc565b50600160006001016000600201600084815260200190815260200160002060405161152391906142e1565b908152602001604051809103902060006101000a81548160ff02191690831515021790555061155233826122b0565b5050565b6000611568611563611d46565b612459565b905090565b50505050565b600061158f82611581611d46565b611dcf90919063ffffffff16565b6115ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c5906146af565b60405180910390fd5b60006115d98361199d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061164857508373ffffffffffffffffffffffffffffffffffffffff166116308461132a565b73ffffffffffffffffffffffffffffffffffffffff16145b80611659575061165881856120c2565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166116828261199d565b73ffffffffffffffffffffffffffffffffffffffff16146116d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116cf9061470f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611748576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173f9061460f565b60405180910390fd5b61175383838361246e565b61175e6000826113cc565b6000611768611d46565b90506117bd828260020160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061247390919063ffffffff16565b50611811828260020160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061248d90919063ffffffff16565b5061182a8284836000016124a79092919063ffffffff16565b50818373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a450505050565b60006118aa838361189b611d46565b6124dc9092919063ffffffff16565b905092915050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611923576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191a9061466f565b60405180910390fd5b61197361192e611d46565b60020160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061253a565b9050919050565b600061199682611988611d46565b61254f90919063ffffffff16565b9050919050565b6000806119bd836119ac611d46565b60000161257590919063ffffffff16565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611a2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a269061472f565b60405180910390fd5b80915050919050565b6060600084905060008484611a4d9190614b01565b67ffffffffffffffff811115611a6657611a65614e4a565b5b6040519080825280601f01601f191660200182016040528015611a985781602001600182028036833780820191505090505b50905060008590505b84811015611b2757828181518110611abc57611abb614e1b565b5b602001015160f81c60f81b828783611ad49190614b01565b81518110611ae557611ae4614e1b565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080611b1f90614c7b565b915050611aa1565b5080925050509392505050565b600080600090505b6000601f01805490508160ff161015611bda5782604051602001611b609190614105565b604051602081830303815290604052805190602001206000601f018260ff1681548110611b9057611b8f614e1b565b5b90600052602060002001604051602001611baa91906142e1565b604051602081830303815290604052805190602001201415611bcf5780915050611be0565b806001019050611b3c565b50600080fd5b919050565b60606000821415611c2d576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611d41565b600082905060005b60008214611c5f578080611c4890614c7b565b915050600a82611c589190614a76565b9150611c35565b60008167ffffffffffffffff811115611c7b57611c7a614e4a565b5b6040519080825280601f01601f191660200182016040528015611cad5781602001600182028036833780820191505090505b5090505b60008514611d3a57600182611cc69190614b01565b9150600a85611cd59190614d2e565b6030611ce191906149e9565b60f81b818381518110611cf757611cf6614e1b565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611d339190614a76565b9450611cb1565b8093505050505b919050565b6000807f3c7bf052874fa81625121783266a03507bd2cd48b16e571c01a04e8dd3fb07a690508091505090565b611d7e848484611662565b611d8a84848484612592565b611dc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc0906145cf565b60405180910390fd5b50505050565b6000611de7828460000161270890919063ffffffff16565b905092915050565b6060600082511415611e1257604051806020016040528060008152509050611f6f565b6000604051806060016040528060408152602001615dba6040913990506000600360028551611e4191906149e9565b611e4b9190614a76565b6004611e579190614aa7565b90506000602082611e6891906149e9565b67ffffffffffffffff811115611e8157611e80614e4a565b5b6040519080825280601f01601f191660200182016040528015611eb35781602001600182028036833780820191505090505b509050818152600183018586518101602084015b81831015611f2e576003830192508251603f8160121c1685015160f81b8252600182019150603f81600c1c1685015160f81b8252600182019150603f8160061c1685015160f81b8252600182019150603f811685015160f81b825260018201915050611ec7565b600389510660018114611f485760028114611f5857611f63565b613d3d60f01b6002830352611f63565b603d60f81b60018303525b50505050508093505050505b919050565b6060600060405180602001604052806000815250905060005b60068160ff161015612099576000611fc0611fbb868460ff16600186611fb39190614a3f565b60ff16611a38565b611b34565b60ff169050826000800160008460ff1681526020019081526020016000208281548110611ff057611fef614e1b565b5b90600052602060002090600402016001016000800160008560ff168152602001908152602001600020838154811061202b5761202a614e1b565b5b906000526020600020906004020160000160405160200161204e9392919061424b565b604051602081830303815290604052925060058260ff161461208d578260405160200161207b91906141bf565b60405160208183030381529060405292505b81600101915050611f8d565b50806040516020016120ab91906142f8565b604051602081830303815290604052915050919050565b60006120cc611d46565b60040160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600080823b905060008111915050919050565b60606050821061218157600080fd5b600060405180602001604052806000815250905060005b60068160ff16101561225057600060090160008154809291906121ba90614c7b565b919050555060006127104241448a8a8a6000600901546040516020016121e69796959493929190614468565b6040516020818303038152906040528051906020012060001c6122099190614d2e565b90508261221a8261ffff1684612722565b60405160200161222b92919061411c565b604051602081830303815290604052925050808061224890614cc4565b915050612198565b506000600101816040516122649190614105565b908152602001604051809103902060009054906101000a900460ff16156122a45761229c858560018661229791906149e9565b612172565b9150506122a9565b809150505b9392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612320576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612317906146cf565b60405180910390fd5b600061232a611d46565b905061233f8282611dcf90919063ffffffff16565b1561237f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612376906145ef565b60405180910390fd5b61238b6000848461246e565b6123de828260020160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061248d90919063ffffffff16565b506123f78284836000016124a79092919063ffffffff16565b50818373ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000612467826000016128b4565b9050919050565b505050565b6000612485836000018360001b6128c9565b905092915050565b600061249f836000018360001b6129db565b905092915050565b60006124d3846000018460001b8473ffffffffffffffffffffffffffffffffffffffff1660001b612a4b565b90509392505050565b6000612531828560020160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612b3790919063ffffffff16565b90509392505050565b600061254882600001612b51565b9050919050565b6000806125688385600001612b6290919063ffffffff16565b5090508091505092915050565b6000612587836000018360001b612b8e565b60001c905092915050565b60006125b38473ffffffffffffffffffffffffffffffffffffffff16612c2a565b6125c05760019050612700565b600061268063150b7a0260e01b338887876040516024016125e49493929190614504565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051806060016040528060328152602001615d88603291398773ffffffffffffffffffffffffffffffffffffffff16612c3d9092919063ffffffff16565b90506000818060200190518101906126989190613736565b90507f150b7a02000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614925050505b949350505050565b600061271a836000018360001b612c55565b905092915050565b60606000805b6000600a018460ff166014811061274257612741614e1b565b5b01805490508160ff1610156128a857600080600a018560ff166014811061276c5761276b614e1b565b5b018260ff168154811061278257612781614e1b565b5b90600052602060002090601091828204019190066002029054906101000a900461ffff1690508261ffff1686101580156127ca575080836127c391906149b1565b61ffff1686105b15612886576000601f018260ff16815481106127e9576127e8614e1b565b5b9060005260206000200180546127fe90614c18565b80601f016020809104026020016040519081016040528092919081815260200182805461282a90614c18565b80156128775780601f1061284c57610100808354040283529160200191612877565b820191906000526020600020905b81548152906001019060200180831161285a57829003601f168201915b505050505093505050506128ae565b808361289291906149b1565b92505080806128a090614cc4565b915050612728565b50600080fd5b92915050565b60006128c282600001612c78565b9050919050565b600080836001016000848152602001908152602001600020549050600081146129cf5760006001826128fb9190614b01565b9050600085600001600187600001805490506129179190614b01565b8154811061292857612927614e1b565b5b906000526020600020015490508086600001838154811061294c5761294b614e1b565b5b906000526020600020018190555060018261296791906149e9565b866001016000838152602001908152602001600020819055508560000180548061299457612993614dec565b5b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506129d5565b60009150505b92915050565b60006129e78383612c89565b612a40578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050612a45565b600090505b92915050565b6000808460010160008581526020019081526020016000205490506000811415612af257846000016040518060400160405280868152602001858152509080600181540180825580915050600190039060005260206000209060020201600090919091909150600082015181600001556020820151816001015550508460000180549050856001016000868152602001908152602001600020819055506001915050612b30565b8285600001600183612b049190614b01565b81548110612b1557612b14614e1b565b5b90600052602060002090600202016001018190555060009150505b9392505050565b6000612b468360000183612cac565b60001c905092915050565b600081600001805490509050919050565b600080600080612b758660000186612d20565b915091508160001c8160001c9350935050509250929050565b6000808360010160008481526020019081526020016000205490506000811415612bed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612be49061478f565b60405180910390fd5b83600001600182612bfe9190614b01565b81548110612c0f57612c0e614e1b565b5b90600052602060002090600202016001015491505092915050565b600080823b905060008111915050919050565b6060612c4c8484600085612daa565b90509392505050565b600080836001016000848152602001908152602001600020541415905092915050565b600081600001805490509050919050565b600080836001016000848152602001908152602001600020541415905092915050565b600081836000018054905011612cf7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cee906145af565b60405180910390fd5b826000018281548110612d0d57612d0c614e1b565b5b9060005260206000200154905092915050565b60008082846000018054905011612d6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d639061468f565b60405180910390fd5b6000846000018481548110612d8457612d83614e1b565b5b906000526020600020906002020190508060000154816001015492509250509250929050565b6060612db585612c2a565b612df4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612deb906147af565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051612e1d91906140ee565b60006040518083038185875af1925050503d8060008114612e5a576040519150601f19603f3d011682016040523d82523d6000602084013e612e5f565b606091505b50915091508115612e74578092505050612ec4565b600081511115612e875780518082602001fd5b836040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ebb919061458d565b60405180910390fd5b949350505050565b828054612ed890614c18565b90600052602060002090601f016020900481019282612efa5760008555612f41565b82601f10612f1357805160ff1916838001178555612f41565b82800160010185558215612f41579182015b82811115612f40578251825591602001919060010190612f25565b5b509050612f4e919061302d565b5090565b828054828255906000526020600020908101928215612fa1579160200282015b82811115612fa0578251829080519060200190612f90929190612ecc565b5091602001919060010190612f72565b5b509050612fae919061304a565b5090565b828054828255906000526020600020908101928215612fee579160200282015b82811115612fed578251825591602001919060010190612fd2565b5b509050612ffb919061302d565b5090565b6040518061030001604052806018905b61301761306e565b81526020019060019003908161300f5790505090565b5b8082111561304657600081600090555060010161302e565b5090565b5b8082111561306a5760008181613061919061309c565b5060010161304b565b5090565b6040518061030001604052806018905b6130866130dc565b81526020019060019003908161307e5790505090565b5080546130a890614c18565b6000825580601f106130ba57506130d9565b601f0160209004906000526020600020908101906130d8919061302d565b5b50565b604051806103000160405280601890602082028036833780820191505090505090565b600061311261310d8461482f565b61480a565b9050808382526020820190508285602086028201111561313557613134614e88565b5b60005b8581101561318357813567ffffffffffffffff81111561315b5761315a614e79565b5b808601613168898261341b565b85526020850194506020840193505050600181019050613138565b5050509392505050565b60006131a061319b8461485b565b61480a565b905080838252602082019050828560208602820111156131c3576131c2614e88565b5b60005b8581101561321157813567ffffffffffffffff8111156131e9576131e8614e79565b5b8086016131f68982613449565b855260208501945060208401935050506001810190506131c6565b5050509392505050565b600061322e61322984614887565b61480a565b9050808382526020820190508285602086028201111561325157613250614e88565b5b60005b8581101561328157816132678882613531565b845260208401935060208301925050600181019050613254565b5050509392505050565b600061329e613299846148b3565b61480a565b9050828152602081018484840111156132ba576132b9614e8d565b5b6132c5848285614bd6565b509392505050565b60006132e06132db846148e4565b61480a565b9050828152602081018484840111156132fc576132fb614e8d565b5b613307848285614bd6565b509392505050565b60008135905061331e81615d2b565b92915050565b600082601f83011261333957613338614e79565b5b81356133498482602086016130ff565b91505092915050565b600082601f83011261336757613366614e79565b5b813561337784826020860161318d565b91505092915050565b600082601f83011261339557613394614e79565b5b81356133a584826020860161321b565b91505092915050565b6000813590506133bd81615d42565b92915050565b6000813590506133d281615d59565b92915050565b6000815190506133e781615d59565b92915050565b600082601f83011261340257613401614e79565b5b813561341284826020860161328b565b91505092915050565b600082601f8301126134305761342f614e79565b5b81356134408482602086016132cd565b91505092915050565b60006080828403121561345f5761345e614e7e565b5b613469608061480a565b9050600082013567ffffffffffffffff81111561348957613488614e83565b5b6134958482850161341b565b600083015250602082013567ffffffffffffffff8111156134b9576134b8614e83565b5b6134c58482850161341b565b602083015250604082013567ffffffffffffffff8111156134e9576134e8614e83565b5b6134f584828501613324565b604083015250606082013567ffffffffffffffff81111561351957613518614e83565b5b61352584828501613380565b60608301525092915050565b60008135905061354081615d70565b92915050565b60006020828403121561355c5761355b614e97565b5b600061356a8482850161330f565b91505092915050565b6000806040838503121561358a57613589614e97565b5b60006135988582860161330f565b92505060206135a98582860161330f565b9150509250929050565b6000806000606084860312156135cc576135cb614e97565b5b60006135da8682870161330f565b93505060206135eb8682870161330f565b92505060406135fc86828701613531565b9150509250925092565b600080600080608085870312156136205761361f614e97565b5b600061362e8782880161330f565b945050602061363f8782880161330f565b935050604061365087828801613531565b925050606085013567ffffffffffffffff81111561367157613670614e92565b5b61367d878288016133ed565b91505092959194509250565b600080604083850312156136a05761369f614e97565b5b60006136ae8582860161330f565b92505060206136bf858286016133ae565b9150509250929050565b600080604083850312156136e0576136df614e97565b5b60006136ee8582860161330f565b92505060206136ff85828601613531565b9150509250929050565b60006020828403121561371f5761371e614e97565b5b600061372d848285016133c3565b91505092915050565b60006020828403121561374c5761374b614e97565b5b600061375a848285016133d8565b91505092915050565b60006020828403121561377957613778614e97565b5b600082013567ffffffffffffffff81111561379757613796614e92565b5b6137a38482850161341b565b91505092915050565b6000602082840312156137c2576137c1614e97565b5b60006137d084828501613531565b91505092915050565b600080604083850312156137f0576137ef614e97565b5b60006137fe85828601613531565b925050602083013567ffffffffffffffff81111561381f5761381e614e92565b5b61382b85828601613352565b9150509250929050565b600061384183836140b9565b60208301905092915050565b61385e61385982614b47565b614d00565b82525050565b61386d81614b35565b82525050565b61388461387f82614b35565b614cee565b82525050565b60006138958261493a565b61389f8185614968565b93506138aa83614915565b8060005b838110156138db5781516138c28882613835565b97506138cd8361495b565b9250506001810190506138ae565b5085935050505092915050565b6138f181614b59565b82525050565b600061390282614945565b61390c8185614979565b935061391c818560208601614be5565b61392581614e9c565b840191505092915050565b600061393b82614945565b613945818561498a565b9350613955818560208601614be5565b80840191505092915050565b600061396c82614950565b6139768185614995565b9350613986818560208601614be5565b61398f81614e9c565b840191505092915050565b60006139a582614950565b6139af81856149a6565b93506139bf818560208601614be5565b80840191505092915050565b600081546139d881614c18565b6139e281866149a6565b945060018216600081146139fd5760018114613a0e57613a41565b60ff19831686528186019350613a41565b613a1785614925565b60005b83811015613a3957815481890152600182019150602081019050613a1a565b838801955050505b50505092915050565b6000613a57602283614995565b9150613a6282614eba565b604082019050919050565b6000613a7a6005836149a6565b9150613a8582614f09565b600582019050919050565b6000613a9d6013836149a6565b9150613aa882614f32565b601382019050919050565b6000613ac06003836149a6565b9150613acb82614f5b565b600382019050919050565b6000613ae3603283614995565b9150613aee82614f84565b604082019050919050565b6000613b066002836149a6565b9150613b1182614fd3565b600282019050919050565b6000613b2a6103be836149a6565b9150613b3582614ffc565b6103be82019050919050565b6000613b4e601c83614995565b9150613b5982615489565b602082019050919050565b6000613b716007836149a6565b9150613b7c826154b2565b600782019050919050565b6000613b946005836149a6565b9150613b9f826154db565b600582019050919050565b6000613bb7600f836149a6565b9150613bc282615504565b600f82019050919050565b6000613bda6001836149a6565b9150613be58261552d565b600182019050919050565b6000613bfd600e836149a6565b9150613c0882615556565b600e82019050919050565b6000613c20602483614995565b9150613c2b8261557f565b604082019050919050565b6000613c43601983614995565b9150613c4e826155ce565b602082019050919050565b6000613c666026836149a6565b9150613c71826155f7565b602682019050919050565b6000613c89600f836149a6565b9150613c9482615646565b600f82019050919050565b6000613cac6005836149a6565b9150613cb78261566f565b600582019050919050565b6000613ccf603883614995565b9150613cda82615698565b604082019050919050565b6000613cf2602a83614995565b9150613cfd826156e7565b604082019050919050565b6000613d156002836149a6565b9150613d2082615736565b600282019050919050565b6000613d386009836149a6565b9150613d438261575f565b600982019050919050565b6000613d5b602283614995565b9150613d6682615788565b604082019050919050565b6000613d7e602383614995565b9150613d89826157d7565b604082019050919050565b6000613da1602083614995565b9150613dac82615826565b602082019050919050565b6000613dc46001836149a6565b9150613dcf8261584f565b600182019050919050565b6000613de7602c83614995565b9150613df282615878565b604082019050919050565b6000613e0a6022836149a6565b9150613e15826158c7565b602282019050919050565b6000613e2d6001836149a6565b9150613e3882615916565b600182019050919050565b6000613e50602983614995565b9150613e5b8261593f565b604082019050919050565b6000613e736004836149a6565b9150613e7e8261598e565b600482019050919050565b6000613e96600a836149a6565b9150613ea1826159b7565b600a82019050919050565b6000613eb9600b836149a6565b9150613ec4826159e0565b600b82019050919050565b6000613edc601583614995565b9150613ee782615a09565b602082019050919050565b6000613eff600a83614995565b9150613f0a82615a32565b602082019050919050565b6000613f226001836149a6565b9150613f2d82615a5b565b600182019050919050565b6000613f45602183614995565b9150613f5082615a84565b604082019050919050565b6000613f68600d836149a6565b9150613f7382615ad3565b600d82019050919050565b6000613f8b601d836149a6565b9150613f9682615afc565b601d82019050919050565b6000613fae6000836149a6565b9150613fb982615b25565b600082019050919050565b6000613fd16016836149a6565b9150613fdc82615b28565b601682019050919050565b6000613ff4606a836149a6565b9150613fff82615b51565b606a82019050919050565b6000614017601e83614995565b915061402282615bec565b602082019050919050565b600061403a6033836149a6565b915061404582615c15565b603382019050919050565b600061405d602b83614995565b915061406882615c64565b604082019050919050565b60006140806006836149a6565b915061408b82615cb3565b600682019050919050565b60006140a3603083614995565b91506140ae82615cdc565b604082019050919050565b6140c281614bbf565b82525050565b6140d181614bbf565b82525050565b6140e86140e382614bbf565b614d24565b82525050565b60006140fa8284613930565b915081905092915050565b6000614111828461399a565b915081905092915050565b6000614128828561399a565b9150614134828461399a565b91508190509392505050565b600061414c828661399a565b915061415782613ab3565b915061416282613f5b565b915061416e82856139cb565b915061417982613dfd565b9150614185828461399a565b91506141908261402d565b9150819050949350505050565b60006141a9828461399a565b91506141b482613b64565b915081905092915050565b60006141cb828461399a565b91506141d682613bcd565b915081905092915050565b60006141ed828761399a565b91506141f882613bf0565b9150614204828661399a565b915061420f82613b87565b915061421b828561399a565b915061422682613a6d565b9150614232828461399a565b915061423d82613d2b565b915081905095945050505050565b6000614257828661399a565b915061426282613c7c565b915061426e82856139cb565b915061427982613eac565b915061428582846139cb565b915061429082613d08565b9150819050949350505050565b60006142a9828461399a565b91506142b482613c9f565b915081905092915050565b60006142cb828461399a565b91506142d682613e66565b915081905092915050565b60006142ed82846139cb565b915081905092915050565b600061430382613e20565b915061430f828461399a565b915061431a82613f15565b915081905092915050565b600061433082613e89565b915061433c828761399a565b915061434782613a90565b9150614353828661399a565b915061435e82613c59565b915061436a828561399a565b915061437582613baa565b9150614381828461399a565b915061438c82613db7565b915081905095945050505050565b60006143a582613f7e565b91506143b1828461399a565b915081905092915050565b60006143c782613fa1565b91506143d3828561399a565b91506143de82613af9565b91506143ea828461399a565b91508190509392505050565b600061440182613fc4565b915061440d82856139cb565b915061441882613af9565b9150614424828461399a565b91508190509392505050565b600061443b82613fe7565b9150614447828461399a565b915061445282613b1c565b915061445d82614073565b915081905092915050565b6000614474828a6140d7565b602082019150614484828961384d565b60148201915061449482886140d7565b6020820191506144a482876140d7565b6020820191506144b48286613873565b6014820191506144c482856140d7565b6020820191506144d482846140d7565b60208201915081905098975050505050505050565b60006020820190506144fe6000830184613864565b92915050565b60006080820190506145196000830187613864565b6145266020830186613864565b61453360408301856140c8565b818103606083015261454581846138f7565b905095945050505050565b6000602082019050818103600083015261456a818461388a565b905092915050565b600060208201905061458760008301846138e8565b92915050565b600060208201905081810360008301526145a78184613961565b905092915050565b600060208201905081810360008301526145c881613a4a565b9050919050565b600060208201905081810360008301526145e881613ad6565b9050919050565b6000602082019050818103600083015261460881613b41565b9050919050565b6000602082019050818103600083015261462881613c13565b9050919050565b6000602082019050818103600083015261464881613c36565b9050919050565b6000602082019050818103600083015261466881613cc2565b9050919050565b6000602082019050818103600083015261468881613ce5565b9050919050565b600060208201905081810360008301526146a881613d4e565b9050919050565b600060208201905081810360008301526146c881613d71565b9050919050565b600060208201905081810360008301526146e881613d94565b9050919050565b6000602082019050818103600083015261470881613dda565b9050919050565b6000602082019050818103600083015261472881613e43565b9050919050565b6000602082019050818103600083015261474881613ecf565b9050919050565b6000602082019050818103600083015261476881613ef2565b9050919050565b6000602082019050818103600083015261478881613f38565b9050919050565b600060208201905081810360008301526147a88161400a565b9050919050565b600060208201905081810360008301526147c881614050565b9050919050565b600060208201905081810360008301526147e881614096565b9050919050565b600060208201905061480460008301846140c8565b92915050565b6000614814614825565b90506148208282614c4a565b919050565b6000604051905090565b600067ffffffffffffffff82111561484a57614849614e4a565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561487657614875614e4a565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156148a2576148a1614e4a565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156148ce576148cd614e4a565b5b6148d782614e9c565b9050602081019050919050565b600067ffffffffffffffff8211156148ff576148fe614e4a565b5b61490882614e9c565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006149bc82614b91565b91506149c783614b91565b92508261ffff038211156149de576149dd614d5f565b5b828201905092915050565b60006149f482614bbf565b91506149ff83614bbf565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614a3457614a33614d5f565b5b828201905092915050565b6000614a4a82614bc9565b9150614a5583614bc9565b92508260ff03821115614a6b57614a6a614d5f565b5b828201905092915050565b6000614a8182614bbf565b9150614a8c83614bbf565b925082614a9c57614a9b614d8e565b5b828204905092915050565b6000614ab282614bbf565b9150614abd83614bbf565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614af657614af5614d5f565b5b828202905092915050565b6000614b0c82614bbf565b9150614b1783614bbf565b925082821015614b2a57614b29614d5f565b5b828203905092915050565b6000614b4082614b9f565b9050919050565b6000614b5282614b9f565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015614c03578082015181840152602081019050614be8565b83811115614c12576000848401525b50505050565b60006002820490506001821680614c3057607f821691505b60208210811415614c4457614c43614dbd565b5b50919050565b614c5382614e9c565b810181811067ffffffffffffffff82111715614c7257614c71614e4a565b5b80604052505050565b6000614c8682614bbf565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614cb957614cb8614d5f565b5b600182019050919050565b6000614ccf82614bc9565b915060ff821415614ce357614ce2614d5f565b5b600182019050919050565b6000614cf982614d12565b9050919050565b6000614d0b82614d12565b9050919050565b6000614d1d82614ead565b9050919050565b6000819050919050565b6000614d3982614bbf565b9150614d4483614bbf565b925082614d5457614d53614d8e565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b7f2720793d27000000000000000000000000000000000000000000000000000000600082015250565b7f222c20226465736372697074696f6e223a202200000000000000000000000000600082015250565b7f3c673e0000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f2023000000000000000000000000000000000000000000000000000000000000600082015250565b7f3c7374796c653e726563747b77696474683a3170783b6865696768743a31707860008201527f3b7d237376677b73686170652d72656e646572696e673a20637269737065646760208201527f65733b7d2e6330307b66696c6c3a233030303030307d2e6330317b66696c6c3a60408201527f233232323033347d2e6330327b66696c6c3a233435323833637d2e6330337b6660608201527f696c6c3a233636333933317d2e6330347b66696c6c3a233866353633627d2e6360808201527f30357b66696c6c3a236466373132367d2e6330367b66696c6c3a23643961303660a08201527f367d2e6330377b66696c6c3a236565633339617d2e6330387b66696c6c3a236660c08201527f62663233367d2e6330397b66696c6c3a233939653535307d2e6331307b66696c60e08201527f6c3a233661626533307d2e6331317b66696c6c3a233337393436657d2e6331326101008201527f7b66696c6c3a233462363932667d2e6331337b66696c6c3a233532346232347d6101208201527f2e6331347b66696c6c3a233332336333397d2e6331357b66696c6c3a233366336101408201527f6637347d2e6331367b66696c6c3a233330363038327d2e6331377b66696c6c3a6101608201527f233562366565317d2e6331387b66696c6c3a233633396266667d2e6331397b666101808201527f696c6c3a233566636465347d2e6332307b66696c6c3a236362646266637d2e636101a08201527f32317b66696c6c3a236666666666667d2e6332327b66696c6c3a2339626164626101c08201527f377d2e6332337b66696c6c3a233834376538377d2e6332347b66696c6c3a23366101e08201527f39366136617d2e6332357b66696c6c3a233539353635327d2e6332367b66696c6102008201527f6c3a233736343238617d2e6332377b66696c6c3a236163333233327d2e6332386102208201527f7b66696c6c3a236439353736337d2e6332397b66696c6c3a236437376262617d6102408201527f2e6333307b66696c6c3a233866393734617d2e6333317b66696c6c3a233861366102608201527f6633307d2e6333327b66696c6c3a233831343834387d2e6333337b66696c6c3a6102808201527f233964346134617d2e6333347b66696c6c3a233430333634307d2e6333357b666102a08201527f696c6c3a233836383238327d2e6333367b66696c6c3a233432343035387d2e636102c08201527f33377b66696c6c3a233266333135617d2e6333387b66696c6c3a2333343337386102e08201527f627d2e6333397b66696c6c3a236463643533307d2e6334307b66696c6c3a23666103008201527f65666666347d2e6334317b66696c6c3a236533653165317d2e6334327b66696c6103208201527f6c3a233633343436347d2e6334337b66696c6c3a233764343838317d2e6334346103408201527f7b66696c6c3a236235343962637d2e6334357b66696c6c3a233334336366667d6103608201527f2e6334367b66696c6c3a236636643935337d2e6334377b66696c6c3a236264386103808201527f3232387d2e6334387b66696c6c3a236562623333377d3c2f7374796c653e00006103a082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f696e6c696e653b00000000000000000000000000000000000000000000000000600082015250565b7f2720783d27000000000000000000000000000000000000000000000000000000600082015250565b7f222c2261747472696275746573223a0000000000000000000000000000000000600082015250565b7f2c00000000000000000000000000000000000000000000000000000000000000600082015250565b7f3c7265637420636c6173733d2763000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f222c22696d616765223a2022646174613a696d6167652f7376672b786d6c3b6260008201527f61736536342c0000000000000000000000000000000000000000000000000000602082015250565b7f7b2274726169745f74797065223a220000000000000000000000000000000000600082015250565b7f6e6f6e653b000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b7f273e3c2f726563743e0000000000000000000000000000000000000000000000600082015250565b7f456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20717565727920666f72206e6f6e6578697374656e7420746f60008201527f6b656e0000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f7d00000000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f27206174747269627574654e616d653d27646973706c6179272076616c75657360008201527f3d27000000000000000000000000000000000000000000000000000000000000602082015250565b7f5b00000000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f3c2f673e00000000000000000000000000000000000000000000000000000000600082015250565b7f7b226e616d65223a202200000000000000000000000000000000000000000000600082015250565b7f222c2276616c7565223a22000000000000000000000000000000000000000000600082015250565b7f4552433732313a20696e76616c6964206f776e65720000000000000000000000600082015250565b7f6f6e6c79206f776e657200000000000000000000000000000000000000000000600082015250565b7f5d00000000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f3c616e696d6174652069643d2700000000000000000000000000000000000000600082015250565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b50565b7f53746f7265642031303025206f6e2d636861696e2e2000000000000000000000600082015250565b7f3c7376672069643d227376672220786d6c6e733d22687474703a2f2f7777772e60008201527f77332e6f72672f323030302f737667222070726573657276654173706563745260208201527f6174696f3d22784d696e594d696e206d656574222076696577426f783d22302060408201527f30203234203234223e2000000000000000000000000000000000000000000000606082015250565b7f456e756d657261626c654d61703a206e6f6e6578697374656e74206b65790000600082015250565b7f2720726570656174436f756e743d27696e646566696e69746527206475723d2760008201527f302e3435732720626567696e3d273073272f3e00000000000000000000000000602082015250565b7f416464726573735574696c733a2066756e6374696f6e2063616c6c20746f206e60008201527f6f6e2d636f6e7472616374000000000000000000000000000000000000000000602082015250565b7f3c2f7376673e0000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206f7220617070726f76656400000000000000000000000000000000602082015250565b615d3481614b35565b8114615d3f57600080fd5b50565b615d4b81614b59565b8114615d5657600080fd5b50565b615d6281614b65565b8114615d6d57600080fd5b50565b615d7981614bbf565b8114615d8457600080fd5b5056fe4552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220b1e9c9932f8db755ce1d54f0f76c9e53417cbb32e9d6d84486132579f4ee843764736f6c63430008060033

Deployed Bytecode

0x6080604052600436106101095760003560e01c80634f6ccce71161009557806389ce30741161006457806389ce307414610378578063a22cb465146103b5578063b88d4fde146103de578063c87b56dd146103fa578063e985e9c51461043757610109565b80634f6ccce7146102985780636352211e146102d557806370a082311461031257806382ee88ce1461034f57610109565b806318160ddd116100dc57806318160ddd146101bb57806323b872dd146101e65780632f745c591461020257806342842e0e1461023f578063438b63001461025b57610109565b806301ffc9a71461010e578063081812fc1461014b578063095ea7b3146101885780631249c58b146101a4575b600080fd5b34801561011a57600080fd5b5061013560048036038101906101309190613709565b610474565b6040516101429190614572565b60405180910390f35b34801561015757600080fd5b50610172600480360381019061016d91906137ac565b61047f565b60405161017f91906144e9565b60405180910390f35b6101a2600480360381019061019d91906136c9565b610491565b005b3480156101b057600080fd5b506101b96105a6565b005b3480156101c757600080fd5b506101d06105b0565b6040516101dd91906147ef565b60405180910390f35b61020060048036038101906101fb91906135b3565b6105bf565b005b34801561020e57600080fd5b50610229600480360381019061022491906136c9565b610624565b60405161023691906147ef565b60405180910390f35b610259600480360381019061025491906135b3565b610638565b005b34801561026757600080fd5b50610282600480360381019061027d9190613546565b610658565b60405161028f9190614550565b60405180910390f35b3480156102a457600080fd5b506102bf60048036038101906102ba91906137ac565b610706565b6040516102cc91906147ef565b60405180910390f35b3480156102e157600080fd5b506102fc60048036038101906102f791906137ac565b610718565b60405161030991906144e9565b60405180910390f35b34801561031e57600080fd5b5061033960048036038101906103349190613546565b61072a565b60405161034691906147ef565b60405180910390f35b34801561035b57600080fd5b50610376600480360381019061037191906137d9565b61073c565b005b34801561038457600080fd5b5061039f600480360381019061039a9190613763565b610940565b6040516103ac919061458d565b60405180910390f35b3480156103c157600080fd5b506103dc60048036038101906103d79190613689565b610f13565b005b6103f860048036038101906103f39190613606565b611088565b005b34801561040657600080fd5b50610421600480360381019061041c91906137ac565b6110ef565b60405161042e919061458d565b60405180910390f35b34801561044357600080fd5b5061045e60048036038101906104599190613573565b611316565b60405161046b9190614572565b60405180910390f35b600060019050919050565b600061048a8261132a565b9050919050565b61049c8282346113c7565b60006104a782610718565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610518576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161050f9061476f565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061055857506105578133611316565b5b610597576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161058e9061464f565b60405180910390fd5b6105a183836113cc565b505050565b6105ae61148e565b565b60006105ba611556565b905090565b6105cb8383833461156d565b6105d53382611573565b610614576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161060b906147cf565b60405180910390fd5b61061f838383611662565b505050565b6000610630838361188c565b905092915050565b61065383838360405180602001604052806000815250611088565b505050565b60606000610665836118b2565b905060008167ffffffffffffffff81111561068357610682614e4a565b5b6040519080825280602002602001820160405280156106b15781602001602082028036833780820191505090505b50905060005b828110156106fb576106c98582610624565b8282815181106106dc576106db614e1b565b5b60200260200101818152505080806106f390614c7b565b9150506106b7565b508092505050919050565b60006107118261197a565b9050919050565b60006107238261199d565b9050919050565b6000610735826118b2565b9050919050565b3373ffffffffffffffffffffffffffffffffffffffff16600060200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146107cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107c69061474f565b60405180910390fd5b60005b815181101561093b57600080016000848152602001908152602001600020604051806080016040528084848151811061080e5761080d614e1b565b5b602002602001015160000151815260200184848151811061083257610831614e1b565b5b602002602001015160200151815260200184848151811061085657610855614e1b565b5b602002602001015160400151815260200184848151811061087a57610879614e1b565b5b602002602001015160600151815250908060018154018082558091505060019003906000526020600020906004020160009091909190915060008201518160000190805190602001906108ce929190612ecc565b5060208201518160010190805190602001906108eb929190612ecc565b506040820151816002019080519060200190610908929190612f52565b506060820151816003019080519060200190610925929190612fb2565b505050808061093390614c7b565b9150506107d2565b505050565b6060600060405180602001604052806000815250905061095e612fff565b60005b60068160ff161015610ee657600061099461098f878460ff166001866109879190614a3f565b60ff16611a38565b611b34565b905060005b6000800160008460ff1681526020019081526020016000208260ff16815481106109c6576109c5614e1b565b5b9060005260206000209060040201600301805490508160ff161015610ed157600060405180602001604052806000815250905060005b6000800160008660ff1681526020019081526020016000208460ff1681548110610a2957610a28614e1b565b5b9060005260206000209060040201600301805490508160ff161015610ab3578260ff168160ff161415610a7d5781604051602001610a67919061419d565b6040516020818303038152906040529150610aa0565b81604051602001610a8e919061429d565b60405160208183030381529060405291505b8080610aab90614cc4565b9150506109fc565b5060008060000160008660ff1681526020019081526020016000208460ff1681548110610ae357610ae2614e1b565b5b90600052602060002090600402016003018360ff1681548110610b0957610b08614e1b565b5b90600052602060002001541115610b6457856000601f018360ff1681548110610b3557610b34614e1b565b5b9060005260206000200182604051602001610b5293929190614140565b60405160208183030381529060405295505b60005b6000800160008660ff1681526020019081526020016000208460ff1681548110610b9457610b93614e1b565b5b90600052602060002090600402016003018360ff1681548110610bba57610bb9614e1b565b5b9060005260206000200154811015610e33576000610ce16000800160008860ff1681526020019081526020016000208660ff1681548110610bfe57610bfd614e1b565b5b90600052602060002090600402016002018560ff1681548110610c2457610c23614e1b565b5b906000526020600020018054610c3990614c18565b80601f0160208091040260200160405190810160405280929190818152602001828054610c6590614c18565b8015610cb25780601f10610c8757610100808354040283529160200191610cb2565b820191906000526020600020905b815481529060010190602001808311610c9557829003601f168201915b5050505050600484610cc49190614aa7565b60048086610cd29190614aa7565b610cdc91906149e9565b611a38565b90506000610cfa610cf58360006001611a38565b611b34565b90506000610d13610d0e8460016002611a38565b611b34565b9050888660ff1660188110610d2b57610d2a614e1b565b5b60200201518260ff1660188110610d4557610d44614e1b565b5b60200201518160ff1660188110610d5f57610d5e614e1b565b5b602002015115610d7157505050610e20565b6000610d808460026004611a38565b90508a81610d908560ff16611be5565b610d9c8560ff16611be5565b604051602001610daf94939291906141e1565b6040516020818303038152906040529a5060018a8860ff1660188110610dd857610dd7614e1b565b5b60200201518460ff1660188110610df257610df1614e1b565b5b60200201518360ff1660188110610e0c57610e0b614e1b565b5b602002019015159081151581525050505050505b8080610e2b90614c7b565b915050610b67565b5060008060000160008660ff1681526020019081526020016000208460ff1681548110610e6357610e62614e1b565b5b90600052602060002090600402016003018360ff1681548110610e8957610e88614e1b565b5b90600052602060002001541115610ebd5785604051602001610eab91906142bf565b60405160208183030381529060405295505b508080610ec990614cc4565b915050610999565b50508080610ede90614cc4565b915050610961565b5081604051602001610ef89190614430565b60405160208183030381529060405291508192505050919050565b3373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610f82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f799061462f565b60405180910390fd5b80610f8b611d46565b60040160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161107c9190614572565b60405180910390a35050565b6110948484843461156d565b61109e3383611573565b6110dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d4906147cf565b60405180910390fd5b6110e984848484611d73565b50505050565b606061110b826110fd611d46565b611dcf90919063ffffffff16565b61111457600080fd5b600080601e01805461112590614c18565b80601f016020809104026020016040519081016040528092919081815260200182805461115190614c18565b801561119e5780601f106111735761010080835404028352916020019161119e565b820191906000526020600020905b81548152906001019060200180831161118157829003601f168201915b50505050509050600080600201600085815260200190815260200160002080546111c790614c18565b80601f01602080910402602001604051908101604052809291908181526020018280546111f390614c18565b80156112405780601f1061121557610100808354040283529160200191611240565b820191906000526020600020905b81548152906001019060200180831161122357829003601f168201915b5050505050905060008261125386611be5565b6040516020016112649291906143bc565b6040516020818303038152906040529050600080601e0161128487611be5565b6040516020016112959291906143f6565b60405160208183030381529060405290506112ec82826112bc6112b787610940565b611def565b6112c587611f74565b6040516020016112d89493929190614325565b604051602081830303815290604052611def565b6040516020016112fc919061439a565b604051602081830303815290604052945050505050919050565b600061132283836120c2565b905092915050565b600080611335611d46565b905061134a8382611dcf90919063ffffffff16565b611389576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611380906146ef565b60405180910390fd5b80600301600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16915050919050565b505050565b816113d5611d46565b600301600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166114488361199d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006114986105b0565b905060006008015481106114ab57600080fd5b6114b43361215f565b156114be57600080fd5b60008190506114cf81336000612172565b6000600201600083815260200190815260200160002090805190602001906114f8929190612ecc565b50600160006001016000600201600084815260200190815260200160002060405161152391906142e1565b908152602001604051809103902060006101000a81548160ff02191690831515021790555061155233826122b0565b5050565b6000611568611563611d46565b612459565b905090565b50505050565b600061158f82611581611d46565b611dcf90919063ffffffff16565b6115ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c5906146af565b60405180910390fd5b60006115d98361199d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061164857508373ffffffffffffffffffffffffffffffffffffffff166116308461132a565b73ffffffffffffffffffffffffffffffffffffffff16145b80611659575061165881856120c2565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166116828261199d565b73ffffffffffffffffffffffffffffffffffffffff16146116d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116cf9061470f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611748576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173f9061460f565b60405180910390fd5b61175383838361246e565b61175e6000826113cc565b6000611768611d46565b90506117bd828260020160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061247390919063ffffffff16565b50611811828260020160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061248d90919063ffffffff16565b5061182a8284836000016124a79092919063ffffffff16565b50818373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a450505050565b60006118aa838361189b611d46565b6124dc9092919063ffffffff16565b905092915050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611923576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191a9061466f565b60405180910390fd5b61197361192e611d46565b60020160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061253a565b9050919050565b600061199682611988611d46565b61254f90919063ffffffff16565b9050919050565b6000806119bd836119ac611d46565b60000161257590919063ffffffff16565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611a2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a269061472f565b60405180910390fd5b80915050919050565b6060600084905060008484611a4d9190614b01565b67ffffffffffffffff811115611a6657611a65614e4a565b5b6040519080825280601f01601f191660200182016040528015611a985781602001600182028036833780820191505090505b50905060008590505b84811015611b2757828181518110611abc57611abb614e1b565b5b602001015160f81c60f81b828783611ad49190614b01565b81518110611ae557611ae4614e1b565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080611b1f90614c7b565b915050611aa1565b5080925050509392505050565b600080600090505b6000601f01805490508160ff161015611bda5782604051602001611b609190614105565b604051602081830303815290604052805190602001206000601f018260ff1681548110611b9057611b8f614e1b565b5b90600052602060002001604051602001611baa91906142e1565b604051602081830303815290604052805190602001201415611bcf5780915050611be0565b806001019050611b3c565b50600080fd5b919050565b60606000821415611c2d576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611d41565b600082905060005b60008214611c5f578080611c4890614c7b565b915050600a82611c589190614a76565b9150611c35565b60008167ffffffffffffffff811115611c7b57611c7a614e4a565b5b6040519080825280601f01601f191660200182016040528015611cad5781602001600182028036833780820191505090505b5090505b60008514611d3a57600182611cc69190614b01565b9150600a85611cd59190614d2e565b6030611ce191906149e9565b60f81b818381518110611cf757611cf6614e1b565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611d339190614a76565b9450611cb1565b8093505050505b919050565b6000807f3c7bf052874fa81625121783266a03507bd2cd48b16e571c01a04e8dd3fb07a690508091505090565b611d7e848484611662565b611d8a84848484612592565b611dc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc0906145cf565b60405180910390fd5b50505050565b6000611de7828460000161270890919063ffffffff16565b905092915050565b6060600082511415611e1257604051806020016040528060008152509050611f6f565b6000604051806060016040528060408152602001615dba6040913990506000600360028551611e4191906149e9565b611e4b9190614a76565b6004611e579190614aa7565b90506000602082611e6891906149e9565b67ffffffffffffffff811115611e8157611e80614e4a565b5b6040519080825280601f01601f191660200182016040528015611eb35781602001600182028036833780820191505090505b509050818152600183018586518101602084015b81831015611f2e576003830192508251603f8160121c1685015160f81b8252600182019150603f81600c1c1685015160f81b8252600182019150603f8160061c1685015160f81b8252600182019150603f811685015160f81b825260018201915050611ec7565b600389510660018114611f485760028114611f5857611f63565b613d3d60f01b6002830352611f63565b603d60f81b60018303525b50505050508093505050505b919050565b6060600060405180602001604052806000815250905060005b60068160ff161015612099576000611fc0611fbb868460ff16600186611fb39190614a3f565b60ff16611a38565b611b34565b60ff169050826000800160008460ff1681526020019081526020016000208281548110611ff057611fef614e1b565b5b90600052602060002090600402016001016000800160008560ff168152602001908152602001600020838154811061202b5761202a614e1b565b5b906000526020600020906004020160000160405160200161204e9392919061424b565b604051602081830303815290604052925060058260ff161461208d578260405160200161207b91906141bf565b60405160208183030381529060405292505b81600101915050611f8d565b50806040516020016120ab91906142f8565b604051602081830303815290604052915050919050565b60006120cc611d46565b60040160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600080823b905060008111915050919050565b60606050821061218157600080fd5b600060405180602001604052806000815250905060005b60068160ff16101561225057600060090160008154809291906121ba90614c7b565b919050555060006127104241448a8a8a6000600901546040516020016121e69796959493929190614468565b6040516020818303038152906040528051906020012060001c6122099190614d2e565b90508261221a8261ffff1684612722565b60405160200161222b92919061411c565b604051602081830303815290604052925050808061224890614cc4565b915050612198565b506000600101816040516122649190614105565b908152602001604051809103902060009054906101000a900460ff16156122a45761229c858560018661229791906149e9565b612172565b9150506122a9565b809150505b9392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612320576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612317906146cf565b60405180910390fd5b600061232a611d46565b905061233f8282611dcf90919063ffffffff16565b1561237f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612376906145ef565b60405180910390fd5b61238b6000848461246e565b6123de828260020160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061248d90919063ffffffff16565b506123f78284836000016124a79092919063ffffffff16565b50818373ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000612467826000016128b4565b9050919050565b505050565b6000612485836000018360001b6128c9565b905092915050565b600061249f836000018360001b6129db565b905092915050565b60006124d3846000018460001b8473ffffffffffffffffffffffffffffffffffffffff1660001b612a4b565b90509392505050565b6000612531828560020160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612b3790919063ffffffff16565b90509392505050565b600061254882600001612b51565b9050919050565b6000806125688385600001612b6290919063ffffffff16565b5090508091505092915050565b6000612587836000018360001b612b8e565b60001c905092915050565b60006125b38473ffffffffffffffffffffffffffffffffffffffff16612c2a565b6125c05760019050612700565b600061268063150b7a0260e01b338887876040516024016125e49493929190614504565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051806060016040528060328152602001615d88603291398773ffffffffffffffffffffffffffffffffffffffff16612c3d9092919063ffffffff16565b90506000818060200190518101906126989190613736565b90507f150b7a02000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614925050505b949350505050565b600061271a836000018360001b612c55565b905092915050565b60606000805b6000600a018460ff166014811061274257612741614e1b565b5b01805490508160ff1610156128a857600080600a018560ff166014811061276c5761276b614e1b565b5b018260ff168154811061278257612781614e1b565b5b90600052602060002090601091828204019190066002029054906101000a900461ffff1690508261ffff1686101580156127ca575080836127c391906149b1565b61ffff1686105b15612886576000601f018260ff16815481106127e9576127e8614e1b565b5b9060005260206000200180546127fe90614c18565b80601f016020809104026020016040519081016040528092919081815260200182805461282a90614c18565b80156128775780601f1061284c57610100808354040283529160200191612877565b820191906000526020600020905b81548152906001019060200180831161285a57829003601f168201915b505050505093505050506128ae565b808361289291906149b1565b92505080806128a090614cc4565b915050612728565b50600080fd5b92915050565b60006128c282600001612c78565b9050919050565b600080836001016000848152602001908152602001600020549050600081146129cf5760006001826128fb9190614b01565b9050600085600001600187600001805490506129179190614b01565b8154811061292857612927614e1b565b5b906000526020600020015490508086600001838154811061294c5761294b614e1b565b5b906000526020600020018190555060018261296791906149e9565b866001016000838152602001908152602001600020819055508560000180548061299457612993614dec565b5b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506129d5565b60009150505b92915050565b60006129e78383612c89565b612a40578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050612a45565b600090505b92915050565b6000808460010160008581526020019081526020016000205490506000811415612af257846000016040518060400160405280868152602001858152509080600181540180825580915050600190039060005260206000209060020201600090919091909150600082015181600001556020820151816001015550508460000180549050856001016000868152602001908152602001600020819055506001915050612b30565b8285600001600183612b049190614b01565b81548110612b1557612b14614e1b565b5b90600052602060002090600202016001018190555060009150505b9392505050565b6000612b468360000183612cac565b60001c905092915050565b600081600001805490509050919050565b600080600080612b758660000186612d20565b915091508160001c8160001c9350935050509250929050565b6000808360010160008481526020019081526020016000205490506000811415612bed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612be49061478f565b60405180910390fd5b83600001600182612bfe9190614b01565b81548110612c0f57612c0e614e1b565b5b90600052602060002090600202016001015491505092915050565b600080823b905060008111915050919050565b6060612c4c8484600085612daa565b90509392505050565b600080836001016000848152602001908152602001600020541415905092915050565b600081600001805490509050919050565b600080836001016000848152602001908152602001600020541415905092915050565b600081836000018054905011612cf7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cee906145af565b60405180910390fd5b826000018281548110612d0d57612d0c614e1b565b5b9060005260206000200154905092915050565b60008082846000018054905011612d6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d639061468f565b60405180910390fd5b6000846000018481548110612d8457612d83614e1b565b5b906000526020600020906002020190508060000154816001015492509250509250929050565b6060612db585612c2a565b612df4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612deb906147af565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051612e1d91906140ee565b60006040518083038185875af1925050503d8060008114612e5a576040519150601f19603f3d011682016040523d82523d6000602084013e612e5f565b606091505b50915091508115612e74578092505050612ec4565b600081511115612e875780518082602001fd5b836040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ebb919061458d565b60405180910390fd5b949350505050565b828054612ed890614c18565b90600052602060002090601f016020900481019282612efa5760008555612f41565b82601f10612f1357805160ff1916838001178555612f41565b82800160010185558215612f41579182015b82811115612f40578251825591602001919060010190612f25565b5b509050612f4e919061302d565b5090565b828054828255906000526020600020908101928215612fa1579160200282015b82811115612fa0578251829080519060200190612f90929190612ecc565b5091602001919060010190612f72565b5b509050612fae919061304a565b5090565b828054828255906000526020600020908101928215612fee579160200282015b82811115612fed578251825591602001919060010190612fd2565b5b509050612ffb919061302d565b5090565b6040518061030001604052806018905b61301761306e565b81526020019060019003908161300f5790505090565b5b8082111561304657600081600090555060010161302e565b5090565b5b8082111561306a5760008181613061919061309c565b5060010161304b565b5090565b6040518061030001604052806018905b6130866130dc565b81526020019060019003908161307e5790505090565b5080546130a890614c18565b6000825580601f106130ba57506130d9565b601f0160209004906000526020600020908101906130d8919061302d565b5b50565b604051806103000160405280601890602082028036833780820191505090505090565b600061311261310d8461482f565b61480a565b9050808382526020820190508285602086028201111561313557613134614e88565b5b60005b8581101561318357813567ffffffffffffffff81111561315b5761315a614e79565b5b808601613168898261341b565b85526020850194506020840193505050600181019050613138565b5050509392505050565b60006131a061319b8461485b565b61480a565b905080838252602082019050828560208602820111156131c3576131c2614e88565b5b60005b8581101561321157813567ffffffffffffffff8111156131e9576131e8614e79565b5b8086016131f68982613449565b855260208501945060208401935050506001810190506131c6565b5050509392505050565b600061322e61322984614887565b61480a565b9050808382526020820190508285602086028201111561325157613250614e88565b5b60005b8581101561328157816132678882613531565b845260208401935060208301925050600181019050613254565b5050509392505050565b600061329e613299846148b3565b61480a565b9050828152602081018484840111156132ba576132b9614e8d565b5b6132c5848285614bd6565b509392505050565b60006132e06132db846148e4565b61480a565b9050828152602081018484840111156132fc576132fb614e8d565b5b613307848285614bd6565b509392505050565b60008135905061331e81615d2b565b92915050565b600082601f83011261333957613338614e79565b5b81356133498482602086016130ff565b91505092915050565b600082601f83011261336757613366614e79565b5b813561337784826020860161318d565b91505092915050565b600082601f83011261339557613394614e79565b5b81356133a584826020860161321b565b91505092915050565b6000813590506133bd81615d42565b92915050565b6000813590506133d281615d59565b92915050565b6000815190506133e781615d59565b92915050565b600082601f83011261340257613401614e79565b5b813561341284826020860161328b565b91505092915050565b600082601f8301126134305761342f614e79565b5b81356134408482602086016132cd565b91505092915050565b60006080828403121561345f5761345e614e7e565b5b613469608061480a565b9050600082013567ffffffffffffffff81111561348957613488614e83565b5b6134958482850161341b565b600083015250602082013567ffffffffffffffff8111156134b9576134b8614e83565b5b6134c58482850161341b565b602083015250604082013567ffffffffffffffff8111156134e9576134e8614e83565b5b6134f584828501613324565b604083015250606082013567ffffffffffffffff81111561351957613518614e83565b5b61352584828501613380565b60608301525092915050565b60008135905061354081615d70565b92915050565b60006020828403121561355c5761355b614e97565b5b600061356a8482850161330f565b91505092915050565b6000806040838503121561358a57613589614e97565b5b60006135988582860161330f565b92505060206135a98582860161330f565b9150509250929050565b6000806000606084860312156135cc576135cb614e97565b5b60006135da8682870161330f565b93505060206135eb8682870161330f565b92505060406135fc86828701613531565b9150509250925092565b600080600080608085870312156136205761361f614e97565b5b600061362e8782880161330f565b945050602061363f8782880161330f565b935050604061365087828801613531565b925050606085013567ffffffffffffffff81111561367157613670614e92565b5b61367d878288016133ed565b91505092959194509250565b600080604083850312156136a05761369f614e97565b5b60006136ae8582860161330f565b92505060206136bf858286016133ae565b9150509250929050565b600080604083850312156136e0576136df614e97565b5b60006136ee8582860161330f565b92505060206136ff85828601613531565b9150509250929050565b60006020828403121561371f5761371e614e97565b5b600061372d848285016133c3565b91505092915050565b60006020828403121561374c5761374b614e97565b5b600061375a848285016133d8565b91505092915050565b60006020828403121561377957613778614e97565b5b600082013567ffffffffffffffff81111561379757613796614e92565b5b6137a38482850161341b565b91505092915050565b6000602082840312156137c2576137c1614e97565b5b60006137d084828501613531565b91505092915050565b600080604083850312156137f0576137ef614e97565b5b60006137fe85828601613531565b925050602083013567ffffffffffffffff81111561381f5761381e614e92565b5b61382b85828601613352565b9150509250929050565b600061384183836140b9565b60208301905092915050565b61385e61385982614b47565b614d00565b82525050565b61386d81614b35565b82525050565b61388461387f82614b35565b614cee565b82525050565b60006138958261493a565b61389f8185614968565b93506138aa83614915565b8060005b838110156138db5781516138c28882613835565b97506138cd8361495b565b9250506001810190506138ae565b5085935050505092915050565b6138f181614b59565b82525050565b600061390282614945565b61390c8185614979565b935061391c818560208601614be5565b61392581614e9c565b840191505092915050565b600061393b82614945565b613945818561498a565b9350613955818560208601614be5565b80840191505092915050565b600061396c82614950565b6139768185614995565b9350613986818560208601614be5565b61398f81614e9c565b840191505092915050565b60006139a582614950565b6139af81856149a6565b93506139bf818560208601614be5565b80840191505092915050565b600081546139d881614c18565b6139e281866149a6565b945060018216600081146139fd5760018114613a0e57613a41565b60ff19831686528186019350613a41565b613a1785614925565b60005b83811015613a3957815481890152600182019150602081019050613a1a565b838801955050505b50505092915050565b6000613a57602283614995565b9150613a6282614eba565b604082019050919050565b6000613a7a6005836149a6565b9150613a8582614f09565b600582019050919050565b6000613a9d6013836149a6565b9150613aa882614f32565b601382019050919050565b6000613ac06003836149a6565b9150613acb82614f5b565b600382019050919050565b6000613ae3603283614995565b9150613aee82614f84565b604082019050919050565b6000613b066002836149a6565b9150613b1182614fd3565b600282019050919050565b6000613b2a6103be836149a6565b9150613b3582614ffc565b6103be82019050919050565b6000613b4e601c83614995565b9150613b5982615489565b602082019050919050565b6000613b716007836149a6565b9150613b7c826154b2565b600782019050919050565b6000613b946005836149a6565b9150613b9f826154db565b600582019050919050565b6000613bb7600f836149a6565b9150613bc282615504565b600f82019050919050565b6000613bda6001836149a6565b9150613be58261552d565b600182019050919050565b6000613bfd600e836149a6565b9150613c0882615556565b600e82019050919050565b6000613c20602483614995565b9150613c2b8261557f565b604082019050919050565b6000613c43601983614995565b9150613c4e826155ce565b602082019050919050565b6000613c666026836149a6565b9150613c71826155f7565b602682019050919050565b6000613c89600f836149a6565b9150613c9482615646565b600f82019050919050565b6000613cac6005836149a6565b9150613cb78261566f565b600582019050919050565b6000613ccf603883614995565b9150613cda82615698565b604082019050919050565b6000613cf2602a83614995565b9150613cfd826156e7565b604082019050919050565b6000613d156002836149a6565b9150613d2082615736565b600282019050919050565b6000613d386009836149a6565b9150613d438261575f565b600982019050919050565b6000613d5b602283614995565b9150613d6682615788565b604082019050919050565b6000613d7e602383614995565b9150613d89826157d7565b604082019050919050565b6000613da1602083614995565b9150613dac82615826565b602082019050919050565b6000613dc46001836149a6565b9150613dcf8261584f565b600182019050919050565b6000613de7602c83614995565b9150613df282615878565b604082019050919050565b6000613e0a6022836149a6565b9150613e15826158c7565b602282019050919050565b6000613e2d6001836149a6565b9150613e3882615916565b600182019050919050565b6000613e50602983614995565b9150613e5b8261593f565b604082019050919050565b6000613e736004836149a6565b9150613e7e8261598e565b600482019050919050565b6000613e96600a836149a6565b9150613ea1826159b7565b600a82019050919050565b6000613eb9600b836149a6565b9150613ec4826159e0565b600b82019050919050565b6000613edc601583614995565b9150613ee782615a09565b602082019050919050565b6000613eff600a83614995565b9150613f0a82615a32565b602082019050919050565b6000613f226001836149a6565b9150613f2d82615a5b565b600182019050919050565b6000613f45602183614995565b9150613f5082615a84565b604082019050919050565b6000613f68600d836149a6565b9150613f7382615ad3565b600d82019050919050565b6000613f8b601d836149a6565b9150613f9682615afc565b601d82019050919050565b6000613fae6000836149a6565b9150613fb982615b25565b600082019050919050565b6000613fd16016836149a6565b9150613fdc82615b28565b601682019050919050565b6000613ff4606a836149a6565b9150613fff82615b51565b606a82019050919050565b6000614017601e83614995565b915061402282615bec565b602082019050919050565b600061403a6033836149a6565b915061404582615c15565b603382019050919050565b600061405d602b83614995565b915061406882615c64565b604082019050919050565b60006140806006836149a6565b915061408b82615cb3565b600682019050919050565b60006140a3603083614995565b91506140ae82615cdc565b604082019050919050565b6140c281614bbf565b82525050565b6140d181614bbf565b82525050565b6140e86140e382614bbf565b614d24565b82525050565b60006140fa8284613930565b915081905092915050565b6000614111828461399a565b915081905092915050565b6000614128828561399a565b9150614134828461399a565b91508190509392505050565b600061414c828661399a565b915061415782613ab3565b915061416282613f5b565b915061416e82856139cb565b915061417982613dfd565b9150614185828461399a565b91506141908261402d565b9150819050949350505050565b60006141a9828461399a565b91506141b482613b64565b915081905092915050565b60006141cb828461399a565b91506141d682613bcd565b915081905092915050565b60006141ed828761399a565b91506141f882613bf0565b9150614204828661399a565b915061420f82613b87565b915061421b828561399a565b915061422682613a6d565b9150614232828461399a565b915061423d82613d2b565b915081905095945050505050565b6000614257828661399a565b915061426282613c7c565b915061426e82856139cb565b915061427982613eac565b915061428582846139cb565b915061429082613d08565b9150819050949350505050565b60006142a9828461399a565b91506142b482613c9f565b915081905092915050565b60006142cb828461399a565b91506142d682613e66565b915081905092915050565b60006142ed82846139cb565b915081905092915050565b600061430382613e20565b915061430f828461399a565b915061431a82613f15565b915081905092915050565b600061433082613e89565b915061433c828761399a565b915061434782613a90565b9150614353828661399a565b915061435e82613c59565b915061436a828561399a565b915061437582613baa565b9150614381828461399a565b915061438c82613db7565b915081905095945050505050565b60006143a582613f7e565b91506143b1828461399a565b915081905092915050565b60006143c782613fa1565b91506143d3828561399a565b91506143de82613af9565b91506143ea828461399a565b91508190509392505050565b600061440182613fc4565b915061440d82856139cb565b915061441882613af9565b9150614424828461399a565b91508190509392505050565b600061443b82613fe7565b9150614447828461399a565b915061445282613b1c565b915061445d82614073565b915081905092915050565b6000614474828a6140d7565b602082019150614484828961384d565b60148201915061449482886140d7565b6020820191506144a482876140d7565b6020820191506144b48286613873565b6014820191506144c482856140d7565b6020820191506144d482846140d7565b60208201915081905098975050505050505050565b60006020820190506144fe6000830184613864565b92915050565b60006080820190506145196000830187613864565b6145266020830186613864565b61453360408301856140c8565b818103606083015261454581846138f7565b905095945050505050565b6000602082019050818103600083015261456a818461388a565b905092915050565b600060208201905061458760008301846138e8565b92915050565b600060208201905081810360008301526145a78184613961565b905092915050565b600060208201905081810360008301526145c881613a4a565b9050919050565b600060208201905081810360008301526145e881613ad6565b9050919050565b6000602082019050818103600083015261460881613b41565b9050919050565b6000602082019050818103600083015261462881613c13565b9050919050565b6000602082019050818103600083015261464881613c36565b9050919050565b6000602082019050818103600083015261466881613cc2565b9050919050565b6000602082019050818103600083015261468881613ce5565b9050919050565b600060208201905081810360008301526146a881613d4e565b9050919050565b600060208201905081810360008301526146c881613d71565b9050919050565b600060208201905081810360008301526146e881613d94565b9050919050565b6000602082019050818103600083015261470881613dda565b9050919050565b6000602082019050818103600083015261472881613e43565b9050919050565b6000602082019050818103600083015261474881613ecf565b9050919050565b6000602082019050818103600083015261476881613ef2565b9050919050565b6000602082019050818103600083015261478881613f38565b9050919050565b600060208201905081810360008301526147a88161400a565b9050919050565b600060208201905081810360008301526147c881614050565b9050919050565b600060208201905081810360008301526147e881614096565b9050919050565b600060208201905061480460008301846140c8565b92915050565b6000614814614825565b90506148208282614c4a565b919050565b6000604051905090565b600067ffffffffffffffff82111561484a57614849614e4a565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561487657614875614e4a565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156148a2576148a1614e4a565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156148ce576148cd614e4a565b5b6148d782614e9c565b9050602081019050919050565b600067ffffffffffffffff8211156148ff576148fe614e4a565b5b61490882614e9c565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006149bc82614b91565b91506149c783614b91565b92508261ffff038211156149de576149dd614d5f565b5b828201905092915050565b60006149f482614bbf565b91506149ff83614bbf565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614a3457614a33614d5f565b5b828201905092915050565b6000614a4a82614bc9565b9150614a5583614bc9565b92508260ff03821115614a6b57614a6a614d5f565b5b828201905092915050565b6000614a8182614bbf565b9150614a8c83614bbf565b925082614a9c57614a9b614d8e565b5b828204905092915050565b6000614ab282614bbf565b9150614abd83614bbf565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614af657614af5614d5f565b5b828202905092915050565b6000614b0c82614bbf565b9150614b1783614bbf565b925082821015614b2a57614b29614d5f565b5b828203905092915050565b6000614b4082614b9f565b9050919050565b6000614b5282614b9f565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015614c03578082015181840152602081019050614be8565b83811115614c12576000848401525b50505050565b60006002820490506001821680614c3057607f821691505b60208210811415614c4457614c43614dbd565b5b50919050565b614c5382614e9c565b810181811067ffffffffffffffff82111715614c7257614c71614e4a565b5b80604052505050565b6000614c8682614bbf565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614cb957614cb8614d5f565b5b600182019050919050565b6000614ccf82614bc9565b915060ff821415614ce357614ce2614d5f565b5b600182019050919050565b6000614cf982614d12565b9050919050565b6000614d0b82614d12565b9050919050565b6000614d1d82614ead565b9050919050565b6000819050919050565b6000614d3982614bbf565b9150614d4483614bbf565b925082614d5457614d53614d8e565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b7f2720793d27000000000000000000000000000000000000000000000000000000600082015250565b7f222c20226465736372697074696f6e223a202200000000000000000000000000600082015250565b7f3c673e0000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f2023000000000000000000000000000000000000000000000000000000000000600082015250565b7f3c7374796c653e726563747b77696474683a3170783b6865696768743a31707860008201527f3b7d237376677b73686170652d72656e646572696e673a20637269737065646760208201527f65733b7d2e6330307b66696c6c3a233030303030307d2e6330317b66696c6c3a60408201527f233232323033347d2e6330327b66696c6c3a233435323833637d2e6330337b6660608201527f696c6c3a233636333933317d2e6330347b66696c6c3a233866353633627d2e6360808201527f30357b66696c6c3a236466373132367d2e6330367b66696c6c3a23643961303660a08201527f367d2e6330377b66696c6c3a236565633339617d2e6330387b66696c6c3a236660c08201527f62663233367d2e6330397b66696c6c3a233939653535307d2e6331307b66696c60e08201527f6c3a233661626533307d2e6331317b66696c6c3a233337393436657d2e6331326101008201527f7b66696c6c3a233462363932667d2e6331337b66696c6c3a233532346232347d6101208201527f2e6331347b66696c6c3a233332336333397d2e6331357b66696c6c3a233366336101408201527f6637347d2e6331367b66696c6c3a233330363038327d2e6331377b66696c6c3a6101608201527f233562366565317d2e6331387b66696c6c3a233633396266667d2e6331397b666101808201527f696c6c3a233566636465347d2e6332307b66696c6c3a236362646266637d2e636101a08201527f32317b66696c6c3a236666666666667d2e6332327b66696c6c3a2339626164626101c08201527f377d2e6332337b66696c6c3a233834376538377d2e6332347b66696c6c3a23366101e08201527f39366136617d2e6332357b66696c6c3a233539353635327d2e6332367b66696c6102008201527f6c3a233736343238617d2e6332377b66696c6c3a236163333233327d2e6332386102208201527f7b66696c6c3a236439353736337d2e6332397b66696c6c3a236437376262617d6102408201527f2e6333307b66696c6c3a233866393734617d2e6333317b66696c6c3a233861366102608201527f6633307d2e6333327b66696c6c3a233831343834387d2e6333337b66696c6c3a6102808201527f233964346134617d2e6333347b66696c6c3a233430333634307d2e6333357b666102a08201527f696c6c3a233836383238327d2e6333367b66696c6c3a233432343035387d2e636102c08201527f33377b66696c6c3a233266333135617d2e6333387b66696c6c3a2333343337386102e08201527f627d2e6333397b66696c6c3a236463643533307d2e6334307b66696c6c3a23666103008201527f65666666347d2e6334317b66696c6c3a236533653165317d2e6334327b66696c6103208201527f6c3a233633343436347d2e6334337b66696c6c3a233764343838317d2e6334346103408201527f7b66696c6c3a236235343962637d2e6334357b66696c6c3a233334336366667d6103608201527f2e6334367b66696c6c3a236636643935337d2e6334377b66696c6c3a236264386103808201527f3232387d2e6334387b66696c6c3a236562623333377d3c2f7374796c653e00006103a082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f696e6c696e653b00000000000000000000000000000000000000000000000000600082015250565b7f2720783d27000000000000000000000000000000000000000000000000000000600082015250565b7f222c2261747472696275746573223a0000000000000000000000000000000000600082015250565b7f2c00000000000000000000000000000000000000000000000000000000000000600082015250565b7f3c7265637420636c6173733d2763000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f222c22696d616765223a2022646174613a696d6167652f7376672b786d6c3b6260008201527f61736536342c0000000000000000000000000000000000000000000000000000602082015250565b7f7b2274726169745f74797065223a220000000000000000000000000000000000600082015250565b7f6e6f6e653b000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b7f273e3c2f726563743e0000000000000000000000000000000000000000000000600082015250565b7f456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20717565727920666f72206e6f6e6578697374656e7420746f60008201527f6b656e0000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f7d00000000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f27206174747269627574654e616d653d27646973706c6179272076616c75657360008201527f3d27000000000000000000000000000000000000000000000000000000000000602082015250565b7f5b00000000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f3c2f673e00000000000000000000000000000000000000000000000000000000600082015250565b7f7b226e616d65223a202200000000000000000000000000000000000000000000600082015250565b7f222c2276616c7565223a22000000000000000000000000000000000000000000600082015250565b7f4552433732313a20696e76616c6964206f776e65720000000000000000000000600082015250565b7f6f6e6c79206f776e657200000000000000000000000000000000000000000000600082015250565b7f5d00000000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f3c616e696d6174652069643d2700000000000000000000000000000000000000600082015250565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b50565b7f53746f7265642031303025206f6e2d636861696e2e2000000000000000000000600082015250565b7f3c7376672069643d227376672220786d6c6e733d22687474703a2f2f7777772e60008201527f77332e6f72672f323030302f737667222070726573657276654173706563745260208201527f6174696f3d22784d696e594d696e206d656574222076696577426f783d22302060408201527f30203234203234223e2000000000000000000000000000000000000000000000606082015250565b7f456e756d657261626c654d61703a206e6f6e6578697374656e74206b65790000600082015250565b7f2720726570656174436f756e743d27696e646566696e69746527206475723d2760008201527f302e3435732720626567696e3d273073272f3e00000000000000000000000000602082015250565b7f416464726573735574696c733a2066756e6374696f6e2063616c6c20746f206e60008201527f6f6e2d636f6e7472616374000000000000000000000000000000000000000000602082015250565b7f3c2f7376673e0000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206f7220617070726f76656400000000000000000000000000000000602082015250565b615d3481614b35565b8114615d3f57600080fd5b50565b615d4b81614b59565b8114615d5657600080fd5b50565b615d6281614b65565b8114615d6d57600080fd5b50565b615d7981614bbf565b8114615d8457600080fd5b5056fe4552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220b1e9c9932f8db755ce1d54f0f76c9e53417cbb32e9d6d84486132579f4ee843764736f6c63430008060033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.