Contract 0x600a4446094C341693C415E6743567b9bfc8a4A8 2

 
 
Txn Hash
Method
Block
From
To
Value
0xa3b3659444dfdb01f269091a4c2ced3e8a06932b5bf7e8a4441bbb4b52527e47Set Approval For...160507642022-11-26 1:05:232 days 11 hrs ago0x4d5414a2cb4233c365a315cdf2cc1a5a605b6278 IN  0x600a4446094c341693c415e6743567b9bfc8a4a80 Ether0.00049373 10.60482318
0x1be511029f5868a8ecbfe7e211aa696746f30f134575cb06f9f2e9b9719d2f87Set Approval For...157378382022-10-13 7:55:3546 days 4 hrs agoENS Name soy.eth IN  0x600a4446094c341693c415e6743567b9bfc8a4a80 Ether0.00034281 13.86230384
0x0fd588ff49d3f35c1e3104f49455d08fd2bc8269c247c839874abe57ddfa1386Set Approval For...157378382022-10-13 7:55:3546 days 4 hrs agoENS Name soy.eth IN  0x600a4446094c341693c415e6743567b9bfc8a4a80 Ether0.00034281 13.86230384
0x51ec41b4f3b2bc94f227e24d8b1a2549f61ecd661e2cdf0d992f961e305cb178Set Approval For...156751542022-10-04 13:45:5954 days 23 hrs ago0x7911670881a81f8410d06053d7b3c237ce77b9b4 IN  0x600a4446094c341693c415e6743567b9bfc8a4a80 Ether0.00079169 17.00453199
0xfb6a35e0639292b9b513ddbd7883ff289128afa941705e426d7b85da1341152cSafe Transfer Fr...156135402022-09-25 23:02:1163 days 13 hrs agoENS Name vault.shaggymagic.eth IN  0x600a4446094c341693c415e6743567b9bfc8a4a80 Ether0.00038385 6.2094054
0x8b46a37ed11d3e56f178170e5b773cc2f518bf95e8247d1b2998e9b226e8f329Set Approval For...154922232022-09-07 19:46:5581 days 17 hrs agoENS Name thomascrown.eth IN  0x600a4446094c341693c415e6743567b9bfc8a4a80 Ether0.00123067 26.43320413
0xa8844a772353d3ef5c4d8c2847a3264c59e18269c6523c7b53c97e557e9827daSet Approval For...154879932022-09-07 3:26:5382 days 9 hrs agoENS Name boroghor.eth IN  0x600a4446094c341693c415e6743567b9bfc8a4a80 Ether0.00079473 17.06972258
0x04de3a8294206dcc3e8dcabe95f785efc779329d70d37fc738667f53601006d6Safe Transfer Fr...154602672022-09-02 16:42:1886 days 20 hrs ago0xcd5b38549139e4cf0d9322c4f1c802f89901227b IN  0x600a4446094c341693c415e6743567b9bfc8a4a80 Ether0.0013434 30.0416345
0x2f853908b2cef0ec22d53ed865b0cc596931a2b09652900d372267aacf80ad46Safe Transfer Fr...154602642022-09-02 16:41:4886 days 20 hrs ago0xcd5b38549139e4cf0d9322c4f1c802f89901227b IN  0x600a4446094c341693c415e6743567b9bfc8a4a80 Ether0.0021275 31.93588167
0xb20644821dbdfb118faf2871cd720956a22a4e7f50d5c5fb7a131d591681cafbSet Approval For...153262882022-08-12 9:40:27108 days 3 hrs ago0x0491914687bab1f3606e2a77ed890ee3ac392ecf IN  0x600a4446094c341693c415e6743567b9bfc8a4a80 Ether0.00036138 7.75007769
0xd89581c0f1cff55acf4b830624ed0438b01563c378e604faf1931ead5dae1b44Set Approval For...153131172022-08-10 7:48:03110 days 5 hrs ago0x5fdd94014e63664ed3053c869515f5a82544db2b IN  0x600a4446094c341693c415e6743567b9bfc8a4a80 Ether0.00072889 15.65563201
0x62b7d725107df114d307d30c9d1276d9653d1d0905da37c93c5ed051a96092bfSet Approval For...152310782022-07-28 12:43:04123 days 8 mins agoENS Name ckvault.eth IN  0x600a4446094c341693c415e6743567b9bfc8a4a80 Ether0.00092147 19.79197912
0xa5ed3257b37757a4d7186f3fe5a1f6576e0e0adf800e9243a34f35c2f59ddc80Transfer From151243332022-07-11 23:28:52139 days 13 hrs ago0x6cc044b1f4685a1a518406e1eb2abe1dd058241c IN  0x600a4446094c341693c415e6743567b9bfc8a4a80 Ether0.00124631 29.71741875
0x17d58ef2ac878f65796dd8b007fba5c1ab5634100c65c4254d0e17a54cea45a7Transfer From151243172022-07-11 23:26:20139 days 13 hrs ago0x6cc044b1f4685a1a518406e1eb2abe1dd058241c IN  0x600a4446094c341693c415e6743567b9bfc8a4a80 Ether0.0027111 42.46787568
0x3e72564262af259b4635a3f052072aa033df05a08503c1f2cc457ce4719a9b7cTransfer From151053752022-07-09 1:05:24142 days 11 hrs agoENS Name shaggymagic.eth IN  0x600a4446094c341693c415e6743567b9bfc8a4a80 Ether0.00083016 14.06135833
0x85b2b4a64b89e655abc61bd4037459407351013daf8059471bba5066f4d43b05Transfer From150076922022-06-22 12:44:34159 days 6 mins ago0x6cc044b1f4685a1a518406e1eb2abe1dd058241c IN  0x600a4446094c341693c415e6743567b9bfc8a4a80 Ether0.00074227 28.98156287
0xefcef7bb7fb7512a293e93cc48eccdaad348da7381038dafbba90ab491cee426Transfer From148449092022-05-26 0:24:27186 days 12 hrs ago0x6cc044b1f4685a1a518406e1eb2abe1dd058241c IN  0x600a4446094c341693c415e6743567b9bfc8a4a80 Ether0.00070832 27.65595629
0xa8e985758f061a3122d0751b84555715e8d4ee153ce42a4e831b5a97feceb72eTransfer From148448972022-05-26 0:22:22186 days 12 hrs ago0x6cc044b1f4685a1a518406e1eb2abe1dd058241c IN  0x600a4446094c341693c415e6743567b9bfc8a4a80 Ether0.00084383 32.94672486
0x52714fa41e474e3010ea550b96f7f9ee626d3ba386627cbef15e0da9e064757dTransfer From148448952022-05-26 0:21:57186 days 12 hrs ago0x6cc044b1f4685a1a518406e1eb2abe1dd058241c IN  0x600a4446094c341693c415e6743567b9bfc8a4a80 Ether0.00080901 31.58728232
0xfd2775bf854adc6a70eaf4102129c5a1626a082a9d381750f50f4a764d43c736Transfer From148444612022-05-25 22:33:35186 days 14 hrs ago0x6cc044b1f4685a1a518406e1eb2abe1dd058241c IN  0x600a4446094c341693c415e6743567b9bfc8a4a80 Ether0.00088682 34.62520965
0x24b42e42059345e9fdeabf649b575d0660410f98b3e8a3308e4e5dfe33cc8a4cTransfer From148444602022-05-25 22:33:32186 days 14 hrs ago0x6cc044b1f4685a1a518406e1eb2abe1dd058241c IN  0x600a4446094c341693c415e6743567b9bfc8a4a80 Ether0.0008336 32.54736342
0x6c6a93b68f55d174f187750d5ad2334de25623d9d1b5f05b9ea1d96453cdccb5Set Approval For...147414982022-05-09 8:54:48203 days 3 hrs agoENS Name pentacle.eth IN  0x600a4446094c341693c415e6743567b9bfc8a4a80 Ether0.00133559 28.63497641
0xdaf0c03c12c85ba6d9f0b386bf17422a84cb61a1d1a5b98f5cfcc05b2c925abbSet Approval For...144685782022-03-27 13:45:38245 days 23 hrs ago0xb63a5c5710f06e111fa14ac82da2183c5102b504 IN  0x600a4446094c341693c415e6743567b9bfc8a4a80 Ether0.00089718 19.23546288
0x57a2d12749bb87aba77aa104290d9fe2cea8a89b1f3b37f28af21887d5c384b5Set Approval For...144265772022-03-21 0:43:57252 days 12 hrs agoENS Name pentacle.eth IN  0x600a4446094c341693c415e6743567b9bfc8a4a80 Ether0.00136438 29.25230795
0x8239d60f80bf63269a8d910d66f3a317db9ef55c14d9675a518ca89f1464ace5Safe Transfer Fr...144056542022-03-17 18:38:10255 days 18 hrs ago0x0cacc6104d8cd9d7b2850b4f35c65c1ecdeece03 IN  0x600a4446094c341693c415e6743567b9bfc8a4a80 Ether0.00387318 58.14017449
[ Download CSV Export 
Latest 2 internal transactions
Parent Txn Hash Block From To Value
0x1062774079af93fb3428ec606d865887514c8d8801e277f6874b8dd629cfbe93130823652021-08-23 15:30:52461 days 21 hrs ago 0x600a4446094c341693c415e6743567b9bfc8a4a80xaf69610ea9ddc95883f97a6a3171d52165b69b035.6 Ether
0x3c6b61aa8b7de5476e49ab097b03e4b05def6c5b1346362e0e0b145b42afeb27127232332021-06-28 15:12:00517 days 21 hrs ago 0x737779978a49216a15c4d7a2a4c62dc492223337 0x600a4446094c341693c415e6743567b9bfc8a4a80.05 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AnchorCertificates

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

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

pragma solidity ^0.8.0;

import "./ERC721.sol";
import "./utils/Base64.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract AnchorCertificates is ERC721 {

    // todo, change to UF specific owner.
    address public owner = 0xaF69610ea9ddc95883f97a6a3171d52165b69B03; // for OpenSea storefront integration. Doesn't do anything in-contract.
    address payable public collector; // Untitled Frontier collection address

    uint256 public defaultCertificatesSupply;
    uint256 public deluxeCertificatesSupply;

    // minting time
    uint256 public startDate;
    uint256 public endDate;

    struct Certificate {
        uint256 nr;
        address sponsored;
    }

    // tokenId => Certificate
    mapping(uint256 => Certificate) public certificates;

    // 16 palettes
    string[4][16] palette = [
        ["#eca3f5", "#fdbaf9", "#b0efeb", "#edffa9"],
        ["#75cfb8", "#bbdfc8", "#f0e5d8", "#ffc478"],
        ["#ffab73", "#ffd384", "#fff9b0", "#ffaec0"],
        ["#94b4a4", "#d2f5e3", "#e5c5b5", "#f4d9c6"],
        ["#f4f9f9", "#ccf2f4", "#a4ebf3", "#aaaaaa"],
        ["#caf7e3", "#edffec", "#f6dfeb", "#e4bad4"],
        ["#f4f9f9", "#f1d1d0", "#fbaccc", "#f875aa"],
        ["#fdffbc", "#ffeebb", "#ffdcb8", "#ffc1b6"],
        ["#f0e4d7", "#f5c0c0", "#ff7171", "#9fd8df"],
        ["#e4fbff", "#b8b5ff", "#7868e6", "#edeef7"],
        ["#ffcb91", "#ffefa1", "#94ebcd", "#6ddccf"],
        ["#bedcfa", "#98acf8", "#b088f9", "#da9ff9"],
        ["#bce6eb", "#fdcfdf", "#fbbedf", "#fca3cc"],
        ["#ff75a0", "#fce38a", "#eaffd0", "#95e1d3"],
        ["#fbe0c4", "#8ab6d6", "#2978b5", "#0061a8"],
        ["#dddddd", "#f9f3f3", "#f7d9d9", "#f25287"]
    ];

    string[64] reasons = [
        "BUILD",
        "TRAIN",
        "SEE",
        "DREAM",
        "LIVE",
        "DANCE",
        "HOPE",
        "ARCHITECT",
        "EXPLORE",
        "EAT",
        "TASTE",
        "SMELL",
        "RUN",
        "BE",
        "MEANDER",
        "WALK",
        "LEAVE",
        "LOVE",
        "REMINISCE",
        "GIVE",
        "ASCEND",
        "MEET",
        "LEARN",
        "ENCOMPASS",
        "MEDITATE",
        "FIND",
        "SEEK",
        "LAUGH",
        "LISTEN",
        "FEEL",
        "TOUCH",
        "FORGIVE",
        "ATONE",
        "ACCEPT",
        "PLAY",
        "SING",
        "DRIVE",
        "CLIMB",
        "PAINT",
        "CODE",
        "PONDER",
        "SLEEP",
        "FLY",
        "CREATE",
        "WRITE",
        "DIRECT",
        "ESCAPE", 
        "FALL",
        "FLOURISH",
        "JAM",
        "IMPROVISE",
        "JUMP",
        "TREAT",
        "GIFT",
        "EXIT",
        "MIX",
        "SAIL",
        "MAKE",
        "SOLVE",
        "SEARCH",
        "THINK",
        "RESEARCH",
        "ADVANCE",
        "REASON"
    ];

    // Skyscraper Barcode
    struct Skyscraper {
        string h; // height
        string a1; // dash array #1
        string a2; // dash array #2
        string a3; // dash array #3
    }
    
    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor (string memory name_, string memory symbol_, address payable collector_, uint256 startDate_, uint256 endDate_) ERC721(name_, symbol_) {
        collector = collector_;
        startDate = startDate_;
        endDate = endDate_;
    }

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

        string memory certificateType = "Default";
        if(certificates[tokenId].sponsored != 0x0000000000000000000000000000000000000000) {
            certificateType = "Deluxe";
        }

        string memory name = string(abi.encodePacked(certificateType, ' Anchor Certificate #',toString(certificates[tokenId].nr)));
        string memory description = "Anchor City Certificate";
        string memory image = generateBase64Image(tokenId);

        return string(
            abi.encodePacked(
                'data:application/json;base64,',
                Base64.encode(
                    bytes(
                        abi.encodePacked(
                            '{"name":"', 
                            name,
                            '", "description":"', 
                            description,
                            '", "image": "', 
                            'data:image/svg+xml;base64,', 
                            image,
                            '"}'
                        )
                    )
                )
            )
        );
    }

    function generateBase64Image(uint256 tokenId) public view returns (string memory) {
        return Base64.encode(bytes(generateImage(tokenId)));
    }

    function generateImage(uint256 tokenId) public view returns (string memory) {
        bytes memory hash = abi.encodePacked(bytes32(tokenId));
        uint256 pIndex = toUint8(hash,0)/16; // 16 palettes
        uint256 rIndex = toUint8(hash,1)/4; // 64 reasons

        /* this is broken into functions to avoid stack too deep errors */
        string memory paletteSection = generatePaletteSection(tokenId, pIndex);
        string memory skyscraper = generateSkyscrapers(hash, pIndex);

        string memory class = 'DF'; // DF for Default
        if(certificates[tokenId].sponsored != 0x0000000000000000000000000000000000000000) {
            class = 'DX'; // DX for deluxe
        }

        return string(
            abi.encodePacked(
                '<svg class="svgBody" width="300" height="300" viewBox="0 0 300 300" xmlns="http://www.w3.org/2000/svg">',
                paletteSection,
                skyscraper,
                '<text x="215" y="80" class="small">ANCHOR CITY</text>',
                '<text x="15" y="80" class="medium">EDITION> ',class,'1</text>',
                '<text x="15" y="100" class="medium">ID> ',toString(certificates[tokenId].nr),'</text>',
                '<text x="15" y="120" class="medium">REASON:</text>',
                '<rect x="15" y="125" width="205" height="40" style="fill:white;opacity:0.5"/>',
                '<text x="15" y="140" class="medium">TO ',reasons[rIndex],'</text>',
                '<text x="15" y="190" class="small">SPONSORED BY:</text>',
                '<text x="15" y="205" style="font-size:8px">',toHexString(uint160(certificates[tokenId].sponsored), 20),'</text>',
                '<text x="15" y="230" class="tiny">Under Section 1.C of the Uploaded Minds And Human</text>',
                '<text x="15" y="240" class="tiny">Coexistence Pact: The Bearer Is Re-Entitled To The Freedom</text>',
                '<text x="15" y="250" class="tiny">of Earth. If Sponsored, Under Section 6.F: The Bearer</text>',
                '<text x="15" y="260" class="tiny">Has Immediate Access To The Inner Bandwidth Wells.</text>',
                '<text x="15" y="270" class="tiny">Under Section 9.A: If Destroyed, Bearer Will Be Delisted.</text>',
                '<style>.svgBody {font-family: "Courier New" } .tiny {font-size:6px; } .small {font-size: 12px;}.medium {font-size: 18px;}</style>',
                '</svg>'
            )
        );
    }

    function generatePaletteSection(uint256 tokenId, uint256 pIndex) internal view returns (string memory) {
        return string(abi.encodePacked(
                '<rect width="300" height="300" rx="10" style="fill:',palette[pIndex][0],'" />',
                '<rect y="205" width="300" height="75" rx="10" style="fill:',palette[pIndex][3],'" />',
                '<rect y="60" width="300" height="115" style="fill:',palette[pIndex][1],'"/>',
                '<rect y="175" width="300" height="40" style="fill:',palette[pIndex][2],'" />',
                '<text x="15" y="25" class="medium">ANCHOR CERTIFICATE</text>',
                '<text x="17" y="50" class="small" opacity="0.5">',substring(toString(tokenId),0,24),'</text>',
                '<circle cx="255" cy="30" r="20" stroke="white" fill="transparent" stroke-width="5" opacity="0.7"/>',
                '<path d="M 230 55 l 30 -40" stroke="',palette[pIndex][3],'" stroke-width="5"/>',
                '<path d="M 280 55 l -30 -40" stroke="',palette[pIndex][3],'" stroke-width="5"/>',
                '<path d="M 230 55 q 25 -30 50 0" stroke="',palette[pIndex][3],'" stroke-width="5" fill="none" />'
            )
        );
    }

    function generateSkyscraper(bytes memory hash, uint256 i) internal pure returns (Skyscraper memory skyscraper) {
        skyscraper.h = toString(90 + (toUint8(hash,i)/4)); // 64
        skyscraper.a1 = toString(toUint8(hash,i+1)/16); // 16
        skyscraper.a2 = toString(toUint8(hash,i+2)/16); // 16
        skyscraper.a3 = toString(toUint8(hash,i+3)/16); // 16
    }

    function generateSkyscraperSVG(Skyscraper memory skyscraper, string memory x, uint256 pIndex, uint256 p) internal view returns (string memory) {
        return string(abi.encodePacked(
            '<line x1="',x,'" y1="',skyscraper.h,'" x2="',x,'" y2="300" stroke="',palette[pIndex][p],'" stroke-width="10" stroke-dasharray="',skyscraper.a1,' ',skyscraper.a2,' ',skyscraper.a3,'"/>'
        ));
    }

    function generateSkyscrapers(bytes memory hash, uint256 pIndex) internal view returns (string memory) {
        Skyscraper memory sky1 = generateSkyscraper(hash,2);
        Skyscraper memory sky2 = generateSkyscraper(hash,6);
        Skyscraper memory sky3 = generateSkyscraper(hash,10);
        Skyscraper memory sky4 = generateSkyscraper(hash,14);
        Skyscraper memory sky5 = generateSkyscraper(hash,18);

        string memory sky2svg = generateSkyscraperSVG(sky2, "245", pIndex, 2);
        string memory sky3svg = generateSkyscraperSVG(sky3, "255", pIndex, 0);
        string memory sky4svg = generateSkyscraperSVG(sky4, "265", pIndex, 3);

        return string(
            abi.encodePacked(
                '<line x1="235" y1="',sky1.h,'" x2="235" y2="300" stroke="white" stroke-width="10" stroke-dasharray="',sky1.a1,' ',sky1.a2,' ',sky1.a3,'"/>',
                sky2svg,
                sky3svg,
                sky4svg,
                '<line x1="275" y1="',sky5.h,'" x2="275" y2="300" stroke="black" stroke-width="10" stroke-dasharray="',sky5.a1,' ',sky5.a2,' ',sky5.a3,'"/>'
            )
        );
    }

    function mintCertificate() public payable returns (uint256 tokenId) {
        require(block.timestamp > startDate, "NOT_STARTED");
        require(block.timestamp < endDate, "ENDED");
        require(msg.value >= 0.01 ether, 'MORE ETH NEEDED'); //~$20

        Certificate memory certificate;
        
        if(msg.value >= 0.05 ether) { //~$100
            deluxeCertificatesSupply += 1;
            require(deluxeCertificatesSupply <= 100, "MAX_DX_REACHED_100");
            certificate.nr = deluxeCertificatesSupply;
            certificate.sponsored = msg.sender;
        } else { // don't need to check ETH amount here since it is checked in the require above
            defaultCertificatesSupply += 1;
            certificate.nr = defaultCertificatesSupply;
        }

        tokenId = uint(keccak256(abi.encodePacked(block.timestamp, msg.sender)));
        certificates[tokenId] = certificate;

        super._mint(msg.sender, tokenId);
    }

    function withdrawETH() public {
        require(msg.sender == collector, "NOT_COLLECTOR");
        collector.transfer(address(this).balance);
    }

    // GENERIC helpers

    // helper function for generation
    // from: https://github.com/GNSPS/solidity-bytes-utils/blob/master/contracts/BytesLib.sol 
    function toUint8(bytes memory _bytes, uint256 _start) internal pure returns (uint8) {
        require(_start + 1 >= _start, "toUint8_overflow");
        require(_bytes.length >= _start + 1 , "toUint8_outOfBounds");
        uint8 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x1), _start))
        }
        return tempUint;
    }

    // from: https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/master/contracts/utils/Strings.sol
    /**
     * @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);
    }

    bytes16 private constant _ALPHABET = "0123456789abcdef";

    /**
     * @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] = _ALPHABET[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "HEX_L");
        return string(buffer);
    }

    // from: https://ethereum.stackexchange.com/questions/31457/substring-in-solidity/31470
    function substring(string memory str, uint startIndex, uint endIndex) internal pure returns (string memory) {
        bytes memory strBytes = bytes(str);
        bytes memory result = new bytes(endIndex-startIndex);
        for(uint i = startIndex; i < endIndex; i++) {
            result[i-startIndex] = strBytes[i];
        }
        return string(result);
    }
}

File 2 of 10 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./interfaces/IERC721.sol";
import "./interfaces/IERC721Receiver.sol";
import "./interfaces/IERC721Metadata.sol";
import "./utils/Address.sol";
// import "../../utils/Context.sol";
import "./utils/Strings.sol";
import "./ERC165.sol";

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        require(msg.sender == owner || isApprovedForAll(owner, msg.sender),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

        _operatorApprovals[msg.sender][operator] = approved;
        emit ApprovalForAll(msg.sender, operator, approved);
    }

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual {
        _mint(to, tokenId);
        require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

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

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

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

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

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

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

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

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

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

        // _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data)
        private returns (bool)
    {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(msg.sender, from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    // solhint-disable-next-line no-inline-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    // modified from ERC721 template:
    // removed BeforeTokenTransfer
}

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

/// @title Base64
/// @author Brecht Devos - <[email protected]>
/// @notice Provides a function for encoding some bytes in base64
library Base64 {
    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;
    }
}

File 4 of 10 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

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

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

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

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

    /**
      * @dev Safely transfers `tokenId` token from `from` to `to`.
      *
      * Requirements:
      *
      * - `from` cannot be the zero address.
      * - `to` cannot be the zero address.
      * - `tokenId` token must exist and be owned by `from`.
      * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
      * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
      *
      * Emits a {Transfer} event.
      */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;
}

File 5 of 10 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4);
}

File 6 of 10 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {

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

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

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

File 7 of 10 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 8 of 10 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant alphabet = "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] = alphabet[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

}

File 9 of 10 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./interfaces/IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"address payable","name":"collector_","type":"address"},{"internalType":"uint256","name":"startDate_","type":"uint256"},{"internalType":"uint256","name":"endDate_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"certificates","outputs":[{"internalType":"uint256","name":"nr","type":"uint256"},{"internalType":"address","name":"sponsored","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collector","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultCertificatesSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deluxeCertificatesSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"generateBase64Image","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"generateImage","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintCertificate","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405273af69610ea9ddc95883f97a6a3171d52165b69b03600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060405180610200016040528060405180608001604052806040518060400160405280600781526020017f236563613366350000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f236664626166390000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f236230656665620000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f2365646666613900000000000000000000000000000000000000000000000000815250815250815260200160405180608001604052806040518060400160405280600781526020017f233735636662380000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f236262646663380000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f236630653564380000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f2366666334373800000000000000000000000000000000000000000000000000815250815250815260200160405180608001604052806040518060400160405280600781526020017f236666616237330000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f236666643338340000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f236666663962300000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f2366666165633000000000000000000000000000000000000000000000000000815250815250815260200160405180608001604052806040518060400160405280600781526020017f233934623461340000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f236432663565330000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f236535633562350000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f2366346439633600000000000000000000000000000000000000000000000000815250815250815260200160405180608001604052806040518060400160405280600781526020017f236634663966390000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f236363663266340000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f236134656266330000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f2361616161616100000000000000000000000000000000000000000000000000815250815250815260200160405180608001604052806040518060400160405280600781526020017f236361663765330000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f236564666665630000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f236636646665620000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f2365346261643400000000000000000000000000000000000000000000000000815250815250815260200160405180608001604052806040518060400160405280600781526020017f236634663966390000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f236631643164300000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f236662616363630000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f2366383735616100000000000000000000000000000000000000000000000000815250815250815260200160405180608001604052806040518060400160405280600781526020017f236664666662630000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f236666656562620000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f236666646362380000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f2366666331623600000000000000000000000000000000000000000000000000815250815250815260200160405180608001604052806040518060400160405280600781526020017f236630653464370000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f236635633063300000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f236666373137310000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f2339666438646600000000000000000000000000000000000000000000000000815250815250815260200160405180608001604052806040518060400160405280600781526020017f236534666266660000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f236238623566660000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f233738363865360000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f2365646565663700000000000000000000000000000000000000000000000000815250815250815260200160405180608001604052806040518060400160405280600781526020017f236666636239310000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f236666656661310000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f233934656263640000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f2336646463636600000000000000000000000000000000000000000000000000815250815250815260200160405180608001604052806040518060400160405280600781526020017f236265646366610000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f233938616366380000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f236230383866390000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f2364613966663900000000000000000000000000000000000000000000000000815250815250815260200160405180608001604052806040518060400160405280600781526020017f236263653665620000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f236664636664660000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f236662626564660000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f2366636133636300000000000000000000000000000000000000000000000000815250815250815260200160405180608001604052806040518060400160405280600781526020017f236666373561300000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f236663653338610000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f236561666664300000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f2339356531643300000000000000000000000000000000000000000000000000815250815250815260200160405180608001604052806040518060400160405280600781526020017f236662653063340000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f233861623664360000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f233239373862350000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f2330303631613800000000000000000000000000000000000000000000000000815250815250815260200160405180608001604052806040518060400160405280600781526020017f236464646464640000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f236639663366330000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f236637643964390000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f2366323532383700000000000000000000000000000000000000000000000000815250815250815250600d9060106200101592919062001fb6565b506040518061080001604052806040518060400160405280600581526020017f4255494c4400000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f545241494e00000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600381526020017f534545000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f445245414d00000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017f4c4956450000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f44414e434500000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017f484f50450000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600981526020017f415243484954454354000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f4558504c4f52450000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600381526020017f454154000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f544153544500000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f534d454c4c00000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600381526020017f52554e000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600281526020017f424500000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f4d45414e4445520000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017f57414c4b0000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f4c4541564500000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017f4c4f56450000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600981526020017f52454d494e49534345000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017f474956450000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f415343454e44000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017f4d4545540000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f4c4541524e00000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600981526020017f454e434f4d50415353000000000000000000000000000000000000000000000081525081526020016040518060400160405280600881526020017f4d4544495441544500000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017f46494e440000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017f5345454b0000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f4c4155474800000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f4c495354454e000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017f4645454c0000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f544f55434800000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f464f52474956450000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f41544f4e4500000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f414343455054000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017f504c41590000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017f53494e470000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f445249564500000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f434c494d4200000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f5041494e5400000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017f434f44450000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f504f4e444552000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f534c45455000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600381526020017f464c59000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f435245415445000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f575249544500000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f444952454354000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f455343415045000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017f46414c4c0000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600881526020017f464c4f555249534800000000000000000000000000000000000000000000000081525081526020016040518060400160405280600381526020017f4a414d000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600981526020017f494d50524f56495345000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017f4a554d500000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f545245415400000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017f474946540000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017f455849540000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600381526020017f4d4958000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017f5341494c0000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017f4d414b450000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f534f4c564500000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f534541524348000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f5448494e4b00000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600881526020017f524553454152434800000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f414456414e43450000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f524541534f4e0000000000000000000000000000000000000000000000000000815250815250604d90604062001ef29291906200200e565b5034801562001f0057600080fd5b50604051620084a9380380620084a9833981810160405281019062001f269190620022f5565b8484816000908051906020019062001f4092919062002068565b50806001908051906020019062001f5992919062002068565b50505082600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600a8190555080600b8190555050505050506200258b565b826010600402810192821562001ffb579160200282015b8281111562001ffa5782518290600462001fe9929190620020f9565b509160200191906004019062001fcd565b5b5090506200200a919062002153565b5090565b826040810192821562002055579160200282015b82811115620020545782518290805190602001906200204392919062002068565b509160200191906001019062002022565b5b5090506200206491906200217b565b5090565b82805462002076906200247c565b90600052602060002090601f0160209004810192826200209a5760008555620020e6565b82601f10620020b557805160ff1916838001178555620020e6565b82800160010185558215620020e6579182015b82811115620020e5578251825591602001919060010190620020c8565b5b509050620020f59190620021a3565b5090565b826004810192821562002140579160200282015b828111156200213f5782518290805190602001906200212e92919062002068565b50916020019190600101906200210d565b5b5090506200214f91906200217b565b5090565b5b808211156200217757600081816200216d9190620021c2565b5060040162002154565b5090565b5b808211156200219f57600081816200219591906200220f565b506001016200217c565b5090565b5b80821115620021be576000816000905550600101620021a4565b5090565b5060008181620021d391906200220f565b5060010160008181620021e791906200220f565b5060010160008181620021fb91906200220f565b5060010160006200220d91906200220f565b565b5080546200221d906200247c565b6000825580601f1062002231575062002252565b601f016020900490600052602060002090810190620022519190620021a3565b5b50565b60006200226c6200226684620023d2565b620023a9565b9050828152602081018484840111156200228557600080fd5b6200229284828562002446565b509392505050565b600081519050620022ab8162002557565b92915050565b600082601f830112620022c357600080fd5b8151620022d584826020860162002255565b91505092915050565b600081519050620022ef8162002571565b92915050565b600080600080600060a086880312156200230e57600080fd5b600086015167ffffffffffffffff8111156200232957600080fd5b6200233788828901620022b1565b955050602086015167ffffffffffffffff8111156200235557600080fd5b6200236388828901620022b1565b945050604062002376888289016200229a565b93505060606200238988828901620022de565b92505060806200239c88828901620022de565b9150509295509295909350565b6000620023b5620023c8565b9050620023c38282620024b2565b919050565b6000604051905090565b600067ffffffffffffffff821115620023f057620023ef62002517565b5b620023fb8262002546565b9050602081019050919050565b600062002415826200241c565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b838110156200246657808201518184015260208101905062002449565b8381111562002476576000848401525b50505050565b600060028204905060018216806200249557607f821691505b60208210811415620024ac57620024ab620024e8565b5b50919050565b620024bd8262002546565b810181811067ffffffffffffffff82111715620024df57620024de62002517565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b620025628162002408565b81146200256e57600080fd5b50565b6200257c816200243c565b81146200258857600080fd5b50565b615f0e806200259b6000396000f3fe60806040526004361061014b5760003560e01c80638da5cb5b116100b6578063b88d4fde1161006f578063b88d4fde146104cd578063c24a0f8b146104f6578063c87b56dd14610521578063dd0144371461055e578063e086e5ec1461057c578063e985e9c5146105935761014b565b80638da5cb5b146103bb578063913e77ad146103e657806395d89b4114610411578063a22cb4651461043c578063a48b3b8f14610465578063acd0bddb146104a25761014b565b806342842e0e1161010857806342842e0e146102725780634b44d8121461029b57806357cecd3a146102d85780636352211e14610303578063663b3e221461034057806370a082311461037e5761014b565b806301ffc9a71461015057806306fdde031461018d578063081812fc146101b8578063095ea7b3146101f55780630b97bc861461021e57806323b872dd14610249575b600080fd5b34801561015c57600080fd5b506101776004803603810190610172919061307e565b6105d0565b6040516101849190614203565b60405180910390f35b34801561019957600080fd5b506101a26106b2565b6040516101af919061421e565b60405180910390f35b3480156101c457600080fd5b506101df60048036038101906101da91906130d0565b610744565b6040516101ec9190614181565b60405180910390f35b34801561020157600080fd5b5061021c60048036038101906102179190613042565b6107c9565b005b34801561022a57600080fd5b506102336108d3565b6040516102409190614500565b60405180910390f35b34801561025557600080fd5b50610270600480360381019061026b9190612f3c565b6108d9565b005b34801561027e57600080fd5b5061029960048036038101906102949190612f3c565b610932565b005b3480156102a757600080fd5b506102c260048036038101906102bd91906130d0565b610952565b6040516102cf919061421e565b60405180910390f35b3480156102e457600080fd5b506102ed610b95565b6040516102fa9190614500565b60405180910390f35b34801561030f57600080fd5b5061032a600480360381019061032591906130d0565b610b9b565b6040516103379190614181565b60405180910390f35b34801561034c57600080fd5b50610367600480360381019061036291906130d0565b610c4d565b60405161037592919061451b565b60405180910390f35b34801561038a57600080fd5b506103a560048036038101906103a09190612ed7565b610c91565b6040516103b29190614500565b60405180910390f35b3480156103c757600080fd5b506103d0610d49565b6040516103dd9190614181565b60405180910390f35b3480156103f257600080fd5b506103fb610d6f565b604051610408919061419c565b60405180910390f35b34801561041d57600080fd5b50610426610d95565b604051610433919061421e565b60405180910390f35b34801561044857600080fd5b50610463600480360381019061045e9190613006565b610e27565b005b34801561047157600080fd5b5061048c600480360381019061048791906130d0565b610f93565b604051610499919061421e565b60405180910390f35b3480156104ae57600080fd5b506104b7610fad565b6040516104c49190614500565b60405180910390f35b3480156104d957600080fd5b506104f460048036038101906104ef9190612f8b565b610fb3565b005b34801561050257600080fd5b5061050b61100e565b6040516105189190614500565b60405180910390f35b34801561052d57600080fd5b50610548600480360381019061054391906130d0565b611014565b604051610555919061421e565b60405180910390f35b61056661121c565b6040516105739190614500565b60405180910390f35b34801561058857600080fd5b5061059161147a565b005b34801561059f57600080fd5b506105ba60048036038101906105b59190612f00565b611575565b6040516105c79190614203565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061069b57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106ab57506106aa82611609565b5b9050919050565b6060600080546106c190614878565b80601f01602080910402602001604051908101604052809291908181526020018280546106ed90614878565b801561073a5780601f1061070f5761010080835404028352916020019161073a565b820191906000526020600020905b81548152906001019060200180831161071d57829003601f168201915b5050505050905090565b600061074f82611673565b61078e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610785906143e0565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006107d482610b9b565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610845576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083c90614440565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061088557506108848133611575565b5b6108c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108bb90614360565b60405180910390fd5b6108ce83836116df565b505050565b600a5481565b6108e33382611798565b610922576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610919906144c0565b60405180910390fd5b61092d838383611876565b505050565b61094d83838360405180602001604052806000815250610fb3565b505050565b606060008260001b60405160200161096a9190613c51565b60405160208183030381529060405290506000601061098a836000611ac7565b61099491906146b0565b60ff169050600060046109a8846001611ac7565b6109b291906146b0565b60ff16905060006109c38684611b7d565b905060006109d18585611f0a565b905060006040518060400160405280600281526020017f44460000000000000000000000000000000000000000000000000000000000008152509050600073ffffffffffffffffffffffffffffffffffffffff16600c60008a815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610ab0576040518060400160405280600281526020017f445800000000000000000000000000000000000000000000000000000000000081525090505b828282610ad2600c60008d81526020019081526020016000206000015461208d565b604d8860408110610b0c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01610b64600c60008f815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16601461223a565b604051602001610b7996959493929190613da2565b6040516020818303038152906040529650505050505050919050565b60095481565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610c44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3b906143a0565b60405180910390fd5b80915050919050565b600c6020528060005260406000206000915090508060000154908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610d02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf990614380565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060018054610da490614878565b80601f0160208091040260200160405190810160405280929190818152602001828054610dd090614878565b8015610e1d5780601f10610df257610100808354040283529160200191610e1d565b820191906000526020600020905b815481529060010190602001808311610e0057829003601f168201915b5050505050905090565b3373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610e96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8d906142c0565b60405180910390fd5b80600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610f879190614203565b60405180910390a35050565b6060610fa6610fa183610952565b612534565b9050919050565b60085481565b610fbd3383611798565b610ffc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff3906144c0565b60405180910390fd5b611008848484846126df565b50505050565b600b5481565b606061101f82611673565b61105e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105590614420565b60405180910390fd5b60006040518060400160405280600781526020017f44656661756c74000000000000000000000000000000000000000000000000008152509050600073ffffffffffffffffffffffffffffffffffffffff16600c600085815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461113b576040518060400160405280600681526020017f44656c757865000000000000000000000000000000000000000000000000000081525090505b60008161115d600c60008781526020019081526020016000206000015461208d565b60405160200161116e929190613c6c565b604051602081830303815290604052905060006040518060400160405280601781526020017f416e63686f722043697479204365727469666963617465000000000000000000815250905060006111c486610f93565b90506111f28383836040516020016111de93929190613ed6565b604051602081830303815290604052612534565b6040516020016112029190614076565b604051602081830303815290604052945050505050919050565b6000600a544211611262576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611259906144a0565b60405180910390fd5b600b5442106112a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129d906142e0565b60405180910390fd5b662386f26fc100003410156112f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e790614340565b60405180910390fd5b6112f8612dae565b66b1a2bc2ec5000034106113af5760016009600082825461131991906145f2565b9250508190555060646009541115611366576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135d90614280565b60405180910390fd5b60095481600001818152505033816020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506113d6565b6001600860008282546113c291906145f2565b925050819055506008548160000181815250505b42336040516020016113e9929190614155565b6040516020818303038152906040528051906020012060001c915080600c60008481526020019081526020016000206000820151816000015560208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550905050611476338361273b565b5090565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461150a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150190614320565b60405180910390fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611572573d6000803e3d6000fd5b50565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661175283610b9b565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006117a382611673565b6117e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d990614300565b60405180910390fd5b60006117ed83610b9b565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061185c57508373ffffffffffffffffffffffffffffffffffffffff1661184484610744565b73ffffffffffffffffffffffffffffffffffffffff16145b8061186d575061186c8185611575565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661189682610b9b565b73ffffffffffffffffffffffffffffffffffffffff16146118ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118e390614400565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561195c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611953906142a0565b60405180910390fd5b6119676000826116df565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546119b7919061473b565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a0e91906145f2565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600081600183611ad791906145f2565b1015611b18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0f90614460565b60405180910390fd5b600182611b2591906145f2565b83511015611b68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5f906144e0565b60405180910390fd5b60008260018501015190508091505092915050565b6060600d8260108110611bb9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60040201600060048110611bf6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01600d8360108110611c31577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60040201600360048110611c6e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01600d8460108110611ca9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60040201600160048110611ce6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01600d8560108110611d21577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60040201600260048110611d5e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01611d74611d6b8861208d565b600060186128fd565b600d8760108110611dae577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60040201600360048110611deb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01600d8860108110611e26577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60040201600360048110611e63577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01600d8960108110611e9e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60040201600360048110611edb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01604051602001611ef3989796959493929190613f3e565b604051602081830303815290604052905092915050565b60606000611f19846002612a6b565b90506000611f28856006612a6b565b90506000611f3786600a612a6b565b90506000611f4687600e612a6b565b90506000611f55886012612a6b565b90506000611f9b856040518060400160405280600381526020017f32343500000000000000000000000000000000000000000000000000000000008152508a6002612b4d565b90506000611fe1856040518060400160405280600381526020017f32353500000000000000000000000000000000000000000000000000000000008152508b6000612b4d565b90506000612027856040518060400160405280600381526020017f32363500000000000000000000000000000000000000000000000000000000008152508c6003612b4d565b90508760000151886020015189604001518a606001518686868a600001518b602001518c604001518d6060015160405160200161206e9b9a99989796959493929190613c9b565b6040516020818303038152906040529850505050505050505092915050565b606060008214156120d5576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612235565b600082905060005b600082146121075780806120f0906148db565b915050600a82612100919061467f565b91506120dd565b60008167ffffffffffffffff811115612149577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561217b5781602001600182028036833780820191505090505b5090505b6000851461222e57600182612194919061473b565b9150600a856121a3919061495c565b60306121af91906145f2565b60f81b8183815181106121eb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612227919061467f565b945061217f565b8093505050505b919050565b60606000600283600261224d91906146e1565b61225791906145f2565b67ffffffffffffffff811115612296577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156122c85781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612326577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106123b0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026123f091906146e1565b6123fa91906145f2565b90505b60018111156124e6577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110612462577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b82828151811061249f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806124df9061484e565b90506123fd565b506000841461252a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161252190614480565b60405180910390fd5b8091505092915050565b6060600082511415612557576040518060200160405280600081525090506126da565b6000604051806060016040528060408152602001615e99604091399050600060036002855161258691906145f2565b612590919061467f565b600461259c91906146e1565b905060006020826125ad91906145f2565b67ffffffffffffffff8111156125ec577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561261e5781602001600182028036833780820191505090505b509050818152600183018586518101602084015b81831015612699576003830192508251603f8160121c1685015160f81b8252600182019150603f81600c1c1685015160f81b8252600182019150603f8160061c1685015160f81b8252600182019150603f811685015160f81b825260018201915050612632565b6003895106600181146126b357600281146126c3576126ce565b613d3d60f01b60028303526126ce565b603d60f81b60018303525b50505050508093505050505b919050565b6126ea848484611876565b6126f684848484612c0b565b612735576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272c90614240565b60405180910390fd5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156127ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127a2906143c0565b60405180910390fd5b6127b481611673565b156127f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127eb90614260565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461284491906145f2565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6060600084905060008484612912919061473b565b67ffffffffffffffff811115612951577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156129835781602001600182028036833780820191505090505b50905060008590505b84811015612a5e578281815181106129cd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b8287836129e5919061473b565b81518110612a1c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080612a56906148db565b91505061298c565b5080925050509392505050565b612a73612dde565b612aa06004612a828585611ac7565b612a8c91906146b0565b605a612a989190614648565b60ff1661208d565b8160000181905250612ad56010612ac385600186612abe91906145f2565b611ac7565b612acd91906146b0565b60ff1661208d565b8160200181905250612b0a6010612af885600286612af391906145f2565b611ac7565b612b0291906146b0565b60ff1661208d565b8160400181905250612b3f6010612b2d85600386612b2891906145f2565b611ac7565b612b3791906146b0565b60ff1661208d565b816060018190525092915050565b606083856000015185600d8660108110612b90577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600402018560048110612bcc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01886020015189604001518a60600151604051602001612bf29796959493929190614098565b6040516020818303038152906040529050949350505050565b6000612c2c8473ffffffffffffffffffffffffffffffffffffffff16612d9b565b15612d8e578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02338786866040518563ffffffff1660e01b8152600401612c7094939291906141b7565b602060405180830381600087803b158015612c8a57600080fd5b505af1925050508015612cbb57506040513d601f19601f82011682018060405250810190612cb891906130a7565b60015b612d3e573d8060008114612ceb576040519150601f19603f3d011682016040523d82523d6000602084013e612cf0565b606091505b50600081511415612d36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d2d90614240565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612d93565b600190505b949350505050565b600080823b905060008111915050919050565b604051806040016040528060008152602001600073ffffffffffffffffffffffffffffffffffffffff1681525090565b6040518060800160405280606081526020016060815260200160608152602001606081525090565b6000612e19612e1484614569565b614544565b905082815260208101848484011115612e3157600080fd5b612e3c84828561480c565b509392505050565b600081359050612e5381615e3c565b92915050565b600081359050612e6881615e53565b92915050565b600081359050612e7d81615e6a565b92915050565b600081519050612e9281615e6a565b92915050565b600082601f830112612ea957600080fd5b8135612eb9848260208601612e06565b91505092915050565b600081359050612ed181615e81565b92915050565b600060208284031215612ee957600080fd5b6000612ef784828501612e44565b91505092915050565b60008060408385031215612f1357600080fd5b6000612f2185828601612e44565b9250506020612f3285828601612e44565b9150509250929050565b600080600060608486031215612f5157600080fd5b6000612f5f86828701612e44565b9350506020612f7086828701612e44565b9250506040612f8186828701612ec2565b9150509250925092565b60008060008060808587031215612fa157600080fd5b6000612faf87828801612e44565b9450506020612fc087828801612e44565b9350506040612fd187828801612ec2565b925050606085013567ffffffffffffffff811115612fee57600080fd5b612ffa87828801612e98565b91505092959194509250565b6000806040838503121561301957600080fd5b600061302785828601612e44565b925050602061303885828601612e59565b9150509250929050565b6000806040838503121561305557600080fd5b600061306385828601612e44565b925050602061307485828601612ec2565b9150509250929050565b60006020828403121561309057600080fd5b600061309e84828501612e6e565b91505092915050565b6000602082840312156130b957600080fd5b60006130c784828501612e83565b91505092915050565b6000602082840312156130e257600080fd5b60006130f084828501612ec2565b91505092915050565b61310281614781565b82525050565b6131118161476f565b82525050565b6131286131238261476f565b614924565b82525050565b61313781614793565b82525050565b61314e6131498261479f565b614936565b82525050565b600061315f826145af565b61316981856145c5565b935061317981856020860161481b565b61318281614a49565b840191505092915050565b6000613198826145ba565b6131a281856145d6565b93506131b281856020860161481b565b6131bb81614a49565b840191505092915050565b60006131d1826145ba565b6131db81856145e7565b93506131eb81856020860161481b565b80840191505092915050565b6000815461320481614878565b61320e81866145e7565b94506001821660008114613229576001811461323a5761326d565b60ff1983168652818601935061326d565b6132438561459a565b60005b8381101561326557815481890152600182019150602081019050613246565b838801955050505b50505092915050565b60006132836013836145e7565b915061328e82614a67565b601382019050919050565b60006132a66081836145e7565b91506132b182614a90565b608182019050919050565b60006132c96032836145e7565b91506132d482614b51565b603282019050919050565b60006132ec6032836145e7565b91506132f782614ba0565b603282019050919050565b600061330f6067836145e7565b915061331a82614bef565b606782019050919050565b60006133326009836145e7565b915061333d82614c8a565b600982019050919050565b60006133556032836145d6565b915061336082614cb3565b604082019050919050565b60006133786015836145e7565b915061338382614d02565b601582019050919050565b600061339b6013836145e7565b91506133a682614d2b565b601382019050919050565b60006133be601c836145d6565b91506133c982614d54565b602082019050919050565b60006133e16008836145e7565b91506133ec82614d7d565b600882019050919050565b60006134046012836145d6565b915061340f82614da6565b602082019050919050565b60006134276024836145d6565b915061343282614dcf565b604082019050919050565b600061344a6019836145d6565b915061345582614e1e565b602082019050919050565b600061346d602b836145e7565b915061347882614e47565b602b82019050919050565b60006134906005836145d6565b915061349b82614e96565b602082019050919050565b60006134b3602c836145e7565b91506134be82614ebf565b602c82019050919050565b60006134d66028836145e7565b91506134e182614f0e565b602882019050919050565b60006134f9602c836145d6565b915061350482614f5d565b604082019050919050565b600061351c603c836145e7565b915061352782614fac565b603c82019050919050565b600061353f6047836145e7565b915061354a82614ffb565b604782019050919050565b60006135626021836145e7565b915061356d82615070565b602182019050919050565b60006135856035836145e7565b9150613590826150bf565b603582019050919050565b60006135a8605e836145e7565b91506135b38261510e565b605e82019050919050565b60006135cb6001836145e7565b91506135d682615183565b600182019050919050565b60006135ee600d836145d6565b91506135f9826151ac565b602082019050919050565b6000613611600f836145d6565b915061361c826151d5565b602082019050919050565b6000613634605a836145e7565b915061363f826151fe565b605a82019050919050565b60006136576038836145d6565b915061366282615273565b604082019050919050565b600061367a6004836145e7565b9150613685826152c2565b600482019050919050565b600061369d602a836145d6565b91506136a8826152eb565b604082019050919050565b60006136c06047836145e7565b91506136cb8261533a565b604782019050919050565b60006136e36029836145d6565b91506136ee826153af565b604082019050919050565b60006137066037836145e7565b9150613711826153fe565b603782019050919050565b60006137296062836145e7565b91506137348261544d565b606282019050919050565b600061374c6002836145e7565b9150613757826154e8565b600282019050919050565b600061376f6007836145e7565b915061377a82615511565b600782019050919050565b60006137926026836145e7565b915061379d8261553a565b602682019050919050565b60006137b56020836145d6565b91506137c082615589565b602082019050919050565b60006137d8600d836145e7565b91506137e3826155b2565b600d82019050919050565b60006137fb602c836145d6565b9150613806826155db565b604082019050919050565b600061381e603a836145e7565b91506138298261562a565b603a82019050919050565b60006138416033836145e7565b915061384c82615679565b603382019050919050565b60006138646012836145e7565b915061386f826156c8565b601282019050919050565b60006138876030836145e7565b9150613892826156f1565b603082019050919050565b60006138aa6014836145e7565b91506138b582615740565b601482019050919050565b60006138cd6006836145e7565b91506138d882615769565b600682019050919050565b60006138f06029836145d6565b91506138fb82615792565b604082019050919050565b6000613913602f836145d6565b915061391e826157e1565b604082019050919050565b6000613936604d836145e7565b915061394182615830565b604d82019050919050565b60006139596013836145e7565b9150613964826158a5565b601382019050919050565b600061397c6029836145e7565b9150613987826158ce565b602982019050919050565b600061399f6027836145e7565b91506139aa8261591d565b602782019050919050565b60006139c26025836145e7565b91506139cd8261596c565b602582019050919050565b60006139e56003836145e7565b91506139f0826159bb565b600382019050919050565b6000613a086021836145d6565b9150613a13826159e4565b604082019050919050565b6000613a2b601d836145e7565b9150613a3682615a33565b601d82019050919050565b6000613a4e6010836145d6565b9150613a5982615a5c565b602082019050919050565b6000613a716005836145d6565b9150613a7c82615a85565b602082019050919050565b6000613a94600b836145d6565b9150613a9f82615aae565b602082019050919050565b6000613ab76062836145e7565b9150613ac282615ad7565b606282019050919050565b6000613ada6031836145d6565b9150613ae582615b72565b604082019050919050565b6000613afd600a836145e7565b9150613b0882615bc1565b600a82019050919050565b6000613b206013836145d6565b9150613b2b82615bea565b602082019050919050565b6000613b436063836145e7565b9150613b4e82615c13565b606382019050919050565b6000613b666006836145e7565b9150613b7182615cae565b600682019050919050565b6000613b896006836145e7565b9150613b9482615cd7565b600682019050919050565b6000613bac6024836145e7565b9150613bb782615d00565b602482019050919050565b6000613bcf605b836145e7565b9150613bda82615d4f565b605b82019050919050565b6000613bf2601a836145e7565b9150613bfd82615dc4565b601a82019050919050565b6000613c156032836145e7565b9150613c2082615ded565b603282019050919050565b613c34816147f5565b82525050565b613c4b613c46826147f5565b614952565b82525050565b6000613c5d828461313d565b60208201915081905092915050565b6000613c7882856131c6565b9150613c838261336b565b9150613c8f82846131c6565b91508190509392505050565b6000613ca682613276565b9150613cb2828e6131c6565b9150613cbd82613532565b9150613cc9828d6131c6565b9150613cd4826135be565b9150613ce0828c6131c6565b9150613ceb826135be565b9150613cf7828b6131c6565b9150613d02826139d8565b9150613d0e828a6131c6565b9150613d1a82896131c6565b9150613d2682886131c6565b9150613d318261338e565b9150613d3d82876131c6565b9150613d48826136b3565b9150613d5482866131c6565b9150613d5f826135be565b9150613d6b82856131c6565b9150613d76826135be565b9150613d8282846131c6565b9150613d8d826139d8565b91508190509c9b505050505050505050505050565b6000613dad82613302565b9150613db982896131c6565b9150613dc582886131c6565b9150613dd082613578565b9150613ddb826134a6565b9150613de782876131c6565b9150613df2826133d4565b9150613dfd826134c9565b9150613e0982866131c6565b9150613e1482613762565b9150613e1f826132df565b9150613e2a82613929565b9150613e3582613992565b9150613e4182856131f7565b9150613e4c82613762565b9150613e57826136f9565b9150613e6282613460565b9150613e6e82846131c6565b9150613e7982613762565b9150613e8482613627565b9150613e8f82613b36565b9150613e9a8261359b565b9150613ea582613bc2565b9150613eb08261371c565b9150613ebb82613299565b9150613ec682613b7c565b9150819050979650505050505050565b6000613ee182613325565b9150613eed82866131c6565b9150613ef882613857565b9150613f0482856131c6565b9150613f0f826137cb565b9150613f1a82613be5565b9150613f2682846131c6565b9150613f318261373f565b9150819050949350505050565b6000613f4982613834565b9150613f55828b6131f7565b9150613f608261366d565b9150613f6b82613811565b9150613f77828a6131f7565b9150613f828261366d565b9150613f8d826132bc565b9150613f9982896131f7565b9150613fa4826139d8565b9150613faf82613c08565b9150613fbb82886131f7565b9150613fc68261366d565b9150613fd18261350f565b9150613fdc8261387a565b9150613fe882876131c6565b9150613ff382613762565b9150613ffe82613aaa565b915061400982613b9f565b915061401582866131f7565b91506140208261389d565b915061402b826139b5565b915061403782856131f7565b91506140428261389d565b915061404d8261396f565b915061405982846131f7565b915061406482613555565b91508190509998505050505050505050565b600061408182613a1e565b915061408d82846131c6565b915081905092915050565b60006140a382613af0565b91506140af828a6131c6565b91506140ba826138c0565b91506140c682896131c6565b91506140d182613b59565b91506140dd82886131c6565b91506140e88261394c565b91506140f482876131f7565b91506140ff82613785565b915061410b82866131c6565b9150614116826135be565b915061412282856131c6565b915061412d826135be565b915061413982846131c6565b9150614144826139d8565b915081905098975050505050505050565b60006141618285613c3a565b6020820191506141718284613117565b6014820191508190509392505050565b60006020820190506141966000830184613108565b92915050565b60006020820190506141b160008301846130f9565b92915050565b60006080820190506141cc6000830187613108565b6141d96020830186613108565b6141e66040830185613c2b565b81810360608301526141f88184613154565b905095945050505050565b6000602082019050614218600083018461312e565b92915050565b60006020820190508181036000830152614238818461318d565b905092915050565b6000602082019050818103600083015261425981613348565b9050919050565b60006020820190508181036000830152614279816133b1565b9050919050565b60006020820190508181036000830152614299816133f7565b9050919050565b600060208201905081810360008301526142b98161341a565b9050919050565b600060208201905081810360008301526142d98161343d565b9050919050565b600060208201905081810360008301526142f981613483565b9050919050565b60006020820190508181036000830152614319816134ec565b9050919050565b60006020820190508181036000830152614339816135e1565b9050919050565b6000602082019050818103600083015261435981613604565b9050919050565b600060208201905081810360008301526143798161364a565b9050919050565b6000602082019050818103600083015261439981613690565b9050919050565b600060208201905081810360008301526143b9816136d6565b9050919050565b600060208201905081810360008301526143d9816137a8565b9050919050565b600060208201905081810360008301526143f9816137ee565b9050919050565b60006020820190508181036000830152614419816138e3565b9050919050565b6000602082019050818103600083015261443981613906565b9050919050565b60006020820190508181036000830152614459816139fb565b9050919050565b6000602082019050818103600083015261447981613a41565b9050919050565b6000602082019050818103600083015261449981613a64565b9050919050565b600060208201905081810360008301526144b981613a87565b9050919050565b600060208201905081810360008301526144d981613acd565b9050919050565b600060208201905081810360008301526144f981613b13565b9050919050565b60006020820190506145156000830184613c2b565b92915050565b60006040820190506145306000830185613c2b565b61453d6020830184613108565b9392505050565b600061454e61455f565b905061455a82826148aa565b919050565b6000604051905090565b600067ffffffffffffffff82111561458457614583614a1a565b5b61458d82614a49565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006145fd826147f5565b9150614608836147f5565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561463d5761463c61498d565b5b828201905092915050565b6000614653826147ff565b915061465e836147ff565b92508260ff038211156146745761467361498d565b5b828201905092915050565b600061468a826147f5565b9150614695836147f5565b9250826146a5576146a46149bc565b5b828204905092915050565b60006146bb826147ff565b91506146c6836147ff565b9250826146d6576146d56149bc565b5b828204905092915050565b60006146ec826147f5565b91506146f7836147f5565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156147305761472f61498d565b5b828202905092915050565b6000614746826147f5565b9150614751836147f5565b9250828210156147645761476361498d565b5b828203905092915050565b600061477a826147d5565b9050919050565b600061478c826147d5565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b8381101561483957808201518184015260208101905061481e565b83811115614848576000848401525b50505050565b6000614859826147f5565b9150600082141561486d5761486c61498d565b5b600182039050919050565b6000600282049050600182168061489057607f821691505b602082108114156148a4576148a36149eb565b5b50919050565b6148b382614a49565b810181811067ffffffffffffffff821117156148d2576148d1614a1a565b5b80604052505050565b60006148e6826147f5565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156149195761491861498d565b5b600182019050919050565b600061492f82614940565b9050919050565b6000819050919050565b600061494b82614a5a565b9050919050565b6000819050919050565b6000614967826147f5565b9150614972836147f5565b925082614982576149816149bc565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f3c6c696e652078313d22323335222079313d2200000000000000000000000000600082015250565b7f3c7374796c653e2e737667426f6479207b666f6e742d66616d696c793a20224360008201527f6f7572696572204e657722207d202e74696e79207b666f6e742d73697a653a3660208201527f70783b207d202e736d616c6c207b666f6e742d73697a653a20313270783b7d2e60408201527f6d656469756d207b666f6e742d73697a653a20313870783b7d3c2f7374796c6560608201527f3e00000000000000000000000000000000000000000000000000000000000000608082015250565b7f3c7265637420793d223630222077696474683d2233303022206865696768743d60008201527f2231313522207374796c653d2266696c6c3a0000000000000000000000000000602082015250565b7f3c7465787420783d2231352220793d223132302220636c6173733d226d65646960008201527f756d223e524541534f4e3a3c2f746578743e0000000000000000000000000000602082015250565b7f3c73766720636c6173733d22737667426f6479222077696474683d223330302260008201527f206865696768743d22333030222076696577426f783d2230203020333030203360208201527f30302220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f32303060408201527f302f737667223e00000000000000000000000000000000000000000000000000606082015250565b7f7b226e616d65223a220000000000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f20416e63686f7220436572746966696361746520230000000000000000000000600082015250565b7f3c6c696e652078313d22323735222079313d2200000000000000000000000000600082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f313c2f746578743e000000000000000000000000000000000000000000000000600082015250565b7f4d41585f44585f524541434845445f3130300000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f3c7465787420783d2231352220793d2232303522207374796c653d22666f6e7460008201527f2d73697a653a387078223e000000000000000000000000000000000000000000602082015250565b7f454e444544000000000000000000000000000000000000000000000000000000600082015250565b7f3c7465787420783d2231352220793d2238302220636c6173733d226d6564697560008201527f6d223e45444954494f4e3e200000000000000000000000000000000000000000602082015250565b7f3c7465787420783d2231352220793d223130302220636c6173733d226d65646960008201527f756d223e49443e20000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f3c7465787420783d2231352220793d2232352220636c6173733d226d6564697560008201527f6d223e414e43484f522043455254494649434154453c2f746578743e00000000602082015250565b7f222078323d22323335222079323d2233303022207374726f6b653d227768697460008201527f6522207374726f6b652d77696474683d22313022207374726f6b652d6461736860208201527f61727261793d2200000000000000000000000000000000000000000000000000604082015250565b7f22207374726f6b652d77696474683d2235222066696c6c3d226e6f6e6522202f60008201527f3e00000000000000000000000000000000000000000000000000000000000000602082015250565b7f3c7465787420783d223231352220793d2238302220636c6173733d22736d616c60008201527f6c223e414e43484f5220434954593c2f746578743e0000000000000000000000602082015250565b7f3c7465787420783d2231352220793d223235302220636c6173733d2274696e7960008201527f223e6f662045617274682e2049662053706f6e736f7265642c20556e6465722060208201527f53656374696f6e20362e463a20546865204265617265723c2f746578743e0000604082015250565b7f2000000000000000000000000000000000000000000000000000000000000000600082015250565b7f4e4f545f434f4c4c4543544f5200000000000000000000000000000000000000600082015250565b7f4d4f524520455448204e45454445440000000000000000000000000000000000600082015250565b7f3c7465787420783d2231352220793d223233302220636c6173733d2274696e7960008201527f223e556e6465722053656374696f6e20312e43206f66207468652055706c6f6160208201527f646564204d696e647320416e642048756d616e3c2f746578743e000000000000604082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f22202f3e00000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f222078323d22323735222079323d2233303022207374726f6b653d22626c616360008201527f6b22207374726f6b652d77696474683d22313022207374726f6b652d6461736860208201527f61727261793d2200000000000000000000000000000000000000000000000000604082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f3c7465787420783d2231352220793d223139302220636c6173733d22736d616c60008201527f6c223e53504f4e534f5245442042593a3c2f746578743e000000000000000000602082015250565b7f3c7465787420783d2231352220793d223237302220636c6173733d2274696e7960008201527f223e556e6465722053656374696f6e20392e413a2049662044657374726f796560208201527f642c204265617265722057696c6c2042652044656c69737465642e3c2f74657860408201527f743e000000000000000000000000000000000000000000000000000000000000606082015250565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b7f3c2f746578743e00000000000000000000000000000000000000000000000000600082015250565b7f22207374726f6b652d77696474683d22313022207374726f6b652d646173686160008201527f727261793d220000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f222c2022696d616765223a202200000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f3c7265637420793d22323035222077696474683d22333030222068656967687460008201527f3d223735222072783d22313022207374796c653d2266696c6c3a000000000000602082015250565b7f3c726563742077696474683d2233303022206865696768743d2233303022207260008201527f783d22313022207374796c653d2266696c6c3a00000000000000000000000000602082015250565b7f222c20226465736372697074696f6e223a220000000000000000000000000000600082015250565b7f3c7465787420783d2231372220793d2235302220636c6173733d22736d616c6c60008201527f22206f7061636974793d22302e35223e00000000000000000000000000000000602082015250565b7f22207374726f6b652d77696474683d2235222f3e000000000000000000000000600082015250565b7f222079313d220000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f3c7265637420783d2231352220793d22313235222077696474683d223230352260008201527f206865696768743d22343022207374796c653d2266696c6c3a77686974653b6f60208201527f7061636974793a302e35222f3e00000000000000000000000000000000000000604082015250565b7f222079323d2233303022207374726f6b653d2200000000000000000000000000600082015250565b7f3c7061746820643d224d203233302035352071203235202d333020353020302260008201527f207374726f6b653d220000000000000000000000000000000000000000000000602082015250565b7f3c7465787420783d2231352220793d223134302220636c6173733d226d65646960008201527f756d223e544f2000000000000000000000000000000000000000000000000000602082015250565b7f3c7061746820643d224d20323830203535206c202d3330202d3430222073747260008201527f6f6b653d22000000000000000000000000000000000000000000000000000000602082015250565b7f222f3e0000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b7f746f55696e74385f6f766572666c6f7700000000000000000000000000000000600082015250565b7f4845585f4c000000000000000000000000000000000000000000000000000000600082015250565b7f4e4f545f53544152544544000000000000000000000000000000000000000000600082015250565b7f3c636972636c652063783d22323535222063793d2233302220723d223230222060008201527f7374726f6b653d227768697465222066696c6c3d227472616e73706172656e7460208201527f22207374726f6b652d77696474683d223522206f7061636974793d22302e372260408201527f2f3e000000000000000000000000000000000000000000000000000000000000606082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f3c6c696e652078313d2200000000000000000000000000000000000000000000600082015250565b7f746f55696e74385f6f75744f66426f756e647300000000000000000000000000600082015250565b7f3c7465787420783d2231352220793d223234302220636c6173733d2274696e7960008201527f223e436f6578697374656e636520506163743a2054686520426561726572204960208201527f732052652d456e7469746c656420546f205468652046726565646f6d3c2f746560408201527f78743e0000000000000000000000000000000000000000000000000000000000606082015250565b7f222078323d220000000000000000000000000000000000000000000000000000600082015250565b7f3c2f7376673e0000000000000000000000000000000000000000000000000000600082015250565b7f3c7061746820643d224d20323330203535206c203330202d343022207374726f60008201527f6b653d2200000000000000000000000000000000000000000000000000000000602082015250565b7f3c7465787420783d2231352220793d223236302220636c6173733d2274696e7960008201527f223e48617320496d6d6564696174652041636365737320546f2054686520496e60208201527f6e65722042616e6477696474682057656c6c732e3c2f746578743e0000000000604082015250565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c000000000000600082015250565b7f3c7265637420793d22313735222077696474683d22333030222068656967687460008201527f3d22343022207374796c653d2266696c6c3a0000000000000000000000000000602082015250565b615e458161476f565b8114615e5057600080fd5b50565b615e5c81614793565b8114615e6757600080fd5b50565b615e73816147a9565b8114615e7e57600080fd5b50565b615e8a816147f5565b8114615e9557600080fd5b5056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212202e86d1b19dfc14756bdd01a0be6eba3c7b02359a8b358e61f8e3d8c3e3f3745764736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000af69610ea9ddc95883f97a6a3171d52165b69b030000000000000000000000000000000000000000000000000000000060d9d5e00000000000000000000000000000000000000000000000000000000060febfe00000000000000000000000000000000000000000000000000000000000000013416e63686f72204365727469666963617465730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034143530000000000000000000000000000000000000000000000000000000000

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000af69610ea9ddc95883f97a6a3171d52165b69b030000000000000000000000000000000000000000000000000000000060d9d5e00000000000000000000000000000000000000000000000000000000060febfe00000000000000000000000000000000000000000000000000000000000000013416e63686f72204365727469666963617465730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034143530000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): Anchor Certificates
Arg [1] : symbol_ (string): ACS
Arg [2] : collector_ (address): 0xaF69610ea9ddc95883f97a6a3171d52165b69B03
Arg [3] : startDate_ (uint256): 1624888800
Arg [4] : endDate_ (uint256): 1627308000

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 000000000000000000000000af69610ea9ddc95883f97a6a3171d52165b69b03
Arg [3] : 0000000000000000000000000000000000000000000000000000000060d9d5e0
Arg [4] : 0000000000000000000000000000000000000000000000000000000060febfe0
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000013
Arg [6] : 416e63686f722043657274696669636174657300000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [8] : 4143530000000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

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.