ETH Price: $2,906.55 (-1.63%)

Token

Cooki Card (CC)

Overview

Max Total Supply

2,099 CC

Holders

2,089

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 CC
0xa2b430fffa485250ddd20a81b609f507728b4ccf
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Contract Source Code Verified (Exact Match)

Contract Name:
CookiCard

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

import {SafeMath} from "@openzeppelin/contracts/utils/math/SafeMath.sol";
import {Base64} from "@openzeppelin/contracts/utils/Base64.sol";
import {Strings} from "@openzeppelin/contracts/utils/Strings.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {ERC721} from "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import {ICookiData} from "./ICookiData.sol";
import {ICookiCard} from "./ICookiCard.sol";

////////////////
// GMeme,     //
// Love Cooki //
////////////////

contract CookiCard is ICookiCard, ERC721, Ownable {
    using SafeMath for uint256;

    /////////////
    //Variables//
    /////////////

    NamedDisplaySetting[] public namedDisplaySettingArray;

    NamedBackgroundColours[] public namedBackgroundColoursArray;

    NamedFaceColours[] public namedFaceColoursArray;

    NamedHatColours[] public namedHatColoursArray;

    NamedNeutralColours[] public namedNeutralColoursArray;

    ICookiData public immutable cookiData;

    bool public initialised;

    uint256 public nonce;

    string public backString;

    string public animationValues;

    string public animationDuration;

    mapping(uint256 => NamedDisplaySetting) public cardDisplaySetting;

    mapping(uint256 => NamedBackgroundColours) public cardBackgroundColours;

    mapping(uint256 => NamedFaceColours) public cardFaceColours;

    mapping(uint256 => NamedHatColours) public cardHatColours;

    mapping(uint256 => NamedNeutralColours) public cardNeutralColours;

    /////////////////////////////
    //Modifiers and Constructor//
    /////////////////////////////

    modifier onlyTokenOwner(uint256 _tokenId) {
        _requireMinted(_tokenId);
        require(_msgSender() == ownerOf(_tokenId));
        _;
    }

    modifier onlyCookiDataOrOwner() {
        require(msg.sender == address(cookiData) || _msgSender() == owner());
        _;
    }
    
    constructor(ICookiData _cookiData) ERC721("Cooki Card", "CC") {
        cookiData = _cookiData;
        initialised = false;
    }

    function init() external onlyOwner {
        require(!initialised);
        cookiData.loadData();
        initialised = true;
    }

    /////////////////////////////
    //Mint and Supply Functions//
    /////////////////////////////

    function mintAndDistribute(address[] calldata _recipients) external onlyOwner {
        require(initialised);
        
        uint256 seed;
        uint256 length = _recipients.length;

        for (uint256 i = 0; i < length; i++) {
            _mint(_recipients[i], nonce);

            seed = uint256(keccak256(abi.encodePacked(block.number + seed + nonce)));

            cardDisplaySetting[nonce] = namedDisplaySettingArray[0];
            cardBackgroundColours[nonce] = namedBackgroundColoursArray[seed % namedBackgroundColoursArray.length];
            cardFaceColours[nonce] = namedFaceColoursArray[seed % namedFaceColoursArray.length];
            cardHatColours[nonce] = namedHatColoursArray[seed % namedHatColoursArray.length];
            cardNeutralColours[nonce] = namedNeutralColoursArray[seed % namedNeutralColoursArray.length];

            nonce++;
        }
    }

    function totalSupply() external view returns (uint256) {
        return nonce;
    }

    //////////////////////
    //Metadata Functions//
    //////////////////////

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

        return drawFull(tokenId);
    }

    function drawFull(uint256 _tokenId) internal view returns (string memory) {
        string memory svgHTML = '<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet" viewBox="0 0 240 240">';
        string memory front;
        string memory back;

        if (cardDisplaySetting[_tokenId].display == 0) {
            front = drawFront(
                cardBackgroundColours[_tokenId], 
                cardFaceColours[_tokenId], 
                cardHatColours[_tokenId], 
                cardNeutralColours[_tokenId],
                true,
                animationValues, 
                animationDuration
            );
            back = string.concat('<svg>', backString, '</svg>');

            svgHTML = string.concat(svgHTML, back, front, '</svg>');
        } else if (cardDisplaySetting[_tokenId].display == 1) {
            front = drawFront(
                cardBackgroundColours[_tokenId], 
                cardFaceColours[_tokenId], 
                cardHatColours[_tokenId], 
                cardNeutralColours[_tokenId], 
                false, 
                animationValues, 
                animationDuration
            );

            svgHTML = string.concat(svgHTML, front, '</svg>');
        } else {
            back = string.concat('<svg>', backString, '</svg>');

            svgHTML = string.concat(svgHTML, back, '</svg>');
        }

        svgHTML = string.concat('{"name": "Cooki Card #', Strings.toString(_tokenId), '", "description": "I find the Ourobric memes to be the most satisfying to contemplate.", "image": "data:image/svg+xml;base64,', Base64.encode(bytes(svgHTML)), '"');
        svgHTML = string.concat(svgHTML, ', "attributes": [{ "trait_type": "Background", "value": "', cardBackgroundColours[_tokenId].name, '"}, { "trait_type": "Face", "value": "', cardFaceColours[_tokenId].name,'"}, { "trait_type": "Hat", "value": "', cardHatColours[_tokenId].name, '"}, { "trait_type": "Border", "value": "', cardNeutralColours[_tokenId].name, '"}, { "trait_type": "Display", "value": "', cardDisplaySetting[_tokenId].name,'"}]}');
        svgHTML = string.concat('data:application/json;base64,', Base64.encode(bytes(svgHTML)));

        return svgHTML;
    }

    function drawFront(
        NamedBackgroundColours memory _backgroundColours,
        NamedFaceColours memory _faceColours,
        NamedHatColours memory _hatColours,
        NamedNeutralColours memory _neutralColours,
        bool _animate,
        string memory _animationValues,
        string memory _animationDuration
    ) internal pure returns (string memory) {
        string memory svgHTML = string.concat('<svg><rect width="100%" height="100%" fill="', _backgroundColours.colour, '" /><polygon points="200,160 200,70 180,70 180,60 60,60 60,160" fill="', _hatColours.light);
        svgHTML = string.concat(svgHTML, '"/><rect width="10.1" height="10" x="20" y="170" fill="', _faceColours.dark, '"/><rect width="10" height="10.1" x="40" y="150" fill="', _faceColours.dark);
        svgHTML = string.concat(svgHTML, '"/><polygon points="30,160 50,160 50,180 60,180 60,190 70,190 70,180 80,180 80,200 50,200 50,190 40,190 40,180 30,180" fill="', _neutralColours.border,'"/><polygon points="70,180 70,190 60,190 60,180 50,180 50,160 60,160 60,150 70,150" fill="', _neutralColours.skin);
        svgHTML = string.concat(svgHTML, '"/><rect width="10" height="10" x="60" y="170" fill="', _faceColours.dark, '"/><rect width="10" height="10" x="60" y="160" fill="', _faceColours.light);
        svgHTML = string.concat(svgHTML, '"/><rect width="10.1" height="10.1" x="59.95" y="229.95" fill="', _faceColours.dark, '"/><polygon points="70,240 170,240 170,160 70,160 70,180 80,180 80,220 70,220" fill="', _neutralColours.skin);
        svgHTML = string.concat(svgHTML, '"/><polygon points="90,210 90,200 80,200 80,220 60,220 60,240 50,240 50,230 70,230 70,210" fill="', _neutralColours.border,'"/><rect width="10" height="10" x="110" y="220" fill="', _faceColours.dark);
        svgHTML = string.concat(svgHTML, '"/><polygon points="90,210 110,210 110,230 100,230 100,220 90,220" fill="', _neutralColours.border, '"/><polygon points="110,220 170,220 170,200 180,200 180,170 110,170 110,180 100,180 100,200 110,200" fill="', _faceColours.light);
        svgHTML = string.concat(svgHTML, '"/><polygon points="120,220 150,220 150,230 140,230 140,240 130,240 130,230 120,230" fill="', _neutralColours.border, '"/><rect width="10" height="10" x="120" y="200" fill="', _neutralColours.border);
        svgHTML = string.concat(svgHTML, '"/><polygon points="130,210 130,200 140,200 140,220 150,220 150,210" fill="', _faceColours.dark, '"/><rect width="10.1" height="10" x="179.9" y="230" fill="', _faceColours.dark);
        svgHTML = string.concat(svgHTML, '"/><polygon points="150,220 150,210 170,210 170,240 180,240 180,220" fill="', _neutralColours.border, '"/><rect width="10" height="10" x="160" y="200" fill="', _faceColours.dark);
        svgHTML = string.concat(svgHTML, '"/><polygon points="170,200 170,210 180,210 180,180 160,180 160,160 130,160 130,170 200,170 200,70 190,70 190,90 210,90 210,120 190,120 190,150 210,150 210,180 190,180 190,200" fill="', _neutralColours.border, '"/><rect width="20.1" height="30.1" x="59.95" y="89.95" fill="', _hatColours.medium);
        svgHTML = string.concat(svgHTML, '"/><polygon points="59,120 59,141 90,141 90,130 110,130 110,110 140,110 140,130 170,130 170,120 90,120 90,100 100,100 100,60 90,60 90,90 80,90 80,110 70,110 70,120" fill="', _hatColours.dark, '"/><polygon points="50,160 50,90 60,90 60,140 100,140 100,180 90,180 90,160 120,160 120,150 80,150 80,160 70,160 70,150 60,150 60,160" fill="', _neutralColours.border);
        svgHTML = string.concat(svgHTML, '"/><rect width="20.1" height="10.1" x="79.95" y="149.95" fill="', _faceColours.dark, '"/><rect width="20" height="10.1" x="110" y="159.95" fill="', _faceColours.dark);
        svgHTML = string.concat(svgHTML, '"/><polygon points="130,180 140,180 140,190 150,190 150,180 160,180 160,170 130,170" fill="', _faceColours.dark, '"/><rect width="10" height="10.1" x="50" y="79.95" fill="', _hatColours.dark);
        svgHTML = string.concat(svgHTML, '"/><rect width="10.1" height="10.1" x="59.95" y="69.95" fill="', _neutralColours.border, '"/><rect width="10.1" height="10.1" x="59.95" y="59.95" fill="', _hatColours.dark);
        svgHTML = string.concat(svgHTML, '"/><rect width="50" height="20" x="90" y="40" fill="', _hatColours.dark, '"/><rect width="20.1" height="10" x="69.95" y="50" fill="', _neutralColours.border);
        svgHTML = string.concat(svgHTML, '"/><rect width="10" height="10" x="90" y="50" fill="', _hatColours.medium, '"/><rect width="30" height="10" x="100" y="40" fill="', _neutralColours.border);
        svgHTML = string.concat(svgHTML, '"/><rect width="10" height="20" x="160" y="50" fill="', _hatColours.dark, '"/><rect width="20.1" height="10" x="139.95" y="50" fill="', _neutralColours.border);
        svgHTML = string.concat(svgHTML, '"/><rect width="10.1" height="10" x="169.95" y="60" fill="', _neutralColours.border, '"/><rect width="10.1" height="20" x="179.95" y="60" fill="', _hatColours.dark);
        svgHTML = string.concat(svgHTML, '"/><rect width="10.1" height="10.1" x="189.95" y="89.95" fill="', _hatColours.dark, '"/><rect width="20.1" height="10" x="169.95" y="130" fill="', _hatColours.dark);
        svgHTML = string.concat(svgHTML, '"/><polygon points="160,60 150,60 150,120 140,120 140,100 160,100" fill="', _hatColours.medium, '"/><polygon points="100,130 90,130 90,140 120,140 120,160 200,160 200,170 160,170 160,150 100,150" fill="', _hatColours.medium, '"/>');
        if (_animate) {
            svgHTML = string.concat(svgHTML, '<animate attributeName="opacity" values="', _animationValues, '" dur="', _animationDuration,'" begin="0s" repeatCount="indefinite" />');
        }
        svgHTML = string.concat(svgHTML, '</svg>');
        return svgHTML;
    }

    /////////////////
    //User Function//
    /////////////////

    function changeDisplaySetting(uint256 _tokenId, uint256 _newDisplaySetting) external onlyTokenOwner(_tokenId) {
        //0 for display of both front and back, 1 for just front, and 2 for just back
        require(
            _newDisplaySetting == 0 ||
            _newDisplaySetting == 1 ||
            _newDisplaySetting == 2
        );

        cardDisplaySetting[_tokenId] = namedDisplaySettingArray[_newDisplaySetting];
    }

    /////////////////////////
    //Back String Functions//
    /////////////////////////

    function changeBackString(string memory _newBackString) external override onlyCookiDataOrOwner {
        backString = _newBackString;
    }

    function changeAnimationValues(string memory _newAnimationValues) external override onlyCookiDataOrOwner {
        animationValues = _newAnimationValues;
    }

    function changeAnimationDuration(string memory _newAnimationDuration) external override onlyCookiDataOrOwner {
        animationDuration = _newAnimationDuration;
    }
    
    ///////////////////////
    //Load Data Functions//
    ///////////////////////

    function loadDisplaySetting(NamedDisplaySetting memory _namedDisplaySetting) external override onlyCookiDataOrOwner {
        namedDisplaySettingArray.push(_namedDisplaySetting);
    }

    function loadBackgroundColours(NamedBackgroundColours memory _namedBackgroundColours) external override onlyCookiDataOrOwner {
        namedBackgroundColoursArray.push(_namedBackgroundColours);
    }

    function loadFaceColours(NamedFaceColours memory _namedFaceColours) external override onlyCookiDataOrOwner {
        namedFaceColoursArray.push(_namedFaceColours);
    }

    function loadHatColours(NamedHatColours memory _namedHatColours) external override onlyCookiDataOrOwner {
        namedHatColoursArray.push(_namedHatColours);
    }

    function loadNeutralColours(NamedNeutralColours memory _namedNeutralColours) external override onlyCookiDataOrOwner {
        namedNeutralColoursArray.push(_namedNeutralColours);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _ownerOf(tokenId);
        require(owner != address(0), "ERC721: invalid token ID");
        return owner;
    }

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

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

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

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

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not token owner or approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

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

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

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

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

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

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

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

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

        _afterTokenTransfer(address(0), to, tokenId, 1);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

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

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

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

        _afterTokenTransfer(owner, address(0), tokenId, 1);
    }

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

        _beforeTokenTransfer(from, to, tokenId, 1);

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");

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

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId, 1);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
     * - When `from` is zero, the tokens will be minted for `to`.
     * - When `to` is zero, ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual {}

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual {}

    /**
     * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override.
     *
     * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant
     * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such
     * that `ownerOf(tokenId)` is `a`.
     */
    // solhint-disable-next-line func-name-mixedcase
    function __unsafe_increaseBalance(address account, uint256 amount) internal {
        _balances[account] += amount;
    }
}

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

File 6 of 17 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 *
 * _Available since v4.5._
 */
library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /**
     * @dev Converts a `bytes` to its Bytes64 `string` representation.
     */
    function encode(bytes memory data) internal pure returns (string memory) {
        /**
         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
         */
        if (data.length == 0) return "";

        // Loads the table into memory
        string memory table = _TABLE;

        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
        // and split into 4 numbers of 6 bits.
        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
        // - `data.length + 2`  -> Round up
        // - `/ 3`              -> Number of 3-bytes chunks
        // - `4 *`              -> 4 characters for each chunk
        string memory result = new string(4 * ((data.length + 2) / 3));

        /// @solidity memory-safe-assembly
        assembly {
            // Prepare the lookup table (skip the first "length" byte)
            let tablePtr := add(table, 1)

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

            // Run over the input, 3 bytes at a time
            for {
                let dataPtr := data
                let endPtr := add(data, mload(data))
            } lt(dataPtr, endPtr) {

            } {
                // Advance 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // To write each character, shift the 3 bytes (18 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F which is the number of
                // the previous character in the ASCII table prior to the Base64 Table
                // The result is then added to the table to get the character to write,
                // and finally write it in the result pointer but with a left shift
                // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits

                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance
            }

            // When data `bytes` is not exactly 3 bytes long
            // it is padded with `=` characters at the end
            switch mod(mload(data), 3)
            case 1 {
                mstore8(sub(resultPtr, 1), 0x3d)
                mstore8(sub(resultPtr, 2), 0x3d)
            }
            case 2 {
                mstore8(sub(resultPtr, 1), 0x3d)
            }
        }

        return result;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

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

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

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

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

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

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

// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

import {ICookiStructs} from "./ICookiStructs.sol";

interface ICookiCard is ICookiStructs {
    function changeBackString(string memory _newBackString) external;

    function changeAnimationValues(string memory _newAnimationValues) external;

    function changeAnimationDuration(string memory _newAnimationDuration) external;

    function loadDisplaySetting(NamedDisplaySetting memory _namedDisplaySetting) external;

    function loadBackgroundColours(NamedBackgroundColours memory _namedBackgroundColours) external;

    function loadFaceColours(NamedFaceColours memory _namedFaceColours) external;

    function loadHatColours(NamedHatColours memory _namedHatColours) external;

    function loadNeutralColours(NamedNeutralColours memory _namedNeutralColours) external;
}

// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

import {ICookiStructs} from "./ICookiStructs.sol";
import {ICookiCard} from "./ICookiCard.sol";

interface ICookiData is ICookiStructs {
    function loadData() external;
}

File 17 of 17 : ICookiStructs.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

interface ICookiStructs {
    struct NamedDisplaySetting {
        string name;
        uint256 display;
    }

    struct NamedBackgroundColours {
        string name;
        string colour;
    }

    struct NamedFaceColours {
        string name;
        string light;
        string dark;
    }

    struct NamedHatColours {
        string name;
        string light;
        string medium;
        string dark;
    }

    struct NamedNeutralColours {
        string name;
        string skin;
        string border;
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"contract ICookiData","name":"_cookiData","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"animationDuration","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"animationValues","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[],"name":"backString","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"cardBackgroundColours","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"colour","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"cardDisplaySetting","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"display","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"cardFaceColours","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"light","type":"string"},{"internalType":"string","name":"dark","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"cardHatColours","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"light","type":"string"},{"internalType":"string","name":"medium","type":"string"},{"internalType":"string","name":"dark","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"cardNeutralColours","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"skin","type":"string"},{"internalType":"string","name":"border","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_newAnimationDuration","type":"string"}],"name":"changeAnimationDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newAnimationValues","type":"string"}],"name":"changeAnimationValues","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBackString","type":"string"}],"name":"changeBackString","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_newDisplaySetting","type":"uint256"}],"name":"changeDisplaySetting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cookiData","outputs":[{"internalType":"contract ICookiData","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":[],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialised","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"colour","type":"string"}],"internalType":"struct ICookiStructs.NamedBackgroundColours","name":"_namedBackgroundColours","type":"tuple"}],"name":"loadBackgroundColours","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"display","type":"uint256"}],"internalType":"struct ICookiStructs.NamedDisplaySetting","name":"_namedDisplaySetting","type":"tuple"}],"name":"loadDisplaySetting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"light","type":"string"},{"internalType":"string","name":"dark","type":"string"}],"internalType":"struct ICookiStructs.NamedFaceColours","name":"_namedFaceColours","type":"tuple"}],"name":"loadFaceColours","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"light","type":"string"},{"internalType":"string","name":"medium","type":"string"},{"internalType":"string","name":"dark","type":"string"}],"internalType":"struct ICookiStructs.NamedHatColours","name":"_namedHatColours","type":"tuple"}],"name":"loadHatColours","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"skin","type":"string"},{"internalType":"string","name":"border","type":"string"}],"internalType":"struct ICookiStructs.NamedNeutralColours","name":"_namedNeutralColours","type":"tuple"}],"name":"loadNeutralColours","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_recipients","type":"address[]"}],"name":"mintAndDistribute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"namedBackgroundColoursArray","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"colour","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"namedDisplaySettingArray","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"display","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"namedFaceColoursArray","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"light","type":"string"},{"internalType":"string","name":"dark","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"namedHatColoursArray","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"light","type":"string"},{"internalType":"string","name":"medium","type":"string"},{"internalType":"string","name":"dark","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"namedNeutralColoursArray","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"skin","type":"string"},{"internalType":"string","name":"border","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"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":"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"}]

60a06040523480156200001157600080fd5b506040516200626938038062006269833981016040819052620000349162000121565b6040518060400160405280600a81526020016910dbdbdada4810d85c9960b21b81525060405180604001604052806002815260200161434360f01b8152508160009081620000839190620001f8565b506001620000928282620001f8565b505050620000af620000a9620000cb60201b60201c565b620000cf565b6001600160a01b0316608052600c805460ff19169055620002c4565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000602082840312156200013457600080fd5b81516001600160a01b03811681146200014c57600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200017e57607f821691505b6020821081036200019f57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001f357600081815260208120601f850160051c81016020861015620001ce5750805b601f850160051c820191505b81811015620001ef57828155600101620001da565b5050505b505050565b81516001600160401b0381111562000214576200021462000153565b6200022c8162000225845462000169565b84620001a5565b602080601f8311600181146200026457600084156200024b5750858301515b600019600386901b1c1916600185901b178555620001ef565b600085815260208120601f198616915b82811015620002955788860151825594840194600190910190840162000274565b5085821015620002b45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b608051615f4a6200031f600039600081816105ab015281816108a60152818161097b01528181610a0601528181610adb0152818161128301528181611773015281816118120152818161189d015261193c0152615f4a6000f3fe608060405234801561001057600080fd5b50600436106102745760003560e01c806399daaddc11610151578063d75ca6ab116100c3578063e3b88fe811610087578063e3b88fe81461056d578063e985e9c514610580578063ed44d6e414610593578063eff9d291146105a6578063f2fde38b146105cd578063fd42ca64146105e057600080fd5b8063d75ca6ab14610519578063df145dd61461052c578063e01122881461053f578063e1c7392a14610552578063e268057d1461055a57600080fd5b8063b111ae2911610115578063b111ae2914610489578063b29e93051461049c578063b88d4fde146104bf578063c01a600d146104d2578063c87b56dd146104f3578063d024e8f11461050657600080fd5b806399daaddc14610425578063a22cb46514610447578063a6e710521461045a578063aa581ee81461046d578063affed0e01461048057600080fd5b806342842e0e116101ea57806370a08231116101ae57806370a08231146103d6578063715018a6146103e95780637c63d9b2146103f1578063872f18cd146104045780638da5cb5b1461040c57806395d89b411461041d57600080fd5b806342842e0e146103695780634c3538c51461037c5780634d0449091461038f57806362adae9b146103a25780636352211e146103c357600080fd5b8063095ea7b31161023c578063095ea7b3146102f65780630961dd9f1461030b5780631418363f1461031e57806318160ddd1461033157806323b872dd1461034357806333eba9481461035657600080fd5b806301ffc9a71461027957806306fdde03146102a157806307003bb4146102b6578063081812fc146102c357806308e058d6146102ee575b600080fd5b61028c610287366004613947565b6105e8565b60405190151581526020015b60405180910390f35b6102a961063a565b60405161029891906139bb565b600c5461028c9060ff1681565b6102d66102d13660046139ce565b6106cc565b6040516001600160a01b039091168152602001610298565b6102a96106f3565b610309610304366004613a03565b610781565b005b610309610319366004613b22565b61089b565b61030961032c366004613bfa565b610970565b600d545b604051908152602001610298565b610309610351366004613c2e565b6109ca565b610309610364366004613d18565b6109fb565b610309610377366004613c2e565b610ab5565b61030961038a366004613bfa565b610ad0565b61030961039d366004613d4c565b610b26565b6103b56103b03660046139ce565b610bc4565b604051610298929190613d6e565b6102d66103d13660046139ce565b610c80565b6103356103e4366004613d90565b610ce0565b610309610d66565b6103096103ff366004613dab565b610d7a565b6102a9611064565b6006546001600160a01b03166102d6565b6102a9611071565b6104386104333660046139ce565b611080565b60405161029893929190613e1f565b610309610455366004613e62565b611252565b6104386104683660046139ce565b61125d565b61030961047b366004613e9e565b611278565b610335600d5481565b6104386104973660046139ce565b61131d565b6104af6104aa3660046139ce565b61132d565b6040516102989493929190613f2e565b6103096104cd366004613f86565b611575565b6104e56104e03660046139ce565b6115a7565b604051610298929190614001565b6102a96105013660046139ce565b6116eb565b6104af6105143660046139ce565b6116ff565b6104386105273660046139ce565b611732565b6104e561053a3660046139ce565b61174d565b61030961054d366004613d18565b611768565b6103096117f8565b610309610568366004613bfa565b611892565b6103b561057b3660046139ce565b6118e8565b61028c61058e36600461402f565b611903565b6103096105a1366004614062565b611931565b6102d67f000000000000000000000000000000000000000000000000000000000000000081565b6103096105db366004613d90565b6119d1565b6102a9611a4a565b60006001600160e01b031982166380ac58cd60e01b148061061957506001600160e01b03198216635b5e139f60e01b145b8061063457506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060008054610649906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054610675906140db565b80156106c25780601f10610697576101008083540402835291602001916106c2565b820191906000526020600020905b8154815290600101906020018083116106a557829003601f168201915b5050505050905090565b60006106d782611a57565b506000908152600460205260409020546001600160a01b031690565b600e8054610700906140db565b80601f016020809104026020016040519081016040528092919081815260200182805461072c906140db565b80156107795780601f1061074e57610100808354040283529160200191610779565b820191906000526020600020905b81548152906001019060200180831161075c57829003601f168201915b505050505081565b600061078c82610c80565b9050806001600160a01b0316836001600160a01b0316036107fe5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b038216148061081a575061081a8133611903565b61088c5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016107f5565b6108968383611ab6565b505050565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806108dc57506006546001600160a01b031633145b6108e557600080fd5b600a8054600181018255600091909152815182916004027fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80190819061092b9082614163565b50602082015160018201906109409082614163565b50604082015160028201906109559082614163565b506060820151600382019061096a9082614163565b50505050565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806109b157506006546001600160a01b031633145b6109ba57600080fd5b600f6109c68282614163565b5050565b6109d43382611b24565b6109f05760405162461bcd60e51b81526004016107f590614222565b610896838383611b83565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610a3c57506006546001600160a01b031633145b610a4557600080fd5b600b8054600181018255600091909152815182916003027f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db901908190610a8b9082614163565b5060208201516001820190610aa09082614163565b506040820151600282019061096a9082614163565b61089683838360405180602001604052806000815250611575565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610b1157506006546001600160a01b031633145b610b1a57600080fd5b600e6109c68282614163565b81610b3081611a57565b610b3981610c80565b6001600160a01b0316336001600160a01b031614610b5657600080fd5b811580610b635750816001145b80610b6e5750816002145b610b7757600080fd5b60078281548110610b8a57610b8a61426f565b600091825260208083208684526011909152604090922060029091029091019080610bb58382614285565b50600191820154910155505050565b60078181548110610bd457600080fd5b9060005260206000209060020201600091509050806000018054610bf7906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054610c23906140db565b8015610c705780601f10610c4557610100808354040283529160200191610c70565b820191906000526020600020905b815481529060010190602001808311610c5357829003601f168201915b5050505050908060010154905082565b6000818152600260205260408120546001600160a01b0316806106345760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016107f5565b60006001600160a01b038216610d4a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016107f5565b506001600160a01b031660009081526003602052604090205490565b610d6e611ce7565b610d786000611d41565b565b610d82611ce7565b600c5460ff16610d9157600080fd5b600081815b8181101561105d57610dd0858583818110610db357610db361426f565b9050602002016020810190610dc89190613d90565b600d54611d93565b600d54610ddd844361436d565b610de7919061436d565b604051602001610df991815260200190565b6040516020818303038152906040528051906020012060001c92506007600081548110610e2857610e2861426f565b60009182526020808320600d5484526011909152604090922060029091029091019080610e558382614285565b5060019182015491015560088054610e6d9085614396565b81548110610e7d57610e7d61426f565b60009182526020808320600d5484526012909152604090922060029091029091019080610eaa8382614285565b50600181810190610ebd90840182614285565b505060098054909150610ed09085614396565b81548110610ee057610ee061426f565b60009182526020808320600d5484526013909152604090922060039091029091019080610f0d8382614285565b50600181810190610f2090840182614285565b50600281810190610f3390840182614285565b5050600a8054909150610f469085614396565b81548110610f5657610f5661426f565b60009182526020808320600d5484526014909152604090922060049091029091019080610f838382614285565b50600181810190610f9690840182614285565b50600281810190610fa990840182614285565b50600381810190610fbc90840182614285565b5050600b8054909150610fcf9085614396565b81548110610fdf57610fdf61426f565b60009182526020808320600d548452601590915260409092206003909102909101908061100c8382614285565b5060018181019061101f90840182614285565b5060028181019061103290840182614285565b5050600d805491506000611045836143aa565b91905055508080611055906143aa565b915050610d96565b5050505050565b60108054610700906140db565b606060018054610649906140db565b6009818154811061109057600080fd5b90600052602060002090600302016000915090508060000180546110b3906140db565b80601f01602080910402602001604051908101604052809291908181526020018280546110df906140db565b801561112c5780601f106111015761010080835404028352916020019161112c565b820191906000526020600020905b81548152906001019060200180831161110f57829003601f168201915b505050505090806001018054611141906140db565b80601f016020809104026020016040519081016040528092919081815260200182805461116d906140db565b80156111ba5780601f1061118f576101008083540402835291602001916111ba565b820191906000526020600020905b81548152906001019060200180831161119d57829003601f168201915b5050505050908060020180546111cf906140db565b80601f01602080910402602001604051908101604052809291908181526020018280546111fb906140db565b80156112485780601f1061121d57610100808354040283529160200191611248565b820191906000526020600020905b81548152906001019060200180831161122b57829003601f168201915b5050505050905083565b6109c6338383611f1e565b6015602052600090815260409020805481906110b3906140db565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806112b957506006546001600160a01b031633145b6112c257600080fd5b60088054600181018255600091909152815182916002027ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3019081906113089082614163565b506020820151600182019061096a9082614163565b600b818154811061109057600080fd5b601460205260009081526040902080548190611348906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054611374906140db565b80156113c15780601f10611396576101008083540402835291602001916113c1565b820191906000526020600020905b8154815290600101906020018083116113a457829003601f168201915b5050505050908060010180546113d6906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054611402906140db565b801561144f5780601f106114245761010080835404028352916020019161144f565b820191906000526020600020905b81548152906001019060200180831161143257829003601f168201915b505050505090806002018054611464906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054611490906140db565b80156114dd5780601f106114b2576101008083540402835291602001916114dd565b820191906000526020600020905b8154815290600101906020018083116114c057829003601f168201915b5050505050908060030180546114f2906140db565b80601f016020809104026020016040519081016040528092919081815260200182805461151e906140db565b801561156b5780601f106115405761010080835404028352916020019161156b565b820191906000526020600020905b81548152906001019060200180831161154e57829003601f168201915b5050505050905084565b61157f3383611b24565b61159b5760405162461bcd60e51b81526004016107f590614222565b61096a84848484611fec565b600881815481106115b757600080fd5b90600052602060002090600202016000915090508060000180546115da906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054611606906140db565b80156116535780601f1061162857610100808354040283529160200191611653565b820191906000526020600020905b81548152906001019060200180831161163657829003601f168201915b505050505090806001018054611668906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054611694906140db565b80156116e15780601f106116b6576101008083540402835291602001916116e1565b820191906000526020600020905b8154815290600101906020018083116116c457829003601f168201915b5050505050905082565b60606116f682611a57565b6106348261201f565b600a818154811061170f57600080fd5b9060005260206000209060040201600091509050806000018054611348906140db565b6013602052600090815260409020805481906110b3906140db565b6012602052600090815260409020805481906115da906140db565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806117a957506006546001600160a01b031633145b6117b257600080fd5b60098054600181018255600091909152815182916003027f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af01908190610a8b9082614163565b611800611ce7565b600c5460ff161561181057600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663100b815d6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561186b57600080fd5b505af115801561187f573d6000803e3d6000fd5b5050600c805460ff191660011790555050565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806118d357506006546001600160a01b031633145b6118dc57600080fd5b60106109c68282614163565b601160205260009081526040902080548190610bf7906140db565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061197257506006546001600160a01b031633145b61197b57600080fd5b60078054600181018255600091909152815182916002027fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688019081906119c19082614163565b5060208201518160010155505050565b6119d9611ce7565b6001600160a01b038116611a3e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107f5565b611a4781611d41565b50565b600f8054610700906140db565b6000818152600260205260409020546001600160a01b0316611a475760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016107f5565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611aeb82610c80565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611b3083610c80565b9050806001600160a01b0316846001600160a01b03161480611b575750611b578185611903565b80611b7b5750836001600160a01b0316611b70846106cc565b6001600160a01b0316145b949350505050565b826001600160a01b0316611b9682610c80565b6001600160a01b031614611bbc5760405162461bcd60e51b81526004016107f5906143c3565b6001600160a01b038216611c1e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107f5565b826001600160a01b0316611c3182610c80565b6001600160a01b031614611c575760405162461bcd60e51b81526004016107f5906143c3565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6006546001600160a01b03163314610d785760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f5565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216611de95760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107f5565b6000818152600260205260409020546001600160a01b031615611e4e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107f5565b6000818152600260205260409020546001600160a01b031615611eb35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107f5565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b031603611f7f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107f5565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611ff7848484611b83565b6120038484848461318c565b61096a5760405162461bcd60e51b81526004016107f590614408565b606060006040518060a0016040528060628152602001615eb36062913960008481526011602052604081206001015491925060609182910361290c576128bc6012600087815260200190815260200160002060405180604001604052908160008201805461208c906140db565b80601f01602080910402602001604051908101604052809291908181526020018280546120b8906140db565b80156121055780601f106120da57610100808354040283529160200191612105565b820191906000526020600020905b8154815290600101906020018083116120e857829003601f168201915b5050505050815260200160018201805461211e906140db565b80601f016020809104026020016040519081016040528092919081815260200182805461214a906140db565b80156121975780601f1061216c57610100808354040283529160200191612197565b820191906000526020600020905b81548152906001019060200180831161217a57829003601f168201915b50505091909252505050600087815260136020526040908190208151606081019092528054829082906121c9906140db565b80601f01602080910402602001604051908101604052809291908181526020018280546121f5906140db565b80156122425780601f1061221757610100808354040283529160200191612242565b820191906000526020600020905b81548152906001019060200180831161222557829003601f168201915b5050505050815260200160018201805461225b906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612287906140db565b80156122d45780601f106122a9576101008083540402835291602001916122d4565b820191906000526020600020905b8154815290600101906020018083116122b757829003601f168201915b505050505081526020016002820180546122ed906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612319906140db565b80156123665780601f1061233b57610100808354040283529160200191612366565b820191906000526020600020905b81548152906001019060200180831161234957829003601f168201915b5050509190925250505060008881526014602052604090819020815160808101909252805482908290612398906140db565b80601f01602080910402602001604051908101604052809291908181526020018280546123c4906140db565b80156124115780601f106123e657610100808354040283529160200191612411565b820191906000526020600020905b8154815290600101906020018083116123f457829003601f168201915b5050505050815260200160018201805461242a906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612456906140db565b80156124a35780601f10612478576101008083540402835291602001916124a3565b820191906000526020600020905b81548152906001019060200180831161248657829003601f168201915b505050505081526020016002820180546124bc906140db565b80601f01602080910402602001604051908101604052809291908181526020018280546124e8906140db565b80156125355780601f1061250a57610100808354040283529160200191612535565b820191906000526020600020905b81548152906001019060200180831161251857829003601f168201915b5050505050815260200160038201805461254e906140db565b80601f016020809104026020016040519081016040528092919081815260200182805461257a906140db565b80156125c75780601f1061259c576101008083540402835291602001916125c7565b820191906000526020600020905b8154815290600101906020018083116125aa57829003601f168201915b50505091909252505050600089815260156020526040908190208151606081019092528054829082906125f9906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612625906140db565b80156126725780601f1061264757610100808354040283529160200191612672565b820191906000526020600020905b81548152906001019060200180831161265557829003601f168201915b5050505050815260200160018201805461268b906140db565b80601f01602080910402602001604051908101604052809291908181526020018280546126b7906140db565b80156127045780601f106126d957610100808354040283529160200191612704565b820191906000526020600020905b8154815290600101906020018083116126e757829003601f168201915b5050505050815260200160028201805461271d906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612749906140db565b80156127965780601f1061276b57610100808354040283529160200191612796565b820191906000526020600020905b81548152906001019060200180831161277957829003601f168201915b5050505050815250506001600f80546127ae906140db565b80601f01602080910402602001604051908101604052809291908181526020018280546127da906140db565b80156128275780601f106127fc57610100808354040283529160200191612827565b820191906000526020600020905b81548152906001019060200180831161280a57829003601f168201915b505050505060108054612839906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612865906140db565b80156128b25780601f10612887576101008083540402835291602001916128b2565b820191906000526020600020905b81548152906001019060200180831161289557829003601f168201915b505050505061328d565b9150600e6040516020016128d091906144cd565b60405160208183030381529060405290508281836040516020016128f693929190614519565b60405160208183030381529060405292506130d6565b6000858152601160205260409020600190810154900361308e5761307960126000878152602001908152602001600020604051806040016040529081600082018054612957906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612983906140db565b80156129d05780601f106129a5576101008083540402835291602001916129d0565b820191906000526020600020905b8154815290600101906020018083116129b357829003601f168201915b505050505081526020016001820180546129e9906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612a15906140db565b8015612a625780601f10612a3757610100808354040283529160200191612a62565b820191906000526020600020905b815481529060010190602001808311612a4557829003601f168201915b5050509190925250505060008781526013602052604090819020815160608101909252805482908290612a94906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612ac0906140db565b8015612b0d5780601f10612ae257610100808354040283529160200191612b0d565b820191906000526020600020905b815481529060010190602001808311612af057829003601f168201915b50505050508152602001600182018054612b26906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612b52906140db565b8015612b9f5780601f10612b7457610100808354040283529160200191612b9f565b820191906000526020600020905b815481529060010190602001808311612b8257829003601f168201915b50505050508152602001600282018054612bb8906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612be4906140db565b8015612c315780601f10612c0657610100808354040283529160200191612c31565b820191906000526020600020905b815481529060010190602001808311612c1457829003601f168201915b5050509190925250505060008881526014602052604090819020815160808101909252805482908290612c63906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612c8f906140db565b8015612cdc5780601f10612cb157610100808354040283529160200191612cdc565b820191906000526020600020905b815481529060010190602001808311612cbf57829003601f168201915b50505050508152602001600182018054612cf5906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612d21906140db565b8015612d6e5780601f10612d4357610100808354040283529160200191612d6e565b820191906000526020600020905b815481529060010190602001808311612d5157829003601f168201915b50505050508152602001600282018054612d87906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612db3906140db565b8015612e005780601f10612dd557610100808354040283529160200191612e00565b820191906000526020600020905b815481529060010190602001808311612de357829003601f168201915b50505050508152602001600382018054612e19906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612e45906140db565b8015612e925780601f10612e6757610100808354040283529160200191612e92565b820191906000526020600020905b815481529060010190602001808311612e7557829003601f168201915b5050509190925250505060008981526015602052604090819020815160608101909252805482908290612ec4906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612ef0906140db565b8015612f3d5780601f10612f1257610100808354040283529160200191612f3d565b820191906000526020600020905b815481529060010190602001808311612f2057829003601f168201915b50505050508152602001600182018054612f56906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612f82906140db565b8015612fcf5780601f10612fa457610100808354040283529160200191612fcf565b820191906000526020600020905b815481529060010190602001808311612fb257829003601f168201915b50505050508152602001600282018054612fe8906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054613014906140db565b80156130615780601f1061303657610100808354040283529160200191613061565b820191906000526020600020905b81548152906001019060200180831161304457829003601f168201915b5050505050815250506000600f80546127ae906140db565b915082826040516020016128f692919061456d565b600e6040516020016130a091906144cd565b604051602081830303815290604052905082816040516020016130c492919061456d565b60405160208183030381529060405292505b6130df85613675565b6130e884613707565b6040516020016130f99291906145ad565b60408051601f198184030181528282526000888152601260209081528382206013825284832060148352858420601584528685206011855296909420949950613149968a969295919493016146a8565b604051602081830303815290604052925061316383613707565b6040516020016131739190614833565b60408051601f1981840301815291905295945050505050565b60006001600160a01b0384163b1561328257604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906131d0903390899088908890600401614878565b6020604051808303816000875af192505050801561320b575060408051601f3d908101601f19168201909252613208918101906148ab565b60015b613268573d808015613239576040519150601f19603f3d011682016040523d82523d6000602084013e61323e565b606091505b5080516000036132605760405162461bcd60e51b81526004016107f590614408565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611b7b565b506001949350505050565b60606000886020015187602001516040516020016132ac9291906148c8565b60408051601f19818403018152828252908a01519092506132d4918391908190602001614993565b60408051601f19818403018152828252908801516020898101519294506132fe9385939101614a65565b60408051601f19818403018152828252908a015160208b8101519294506133289385939101614bbb565b60408051601f19818403018152828252908a01516020898101519294506133529385939101614c5b565b6040516020818303038152906040529050808660400151896040015160405160200161338093929190614d4b565b60408051601f198184030181528282529088015160208b8101519294506133aa9385939101614e46565b60408051601f19818403018152828252908801519092506133d2918391908190602001614f76565b60408051601f19818403018152828252908a01519092506133fa918391908190602001615067565b604051602081830303815290604052905080866040015189604001516040516020016134289392919061514d565b604051602081830303815290604052905080866040015188604001516040516020016134569392919061522c565b60405160208183030381529060405290508087606001518760400151604051602001613484939291906153a8565b60408051601f19818403018152828252908a01519092506134ac918391908190602001615564565b60408051601f19818403018152828252908a015160608a01519193506134d792849290602001615636565b60408051601f198184030181528282529088015160608a015191935061350292849290602001615733565b60405160208183030381529060405290508087606001518760400151604051602001613530939291906157e3565b6040516020818303038152906040529050808760400151876040015160405160200161355e939291906158ac565b6040516020818303038152906040529050808760600151876040015160405160200161358c9392919061596d565b60408051601f198184030181528282529088015160608a01519193506135b792849290602001615a37565b60408051601f198184030181529082905260608901519092506135e1918391908190602001615b09565b60408051601f1981840301815282825290890151909250613609918391908190602001615bbc565b604051602081830303815290604052905084156136475780848460405160200161363593929190615cee565b60405160208183030381529060405290505b806040516020016136589190615dbd565b60408051808303601f190181529190529998505050505050505050565b6060600061368283613859565b60010190506000816001600160401b038111156136a1576136a1613a2d565b6040519080825280601f01601f1916602001820160405280156136cb576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846136d557509392505050565b6060815160000361372657505060408051602081019091526000815290565b6000604051806060016040528060408152602001615e736040913990506000600384516002613755919061436d565b61375f9190615de7565b61376a906004615dfb565b6001600160401b0381111561378157613781613a2d565b6040519080825280601f01601f1916602001820160405280156137ab576020820181803683370190505b509050600182016020820185865187015b80821015613817576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f81168501518453506001830192506137bc565b505060038651066001811461383357600281146138465761384e565b603d6001830353603d600283035361384e565b603d60018303535b509195945050505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106138985772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106138c4576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106138e257662386f26fc10000830492506010015b6305f5e10083106138fa576305f5e100830492506008015b612710831061390e57612710830492506004015b60648310613920576064830492506002015b600a83106106345760010192915050565b6001600160e01b031981168114611a4757600080fd5b60006020828403121561395957600080fd5b813561396481613931565b9392505050565b60005b8381101561398657818101518382015260200161396e565b50506000910152565b600081518084526139a781602086016020860161396b565b601f01601f19169290920160200192915050565b602081526000613964602083018461398f565b6000602082840312156139e057600080fd5b5035919050565b80356001600160a01b03811681146139fe57600080fd5b919050565b60008060408385031215613a1657600080fd5b613a1f836139e7565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051608081016001600160401b0381118282101715613a6557613a65613a2d565b60405290565b604080519081016001600160401b0381118282101715613a6557613a65613a2d565b60006001600160401b0380841115613aa757613aa7613a2d565b604051601f8501601f19908116603f01168101908282118183101715613acf57613acf613a2d565b81604052809350858152868686011115613ae857600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112613b1357600080fd5b61396483833560208501613a8d565b600060208284031215613b3457600080fd5b81356001600160401b0380821115613b4b57600080fd5b9083019060808286031215613b5f57600080fd5b613b67613a43565b823582811115613b7657600080fd5b613b8287828601613b02565b825250602083013582811115613b9757600080fd5b613ba387828601613b02565b602083015250604083013582811115613bbb57600080fd5b613bc787828601613b02565b604083015250606083013582811115613bdf57600080fd5b613beb87828601613b02565b60608301525095945050505050565b600060208284031215613c0c57600080fd5b81356001600160401b03811115613c2257600080fd5b611b7b84828501613b02565b600080600060608486031215613c4357600080fd5b613c4c846139e7565b9250613c5a602085016139e7565b9150604084013590509250925092565b600060608284031215613c7c57600080fd5b604051606081016001600160401b038282108183111715613c9f57613c9f613a2d565b816040528293508435915080821115613cb757600080fd5b613cc386838701613b02565b83526020850135915080821115613cd957600080fd5b613ce586838701613b02565b60208401526040850135915080821115613cfe57600080fd5b50613d0b85828601613b02565b6040830152505092915050565b600060208284031215613d2a57600080fd5b81356001600160401b03811115613d4057600080fd5b611b7b84828501613c6a565b60008060408385031215613d5f57600080fd5b50508035926020909101359150565b604081526000613d81604083018561398f565b90508260208301529392505050565b600060208284031215613da257600080fd5b613964826139e7565b60008060208385031215613dbe57600080fd5b82356001600160401b0380821115613dd557600080fd5b818501915085601f830112613de957600080fd5b813581811115613df857600080fd5b8660208260051b8501011115613e0d57600080fd5b60209290920196919550909350505050565b606081526000613e32606083018661398f565b8281036020840152613e44818661398f565b90508281036040840152613e58818561398f565b9695505050505050565b60008060408385031215613e7557600080fd5b613e7e836139e7565b915060208301358015158114613e9357600080fd5b809150509250929050565b600060208284031215613eb057600080fd5b81356001600160401b0380821115613ec757600080fd5b9083019060408286031215613edb57600080fd5b613ee3613a6b565b823582811115613ef257600080fd5b613efe87828601613b02565b825250602083013582811115613f1357600080fd5b613f1f87828601613b02565b60208301525095945050505050565b608081526000613f41608083018761398f565b8281036020840152613f53818761398f565b90508281036040840152613f67818661398f565b90508281036060840152613f7b818561398f565b979650505050505050565b60008060008060808587031215613f9c57600080fd5b613fa5856139e7565b9350613fb3602086016139e7565b92506040850135915060608501356001600160401b03811115613fd557600080fd5b8501601f81018713613fe657600080fd5b613ff587823560208401613a8d565b91505092959194509250565b604081526000614014604083018561398f565b8281036020840152614026818561398f565b95945050505050565b6000806040838503121561404257600080fd5b61404b836139e7565b9150614059602084016139e7565b90509250929050565b60006020828403121561407457600080fd5b81356001600160401b038082111561408b57600080fd5b908301906040828603121561409f57600080fd5b6140a7613a6b565b8235828111156140b657600080fd5b6140c287828601613b02565b8252506020830135602082015280935050505092915050565b600181811c908216806140ef57607f821691505b60208210810361410f57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561089657600081815260208120601f850160051c8101602086101561413c5750805b601f850160051c820191505b8181101561415b57828155600101614148565b505050505050565b81516001600160401b0381111561417c5761417c613a2d565b6141908161418a84546140db565b84614115565b602080601f8311600181146141c557600084156141ad5750858301515b600019600386901b1c1916600185901b17855561415b565b600085815260208120601f198616915b828110156141f4578886015182559484019460019091019084016141d5565b50858210156142125787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b818103614290575050565b61429a82546140db565b6001600160401b038111156142b1576142b1613a2d565b6142bf8161418a84546140db565b6000601f8211600181146142f357600083156142db5750848201545b600019600385901b1c1916600184901b17845561105d565b600085815260209020601f19841690600086815260209020845b8381101561432d578286015482556001958601959091019060200161430d565b50858310156142125793015460001960f8600387901b161c19169092555050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b8082018082111561063457610634614357565b634e487b7160e01b600052601260045260246000fd5b6000826143a5576143a5614380565b500690565b6000600182016143bc576143bc614357565b5060010190565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008154614467816140db565b6001828116801561447f5760018114614494576144c3565b60ff19841687528215158302870194506144c3565b8560005260208060002060005b858110156144ba5781548a8201529084019082016144a1565b50505082870194505b5050505092915050565b641e39bb339f60d91b815260006144e7600583018461445a565b651e17b9bb339f60d11b81526006019392505050565b6000815161450f81856020860161396b565b9290920192915050565b6000845161452b81846020890161396b565b84519083019061453f81836020890161396b565b845191019061455281836020880161396b565b651e17b9bb339f60d11b910190815260060195945050505050565b6000835161457f81846020880161396b565b83519083019061459381836020880161396b565b651e17b9bb339f60d11b9101908152600601949350505050565b757b226e616d65223a2022436f6f6b692043617264202360501b815282516000906145df81601685016020880161396b565b7f222c20226465736372697074696f6e223a2022492066696e6420746865204f756016918401918201527f726f62726963206d656d657320746f20626520746865206d6f7374207361746960368201527f736679696e6720746f20636f6e74656d706c6174652e222c2022696d6167652260568201527f3a2022646174613a696d6167652f7376672b786d6c3b6261736536342c0000006076820152835161468e81609384016020880161396b565b601160f91b60939290910191820152609401949350505050565b6000875160206146bb8285838d0161396b565b7f2c202261747472696275746573223a205b7b202274726169745f74797065223a9184019182527f20224261636b67726f756e64222c202276616c7565223a20220000000000000081830152614714603983018a61445a565b7f227d2c207b202274726169745f74797065223a202246616365222c202276616c8152653ab2911d101160d11b828201529150614754602683018961445a565b7f227d2c207b202274726169745f74797065223a2022486174222c202276616c7581526432911d101160d91b828201529150614793602583018861445a565b7f227d2c207b202274726169745f74797065223a2022426f72646572222c20227681526730b63ab2911d101160c11b8282015291506147d5602883018761445a565b91507f227d2c207b202274726169745f74797065223a2022446973706c6179222c20228252683b30b63ab2911d101160b91b8183015250614819602982018561445a565b63227d5d7d60e01b81526004019998505050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161486b81601d85016020870161396b565b91909101601d0192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613e589083018461398f565b6000602082840312156148bd57600080fd5b815161396481613931565b7f3c7376673e3c726563742077696474683d223130302522206865696768743d2281526b1898181291103334b6361e9160a11b60208201526000835161491581602c85016020880161396b565b7f22202f3e3c706f6c79676f6e20706f696e74733d223230302c31363020323030602c918401918201527f2c3730203138302c3730203138302c36302036302c36302036302c3136302220604c820152653334b6361e9160d11b606c820152835161498781607284016020880161396b565b01607201949350505050565b600084516149a581846020890161396b565b8083019050600080516020615e1383398151915281527f2220783d2232302220793d22313730222066696c6c3d22000000000000000000602082015284516149f481603784016020890161396b565b7f222f3e3c726563742077696474683d22313022206865696768743d2231302e31603792909101918201527f2220783d2234302220793d22313530222066696c6c3d2200000000000000000060578201528351614a5881606e84016020880161396b565b01606e0195945050505050565b60008451614a7781846020890161396b565b80830190507f222f3e3c706f6c79676f6e20706f696e74733d2233302c3136302035302c313681527f302035302c3138302036302c3138302036302c3139302037302c31393020373060208201527f2c3138302038302c3138302038302c3230302035302c3230302035302c31393060408201527f2034302c3139302034302c3138302033302c313830222066696c6c3d2200000060608201528451614b2481607d84016020890161396b565b7f222f3e3c706f6c79676f6e20706f696e74733d2237302c3138302037302c3139607d92909101918201527f302036302c3139302036302c3138302035302c3138302035302c313630203630609d8201527f2c3136302036302c3135302037302c313530222066696c6c3d2200000000000060bd8201528351614bae8160d784016020880161396b565b0160d70195945050505050565b60008451614bcd81846020890161396b565b8083019050600080516020615e33833981519152808252743c1e911b1811103c9e91189b9811103334b6361e9160591b60208301528551614c15816035850160208a0161396b565b6035920191820152743c1e911b1811103c9e91189b1811103334b6361e9160591b60558201528351614c4e81606a84016020880161396b565b01606a0195945050505050565b60008451614c6d81846020890161396b565b8083019050600080516020615e1383398151915281527f2e312220783d2235392e39352220793d223232392e3935222066696c6c3d220060208201528451614cbc81603f84016020890161396b565b7f222f3e3c706f6c79676f6e20706f696e74733d2237302c323430203137302c32603f92909101918201527f3430203137302c3136302037302c3136302037302c3138302038302c31383020605f820152741c1816191918101b981619191811103334b6361e9160591b607f8201528351614d3e81609484016020880161396b565b0160940195945050505050565b60008451614d5d81846020890161396b565b80830190507f222f3e3c706f6c79676f6e20706f696e74733d2239302c3231302039302c323081527f302038302c3230302038302c3232302036302c3232302036302c32343020353060208201527f2c3234302035302c3233302037302c3233302037302c323130222066696c6c3d6040820152601160f91b60608201528451614dee81606184016020890161396b565b600080516020615e3383398151915260619290910191820152753c1e9118989811103c9e9119191811103334b6361e9160511b60818201528351614e3981609784016020880161396b565b0160970195945050505050565b60008451614e5881846020890161396b565b80830190507f222f3e3c706f6c79676f6e20706f696e74733d2239302c323130203131302c3281527f3130203131302c323330203130302c323330203130302c3232302039302c32326020820152681811103334b6361e9160b91b60408201528451614ecb81604984016020890161396b565b7f222f3e3c706f6c79676f6e20706f696e74733d223131302c323230203137302c604992909101918201527f323230203137302c323030203138302c323030203138302c313730203131302c60698201527f313730203131302c313830203130302c313830203130302c323030203131302c60898201526a19181811103334b6361e9160a91b60a98201528351614f698160b484016020880161396b565b0160b40195945050505050565b60008451614f8881846020890161396b565b80830190507f222f3e3c706f6c79676f6e20706f696e74733d223132302c323230203135302c81527f323230203135302c323330203134302c323330203134302c323430203133302c60208201527f323430203133302c323330203132302c323330222066696c6c3d2200000000006040820152845161500f81605b84016020890161396b565b600080516020615e33833981519152605b9290910191820152753c1e9118991811103c9e9119181811103334b6361e9160511b607b820152835161505a81609184016020880161396b565b0160910195945050505050565b6000845161507981846020890161396b565b80830190507f222f3e3c706f6c79676f6e20706f696e74733d223133302c323130203133302c81527f323030203134302c323030203134302c323230203135302c323230203135302c60208201526a19189811103334b6361e9160a91b604082015284516150ee81604b84016020890161396b565b600080516020615e13833981519152604b92909101918201527f2220783d223137392e392220793d22323330222066696c6c3d22000000000000606b820152835161514081608584016020880161396b565b0160850195945050505050565b6000845161515f81846020890161396b565b80830190507f222f3e3c706f6c79676f6e20706f696e74733d223135302c323230203135302c81527f323130203137302c323130203137302c323430203138302c323430203138302c60208201526a19191811103334b6361e9160a91b604082015284516151d481604b84016020890161396b565b600080516020615e33833981519152604b9290910191820152753c1e91189b1811103c9e9119181811103334b6361e9160511b606b820152835161521f81608184016020880161396b565b0160810195945050505050565b6000845161523e81846020890161396b565b80830190507f222f3e3c706f6c79676f6e20706f696e74733d223137302c323030203137302c81527f323130203138302c323130203138302c313830203136302c313830203136302c60208201527f313630203133302c313630203133302c313730203230302c313730203230302c60408201527f3730203139302c3730203139302c3930203231302c3930203231302c3132302060608201527f3139302c313230203139302c313530203231302c313530203231302c3138302060808201527f3139302c313830203139302c323030222066696c6c3d2200000000000000000060a082015284516153378160b784016020890161396b565b7f222f3e3c726563742077696474683d2232302e3122206865696768743d22333060b792909101918201527f2e312220783d2235392e39352220793d2238392e3935222066696c6c3d22000060d7820152835161539b8160f584016020880161396b565b0160f50195945050505050565b600084516153ba81846020890161396b565b80830190507f222f3e3c706f6c79676f6e20706f696e74733d2235392c3132302035392c313481527f312039302c3134312039302c313330203131302c313330203131302c3131302060208201527f3134302c313130203134302c313330203137302c313330203137302c3132302060408201527f39302c3132302039302c313030203130302c313030203130302c36302039302c60608201527f36302039302c39302038302c39302038302c3131302037302c3131302037302c60808201526a18991811103334b6361e9160a91b60a082015284516154a18160ab84016020890161396b565b7f222f3e3c706f6c79676f6e20706f696e74733d2235302c3136302035302c393060ab92909101918201527f2036302c39302036302c313430203130302c313430203130302c31383020393060cb8201527f2c3138302039302c313630203132302c313630203132302c3135302038302c3160eb8201527f35302038302c3136302037302c3136302037302c3135302036302c313530203661010b8201526c1816189b1811103334b6361e9160991b61012b820152613e586101388201856144fd565b6000845161557681846020890161396b565b8083019050600080516020615e5383398151915281527f2e312220783d2237392e39352220793d223134392e3935222066696c6c3d2200602082015284516155c581603f84016020890161396b565b7f222f3e3c726563742077696474683d22323022206865696768743d2231302e31603f92909101918201527f2220783d223131302220793d223135392e3935222066696c6c3d220000000000605f820152835161562981607a84016020880161396b565b01607a0195945050505050565b6000845161564881846020890161396b565b80830190507f222f3e3c706f6c79676f6e20706f696e74733d223133302c313830203134302c81527f313830203134302c313930203135302c313930203135302c313830203136302c60208201527f313830203136302c313730203133302c313730222066696c6c3d220000000000604082015284516156cf81605b84016020890161396b565b7f222f3e3c726563742077696474683d22313022206865696768743d2231302e31605b92909101918201527f2220783d2235302220793d2237392e3935222066696c6c3d2200000000000000607b8201528351614d3e81609484016020880161396b565b6000845161574581846020890161396b565b8083019050600080516020615e138339815191528082527f2e312220783d2235392e39352220793d2236392e3935222066696c6c3d2200006020830152855161579581603e850160208a0161396b565b603e9201918201527f2e312220783d2235392e39352220793d2235392e3935222066696c6c3d220000605e82015283516157d681607c84016020880161396b565b01607c0195945050505050565b600084516157f581846020890161396b565b80830190507f222f3e3c726563742077696474683d22353022206865696768743d22323022208152733c1e911c9811103c9e911a1811103334b6361e9160611b6020820152845161584d81603484016020890161396b565b600080516020615e53833981519152603492909101918201527f2220783d2236392e39352220793d223530222066696c6c3d22000000000000006054820152835161589f81606d84016020880161396b565b01606d0195945050505050565b600084516158be81846020890161396b565b8083019050600080516020615e338339815191528152733c1e911c9811103c9e911a9811103334b6361e9160611b6020820152845161590481603484016020890161396b565b7f222f3e3c726563742077696474683d22333022206865696768743d223130222060349290910191820152743c1e9118981811103c9e911a1811103334b6361e9160591b6054820152835161596081606984016020880161396b565b0160690195945050505050565b6000845161597f81846020890161396b565b80830190507f222f3e3c726563742077696474683d22313022206865696768743d22323022208152743c1e91189b1811103c9e911a9811103334b6361e9160591b602082015284516159d881603584016020890161396b565b600080516020615e53833981519152603592909101918201527f2220783d223133392e39352220793d223530222066696c6c3d2200000000000060558201528351615a2a81606f84016020880161396b565b01606f0195945050505050565b60008451615a4981846020890161396b565b8083019050600080516020615e1383398151915281527f2220783d223136392e39352220793d223630222066696c6c3d2200000000000060208201528451615a9881603a84016020890161396b565b7f222f3e3c726563742077696474683d2231302e3122206865696768743d223230603a92909101918201527f2220783d223137392e39352220793d223630222066696c6c3d22000000000000605a8201528351615afc81607484016020880161396b565b0160740195945050505050565b60008451615b1b81846020890161396b565b8083019050600080516020615e1383398151915281527f2e312220783d223138392e39352220793d2238392e3935222066696c6c3d220060208201528451615b6a81603f84016020890161396b565b600080516020615e53833981519152603f92909101918201527f2220783d223136392e39352220793d22313330222066696c6c3d220000000000605f820152835161562981607a84016020880161396b565b60008451615bce81846020890161396b565b80830190507f222f3e3c706f6c79676f6e20706f696e74733d223136302c3630203135302c3681527f30203135302c313230203134302c313230203134302c313030203136302c31306020820152681811103334b6361e9160b91b8060408301528551615c42816049850160208a0161396b565b7f222f3e3c706f6c79676f6e20706f696e74733d223130302c3133302039302c31604993909101928301527f33302039302c313430203132302c313430203132302c313630203230302c313660698301527f30203230302c313730203136302c313730203136302c313530203130302c3135608983015260a98201528351615cd18160b284016020880161396b565b6211179f60e91b60b2929091019182015260b50195945050505050565b60008451615d0081846020890161396b565b80830190507f3c616e696d617465206174747269627574654e616d653d226f70616369747922815268103b30b63ab2b99e9160b91b60208201528451615d4d81602984016020890161396b565b661110323ab91e9160c91b602992909101918201528351615d7581603084016020880161396b565b7f2220626567696e3d2230732220726570656174436f756e743d22696e6465666960309290910191820152673734ba329110179f60c11b605082015260580195945050505050565b60008251615dcf81846020870161396b565b651e17b9bb339f60d11b920191825250600601919050565b600082615df657615df6614380565b500490565b80820281158282048414176106345761063461435756fe222f3e3c726563742077696474683d2231302e3122206865696768743d223130222f3e3c726563742077696474683d22313022206865696768743d2231302220222f3e3c726563742077696474683d2232302e3122206865696768743d2231304142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302032343020323430223ea2646970667358221220170b091bd6c714fe94b2117cc1add54a4ab46d5f66859826245164ef5ec3ee1d64736f6c6343000811003300000000000000000000000021578890329b5fb92c1869bd4d9dbce6c9fb571d

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102745760003560e01c806399daaddc11610151578063d75ca6ab116100c3578063e3b88fe811610087578063e3b88fe81461056d578063e985e9c514610580578063ed44d6e414610593578063eff9d291146105a6578063f2fde38b146105cd578063fd42ca64146105e057600080fd5b8063d75ca6ab14610519578063df145dd61461052c578063e01122881461053f578063e1c7392a14610552578063e268057d1461055a57600080fd5b8063b111ae2911610115578063b111ae2914610489578063b29e93051461049c578063b88d4fde146104bf578063c01a600d146104d2578063c87b56dd146104f3578063d024e8f11461050657600080fd5b806399daaddc14610425578063a22cb46514610447578063a6e710521461045a578063aa581ee81461046d578063affed0e01461048057600080fd5b806342842e0e116101ea57806370a08231116101ae57806370a08231146103d6578063715018a6146103e95780637c63d9b2146103f1578063872f18cd146104045780638da5cb5b1461040c57806395d89b411461041d57600080fd5b806342842e0e146103695780634c3538c51461037c5780634d0449091461038f57806362adae9b146103a25780636352211e146103c357600080fd5b8063095ea7b31161023c578063095ea7b3146102f65780630961dd9f1461030b5780631418363f1461031e57806318160ddd1461033157806323b872dd1461034357806333eba9481461035657600080fd5b806301ffc9a71461027957806306fdde03146102a157806307003bb4146102b6578063081812fc146102c357806308e058d6146102ee575b600080fd5b61028c610287366004613947565b6105e8565b60405190151581526020015b60405180910390f35b6102a961063a565b60405161029891906139bb565b600c5461028c9060ff1681565b6102d66102d13660046139ce565b6106cc565b6040516001600160a01b039091168152602001610298565b6102a96106f3565b610309610304366004613a03565b610781565b005b610309610319366004613b22565b61089b565b61030961032c366004613bfa565b610970565b600d545b604051908152602001610298565b610309610351366004613c2e565b6109ca565b610309610364366004613d18565b6109fb565b610309610377366004613c2e565b610ab5565b61030961038a366004613bfa565b610ad0565b61030961039d366004613d4c565b610b26565b6103b56103b03660046139ce565b610bc4565b604051610298929190613d6e565b6102d66103d13660046139ce565b610c80565b6103356103e4366004613d90565b610ce0565b610309610d66565b6103096103ff366004613dab565b610d7a565b6102a9611064565b6006546001600160a01b03166102d6565b6102a9611071565b6104386104333660046139ce565b611080565b60405161029893929190613e1f565b610309610455366004613e62565b611252565b6104386104683660046139ce565b61125d565b61030961047b366004613e9e565b611278565b610335600d5481565b6104386104973660046139ce565b61131d565b6104af6104aa3660046139ce565b61132d565b6040516102989493929190613f2e565b6103096104cd366004613f86565b611575565b6104e56104e03660046139ce565b6115a7565b604051610298929190614001565b6102a96105013660046139ce565b6116eb565b6104af6105143660046139ce565b6116ff565b6104386105273660046139ce565b611732565b6104e561053a3660046139ce565b61174d565b61030961054d366004613d18565b611768565b6103096117f8565b610309610568366004613bfa565b611892565b6103b561057b3660046139ce565b6118e8565b61028c61058e36600461402f565b611903565b6103096105a1366004614062565b611931565b6102d67f00000000000000000000000021578890329b5fb92c1869bd4d9dbce6c9fb571d81565b6103096105db366004613d90565b6119d1565b6102a9611a4a565b60006001600160e01b031982166380ac58cd60e01b148061061957506001600160e01b03198216635b5e139f60e01b145b8061063457506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060008054610649906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054610675906140db565b80156106c25780601f10610697576101008083540402835291602001916106c2565b820191906000526020600020905b8154815290600101906020018083116106a557829003601f168201915b5050505050905090565b60006106d782611a57565b506000908152600460205260409020546001600160a01b031690565b600e8054610700906140db565b80601f016020809104026020016040519081016040528092919081815260200182805461072c906140db565b80156107795780601f1061074e57610100808354040283529160200191610779565b820191906000526020600020905b81548152906001019060200180831161075c57829003601f168201915b505050505081565b600061078c82610c80565b9050806001600160a01b0316836001600160a01b0316036107fe5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b038216148061081a575061081a8133611903565b61088c5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016107f5565b6108968383611ab6565b505050565b336001600160a01b037f00000000000000000000000021578890329b5fb92c1869bd4d9dbce6c9fb571d1614806108dc57506006546001600160a01b031633145b6108e557600080fd5b600a8054600181018255600091909152815182916004027fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80190819061092b9082614163565b50602082015160018201906109409082614163565b50604082015160028201906109559082614163565b506060820151600382019061096a9082614163565b50505050565b336001600160a01b037f00000000000000000000000021578890329b5fb92c1869bd4d9dbce6c9fb571d1614806109b157506006546001600160a01b031633145b6109ba57600080fd5b600f6109c68282614163565b5050565b6109d43382611b24565b6109f05760405162461bcd60e51b81526004016107f590614222565b610896838383611b83565b336001600160a01b037f00000000000000000000000021578890329b5fb92c1869bd4d9dbce6c9fb571d161480610a3c57506006546001600160a01b031633145b610a4557600080fd5b600b8054600181018255600091909152815182916003027f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db901908190610a8b9082614163565b5060208201516001820190610aa09082614163565b506040820151600282019061096a9082614163565b61089683838360405180602001604052806000815250611575565b336001600160a01b037f00000000000000000000000021578890329b5fb92c1869bd4d9dbce6c9fb571d161480610b1157506006546001600160a01b031633145b610b1a57600080fd5b600e6109c68282614163565b81610b3081611a57565b610b3981610c80565b6001600160a01b0316336001600160a01b031614610b5657600080fd5b811580610b635750816001145b80610b6e5750816002145b610b7757600080fd5b60078281548110610b8a57610b8a61426f565b600091825260208083208684526011909152604090922060029091029091019080610bb58382614285565b50600191820154910155505050565b60078181548110610bd457600080fd5b9060005260206000209060020201600091509050806000018054610bf7906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054610c23906140db565b8015610c705780601f10610c4557610100808354040283529160200191610c70565b820191906000526020600020905b815481529060010190602001808311610c5357829003601f168201915b5050505050908060010154905082565b6000818152600260205260408120546001600160a01b0316806106345760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016107f5565b60006001600160a01b038216610d4a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016107f5565b506001600160a01b031660009081526003602052604090205490565b610d6e611ce7565b610d786000611d41565b565b610d82611ce7565b600c5460ff16610d9157600080fd5b600081815b8181101561105d57610dd0858583818110610db357610db361426f565b9050602002016020810190610dc89190613d90565b600d54611d93565b600d54610ddd844361436d565b610de7919061436d565b604051602001610df991815260200190565b6040516020818303038152906040528051906020012060001c92506007600081548110610e2857610e2861426f565b60009182526020808320600d5484526011909152604090922060029091029091019080610e558382614285565b5060019182015491015560088054610e6d9085614396565b81548110610e7d57610e7d61426f565b60009182526020808320600d5484526012909152604090922060029091029091019080610eaa8382614285565b50600181810190610ebd90840182614285565b505060098054909150610ed09085614396565b81548110610ee057610ee061426f565b60009182526020808320600d5484526013909152604090922060039091029091019080610f0d8382614285565b50600181810190610f2090840182614285565b50600281810190610f3390840182614285565b5050600a8054909150610f469085614396565b81548110610f5657610f5661426f565b60009182526020808320600d5484526014909152604090922060049091029091019080610f838382614285565b50600181810190610f9690840182614285565b50600281810190610fa990840182614285565b50600381810190610fbc90840182614285565b5050600b8054909150610fcf9085614396565b81548110610fdf57610fdf61426f565b60009182526020808320600d548452601590915260409092206003909102909101908061100c8382614285565b5060018181019061101f90840182614285565b5060028181019061103290840182614285565b5050600d805491506000611045836143aa565b91905055508080611055906143aa565b915050610d96565b5050505050565b60108054610700906140db565b606060018054610649906140db565b6009818154811061109057600080fd5b90600052602060002090600302016000915090508060000180546110b3906140db565b80601f01602080910402602001604051908101604052809291908181526020018280546110df906140db565b801561112c5780601f106111015761010080835404028352916020019161112c565b820191906000526020600020905b81548152906001019060200180831161110f57829003601f168201915b505050505090806001018054611141906140db565b80601f016020809104026020016040519081016040528092919081815260200182805461116d906140db565b80156111ba5780601f1061118f576101008083540402835291602001916111ba565b820191906000526020600020905b81548152906001019060200180831161119d57829003601f168201915b5050505050908060020180546111cf906140db565b80601f01602080910402602001604051908101604052809291908181526020018280546111fb906140db565b80156112485780601f1061121d57610100808354040283529160200191611248565b820191906000526020600020905b81548152906001019060200180831161122b57829003601f168201915b5050505050905083565b6109c6338383611f1e565b6015602052600090815260409020805481906110b3906140db565b336001600160a01b037f00000000000000000000000021578890329b5fb92c1869bd4d9dbce6c9fb571d1614806112b957506006546001600160a01b031633145b6112c257600080fd5b60088054600181018255600091909152815182916002027ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3019081906113089082614163565b506020820151600182019061096a9082614163565b600b818154811061109057600080fd5b601460205260009081526040902080548190611348906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054611374906140db565b80156113c15780601f10611396576101008083540402835291602001916113c1565b820191906000526020600020905b8154815290600101906020018083116113a457829003601f168201915b5050505050908060010180546113d6906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054611402906140db565b801561144f5780601f106114245761010080835404028352916020019161144f565b820191906000526020600020905b81548152906001019060200180831161143257829003601f168201915b505050505090806002018054611464906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054611490906140db565b80156114dd5780601f106114b2576101008083540402835291602001916114dd565b820191906000526020600020905b8154815290600101906020018083116114c057829003601f168201915b5050505050908060030180546114f2906140db565b80601f016020809104026020016040519081016040528092919081815260200182805461151e906140db565b801561156b5780601f106115405761010080835404028352916020019161156b565b820191906000526020600020905b81548152906001019060200180831161154e57829003601f168201915b5050505050905084565b61157f3383611b24565b61159b5760405162461bcd60e51b81526004016107f590614222565b61096a84848484611fec565b600881815481106115b757600080fd5b90600052602060002090600202016000915090508060000180546115da906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054611606906140db565b80156116535780601f1061162857610100808354040283529160200191611653565b820191906000526020600020905b81548152906001019060200180831161163657829003601f168201915b505050505090806001018054611668906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054611694906140db565b80156116e15780601f106116b6576101008083540402835291602001916116e1565b820191906000526020600020905b8154815290600101906020018083116116c457829003601f168201915b5050505050905082565b60606116f682611a57565b6106348261201f565b600a818154811061170f57600080fd5b9060005260206000209060040201600091509050806000018054611348906140db565b6013602052600090815260409020805481906110b3906140db565b6012602052600090815260409020805481906115da906140db565b336001600160a01b037f00000000000000000000000021578890329b5fb92c1869bd4d9dbce6c9fb571d1614806117a957506006546001600160a01b031633145b6117b257600080fd5b60098054600181018255600091909152815182916003027f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af01908190610a8b9082614163565b611800611ce7565b600c5460ff161561181057600080fd5b7f00000000000000000000000021578890329b5fb92c1869bd4d9dbce6c9fb571d6001600160a01b031663100b815d6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561186b57600080fd5b505af115801561187f573d6000803e3d6000fd5b5050600c805460ff191660011790555050565b336001600160a01b037f00000000000000000000000021578890329b5fb92c1869bd4d9dbce6c9fb571d1614806118d357506006546001600160a01b031633145b6118dc57600080fd5b60106109c68282614163565b601160205260009081526040902080548190610bf7906140db565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b336001600160a01b037f00000000000000000000000021578890329b5fb92c1869bd4d9dbce6c9fb571d16148061197257506006546001600160a01b031633145b61197b57600080fd5b60078054600181018255600091909152815182916002027fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688019081906119c19082614163565b5060208201518160010155505050565b6119d9611ce7565b6001600160a01b038116611a3e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107f5565b611a4781611d41565b50565b600f8054610700906140db565b6000818152600260205260409020546001600160a01b0316611a475760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016107f5565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611aeb82610c80565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611b3083610c80565b9050806001600160a01b0316846001600160a01b03161480611b575750611b578185611903565b80611b7b5750836001600160a01b0316611b70846106cc565b6001600160a01b0316145b949350505050565b826001600160a01b0316611b9682610c80565b6001600160a01b031614611bbc5760405162461bcd60e51b81526004016107f5906143c3565b6001600160a01b038216611c1e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107f5565b826001600160a01b0316611c3182610c80565b6001600160a01b031614611c575760405162461bcd60e51b81526004016107f5906143c3565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6006546001600160a01b03163314610d785760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f5565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216611de95760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107f5565b6000818152600260205260409020546001600160a01b031615611e4e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107f5565b6000818152600260205260409020546001600160a01b031615611eb35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107f5565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b031603611f7f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107f5565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611ff7848484611b83565b6120038484848461318c565b61096a5760405162461bcd60e51b81526004016107f590614408565b606060006040518060a0016040528060628152602001615eb36062913960008481526011602052604081206001015491925060609182910361290c576128bc6012600087815260200190815260200160002060405180604001604052908160008201805461208c906140db565b80601f01602080910402602001604051908101604052809291908181526020018280546120b8906140db565b80156121055780601f106120da57610100808354040283529160200191612105565b820191906000526020600020905b8154815290600101906020018083116120e857829003601f168201915b5050505050815260200160018201805461211e906140db565b80601f016020809104026020016040519081016040528092919081815260200182805461214a906140db565b80156121975780601f1061216c57610100808354040283529160200191612197565b820191906000526020600020905b81548152906001019060200180831161217a57829003601f168201915b50505091909252505050600087815260136020526040908190208151606081019092528054829082906121c9906140db565b80601f01602080910402602001604051908101604052809291908181526020018280546121f5906140db565b80156122425780601f1061221757610100808354040283529160200191612242565b820191906000526020600020905b81548152906001019060200180831161222557829003601f168201915b5050505050815260200160018201805461225b906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612287906140db565b80156122d45780601f106122a9576101008083540402835291602001916122d4565b820191906000526020600020905b8154815290600101906020018083116122b757829003601f168201915b505050505081526020016002820180546122ed906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612319906140db565b80156123665780601f1061233b57610100808354040283529160200191612366565b820191906000526020600020905b81548152906001019060200180831161234957829003601f168201915b5050509190925250505060008881526014602052604090819020815160808101909252805482908290612398906140db565b80601f01602080910402602001604051908101604052809291908181526020018280546123c4906140db565b80156124115780601f106123e657610100808354040283529160200191612411565b820191906000526020600020905b8154815290600101906020018083116123f457829003601f168201915b5050505050815260200160018201805461242a906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612456906140db565b80156124a35780601f10612478576101008083540402835291602001916124a3565b820191906000526020600020905b81548152906001019060200180831161248657829003601f168201915b505050505081526020016002820180546124bc906140db565b80601f01602080910402602001604051908101604052809291908181526020018280546124e8906140db565b80156125355780601f1061250a57610100808354040283529160200191612535565b820191906000526020600020905b81548152906001019060200180831161251857829003601f168201915b5050505050815260200160038201805461254e906140db565b80601f016020809104026020016040519081016040528092919081815260200182805461257a906140db565b80156125c75780601f1061259c576101008083540402835291602001916125c7565b820191906000526020600020905b8154815290600101906020018083116125aa57829003601f168201915b50505091909252505050600089815260156020526040908190208151606081019092528054829082906125f9906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612625906140db565b80156126725780601f1061264757610100808354040283529160200191612672565b820191906000526020600020905b81548152906001019060200180831161265557829003601f168201915b5050505050815260200160018201805461268b906140db565b80601f01602080910402602001604051908101604052809291908181526020018280546126b7906140db565b80156127045780601f106126d957610100808354040283529160200191612704565b820191906000526020600020905b8154815290600101906020018083116126e757829003601f168201915b5050505050815260200160028201805461271d906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612749906140db565b80156127965780601f1061276b57610100808354040283529160200191612796565b820191906000526020600020905b81548152906001019060200180831161277957829003601f168201915b5050505050815250506001600f80546127ae906140db565b80601f01602080910402602001604051908101604052809291908181526020018280546127da906140db565b80156128275780601f106127fc57610100808354040283529160200191612827565b820191906000526020600020905b81548152906001019060200180831161280a57829003601f168201915b505050505060108054612839906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612865906140db565b80156128b25780601f10612887576101008083540402835291602001916128b2565b820191906000526020600020905b81548152906001019060200180831161289557829003601f168201915b505050505061328d565b9150600e6040516020016128d091906144cd565b60405160208183030381529060405290508281836040516020016128f693929190614519565b60405160208183030381529060405292506130d6565b6000858152601160205260409020600190810154900361308e5761307960126000878152602001908152602001600020604051806040016040529081600082018054612957906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612983906140db565b80156129d05780601f106129a5576101008083540402835291602001916129d0565b820191906000526020600020905b8154815290600101906020018083116129b357829003601f168201915b505050505081526020016001820180546129e9906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612a15906140db565b8015612a625780601f10612a3757610100808354040283529160200191612a62565b820191906000526020600020905b815481529060010190602001808311612a4557829003601f168201915b5050509190925250505060008781526013602052604090819020815160608101909252805482908290612a94906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612ac0906140db565b8015612b0d5780601f10612ae257610100808354040283529160200191612b0d565b820191906000526020600020905b815481529060010190602001808311612af057829003601f168201915b50505050508152602001600182018054612b26906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612b52906140db565b8015612b9f5780601f10612b7457610100808354040283529160200191612b9f565b820191906000526020600020905b815481529060010190602001808311612b8257829003601f168201915b50505050508152602001600282018054612bb8906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612be4906140db565b8015612c315780601f10612c0657610100808354040283529160200191612c31565b820191906000526020600020905b815481529060010190602001808311612c1457829003601f168201915b5050509190925250505060008881526014602052604090819020815160808101909252805482908290612c63906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612c8f906140db565b8015612cdc5780601f10612cb157610100808354040283529160200191612cdc565b820191906000526020600020905b815481529060010190602001808311612cbf57829003601f168201915b50505050508152602001600182018054612cf5906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612d21906140db565b8015612d6e5780601f10612d4357610100808354040283529160200191612d6e565b820191906000526020600020905b815481529060010190602001808311612d5157829003601f168201915b50505050508152602001600282018054612d87906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612db3906140db565b8015612e005780601f10612dd557610100808354040283529160200191612e00565b820191906000526020600020905b815481529060010190602001808311612de357829003601f168201915b50505050508152602001600382018054612e19906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612e45906140db565b8015612e925780601f10612e6757610100808354040283529160200191612e92565b820191906000526020600020905b815481529060010190602001808311612e7557829003601f168201915b5050509190925250505060008981526015602052604090819020815160608101909252805482908290612ec4906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612ef0906140db565b8015612f3d5780601f10612f1257610100808354040283529160200191612f3d565b820191906000526020600020905b815481529060010190602001808311612f2057829003601f168201915b50505050508152602001600182018054612f56906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054612f82906140db565b8015612fcf5780601f10612fa457610100808354040283529160200191612fcf565b820191906000526020600020905b815481529060010190602001808311612fb257829003601f168201915b50505050508152602001600282018054612fe8906140db565b80601f0160208091040260200160405190810160405280929190818152602001828054613014906140db565b80156130615780601f1061303657610100808354040283529160200191613061565b820191906000526020600020905b81548152906001019060200180831161304457829003601f168201915b5050505050815250506000600f80546127ae906140db565b915082826040516020016128f692919061456d565b600e6040516020016130a091906144cd565b604051602081830303815290604052905082816040516020016130c492919061456d565b60405160208183030381529060405292505b6130df85613675565b6130e884613707565b6040516020016130f99291906145ad565b60408051601f198184030181528282526000888152601260209081528382206013825284832060148352858420601584528685206011855296909420949950613149968a969295919493016146a8565b604051602081830303815290604052925061316383613707565b6040516020016131739190614833565b60408051601f1981840301815291905295945050505050565b60006001600160a01b0384163b1561328257604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906131d0903390899088908890600401614878565b6020604051808303816000875af192505050801561320b575060408051601f3d908101601f19168201909252613208918101906148ab565b60015b613268573d808015613239576040519150601f19603f3d011682016040523d82523d6000602084013e61323e565b606091505b5080516000036132605760405162461bcd60e51b81526004016107f590614408565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611b7b565b506001949350505050565b60606000886020015187602001516040516020016132ac9291906148c8565b60408051601f19818403018152828252908a01519092506132d4918391908190602001614993565b60408051601f19818403018152828252908801516020898101519294506132fe9385939101614a65565b60408051601f19818403018152828252908a015160208b8101519294506133289385939101614bbb565b60408051601f19818403018152828252908a01516020898101519294506133529385939101614c5b565b6040516020818303038152906040529050808660400151896040015160405160200161338093929190614d4b565b60408051601f198184030181528282529088015160208b8101519294506133aa9385939101614e46565b60408051601f19818403018152828252908801519092506133d2918391908190602001614f76565b60408051601f19818403018152828252908a01519092506133fa918391908190602001615067565b604051602081830303815290604052905080866040015189604001516040516020016134289392919061514d565b604051602081830303815290604052905080866040015188604001516040516020016134569392919061522c565b60405160208183030381529060405290508087606001518760400151604051602001613484939291906153a8565b60408051601f19818403018152828252908a01519092506134ac918391908190602001615564565b60408051601f19818403018152828252908a015160608a01519193506134d792849290602001615636565b60408051601f198184030181528282529088015160608a015191935061350292849290602001615733565b60405160208183030381529060405290508087606001518760400151604051602001613530939291906157e3565b6040516020818303038152906040529050808760400151876040015160405160200161355e939291906158ac565b6040516020818303038152906040529050808760600151876040015160405160200161358c9392919061596d565b60408051601f198184030181528282529088015160608a01519193506135b792849290602001615a37565b60408051601f198184030181529082905260608901519092506135e1918391908190602001615b09565b60408051601f1981840301815282825290890151909250613609918391908190602001615bbc565b604051602081830303815290604052905084156136475780848460405160200161363593929190615cee565b60405160208183030381529060405290505b806040516020016136589190615dbd565b60408051808303601f190181529190529998505050505050505050565b6060600061368283613859565b60010190506000816001600160401b038111156136a1576136a1613a2d565b6040519080825280601f01601f1916602001820160405280156136cb576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846136d557509392505050565b6060815160000361372657505060408051602081019091526000815290565b6000604051806060016040528060408152602001615e736040913990506000600384516002613755919061436d565b61375f9190615de7565b61376a906004615dfb565b6001600160401b0381111561378157613781613a2d565b6040519080825280601f01601f1916602001820160405280156137ab576020820181803683370190505b509050600182016020820185865187015b80821015613817576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f81168501518453506001830192506137bc565b505060038651066001811461383357600281146138465761384e565b603d6001830353603d600283035361384e565b603d60018303535b509195945050505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106138985772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106138c4576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106138e257662386f26fc10000830492506010015b6305f5e10083106138fa576305f5e100830492506008015b612710831061390e57612710830492506004015b60648310613920576064830492506002015b600a83106106345760010192915050565b6001600160e01b031981168114611a4757600080fd5b60006020828403121561395957600080fd5b813561396481613931565b9392505050565b60005b8381101561398657818101518382015260200161396e565b50506000910152565b600081518084526139a781602086016020860161396b565b601f01601f19169290920160200192915050565b602081526000613964602083018461398f565b6000602082840312156139e057600080fd5b5035919050565b80356001600160a01b03811681146139fe57600080fd5b919050565b60008060408385031215613a1657600080fd5b613a1f836139e7565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051608081016001600160401b0381118282101715613a6557613a65613a2d565b60405290565b604080519081016001600160401b0381118282101715613a6557613a65613a2d565b60006001600160401b0380841115613aa757613aa7613a2d565b604051601f8501601f19908116603f01168101908282118183101715613acf57613acf613a2d565b81604052809350858152868686011115613ae857600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112613b1357600080fd5b61396483833560208501613a8d565b600060208284031215613b3457600080fd5b81356001600160401b0380821115613b4b57600080fd5b9083019060808286031215613b5f57600080fd5b613b67613a43565b823582811115613b7657600080fd5b613b8287828601613b02565b825250602083013582811115613b9757600080fd5b613ba387828601613b02565b602083015250604083013582811115613bbb57600080fd5b613bc787828601613b02565b604083015250606083013582811115613bdf57600080fd5b613beb87828601613b02565b60608301525095945050505050565b600060208284031215613c0c57600080fd5b81356001600160401b03811115613c2257600080fd5b611b7b84828501613b02565b600080600060608486031215613c4357600080fd5b613c4c846139e7565b9250613c5a602085016139e7565b9150604084013590509250925092565b600060608284031215613c7c57600080fd5b604051606081016001600160401b038282108183111715613c9f57613c9f613a2d565b816040528293508435915080821115613cb757600080fd5b613cc386838701613b02565b83526020850135915080821115613cd957600080fd5b613ce586838701613b02565b60208401526040850135915080821115613cfe57600080fd5b50613d0b85828601613b02565b6040830152505092915050565b600060208284031215613d2a57600080fd5b81356001600160401b03811115613d4057600080fd5b611b7b84828501613c6a565b60008060408385031215613d5f57600080fd5b50508035926020909101359150565b604081526000613d81604083018561398f565b90508260208301529392505050565b600060208284031215613da257600080fd5b613964826139e7565b60008060208385031215613dbe57600080fd5b82356001600160401b0380821115613dd557600080fd5b818501915085601f830112613de957600080fd5b813581811115613df857600080fd5b8660208260051b8501011115613e0d57600080fd5b60209290920196919550909350505050565b606081526000613e32606083018661398f565b8281036020840152613e44818661398f565b90508281036040840152613e58818561398f565b9695505050505050565b60008060408385031215613e7557600080fd5b613e7e836139e7565b915060208301358015158114613e9357600080fd5b809150509250929050565b600060208284031215613eb057600080fd5b81356001600160401b0380821115613ec757600080fd5b9083019060408286031215613edb57600080fd5b613ee3613a6b565b823582811115613ef257600080fd5b613efe87828601613b02565b825250602083013582811115613f1357600080fd5b613f1f87828601613b02565b60208301525095945050505050565b608081526000613f41608083018761398f565b8281036020840152613f53818761398f565b90508281036040840152613f67818661398f565b90508281036060840152613f7b818561398f565b979650505050505050565b60008060008060808587031215613f9c57600080fd5b613fa5856139e7565b9350613fb3602086016139e7565b92506040850135915060608501356001600160401b03811115613fd557600080fd5b8501601f81018713613fe657600080fd5b613ff587823560208401613a8d565b91505092959194509250565b604081526000614014604083018561398f565b8281036020840152614026818561398f565b95945050505050565b6000806040838503121561404257600080fd5b61404b836139e7565b9150614059602084016139e7565b90509250929050565b60006020828403121561407457600080fd5b81356001600160401b038082111561408b57600080fd5b908301906040828603121561409f57600080fd5b6140a7613a6b565b8235828111156140b657600080fd5b6140c287828601613b02565b8252506020830135602082015280935050505092915050565b600181811c908216806140ef57607f821691505b60208210810361410f57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561089657600081815260208120601f850160051c8101602086101561413c5750805b601f850160051c820191505b8181101561415b57828155600101614148565b505050505050565b81516001600160401b0381111561417c5761417c613a2d565b6141908161418a84546140db565b84614115565b602080601f8311600181146141c557600084156141ad5750858301515b600019600386901b1c1916600185901b17855561415b565b600085815260208120601f198616915b828110156141f4578886015182559484019460019091019084016141d5565b50858210156142125787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b818103614290575050565b61429a82546140db565b6001600160401b038111156142b1576142b1613a2d565b6142bf8161418a84546140db565b6000601f8211600181146142f357600083156142db5750848201545b600019600385901b1c1916600184901b17845561105d565b600085815260209020601f19841690600086815260209020845b8381101561432d578286015482556001958601959091019060200161430d565b50858310156142125793015460001960f8600387901b161c19169092555050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b8082018082111561063457610634614357565b634e487b7160e01b600052601260045260246000fd5b6000826143a5576143a5614380565b500690565b6000600182016143bc576143bc614357565b5060010190565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008154614467816140db565b6001828116801561447f5760018114614494576144c3565b60ff19841687528215158302870194506144c3565b8560005260208060002060005b858110156144ba5781548a8201529084019082016144a1565b50505082870194505b5050505092915050565b641e39bb339f60d91b815260006144e7600583018461445a565b651e17b9bb339f60d11b81526006019392505050565b6000815161450f81856020860161396b565b9290920192915050565b6000845161452b81846020890161396b565b84519083019061453f81836020890161396b565b845191019061455281836020880161396b565b651e17b9bb339f60d11b910190815260060195945050505050565b6000835161457f81846020880161396b565b83519083019061459381836020880161396b565b651e17b9bb339f60d11b9101908152600601949350505050565b757b226e616d65223a2022436f6f6b692043617264202360501b815282516000906145df81601685016020880161396b565b7f222c20226465736372697074696f6e223a2022492066696e6420746865204f756016918401918201527f726f62726963206d656d657320746f20626520746865206d6f7374207361746960368201527f736679696e6720746f20636f6e74656d706c6174652e222c2022696d6167652260568201527f3a2022646174613a696d6167652f7376672b786d6c3b6261736536342c0000006076820152835161468e81609384016020880161396b565b601160f91b60939290910191820152609401949350505050565b6000875160206146bb8285838d0161396b565b7f2c202261747472696275746573223a205b7b202274726169745f74797065223a9184019182527f20224261636b67726f756e64222c202276616c7565223a20220000000000000081830152614714603983018a61445a565b7f227d2c207b202274726169745f74797065223a202246616365222c202276616c8152653ab2911d101160d11b828201529150614754602683018961445a565b7f227d2c207b202274726169745f74797065223a2022486174222c202276616c7581526432911d101160d91b828201529150614793602583018861445a565b7f227d2c207b202274726169745f74797065223a2022426f72646572222c20227681526730b63ab2911d101160c11b8282015291506147d5602883018761445a565b91507f227d2c207b202274726169745f74797065223a2022446973706c6179222c20228252683b30b63ab2911d101160b91b8183015250614819602982018561445a565b63227d5d7d60e01b81526004019998505050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161486b81601d85016020870161396b565b91909101601d0192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613e589083018461398f565b6000602082840312156148bd57600080fd5b815161396481613931565b7f3c7376673e3c726563742077696474683d223130302522206865696768743d2281526b1898181291103334b6361e9160a11b60208201526000835161491581602c85016020880161396b565b7f22202f3e3c706f6c79676f6e20706f696e74733d223230302c31363020323030602c918401918201527f2c3730203138302c3730203138302c36302036302c36302036302c3136302220604c820152653334b6361e9160d11b606c820152835161498781607284016020880161396b565b01607201949350505050565b600084516149a581846020890161396b565b8083019050600080516020615e1383398151915281527f2220783d2232302220793d22313730222066696c6c3d22000000000000000000602082015284516149f481603784016020890161396b565b7f222f3e3c726563742077696474683d22313022206865696768743d2231302e31603792909101918201527f2220783d2234302220793d22313530222066696c6c3d2200000000000000000060578201528351614a5881606e84016020880161396b565b01606e0195945050505050565b60008451614a7781846020890161396b565b80830190507f222f3e3c706f6c79676f6e20706f696e74733d2233302c3136302035302c313681527f302035302c3138302036302c3138302036302c3139302037302c31393020373060208201527f2c3138302038302c3138302038302c3230302035302c3230302035302c31393060408201527f2034302c3139302034302c3138302033302c313830222066696c6c3d2200000060608201528451614b2481607d84016020890161396b565b7f222f3e3c706f6c79676f6e20706f696e74733d2237302c3138302037302c3139607d92909101918201527f302036302c3139302036302c3138302035302c3138302035302c313630203630609d8201527f2c3136302036302c3135302037302c313530222066696c6c3d2200000000000060bd8201528351614bae8160d784016020880161396b565b0160d70195945050505050565b60008451614bcd81846020890161396b565b8083019050600080516020615e33833981519152808252743c1e911b1811103c9e91189b9811103334b6361e9160591b60208301528551614c15816035850160208a0161396b565b6035920191820152743c1e911b1811103c9e91189b1811103334b6361e9160591b60558201528351614c4e81606a84016020880161396b565b01606a0195945050505050565b60008451614c6d81846020890161396b565b8083019050600080516020615e1383398151915281527f2e312220783d2235392e39352220793d223232392e3935222066696c6c3d220060208201528451614cbc81603f84016020890161396b565b7f222f3e3c706f6c79676f6e20706f696e74733d2237302c323430203137302c32603f92909101918201527f3430203137302c3136302037302c3136302037302c3138302038302c31383020605f820152741c1816191918101b981619191811103334b6361e9160591b607f8201528351614d3e81609484016020880161396b565b0160940195945050505050565b60008451614d5d81846020890161396b565b80830190507f222f3e3c706f6c79676f6e20706f696e74733d2239302c3231302039302c323081527f302038302c3230302038302c3232302036302c3232302036302c32343020353060208201527f2c3234302035302c3233302037302c3233302037302c323130222066696c6c3d6040820152601160f91b60608201528451614dee81606184016020890161396b565b600080516020615e3383398151915260619290910191820152753c1e9118989811103c9e9119191811103334b6361e9160511b60818201528351614e3981609784016020880161396b565b0160970195945050505050565b60008451614e5881846020890161396b565b80830190507f222f3e3c706f6c79676f6e20706f696e74733d2239302c323130203131302c3281527f3130203131302c323330203130302c323330203130302c3232302039302c32326020820152681811103334b6361e9160b91b60408201528451614ecb81604984016020890161396b565b7f222f3e3c706f6c79676f6e20706f696e74733d223131302c323230203137302c604992909101918201527f323230203137302c323030203138302c323030203138302c313730203131302c60698201527f313730203131302c313830203130302c313830203130302c323030203131302c60898201526a19181811103334b6361e9160a91b60a98201528351614f698160b484016020880161396b565b0160b40195945050505050565b60008451614f8881846020890161396b565b80830190507f222f3e3c706f6c79676f6e20706f696e74733d223132302c323230203135302c81527f323230203135302c323330203134302c323330203134302c323430203133302c60208201527f323430203133302c323330203132302c323330222066696c6c3d2200000000006040820152845161500f81605b84016020890161396b565b600080516020615e33833981519152605b9290910191820152753c1e9118991811103c9e9119181811103334b6361e9160511b607b820152835161505a81609184016020880161396b565b0160910195945050505050565b6000845161507981846020890161396b565b80830190507f222f3e3c706f6c79676f6e20706f696e74733d223133302c323130203133302c81527f323030203134302c323030203134302c323230203135302c323230203135302c60208201526a19189811103334b6361e9160a91b604082015284516150ee81604b84016020890161396b565b600080516020615e13833981519152604b92909101918201527f2220783d223137392e392220793d22323330222066696c6c3d22000000000000606b820152835161514081608584016020880161396b565b0160850195945050505050565b6000845161515f81846020890161396b565b80830190507f222f3e3c706f6c79676f6e20706f696e74733d223135302c323230203135302c81527f323130203137302c323130203137302c323430203138302c323430203138302c60208201526a19191811103334b6361e9160a91b604082015284516151d481604b84016020890161396b565b600080516020615e33833981519152604b9290910191820152753c1e91189b1811103c9e9119181811103334b6361e9160511b606b820152835161521f81608184016020880161396b565b0160810195945050505050565b6000845161523e81846020890161396b565b80830190507f222f3e3c706f6c79676f6e20706f696e74733d223137302c323030203137302c81527f323130203138302c323130203138302c313830203136302c313830203136302c60208201527f313630203133302c313630203133302c313730203230302c313730203230302c60408201527f3730203139302c3730203139302c3930203231302c3930203231302c3132302060608201527f3139302c313230203139302c313530203231302c313530203231302c3138302060808201527f3139302c313830203139302c323030222066696c6c3d2200000000000000000060a082015284516153378160b784016020890161396b565b7f222f3e3c726563742077696474683d2232302e3122206865696768743d22333060b792909101918201527f2e312220783d2235392e39352220793d2238392e3935222066696c6c3d22000060d7820152835161539b8160f584016020880161396b565b0160f50195945050505050565b600084516153ba81846020890161396b565b80830190507f222f3e3c706f6c79676f6e20706f696e74733d2235392c3132302035392c313481527f312039302c3134312039302c313330203131302c313330203131302c3131302060208201527f3134302c313130203134302c313330203137302c313330203137302c3132302060408201527f39302c3132302039302c313030203130302c313030203130302c36302039302c60608201527f36302039302c39302038302c39302038302c3131302037302c3131302037302c60808201526a18991811103334b6361e9160a91b60a082015284516154a18160ab84016020890161396b565b7f222f3e3c706f6c79676f6e20706f696e74733d2235302c3136302035302c393060ab92909101918201527f2036302c39302036302c313430203130302c313430203130302c31383020393060cb8201527f2c3138302039302c313630203132302c313630203132302c3135302038302c3160eb8201527f35302038302c3136302037302c3136302037302c3135302036302c313530203661010b8201526c1816189b1811103334b6361e9160991b61012b820152613e586101388201856144fd565b6000845161557681846020890161396b565b8083019050600080516020615e5383398151915281527f2e312220783d2237392e39352220793d223134392e3935222066696c6c3d2200602082015284516155c581603f84016020890161396b565b7f222f3e3c726563742077696474683d22323022206865696768743d2231302e31603f92909101918201527f2220783d223131302220793d223135392e3935222066696c6c3d220000000000605f820152835161562981607a84016020880161396b565b01607a0195945050505050565b6000845161564881846020890161396b565b80830190507f222f3e3c706f6c79676f6e20706f696e74733d223133302c313830203134302c81527f313830203134302c313930203135302c313930203135302c313830203136302c60208201527f313830203136302c313730203133302c313730222066696c6c3d220000000000604082015284516156cf81605b84016020890161396b565b7f222f3e3c726563742077696474683d22313022206865696768743d2231302e31605b92909101918201527f2220783d2235302220793d2237392e3935222066696c6c3d2200000000000000607b8201528351614d3e81609484016020880161396b565b6000845161574581846020890161396b565b8083019050600080516020615e138339815191528082527f2e312220783d2235392e39352220793d2236392e3935222066696c6c3d2200006020830152855161579581603e850160208a0161396b565b603e9201918201527f2e312220783d2235392e39352220793d2235392e3935222066696c6c3d220000605e82015283516157d681607c84016020880161396b565b01607c0195945050505050565b600084516157f581846020890161396b565b80830190507f222f3e3c726563742077696474683d22353022206865696768743d22323022208152733c1e911c9811103c9e911a1811103334b6361e9160611b6020820152845161584d81603484016020890161396b565b600080516020615e53833981519152603492909101918201527f2220783d2236392e39352220793d223530222066696c6c3d22000000000000006054820152835161589f81606d84016020880161396b565b01606d0195945050505050565b600084516158be81846020890161396b565b8083019050600080516020615e338339815191528152733c1e911c9811103c9e911a9811103334b6361e9160611b6020820152845161590481603484016020890161396b565b7f222f3e3c726563742077696474683d22333022206865696768743d223130222060349290910191820152743c1e9118981811103c9e911a1811103334b6361e9160591b6054820152835161596081606984016020880161396b565b0160690195945050505050565b6000845161597f81846020890161396b565b80830190507f222f3e3c726563742077696474683d22313022206865696768743d22323022208152743c1e91189b1811103c9e911a9811103334b6361e9160591b602082015284516159d881603584016020890161396b565b600080516020615e53833981519152603592909101918201527f2220783d223133392e39352220793d223530222066696c6c3d2200000000000060558201528351615a2a81606f84016020880161396b565b01606f0195945050505050565b60008451615a4981846020890161396b565b8083019050600080516020615e1383398151915281527f2220783d223136392e39352220793d223630222066696c6c3d2200000000000060208201528451615a9881603a84016020890161396b565b7f222f3e3c726563742077696474683d2231302e3122206865696768743d223230603a92909101918201527f2220783d223137392e39352220793d223630222066696c6c3d22000000000000605a8201528351615afc81607484016020880161396b565b0160740195945050505050565b60008451615b1b81846020890161396b565b8083019050600080516020615e1383398151915281527f2e312220783d223138392e39352220793d2238392e3935222066696c6c3d220060208201528451615b6a81603f84016020890161396b565b600080516020615e53833981519152603f92909101918201527f2220783d223136392e39352220793d22313330222066696c6c3d220000000000605f820152835161562981607a84016020880161396b565b60008451615bce81846020890161396b565b80830190507f222f3e3c706f6c79676f6e20706f696e74733d223136302c3630203135302c3681527f30203135302c313230203134302c313230203134302c313030203136302c31306020820152681811103334b6361e9160b91b8060408301528551615c42816049850160208a0161396b565b7f222f3e3c706f6c79676f6e20706f696e74733d223130302c3133302039302c31604993909101928301527f33302039302c313430203132302c313430203132302c313630203230302c313660698301527f30203230302c313730203136302c313730203136302c313530203130302c3135608983015260a98201528351615cd18160b284016020880161396b565b6211179f60e91b60b2929091019182015260b50195945050505050565b60008451615d0081846020890161396b565b80830190507f3c616e696d617465206174747269627574654e616d653d226f70616369747922815268103b30b63ab2b99e9160b91b60208201528451615d4d81602984016020890161396b565b661110323ab91e9160c91b602992909101918201528351615d7581603084016020880161396b565b7f2220626567696e3d2230732220726570656174436f756e743d22696e6465666960309290910191820152673734ba329110179f60c11b605082015260580195945050505050565b60008251615dcf81846020870161396b565b651e17b9bb339f60d11b920191825250600601919050565b600082615df657615df6614380565b500490565b80820281158282048414176106345761063461435756fe222f3e3c726563742077696474683d2231302e3122206865696768743d223130222f3e3c726563742077696474683d22313022206865696768743d2231302220222f3e3c726563742077696474683d2232302e3122206865696768743d2231304142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302032343020323430223ea2646970667358221220170b091bd6c714fe94b2117cc1add54a4ab46d5f66859826245164ef5ec3ee1d64736f6c63430008110033

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

00000000000000000000000021578890329b5fb92c1869bd4d9dbce6c9fb571d

-----Decoded View---------------
Arg [0] : _cookiData (address): 0x21578890329b5fb92C1869bD4D9DbCE6c9fB571d

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000021578890329b5fb92c1869bd4d9dbce6c9fb571d


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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