ETH Price: $1,890.84 (-3.14%)
 

Overview

Max Total Supply

0 PTBG

Holders

0

Transfers

-
-

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
PixelTags

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2022-09-12
*/

// SPDX-License-Identifier: MIT
// This is no CC0
// www.PixelRoyal.xyz
/*
 ___ ____ ____ ____ ____ ____ ____ ____ ____ 
||P |||i |||x |||e |||l |||T |||a |||g |||s ||
||__|||__|||__|||__|||__|||__|||__|||__|||__||
|/__\|/__\|/__\|/__\|/__\|/__\|/__\|/__\|/__\|
 
 */
pragma solidity ^0.8.15;

/// @title Base64
/// @author Brecht Devos - <brecht@loopring.org>
/// @notice Provides functions for encoding/decoding base64
library Base64 {
    string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
    bytes  internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000"
                                            hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000"
                                            hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000"
                                            hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000";

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

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

        // 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) {}
            {
                // read 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // write 4 characters
                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr( 6, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, 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;
    }

    function decode(string memory _data) internal pure returns (bytes memory) {
        bytes memory data = bytes(_data);

        if (data.length == 0) return new bytes(0);
        require(data.length % 4 == 0, "invalid base64 decoder input");

        // load the table into memory
        bytes memory table = TABLE_DECODE;

        // every 4 characters represent 3 bytes
        uint256 decodedLen = (data.length / 4) * 3;

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

        assembly {
            // padding with '='
            let lastBytes := mload(add(data, mload(data)))
            if eq(and(lastBytes, 0xFF), 0x3d) {
                decodedLen := sub(decodedLen, 1)
                if eq(and(lastBytes, 0xFFFF), 0x3d3d) {
                    decodedLen := sub(decodedLen, 1)
                }
            }

            // set the actual output length
            mstore(result, decodedLen)

            // 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, 4 characters at a time
            for {} lt(dataPtr, endPtr) {}
            {
               // read 4 characters
               dataPtr := add(dataPtr, 4)
               let input := mload(dataPtr)

               // write 3 bytes
               let output := add(
                   add(
                       shl(18, and(mload(add(tablePtr, and(shr(24, input), 0xFF))), 0xFF)),
                       shl(12, and(mload(add(tablePtr, and(shr(16, input), 0xFF))), 0xFF))),
                   add(
                       shl( 6, and(mload(add(tablePtr, and(shr( 8, input), 0xFF))), 0xFF)),
                               and(mload(add(tablePtr, and(        input , 0xFF))), 0xFF)
                    )
                )
                mstore(resultPtr, shl(232, output))
                resultPtr := add(resultPtr, 3)
            }
        }

        return result;
    }
}

// File: @openzeppelin/contracts/utils/Strings.sol


// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

// File: TraitAssembly.sol


// www.PixelRoyale.xyz
pragma solidity ^0.8.15;


library TraitAssembly {
    
    //---------- ACCESSORY ASSEMBLY - WITH ACCESSORY SVGs ----------//
    function choseA(uint32 _seed) public pure returns (string memory _aString, string memory _aJson) {
        string[13] memory _traitArray = ["Flower Crown", "Night Vision", "Trauma", "Sleek Curl", "Twin Tails", "Red Rag", "Blue Rag", "Snapback", "Crown", "One Peace", "Red Oni", "Blue Oni", "Clown"];
        string memory _trait = _traitArray[_seed%12];
        string memory soulCol =  Strings.toString((_seed%72)*5);
        string memory inverseCol = Strings.toString((((_seed%72)*5)+180)%360);
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[0]))) {
            _aString = '<polygon points="3,3 8,3 8,4 9,4 9,3 13,3 13,4 14,4 14,5 13,5 13,6 8,6 8,5 7,5 7,6 3,6 3,5 2,5 2,4 3,4" fill="hsl(102, 75%, 58%)"/><polygon points="5,3 11,3 11,4 12,4 12,5 11,5 11,6 10,6 10,5 9,5 9,4 10,4 10,3 6,3 6,4 7,4 7,5 6,5 6,6 5,6 5,5 4,5 4,4 5,4" fill="hsl(0, 100%, 100%)"/><polygon points="5,4 11,4 11,5 10,5 10,4 6,4 6,5 5,5 5,4" fill="hsl(48, 100%, 57%)"/>';
        }
        else if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[1]))) {
            _aString = '<polygon points="4,2 6,2 6,3 7,3 7,2 9,2 9,3 10,3 10,2 12,2 12,3 13,3 13,5 14,5 14,6 10,6 10,5 6,5 6,6 2,6 2,5 3,5 3,3 4,3" fill="hsl(0,0%,0%)"/><polygon points="4,3 12,3 12,5 10,5 10,3 9,3 9,4 7,4 7,3 6,3 6,5 4,5" fill="hsl(102, 73%, 64%)"/>';
        }
        else if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[2]))) {
            _aString = '<polygon points="9,2 11,2 11,5 10,5 10,3 9,3" fill="hsl(352, 100%, 41%)"/>'; 
        }
        else if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[3]))) {
            _aString = string(abi.encodePacked('<polygon points="4,1 12,1 12,2 13,2 13,7 12,7 12,6 11,6 11,4 8,4 8,5 9,5 9,6 7,6 7,4 5,4 5,6 4,6 4,7 3,7 3,2 4,2" fill="hsl(',inverseCol,', 80%, 60%)"/>')); 
        }
        else if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[4]))) {
            _aString = string(abi.encodePacked('<polygon points="5,1 11,1 11,2 12,2 12,3 13,3 13,4 14,4 14,5 15,5 15,6 16,6 16,10 15,10 15,9 14,9 14,6 13,6 13,7 12,7 12,6 11,6 11,5 10,5 10,6 9,6 9,5 8,5 8,6 6,6 6,5 5,5 5,6 4,6 4,7 3,7 3,6 2,6 2,9 1,9 1,10 0,10 0,6 1,6 1,5 2,5 2,4 3,4 3,3 4,3 4,2 5,2" fill="hsl(',inverseCol,', 80%, 60%)"/><polygon points="2,4 3,4 14,4 14,6 13,6 13,4 3,4 3,6 2,6 " fill="hsl(',soulCol,', 40%, 60%)"/>'));
        }
        else if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[5]))) {
            _aString = '<polygon points="3,2 4,2 4,1 12,1 12,2 13,2 13,5 2,5 2,6 1,6 1,5 2,5 2,4 1,4 1,3 2,3 2,4 3,4" fill="hsl(0, 75%, 50%)"/>';
        }
        else if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[6]))) {
            _aString = '<polygon points="3,2 4,2 4,1 12,1 12,2 13,2 13,5 2,5 2,6 1,6 1,5 2,5 2,4 1,4 1,3 2,3 2,4 3,4" fill="hsl(225, 75%, 50%)"/>';
        }
        else if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[7]))) {
            _aString = string(abi.encodePacked('<polygon points="3,4 3,2 4,2 4,1 12,1 12,2 13,2 13,5 2,5 1,5 1,4" fill="hsl(',soulCol,', 75%, 50%)"/><polygon points="7,4 7,3 8,3 8,2 10,2 10,3 11,3 11,4" fill="hsl(',soulCol,', 75%, 25%)"/>'));
        }
        else if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[8]))) {
            _aString = '<polygon points="3,4 4,4 4,3 5,3 5,4 6,4 6,3 7,3 7,2 9,2 9,3 10,3 10,4 11,4 11,3 12,3 12,4 13,4 13,5 3,5 " fill="hsl(45, 100%, 50%)"/>';
        }
        else if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[9]))) {
            _aString = '<polygon points="1,4 3,4 3,2 4,2 4,1 12,1 12,2 13,2 13,4 15,4 15,5 1,5" fill="hsl(45, 100%, 50%)"/><rect x="3" y="3" width="10" height="1" fill="hsl(0,100%,50%)"/>';
        }
        else if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[10]))) {
            _aString = '<polygon points="12,5 12,3 13,3 13,2 14,2 14,1 15,1 15,4 14,4 14,5" fill="hsl(0,100%,50%)"/>';
        }
        else if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[11]))) {
            _aString = '<polygon points="4,5 4,3 3,3 3,2 2,2 2,1 1,1 1,4 2,4 2,5" fill="hsl(225,100%,50%)"/>';
        }
        else if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[12]))) {
            _aString = string(abi.encodePacked('<polygon points="1,1 2,1 2,2 6,2 6,1 7,1 7,0 9,0 9,1 10,1 10,2 14,2 14,1 15,1 15,4 14,4 14,5 12,5 12,3 11,3 11,2 5,2 5,3 4,3 4,5 2,5 2,4 1,4" fill="hsl(',soulCol,',75%,45%)"/>'));
        }
        return(_aString,_aJson = _trait);
    }
    
    //---------- EYES ASSEMBLY - WITH EYE SVGs ----------//
    function choseE(uint32 _seed) public pure returns (string memory _eString, string memory _eJson) {
        string[17] memory _traitArray = ["Passive", "Sane", "Wary", "Fine", "Shut", "Glee", "Cool", "Tough", "Archaic", "Sly", "Sharp", "Sad", "Indifferent", "Focused", "Gloomy", "Abnormal", "Gem"];
        string memory _trait = _traitArray[_seed%16];
        string memory soulCol =  Strings.toString((_seed%72)*5);
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[0]))) {
            _eString = string(abi.encodePacked('<polygon points="5,7 11,7 11,9 9,9 9,7 7,7 7,9 5,9" fill="hsl(180,100%,100%)"/><polygon points="6,7 11,7 11,9 10,9 10,7 7,7 7,9 6,9" fill="hsl(',soulCol,',40%,60%)"/>'));
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[1]))) {
            _eString = string(abi.encodePacked('<polygon points="5,8 11,8 11,9 9,9 9,8 7,8 7,9 5,9" fill="hsl(180,100%,100%)"/><polygon points="5,8 10,8 10,9 9,9 9,8 6,8 6,9 5,9" fill="hsl(',soulCol,',40%,60%)"/><polygon points="5,6 11,6 11,7 9,7 9,6 7,6 7,7 5,7" fill="hsl(180,0%,0%)"/>'));
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[2]))) {
            _eString = string(abi.encodePacked('<polygon points="5,8 11,8 11,9 9,9 9,8 7,8 7,9 5,9" fill="hsl(180,100%,100%)"/><polygon points="6,8 11,8 11,9 10,9 10,8 7,8 7,9 6,9" fill="hsl(',soulCol,',40%,60%)"/><polygon points="5,5 6,5 6,6 11,6 11,7 9,7 9,6 7,6 7,7 6,7 6,6 5,6" fill="hsl(180,0%,0%)"/>'));
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[3]))) {
            _eString = string(abi.encodePacked('<polygon points="4,8 5,8 5,7 11,7 11,8 12,8 12,9 9,9 9,7 7,7 7,9 4,9" fill="hsl(180,0%,0%)"/><polygon points="5,8 11,8 11,9 9,9 9,8 7,8 7,9 5,9" fill="hsl(',soulCol,',40%,60%)"/><polygon points="6,8 11,8 11,9 10,9 10,8 7,8 7,9 6,9" fill="hsl(180,0%,0%)"/>'));
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[4]))) {
            _eString = '<polygon points="4,7 5,7 5,8 6,8 6,7 10,7 10,8 11,8 11,7 12,7 12,8 11,8 11,9 10,9 10,8 9,8 9,7 7,7 7,8 6,8 6,9 5,9 5,8 4,8" fill="hsl(180,0%,0%)"/>';
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[5]))) {
            _eString = '<polygon points="4,8 5,8 5,7 6,7 6,8 10,8 10,7 11,7 11,8 12,8 12,9 11,9 11,8 10,8 10,9 9,9 9,8 7,8 7,9 6,9 6,8 5,8 5,9 4,9" fill="hsl(180,0%,0%)"/>';
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[6]))) {
            _eString = '<polygon points="4,7 12,7 12,8 11,8 11,9 9,9 9,8 7,8 7,9 5,9 5,8 4,8" fill="hsl(180,0%,0%)"/>';
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[7]))) {
            _eString = string(abi.encodePacked('<rect x="5" y="8" width="2" height="1" fill="hsl(180,100%,100%)"/><rect x="5" y="8" width="1" height="1" fill="hsl(',soulCol,',40%,60%)"/><polygon points="5,3 6,3 6,4 7,4 7,5 8,5 8,6 9,6 9,7 11,7 11,9 12,9 12,10 11,10 11,9 9,9 9,8 5,8 5,7 7,7 7,8 9,8 9,7 8,7 8,6 7,6 7,5 6,5 6,4 5,4" fill="hsl(180,0%,0%)"/>'));
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[8]))) {
            _eString = string(abi.encodePacked('<polygon points="5,8 11,8 11,9 9,9 9,8 7,8 7,9 5,9" fill="hsl(180,100%,100%)"/><polygon points="5,8 10,8 10,9 9,9 9,8 6,8 6,9 5,9" fill="hsl(',soulCol,',40%,60%)"/><rect x="4" y="7" width="8" height="1" fill="hsl(180,0%,0%)"/>'));
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[9]))) {
            _eString = string(abi.encodePacked('<rect x="4" y="6" width="8" height="3" fill="hsl(180,0%,0%)"/><polygon points="5,7 11,7 11,8 9,8 9,7 7,7 7,8 5,8" fill="hsl(180,100%,100%)"/><polygon points="6,7 11,7 11,8 10,8 10,7 7,7 7,8 6,8" fill="hsl(',soulCol,',40%,60%)"/>'));
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[10]))) {
            _eString = string(abi.encodePacked('<polygon points="5,7 5,6 7,6 7,7 9,7 9,6 11,6 11,7 12,7 12,8 11,8 11,9 9,9 9,8 7,8 7,9 5,9 5,8 4,8 4,7" fill="hsl(180,0%,0%)"/><polygon points="5,7 11,7 11,8 9,8 9,7 7,7 7,8 5,8" fill="hsl(',soulCol,',40%,60%)"/>'));
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[11]))) {
            _eString = '<polygon points="11,8 11,10 10,10 10,8 6,8 6,12 5,12 5,8" fill="hsl(188, 39%, 58%)"/><polygon points="5,7 11,7 11,8 9,8 9,7 7,7 7,8 5,8" fill="hsl(180,0%,0%)"/>';
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[12]))) {
            _eString = string(abi.encodePacked('<polygon points="5,6 6,6 6,9 10,9 10,6 11,6 11,9 5,9" fill="hsl(180,0%,0%)"/><polygon points="4,7 12,7 12,8 9,8 9,7 7,7 7,8 4,8" fill="hsl(180,100%,100%)"/><polygon points="5,7 6,7 6,8 10,8 10,7 11,7 11,8 5,8" fill="hsl(',soulCol,',40%,60%)"/>'));
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[13]))) {
            _eString = string(abi.encodePacked('<polygon points="4,7 12,7 12,8 9,8 9,7 7,7 7,8 4,8" fill="hsl(180,0%,0%)"/><polygon points="4,8 12,8 12,9 9,9 9,8 7,8 7,9 4,9" fill="hsl(180,100%,100%)"/><polygon points="5,8 6,8 6,9 10,9 10,8 11,8 11,9 5,9" fill="hsl(',soulCol,',40%,60%)"/>'));
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[14]))) {
            _eString = string(abi.encodePacked('<polygon points="4,5 5,5 5,6 6,6 6,7 10,7 10,6 11,6 11,5 12,5 12,7 13,7 13,8 12,8 12,10 11,10 11,9 10,9 10,8 9,8 9,7 7,7 7,8 6,8 6,9 5,9 5,10 4,10 4,8 3,8 3,7 4,7 " fill="hsl(180,0%,0%)"/><polygon points="4,7 12,7 12,8 10,8 10,7 6,7 6,8 4,8" fill="hsl(180,100%,100%)"/><polygon points="5,7 6,7 6,8 11,8 11,7 12,7 12,8 5,8" fill="hsl(',soulCol,',40%,60%)"/>'));
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[15]))) {
            _eString = '<polygon points="5,8 6,8 6,9 10,9 10,7 11,7 11,9 10,9 5,9" fill="hsl(180,0%,0%)"/>';
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[16]))) {
            _eString = string(abi.encodePacked('<polygon points="5,7 11,7 11,9 9,9 9,7 7,7 7,9 5,9 " fill="hsl(180,100%,100%)"/><polygon points="5,8 6,8 6,7 7,7 7,8  10,8 10,7 11,7 11,8 10,8 10,9 9,9 9,8 6,8 6,9 5,9" fill="hsl(',soulCol,',40%,60%)"/>'));
        }
        return(_eString,_eJson = _trait);
    }

    //---------- MOUTH ASSEMBLY - WITH MOUTH SVGs ----------//
    function choseM(uint32 seed) public pure returns (string memory _mString, string memory _mJson) {
        string[18] memory _traitArray = ["Smile", "Rabbit", "Frown", "Jeez", "Deez", "Grin", "Hungry", "Hillbilly", "Yikes", "Dumber", "Cigarette", "Puke", "Raw", "Tongue", "Surprised", "Stunned", "Chew", "Respirator"]; 
        string memory _trait = _traitArray[seed%17];
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[0]))) {
            _mString = '<polygon points="6,11 5,11 5,10 6,10 6,11 10,11 10,10 11,10 11,11 10,11 10,12 6,12" fill="hsl(180,0%,0%)"/>';
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[1]))) {
            _mString = '<polygon points="6,11 5,11 5,10 6,10 6,11 10,11 10,10 11,10 11,11 10,11 10,12 6,12" fill="hsl(180,0%,0%)"/><polygon points="7,13 7,12 9,12 9,13" fill="hsl(180,100%,100%)"/>';
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[2]))) {
            _mString = '<polygon points="6,12 5,12 5,11 6,11 6,10 10,10 10,12 11,12 11,11 10,11 10,11 6,11 " fill="hsl(180,0%,0%)"/>';
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[3]))) {
            _mString = '<rect x="7" y="10" width="2" height="1" fill="hsl(180,0%,0%)"/>';
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[4]))) {
            _mString = '<rect x="5" y="10" width="6" height="1" fill="hsl(180,0%,0%)"/><rect x="6" y="10" width="1" height="1" fill="hsl(180,100%,100%)"/><rect x="9" y="10" width="1" height="1" fill="hsl(180,100%,100%)"/>';
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[5]))) {
            _mString = '<polygon points="7,11 6,11 6,10 7,10 7,11 9,11 9,10 10,10 10,11 9,11 9,12 7,12" fill="hsl(180,0%,0%)"/>';
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[6]))) {
            _mString = '<polygon points="7,11 7,12 6,12 6,10 10,10 10,13 9,13 9,12 8,12 8,11" fill="hsl(188, 39%, 58%)"/><rect x="6" y="10" width="4" height="1" fill="hsl(180,0%,0%)"/>';
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[7]))) {
            _mString = '<polygon points="7,11 7,12 6,12 6,10 10,10 10,12 9,12 9,11" fill="hsl(180, 100%, 100%)"/><rect x="5" y="10" width="6" height="1" fill="hsl(180,0%,0%)"/>';
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[8]))) {
            _mString = '<rect x="5" y="10" width="6" height="1" fill="hsl(180,0%,0%)"/><rect x="6" y="10" width="4" height="1" fill="hsl(180,100%,100%)"/> ';
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[9]))) {
            _mString = '<rect x="5" y="10" width="6" height="1" fill="hsl(180,0%,0%)"/><rect x="6" y="10" width="4" height="1" fill="hsl(180,100%,100%)"/><rect x="7" y="10" width="1" height="1" fill="hsl(180,0%,0%)"/>';
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[10]))) {
            _mString = '<polygon points="6,12 6,11 5,11 5,10 6,10 6,11 10,11 10,12" fill="hsl(180,0%,0%)"/><rect x="9" y="11" width="2" height="1" fill="hsl(180,100%,100%)"/><rect x="11" y="11" width="1" height="1" fill="hsl(358, 100%, 51%)"/><polygon points="13,11 12,11 12,10 13,10 13,7 12,7 12,8 13,8 13,9 14,9 14,10 13,10 " fill="hsl(0, 0%, 90%)"/>';
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[11]))) {
            _mString = '<polygon points="9,10 11,10 11,14 10,14 10,13 9,13" fill="hsl(119, 100%, 41%)"/><rect x="5" y="10" width="6" height="1" fill="hsl(180,0%,0%)"/>';
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[12]))) {
            _mString = '<polygon points="7,11 7,12 6,12 6,10 9,10 11,10 11,14 10,14 10,13 9,13 9,11" fill="hsl(352, 100%, 41%)"/><rect x="5" y="10" width="6" height="1" fill="hsl(180,0%,0%)"/>';
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[13]))) {
            _mString = '<polygon points="5,10 11,10 11,11 10,11 10,13 9,13 9,14 8,14 7,14 7,13 6,13 6,11 5,11," fill="hsl(180, 0%, 0%)"/><rect x="7" y="11" width="2" height="2" fill="hsl(4, 74%, 50%)"/>';
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[14]))) {
            _mString = '<polygon points=" 7,10 6,10 6,9 10,9 10,10 11,10 11,12 10,12 10,13 6,13 6,12 5,12 5,10" fill="hsl(180, 0%, 0%)"/><rect x="6" y="10" width="4" height="2" fill="hsl(4, 74%, 50%)"/><rect x="9" y="10" width="1" height="1" fill="hsl(180, 100%, 100%)"/>';
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[15]))) {
             _mString = '<rect x="7" y="10" width="2" height="2" fill="hsl(4, 74%, 50%)"/><rect x="8" y="10" width="1" height="1" fill="hsl(180, 100%, 100%)"/>';
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[16]))) {
            _mString = '<polygon points="6,10 11,10 11,9 10,9 10,12 11,12 11,11 6,11" fill="hsl(180, 0%, 0%)"/>';
        }
        if (keccak256(abi.encodePacked(_trait)) == keccak256(abi.encodePacked(_traitArray[17]))) {
            _mString = '<polygon points="3,8 4,8 4,9 5,9 5,10 6,10 6,9 10,9 10,10 11,10 11,9 12,9 12,8 13,8 13,9 12,9 12,10 11,10 11,12 13,12 13,13 3,13 3,12 5,12 5,10 4,10 4,9 3,9 " fill="hsl(0, 0%, 20%)"/><rect x="6" y="10" width="4" height="2" fill="hsl(53, 12%, 85%)"/>';
        }
        return(_mString,_mJson = _trait);
    }
}
// File: erc721a/contracts/IERC721A.sol


// ERC721A Contracts v4.0.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of an ERC721A compliant contract.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

    /**
     * The caller cannot approve to the current owner.
     */
    error ApprovalToCurrentOwner();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     *
     * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens.
     */
    function totalSupply() external view returns (uint256);

    // ==============================
    //            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);

    // ==============================
    //            IERC721
    // ==============================

    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must 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 Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

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

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

    // ==============================
    //        IERC721Metadata
    // ==============================

    /**
     * @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: erc721a/contracts/ERC721A.sol


// ERC721A Contracts v4.0.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;


/**
 * @dev ERC721 token receiver interface.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Mask of an entry in packed address data.
    uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant BITMASK_BURNED = 1 << 224;
    
    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The tokenId of the next token to be minted.
    uint256 private _currentIndex;

    // The number of tokens burned.
    uint256 private _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See `_packedOwnershipOf` implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

    // 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;

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    /**
     * @dev Returns the starting token ID. 
     * To change the starting token ID, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count. 
     * To get the total number of tokens minted, please see `_totalMinted`.
     */
    function totalSupply() public view override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * @dev Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to `_startTokenId()`
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view returns (uint256) {
        return _burnCounter;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes of the XOR of
        // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165
        // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return uint64(_packedAddressData[owner] >> BITPOS_AUX);
    }

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        assembly { // Cast aux without masking.
            auxCasted := aux
        }
        packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an ownership that has an address and is not burned
                        // before an ownership that does not have an address and is not burned.
                        // Hence, curr will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed is zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP);
        ownership.burned = packed & BITMASK_BURNED != 0;
    }

    /**
     * Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @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) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

    /**
     * @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 Casts the address to uint256 without masking.
     */
    function _addressToUint256(address value) private pure returns (uint256 result) {
        assembly {
            result := value
        }
    }

    /**
     * @dev Casts the boolean to uint256 without branching.
     */
    function _boolToUint256(bool value) private pure returns (uint256 result) {
        assembly {
            result := value
        }
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = address(uint160(_packedOwnershipOf(tokenId)));
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSenderERC721A() != owner)
            if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                revert ApprovalCallerNotOwnerNorApproved();
            }

        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        if (operator == _msgSenderERC721A()) revert ApproveToCaller();

        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), 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 {
        _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 {
        _transfer(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @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`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement
     *   {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the balance and number minted.
            _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (to.code.length != 0) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex < end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex < end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 quantity) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the balance and number minted.
            _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            do {
                emit Transfer(address(0), to, updatedIndex++);
            } while (updatedIndex < end);

            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) private {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSenderERC721A() == from ||
            isApprovedForAll(from, _msgSenderERC721A()) ||
            getApproved(tokenId) == _msgSenderERC721A());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                BITMASK_NEXT_INITIALIZED;

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = address(uint160(prevOwnershipPacked));

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSenderERC721A() == from ||
                isApprovedForAll(from, _msgSenderERC721A()) ||
                getApproved(tokenId) == _msgSenderERC721A());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] =
                _addressToUint256(from) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                BITMASK_BURNED | 
                BITMASK_NEXT_INITIALIZED;

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     * And also called after one token has been burned.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function _toString(uint256 value) internal pure returns (string memory ptr) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), 
            // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged.
            // We will need 1 32-byte word to store the length, 
            // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128.
            ptr := add(mload(0x40), 128)
            // Update the free memory pointer to allocate.
            mstore(0x40, ptr)

            // Cache the end of the memory to calculate the length later.
            let end := ptr

            // We write the string from the rightmost digit to the leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // Costs a bit more than early returning for the zero case,
            // but cheaper in terms of deployment and overall runtime costs.
            for { 
                // Initialize and perform the first pass without check.
                let temp := value
                // Move the pointer 1 byte leftwards to point to an empty character slot.
                ptr := sub(ptr, 1)
                // Write the character to the pointer. 48 is the ASCII index of '0'.
                mstore8(ptr, add(48, mod(temp, 10)))
                temp := div(temp, 10)
            } temp { 
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
            } { // Body of the for loop.
                ptr := sub(ptr, 1)
                mstore8(ptr, add(48, mod(temp, 10)))
            }
            
            let length := sub(end, ptr)
            // Move the pointer 32 bytes leftwards to make room for the length.
            ptr := sub(ptr, 32)
            // Store the length.
            mstore(ptr, length)
        }
    }
}

// File: @openzeppelin/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;


/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

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

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



pragma solidity 0.8.15;






contract PixelTags is ERC721A, Ownable {
    //---------- Vars ----------//
    address public contractCreator;
    address public pixelRoyale;
    uint256 public constant MAXTAGS = 4443;
    string private baseURI;
    //---------- On-Chain Gen Art ----------//
    uint16 private pixelIndex = 1;
    mapping(uint256 => uint32) private pixelTags;
    //---------- Metadata Snippets ----------//
    string private comb1 = '","description": "4443 On-Chain PixelTags given out for confirmed kills in the PixelRoyale BATTLE GAME. Collect the PixelTags for a chance to win 10% of the PixelRoyale prize pool!","external_url": "https://pixelroyale.xyz/","attributes": [{"trait_type": "Background","value": "';
    string private comb2 = '"},{"trait_type": "Base","value": "';
    string private comb3 = '"},{"trait_type": "Soul","value": "';
    string private comb4 = '"},{"trait_type": "Accessoire","value": "';
    string private comb5 = '"},{"trait_type": "Mouth","value": "';
    string private comb6 = '"},{"trait_type": "Eyes","value": "';
    string private comb7 = '"}],"image": "data:image/svg+xml;base64,';
    string private comb8 = '"}';
    //---------- Trait Names ----------//
    string[4] maTrait = ["Ag", "Au", "Pt", "Rn"];

    //---------- Construct ERC721A TOKEN ----------//
    constructor() ERC721A("PixelTags BATTLE GAME", "PTBG") {
      contractCreator = msg.sender;
    }

    function _startTokenId() internal view virtual override returns (uint256) {
      return 1;
    }

    //---------------------------------------------------------------------------------------------
    //---------- MINT FUNCTIONS ----------//
    //---------- Set Origin Contract ----------//
    function setMintContract(address _addr) external onlyOwner {
      pixelRoyale = _addr;
    }

    //---------- Mint PixelTag ----------//
    function mintPixelTag(address _receiver) external {
        require(msg.sender == pixelRoyale, "Only Contract can mint");
        uint256 total = totalSupply();
        require(total < MAXTAGS, "The GAME has most likely concluded");
        // Mint
        _safeMint(_receiver, 1);
        pixelTags[pixelIndex] = uint32(bytes4(keccak256(abi.encodePacked(block.timestamp, pixelIndex, msg.sender))));
        pixelIndex++;
    }

    //---------------------------------------------------------------------------------------------
    //---------- METADATA GENERATION ----------//

    function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) {
        require(_exists(_tokenId), 'There is no Token with that ID');
        //Start JSON and SVG Generation by creating file headers
        bytes memory json = abi.encodePacked('{"name": "Pixel Tag #',Strings.toString(_tokenId)); // --> JSON HEADER
        bytes memory img = abi.encodePacked('<svg xmlns="http://www.w3.org/2000/svg" witdh="640" height="640" viewBox="0 0 16 16">'); // --> SVG HEADER
        uint32 seed = pixelTags[_tokenId];
        //Init Trait Strings
        string memory trait1;
        string memory trait2;
        string memory svg2;
        string memory trait3;
        string memory svg3;
        string memory trait4;
        string memory svg4;
        //Init Color Strings 
        string memory basePrimeCol;
        string memory baseSecondCol;
        string memory backgroundColor = Strings.toString((seed%36)*10); 
        string memory soulColor =  Strings.toString((seed%72)*5);

        // ------ BASE COLOR TRAIT ----- //
        if(seed%99==0) { //--> 1%
            trait1 = maTrait[3];
            basePrimeCol ="179,24%,61%";
            baseSecondCol = "179,100%,86%";
        }
        else if(seed%99>=1 && seed%99<=5) { //--> 5%
            trait1 = maTrait[2];
            basePrimeCol ="180,6%,57%";
            baseSecondCol = "178,53%,88%";
        }
        else if(seed%99>=6 && seed%99<=20) { //--> 15%
            trait1 = maTrait[1];
            basePrimeCol ="46,67%,48%";
            baseSecondCol = "46,100%,70%";
        }
        else { //--> 79%
            trait1 = maTrait[0];
            basePrimeCol ="180,2%,40%";
            baseSecondCol = "180,2%,80%";
        }

        // ------ ACCESSORY TRAIT ----- //
        if(seed%99>=75) { //--> 24%
            (svg2,trait2) = ("","None");
        }
        else { //--> 76%
            (svg2,trait2) = TraitAssembly.choseA(seed);
        }

        // ------ MOUTH TRAIT ----- //
        (svg3,trait3) = TraitAssembly.choseM(seed);

        // ------ EYE TRAIT ----- //
        (svg4,trait4) = TraitAssembly.choseE(seed);

        // ----- JSON ASSEMBLY ------//
        json = abi.encodePacked(json,comb1,backgroundColor);
        json = abi.encodePacked(json,comb2,trait1);
        json = abi.encodePacked(json,comb3,soulColor);
        json = abi.encodePacked(json,comb4,trait2);
        json = abi.encodePacked(json,comb5,trait3);
        json = abi.encodePacked(json,comb6,trait4);

        // ----- SVG ASSEMBLY ------//
        //BACKGROUND//
        img = abi.encodePacked(img, '<rect x="0" y="0" width="16" height="16" fill="hsl(',backgroundColor,',100%,90%)"/>');
        //BASE// 
        img = abi.encodePacked(img, '<polygon points="5,1 5,2 4,2 4,3 3,3 3,4 3,13 4,13 4,14 5,14 5,15 11,15 11,14 12,14 12,13 13,13 13,3 12,3 12,2 11,2 11,1" fill="hsl(',basePrimeCol,')"/>');  // --> Outline
        img = abi.encodePacked(img, '<polygon points="5,2 5,3 4,3 4,3 4,3 4,4 4,13 5,13 5,14 6,14 6,14 11,14 11,13 11,13 12,13 12,3 11,3 11,2 11,2" fill="hsl(',baseSecondCol,')"/>'); //--> Inner
        //ACCESSORY
        img = abi.encodePacked(img, svg2);
        //MOUTH
        img = abi.encodePacked(img, svg3);
        //EYES
        img = abi.encodePacked(img, svg4);
        // ----- CLOSE OFF SVG AND JSON ASSEMBLY ------//
        img = abi.encodePacked(img, '</svg>');
        json = abi.encodePacked(json,comb7,Base64.encode(img),comb8);
        // ----- RETURN BASE64 ENCODED METADATA ------//
        return string(abi.encodePacked('data:application/json;base64,', Base64.encode(json)));
    }
}
//---------------------------------------------------------------------------------------------
//---------- LAY OUT INTERFACE ----------//
interface InterfacePixelTags {
    function mintPixelTag(address _receiver) external;
    function ownerOf(uint256 tokenId) external view returns (address);
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAXTAGS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractCreator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"}],"name":"mintPixelTag","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pixelRoyale","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setMintContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

600c805461ffff191660011790556101c060405261011660808181529062002ab460a039600e906200003290826200044b565b50604051806060016040528060238152602001620029fe60239139600f906200005c90826200044b565b5060405180606001604052806023815260200162002a6e602391396010906200008690826200044b565b5060405180606001604052806029815260200162002a2160299139601190620000b090826200044b565b5060405180606001604052806024815260200162002a4a60249139601290620000da90826200044b565b5060405180606001604052806023815260200162002a91602391396013906200010490826200044b565b50604051806060016040528060288152602001620029d6602891396014906200012e90826200044b565b50604080518082019091526002815261227d60f01b60208201526015906200015790826200044b565b506040805160c08101825260026080820181815261416760f01b60a084015282528251808401845281815261417560f01b602082810191909152808401919091528351808501855282815261141d60f21b8183015283850152835180850190945290835261293760f11b908301526060810191909152620001dd906016906004620002dc565b50348015620001eb57600080fd5b506040518060400160405280601581526020017f506978656c5461677320424154544c452047414d450000000000000000000000815250604051806040016040528060048152602001635054424760e01b81525081600290816200025091906200044b565b5060036200025f82826200044b565b505060016000555062000272336200028a565b600980546001600160a01b0319163317905562000517565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82600481019282156200031a579160200282015b828111156200031a57825182906200030990826200044b565b5091602001919060010190620002f0565b50620003289291506200032c565b5090565b80821115620003285760006200034382826200034d565b506001016200032c565b5080546200035b90620003bc565b6000825580601f106200036c575050565b601f0160209004906000526020600020908101906200038c91906200038f565b50565b5b8082111562000328576000815560010162000390565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620003d157607f821691505b602082108103620003f257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200044657600081815260208120601f850160051c81016020861015620004215750805b601f850160051c820191505b8181101562000442578281556001016200042d565b5050505b505050565b81516001600160401b03811115620004675762000467620003a6565b6200047f81620004788454620003bc565b84620003f8565b602080601f831160018114620004b757600084156200049e5750858301515b600019600386901b1c1916600185901b17855562000442565b600085815260208120601f198616915b82811015620004e857888601518255948401946001909101908401620004c7565b5085821015620005075787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6124af80620005276000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c806370a08231116100b8578063a22cb4651161007c578063a22cb4651461028d578063b88d4fde146102a0578063c87b56dd146102b3578063d8d44834146102c6578063e985e9c5146102d9578063f2fde38b1461031557600080fd5b806370a0823114610246578063715018a614610259578063799e575a146102615780638da5cb5b1461027457806395d89b411461028557600080fd5b80631e2f73b11161010a5780631e2f73b1146101de57806323b872dd146101f157806342842e0e146102045780634e1aadeb146102175780635fb64a6a146102205780636352211e1461023357600080fd5b806301ffc9a71461014757806306fdde031461016f578063081812fc14610184578063095ea7b3146101af57806318160ddd146101c4575b600080fd5b61015a610155366004611a70565b610328565b60405190151581526020015b60405180910390f35b61017761037a565b6040516101669190611ae5565b610197610192366004611af8565b61040c565b6040516001600160a01b039091168152602001610166565b6101c26101bd366004611b2d565b610450565b005b60015460005403600019015b604051908152602001610166565b600954610197906001600160a01b031681565b6101c26101ff366004611b57565b610522565b6101c2610212366004611b57565b610532565b6101d061115b81565b6101c261022e366004611b93565b61054d565b610197610241366004611af8565b6105a2565b6101d0610254366004611b93565b6105ad565b6101c26105fc565b6101c261026f366004611b93565b610632565b6008546001600160a01b0316610197565b6101776107b2565b6101c261029b366004611bae565b6107c1565b6101c26102ae366004611c59565b610856565b6101776102c1366004611af8565b6108a0565b600a54610197906001600160a01b031681565b61015a6102e7366004611d04565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6101c2610323366004611b93565b611237565b60006301ffc9a760e01b6001600160e01b03198316148061035957506380ac58cd60e01b6001600160e01b03198316145b806103745750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461038990611d37565b80601f01602080910402602001604051908101604052809291908181526020018280546103b590611d37565b80156104025780601f106103d757610100808354040283529160200191610402565b820191906000526020600020905b8154815290600101906020018083116103e557829003601f168201915b5050505050905090565b6000610417826112d2565b610434576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061045b82611307565b9050806001600160a01b0316836001600160a01b03160361048f5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146104c6576104a981336102e7565b6104c6576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b61052d83838361137d565b505050565b61052d83838360405180602001604052806000815250610856565b6008546001600160a01b031633146105805760405162461bcd60e51b815260040161057790611d71565b60405180910390fd5b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600061037482611307565b60006001600160a01b0382166105d6576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146106265760405162461bcd60e51b815260040161057790611d71565b6106306000611524565b565b600a546001600160a01b031633146106855760405162461bcd60e51b815260206004820152601660248201527513db9b1e4810dbdb9d1c9858dd0818d85b881b5a5b9d60521b6044820152606401610577565b600061069a6001546000546000199190030190565b905061115b81106106f85760405162461bcd60e51b815260206004820152602260248201527f5468652047414d4520686173206d6f7374206c696b656c7920636f6e636c7564604482015261195960f21b6064820152608401610577565b610703826001611576565b600c546040805142602082015260f09290921b6001600160f01b031916908201523360601b6bffffffffffffffffffffffff1916604282015260560160408051601f198184030181529181528151602092830120600c805461ffff9081166000908152600d909552928420805463ffffffff191660e09390931c9290921790915580549091169161079383611dbc565b91906101000a81548161ffff021916908361ffff160217905550505050565b60606003805461038990611d37565b336001600160a01b038316036107ea5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61086184848461137d565b6001600160a01b0383163b1561089a5761087d84848484611594565b61089a576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606108ab826112d2565b6108f75760405162461bcd60e51b815260206004820152601e60248201527f5468657265206973206e6f20546f6b656e2077697468207468617420494400006044820152606401610577565b600061090283611680565b6040516020016109129190611ddd565b6040516020818303038152906040529050600060405160200161099c907f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222077697464683d2236343022206865696768743d2236343022602082015274103b34b2bba137bc1e9118101810189b10189b111f60591b604082015260550190565b60408051601f198184030181529181526000868152600d6020529081205491925063ffffffff90911690606090819081908190819081908190819081906109fd6109e760248d611e31565b6109f290600a611e54565b63ffffffff16611680565b90506000610a1a610a0f60488e611e31565b6109f2906005611e54565b9050610a2760638d611e31565b63ffffffff16600003610b135760198054610a4190611d37565b80601f0160208091040260200160405190810160405280929190818152602001828054610a6d90611d37565b8015610aba5780601f10610a8f57610100808354040283529160200191610aba565b820191906000526020600020905b815481529060010190602001808311610a9d57829003601f168201915b50505050509a506040518060400160405280600b81526020016a3137392c3234252c36312560a81b81525093506040518060400160405280600c81526020016b3137392c313030252c38362560a01b8152509250610e13565b6001610b2060638e611e31565b63ffffffff1610158015610b4557506005610b3c60638e611e31565b63ffffffff1611155b15610c275760188054610b5790611d37565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8390611d37565b8015610bd05780601f10610ba557610100808354040283529160200191610bd0565b820191906000526020600020905b815481529060010190602001808311610bb357829003601f168201915b50505050509a506040518060400160405280600a8152602001693138302c36252c35372560b01b81525093506040518060400160405280600b81526020016a3137382c3533252c38382560a81b8152509250610e13565b6006610c3460638e611e31565b63ffffffff1610158015610c5957506014610c5060638e611e31565b63ffffffff1611155b15610d3b5760178054610c6b90611d37565b80601f0160208091040260200160405190810160405280929190818152602001828054610c9790611d37565b8015610ce45780601f10610cb957610100808354040283529160200191610ce4565b820191906000526020600020905b815481529060010190602001808311610cc757829003601f168201915b50505050509a506040518060400160405280600a81526020016934362c3637252c34382560b01b81525093506040518060400160405280600b81526020016a34362c313030252c37302560a81b8152509250610e13565b60168054610d4890611d37565b80601f0160208091040260200160405190810160405280929190818152602001828054610d7490611d37565b8015610dc15780601f10610d9657610100808354040283529160200191610dc1565b820191906000526020600020905b815481529060010190602001808311610da457829003601f168201915b50505050509a506040518060400160405280600a8152602001693138302c32252c34302560b01b81525093506040518060400160405280600a8152602001693138302c32252c38302560b01b81525092505b604b610e2060638e611e31565b63ffffffff1610610e5c57604080516020808201835260008252825180840190935260048352634e6f6e6560e01b90830152909a509850610ede565b604051630367b2b760e41b815263ffffffff8d16600482015273f86fa63ac8f750bc45dd61d607a10014a03344d99063367b2b7090602401600060405180830381865af4158015610eb1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610ed99190810190611edb565b9a5098505b60405163da9a025760e01b815263ffffffff8d16600482015273f86fa63ac8f750bc45dd61d607a10014a03344d99063da9a025790602401600060405180830381865af4158015610f33573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610f5b9190810190611edb565b604051637297035360e01b815263ffffffff8f16600482015290995090975073f86fa63ac8f750bc45dd61d607a10014a03344d990637297035390602401600060405180830381865af4158015610fb6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610fde9190810190611edb565b604051909750909550610ffa908f90600e908590602001611fdc565b6040516020818303038152906040529d508d600f8c60405160200161102193929190611fdc565b6040516020818303038152906040529d508d60108260405160200161104893929190611fdc565b6040516020818303038152906040529d508d60118b60405160200161106f93929190611fdc565b6040516020818303038152906040529d508d60128960405160200161109693929190611fdc565b6040516020818303038152906040529d508d6013876040516020016110bd93929190611fdc565b6040516020818303038152906040529d508c826040516020016110e1929190612016565b6040516020818303038152906040529c508c846040516020016111059291906120a5565b6040516020818303038152906040529c508c8360405160200161112992919061218e565b6040516020818303038152906040529c508c8960405160200161114d92919061226a565b6040516020818303038152906040529c508c8760405160200161117192919061226a565b6040516020818303038152906040529c508c8560405160200161119592919061226a565b6040516020818303038152906040529c508c6040516020016111b79190612299565b6040516020818303038152906040529c508d60146111d48f611781565b60156040516020016111e994939291906122c3565b6040516020818303038152906040529d506112038e611781565b604051602001611213919061230b565b6040516020818303038152906040529e505050505050505050505050505050919050565b6008546001600160a01b031633146112615760405162461bcd60e51b815260040161057790611d71565b6001600160a01b0381166112c65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610577565b6112cf81611524565b50565b6000816001111580156112e6575060005482105b8015610374575050600090815260046020526040902054600160e01b161590565b60008180600111611364576000548110156113645760008181526004602052604081205490600160e01b82169003611362575b8060000361135b57506000190160008181526004602052604090205461133a565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b600061138882611307565b9050836001600160a01b0316816001600160a01b0316146113bb5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806113d957506113d985336102e7565b806113f45750336113e98461040c565b6001600160a01b0316145b90508061141457604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661143b57604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091528120600160e11b4260a01b87178117909155831690036114dc576001830160008181526004602052604081205490036114da5760005481146114da5760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6115908282604051806020016040528060008152506118e6565b5050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906115c9903390899088908890600401612350565b6020604051808303816000875af1925050508015611604575060408051601f3d908101601f191682019092526116019181019061238d565b60015b611662573d808015611632576040519150601f19603f3d011682016040523d82523d6000602084013e611637565b606091505b50805160000361165a576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060816000036116a75750506040805180820190915260018152600360fc1b602082015290565b8160005b81156116d157806116bb816123aa565b91506116ca9050600a836123c3565b91506116ab565b60008167ffffffffffffffff8111156116ec576116ec611bea565b6040519080825280601f01601f191660200182016040528015611716576020820181803683370190505b5090505b84156116785761172b6001836123d7565b9150611738600a866123ee565b611743906030612402565b60f81b81838151811061175857611758611e80565b60200101906001600160f81b031916908160001a90535061177a600a866123c3565b945061171a565b606081516000036117a057505060408051602081019091526000815290565b600060405180606001604052806040815260200161243a60409139905060006003845160026117cf9190612402565b6117d991906123c3565b6117e490600461241a565b905060006117f3826020612402565b67ffffffffffffffff81111561180b5761180b611bea565b6040519080825280601f01601f191660200182016040528015611835576020820181803683370190505b509050818152600183018586518101602084015b818310156118a1576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825350600101611849565b6003895106600181146118bb57600281146118cc576118d8565b613d3d60f01b6001198301526118d8565b603d60f81b6000198301525b509398975050505050505050565b6000546001600160a01b03841661190f57604051622e076360e81b815260040160405180910390fd5b826000036119305760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03841660008181526005602090815260408083208054680100000000000000018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b15611a05575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46119ce6000878480600101955087611594565b6119eb576040516368d2bf6b60e11b815260040160405180910390fd5b808210611983578260005414611a0057600080fd5b611a4a565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210611a06575b50600090815561089a9085838684565b6001600160e01b0319811681146112cf57600080fd5b600060208284031215611a8257600080fd5b813561135b81611a5a565b60005b83811015611aa8578181015183820152602001611a90565b8381111561089a5750506000910152565b60008151808452611ad1816020860160208601611a8d565b601f01601f19169290920160200192915050565b60208152600061135b6020830184611ab9565b600060208284031215611b0a57600080fd5b5035919050565b80356001600160a01b0381168114611b2857600080fd5b919050565b60008060408385031215611b4057600080fd5b611b4983611b11565b946020939093013593505050565b600080600060608486031215611b6c57600080fd5b611b7584611b11565b9250611b8360208501611b11565b9150604084013590509250925092565b600060208284031215611ba557600080fd5b61135b82611b11565b60008060408385031215611bc157600080fd5b611bca83611b11565b915060208301358015158114611bdf57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611c2957611c29611bea565b604052919050565b600067ffffffffffffffff821115611c4b57611c4b611bea565b50601f01601f191660200190565b60008060008060808587031215611c6f57600080fd5b611c7885611b11565b9350611c8660208601611b11565b925060408501359150606085013567ffffffffffffffff811115611ca957600080fd5b8501601f81018713611cba57600080fd5b8035611ccd611cc882611c31565b611c00565b818152886020838501011115611ce257600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b60008060408385031215611d1757600080fd5b611d2083611b11565b9150611d2e60208401611b11565b90509250929050565b600181811c90821680611d4b57607f821691505b602082108103611d6b57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600061ffff808316818103611dd357611dd3611da6565b6001019392505050565b747b226e616d65223a2022506978656c20546167202360581b81528151600090611e0e816015850160208701611a8d565b9190910160150192915050565b634e487b7160e01b600052601260045260246000fd5b600063ffffffff80841680611e4857611e48611e1b565b92169190910692915050565b600063ffffffff80831681851681830481118215151615611e7757611e77611da6565b02949350505050565b634e487b7160e01b600052603260045260246000fd5b600082601f830112611ea757600080fd5b8151611eb5611cc882611c31565b818152846020838601011115611eca57600080fd5b611678826020830160208701611a8d565b60008060408385031215611eee57600080fd5b825167ffffffffffffffff80821115611f0657600080fd5b611f1286838701611e96565b93506020850151915080821115611f2857600080fd5b50611f3585828601611e96565b9150509250929050565b8054600090600181811c9080831680611f5957607f831692505b60208084108203611f7a57634e487b7160e01b600052602260045260246000fd5b818015611f8e5760018114611fa357611fd0565b60ff1986168952841515850289019650611fd0565b60008881526020902060005b86811015611fc85781548b820152908501908301611faf565b505084890196505b50505050505092915050565b60008451611fee818460208901611a8d565b611ffa81840186611f3f565b9050835161200c818360208801611a8d565b0195945050505050565b60008351612028818460208801611a8d565b80830190507f3c7265637420783d22302220793d2230222077696474683d22313622206865698152720ced0e87a44626c4440ccd2d8d87a44d0e6d85606b1b6020820152835161207f816033840160208801611a8d565b6c1618981812961c98129491179f60991b60339290910191820152604001949350505050565b600083516120b7818460208801611a8d565b80830190507f3c706f6c79676f6e20706f696e74733d22352c3120352c3220342c3220342c3381527f20332c3320332c3420332c313320342c313320342c313420352c313420352c3160208201527f352031312c31352031312c31342031322c31342031322c31332031332c31332060408201527f31332c332031322c332031322c322031312c322031312c31222066696c6c3d226060820152630d0e6d8560e31b60808201528351612171816084840160208801611a8d565b631491179f60e11b60849290910191820152608801949350505050565b600083516121a0818460208801611a8d565b80830190507f3c706f6c79676f6e20706f696e74733d22352c3220352c3320342c3320342c3381527f20342c3320342c3420342c313320352c313320352c313420362c313420362c3160208201527f342031312c31342031312c31332031312c31332031322c31332031322c33203160408201527f312c332031312c322031312c32222066696c6c3d2268736c28000000000000006060820152835161224d816079840160208801611a8d565b631491179f60e11b60799290910191820152607d01949350505050565b6000835161227c818460208801611a8d565b835190830190612290818360208801611a8d565b01949350505050565b600082516122ab818460208701611a8d565b651e17b9bb339f60d11b920191825250600601919050565b600085516122d5818460208a01611a8d565b6122e181840187611f3f565b905084516122f3818360208901611a8d565b6122ff81830186611f3f565b98975050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161234381601d850160208701611a8d565b91909101601d0192915050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061238390830184611ab9565b9695505050505050565b60006020828403121561239f57600080fd5b815161135b81611a5a565b6000600182016123bc576123bc611da6565b5060010190565b6000826123d2576123d2611e1b565b500490565b6000828210156123e9576123e9611da6565b500390565b6000826123fd576123fd611e1b565b500690565b6000821982111561241557612415611da6565b500190565b600081600019048311821515161561243457612434611da6565b50029056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122080ceebccd5f6c5cc81929356e35cc0a49a191c3bc9f75e2844b88b44756e6e9264736f6c634300080f0033227d5d2c22696d616765223a2022646174613a696d6167652f7376672b786d6c3b6261736536342c227d2c7b2274726169745f74797065223a202242617365222c2276616c7565223a2022227d2c7b2274726169745f74797065223a20224163636573736f697265222c2276616c7565223a2022227d2c7b2274726169745f74797065223a20224d6f757468222c2276616c7565223a2022227d2c7b2274726169745f74797065223a2022536f756c222c2276616c7565223a2022227d2c7b2274726169745f74797065223a202245796573222c2276616c7565223a2022222c226465736372697074696f6e223a202234343433204f6e2d436861696e20506978656c5461677320676976656e206f757420666f7220636f6e6669726d6564206b696c6c7320696e2074686520506978656c526f79616c6520424154544c452047414d452e20436f6c6c6563742074686520506978656c5461677320666f722061206368616e636520746f2077696e20313025206f662074686520506978656c526f79616c65207072697a6520706f6f6c21222c2265787465726e616c5f75726c223a202268747470733a2f2f706978656c726f79616c652e78797a2f222c2261747472696275746573223a205b7b2274726169745f74797065223a20224261636b67726f756e64222c2276616c7565223a2022

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101425760003560e01c806370a08231116100b8578063a22cb4651161007c578063a22cb4651461028d578063b88d4fde146102a0578063c87b56dd146102b3578063d8d44834146102c6578063e985e9c5146102d9578063f2fde38b1461031557600080fd5b806370a0823114610246578063715018a614610259578063799e575a146102615780638da5cb5b1461027457806395d89b411461028557600080fd5b80631e2f73b11161010a5780631e2f73b1146101de57806323b872dd146101f157806342842e0e146102045780634e1aadeb146102175780635fb64a6a146102205780636352211e1461023357600080fd5b806301ffc9a71461014757806306fdde031461016f578063081812fc14610184578063095ea7b3146101af57806318160ddd146101c4575b600080fd5b61015a610155366004611a70565b610328565b60405190151581526020015b60405180910390f35b61017761037a565b6040516101669190611ae5565b610197610192366004611af8565b61040c565b6040516001600160a01b039091168152602001610166565b6101c26101bd366004611b2d565b610450565b005b60015460005403600019015b604051908152602001610166565b600954610197906001600160a01b031681565b6101c26101ff366004611b57565b610522565b6101c2610212366004611b57565b610532565b6101d061115b81565b6101c261022e366004611b93565b61054d565b610197610241366004611af8565b6105a2565b6101d0610254366004611b93565b6105ad565b6101c26105fc565b6101c261026f366004611b93565b610632565b6008546001600160a01b0316610197565b6101776107b2565b6101c261029b366004611bae565b6107c1565b6101c26102ae366004611c59565b610856565b6101776102c1366004611af8565b6108a0565b600a54610197906001600160a01b031681565b61015a6102e7366004611d04565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6101c2610323366004611b93565b611237565b60006301ffc9a760e01b6001600160e01b03198316148061035957506380ac58cd60e01b6001600160e01b03198316145b806103745750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461038990611d37565b80601f01602080910402602001604051908101604052809291908181526020018280546103b590611d37565b80156104025780601f106103d757610100808354040283529160200191610402565b820191906000526020600020905b8154815290600101906020018083116103e557829003601f168201915b5050505050905090565b6000610417826112d2565b610434576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061045b82611307565b9050806001600160a01b0316836001600160a01b03160361048f5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146104c6576104a981336102e7565b6104c6576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b61052d83838361137d565b505050565b61052d83838360405180602001604052806000815250610856565b6008546001600160a01b031633146105805760405162461bcd60e51b815260040161057790611d71565b60405180910390fd5b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600061037482611307565b60006001600160a01b0382166105d6576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146106265760405162461bcd60e51b815260040161057790611d71565b6106306000611524565b565b600a546001600160a01b031633146106855760405162461bcd60e51b815260206004820152601660248201527513db9b1e4810dbdb9d1c9858dd0818d85b881b5a5b9d60521b6044820152606401610577565b600061069a6001546000546000199190030190565b905061115b81106106f85760405162461bcd60e51b815260206004820152602260248201527f5468652047414d4520686173206d6f7374206c696b656c7920636f6e636c7564604482015261195960f21b6064820152608401610577565b610703826001611576565b600c546040805142602082015260f09290921b6001600160f01b031916908201523360601b6bffffffffffffffffffffffff1916604282015260560160408051601f198184030181529181528151602092830120600c805461ffff9081166000908152600d909552928420805463ffffffff191660e09390931c9290921790915580549091169161079383611dbc565b91906101000a81548161ffff021916908361ffff160217905550505050565b60606003805461038990611d37565b336001600160a01b038316036107ea5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61086184848461137d565b6001600160a01b0383163b1561089a5761087d84848484611594565b61089a576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606108ab826112d2565b6108f75760405162461bcd60e51b815260206004820152601e60248201527f5468657265206973206e6f20546f6b656e2077697468207468617420494400006044820152606401610577565b600061090283611680565b6040516020016109129190611ddd565b6040516020818303038152906040529050600060405160200161099c907f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222077697464683d2236343022206865696768743d2236343022602082015274103b34b2bba137bc1e9118101810189b10189b111f60591b604082015260550190565b60408051601f198184030181529181526000868152600d6020529081205491925063ffffffff90911690606090819081908190819081908190819081906109fd6109e760248d611e31565b6109f290600a611e54565b63ffffffff16611680565b90506000610a1a610a0f60488e611e31565b6109f2906005611e54565b9050610a2760638d611e31565b63ffffffff16600003610b135760198054610a4190611d37565b80601f0160208091040260200160405190810160405280929190818152602001828054610a6d90611d37565b8015610aba5780601f10610a8f57610100808354040283529160200191610aba565b820191906000526020600020905b815481529060010190602001808311610a9d57829003601f168201915b50505050509a506040518060400160405280600b81526020016a3137392c3234252c36312560a81b81525093506040518060400160405280600c81526020016b3137392c313030252c38362560a01b8152509250610e13565b6001610b2060638e611e31565b63ffffffff1610158015610b4557506005610b3c60638e611e31565b63ffffffff1611155b15610c275760188054610b5790611d37565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8390611d37565b8015610bd05780601f10610ba557610100808354040283529160200191610bd0565b820191906000526020600020905b815481529060010190602001808311610bb357829003601f168201915b50505050509a506040518060400160405280600a8152602001693138302c36252c35372560b01b81525093506040518060400160405280600b81526020016a3137382c3533252c38382560a81b8152509250610e13565b6006610c3460638e611e31565b63ffffffff1610158015610c5957506014610c5060638e611e31565b63ffffffff1611155b15610d3b5760178054610c6b90611d37565b80601f0160208091040260200160405190810160405280929190818152602001828054610c9790611d37565b8015610ce45780601f10610cb957610100808354040283529160200191610ce4565b820191906000526020600020905b815481529060010190602001808311610cc757829003601f168201915b50505050509a506040518060400160405280600a81526020016934362c3637252c34382560b01b81525093506040518060400160405280600b81526020016a34362c313030252c37302560a81b8152509250610e13565b60168054610d4890611d37565b80601f0160208091040260200160405190810160405280929190818152602001828054610d7490611d37565b8015610dc15780601f10610d9657610100808354040283529160200191610dc1565b820191906000526020600020905b815481529060010190602001808311610da457829003601f168201915b50505050509a506040518060400160405280600a8152602001693138302c32252c34302560b01b81525093506040518060400160405280600a8152602001693138302c32252c38302560b01b81525092505b604b610e2060638e611e31565b63ffffffff1610610e5c57604080516020808201835260008252825180840190935260048352634e6f6e6560e01b90830152909a509850610ede565b604051630367b2b760e41b815263ffffffff8d16600482015273f86fa63ac8f750bc45dd61d607a10014a03344d99063367b2b7090602401600060405180830381865af4158015610eb1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610ed99190810190611edb565b9a5098505b60405163da9a025760e01b815263ffffffff8d16600482015273f86fa63ac8f750bc45dd61d607a10014a03344d99063da9a025790602401600060405180830381865af4158015610f33573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610f5b9190810190611edb565b604051637297035360e01b815263ffffffff8f16600482015290995090975073f86fa63ac8f750bc45dd61d607a10014a03344d990637297035390602401600060405180830381865af4158015610fb6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610fde9190810190611edb565b604051909750909550610ffa908f90600e908590602001611fdc565b6040516020818303038152906040529d508d600f8c60405160200161102193929190611fdc565b6040516020818303038152906040529d508d60108260405160200161104893929190611fdc565b6040516020818303038152906040529d508d60118b60405160200161106f93929190611fdc565b6040516020818303038152906040529d508d60128960405160200161109693929190611fdc565b6040516020818303038152906040529d508d6013876040516020016110bd93929190611fdc565b6040516020818303038152906040529d508c826040516020016110e1929190612016565b6040516020818303038152906040529c508c846040516020016111059291906120a5565b6040516020818303038152906040529c508c8360405160200161112992919061218e565b6040516020818303038152906040529c508c8960405160200161114d92919061226a565b6040516020818303038152906040529c508c8760405160200161117192919061226a565b6040516020818303038152906040529c508c8560405160200161119592919061226a565b6040516020818303038152906040529c508c6040516020016111b79190612299565b6040516020818303038152906040529c508d60146111d48f611781565b60156040516020016111e994939291906122c3565b6040516020818303038152906040529d506112038e611781565b604051602001611213919061230b565b6040516020818303038152906040529e505050505050505050505050505050919050565b6008546001600160a01b031633146112615760405162461bcd60e51b815260040161057790611d71565b6001600160a01b0381166112c65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610577565b6112cf81611524565b50565b6000816001111580156112e6575060005482105b8015610374575050600090815260046020526040902054600160e01b161590565b60008180600111611364576000548110156113645760008181526004602052604081205490600160e01b82169003611362575b8060000361135b57506000190160008181526004602052604090205461133a565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b600061138882611307565b9050836001600160a01b0316816001600160a01b0316146113bb5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806113d957506113d985336102e7565b806113f45750336113e98461040c565b6001600160a01b0316145b90508061141457604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661143b57604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091528120600160e11b4260a01b87178117909155831690036114dc576001830160008181526004602052604081205490036114da5760005481146114da5760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6115908282604051806020016040528060008152506118e6565b5050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906115c9903390899088908890600401612350565b6020604051808303816000875af1925050508015611604575060408051601f3d908101601f191682019092526116019181019061238d565b60015b611662573d808015611632576040519150601f19603f3d011682016040523d82523d6000602084013e611637565b606091505b50805160000361165a576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060816000036116a75750506040805180820190915260018152600360fc1b602082015290565b8160005b81156116d157806116bb816123aa565b91506116ca9050600a836123c3565b91506116ab565b60008167ffffffffffffffff8111156116ec576116ec611bea565b6040519080825280601f01601f191660200182016040528015611716576020820181803683370190505b5090505b84156116785761172b6001836123d7565b9150611738600a866123ee565b611743906030612402565b60f81b81838151811061175857611758611e80565b60200101906001600160f81b031916908160001a90535061177a600a866123c3565b945061171a565b606081516000036117a057505060408051602081019091526000815290565b600060405180606001604052806040815260200161243a60409139905060006003845160026117cf9190612402565b6117d991906123c3565b6117e490600461241a565b905060006117f3826020612402565b67ffffffffffffffff81111561180b5761180b611bea565b6040519080825280601f01601f191660200182016040528015611835576020820181803683370190505b509050818152600183018586518101602084015b818310156118a1576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825350600101611849565b6003895106600181146118bb57600281146118cc576118d8565b613d3d60f01b6001198301526118d8565b603d60f81b6000198301525b509398975050505050505050565b6000546001600160a01b03841661190f57604051622e076360e81b815260040160405180910390fd5b826000036119305760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03841660008181526005602090815260408083208054680100000000000000018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b15611a05575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46119ce6000878480600101955087611594565b6119eb576040516368d2bf6b60e11b815260040160405180910390fd5b808210611983578260005414611a0057600080fd5b611a4a565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210611a06575b50600090815561089a9085838684565b6001600160e01b0319811681146112cf57600080fd5b600060208284031215611a8257600080fd5b813561135b81611a5a565b60005b83811015611aa8578181015183820152602001611a90565b8381111561089a5750506000910152565b60008151808452611ad1816020860160208601611a8d565b601f01601f19169290920160200192915050565b60208152600061135b6020830184611ab9565b600060208284031215611b0a57600080fd5b5035919050565b80356001600160a01b0381168114611b2857600080fd5b919050565b60008060408385031215611b4057600080fd5b611b4983611b11565b946020939093013593505050565b600080600060608486031215611b6c57600080fd5b611b7584611b11565b9250611b8360208501611b11565b9150604084013590509250925092565b600060208284031215611ba557600080fd5b61135b82611b11565b60008060408385031215611bc157600080fd5b611bca83611b11565b915060208301358015158114611bdf57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611c2957611c29611bea565b604052919050565b600067ffffffffffffffff821115611c4b57611c4b611bea565b50601f01601f191660200190565b60008060008060808587031215611c6f57600080fd5b611c7885611b11565b9350611c8660208601611b11565b925060408501359150606085013567ffffffffffffffff811115611ca957600080fd5b8501601f81018713611cba57600080fd5b8035611ccd611cc882611c31565b611c00565b818152886020838501011115611ce257600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b60008060408385031215611d1757600080fd5b611d2083611b11565b9150611d2e60208401611b11565b90509250929050565b600181811c90821680611d4b57607f821691505b602082108103611d6b57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600061ffff808316818103611dd357611dd3611da6565b6001019392505050565b747b226e616d65223a2022506978656c20546167202360581b81528151600090611e0e816015850160208701611a8d565b9190910160150192915050565b634e487b7160e01b600052601260045260246000fd5b600063ffffffff80841680611e4857611e48611e1b565b92169190910692915050565b600063ffffffff80831681851681830481118215151615611e7757611e77611da6565b02949350505050565b634e487b7160e01b600052603260045260246000fd5b600082601f830112611ea757600080fd5b8151611eb5611cc882611c31565b818152846020838601011115611eca57600080fd5b611678826020830160208701611a8d565b60008060408385031215611eee57600080fd5b825167ffffffffffffffff80821115611f0657600080fd5b611f1286838701611e96565b93506020850151915080821115611f2857600080fd5b50611f3585828601611e96565b9150509250929050565b8054600090600181811c9080831680611f5957607f831692505b60208084108203611f7a57634e487b7160e01b600052602260045260246000fd5b818015611f8e5760018114611fa357611fd0565b60ff1986168952841515850289019650611fd0565b60008881526020902060005b86811015611fc85781548b820152908501908301611faf565b505084890196505b50505050505092915050565b60008451611fee818460208901611a8d565b611ffa81840186611f3f565b9050835161200c818360208801611a8d565b0195945050505050565b60008351612028818460208801611a8d565b80830190507f3c7265637420783d22302220793d2230222077696474683d22313622206865698152720ced0e87a44626c4440ccd2d8d87a44d0e6d85606b1b6020820152835161207f816033840160208801611a8d565b6c1618981812961c98129491179f60991b60339290910191820152604001949350505050565b600083516120b7818460208801611a8d565b80830190507f3c706f6c79676f6e20706f696e74733d22352c3120352c3220342c3220342c3381527f20332c3320332c3420332c313320342c313320342c313420352c313420352c3160208201527f352031312c31352031312c31342031322c31342031322c31332031332c31332060408201527f31332c332031322c332031322c322031312c322031312c31222066696c6c3d226060820152630d0e6d8560e31b60808201528351612171816084840160208801611a8d565b631491179f60e11b60849290910191820152608801949350505050565b600083516121a0818460208801611a8d565b80830190507f3c706f6c79676f6e20706f696e74733d22352c3220352c3320342c3320342c3381527f20342c3320342c3420342c313320352c313320352c313420362c313420362c3160208201527f342031312c31342031312c31332031312c31332031322c31332031322c33203160408201527f312c332031312c322031312c32222066696c6c3d2268736c28000000000000006060820152835161224d816079840160208801611a8d565b631491179f60e11b60799290910191820152607d01949350505050565b6000835161227c818460208801611a8d565b835190830190612290818360208801611a8d565b01949350505050565b600082516122ab818460208701611a8d565b651e17b9bb339f60d11b920191825250600601919050565b600085516122d5818460208a01611a8d565b6122e181840187611f3f565b905084516122f3818360208901611a8d565b6122ff81830186611f3f565b98975050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161234381601d850160208701611a8d565b91909101601d0192915050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061238390830184611ab9565b9695505050505050565b60006020828403121561239f57600080fd5b815161135b81611a5a565b6000600182016123bc576123bc611da6565b5060010190565b6000826123d2576123d2611e1b565b500490565b6000828210156123e9576123e9611da6565b500390565b6000826123fd576123fd611e1b565b500690565b6000821982111561241557612415611da6565b500190565b600081600019048311821515161561243457612434611da6565b50029056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122080ceebccd5f6c5cc81929356e35cc0a49a191c3bc9f75e2844b88b44756e6e9264736f6c634300080f0033

Libraries Used


Deployed Bytecode Sourcemap

67195:6181:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38457:615;;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;38457:615:0;;;;;;;;43470:100;;;:::i;:::-;;;;;;;:::i;45538:204::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1692:32:1;;;1674:51;;1662:2;1647:18;45538:204:0;1528:203:1;44998:474:0;;;;;;:::i;:::-;;:::i;:::-;;37511:315;68712:1;37777:12;37564:7;37761:13;:28;-1:-1:-1;;37761:46:0;37511:315;;;2319:25:1;;;2307:2;2292:18;37511:315:0;2173:177:1;67277:30:0;;;;;-1:-1:-1;;;;;67277:30:0;;;46424:170;;;;;;:::i;:::-;;:::i;46665:185::-;;;;;;:::i;:::-;;:::i;67347:38::-;;67381:4;67347:38;;68927:95;;;;;;:::i;:::-;;:::i;43259:144::-;;;;;;:::i;:::-;;:::i;39136:224::-;;;;;;:::i;:::-;;:::i;66337:103::-;;;:::i;69075:435::-;;;;;;:::i;:::-;;:::i;65686:87::-;65759:6;;-1:-1:-1;;;;;65759:6:0;65686:87;;43639:104;;;:::i;45814:308::-;;;;;;:::i;:::-;;:::i;46921:396::-;;;;;;:::i;:::-;;:::i;69672:3701::-;;;;;;:::i;:::-;;:::i;67314:26::-;;;;;-1:-1:-1;;;;;67314:26:0;;;46193:164;;;;;;:::i;:::-;-1:-1:-1;;;;;46314:25:0;;;46290:4;46314:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;46193:164;66595:201;;;;;;:::i;:::-;;:::i;38457:615::-;38542:4;-1:-1:-1;;;;;;;;;38842:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;38919:25:0;;;38842:102;:179;;;-1:-1:-1;;;;;;;;;;38996:25:0;;;38842:179;38822:199;38457:615;-1:-1:-1;;38457:615:0:o;43470:100::-;43524:13;43557:5;43550:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43470:100;:::o;45538:204::-;45606:7;45631:16;45639:7;45631;:16::i;:::-;45626:64;;45656:34;;-1:-1:-1;;;45656:34:0;;;;;;;;;;;45626:64;-1:-1:-1;45710:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;45710:24:0;;45538:204::o;44998:474::-;45071:13;45103:27;45122:7;45103:18;:27::i;:::-;45071:61;;45153:5;-1:-1:-1;;;;;45147:11:0;:2;-1:-1:-1;;;;;45147:11:0;;45143:48;;45167:24;;-1:-1:-1;;;45167:24:0;;;;;;;;;;;45143:48;61641:10;-1:-1:-1;;;;;45208:28:0;;;45204:175;;45256:44;45273:5;61641:10;46193:164;:::i;45256:44::-;45251:128;;45328:35;;-1:-1:-1;;;45328:35:0;;;;;;;;;;;45251:128;45391:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;45391:29:0;-1:-1:-1;;;;;45391:29:0;;;;;;;;;45436:28;;45391:24;;45436:28;;;;;;;45060:412;44998:474;;:::o;46424:170::-;46558:28;46568:4;46574:2;46578:7;46558:9;:28::i;:::-;46424:170;;;:::o;46665:185::-;46803:39;46820:4;46826:2;46830:7;46803:39;;;;;;;;;;;;:16;:39::i;68927:95::-;65759:6;;-1:-1:-1;;;;;65759:6:0;61641:10;65906:23;65898:68;;;;-1:-1:-1;;;65898:68:0;;;;;;;:::i;:::-;;;;;;;;;68995:11:::1;:19:::0;;-1:-1:-1;;;;;;68995:19:0::1;-1:-1:-1::0;;;;;68995:19:0;;;::::1;::::0;;;::::1;::::0;;68927:95::o;43259:144::-;43323:7;43366:27;43385:7;43366:18;:27::i;39136:224::-;39200:7;-1:-1:-1;;;;;39224:19:0;;39220:60;;39252:28;;-1:-1:-1;;;39252:28:0;;;;;;;;;;;39220:60;-1:-1:-1;;;;;;39298:25:0;;;;;:18;:25;;;;;;34475:13;39298:54;;39136:224::o;66337:103::-;65759:6;;-1:-1:-1;;;;;65759:6:0;61641:10;65906:23;65898:68;;;;-1:-1:-1;;;65898:68:0;;;;;;;:::i;:::-;66402:30:::1;66429:1;66402:18;:30::i;:::-;66337:103::o:0;69075:435::-;69158:11;;-1:-1:-1;;;;;69158:11:0;69144:10;:25;69136:60;;;;-1:-1:-1;;;69136:60:0;;5940:2:1;69136:60:0;;;5922:21:1;5979:2;5959:18;;;5952:30;-1:-1:-1;;;5998:18:1;;;5991:52;6060:18;;69136:60:0;5738:346:1;69136:60:0;69207:13;69223;68712:1;37777:12;37564:7;37761:13;-1:-1:-1;;37761:28:0;;;:46;;37511:315;69223:13;69207:29;;67381:4;69255:5;:15;69247:62;;;;-1:-1:-1;;;69247:62:0;;6291:2:1;69247:62:0;;;6273:21:1;6330:2;6310:18;;;6303:30;6369:34;6349:18;;;6342:62;-1:-1:-1;;;6420:18:1;;;6413:32;6462:19;;69247:62:0;6089:398:1;69247:62:0;69337:23;69347:9;69358:1;69337:9;:23::i;:::-;69453:10;;69419:57;;;69436:15;69419:57;;;6675:19:1;6750:3;6728:16;;;;-1:-1:-1;;;;;;6728:16:1;6710:12;;;6703:60;69465:10:0;6801:2:1;6797:15;-1:-1:-1;;6793:53:1;6779:12;;;6772:75;6863:12;;69419:57:0;;;-1:-1:-1;;69419:57:0;;;;;;;;;69409:68;;69419:57;69409:68;;;;69381:10;;;;;;;69371:21;;;;:9;:21;;;;;;:108;;-1:-1:-1;;69371:108:0;69395:84;;;;;69371:108;;;;;;;69490:12;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;69125:385;69075:435;:::o;43639:104::-;43695:13;43728:7;43721:14;;;;;:::i;45814:308::-;61641:10;-1:-1:-1;;;;;45913:31:0;;;45909:61;;45953:17;;-1:-1:-1;;;45953:17:0;;;;;;;;;;;45909:61;61641:10;45983:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;45983:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;45983:60:0;;;;;;;;;;46059:55;;540:41:1;;;45983:49:0;;61641:10;46059:55;;513:18:1;46059:55:0;;;;;;;45814:308;;:::o;46921:396::-;47088:28;47098:4;47104:2;47108:7;47088:9;:28::i;:::-;-1:-1:-1;;;;;47131:14:0;;;:19;47127:183;;47170:56;47201:4;47207:2;47211:7;47220:5;47170:30;:56::i;:::-;47165:145;;47254:40;;-1:-1:-1;;;47254:40:0;;;;;;;;;;;47165:145;46921:396;;;;:::o;69672:3701::-;69746:13;69780:17;69788:8;69780:7;:17::i;:::-;69772:60;;;;-1:-1:-1;;;69772:60:0;;7422:2:1;69772:60:0;;;7404:21:1;7461:2;7441:18;;;7434:30;7500:32;7480:18;;;7473:60;7550:18;;69772:60:0;7220:354:1;69772:60:0;69909:17;69970:26;69987:8;69970:16;:26::i;:::-;69929:68;;;;;;;;:::i;:::-;;;;;;;;;;;;;69909:88;;70027:16;70046:105;;;;;;8268:66:1;8256:79;;8365:66;8360:2;8351:12;;8344:88;-1:-1:-1;;;8457:2:1;8448:12;;8441:75;8541:2;8532:12;;8054:496;70046:105:0;;;;-1:-1:-1;;70046:105:0;;;;;;;;;70180:11;70194:19;;;:9;70046:105;70194:19;;;;;70046:105;;-1:-1:-1;70194:19:0;;;;;70254:20;;;;;;;;;;;;;;;;;;70603:30;70621:7;70626:2;70194:19;70621:7;:::i;:::-;70620:12;;70630:2;70620:12;:::i;:::-;70603:30;;:16;:30::i;:::-;70571:62;-1:-1:-1;70645:23:0;70672:29;70690:7;70695:2;70690:4;:7;:::i;:::-;70689:11;;70699:1;70689:11;:::i;70672:29::-;70645:56;-1:-1:-1;70762:7:0;70767:2;70762:4;:7;:::i;:::-;:10;;70771:1;70762:10;70759:682;;70807:10;70798:19;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70832:27;;;;;;;;;;;;;-1:-1:-1;;;70832:27:0;;;;;70874:30;;;;;;;;;;;;;-1:-1:-1;;;70874:30:0;;;;;70759:682;;;70943:1;70934:7;70939:2;70934:4;:7;:::i;:::-;:10;;;;:24;;;;-1:-1:-1;70957:1:0;70948:7;70953:2;70948:4;:7;:::i;:::-;:10;;;;70934:24;70931:510;;;70993:10;70984:19;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71018:26;;;;;;;;;;;;;-1:-1:-1;;;71018:26:0;;;;;71059:29;;;;;;;;;;;;;-1:-1:-1;;;71059:29:0;;;;;70931:510;;;71127:1;71118:7;71123:2;71118:4;:7;:::i;:::-;:10;;;;:25;;;;-1:-1:-1;71141:2:0;71132:7;71137:2;71132:4;:7;:::i;:::-;:11;;;;71118:25;71115:326;;;71179:10;71170:19;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71204:26;;;;;;;;;;;;;-1:-1:-1;;;71204:26:0;;;;;71245:29;;;;;;;;;;;;;-1:-1:-1;;;71245:29:0;;;;;71115:326;;;71335:7;71326:19;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71360:26;;;;;;;;;;;;;-1:-1:-1;;;71360:26:0;;;;;71401:28;;;;;;;;;;;;;-1:-1:-1;;;71401:28:0;;;;;71115:326;71509:2;71500:7;71505:2;71500:4;:7;:::i;:::-;:11;;;71497:174;;71538:27;;;;;;;;;-1:-1:-1;71538:27:0;;;;;;;;;;;;;-1:-1:-1;;;71538:27:0;;;;;;-1:-1:-1;71538:27:0;-1:-1:-1;71497:174:0;;;71633:26;;-1:-1:-1;;;71633:26:0;;9456:10:1;9444:23;;71633:26:0;;;9426:42:1;71633:13:0;;:20;;9399:18:1;;71633:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;71633:26:0;;;;;;;;;;;;:::i;:::-;71617:42;-1:-1:-1;71617:42:0;-1:-1:-1;71497:174:0;71739:26;;-1:-1:-1;;;71739:26:0;;9456:10:1;9444:23;;71739:26:0;;;9426:42:1;71739:13:0;;:20;;9399:18:1;;71739:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;71739:26:0;;;;;;;;;;;;:::i;:::-;71832;;-1:-1:-1;;;71832:26:0;;9456:10:1;9444:23;;71832:26:0;;;9426:42:1;71723::0;;-1:-1:-1;71723:42:0;;-1:-1:-1;71832:13:0;;:20;;9399:18:1;;71832:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;71832:26:0;;;;;;;;;;;;:::i;:::-;71919:44;;71816:42;;-1:-1:-1;71816:42:0;;-1:-1:-1;71919:44:0;;71936:4;;71941:5;;71947:15;;71919:44;;;:::i;:::-;;;;;;;;;;;;;71912:51;;71998:4;72003:5;72009:6;71981:35;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;71974:42;;72051:4;72056:5;72062:9;72034:38;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;72027:45;;72107:4;72112:5;72118:6;72090:35;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;72083:42;;72160:4;72165:5;72171:6;72143:35;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;72136:42;;72213:4;72218:5;72224:6;72196:35;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;72189:42;;72331:3;72390:15;72314:108;;;;;;;;;:::i;:::-;;;;;;;;;;;;;72308:114;;72475:3;72615:12;72458:177;;;;;;;;;:::i;:::-;;;;;;;;;;;;;72452:183;;72685:3;72814:13;72668:167;;;;;;;;;:::i;:::-;;;;;;;;;;;;;72662:173;;72902:3;72907:4;72885:27;;;;;;;;;:::i;:::-;;;;;;;;;;;;;72879:33;;72963:3;72968:4;72946:27;;;;;;;;;:::i;:::-;;;;;;;;;;;;;72940:33;;73023:3;73028:4;73006:27;;;;;;;;;:::i;:::-;;;;;;;;;;;;;73000:33;;73126:3;73109:31;;;;;;;;:::i;:::-;;;;;;;;;;;;;73103:37;;73175:4;73180:5;73186:18;73200:3;73186:13;:18::i;:::-;73205:5;73158:53;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;73151:60;;73344:19;73358:4;73344:13;:19::i;:::-;73294:70;;;;;;;;:::i;:::-;;;;;;;;;;;;;73280:85;;;;;;;;;;;;;;;;69672:3701;;;:::o;66595:201::-;65759:6;;-1:-1:-1;;;;;65759:6:0;61641:10;65906:23;65898:68;;;;-1:-1:-1;;;65898:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;66684:22:0;::::1;66676:73;;;::::0;-1:-1:-1;;;66676:73:0;;17537:2:1;66676:73:0::1;::::0;::::1;17519:21:1::0;17576:2;17556:18;;;17549:30;17615:34;17595:18;;;17588:62;-1:-1:-1;;;17666:18:1;;;17659:36;17712:19;;66676:73:0::1;17335:402:1::0;66676:73:0::1;66760:28;66779:8;66760:18;:28::i;:::-;66595:201:::0;:::o;47572:273::-;47629:4;47685:7;68712:1;47666:26;;:66;;;;;47719:13;;47709:7;:23;47666:66;:152;;;;-1:-1:-1;;47770:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;47770:43:0;:48;;47572:273::o;40774:1129::-;40841:7;40876;;68712:1;40925:23;40921:915;;40978:13;;40971:4;:20;40967:869;;;41016:14;41033:23;;;:17;:23;;;;;;;-1:-1:-1;;;41122:23:0;;:28;;41118:699;;41641:113;41648:6;41658:1;41648:11;41641:113;;-1:-1:-1;;;41719:6:0;41701:25;;;;:17;:25;;;;;;41641:113;;;41787:6;40774:1129;-1:-1:-1;;;40774:1129:0:o;41118:699::-;40993:843;40967:869;41864:31;;-1:-1:-1;;;41864:31:0;;;;;;;;;;;52811:2515;52926:27;52956;52975:7;52956:18;:27::i;:::-;52926:57;;53041:4;-1:-1:-1;;;;;53000:45:0;53016:19;-1:-1:-1;;;;;53000:45:0;;52996:86;;53054:28;;-1:-1:-1;;;53054:28:0;;;;;;;;;;;52996:86;53095:22;61641:10;-1:-1:-1;;;;;53121:27:0;;;;:87;;-1:-1:-1;53165:43:0;53182:4;61641:10;46193:164;:::i;53165:43::-;53121:147;;;-1:-1:-1;61641:10:0;53225:20;53237:7;53225:11;:20::i;:::-;-1:-1:-1;;;;;53225:43:0;;53121:147;53095:174;;53287:17;53282:66;;53313:35;;-1:-1:-1;;;53313:35:0;;;;;;;;;;;53282:66;-1:-1:-1;;;;;53363:16:0;;53359:52;;53388:23;;-1:-1:-1;;;53388:23:0;;;;;;;;;;;53359:52;53540:24;;;;:15;:24;;;;;;;;53533:31;;-1:-1:-1;;;;;;53533:31:0;;;-1:-1:-1;;;;;53932:24:0;;;;;:18;:24;;;;;53930:26;;-1:-1:-1;;53930:26:0;;;54001:22;;;;;;;53999:24;;-1:-1:-1;53999:24:0;;;54294:26;;;:17;:26;;;;;-1:-1:-1;;;54382:15:0;35129:3;54382:41;54340:84;;:128;;54294:174;;;54588:46;;:51;;54584:626;;54692:1;54682:11;;54660:19;54815:30;;;:17;:30;;;;;;:35;;54811:384;;54953:13;;54938:11;:28;54934:242;;55100:30;;;;:17;:30;;;;;:52;;;54934:242;54641:569;54584:626;55257:7;55253:2;-1:-1:-1;;;;;55238:27:0;55247:4;-1:-1:-1;;;;;55238:27:0;;;;;;;;;;;52915:2411;;52811:2515;;;:::o;66956:191::-;67049:6;;;-1:-1:-1;;;;;67066:17:0;;;-1:-1:-1;;;;;;67066:17:0;;;;;;;67099:40;;67049:6;;;67066:17;67049:6;;67099:40;;67030:16;;67099:40;67019:128;66956:191;:::o;47929:104::-;47998:27;48008:2;48012:8;47998:27;;;;;;;;;;;;:9;:27::i;:::-;47929:104;;:::o;59023:716::-;59207:88;;-1:-1:-1;;;59207:88:0;;59186:4;;-1:-1:-1;;;;;59207:45:0;;;;;:88;;61641:10;;59274:4;;59280:7;;59289:5;;59207:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;59207:88:0;;;;;;;;-1:-1:-1;;59207:88:0;;;;;;;;;;;;:::i;:::-;;;59203:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59490:6;:13;59507:1;59490:18;59486:235;;59536:40;;-1:-1:-1;;;59536:40:0;;;;;;;;;;;59486:235;59679:6;59673:13;59664:6;59660:2;59656:15;59649:38;59203:529;-1:-1:-1;;;;;;59366:64:0;-1:-1:-1;;;59366:64:0;;-1:-1:-1;59203:529:0;59023:716;;;;;;:::o;5630:723::-;5686:13;5907:5;5916:1;5907:10;5903:53;;-1:-1:-1;;5934:10:0;;;;;;;;;;;;-1:-1:-1;;;5934:10:0;;;;;5630:723::o;5903:53::-;5981:5;5966:12;6022:78;6029:9;;6022:78;;6055:8;;;;:::i;:::-;;-1:-1:-1;6078:10:0;;-1:-1:-1;6086:2:0;6078:10;;:::i;:::-;;;6022:78;;;6110:19;6142:6;6132:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6132:17:0;;6110:39;;6160:154;6167:10;;6160:154;;6194:11;6204:1;6194:11;;:::i;:::-;;-1:-1:-1;6263:10:0;6271:2;6263:5;:10;:::i;:::-;6250:24;;:2;:24;:::i;:::-;6237:39;;6220:6;6227;6220:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;6220:56:0;;;;;;;;-1:-1:-1;6291:11:0;6300:2;6291:11;;:::i;:::-;;;6160:154;;1034:1912;1092:13;1122:4;:11;1137:1;1122:16;1118:31;;-1:-1:-1;;1140:9:0;;;;;;;;;-1:-1:-1;1140:9:0;;;1034:1912::o;1118:31::-;1201:19;1223:12;;;;;;;;;;;;;;;;;1201:34;;1287:18;1333:1;1314:4;:11;1328:1;1314:15;;;;:::i;:::-;1313:21;;;;:::i;:::-;1308:27;;:1;:27;:::i;:::-;1287:48;-1:-1:-1;1418:20:0;1452:15;1287:48;1465:2;1452:15;:::i;:::-;1441:27;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1441:27:0;;1418:50;;1565:10;1557:6;1550:26;1660:1;1653:5;1649:13;1719:4;1770;1764:11;1755:7;1751:25;1866:2;1858:6;1854:15;1939:754;1958:6;1949:7;1946:19;1939:754;;;2058:1;2049:7;2045:15;2034:26;;2097:7;2091:14;2223:4;2215:5;2211:2;2207:14;2203:25;2193:8;2189:40;2183:47;2172:9;2164:67;2277:1;2266:9;2262:17;2249:30;;2356:4;2348:5;2344:2;2340:14;2336:25;2326:8;2322:40;2316:47;2305:9;2297:67;2410:1;2399:9;2395:17;2382:30;;2489:4;2481:5;2478:1;2473:14;2469:25;2459:8;2455:40;2449:47;2438:9;2430:67;2543:1;2532:9;2528:17;2515:30;;2622:4;2614:5;2602:25;2592:8;2588:40;2582:47;2571:9;2563:67;-1:-1:-1;2676:1:0;2661:17;1939:754;;;2766:1;2759:4;2753:11;2749:19;2787:1;2782:54;;;;2855:1;2850:52;;;;2742:160;;2782:54;-1:-1:-1;;;;;2798:17:0;;2791:43;2782:54;;2850:52;-1:-1:-1;;;;;2866:17:0;;2859:41;2742:160;-1:-1:-1;2932:6:0;;1034:1912;-1:-1:-1;;;;;;;;1034:1912:0:o;48406:2236::-;48529:20;48552:13;-1:-1:-1;;;;;48580:16:0;;48576:48;;48605:19;;-1:-1:-1;;;48605:19:0;;;;;;;;;;;48576:48;48639:8;48651:1;48639:13;48635:44;;48661:18;;-1:-1:-1;;;48661:18:0;;;;;;;;;;;48635:44;-1:-1:-1;;;;;49228:22:0;;;;;;:18;:22;;;;34612:2;49228:22;;;:70;;49266:31;49254:44;;49228:70;;;49541:31;;;:17;:31;;;;;49634:15;35129:3;49634:41;49592:84;;-1:-1:-1;49712:13:0;;35392:3;49697:56;49592:162;49541:213;;:31;;49835:23;;;;49879:14;:19;49875:635;;49919:313;49950:38;;49975:12;;-1:-1:-1;;;;;49950:38:0;;;49967:1;;49950:38;;49967:1;;49950:38;50016:69;50055:1;50059:2;50063:14;;;;;;50079:5;50016:30;:69::i;:::-;50011:174;;50121:40;;-1:-1:-1;;;50121:40:0;;;;;;;;;;;50011:174;50227:3;50212:12;:18;49919:313;;50313:12;50296:13;;:29;50292:43;;50327:8;;;50292:43;49875:635;;;50376:119;50407:40;;50432:14;;;;;-1:-1:-1;;;;;50407:40:0;;;50424:1;;50407:40;;50424:1;;50407:40;50490:3;50475:12;:18;50376:119;;49875:635;-1:-1:-1;50524:13:0;:28;;;50574:60;;50607:2;50611:12;50625:8;50574:60;:::i;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:258::-;664:1;674:113;688:6;685:1;682:13;674:113;;;764:11;;;758:18;745:11;;;738:39;710:2;703:10;674:113;;;805:6;802:1;799:13;796:48;;;-1:-1:-1;;840:1:1;822:16;;815:27;592:258::o;855:::-;897:3;935:5;929:12;962:6;957:3;950:19;978:63;1034:6;1027:4;1022:3;1018:14;1011:4;1004:5;1000:16;978:63;:::i;:::-;1095:2;1074:15;-1:-1:-1;;1070:29:1;1061:39;;;;1102:4;1057:50;;855:258;-1:-1:-1;;855:258:1:o;1118:220::-;1267:2;1256:9;1249:21;1230:4;1287:45;1328:2;1317:9;1313:18;1305:6;1287:45;:::i;1343:180::-;1402:6;1455:2;1443:9;1434:7;1430:23;1426:32;1423:52;;;1471:1;1468;1461:12;1423:52;-1:-1:-1;1494:23:1;;1343:180;-1:-1:-1;1343:180:1:o;1736:173::-;1804:20;;-1:-1:-1;;;;;1853:31:1;;1843:42;;1833:70;;1899:1;1896;1889:12;1833:70;1736:173;;;:::o;1914:254::-;1982:6;1990;2043:2;2031:9;2022:7;2018:23;2014:32;2011:52;;;2059:1;2056;2049:12;2011:52;2082:29;2101:9;2082:29;:::i;:::-;2072:39;2158:2;2143:18;;;;2130:32;;-1:-1:-1;;;1914:254:1:o;2355:328::-;2432:6;2440;2448;2501:2;2489:9;2480:7;2476:23;2472:32;2469:52;;;2517:1;2514;2507:12;2469:52;2540:29;2559:9;2540:29;:::i;:::-;2530:39;;2588:38;2622:2;2611:9;2607:18;2588:38;:::i;:::-;2578:48;;2673:2;2662:9;2658:18;2645:32;2635:42;;2355:328;;;;;:::o;2688:186::-;2747:6;2800:2;2788:9;2779:7;2775:23;2771:32;2768:52;;;2816:1;2813;2806:12;2768:52;2839:29;2858:9;2839:29;:::i;2879:347::-;2944:6;2952;3005:2;2993:9;2984:7;2980:23;2976:32;2973:52;;;3021:1;3018;3011:12;2973:52;3044:29;3063:9;3044:29;:::i;:::-;3034:39;;3123:2;3112:9;3108:18;3095:32;3170:5;3163:13;3156:21;3149:5;3146:32;3136:60;;3192:1;3189;3182:12;3136:60;3215:5;3205:15;;;2879:347;;;;;:::o;3231:127::-;3292:10;3287:3;3283:20;3280:1;3273:31;3323:4;3320:1;3313:15;3347:4;3344:1;3337:15;3363:275;3434:2;3428:9;3499:2;3480:13;;-1:-1:-1;;3476:27:1;3464:40;;3534:18;3519:34;;3555:22;;;3516:62;3513:88;;;3581:18;;:::i;:::-;3617:2;3610:22;3363:275;;-1:-1:-1;3363:275:1:o;3643:186::-;3691:4;3724:18;3716:6;3713:30;3710:56;;;3746:18;;:::i;:::-;-1:-1:-1;3812:2:1;3791:15;-1:-1:-1;;3787:29:1;3818:4;3783:40;;3643:186::o;3834:888::-;3929:6;3937;3945;3953;4006:3;3994:9;3985:7;3981:23;3977:33;3974:53;;;4023:1;4020;4013:12;3974:53;4046:29;4065:9;4046:29;:::i;:::-;4036:39;;4094:38;4128:2;4117:9;4113:18;4094:38;:::i;:::-;4084:48;;4179:2;4168:9;4164:18;4151:32;4141:42;;4234:2;4223:9;4219:18;4206:32;4261:18;4253:6;4250:30;4247:50;;;4293:1;4290;4283:12;4247:50;4316:22;;4369:4;4361:13;;4357:27;-1:-1:-1;4347:55:1;;4398:1;4395;4388:12;4347:55;4434:2;4421:16;4459:48;4475:31;4503:2;4475:31;:::i;:::-;4459:48;:::i;:::-;4530:2;4523:5;4516:17;4570:7;4565:2;4560;4556;4552:11;4548:20;4545:33;4542:53;;;4591:1;4588;4581:12;4542:53;4646:2;4641;4637;4633:11;4628:2;4621:5;4617:14;4604:45;4690:1;4685:2;4680;4673:5;4669:14;4665:23;4658:34;4711:5;4701:15;;;;;3834:888;;;;;;;:::o;4727:260::-;4795:6;4803;4856:2;4844:9;4835:7;4831:23;4827:32;4824:52;;;4872:1;4869;4862:12;4824:52;4895:29;4914:9;4895:29;:::i;:::-;4885:39;;4943:38;4977:2;4966:9;4962:18;4943:38;:::i;:::-;4933:48;;4727:260;;;;;:::o;4992:380::-;5071:1;5067:12;;;;5114;;;5135:61;;5189:4;5181:6;5177:17;5167:27;;5135:61;5242:2;5234:6;5231:14;5211:18;5208:38;5205:161;;5288:10;5283:3;5279:20;5276:1;5269:31;5323:4;5320:1;5313:15;5351:4;5348:1;5341:15;5205:161;;4992:380;;;:::o;5377:356::-;5579:2;5561:21;;;5598:18;;;5591:30;5657:34;5652:2;5637:18;;5630:62;5724:2;5709:18;;5377:356::o;6886:127::-;6947:10;6942:3;6938:20;6935:1;6928:31;6978:4;6975:1;6968:15;7002:4;6999:1;6992:15;7018:197;7056:3;7084:6;7125:2;7118:5;7114:14;7152:2;7143:7;7140:15;7137:41;;7158:18;;:::i;:::-;7207:1;7194:15;;7018:197;-1:-1:-1;;;7018:197:1:o;7579:470::-;-1:-1:-1;;;7829:66:1;;7918:13;;7811:3;;7940:62;7918:13;7990:2;7981:12;;7974:4;7962:17;;7940:62;:::i;:::-;8022:16;;;;8040:2;8018:25;;7579:470;-1:-1:-1;;7579:470:1:o;8555:127::-;8616:10;8611:3;8607:20;8604:1;8597:31;8647:4;8644:1;8637:15;8671:4;8668:1;8661:15;8687:183;8718:1;8744:10;8781:2;8778:1;8774:10;8803:3;8793:37;;8810:18;;:::i;:::-;8848:10;;8844:20;;;;;8687:183;-1:-1:-1;;8687:183:1:o;8875:262::-;8914:7;8946:10;8983:2;8980:1;8976:10;9013:2;9010:1;9006:10;9069:3;9065:2;9061:12;9056:3;9053:21;9046:3;9039:11;9032:19;9028:47;9025:73;;;9078:18;;:::i;:::-;9118:13;;8875:262;-1:-1:-1;;;;8875:262:1:o;9142:127::-;9203:10;9198:3;9194:20;9191:1;9184:31;9234:4;9231:1;9224:15;9258:4;9255:1;9248:15;9479:429;9533:5;9586:3;9579:4;9571:6;9567:17;9563:27;9553:55;;9604:1;9601;9594:12;9553:55;9633:6;9627:13;9664:48;9680:31;9708:2;9680:31;:::i;9664:48::-;9737:2;9728:7;9721:19;9783:3;9776:4;9771:2;9763:6;9759:15;9755:26;9752:35;9749:55;;;9800:1;9797;9790:12;9749:55;9813:64;9874:2;9867:4;9858:7;9854:18;9847:4;9839:6;9835:17;9813:64;:::i;9913:562::-;10012:6;10020;10073:2;10061:9;10052:7;10048:23;10044:32;10041:52;;;10089:1;10086;10079:12;10041:52;10122:9;10116:16;10151:18;10192:2;10184:6;10181:14;10178:34;;;10208:1;10205;10198:12;10178:34;10231:61;10284:7;10275:6;10264:9;10260:22;10231:61;:::i;:::-;10221:71;;10338:2;10327:9;10323:18;10317:25;10301:41;;10367:2;10357:8;10354:16;10351:36;;;10383:1;10380;10373:12;10351:36;;10406:63;10461:7;10450:8;10439:9;10435:24;10406:63;:::i;:::-;10396:73;;;9913:562;;;;;:::o;10606:1002::-;10691:12;;10656:3;;10746:1;10766:18;;;;10819;;;;10846:61;;10900:4;10892:6;10888:17;10878:27;;10846:61;10926:2;10974;10966:6;10963:14;10943:18;10940:38;10937:161;;11020:10;11015:3;11011:20;11008:1;11001:31;11055:4;11052:1;11045:15;11083:4;11080:1;11073:15;10937:161;11114:18;11141:133;;;;11288:1;11283:319;;;;11107:495;;11141:133;-1:-1:-1;;11174:24:1;;11162:37;;11247:14;;11240:22;11228:35;;11219:45;;;-1:-1:-1;11141:133:1;;11283:319;10553:1;10546:14;;;10590:4;10577:18;;11377:1;11391:165;11405:6;11402:1;11399:13;11391:165;;;11483:14;;11470:11;;;11463:35;11526:16;;;;11420:10;;11391:165;;;11395:3;;11585:6;11580:3;11576:16;11569:23;;11107:495;;;;;;;10606:1002;;;;:::o;11613:539::-;11835:3;11873:6;11867:13;11889:53;11935:6;11930:3;11923:4;11915:6;11911:17;11889:53;:::i;:::-;11961:51;12004:6;11999:3;11995:16;11987:6;11961:51;:::i;:::-;11951:61;;12043:6;12037:13;12059:54;12104:8;12100:2;12093:4;12085:6;12081:17;12059:54;:::i;:::-;12129:17;;11613:539;-1:-1:-1;;;;;11613:539:1:o;12157:952::-;12536:3;12574:6;12568:13;12590:53;12636:6;12631:3;12624:4;12616:6;12612:17;12590:53;:::i;:::-;12674:6;12669:3;12665:16;12652:29;;12704:66;12697:5;12690:81;12814:40;12809:3;12805:50;12798:4;12791:5;12787:16;12780:76;12887:6;12881:13;12903:66;12960:8;12955:2;12948:5;12944:14;12937:4;12929:6;12925:17;12903:66;:::i;:::-;-1:-1:-1;;;13032:2:1;12988:20;;;;13024:11;;;13017:59;13100:2;13092:11;;12157:952;-1:-1:-1;;;;12157:952:1:o;13114:1127::-;13493:3;13531:6;13525:13;13547:53;13593:6;13588:3;13581:4;13573:6;13569:17;13547:53;:::i;:::-;13631:6;13626:3;13622:16;13609:29;;13661:66;13654:5;13647:81;13762:34;13755:4;13748:5;13744:16;13737:60;13829:34;13824:2;13817:5;13813:14;13806:58;13896:66;13891:2;13884:5;13880:14;13873:90;-1:-1:-1;;;13990:3:1;13983:5;13979:15;13972:31;14034:6;14028:13;14050:67;14108:8;14102:3;14095:5;14091:15;14084:4;14076:6;14072:17;14050:67;:::i;:::-;-1:-1:-1;;;14180:3:1;14136:20;;;;14172:12;;;14165:42;14231:3;14223:12;;13114:1127;-1:-1:-1;;;;13114:1127:1:o;14246:1087::-;14625:3;14663:6;14657:13;14679:53;14725:6;14720:3;14713:4;14705:6;14701:17;14679:53;:::i;:::-;14763:6;14758:3;14754:16;14741:29;;14793:66;14786:5;14779:81;14894:34;14887:4;14880:5;14876:16;14869:60;14961:34;14956:2;14949:5;14945:14;14938:58;15028:66;15023:2;15016:5;15012:14;15005:90;15126:6;15120:13;15142:67;15200:8;15194:3;15187:5;15183:15;15176:4;15168:6;15164:17;15142:67;:::i;:::-;-1:-1:-1;;;15272:3:1;15228:20;;;;15264:12;;;15257:42;15323:3;15315:12;;14246:1087;-1:-1:-1;;;;14246:1087:1:o;15338:468::-;15515:3;15553:6;15547:13;15569:53;15615:6;15610:3;15603:4;15595:6;15591:17;15569:53;:::i;:::-;15685:13;;15644:16;;;;15707:57;15685:13;15644:16;15741:4;15729:17;;15707:57;:::i;:::-;15780:20;;15338:468;-1:-1:-1;;;;15338:468:1:o;15811:442::-;16041:3;16079:6;16073:13;16095:53;16141:6;16136:3;16129:4;16121:6;16117:17;16095:53;:::i;:::-;-1:-1:-1;;;16170:16:1;;16195:23;;;-1:-1:-1;16245:1:1;16234:13;;15811:442;-1:-1:-1;15811:442:1:o;16258:619::-;16525:3;16563:6;16557:13;16579:53;16625:6;16620:3;16613:4;16605:6;16601:17;16579:53;:::i;:::-;16651:51;16694:6;16689:3;16685:16;16677:6;16651:51;:::i;:::-;16641:61;;16733:6;16727:13;16749:54;16794:8;16790:2;16783:4;16775:6;16771:17;16749:54;:::i;:::-;16819:52;16861:8;16857:2;16853:17;16845:6;16819:52;:::i;:::-;16812:59;16258:619;-1:-1:-1;;;;;;;;16258:619:1:o;16882:448::-;17144:31;17139:3;17132:44;17114:3;17205:6;17199:13;17221:62;17276:6;17271:2;17266:3;17262:12;17255:4;17247:6;17243:17;17221:62;:::i;:::-;17303:16;;;;17321:2;17299:25;;16882:448;-1:-1:-1;;16882:448:1:o;17742:489::-;-1:-1:-1;;;;;18011:15:1;;;17993:34;;18063:15;;18058:2;18043:18;;18036:43;18110:2;18095:18;;18088:34;;;18158:3;18153:2;18138:18;;18131:31;;;17936:4;;18179:46;;18205:19;;18197:6;18179:46;:::i;:::-;18171:54;17742:489;-1:-1:-1;;;;;;17742:489:1:o;18236:249::-;18305:6;18358:2;18346:9;18337:7;18333:23;18329:32;18326:52;;;18374:1;18371;18364:12;18326:52;18406:9;18400:16;18425:30;18449:5;18425:30;:::i;18490:135::-;18529:3;18550:17;;;18547:43;;18570:18;;:::i;:::-;-1:-1:-1;18617:1:1;18606:13;;18490:135::o;18630:120::-;18670:1;18696;18686:35;;18701:18;;:::i;:::-;-1:-1:-1;18735:9:1;;18630:120::o;18755:125::-;18795:4;18823:1;18820;18817:8;18814:34;;;18828:18;;:::i;:::-;-1:-1:-1;18865:9:1;;18755:125::o;18885:112::-;18917:1;18943;18933:35;;18948:18;;:::i;:::-;-1:-1:-1;18982:9:1;;18885:112::o;19002:128::-;19042:3;19073:1;19069:6;19066:1;19063:13;19060:39;;;19079:18;;:::i;:::-;-1:-1:-1;19115:9:1;;19002:128::o;19135:168::-;19175:7;19241:1;19237;19233:6;19229:14;19226:1;19223:21;19218:1;19211:9;19204:17;19200:45;19197:71;;;19248:18;;:::i;:::-;-1:-1:-1;19288:9:1;;19135:168::o

Swarm Source

ipfs://80ceebccd5f6c5cc81929356e35cc0a49a191c3bc9f75e2844b88b44756e6e92
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]

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